[03:16:00]OFD Sender: No OFD packet to send [03:16:05]OFD Sender: No OFD packet to send [03:16:10]OFD Sender: No OFD packet to send [03:16:15]OFD Sender: No OFD packet to send [03:16:20]OFD Sender: No OFD packet to send [03:16:25]OFD Sender: No OFD packet to send [03:16:30]OFD Sender: No OFD packet to send [03:16:35]OFD Sender: No OFD packet to send [03:16:40]OFD Sender: No OFD packet to send [03:16:45]OFD Sender: No OFD packet to send [03:16:50]OFD Sender: No OFD packet to send [03:16:55]OFD Sender: No OFD packet to send [03:17:00]OFD Sender: No OFD packet to send [03:17:05]OFD Sender: No OFD packet to send [03:17:10]OFD Sender: No OFD packet to send [03:17:15]OFD Sender: No OFD packet to send [03:17:20]OFD Sender: No OFD packet to send [03:17:25]OFD Sender: No OFD packet to send [03:17:30]OFD Sender: No OFD packet to send [03:17:35]OFD Sender: No OFD packet to send [03:17:40]OFD Sender: No OFD packet to send [03:17:45]OFD Sender: No OFD packet to send [03:17:50]OFD Sender: No OFD packet to send [03:17:55]OFD Sender: No OFD packet to send [03:18:00]OFD Sender: No OFD packet to send [03:18:05]OFD Sender: No OFD packet to send [03:18:10]OFD Sender: No OFD packet to send [03:18:15]OFD Sender: No OFD packet to send [03:18:20]OFD Sender: No OFD packet to send [03:18:25]OFD Sender: No OFD packet to send [03:18:30]OFD Sender: No OFD packet to send [03:18:35]OFD Sender: No OFD packet to send [03:18:40]OFD Sender: No OFD packet to send [03:18:45]OFD Sender: No OFD packet to send [03:18:50]OFD Sender: No OFD packet to send [03:18:55]OFD Sender: No OFD packet to send [03:19:00]OFD Sender: No OFD packet to send [03:19:05]OFD Sender: No OFD packet to send [03:19:10]OFD Sender: No OFD packet to send [03:19:15]OFD Sender: No OFD packet to send [03:19:20]OFD Sender: No OFD packet to send [03:19:25]OFD Sender: No OFD packet to send [03:19:30]OFD Sender: No OFD packet to send [03:19:35]OFD Sender: No OFD packet to send [03:19:40]OFD Sender: No OFD packet to send [03:19:45]OFD Sender: No OFD packet to send [03:19:50]OFD Sender: No OFD packet to send [03:19:55]OFD Sender: No OFD packet to send [03:20:00]OFD Sender: No OFD packet to send [03:20:05]OFD Sender: No OFD packet to send [03:20:10]OFD Sender: No OFD packet to send [03:20:15]OFD Sender: No OFD packet to send [03:20:20]OFD Sender: No OFD packet to send [03:20:25]OFD Sender: No OFD packet to send [03:20:30]OFD Sender: No OFD packet to send [03:20:35]OFD Sender: No OFD packet to send [03:20:40]OFD Sender: No OFD packet to send [03:20:45]OFD Sender: No OFD packet to send [03:20:50]OFD Sender: No OFD packet to send [03:20:55]OFD Sender: No OFD packet to send [03:21:00]OFD Sender: No OFD packet to send [03:21:05]OFD Sender: No OFD packet to send [03:21:10]OFD Sender: No OFD packet to send [03:21:15]OFD Sender: No OFD packet to send [03:21:20]OFD Sender: No OFD packet to send [03:21:25]OFD Sender: No OFD packet to send [03:21:30]OFD Sender: No OFD packet to send [03:21:35]OFD Sender: No OFD packet to send [03:21:40]OFD Sender: No OFD packet to send [03:21:45]OFD Sender: No OFD packet to send [03:21:50]OFD Sender: No OFD packet to send [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:46]OFD Sender: No OFD packet to send [03:29:51]OFD Sender: No OFD packet to send [03:29:56]OFD Sender: No OFD packet to send [03:30:01]OFD Sender: No OFD packet to send [03:30:06]OFD Sender: No OFD packet to send [03:30:11]OFD Sender: No OFD packet to send [03:30:16]OFD Sender: No OFD packet to send [03:30:21]OFD Sender: No OFD packet to send [03:30:26]OFD Sender: No OFD packet to send [03:30:31]OFD Sender: No OFD packet to send [03:30:36]OFD Sender: No OFD packet to send [03:30:41]OFD Sender: No OFD packet to send [03:30:46]OFD Sender: No OFD packet to send [03:30:51]OFD Sender: No OFD packet to send [03:30:56]OFD Sender: No OFD packet to send [03:31:01]OFD Sender: No OFD packet to send [03:31:06]OFD Sender: No OFD packet to send [03:31:11]OFD Sender: No OFD packet to send [03:31:16]OFD Sender: No OFD packet to send [03:31:21]OFD Sender: No OFD packet to send [03:31:26]OFD Sender: No OFD packet to send [03:31:31]OFD Sender: No OFD packet to send [03:31:36]OFD Sender: No OFD packet to send [03:31:41]OFD Sender: No OFD packet to send [03:31:46]OFD Sender: No OFD packet to send [03:31:51]OFD Sender: No OFD packet to send [03:31:56]OFD Sender: No OFD packet to send [03:32:01]OFD Sender: No OFD packet to send [03:32:06]OFD Sender: No OFD packet to send [03:32:11]OFD Sender: No OFD packet to send [03:32:16]OFD Sender: No OFD packet to send [03:32:21]OFD Sender: No OFD packet to send [03:32:26]OFD Sender: No OFD packet to send [03:32:31]OFD Sender: No OFD packet to send [03:32:36]OFD Sender: No OFD packet to send [03:32:41]OFD Sender: No OFD packet to send [03:32:46]OFD Sender: No OFD packet to send [03:32:51]OFD Sender: No OFD packet to send [03:32:56]OFD Sender: No OFD packet to send [03:33:01]OFD Sender: No OFD packet to send [03:33:06]OFD Sender: No OFD packet to send [03:33:11]OFD Sender: No OFD packet to send [03:33:16]OFD Sender: No OFD packet to send [03:33:21]OFD Sender: No OFD packet to send [03:33:26]OFD Sender: No OFD packet to send [03:33:31]OFD Sender: No OFD packet to send [03:33:36]OFD Sender: No OFD packet to send [03:33:41]OFD Sender: No OFD packet to send [03:33:46]OFD Sender: No OFD packet to send [03:33:51]OFD Sender: No OFD packet to send [03:33:56]OFD Sender: No OFD packet to send [03:34:01]OFD Sender: No OFD packet to send [03:34:06]OFD Sender: No OFD packet to send [03:34:11]OFD Sender: No OFD packet to send [03:34:16]OFD Sender: No OFD packet to send [03:34:21]OFD Sender: No OFD packet to send [03:34:26]OFD Sender: No OFD packet to send [03:34:31]OFD Sender: No OFD packet to send [03:34:36]OFD Sender: No OFD packet to send [03:34:41]OFD Sender: No OFD packet to send [03:34:46]OFD Sender: No OFD packet to send [03:34:51]OFD Sender: No OFD packet to send [03:34:56]OFD Sender: No OFD packet to send [03:35:01]OFD Sender: No OFD packet to send [03:35:06]OFD Sender: No OFD packet to send [03:35:11]OFD Sender: No OFD packet to send [03:35:16]OFD Sender: No OFD packet to send [03:35:21]OFD Sender: No OFD packet to send [03:35:26]OFD Sender: No OFD packet to send [03:35:31]OFD Sender: No OFD packet to send [03:35:36]OFD Sender: No OFD packet to send [03:35:41]OFD Sender: No OFD packet to send [03:35:46]OFD Sender: No OFD packet to send [03:35:51]OFD Sender: No OFD packet to send [03:35:56]OFD Sender: No OFD packet to send [03:36:01]OFD Sender: No OFD packet to send [03:36:06]OFD Sender: No OFD packet to send [03:36:11]OFD Sender: No OFD packet to send [03:36:16]OFD Sender: No OFD packet to send [03:36:21]OFD Sender: No OFD packet to send [03:36:26]OFD Sender: No OFD packet to send [03:36:31]OFD Sender: No OFD packet to send [03:36:36]OFD Sender: No OFD packet to send [03:36:41]OFD Sender: No OFD packet to send [03:36:46]OFD Sender: No OFD packet to send [03:36:51]OFD Sender: No OFD packet to send [03:36:56]OFD Sender: No OFD packet to send [03:37:01]OFD Sender: No OFD packet to send [03:37:06]OFD Sender: No OFD packet to send [03:37:11]OFD Sender: No OFD packet to send [03:37:16]OFD Sender: No OFD packet to send [03:37:21]OFD Sender: No OFD packet to send [03:37:26]OFD Sender: No OFD packet to send [03:37:31]OFD Sender: No OFD packet to send [03:37:36]OFD Sender: No OFD packet to send [03:37:41]OFD Sender: No OFD packet to send [03:37:46]OFD Sender: No OFD packet to send [03:37:51]OFD Sender: No OFD packet to send [03:37:56]OFD Sender: No OFD packet to send [03:38:01]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:02]OFD Sender: No OFD packet to send [03:49:07]OFD Sender: No OFD packet to send [03:49:12]OFD Sender: No OFD packet to send [03:49:17]OFD Sender: No OFD packet to send [03:49:22]OFD Sender: No OFD packet to send [03:49:27]OFD Sender: No OFD packet to send [03:49:32]OFD Sender: No OFD packet to send [03:49:37]OFD Sender: No OFD packet to send [03:49:42]OFD Sender: No OFD packet to send [03:49:47]OFD Sender: No OFD packet to send [03:49:52]OFD Sender: No OFD packet to send [03:49:57]OFD Sender: No OFD packet to send [03:50:02]OFD Sender: No OFD packet to send [03:50:07]OFD Sender: No OFD packet to send [03:50:12]OFD Sender: No OFD packet to send [03:50:17]OFD Sender: No OFD packet to send [03:50:22]OFD Sender: No OFD packet to send [03:50:27]OFD Sender: No OFD packet to send [03:50:32]OFD Sender: No OFD packet to send [03:50:37]OFD Sender: No OFD packet to send [03:50:42]OFD Sender: No OFD packet to send [03:50:47]OFD Sender: No OFD packet to send [03:50:52]OFD Sender: No OFD packet to send [03:50:57]OFD Sender: No OFD packet to send [03:51:02]OFD Sender: No OFD packet to send [03:51:07]OFD Sender: No OFD packet to send [03:51:12]OFD Sender: No OFD packet to send [03:51:17]OFD Sender: No OFD packet to send [03:51:22]OFD Sender: No OFD packet to send [03:51:27]OFD Sender: No OFD packet to send [03:51:32]OFD Sender: No OFD packet to send [03:51:37]OFD Sender: No OFD packet to send [03:51:42]OFD Sender: No OFD packet to send [03:51:47]OFD Sender: No OFD packet to send [03:51:52]OFD Sender: No OFD packet to send [03:51:57]OFD Sender: No OFD packet to send [03:52:02]OFD Sender: No OFD packet to send [03:52:07]OFD Sender: No OFD packet to send [03:52:12]OFD Sender: No OFD packet to send [03:52:17]OFD Sender: No OFD packet to send [03:52:22]OFD Sender: No OFD packet to send [03:52:27]OFD Sender: No OFD packet to send [03:52:32]OFD Sender: No OFD packet to send [03:52:37]OFD Sender: No OFD packet to send [03:52:42]OFD Sender: No OFD packet to send [03:52:47]OFD Sender: No OFD packet to send [03:52:52]OFD Sender: No OFD packet to send [03:52:57]OFD Sender: No OFD packet to send [03:53:02]OFD Sender: No OFD packet to send [03:53:07]OFD Sender: No OFD packet to send [03:53:12]OFD Sender: No OFD packet to send [03:53:17]OFD Sender: No OFD packet to send [03:53:22]OFD Sender: No OFD packet to send [03:53:27]OFD Sender: No OFD packet to send [03:53:32]OFD Sender: No OFD packet to send [03:53:37]OFD Sender: No OFD packet to send [03:53:42]OFD Sender: No OFD packet to send [03:53:47]OFD Sender: No OFD packet to send [03:53:52]OFD Sender: No OFD packet to send [03:53:57]OFD Sender: No OFD packet to send [03:54:02]OFD Sender: No OFD packet to send [03:54:07]OFD Sender: No OFD packet to send [03:54:12]OFD Sender: No OFD packet to send [03:54:17]OFD Sender: No OFD packet to send [03:54:22]OFD Sender: No OFD packet to send [03:54:27]OFD Sender: No OFD packet to send [03:54:32]OFD Sender: No OFD packet to send [03:54:37]OFD Sender: No OFD packet to send [03:54:42]OFD Sender: No OFD packet to send [03:54:47]OFD Sender: No OFD packet to send [03:54:52]OFD Sender: No OFD packet to send [03:54:57]OFD Sender: No OFD packet to send [03:55:02]OFD Sender: No OFD packet to send [03:55:07]OFD Sender: No OFD packet to send [03:55:12]OFD Sender: No OFD packet to send [03:55:17]OFD Sender: No OFD packet to send [03:55:22]OFD Sender: No OFD packet to send [03:55:27]OFD Sender: No OFD packet to send [03:55:32]OFD Sender: No OFD packet to send [03:55:37]OFD Sender: No OFD packet to send [03:55:42]OFD Sender: No OFD packet to send [03:55:47]OFD Sender: No OFD packet to send [03:55:52]OFD Sender: No OFD packet to send [03:55:57]OFD Sender: No OFD packet to send [03:56:02]OFD Sender: No OFD packet to send [03:56:07]OFD Sender: No OFD packet to send [03:56:12]OFD Sender: No OFD packet to send [03:56:17]OFD Sender: No OFD packet to send [03:56:22]OFD Sender: No OFD packet to send [03:56:27]OFD Sender: No OFD packet to send [03:56:32]OFD Sender: No OFD packet to send [03:56:37]OFD Sender: No OFD packet to send [03:56:42]OFD Sender: No OFD packet to send [03:56:47]OFD Sender: No OFD packet to send [03:56:52]OFD Sender: No OFD packet to send [03:56:57]OFD Sender: No OFD packet to send [03:57:02]OFD Sender: No OFD packet to send [03:57:07]OFD Sender: No OFD packet to send [03:57:12]OFD Sender: No OFD packet to send [03:57:17]OFD Sender: No OFD packet to send [03:57:22]OFD Sender: No OFD packet to send [03:57:27]OFD Sender: No OFD packet to send [03:57:32]OFD Sender: No OFD packet to send [03:57:37]OFD Sender: No OFD packet to send [03:57:42]OFD Sender: No OFD packet to send [03:57:47]OFD Sender: No OFD packet to send [03:57:52]OFD Sender: No OFD packet to send [03:57:57]OFD Sender: No OFD packet to send [03:58:02]OFD Sender: No OFD packet to send [03:58:07]OFD Sender: No OFD packet to send [03:58: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:13]OFD Sender: No OFD packet to send [04:08:18]OFD Sender: No OFD packet to send [04:08:23]OFD Sender: No OFD packet to send [04:08:28]OFD Sender: No OFD packet to send [04:08:33]OFD Sender: No OFD packet to send [04:08:38]OFD Sender: No OFD packet to send [04:08:43]OFD Sender: No OFD packet to send [04:08:48]OFD Sender: No OFD packet to send [04:08:53]OFD Sender: No OFD packet to send [04:08:58]OFD Sender: No OFD packet to send [04:09:03]OFD Sender: No OFD packet to send [04:09:08]OFD Sender: No OFD packet to send [04:09:13]OFD Sender: No OFD packet to send [04:09:18]OFD Sender: No OFD packet to send [04:09:23]OFD Sender: No OFD packet to send [04:09:28]OFD Sender: No OFD packet to send [04:09:33]OFD Sender: No OFD packet to send [04:09:38]OFD Sender: No OFD packet to send [04:09:43]OFD Sender: No OFD packet to send [04:09:48]OFD Sender: No OFD packet to send [04:09:53]OFD Sender: No OFD packet to send [04:09:58]OFD Sender: No OFD packet to send [04:10:03]OFD Sender: No OFD packet to send [04:10:08]OFD Sender: No OFD packet to send [04:10:13]OFD Sender: No OFD packet to send [04:10:18]OFD Sender: No OFD packet to send [04:10:23]OFD Sender: No OFD packet to send [04:10:28]OFD Sender: No OFD packet to send [04:10:33]OFD Sender: No OFD packet to send [04:10:38]OFD Sender: No OFD packet to send [04:10:43]OFD Sender: No OFD packet to send [04:10:48]OFD Sender: No OFD packet to send [04:10:53]OFD Sender: No OFD packet to send [04:10:58]OFD Sender: No OFD packet to send [04:11:03]OFD Sender: No OFD packet to send [04:11:08]OFD Sender: No OFD packet to send [04:11:13]OFD Sender: No OFD packet to send [04:11:18]OFD Sender: No OFD packet to send [04:11:23]OFD Sender: No OFD packet to send [04:11:28]OFD Sender: No OFD packet to send [04:11:33]OFD Sender: No OFD packet to send [04:11:38]OFD Sender: No OFD packet to send [04:11:43]OFD Sender: No OFD packet to send [04:11:48]OFD Sender: No OFD packet to send [04:11:53]OFD Sender: No OFD packet to send [04:11:58]OFD Sender: No OFD packet to send [04:12:03]OFD Sender: No OFD packet to send [04:12:08]OFD Sender: No OFD packet to send [04:12:13]OFD Sender: No OFD packet to send [04:12:18]OFD Sender: No OFD packet to send [04:12:23]OFD Sender: No OFD packet to send [04:12:28]OFD Sender: No OFD packet to send [04:12:33]OFD Sender: No OFD packet to send [04:12:38]OFD Sender: No OFD packet to send [04:12:43]OFD Sender: No OFD packet to send [04:12:48]OFD Sender: No OFD packet to send [04:12:53]OFD Sender: No OFD packet to send [04:12:58]OFD Sender: No OFD packet to send [04:13:03]OFD Sender: No OFD packet to send [04:13:08]OFD Sender: No OFD packet to send [04:13:13]OFD Sender: No OFD packet to send [04:13:18]OFD Sender: No OFD packet to send [04:13:23]OFD Sender: No OFD packet to send [04:13:28]OFD Sender: No OFD packet to send [04:13:33]OFD Sender: No OFD packet to send [04:13:38]OFD Sender: No OFD packet to send [04:13:43]OFD Sender: No OFD packet to send [04:13:48]OFD Sender: No OFD packet to send [04:13:53]OFD Sender: No OFD packet to send [04:13:58]OFD Sender: No OFD packet to send [04:14:03]OFD Sender: No OFD packet to send [04:14:08]OFD Sender: No OFD packet to send [04:14:13]OFD Sender: No OFD packet to send [04:14:18]OFD Sender: No OFD packet to send [04:14:23]OFD Sender: No OFD packet to send [04:14:28]OFD Sender: No OFD packet to send [04:14:33]OFD Sender: No OFD packet to send [04:14:38]OFD Sender: No OFD packet to send [04:14:43]OFD Sender: No OFD packet to send [04:14:48]OFD Sender: No OFD packet to send [04:14:53]OFD Sender: No OFD packet to send [04:14:58]OFD Sender: No OFD packet to send [04:15:03]OFD Sender: No OFD packet to send [04:15:08]OFD Sender: No OFD packet to send [04:15:13]OFD Sender: No OFD packet to send [04:15:18]OFD Sender: No OFD packet to send [04:15:23]OFD Sender: No OFD packet to send [04:15:28]OFD Sender: No OFD packet to send [04:15:33]OFD Sender: No OFD packet to send [04:15:38]OFD Sender: No OFD packet to send [04:15:43]OFD Sender: No OFD packet to send [04:15:48]OFD Sender: No OFD packet to send [04:15:53]OFD Sender: No OFD packet to send [04:15:58]OFD Sender: No OFD packet to send [04:16:03]OFD Sender: No OFD packet to send [04:16:08]OFD Sender: No OFD packet to send [04:16:13]OFD Sender: No OFD packet to send [04:16:18]OFD Sender: No OFD packet to send [04:16:23]OFD Sender: No OFD packet to send [04:16:28]OFD Sender: No OFD packet to send [04:16:33]OFD Sender: No OFD packet to send [04:16:38]OFD Sender: No OFD packet to send [04:16:43]OFD Sender: No OFD packet to send [04:16:48]OFD Sender: No OFD packet to send [04:16:53]OFD Sender: No OFD packet to send [04:16:58]OFD Sender: No OFD packet to send [04:17:03]OFD Sender: No OFD packet to send [04:17:08]OFD Sender: No OFD packet to send [04:17:13]OFD Sender: No OFD packet to send [04:17:18]OFD Sender: No OFD packet to send [04:17:23]OFD Sender: No OFD packet to send [04:17:28]OFD Sender: No OFD packet to send [04:17:33]OFD Sender: No OFD packet to send [04:17:38]OFD Sender: No OFD packet to send [04:17:43]OFD Sender: No OFD packet to send [04:17:48]OFD Sender: No OFD packet to send [04:17:53]OFD Sender: No OFD packet to send [04:17:58]OFD Sender: No OFD packet to send [04:18:03]OFD Sender: No OFD packet to send [04:18:08]OFD Sender: No OFD packet to send [04:18:13]OFD Sender: No OFD packet to send [04:18:18]OFD Sender: No OFD packet to send [04:18:23]OFD Sender: No OFD packet to send [04:18:28]OFD Sender: No OFD packet to send [04:18:33]OFD Sender: No OFD packet to send [04:18:38]OFD Sender: No OFD packet to send [04:18:43]OFD Sender: No OFD packet to send [04:18:48]OFD Sender: No OFD packet to send [04:18:53]OFD Sender: No OFD packet to send [04:18:58]OFD Sender: No OFD packet to send [04:19:03]OFD Sender: No OFD packet to send [04:19:08]OFD Sender: No OFD packet to send [04:19:13]OFD Sender: No OFD packet to send [04:19:18]OFD Sender: No OFD packet to send [04:19:23]OFD Sender: No OFD packet to send [04:19:28]OFD Sender: No OFD packet to send [04:19:33]OFD Sender: No OFD packet to send [04:19:38]OFD Sender: No OFD packet to send [04:19:43]OFD Sender: No OFD packet to send [04:19:48]OFD Sender: No OFD packet to send [04:19:53]OFD Sender: No OFD packet to send [04:19:58]OFD Sender: No OFD packet to send [04:20:03]OFD Sender: No OFD packet to send [04:20:08]OFD Sender: No OFD packet to send [04:20:13]OFD Sender: No OFD packet to send [04:20:18]OFD Sender: No OFD packet to send [04:20:23]OFD Sender: No OFD packet to send [04:20:28]OFD Sender: No OFD packet to send [04:20:33]OFD Sender: No OFD packet to send [04:20:38]OFD Sender: No OFD packet to send [04:20:43]OFD Sender: No OFD packet to send [04:20:48]OFD Sender: No OFD packet to send [04:20:53]OFD Sender: No OFD packet to send [04:20:58]OFD Sender: No OFD packet to send [04:21:03]OFD Sender: No OFD packet to send [04:21:08]OFD Sender: No OFD packet to send [04:21:13]OFD Sender: No OFD packet to send [04:21:18]OFD Sender: No OFD packet to send [04:21:23]OFD Sender: No OFD packet to send [04:21:28]OFD Sender: No OFD packet to send [04:21:33]OFD Sender: No OFD packet to send [04:21:38]OFD Sender: No OFD packet to send [04:21:43]OFD Sender: No OFD packet to send [04:21:48]OFD Sender: No OFD packet to send [04:21:53]OFD Sender: No OFD packet to send [04:21:58]OFD Sender: No OFD packet to send [04:22:03]OFD Sender: No OFD packet to send [04:22:08]OFD Sender: No OFD packet to send [04:22:13]OFD Sender: No OFD packet to send [04:22:18]OFD Sender: No OFD packet to send [04:22:23]OFD Sender: No OFD packet to send [04:22:28]OFD Sender: No OFD packet to send [04:22:33]OFD Sender: No OFD packet to send [04:22:38]OFD Sender: No OFD packet to send [04:22:43]OFD Sender: No OFD packet to send [04:22:48]OFD Sender: No OFD packet to send [04:22:53]OFD Sender: No OFD packet to send [04:22:58]OFD Sender: No OFD packet to send [04:23:03]OFD Sender: No OFD packet to send [04:23:08]OFD Sender: No OFD packet to send [04:23:13]OFD Sender: No OFD packet to send [04:23:18]OFD Sender: No OFD packet to send [04:23:23]OFD Sender: No OFD packet to send [04:23:28]OFD Sender: No OFD packet to send [04:23:33]OFD Sender: No OFD packet to send [04:23:38]OFD Sender: No OFD packet to send [04:23:43]OFD Sender: No OFD packet to send [04:23:48]OFD Sender: No OFD packet to send [04:23:53]OFD Sender: No OFD packet to send [04:23:58]OFD Sender: No OFD packet to send [04:24:03]OFD Sender: No OFD packet to send [04:24:08]OFD Sender: No OFD packet to send [04:24:13]OFD Sender: No OFD packet to send [04:24:18]OFD Sender: No OFD packet to send [04:24:23]OFD Sender: No OFD packet to send [04:24:28]OFD Sender: No OFD packet to send [04:24:33]OFD Sender: No OFD packet to send [04:24:38]OFD Sender: No OFD packet to send [04:24:43]OFD Sender: No OFD packet to send [04:24:48]OFD Sender: No OFD packet to send [04:24:53]OFD Sender: No OFD packet to send [04:24:58]OFD Sender: No OFD packet to send [04:25:03]OFD Sender: No OFD packet to send [04:25:08]OFD Sender: No OFD packet to send [04:25:13]OFD Sender: No OFD packet to send [04:25:18]OFD Sender: No OFD packet to send [04:25:23]OFD Sender: No OFD packet to send [04:25:28]OFD Sender: No OFD packet to send [04:25:33]OFD Sender: No OFD packet to send [04:25:38]OFD Sender: No OFD packet to send [04:25:43]OFD Sender: No OFD packet to send [04:25:48]OFD Sender: No OFD packet to send [04:25:53]OFD Sender: No OFD packet to send [04:25:58]OFD Sender: No OFD packet to send [04:26:03]OFD Sender: No OFD packet to send [04:26:08]OFD Sender: No OFD packet to send [04:26:13]OFD Sender: No OFD packet to send [04:26:18]OFD Sender: No OFD packet to send [04:26:23]OFD Sender: No OFD packet to send [04:26:28]OFD Sender: No OFD packet to send [04:26:33]OFD Sender: No OFD packet to send [04:26:38]OFD Sender: No OFD packet to send [04:26:43]OFD Sender: No OFD packet to send [04:26:48]OFD Sender: No OFD packet to send [04:26:53]OFD Sender: No OFD packet to send [04:26:58]OFD Sender: No OFD packet to send [04:27:03]OFD Sender: No OFD packet to send [04:27:08]OFD Sender: No OFD packet to send [04:27:13]OFD Sender: No OFD packet to send [04:27:18]OFD Sender: No OFD packet to send [04:27:24]OFD Sender: No OFD packet to send [04:27:29]OFD Sender: No OFD packet to send [04:27:34]OFD Sender: No OFD packet to send [04:27:39]OFD Sender: No OFD packet to send [04:27:44]OFD Sender: No OFD packet to send [04:27:49]OFD Sender: No OFD packet to send [04:27:54]OFD Sender: No OFD packet to send [04:27:59]OFD Sender: No OFD packet to send [04:28:04]OFD Sender: No OFD packet to send [04:28:09]OFD Sender: No OFD packet to send [04:28:14]OFD Sender: No OFD packet to send [04:28:19]OFD Sender: No OFD packet to send [04:28:24]OFD Sender: No OFD packet to send [04:28:29]OFD Sender: No OFD packet to send [04:28:34]OFD Sender: No OFD packet to send [04:28:39]OFD Sender: No OFD packet to send [04:28:44]OFD Sender: No OFD packet to send [04:28:49]OFD Sender: No OFD packet to send [04:28:54]OFD Sender: No OFD packet to send [04:28:59]OFD Sender: No OFD packet to send [04:29:04]OFD Sender: No OFD packet to send [04:29:09]OFD Sender: No OFD packet to send [04:29:14]OFD Sender: No OFD packet to send [04:29:19]OFD Sender: No OFD packet to send [04:29:24]OFD Sender: No OFD packet to send [04:29:29]OFD Sender: No OFD packet to send [04:29:34]OFD Sender: No OFD packet to send [04:29:39]OFD Sender: No OFD packet to send [04:29:44]OFD Sender: No OFD packet to send [04:29:49]OFD Sender: No OFD packet to send [04:29:54]OFD Sender: No OFD packet to send [04:29:59]OFD Sender: No OFD packet to send [04:30:04]OFD Sender: No OFD packet to send [04:30:09]OFD Sender: No OFD packet to send [04:30:14]OFD Sender: No OFD packet to send [04:30:19]OFD Sender: No OFD packet to send [04:30:24]OFD Sender: No OFD packet to send [04:30:29]OFD Sender: No OFD packet to send [04:30:34]OFD Sender: No OFD packet to send [04:30:39]OFD Sender: No OFD packet to send [04:30:44]OFD Sender: No OFD packet to send [04:30:49]OFD Sender: No OFD packet to send [04:30:54]OFD Sender: No OFD packet to send [04:30:59]OFD Sender: No OFD packet to send [04:31:04]OFD Sender: No OFD packet to send [04:31:09]OFD Sender: No OFD packet to send [04:31:14]OFD Sender: No OFD packet to send [04:31:19]OFD Sender: No OFD packet to send [04:31:24]OFD Sender: No OFD packet to send [04:31:29]OFD Sender: No OFD packet to send [04:31:34]OFD Sender: No OFD packet to send [04:31:39]OFD Sender: No OFD packet to send [04:31:44]OFD Sender: No OFD packet to send [04:31:49]OFD Sender: No OFD packet to send [04:31:54]OFD Sender: No OFD packet to send [04:31:59]OFD Sender: No OFD packet to send [04:32:04]OFD Sender: No OFD packet to send [04:32:09]OFD Sender: No OFD packet to send [04:32:14]OFD Sender: No OFD packet to send [04:32:19]OFD Sender: No OFD packet to send [04:32:24]OFD Sender: No OFD packet to send [04:32:29]OFD Sender: No OFD packet to send [04:32:34]OFD Sender: No OFD packet to send [04:32:39]OFD Sender: No OFD packet to send [04:32:44]OFD Sender: No OFD packet to send [04:32:49]OFD Sender: No OFD packet to send [04:32:54]OFD Sender: No OFD packet to send [04:32:59]OFD Sender: No OFD packet to send [04:33:04]OFD Sender: No OFD packet to send [04:33:09]OFD Sender: No OFD packet to send [04:33:14]OFD Sender: No OFD packet to send [04:33:19]OFD Sender: No OFD packet to send [04:33:24]OFD Sender: No OFD packet to send [04:33:29]OFD Sender: No OFD packet to send [04:33:34]OFD Sender: No OFD packet to send [04:33:39]OFD Sender: No OFD packet to send [04:33:44]OFD Sender: No OFD packet to send [04:33:49]OFD Sender: No OFD packet to send [04:33:54]OFD Sender: No OFD packet to send [04:33:59]OFD Sender: No OFD packet to send [04:34:04]OFD Sender: No OFD packet to send [04:34:09]OFD Sender: No OFD packet to send [04:34:14]OFD Sender: No OFD packet to send [04:34:19]OFD Sender: No OFD packet to send [04:34:24]OFD Sender: No OFD packet to send [04:34:29]OFD Sender: No OFD packet to send [04:34:34]OFD Sender: No OFD packet to send [04:34:39]OFD Sender: No OFD packet to send [04:34:44]OFD Sender: No OFD packet to send [04:34:49]OFD Sender: No OFD packet to send [04:34:54]OFD Sender: No OFD packet to send [04:34:59]OFD Sender: No OFD packet to send [04:35:04]OFD Sender: No OFD packet to send [04:35:09]OFD Sender: No OFD packet to send [04:35:14]OFD Sender: No OFD packet to send [04:35:19]OFD Sender: No OFD packet to send [04:35:24]OFD Sender: No OFD packet to send [04:35:29]OFD Sender: No OFD packet to send [04:35:34]OFD Sender: No OFD packet to send [04:35:39]OFD Sender: No OFD packet to send [04:35:44]OFD Sender: No OFD packet to send [04:35:49]OFD Sender: No OFD packet to send [04:35:54]OFD Sender: No OFD packet to send [04:35:59]OFD Sender: No OFD packet to send [04:36:04]OFD Sender: No OFD packet to send [04:36:09]OFD Sender: No OFD packet to send [04:36:14]OFD Sender: No OFD packet to send [04:36:19]OFD Sender: No OFD packet to send [04:36:24]OFD Sender: No OFD packet to send [04:36:29]OFD Sender: No OFD packet to send [04:36:34]OFD Sender: No OFD packet to send [04:36:39]OFD Sender: No OFD packet to send [04:36:44]OFD Sender: No OFD packet to send [04:36:49]OFD Sender: No OFD packet to send [04:36:54]OFD Sender: No OFD packet to send [04:36:59]OFD Sender: No OFD packet to send [04:37:04]OFD Sender: No OFD packet to send [04:37:09]OFD Sender: No OFD packet to send [04:37:14]OFD Sender: No OFD packet to send [04:37:19]OFD Sender: No OFD packet to send [04:37:24]OFD Sender: No OFD packet to send [04:37:29]OFD Sender: No OFD packet to send [04:37:34]OFD Sender: No OFD packet to send [04:37:39]OFD Sender: No OFD packet to send [04:37:44]OFD Sender: No OFD packet to send [04:37:49]OFD Sender: No OFD packet to send [04:37:54]OFD Sender: No OFD packet to send [04:37:59]OFD Sender: No OFD packet to send [04:38:04]OFD Sender: No OFD packet to send [04:38:09]OFD Sender: No OFD packet to send [04:38:14]OFD Sender: No OFD packet to send [04:38:19]OFD Sender: No OFD packet to send [04:38:24]OFD Sender: No OFD packet to send [04:38:29]OFD Sender: No OFD packet to send [04:38:34]OFD Sender: No OFD packet to send [04:38:39]OFD Sender: No OFD packet to send [04:38:44]OFD Sender: No OFD packet to send [04:38:49]OFD Sender: No OFD packet to send [04:38:54]OFD Sender: No OFD packet to send [04:38:59]OFD Sender: No OFD packet to send [04:39:04]OFD Sender: No OFD packet to send [04:39:09]OFD Sender: No OFD packet to send [04:39:14]OFD Sender: No OFD packet to send [04:39:19]OFD Sender: No OFD packet to send [04:39:24]OFD Sender: No OFD packet to send [04:39:29]OFD Sender: No OFD packet to send [04:39:34]OFD Sender: No OFD packet to send [04:39:39]OFD Sender: No OFD packet to send [04:39:44]OFD Sender: No OFD packet to send [04:39:49]OFD Sender: No OFD packet to send [04:39:54]OFD Sender: No OFD packet to send [04:39:59]OFD Sender: No OFD packet to send [04:40:04]OFD Sender: No OFD packet to send [04:40:09]OFD Sender: No OFD packet to send [04:40:14]OFD Sender: No OFD packet to send [04:40:19]OFD Sender: No OFD packet to send [04:40:24]OFD Sender: No OFD packet to send [04:40:29]OFD Sender: No OFD packet to send [04:40:34]OFD Sender: No OFD packet to send [04:40:39]OFD Sender: No OFD packet to send [04:40:44]OFD Sender: No OFD packet to send [04:40:49]OFD Sender: No OFD packet to send [04:40:54]OFD Sender: No OFD packet to send [04:40:59]OFD Sender: No OFD packet to send [04:41:04]OFD Sender: No OFD packet to send [04:41:09]OFD Sender: No OFD packet to send [04:41:14]OFD Sender: No OFD packet to send [04:41:19]OFD Sender: No OFD packet to send [04:41:24]OFD Sender: No OFD packet to send [04:41:29]OFD Sender: No OFD packet to send [04:41:34]OFD Sender: No OFD packet to send [04:41:39]OFD Sender: No OFD packet to send [04:41:44]OFD Sender: No OFD packet to send [04:41:49]OFD Sender: No OFD packet to send [04:41:54]OFD Sender: No OFD packet to send [04:41:59]OFD Sender: No OFD packet to send [04:42:04]OFD Sender: No OFD packet to send [04:42:09]OFD Sender: No OFD packet to send [04:42:14]OFD Sender: No OFD packet to send [04:42:19]OFD Sender: No OFD packet to send [04:42:24]OFD Sender: No OFD packet to send [04:42:29]OFD Sender: No OFD packet to send [04:42:34]OFD Sender: No OFD packet to send [04:42:39]OFD Sender: No OFD packet to send [04:42:44]OFD Sender: No OFD packet to send [04:42:49]OFD Sender: No OFD packet to send [04:42:54]OFD Sender: No OFD packet to send [04:42:59]OFD Sender: No OFD packet to send [04:43:04]OFD Sender: No OFD packet to send [04:43:09]OFD Sender: No OFD packet to send [04:43:14]OFD Sender: No OFD packet to send [04:43:19]OFD Sender: No OFD packet to send [04:43:24]OFD Sender: No OFD packet to send [04:43:29]OFD Sender: No OFD packet to send [04:43:34]OFD Sender: No OFD packet to send [04:43:39]OFD Sender: No OFD packet to send [04:43:44]OFD Sender: No OFD packet to send [04:43:49]OFD Sender: No OFD packet to send [04:43:54]OFD Sender: No OFD packet to send [04:43:59]OFD Sender: No OFD packet to send [04:44:04]OFD Sender: No OFD packet to send [04:44:09]OFD Sender: No OFD packet to send [04:44:14]OFD Sender: No OFD packet to send [04:44:19]OFD Sender: No OFD packet to send [04:44:24]OFD Sender: No OFD packet to send [04:44:29]OFD Sender: No OFD packet to send [04:44:34]OFD Sender: No OFD packet to send [04:44:39]OFD Sender: No OFD packet to send [04:44:44]OFD Sender: No OFD packet to send [04:44:49]OFD Sender: No OFD packet to send [04:44:54]OFD Sender: No OFD packet to send [04:44:59]OFD Sender: No OFD packet to send [04:45:04]OFD Sender: No OFD packet to send [04:45:09]OFD Sender: No OFD packet to send [04:45:14]OFD Sender: No OFD packet to send [04:45:19]OFD Sender: No OFD packet to send [04:45:24]OFD Sender: No OFD packet to send [04:45:29]OFD Sender: No OFD packet to send [04:45:34]OFD Sender: No OFD packet to send [04:45:39]OFD Sender: No OFD packet to send [04:45:44]OFD Sender: No OFD packet to send [04:45:49]OFD Sender: No OFD packet to send [04:45:54]OFD Sender: No OFD packet to send [04:45:59]OFD Sender: No OFD packet to send [04:46:04]OFD Sender: No OFD packet to send [04:46:09]OFD Sender: No OFD packet to send [04:46:14]OFD Sender: No OFD packet to send [04:46:19]OFD Sender: No OFD packet to send [04:46:24]OFD Sender: No OFD packet to send [04:46:29]OFD Sender: No OFD packet to send [04:46:35]OFD Sender: No OFD packet to send [04:46:40]OFD Sender: No OFD packet to send [04:46:45]OFD Sender: No OFD packet to send [04:46:50]OFD Sender: No OFD packet to send [04:46:55]OFD Sender: No OFD packet to send [04:47:00]OFD Sender: No OFD packet to send [04:47:05]OFD Sender: No OFD packet to send [04:47:10]OFD Sender: No OFD packet to send [04:47:15]OFD Sender: No OFD packet to send [04:47:20]OFD Sender: No OFD packet to send [04:47:25]OFD Sender: No OFD packet to send [04:47:30]OFD Sender: No OFD packet to send [04:47:35]OFD Sender: No OFD packet to send [04:47:40]OFD Sender: No OFD packet to send [04:47:45]OFD Sender: No OFD packet to send [04:47:50]OFD Sender: No OFD packet to send [04:47:55]OFD Sender: No OFD packet to send [04:48:00]OFD Sender: No OFD packet to send [04:48:05]OFD Sender: No OFD packet to send [04:48:10]OFD Sender: No OFD packet to send [04:48:15]OFD Sender: No OFD packet to send [04:48:20]OFD Sender: No OFD packet to send [04:48:25]OFD Sender: No OFD packet to send [04:48:30]OFD Sender: No OFD packet to send [04:48:35]OFD Sender: No OFD packet to send [04:48:40]OFD Sender: No OFD packet to send [04:48:45]OFD Sender: No OFD packet to send [04:48:50]OFD Sender: No OFD packet to send [04:48:55]OFD Sender: No OFD packet to send [04:49:00]OFD Sender: No OFD packet to send [04:49:05]OFD Sender: No OFD packet to send [04:49:10]OFD Sender: No OFD packet to send [04:49:15]OFD Sender: No OFD packet to send [04:49:20]OFD Sender: No OFD packet to send [04:49:25]OFD Sender: No OFD packet to send [04:49:30]OFD Sender: No OFD packet to send [04:49:35]OFD Sender: No OFD packet to send [04:49:40]OFD Sender: No OFD packet to send [04:49:45]OFD Sender: No OFD packet to send [04:49:50]OFD Sender: No OFD packet to send [04:49:55]OFD Sender: No OFD packet to send [04:50:00]OFD Sender: No OFD packet to send [04:50:05]OFD Sender: No OFD packet to send [04:50:10]OFD Sender: No OFD packet to send [04:50:15]OFD Sender: No OFD packet to send [04:50:20]OFD Sender: No OFD packet to send [04:50:25]OFD Sender: No OFD packet to send [04:50:30]OFD Sender: No OFD packet to send [04:50:35]OFD Sender: No OFD packet to send [04:50:40]OFD Sender: No OFD packet to send [04:50:45]OFD Sender: No OFD packet to send [04:50:50]OFD Sender: No OFD packet to send [04:50:55]OFD Sender: No OFD packet to send [04:51:00]OFD Sender: No OFD packet to send [04:51:05]OFD Sender: No OFD packet to send [04:51:10]OFD Sender: No OFD packet to send [04:51:15]OFD Sender: No OFD packet to send [04:51:20]OFD Sender: No OFD packet to send [04:51:25]OFD Sender: No OFD packet to send [04:51:30]OFD Sender: No OFD packet to send [04:51:35]OFD Sender: No OFD packet to send [04:51:40]OFD Sender: No OFD packet to send [04:51:45]OFD Sender: No OFD packet to send [04:51:50]OFD Sender: No OFD packet to send [04:51:55]OFD Sender: No OFD packet to send [04:52:00]OFD Sender: No OFD packet to send [04:52:05]OFD Sender: No OFD packet to send [04:52:10]OFD Sender: No OFD packet to send [04:52:15]OFD Sender: No OFD packet to send [04:52:20]OFD Sender: No OFD packet to send [04:52:25]OFD Sender: No OFD packet to send [04:52:30]OFD Sender: No OFD packet to send [04:52:35]OFD Sender: No OFD packet to send [04:52:40]OFD Sender: No OFD packet to send [04:52:45]OFD Sender: No OFD packet to send [04:52:50]OFD Sender: No OFD packet to send [04:52:55]OFD Sender: No OFD packet to send [04:53:00]OFD Sender: No OFD packet to send [04:53:05]OFD Sender: No OFD packet to send [04:53:10]OFD Sender: No OFD packet to send [04:53:15]OFD Sender: No OFD packet to send [04:53:20]OFD Sender: No OFD packet to send [04:53:25]OFD Sender: No OFD packet to send [04:53:30]OFD Sender: No OFD packet to send [04:53:35]OFD Sender: No OFD packet to send [04:53:40]OFD Sender: No OFD packet to send [04:53:45]OFD Sender: No OFD packet to send [04:53:50]OFD Sender: No OFD packet to send [04:53:55]OFD Sender: No OFD packet to send [04:54:00]OFD Sender: No OFD packet to send [04:54:05]OFD Sender: No OFD packet to send [04:54:10]OFD Sender: No OFD packet to send [04:54:15]OFD Sender: No OFD packet to send [04:54:20]OFD Sender: No OFD packet to send [04:54:25]OFD Sender: No OFD packet to send [04:54:30]OFD Sender: No OFD packet to send [04:54:35]OFD Sender: No OFD packet to send [04:54:40]OFD Sender: No OFD packet to send [04:54:45]OFD Sender: No OFD packet to send [04:54:50]OFD Sender: No OFD packet to send [04:54:55]OFD Sender: No OFD packet to send [04:55:00]OFD Sender: No OFD packet to send [04:55:05]OFD Sender: No OFD packet to send [04:55:10]OFD Sender: No OFD packet to send [04:55:15]OFD Sender: No OFD packet to send [04:55:20]OFD Sender: No OFD packet to send [04:55:25]OFD Sender: No OFD packet to send [04:55:30]OFD Sender: No OFD packet to send [04:55:35]OFD Sender: No OFD packet to send [04:55:40]OFD Sender: No OFD packet to send [04:55:45]OFD Sender: No OFD packet to send [04:55:50]OFD Sender: No OFD packet to send [04:55:55]OFD Sender: No OFD packet to send [04:56:00]OFD Sender: No OFD packet to send [04:56:05]OFD Sender: No OFD packet to send [04:56:10]OFD Sender: No OFD packet to send [04:56:15]OFD Sender: No OFD packet to send [04:56:20]OFD Sender: No OFD packet to send [04:56:25]OFD Sender: No OFD packet to send [04:56:30]OFD Sender: No OFD packet to send [04:56:35]OFD Sender: No OFD packet to send [04:56:40]OFD Sender: No OFD packet to send [04:56:45]OFD Sender: No OFD packet to send [04:56:50]OFD Sender: No OFD packet to send [04:56:55]OFD Sender: No OFD packet to send [04:57:00]OFD Sender: No OFD packet to send [04:57:05]OFD Sender: No OFD packet to send [04:57:10]OFD Sender: No OFD packet to send [04:57:15]OFD Sender: No OFD packet to send [04:57:20]OFD Sender: No OFD packet to send [04:57:25]OFD Sender: No OFD packet to send [04:57:30]OFD Sender: No OFD packet to send [04:57:35]OFD Sender: No OFD packet to send [04:57:40]OFD Sender: No OFD packet to send [04:57:45]OFD Sender: No OFD packet to send [04:57:50]OFD Sender: No OFD packet to send [04:57:55]OFD Sender: No OFD packet to send [04:58:00]OFD Sender: No OFD packet to send [04:58:05]OFD Sender: No OFD packet to send [04:58:10]OFD Sender: No OFD packet to send [04:58:15]OFD Sender: No OFD packet to send [04:58:20]OFD Sender: No OFD packet to send [04:58:25]OFD Sender: No OFD packet to send [04:58:30]OFD Sender: No OFD packet to send [04:58:35]OFD Sender: No OFD packet to send [04:58:40]OFD Sender: No OFD packet to send [04:58:45]OFD Sender: No OFD packet to send [04:58:50]OFD Sender: No OFD packet to send [04:58:55]OFD Sender: No OFD packet to send [04:59:00]OFD Sender: No OFD packet to send [04:59:05]OFD Sender: No OFD packet to send [04:59:10]OFD Sender: No OFD packet to send [04:59:15]OFD Sender: No OFD packet to send [04:59:20]OFD Sender: No OFD packet to send [04:59:25]OFD Sender: No OFD packet to send [04:59:30]OFD Sender: No OFD packet to send [04:59:35]OFD Sender: No OFD packet to send [04:59:40]OFD Sender: No OFD packet to send [04:59:45]OFD Sender: No OFD packet to send [04:59:50]OFD Sender: No OFD packet to send [04:59:55]OFD Sender: No OFD packet to send [05:00:00]OFD Sender: No OFD packet to send [05:00:05]OFD Sender: No OFD packet to send [05:00:10]OFD Sender: No OFD packet to send [05:00:15]OFD Sender: No OFD packet to send [05:00:20]OFD Sender: No OFD packet to send [05:00:25]OFD Sender: No OFD packet to send [05:00:30]OFD Sender: No OFD packet to send [05:00:35]OFD Sender: No OFD packet to send [05:00:40]OFD Sender: No OFD packet to send [05:00:45]OFD Sender: No OFD packet to send [05:00:50]OFD Sender: No OFD packet to send [05:00:55]OFD Sender: No OFD packet to send [05:01:00]OFD Sender: No OFD packet to send [05:01:05]OFD Sender: No OFD packet to send [05:01:10]OFD Sender: No OFD packet to send [05:01:15]OFD Sender: No OFD packet to send [05:01:20]OFD Sender: No OFD packet to send [05:01:25]OFD Sender: No OFD packet to send [05:01:30]OFD Sender: No OFD packet to send [05:01:35]OFD Sender: No OFD packet to send [05:01:40]OFD Sender: No OFD packet to send [05:01:45]OFD Sender: No OFD packet to send [05:01:50]OFD Sender: No OFD packet to send [05:01:55]OFD Sender: No OFD packet to send [05:02:00]OFD Sender: No OFD packet to send [05:02:05]OFD Sender: No OFD packet to send [05:02:10]OFD Sender: No OFD packet to send [05:02:15]OFD Sender: No OFD packet to send [05:02:20]OFD Sender: No OFD packet to send [05:02:25]OFD Sender: No OFD packet to send [05:02:30]OFD Sender: No OFD packet to send [05:02:35]OFD Sender: No OFD packet to send [05:02:40]OFD Sender: No OFD packet to send [05:02:45]OFD Sender: No OFD packet to send [05:02:50]OFD Sender: No OFD packet to send [05:02:55]OFD Sender: No OFD packet to send [05:03:00]OFD Sender: No OFD packet to send [05:03:05]OFD Sender: No OFD packet to send [05:03:10]OFD Sender: No OFD packet to send [05:03:15]OFD Sender: No OFD packet to send [05:03:20]OFD Sender: No OFD packet to send [05:03:25]OFD Sender: No OFD packet to send [05:03:30]OFD Sender: No OFD packet to send [05:03:35]OFD Sender: No OFD packet to send [05:03:40]OFD Sender: No OFD packet to send [05:03:45]OFD Sender: No OFD packet to send [05:03:50]OFD Sender: No OFD packet to send [05:03:55]OFD Sender: No OFD packet to send [05:04:00]OFD Sender: No OFD packet to send [05:04:05]OFD Sender: No OFD packet to send [05:04:10]OFD Sender: No OFD packet to send [05:04:15]OFD Sender: No OFD packet to send [05:04:20]OFD Sender: No OFD packet to send [05:04:25]OFD Sender: No OFD packet to send [05:04:30]OFD Sender: No OFD packet to send [05:04:35]OFD Sender: No OFD packet to send [05:04:40]OFD Sender: No OFD packet to send [05:04:45]OFD Sender: No OFD packet to send [05:04:50]OFD Sender: No OFD packet to send [05:04:55]OFD Sender: No OFD packet to send [05:05:00]OFD Sender: No OFD packet to send [05:05:05]OFD Sender: No OFD packet to send [05:05:10]OFD Sender: No OFD packet to send [05:05:15]OFD Sender: No OFD packet to send [05:05:20]OFD Sender: No OFD packet to send [05:05:25]OFD Sender: No OFD packet to send [05:05:30]OFD Sender: No OFD packet to send [05:05:35]OFD Sender: No OFD packet to send [05:05:41]OFD Sender: No OFD packet to send [05:05:46]OFD Sender: No OFD packet to send [05:05:51]OFD Sender: No OFD packet to send [05:05:56]OFD Sender: No OFD packet to send [05:06:01]OFD Sender: No OFD packet to send [05:06:06]OFD Sender: No OFD packet to send [05:06:11]OFD Sender: No OFD packet to send [05:06:16]OFD Sender: No OFD packet to send [05:06:21]OFD Sender: No OFD packet to send [05:06:26]OFD Sender: No OFD packet to send [05:06:31]OFD Sender: No OFD packet to send [05:06:36]OFD Sender: No OFD packet to send [05:06:41]OFD Sender: No OFD packet to send [05:06:46]OFD Sender: No OFD packet to send [05:06:51]OFD Sender: No OFD packet to send [05:06:56]OFD Sender: No OFD packet to send [05:07:01]OFD Sender: No OFD packet to send [05:07:06]OFD Sender: No OFD packet to send [05:07:11]OFD Sender: No OFD packet to send [05:07:16]OFD Sender: No OFD packet to send [05:07:21]OFD Sender: No OFD packet to send [05:07:26]OFD Sender: No OFD packet to send [05:07:31]OFD Sender: No OFD packet to send [05:07:36]OFD Sender: No OFD packet to send [05:07:41]OFD Sender: No OFD packet to send [05:07:46]OFD Sender: No OFD packet to send [05:07:51]OFD Sender: No OFD packet to send [05:07:56]OFD Sender: No OFD packet to send [05:08:01]OFD Sender: No OFD packet to send [05:08:06]OFD Sender: No OFD packet to send [05:08:11]OFD Sender: No OFD packet to send [05:08:16]OFD Sender: No OFD packet to send [05:08:21]OFD Sender: No OFD packet to send [05:08:26]OFD Sender: No OFD packet to send [05:08:31]OFD Sender: No OFD packet to send [05:08:36]OFD Sender: No OFD packet to send [05:08:41]OFD Sender: No OFD packet to send [05:08:46]OFD Sender: No OFD packet to send [05:08:51]OFD Sender: No OFD packet to send [05:08:56]OFD Sender: No OFD packet to send [05:09:01]OFD Sender: No OFD packet to send [05:09:06]OFD Sender: No OFD packet to send [05:09:11]OFD Sender: No OFD packet to send [05:09:16]OFD Sender: No OFD packet to send [05:09:21]OFD Sender: No OFD packet to send [05:09:26]OFD Sender: No OFD packet to send [05:09:31]OFD Sender: No OFD packet to send [05:09:36]OFD Sender: No OFD packet to send [05:09:41]OFD Sender: No OFD packet to send [05:09:46]OFD Sender: No OFD packet to send [05:09:51]OFD Sender: No OFD packet to send [05:09:56]OFD Sender: No OFD packet to send [05:10:01]OFD Sender: No OFD packet to send [05:10:06]OFD Sender: No OFD packet to send [05:10:11]OFD Sender: No OFD packet to send [05:10:16]OFD Sender: No OFD packet to send [05:10:21]OFD Sender: No OFD packet to send [05:10:26]OFD Sender: No OFD packet to send [05:10:31]OFD Sender: No OFD packet to send [05:10:36]OFD Sender: No OFD packet to send [05:10:41]OFD Sender: No OFD packet to send [05:10:46]OFD Sender: No OFD packet to send [05:10:51]OFD Sender: No OFD packet to send [05:10:56]OFD Sender: No OFD packet to send [05:11:01]OFD Sender: No OFD packet to send [05:11:06]OFD Sender: No OFD packet to send [05:11:11]OFD Sender: No OFD packet to send [05:11:16]OFD Sender: No OFD packet to send [05:11:21]OFD Sender: No OFD packet to send [05:11:26]OFD Sender: No OFD packet to send [05:11:31]OFD Sender: No OFD packet to send [05:11:36]OFD Sender: No OFD packet to send [05:11:41]OFD Sender: No OFD packet to send [05:11:46]OFD Sender: No OFD packet to send [05:11:51]OFD Sender: No OFD packet to send [05:11:56]OFD Sender: No OFD packet to send [05:12:01]OFD Sender: No OFD packet to send [05:12:06]OFD Sender: No OFD packet to send [05:12:11]OFD Sender: No OFD packet to send [05:12:16]OFD Sender: No OFD packet to send [05:12:21]OFD Sender: No OFD packet to send [05:12:26]OFD Sender: No OFD packet to send [05:12:31]OFD Sender: No OFD packet to send [05:12:36]OFD Sender: No OFD packet to send [05:12:41]OFD Sender: No OFD packet to send [05:12:46]OFD Sender: No OFD packet to send [05:12:51]OFD Sender: No OFD packet to send [05:12:56]OFD Sender: No OFD packet to send [05:13:01]OFD Sender: No OFD packet to send [05:13:06]OFD Sender: No OFD packet to send [05:13:11]OFD Sender: No OFD packet to send [05:13:16]OFD Sender: No OFD packet to send [05:13:21]OFD Sender: No OFD packet to send [05:13:26]OFD Sender: No OFD packet to send [05:13:31]OFD Sender: No OFD packet to send [05:13:36]OFD Sender: No OFD packet to send [05:13:41]OFD Sender: No OFD packet to send [05:13:46]OFD Sender: No OFD packet to send [05:13:51]OFD Sender: No OFD packet to send [05:13:56]OFD Sender: No OFD packet to send [05:14:01]OFD Sender: No OFD packet to send [05:14:06]OFD Sender: No OFD packet to send [05:14:11]OFD Sender: No OFD packet to send [05:14:16]OFD Sender: No OFD packet to send [05:14:21]OFD Sender: No OFD packet to send [05:14:26]OFD Sender: No OFD packet to send [05:14:31]OFD Sender: No OFD packet to send [05:14:36]OFD Sender: No OFD packet to send [05:14:41]OFD Sender: No OFD packet to send [05:14:46]OFD Sender: No OFD packet to send [05:14:51]OFD Sender: No OFD packet to send [05:14:56]OFD Sender: No OFD packet to send [05:15:01]OFD Sender: No OFD packet to send [05:15: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:06]accept exits with 9 [05:16:06]New connection [05:16:06]New thread 3067030884 created [05:16:06]Thread 3067174244 joined [05:16:06]Waiting for new connection... [05:16:06] Sock 9.Parse request [05:16:06]Sock 9.Check first char [05:16:06]Sock 9.First char is OK [05:16:06]request: POST /json_proto HTTP/1.0 [05:16:06]Method: POST [05:16:06]URL: /json_proto [05:16:06]Method is POST - this is cgi request [05:16:06]url: /json_proto [05:16:06]query_string will be loaded in cgi processing [05:16:06]execute_cgi json_proto POST (null) [05:16:06]execute_cgi path=json_proto method=POST [05:16:06]POST find Content-Length [05:16:06]Host: 172.17.41.195:8080 [05:16:06]Content-Length: 1209 [05:16:06]Content-Type: application/json [05:16:06] [05:16:06]POST finish read [05:16:06]Found Content-Length = 1209 [05:16:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507394\u000A16.05.2024 04:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 15.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1120.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:16:06]execute_script... [05:16:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507394\u000A16.05.2024 04:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 15.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1120.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:16:06]POST & json_proto [05:16:06]process_json_proto [05:16:06]json parsed OK: [05:16:06]protocol is kg_v1.0 [05:16:06]action value=print_text [05:16:06]process_action print_text [05:16:06]cmd_print_text [05:16:06]ExternCall_PrintAddStr [05:16:06]wPrintStart [05:16:06]Write to MH i2c: 01 00 00 16 3B 51 [05:16:06]Write i2c OK [05:16:06]MH_I2C_Read... [05:16:06]Read from MH i2c: 01 [05:16:06]MH_I2C_Read... [05:16:06]Read from MH i2c: 01 07 00 [05:16:06]MH_I2C_Read... [05:16:06]Read from MH i2c: 01 07 00 16 3B 00 00 00 00 00 FF 0F 66 [05:16:06]RasterBufferAndPrint [05:16:06]line *****ТОВАРНЫЙ ЧЕК***** [05:16:06]line АЗС-91 [05:16:06]line Партнер нефть [05:16:06]line 02508201610067 [05:16:06]line Кассир : Пайзулдаева А. [05:16:06]line Счет N : (1)507394 [05:16:06]line 16.05.2024 04:58 [05:16:06]line ПРОДАЖА [05:16:06]line ТРК (МРК, ГНК): 21 [05:16:06]line Вид ГСМ : 2710194210 [05:16:06]line ДТ-К-5 [05:16:06]line 15.000 x 74.70 [05:16:06]line ИТОГ: 1120.50 [05:16:06]line Тип оплаты: Талоны: Топливная Карта [05:16:06]line 02750 [05:16:06]line ______________________ [05:16:06]line (подпись) [05:16:06]written 0, free lines is 4095 [05:16:06]Write to MH i2c: 01 00 00 2A 3B 65 [05:16:06]Write i2c OK [05:16:06]MH_I2C_Read... [05:16:06]Read from MH i2c: 01 [05:16:06]MH_I2C_Read... [05:16:06]Read from MH i2c: 01 07 00 [05:16:06]MH_I2C_Read... [05:16:06]Read from MH i2c: 01 07 00 2A 3B 00 00 00 00 00 10 0E 8A [05:16:06]RasterBufferAndPrint [05:16:06]line [05:16:06]line [05:16:06]line [05:16:06]line [05:16:06]line [05:16:06]written 0, free lines is 3601 [05:16:06]MH_Cut [05:16:06]Write to MH i2c: D1 01 00 31 3B 01 3E [05:16:06]Write i2c OK [05:16:06]MH_I2C_Read... [05:16:06]Read from MH i2c: D1 [05:16:06]MH_I2C_Read... [05:16:06]Read from MH i2c: D1 01 00 [05:16:06]MH_I2C_Read... [05:16:06]Read from MH i2c: D1 01 00 31 3B 00 3D [05:16:06]Write to MH i2c: 01 00 00 32 3B 6D [05:16:06]Write i2c OK [05:16:06]MH_I2C_Read... [05:16:07]*** Cut start [05:16:07]*** Purtial cut [05:16:07]*** CUTSNS_PIN = 0 [05:16:07]*** Stage 1: CUTSNS_PIN = 1 [05:16:09]Read from MH i2c: 01 [05:16:09]MH_I2C_Read... [05:16:09]*** Stop cut motor [05:16:09]*** Cut end [05:16:09]Read from MH i2c: 01 07 00 [05:16:09]MH_I2C_Read... [05:16:09]Read from MH i2c: 01 07 00 32 3B 00 00 00 00 00 FF 0F 82 [05:16:09]process_action print_text done [05:16:09]requested_data is exist [05:16:09]produce_requested_data [05:16:09]requested_item fm.sn is exist - process it [05:16:09]wFMCommunicate request_size=4 [05:16:09]MH_SAM_APDU [05:16:09]CAPDU: 80 11 00 00 [05:16:09]Write to MH i2c: E2 08 00 33 3B 80 11 00 00 00 00 00 00 E8 [05:16:09]Write i2c OK [05:16:09]MH_I2C_Read... [05:16:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:16:09]Read from MH i2c: E2 [05:16:09]MH_I2C_Read... [05:16:09]Read from MH i2c: E2 17 00 [05:16:09]MH_I2C_Read... [05:16:09]Read from MH i2c: E2 17 00 33 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3E [05:16:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [05:16:09]wFMCommunicate OK [05:16:09]requested_item fd.num is exist - process it [05:16:09]SAM_PROTO_GetFieldsCounters [05:16:09]wFMCommunicate request_size=4 [05:16:09]MH_SAM_APDU [05:16:09]CAPDU: 80 13 00 00 [05:16:09]Write to MH i2c: E2 08 00 34 3B 80 13 00 00 00 00 00 00 EB [05:16:09]Write i2c OK [05:16:09]MH_I2C_Read... [05:16:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:16:09]Read from MH i2c: E2 [05:16:09]MH_I2C_Read... [05:16:09]Read from MH i2c: E2 62 00 [05:16:09]MH_I2C_Read... [05:16:09]Read from MH i2c: E2 62 00 34 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 4F 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [05:16:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 4F 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:16:09]wFMCommunicate OK [05:16:09]SAM_PROTO_GetFieldsCounters done [05:16:09]requested_item shift.num is exist - process it [05:16:09]requested_item shift.opened is exist - process it [05:16:09]req_shift_opened [05:16:09]FM_GetShiftState [05:16:09]SAM_PROTO_GetShiftState [05:16:09]wFMCommunicate request_size=4 [05:16:09]MH_SAM_APDU [05:16:09]CAPDU: 80 13 01 00 [05:16:09]Write to MH i2c: E2 08 00 35 3B 80 13 01 00 00 00 00 00 ED [05:16:09]Write i2c OK [05:16:09]MH_I2C_Read... [05:16:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:16:09]Read from MH i2c: E2 [05:16:09]MH_I2C_Read... [05:16:09]Read from MH i2c: E2 0E 00 [05:16:09]MH_I2C_Read... [05:16:09]Read from MH i2c: E2 0E 00 35 3B 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 99 [05:16:09]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [05:16:09]wFMCommunicate OK [05:16:09]SAM_PROTO_GetShiftState done [05:16:09]FM_GetShiftState done [05:16:09]req_shift_opened done [05:16:09]requested_item shift.open_date is exist - process it [05:16:09]req_shift_open_date [05:16:09]req_shift_open_date done [05:16:09]produce_requested_data done [05:16:09]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67407,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [05:16:09]process_action_free print_text [05:16:09]json_value_free [05:16:09]json_value_free done [05:16:09]process_json_proto returns [05:16:09]Send response to host [05:16:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67407,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [05:16:09]free response buf [05:16:09]execute_script done [05:16:09]execute_script returns [05:16:09]free content buf [05:16:09]Sock 9.Close socket [05:16:09]Sock 9.Thread stoped [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:11]OFD Sender: No OFD packet to send [05:19:16]OFD Sender: No OFD packet to send [05:19:21]OFD Sender: No OFD packet to send [05:19:26]OFD Sender: No OFD packet to send [05:19:31]OFD Sender: No OFD packet to send [05:19:36]OFD Sender: No OFD packet to send [05:19:41]OFD Sender: No OFD packet to send [05:19:46]OFD Sender: No OFD packet to send [05:19:51]OFD Sender: No OFD packet to send [05:19:56]OFD Sender: No OFD packet to send [05:20:01]OFD Sender: No OFD packet to send [05:20:06]OFD Sender: No OFD packet to send [05:20:11]OFD Sender: No OFD packet to send [05:20:16]OFD Sender: No OFD packet to send [05:20:21]OFD Sender: No OFD packet to send [05:20:26]OFD Sender: No OFD packet to send [05:20:31]OFD Sender: No OFD packet to send [05:20:36]OFD Sender: No OFD packet to send [05:20:41]OFD Sender: No OFD packet to send [05:20:46]OFD Sender: No OFD packet to send [05:20:51]OFD Sender: No OFD packet to send [05:20:56]OFD Sender: No OFD packet to send [05:21:01]OFD Sender: No OFD packet to send [05:21:06]OFD Sender: No OFD packet to send [05:21:11]OFD Sender: No OFD packet to send [05:21:16]OFD Sender: No OFD packet to send [05:21:21]OFD Sender: No OFD packet to send [05:21:26]OFD Sender: No OFD packet to send [05:21:31]OFD Sender: No OFD packet to send [05:21:36]OFD Sender: No OFD packet to send [05:21:41]OFD Sender: No OFD packet to send [05:21:46]OFD Sender: No OFD packet to send [05:21:51]OFD Sender: No OFD packet to send [05:21:56]OFD Sender: No OFD packet to send [05:22:01]OFD Sender: No OFD packet to send [05:22:06]OFD Sender: No OFD packet to send [05:22:11]OFD Sender: No OFD packet to send [05:22:16]OFD Sender: No OFD packet to send [05:22:21]OFD Sender: No OFD packet to send [05:22:26]OFD Sender: No OFD packet to send [05:22:31]OFD Sender: No OFD packet to send [05:22:36]OFD Sender: No OFD packet to send [05:22:41]OFD Sender: No OFD packet to send [05:22:46]OFD Sender: No OFD packet to send [05:22:51]OFD Sender: No OFD packet to send [05:22:56]OFD Sender: No OFD packet to send [05:23:01]OFD Sender: No OFD packet to send [05:23:06]OFD Sender: No OFD packet to send [05:23:11]OFD Sender: No OFD packet to send [05:23:16]OFD Sender: No OFD packet to send [05:23:21]OFD Sender: No OFD packet to send [05:23:26]OFD Sender: No OFD packet to send [05:23:31]OFD Sender: No OFD packet to send [05:23:36]OFD Sender: No OFD packet to send [05:23:41]OFD Sender: No OFD packet to send [05:23:46]OFD Sender: No OFD packet to send [05:23:51]OFD Sender: No OFD packet to send [05:23:56]OFD Sender: No OFD packet to send [05:24:01]OFD Sender: No OFD packet to send [05:24:06]OFD Sender: No OFD packet to send [05:24:11]OFD Sender: No OFD packet to send [05:24:16]OFD Sender: No OFD packet to send [05:24:22]OFD Sender: No OFD packet to send [05:24:27]OFD Sender: No OFD packet to send [05:24:32]OFD Sender: No OFD packet to send [05:24:37]OFD Sender: No OFD packet to send [05:24:42]OFD Sender: No OFD packet to send [05:24:47]OFD Sender: No OFD packet to send [05:24:52]OFD Sender: No OFD packet to send [05:24:57]OFD Sender: No OFD packet to send [05:25:02]OFD Sender: No OFD packet to send [05:25:07]OFD Sender: No OFD packet to send [05:25:12]OFD Sender: No OFD packet to send [05:25:17]OFD Sender: No OFD packet to send [05:25:22]OFD Sender: No OFD packet to send [05:25:27]OFD Sender: No OFD packet to send [05:25:32]OFD Sender: No OFD packet to send [05:25:37]OFD Sender: No OFD packet to send [05:25:42]OFD Sender: No OFD packet to send [05:25:47]OFD Sender: No OFD packet to send [05:25:52]OFD Sender: No OFD packet to send [05:25:57]OFD Sender: No OFD packet to send [05:26:02]OFD Sender: No OFD packet to send [05:26:07]OFD Sender: No OFD packet to send [05:26:12]OFD Sender: No OFD packet to send [05:26:17]OFD Sender: No OFD packet to send [05:26:22]OFD Sender: No OFD packet to send [05:26:27]OFD Sender: No OFD packet to send [05:26:30]accept exits with 7 [05:26:30]New connection [05:26:30]New thread 3067174244 created [05:26:30]Thread 3067030884 joined [05:26:30]Waiting for new connection... [05:26:30] Sock 7.Parse request [05:26:30]Sock 7.Check first char [05:26:30]Sock 7.First char is OK [05:26:30]request: POST /json_proto HTTP/1.0 [05:26:30]Method: POST [05:26:30]URL: /json_proto [05:26:30]Method is POST - this is cgi request [05:26:30]url: /json_proto [05:26:30]query_string will be loaded in cgi processing [05:26:30]execute_cgi json_proto POST (null) [05:26:30]execute_cgi path=json_proto method=POST [05:26:30]POST find Content-Length [05:26:30]Host: 172.17.41.195:8080 [05:26:30]Content-Length: 682 [05:26:30]Content-Type: application/json [05:26:30] [05:26:30]POST finish read [05:26:30]Found Content-Length = 682 [05:26:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507395", "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.80, "quantity" : 29.950, "sum" : 2000.66, "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" ] } } [05:26:30]execute_script... [05:26: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)507395", "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.80, "quantity" : 29.950, "sum" : 2000.66, "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" ] } } [05:26:30]POST & json_proto [05:26:30]process_json_proto [05:26:30]json parsed OK: [05:26:30]protocol is kg_v1.0 [05:26:30]action value=close_receipt [05:26:30]process_action close_receipt [05:26:30]cmd_close_receipt [05:26:30]MH_GetDate [05:26:30]Write to MH i2c: F0 00 00 36 3B 60 [05:26:30]Write i2c OK [05:26:30]MH_I2C_Read... [05:26:30]Read from MH i2c: F0 [05:26:30]MH_I2C_Read... [05:26:30]Read from MH i2c: F0 09 00 [05:26:30]MH_I2C_Read... [05:26:30]Read from MH i2c: F0 09 00 36 3B 00 0B 99 45 66 FC 21 6F 64 A8 [05:26:30]GetLastDocTimeStamp 1715828780 [05:26:30]current date 1715837195 [05:26:30]FM_GetShiftState [05:26:30]SAM_PROTO_GetShiftState [05:26:30]wFMCommunicate request_size=4 [05:26:30]MH_SAM_APDU [05:26:30]CAPDU: 80 13 01 00 [05:26:30]Write to MH i2c: E2 08 00 37 3B 80 13 01 00 00 00 00 00 EF [05:26:30]Write i2c OK [05:26:30]MH_I2C_Read... [05:26:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:26:30]Read from MH i2c: E2 [05:26:30]MH_I2C_Read... [05:26:30]Read from MH i2c: E2 0E 00 [05:26:30]MH_I2C_Read... [05:26:30]Read from MH i2c: E2 0E 00 37 3B 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 9B [05:26:30]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [05:26:30]wFMCommunicate OK [05:26:30]SAM_PROTO_GetShiftState done [05:26:30]FM_GetShiftState done [05:26:30]opened in 1715818916 [05:26:30]opened+sec_in_day 1715905316 [05:26:30]quantity*price = 200066 [05:26:30]sum+1 = 200067 [05:26:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 6 16.05.2024 05:26 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67408 ФПД: 44796127106271 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T052635&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67408&fm=44796127106271&tin=02508201610067®Number=0000000000091845&sum=200000 [05:26:31]StoreToDocumentArchive [05:26:31]shift 357 fd 67408 [05:26:31]save to /storage/0357/doc_00067408 [05:26:31]save last doc name /storage/0357/doc_00067408 to /storage/kkm_last_doc_name [05:26:31]save OK [05:26:31]Clear old archive folders... [05:26:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:26:31]tlvbuf is 00C38BB0 [05:26:31]SAM_PROTO_ClearQueue [05:26:31]wFMCommunicate request_size=4 [05:26:31]MH_SAM_APDU [05:26:31]CAPDU: 80 09 00 00 [05:26:31]Write to MH i2c: E2 08 00 44 3B 80 09 00 00 00 00 00 00 F1 [05:26:31]Write i2c OK [05:26:31]MH_I2C_Read... [05:26:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:26:32]Read from MH i2c: E2 [05:26:32]MH_I2C_Read... [05:26:32]Read from MH i2c: E2 03 00 [05:26:32]MH_I2C_Read... [05:26:32]Read from MH i2c: E2 03 00 44 3B 00 90 00 F3 [05:26:32]RAPDU: 90 00 [05:26:32]wFMCommunicate OK [05:26:32]SAM_PROTO_ClearQueue done [05:26:32]KKMCreateOFDPacket [05:26:32]OFDProtocolAddRootSTLVToBuf [05:26:32]FM_MakeSignedData [05:26:32]FM_MakeSignedData [05:26:32]SAM_PROTO_SignData [05:26:32]wFMCommunicate request_size=4 [05:26:32]MH_SAM_APDU [05:26:32]CAPDU: 80 0D 01 02 [05:26:32]Write to MH i2c: E2 08 00 45 3B 80 0D 01 02 00 00 00 00 F9 [05:26:32]Write i2c OK [05:26:32]MH_I2C_Read... [05:26:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:26:32]Read from MH i2c: E2 [05:26:32]MH_I2C_Read... [05:26:32]Read from MH i2c: E2 03 00 [05:26:32]MH_I2C_Read... [05:26:32]Read from MH i2c: E2 03 00 45 3B 00 90 00 F4 [05:26:32]RAPDU: 90 00 [05:26:32]wFMCommunicate OK [05:26:32]wFMCommunicate request_size=255 [05:26:32]MH_SAM_APDU [05:26:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 74 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 82 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 FE 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 06 00 00 00 F4 03 04 00 0B 99 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 50 07 01 00 35 04 06 00 28 [05:26:32]Write to MH i2c: E2 02 01 46 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 74 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 82 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 FE 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 06 00 00 00 F4 03 04 00 0B 99 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 50 07 01 00 35 04 06 00 28 00 00 59 [05:26:32]Write i2c OK [05:26:32]MH_I2C_Read... [05:26:32]OFD Sender: No OFD packet to send [05:26:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:26:32]Read from MH i2c: E2 [05:26:32]MH_I2C_Read... [05:26:32]Read from MH i2c: E2 03 00 [05:26:32]MH_I2C_Read... [05:26:32]Read from MH i2c: E2 03 00 46 3B 00 90 00 F5 [05:26:32]RAPDU: 90 00 [05:26:32]wFMCommunicate OK [05:26:32]wFMCommunicate request_size=10 [05:26:32]MH_SAM_APDU [05:26:32]CAPDU: 80 0D 02 02 05 BD E9 3E 54 DF [05:26:32]Write to MH i2c: E2 0D 00 47 3B 80 0D 02 02 05 00 BD E9 3E 54 DF 00 00 1D [05:26:32]Write i2c OK [05:26:32]MH_I2C_Read... [05:26:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:26:32]Read from MH i2c: E2 [05:26:32]MH_I2C_Read... [05:26:32]Read from MH i2c: E2 03 00 [05:26:32]MH_I2C_Read... [05:26:32]Read from MH i2c: E2 03 00 47 3B 00 90 00 F6 [05:26:32]RAPDU: 90 00 [05:26:32]wFMCommunicate OK [05:26:32]wFMCommunicate request_size=4 [05:26:32]MH_SAM_APDU [05:26:32]CAPDU: 80 0D 03 02 [05:26:32]Write to MH i2c: E2 08 00 48 3B 80 0D 03 02 00 00 00 00 FE [05:26:32]Write i2c OK [05:26:32]MH_I2C_Read... [05:26:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:26:32]Read from MH i2c: E2 [05:26:32]MH_I2C_Read... [05:26:32]Read from MH i2c: E2 0B 00 [05:26:32]MH_I2C_Read... [05:26:32]Read from MH i2c: E2 0B 00 48 3B 00 E6 DC 4C B5 21 13 F8 47 90 00 35 [05:26:32]RAPDU: E6 DC 4C B5 21 13 F8 47 90 00 [05:26:32]wFMCommunicate OK [05:26:32]SAM_PROTO_SignData done [05:26:32]FM_MakeSignedData done [05:26:32]CreateOFDProtocolMessage [05:26:32]wFMCommunicate request_size=4 [05:26:32]MH_SAM_APDU [05:26:32]CAPDU: 80 11 00 00 [05:26:32]Write to MH i2c: E2 08 00 49 3B 80 11 00 00 00 00 00 00 FE [05:26:32]Write i2c OK [05:26:32]MH_I2C_Read... [05:26:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:26:32]Read from MH i2c: E2 [05:26:32]MH_I2C_Read... [05:26:32]Read from MH i2c: E2 17 00 [05:26:32]MH_I2C_Read... [05:26:32]Read from MH i2c: E2 17 00 49 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 54 [05:26:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [05:26:32]wFMCommunicate OK [05:26:32]CreateOFDProtocolMessage done [05:26:32]OFDSenderStorePacket 67408 [05:26:32]StoreOFDPacket docnum=67408 [05:26:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 C5 E0 07 01 D5 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 74 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 82 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 FE 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 06 00 00 00 F4 03 04 00 0B 99 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 50 07 01 00 35 04 06 00 28 BD E9 3E 54 DF E6 DC 4C B5 21 13 F8 47 [05:26:32]CheckFolder [05:26:32]dirname=/storage/ofd_packets [05:26:32]CheckFolder done [05:26:32]ProducePacketName [05:26:32]name=ofd_packets/00067408 [05:26:32]NVStorageSaveData ofd_packets/00067408 [05:26:32]File name is /storage/ofd_packets/00067408 [05:26:32]Write 301 bytes [05:26:32]NVStorageSaveData done [05:26:32]OFDSenderStorePacket done [05:26:32]KKMCreateOFDPacket done [05:26:32]NVStorageSaveData kkm_last_timestamp [05:26:32]File name is /storage/kkm_last_timestamp [05:26:32]Write 4 bytes [05:26:32]NVStorageSaveData done [05:26:32]ExternCall_PrintAddStr [05:26:32]wPrintStart [05:26:32]Write to MH i2c: 01 00 00 4A 3B 85 [05:26:32]Write i2c OK [05:26:32]MH_I2C_Read... [05:26:32]Read from MH i2c: 01 [05:26:32]MH_I2C_Read... [05:26:32]Read from MH i2c: 01 07 00 [05:26:32]MH_I2C_Read... [05:26:32]Read from MH i2c: 01 07 00 4A 3B 00 00 00 00 00 FF 0F 9A [05:26:32]RasterBufferAndPrint [05:26:32]line Счет N : (1)507395 [05:26:32]line ИНН: 02508201610067 [05:26:32]line Контрольно-Кассовый Чек [05:26:32]line ПРОДАЖА [05:26:32]line ТРК (МРК, ГНК) : 13 [05:26:32]line Товар: 2710124130 [05:26:32]line Аи-92-К-5 [05:26:32]line 29.950 * 66.80 [05:26:32]line = 2000.66 [05:26:32]line НДС 12% НСП 1% [05:26:32]line > о реализуемом товаре [05:26:32]line ОКРУГЛЕНИЕ: -0.66 [05:26:32]line ИТОГО: 2000.00 [05:26:32]line Внесено: 2000.00 [05:26:32]line СДАЧА: 0.00 [05:26:32]line НСП 1% : 17.70 [05:26:32]line НДС 12% : 212.46 [05:26:32]line Наличными: 2000.00 [05:26:32]line Безнал.: 0.00 [05:26:32]line Место: АЗС № 91 "Партнер Нефть" [05:26:32]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [05:26:32]line СНО: Общий режим [05:26:32]line Чек 6 16.05.2024 05:26 [05:26:32]line Смена: 357 ФФД: 1.0 [05:26:32]line ЗНМ: 0300000119 [05:26:32]line РНМ: 0000000000091845 [05:26:32]line Версия ККМ: 001 [05:26:32]line ФМ: 0000000000871829 [05:26:32]line ФД: 67408 [05:26:32]line ФПД: 44796127106271 [05:26:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T052635&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67408&fm=44796127106271&tin=02508201610067®Number=0000000000091845&sum=200000 [05:26:32]OFD Sender: Processing packet 67408 [packets to send 35, broken 34] [05:26:32]ProducePacketName [05:26:32]name=ofd_packets/00067408 [05:26:32]OFD Sender: To server: pG, [05:26:32]CommunicateWithHost lk.salyk.kg:30040 [05:26:32]ConnectInit lk.salyk.kg [05:26:32]written 0, free lines is 4095 [05:26:32]Connected sock=10 [05:26: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 38 32 39 0F 01 00 00 C5 E0 07 01 D5 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 74 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 82 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 FE 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 06 00 00 00 F4 03 04 00 0B 99 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 50 07 01 00 35 04 06 00 28 BD E9 3E 54 DF E6 DC 4C B5 21 13 F8 47 [05:26:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 C8 C0 47 00 80 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 38 32 39 10 04 04 00 50 07 01 00 F4 03 04 00 E6 40 45 66 B6 04 01 00 00 B8 3F E2 CA 43 C5 53 10 [05:26:33]CommunicateWithHost err = 0 [05:26:33]CheckOFDResponse [05:26:33]1017 (14) - 77093643461234 [05:26:33]1041 (16) - 0000000000871829 [05:26:33]1040 (4) - 67408 [05:26:33]1012 (4) - 15.05.2024 23:10 [05:26:33]1206 (1) - 0 [05:26:33]OFD Sender: Remove packet 67408 [05:26:33]ProducePacketName [05:26:33]name=ofd_packets/00067408 [05:26:33]NVStorageDeleteData [05:26:33]Write to MH i2c: 01 00 00 74 3B AF [05:26:33]Write i2c OK [05:26:33]MH_I2C_Read... [05:26:33]Read from MH i2c: 01 [05:26:33]MH_I2C_Read... [05:26:33]Read from MH i2c: 01 07 00 [05:26:33]MH_I2C_Read... [05:26:33]Read from MH i2c: 01 07 00 74 3B 00 00 00 00 00 DE 0C A0 [05:26:33]RasterBufferAndPrint [05:26:33]line [05:26:33]line [05:26:33]line [05:26:33]line [05:26:33]line [05:26:33]written 0, free lines is 3301 [05:26:33]MH_Cut [05:26:33]Write to MH i2c: D1 01 00 7B 3B 01 88 [05:26:33]Write i2c OK [05:26:33]MH_I2C_Read... [05:26:33]Read from MH i2c: D1 [05:26:33]MH_I2C_Read... [05:26:33]Read from MH i2c: D1 01 00 [05:26:33]MH_I2C_Read... [05:26:33]Read from MH i2c: D1 01 00 7B 3B 00 87 [05:26:33]Write to MH i2c: 01 00 00 7C 3B B7 [05:26:33]Write i2c OK [05:26:33]MH_I2C_Read... [05:26:33]OFD Sender: No OFD packet to send [05:26:34]*** Cut start [05:26:34]*** Purtial cut [05:26:34]*** Stage 1: CUTSNS_PIN = 1 [05:26:34]Read from MH i2c: 01 [05:26:34]MH_I2C_Read... [05:26:34]*** Stop cut motor [05:26:34]*** Cut end [05:26:34]Read from MH i2c: 01 07 00 [05:26:34]MH_I2C_Read... [05:26:34]Read from MH i2c: 01 07 00 7C 3B 00 00 00 00 00 FF 0F CC [05:26:34]process_action close_receipt done [05:26:34]requested_data is exist [05:26:34]produce_requested_data [05:26:34]requested_item fm.sn is exist - process it [05:26:34]wFMCommunicate request_size=4 [05:26:34]MH_SAM_APDU [05:26:34]CAPDU: 80 11 00 00 [05:26:34]Write to MH i2c: E2 08 00 7D 3B 80 11 00 00 00 00 00 00 32 [05:26:34]Write i2c OK [05:26:34]MH_I2C_Read... [05:26:34]Read from MH i2c: E2 [05:26:34]MH_I2C_Read... [05:26:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:26:34]Read from MH i2c: E2 17 00 [05:26:34]MH_I2C_Read... [05:26:34]Read from MH i2c: E2 17 00 7D 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 88 [05:26:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [05:26:34]wFMCommunicate OK [05:26:34]requested_item fd.num is exist - process it [05:26:34]SAM_PROTO_GetFieldsCounters [05:26:34]wFMCommunicate request_size=4 [05:26:34]MH_SAM_APDU [05:26:34]CAPDU: 80 13 00 00 [05:26:34]Write to MH i2c: E2 08 00 7E 3B 80 13 00 00 00 00 00 00 35 [05:26:34]Write i2c OK [05:26:34]MH_I2C_Read... [05:26:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:26:34]Read from MH i2c: E2 [05:26:34]MH_I2C_Read... [05:26:34]Read from MH i2c: E2 62 00 [05:26:34]MH_I2C_Read... [05:26:34]Read from MH i2c: E2 62 00 7E 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 50 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [05:26: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 50 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:26:34]wFMCommunicate OK [05:26:34]SAM_PROTO_GetFieldsCounters done [05:26:34]requested_item shift.num is exist - process it [05:26:34]requested_item shift.opened is exist - process it [05:26:34]req_shift_opened [05:26:34]FM_GetShiftState [05:26:34]SAM_PROTO_GetShiftState [05:26:34]wFMCommunicate request_size=4 [05:26:34]MH_SAM_APDU [05:26:34]CAPDU: 80 13 01 00 [05:26:34]Write to MH i2c: E2 08 00 7F 3B 80 13 01 00 00 00 00 00 37 [05:26:34]Write i2c OK [05:26:34]MH_I2C_Read... [05:26:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:26:34]Read from MH i2c: E2 [05:26:34]MH_I2C_Read... [05:26:34]Read from MH i2c: E2 0E 00 [05:26:34]MH_I2C_Read... [05:26:34]Read from MH i2c: E2 0E 00 7F 3B 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 E3 [05:26:34]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [05:26:34]wFMCommunicate OK [05:26:34]SAM_PROTO_GetShiftState done [05:26:34]FM_GetShiftState done [05:26:34]req_shift_opened done [05:26:34]requested_item shift.open_date is exist - process it [05:26:34]req_shift_open_date [05:26:34]req_shift_open_date done [05:26:34]produce_requested_data done [05:26:34]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67408,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [05:26:34]process_action_free close_receipt [05:26:34]json_value_free [05:26:34]json_value_free done [05:26:34]process_json_proto returns [05:26:34]Send response to host [05:26:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67408,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [05:26:34]free response buf [05:26:34]execute_script done [05:26:34]execute_script returns [05:26:34]free content buf [05:26:34]Sock 7.Close socket [05:26:34]Sock 7.Thread stoped [05:26:38]OFD Sender: No OFD packet to send [05:26:43]OFD Sender: No OFD packet to send [05:26:48]OFD Sender: No OFD packet to send [05:26:53]OFD Sender: No OFD packet to send [05:26:58]OFD Sender: No OFD packet to send [05:27:03]OFD Sender: No OFD packet to send [05:27:08]OFD Sender: No OFD packet to send [05:27:13]OFD Sender: No OFD packet to send [05:27:18]OFD Sender: No OFD packet to send [05:27:23]OFD Sender: No OFD packet to send [05:27:28]OFD Sender: No OFD packet to send [05:27:33]OFD Sender: No OFD packet to send [05:27:38]OFD Sender: No OFD packet to send [05:27:43]OFD Sender: No OFD packet to send [05:27:48]OFD Sender: No OFD packet to send [05:27:53]OFD Sender: No OFD packet to send [05:27:58]OFD Sender: No OFD packet to send [05:28:03]OFD Sender: No OFD packet to send [05:28:08]OFD Sender: No OFD packet to send [05:28:13]OFD Sender: No OFD packet to send [05:28:18]OFD Sender: No OFD packet to send [05:28:23]OFD Sender: No OFD packet to send [05:28:28]OFD Sender: No OFD packet to send [05:28:33]OFD Sender: No OFD packet to send [05:28:38]OFD Sender: No OFD packet to send [05:28:43]OFD Sender: No OFD packet to send [05:28:48]OFD Sender: No OFD packet to send [05:28:53]OFD Sender: No OFD packet to send [05:28:58]OFD Sender: No OFD packet to send [05:29:03]OFD Sender: No OFD packet to send [05:29:08]OFD Sender: No OFD packet to send [05:29:13]OFD Sender: No OFD packet to send [05:29:18]OFD Sender: No OFD packet to send [05:29:23]OFD Sender: No OFD packet to send [05:29:28]OFD Sender: No OFD packet to send [05:29:33]OFD Sender: No OFD packet to send [05:29:38]OFD Sender: No OFD packet to send [05:29:43]OFD Sender: No OFD packet to send [05:29:48]OFD Sender: No OFD packet to send [05:29:53]OFD Sender: No OFD packet to send [05:29:58]OFD Sender: No OFD packet to send [05:30:03]OFD Sender: No OFD packet to send [05:30:08]OFD Sender: No OFD packet to send [05:30:13]OFD Sender: No OFD packet to send [05:30:18]OFD Sender: No OFD packet to send [05:30:23]OFD Sender: No OFD packet to send [05:30:28]OFD Sender: No OFD packet to send [05:30:33]OFD Sender: No OFD packet to send [05:30:38]OFD Sender: No OFD packet to send [05:30:43]OFD Sender: No OFD packet to send [05:30:48]OFD Sender: No OFD packet to send [05:30:53]OFD Sender: No OFD packet to send [05:30:58]OFD Sender: No OFD packet to send [05:31:03]OFD Sender: No OFD packet to send [05:31:08]OFD Sender: No OFD packet to send [05:31:13]OFD Sender: No OFD packet to send [05:31:18]OFD Sender: No OFD packet to send [05:31:23]OFD Sender: No OFD packet to send [05:31:28]OFD Sender: No OFD packet to send [05:31:33]OFD Sender: No OFD packet to send [05:31:38]OFD Sender: No OFD packet to send [05:31:43]OFD Sender: No OFD packet to send [05:31:48]OFD Sender: No OFD packet to send [05:31:53]OFD Sender: No OFD packet to send [05:31:58]OFD Sender: No OFD packet to send [05:32:03]OFD Sender: No OFD packet to send [05:32:08]OFD Sender: No OFD packet to send [05:32:13]OFD Sender: No OFD packet to send [05:32:18]OFD Sender: No OFD packet to send [05:32:23]OFD Sender: No OFD packet to send [05:32:28]OFD Sender: No OFD packet to send [05:32:33]OFD Sender: No OFD packet to send [05:32: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:44]OFD Sender: No OFD packet to send [05:38:49]OFD Sender: No OFD packet to send [05:38:54]OFD Sender: No OFD packet to send [05:38:59]OFD Sender: No OFD packet to send [05:39:04]OFD Sender: No OFD packet to send [05:39:09]OFD Sender: No OFD packet to send [05:39:14]OFD Sender: No OFD packet to send [05:39:19]OFD Sender: No OFD packet to send [05:39:24]OFD Sender: No OFD packet to send [05:39:29]OFD Sender: No OFD packet to send [05:39:34]OFD Sender: No OFD packet to send [05:39:39]OFD Sender: No OFD packet to send [05:39:44]OFD Sender: No OFD packet to send [05:39:49]OFD Sender: No OFD packet to send [05:39:54]OFD Sender: No OFD packet to send [05:39:59]OFD Sender: No OFD packet to send [05:40:04]OFD Sender: No OFD packet to send [05:40:09]OFD Sender: No OFD packet to send [05:40:14]OFD Sender: No OFD packet to send [05:40:19]OFD Sender: No OFD packet to send [05:40:24]OFD Sender: No OFD packet to send [05:40:29]OFD Sender: No OFD packet to send [05:40:34]OFD Sender: No OFD packet to send [05:40:39]OFD Sender: No OFD packet to send [05:40:44]OFD Sender: No OFD packet to send [05:40:49]OFD Sender: No OFD packet to send [05:40:54]OFD Sender: No OFD packet to send [05:40:59]OFD Sender: No OFD packet to send [05:41:04]OFD Sender: No OFD packet to send [05:41:09]OFD Sender: No OFD packet to send [05:41:14]OFD Sender: No OFD packet to send [05:41:19]OFD Sender: No OFD packet to send [05:41:24]OFD Sender: No OFD packet to send [05:41:29]OFD Sender: No OFD packet to send [05:41:34]OFD Sender: No OFD packet to send [05:41:39]OFD Sender: No OFD packet to send [05:41:44]OFD Sender: No OFD packet to send [05:41:49]OFD Sender: No OFD packet to send [05:41:54]OFD Sender: No OFD packet to send [05:41:59]OFD Sender: No OFD packet to send [05:42:04]OFD Sender: No OFD packet to send [05:42:09]OFD Sender: No OFD packet to send [05:42:14]OFD Sender: No OFD packet to send [05:42:19]OFD Sender: No OFD packet to send [05:42:24]OFD Sender: No OFD packet to send [05:42:29]OFD Sender: No OFD packet to send [05:42:34]OFD Sender: No OFD packet to send [05:42:39]OFD Sender: No OFD packet to send [05:42:44]OFD Sender: No OFD packet to send [05:42:49]OFD Sender: No OFD packet to send [05:42:54]OFD Sender: No OFD packet to send [05:42:59]OFD Sender: No OFD packet to send [05:43:04]OFD Sender: No OFD packet to send [05:43:09]OFD Sender: No OFD packet to send [05:43:14]OFD Sender: No OFD packet to send [05:43:19]OFD Sender: No OFD packet to send [05:43:24]OFD Sender: No OFD packet to send [05:43:29]OFD Sender: No OFD packet to send [05:43:34]OFD Sender: No OFD packet to send [05:43:39]OFD Sender: No OFD packet to send [05:43:44]OFD Sender: No OFD packet to send [05:43:49]OFD Sender: No OFD packet to send [05:43:54]OFD Sender: No OFD packet to send [05:43:59]OFD Sender: No OFD packet to send [05:44:04]OFD Sender: No OFD packet to send [05:44:09]OFD Sender: No OFD packet to send [05:44:14]OFD Sender: No OFD packet to send [05:44:19]OFD Sender: No OFD packet to send [05:44:24]OFD Sender: No OFD packet to send [05:44:29]OFD Sender: No OFD packet to send [05:44:34]OFD Sender: No OFD packet to send [05:44:39]OFD Sender: No OFD packet to send [05:44:44]OFD Sender: No OFD packet to send [05:44:49]OFD Sender: No OFD packet to send [05:44:54]OFD Sender: No OFD packet to send [05:44:59]OFD Sender: No OFD packet to send [05:45:04]OFD Sender: No OFD packet to send [05:45:09]OFD Sender: No OFD packet to send [05:45:14]OFD Sender: No OFD packet to send [05:45:19]OFD Sender: No OFD packet to send [05:45:24]OFD Sender: No OFD packet to send [05:45:29]OFD Sender: No OFD packet to send [05:45:34]OFD Sender: No OFD packet to send [05:45:39]OFD Sender: No OFD packet to send [05:45:44]OFD Sender: No OFD packet to send [05:45:49]OFD Sender: No OFD packet to send [05:45:54]OFD Sender: No OFD packet to send [05:45:59]OFD Sender: No OFD packet to send [05:46:04]OFD Sender: No OFD packet to send [05:46:09]OFD Sender: No OFD packet to send [05:46:14]OFD Sender: No OFD packet to send [05:46:19]OFD Sender: No OFD packet to send [05:46:24]OFD Sender: No OFD packet to send [05:46:29]OFD Sender: No OFD packet to send [05:46:34]OFD Sender: No OFD packet to send [05:46:39]OFD Sender: No OFD packet to send [05:46:44]OFD Sender: No OFD packet to send [05:46:49]OFD Sender: No OFD packet to send [05:46:54]OFD Sender: No OFD packet to send [05:46:59]OFD Sender: No OFD packet to send [05:47:04]OFD Sender: No OFD packet to send [05:47:09]OFD Sender: No OFD packet to send [05:47:14]OFD Sender: No OFD packet to send [05:47:19]OFD Sender: No OFD packet to send [05:47:24]OFD Sender: No OFD packet to send [05:47:29]OFD Sender: No OFD packet to send [05:47:34]OFD Sender: No OFD packet to send [05:47:39]OFD Sender: No OFD packet to send [05:47:44]OFD Sender: No OFD packet to send [05:47:49]OFD Sender: No OFD packet to send [05:47:54]OFD Sender: No OFD packet to send [05:47:59]OFD Sender: No OFD packet to send [05:48:04]OFD Sender: No OFD packet to send [05:48:09]OFD Sender: No OFD packet to send [05:48:14]OFD Sender: No OFD packet to send [05:48:19]OFD Sender: No OFD packet to send [05:48:24]OFD Sender: No OFD packet to send [05:48:29]OFD Sender: No OFD packet to send [05:48:34]OFD Sender: No OFD packet to send [05:48:39]OFD Sender: No OFD packet to send [05:48:44]OFD Sender: No OFD packet to send [05:48:49]OFD Sender: No OFD packet to send [05:48:54]OFD Sender: No OFD packet to send [05:48:59]OFD Sender: No OFD packet to send [05:49:04]OFD Sender: No OFD packet to send [05:49:09]OFD Sender: No OFD packet to send [05:49:14]OFD Sender: No OFD packet to send [05:49:19]OFD Sender: No OFD packet to send [05:49:24]OFD Sender: No OFD packet to send [05:49:29]OFD Sender: No OFD packet to send [05:49:34]OFD Sender: No OFD packet to send [05:49:39]OFD Sender: No OFD packet to send [05:49:44]OFD Sender: No OFD packet to send [05:49:49]OFD Sender: No OFD packet to send [05:49:54]OFD Sender: No OFD packet to send [05:49:59]OFD Sender: No OFD packet to send [05:50:04]OFD Sender: No OFD packet to send [05:50:09]OFD Sender: No OFD packet to send [05:50:14]OFD Sender: No OFD packet to send [05:50:19]OFD Sender: No OFD packet to send [05:50:24]OFD Sender: No OFD packet to send [05:50:29]OFD Sender: No OFD packet to send [05:50:34]OFD Sender: No OFD packet to send [05:50:39]OFD Sender: No OFD packet to send [05:50:44]OFD Sender: No OFD packet to send [05:50:49]OFD Sender: No OFD packet to send [05:50:54]OFD Sender: No OFD packet to send [05:50:59]OFD Sender: No OFD packet to send [05:51:04]OFD Sender: No OFD packet to send [05:51:09]OFD Sender: No OFD packet to send [05:51:14]OFD Sender: No OFD packet to send [05:51:19]OFD Sender: No OFD packet to send [05:51:24]OFD Sender: No OFD packet to send [05:51:29]OFD Sender: No OFD packet to send [05:51:34]OFD Sender: No OFD packet to send [05:51:39]OFD Sender: No OFD packet to send [05:51:44]OFD Sender: No OFD packet to send [05:51:50]OFD Sender: No OFD packet to send [05:51:55]OFD Sender: No OFD packet to send [05:52:00]OFD Sender: No OFD packet to send [05:52:05]OFD Sender: No OFD packet to send [05:52:10]OFD Sender: No OFD packet to send [05:52:15]OFD Sender: No OFD packet to send [05:52:20]OFD Sender: No OFD packet to send [05:52:25]OFD Sender: No OFD packet to send [05:52:30]OFD Sender: No OFD packet to send [05:52:35]OFD Sender: No OFD packet to send [05:52:40]OFD Sender: No OFD packet to send [05:52:45]OFD Sender: No OFD packet to send [05:52:50]OFD Sender: No OFD packet to send [05:52:55]OFD Sender: No OFD packet to send [05:53:00]OFD Sender: No OFD packet to send [05:53:05]OFD Sender: No OFD packet to send [05:53:10]OFD Sender: No OFD packet to send [05:53:15]OFD Sender: No OFD packet to send [05:53:20]OFD Sender: No OFD packet to send [05:53:25]OFD Sender: No OFD packet to send [05:53:30]OFD Sender: No OFD packet to send [05:53:35]OFD Sender: No OFD packet to send [05:53:40]OFD Sender: No OFD packet to send [05:53:45]OFD Sender: No OFD packet to send [05:53:50]OFD Sender: No OFD packet to send [05:53:55]OFD Sender: No OFD packet to send [05:54:00]OFD Sender: No OFD packet to send [05:54:05]OFD Sender: No OFD packet to send [05:54:10]OFD Sender: No OFD packet to send [05:54:15]OFD Sender: No OFD packet to send [05:54:20]OFD Sender: No OFD packet to send [05:54:25]OFD Sender: No OFD packet to send [05:54:30]OFD Sender: No OFD packet to send [05:54:35]OFD Sender: No OFD packet to send [05:54:40]OFD Sender: No OFD packet to send [05:54:45]OFD Sender: No OFD packet to send [05:54:50]OFD Sender: No OFD packet to send [05:54:55]OFD Sender: No OFD packet to send [05:55:00]OFD Sender: No OFD packet to send [05:55:05]OFD Sender: No OFD packet to send [05:55:10]OFD Sender: No OFD packet to send [05:55:15]OFD Sender: No OFD packet to send [05:55:20]OFD Sender: No OFD packet to send [05:55:25]OFD Sender: No OFD packet to send [05:55:30]OFD Sender: No OFD packet to send [05:55:35]OFD Sender: No OFD packet to send [05:55:40]OFD Sender: No OFD packet to send [05:55:45]OFD Sender: No OFD packet to send [05:55:50]OFD Sender: No OFD packet to send [05:55:55]OFD Sender: No OFD packet to send [05:56:00]OFD Sender: No OFD packet to send [05:56:05]OFD Sender: No OFD packet to send [05:56:10]OFD Sender: No OFD packet to send [05:56:15]OFD Sender: No OFD packet to send [05:56:20]OFD Sender: No OFD packet to send [05:56:25]OFD Sender: No OFD packet to send [05:56:30]OFD Sender: No OFD packet to send [05:56:35]OFD Sender: No OFD packet to send [05:56:40]OFD Sender: No OFD packet to send [05:56:45]OFD Sender: No OFD packet to send [05:56:50]OFD Sender: No OFD packet to send [05:56:55]OFD Sender: No OFD packet to send [05:57:00]OFD Sender: No OFD packet to send [05:57:05]OFD Sender: No OFD packet to send [05:57:10]OFD Sender: No OFD packet to send [05:57:15]OFD Sender: No OFD packet to send [05:57:20]OFD Sender: No OFD packet to send [05:57:25]OFD Sender: No OFD packet to send [05:57:30]OFD Sender: No OFD packet to send [05:57:35]OFD Sender: No OFD packet to send [05:57:40]OFD Sender: No OFD packet to send [05:57:45]OFD Sender: No OFD packet to send [05:57:50]OFD Sender: No OFD packet to send [05:57:55]OFD Sender: No OFD packet to send [05:58:00]OFD Sender: No OFD packet to send [05:58:05]OFD Sender: No OFD packet to send [05:58:10]OFD Sender: No OFD packet to send [05:58:15]OFD Sender: No OFD packet to send [05:58:20]OFD Sender: No OFD packet to send [05:58:25]OFD Sender: No OFD packet to send [05:58:30]OFD Sender: No OFD packet to send [05:58:35]OFD Sender: No OFD packet to send [05:58:40]OFD Sender: No OFD packet to send [05:58:45]OFD Sender: No OFD packet to send [05:58:50]OFD Sender: No OFD packet to send [05:58:55]OFD Sender: No OFD packet to send [05:59:00]OFD Sender: No OFD packet to send [05:59:05]OFD Sender: No OFD packet to send [05:59:10]OFD Sender: No OFD packet to send [05:59:15]OFD Sender: No OFD packet to send [05:59:20]OFD Sender: No OFD packet to send [05:59:25]OFD Sender: No OFD packet to send [05:59:30]OFD Sender: No OFD packet to send [05:59:35]OFD Sender: No OFD packet to send [05:59:40]OFD Sender: No OFD packet to send [05:59:45]OFD Sender: No OFD packet to send [05:59:50]OFD Sender: No OFD packet to send [05:59:55]OFD Sender: No OFD packet to send [06:00:00]OFD Sender: No OFD packet to send [06:00:05]OFD Sender: No OFD packet to send [06:00:10]OFD Sender: No OFD packet to send [06:00:15]OFD Sender: No OFD packet to send [06:00:20]OFD Sender: No OFD packet to send [06:00:25]OFD Sender: No OFD packet to send [06:00:30]OFD Sender: No OFD packet to send [06:00:35]OFD Sender: No OFD packet to send [06:00:40]OFD Sender: No OFD packet to send [06:00:45]OFD Sender: No OFD packet to send [06:00:50]OFD Sender: No OFD packet to send [06:00:55]OFD Sender: No OFD packet to send [06:01:00]OFD Sender: No OFD packet to send [06:01:05]OFD Sender: No OFD packet to send [06:01:10]OFD Sender: No OFD packet to send [06:01:15]OFD Sender: No OFD packet to send [06:01:20]OFD Sender: No OFD packet to send [06:01:25]OFD Sender: No OFD packet to send [06:01:30]OFD Sender: No OFD packet to send [06:01:35]OFD Sender: No OFD packet to send [06:01:40]OFD Sender: No OFD packet to send [06:01:45]OFD Sender: No OFD packet to send [06:01:50]OFD Sender: No OFD packet to send [06:01:55]OFD Sender: No OFD packet to send [06:02:00]OFD Sender: No OFD packet to send [06:02:05]OFD Sender: No OFD packet to send [06:02:10]OFD Sender: No OFD packet to send [06:02:15]OFD Sender: No OFD packet to send [06:02:20]OFD Sender: No OFD packet to send [06:02:25]OFD Sender: No OFD packet to send [06:02:30]OFD Sender: No OFD packet to send [06:02:35]OFD Sender: No OFD packet to send [06:02:40]OFD Sender: No OFD packet to send [06:02:45]OFD Sender: No OFD packet to send [06:02:50]OFD Sender: No OFD packet to send [06:02:55]OFD Sender: No OFD packet to send [06:03:00]OFD Sender: No OFD packet to send [06:03:05]OFD Sender: No OFD packet to send [06:03:10]OFD Sender: No OFD packet to send [06:03:15]OFD Sender: No OFD packet to send [06:03:20]OFD Sender: No OFD packet to send [06:03:25]OFD Sender: No OFD packet to send [06:03:30]OFD Sender: No OFD packet to send [06:03:35]OFD Sender: No OFD packet to send [06:03:40]OFD Sender: No OFD packet to send [06:03:45]OFD Sender: No OFD packet to send [06:03:50]OFD Sender: No OFD packet to send [06:03:55]OFD Sender: No OFD packet to send [06:04:00]OFD Sender: No OFD packet to send [06:04:05]OFD Sender: No OFD packet to send [06:04:10]OFD Sender: No OFD packet to send [06:04:15]OFD Sender: No OFD packet to send [06:04:20]OFD Sender: No OFD packet to send [06:04:25]OFD Sender: No OFD packet to send [06:04:30]OFD Sender: No OFD packet to send [06:04:35]OFD Sender: No OFD packet to send [06:04:40]OFD Sender: No OFD packet to send [06:04:45]OFD Sender: No OFD packet to send [06:04:50]OFD Sender: No OFD packet to send [06:04:55]OFD Sender: No OFD packet to send [06:05:00]OFD Sender: No OFD packet to send [06:05:05]OFD Sender: No OFD packet to send [06:05:10]OFD Sender: No OFD packet to send [06:05:15]OFD Sender: No OFD packet to send [06:05:20]OFD Sender: No OFD packet to send [06:05:25]OFD Sender: No OFD packet to send [06:05:30]OFD Sender: No OFD packet to send [06:05:35]OFD Sender: No OFD packet to send [06:05:40]OFD Sender: No OFD packet to send [06:05:45]OFD Sender: No OFD packet to send [06:05:50]OFD Sender: No OFD packet to send [06:05:55]OFD Sender: No OFD packet to send [06:06:00]OFD Sender: No OFD packet to send [06:06:05]OFD Sender: No OFD packet to send [06:06:10]OFD Sender: No OFD packet to send [06:06:15]OFD Sender: No OFD packet to send [06:06:20]OFD Sender: No OFD packet to send [06:06:25]OFD Sender: No OFD packet to send [06:06:30]OFD Sender: No OFD packet to send [06:06:35]OFD Sender: No OFD packet to send [06:06:40]OFD Sender: No OFD packet to send [06:06:45]OFD Sender: No OFD packet to send [06:06:50]OFD Sender: No OFD packet to send [06:06:55]OFD Sender: No OFD packet to send [06:07:00]OFD Sender: No OFD packet to send [06:07:05]OFD Sender: No OFD packet to send [06:07:10]OFD Sender: No OFD packet to send [06:07:15]OFD Sender: No OFD packet to send [06:07:20]OFD Sender: No OFD packet to send [06:07:25]OFD Sender: No OFD packet to send [06:07:30]OFD Sender: No OFD packet to send [06:07:35]OFD Sender: No OFD packet to send [06:07:40]OFD Sender: No OFD packet to send [06:07:45]OFD Sender: No OFD packet to send [06:07:50]OFD Sender: No OFD packet to send [06:07:55]OFD Sender: No OFD packet to send [06:08:00]OFD Sender: No OFD packet to send [06:08:05]OFD Sender: No OFD packet to send [06:08:10]OFD Sender: No OFD packet to send [06:08:15]OFD Sender: No OFD packet to send [06:08:20]OFD Sender: No OFD packet to send [06:08:25]OFD Sender: No OFD packet to send [06:08:30]OFD Sender: No OFD packet to send [06:08:35]OFD Sender: No OFD packet to send [06:08:40]OFD Sender: No OFD packet to send [06:08:45]OFD Sender: No OFD packet to send [06:08:50]OFD Sender: No OFD packet to send [06:08:55]OFD Sender: No OFD packet to send [06:09:00]OFD Sender: No OFD packet to send [06:09:05]OFD Sender: No OFD packet to send [06:09:10]OFD Sender: No OFD packet to send [06:09:15]OFD Sender: No OFD packet to send [06:09:20]OFD Sender: No OFD packet to send [06:09:25]OFD Sender: No OFD packet to send [06:09:30]OFD Sender: No OFD packet to send [06:09:35]OFD Sender: No OFD packet to send [06:09:40]OFD Sender: No OFD packet to send [06:09:45]OFD Sender: No OFD packet to send [06:09:50]OFD Sender: No OFD packet to send [06:09:55]OFD Sender: No OFD packet to send [06:10:00]accept exits with 9 [06:10:00]New connection [06:10:00]New thread 3067030884 created [06:10:00]Thread 3067174244 joined [06:10:00]Waiting for new connection... [06:10:00] Sock 9.Parse request [06:10:00]Sock 9.Check first char [06:10:00]Sock 9.First char is OK [06:10:00]request: POST /json_proto HTTP/1.0 [06:10:00]Method: POST [06:10:00]URL: /json_proto [06:10:00]Method is POST - this is cgi request [06:10:00]url: /json_proto [06:10:00]query_string will be loaded in cgi processing [06:10:00]execute_cgi json_proto POST (null) [06:10:00]execute_cgi path=json_proto method=POST [06:10:00]POST find Content-Length [06:10:00]Host: 172.17.41.195:8080 [06:10:00]Content-Length: 677 [06:10:00]Content-Type: application/json [06:10:00] [06:10:00]POST finish read [06:10:00]Found Content-Length = 677 [06:10:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507396", "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.80, "quantity" : 5.990, "sum" : 400.13, "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:10:00]execute_script... [06:10: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)507396", "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.80, "quantity" : 5.990, "sum" : 400.13, "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:10:00]POST & json_proto [06:10:00]process_json_proto [06:10:00]json parsed OK: [06:10:00]protocol is kg_v1.0 [06:10:00]action value=close_receipt [06:10:00]process_action close_receipt [06:10:00]cmd_close_receipt [06:10:00]MH_GetDate [06:10:00]Write to MH i2c: F0 00 00 80 3B AA [06:10:00]Write i2c OK [06:10:00]MH_I2C_Read... [06:10:00]Read from MH i2c: F0 [06:10:00]MH_I2C_Read... [06:10:00]Read from MH i2c: F0 09 00 [06:10:00]MH_I2C_Read... [06:10:00]Read from MH i2c: F0 09 00 80 3B 00 3D A3 45 66 FC 21 6F 64 2E [06:10:00]GetLastDocTimeStamp 1715837195 [06:10:00]current date 1715839805 [06:10:00]FM_GetShiftState [06:10:00]SAM_PROTO_GetShiftState [06:10:00]wFMCommunicate request_size=4 [06:10:00]MH_SAM_APDU [06:10:00]CAPDU: 80 13 01 00 [06:10:00]Write to MH i2c: E2 08 00 81 3B 80 13 01 00 00 00 00 00 39 [06:10:00]Write i2c OK [06:10:00]MH_I2C_Read... [06:10:00]OFD Sender: No OFD packet to send [06:10:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:10:00]Read from MH i2c: E2 [06:10:00]MH_I2C_Read... [06:10:00]Read from MH i2c: E2 0E 00 [06:10:00]MH_I2C_Read... [06:10:00]Read from MH i2c: E2 0E 00 81 3B 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 E5 [06:10:00]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [06:10:00]wFMCommunicate OK [06:10:00]SAM_PROTO_GetShiftState done [06:10:00]FM_GetShiftState done [06:10:00]opened in 1715818916 [06:10:00]opened+sec_in_day 1715905316 [06:10:00]quantity*price = 40013 [06:10:00]sum+1 = 40014 [06:10:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.49 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 7 16.05.2024 06:10 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67409 ФПД: 118128852849595 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T061005&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67409&fm=118128852849595&tin=02508201610067®Number=0000000000091845&sum=40000 [06:10:02]StoreToDocumentArchive [06:10:02]shift 357 fd 67409 [06:10:02]save to /storage/0357/doc_00067409 [06:10:02]save last doc name /storage/0357/doc_00067409 to /storage/kkm_last_doc_name [06:10:02]save OK [06:10:02]Clear old archive folders... [06:10:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:10:02]tlvbuf is 00BA4520 [06:10:02]SAM_PROTO_ClearQueue [06:10:02]wFMCommunicate request_size=4 [06:10:02]MH_SAM_APDU [06:10:02]CAPDU: 80 09 00 00 [06:10:02]Write to MH i2c: E2 08 00 8E 3B 80 09 00 00 00 00 00 00 3B [06:10:02]Write i2c OK [06:10:02]MH_I2C_Read... [06:10:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:10:02]Read from MH i2c: E2 [06:10:02]MH_I2C_Read... [06:10:02]Read from MH i2c: E2 03 00 [06:10:02]MH_I2C_Read... [06:10:02]Read from MH i2c: E2 03 00 8E 3B 00 90 00 3D [06:10:02]RAPDU: 90 00 [06:10:02]wFMCommunicate OK [06:10:02]SAM_PROTO_ClearQueue done [06:10:02]KKMCreateOFDPacket [06:10:02]OFDProtocolAddRootSTLVToBuf [06:10:02]FM_MakeSignedData [06:10:02]FM_MakeSignedData [06:10:02]SAM_PROTO_SignData [06:10:02]wFMCommunicate request_size=4 [06:10:02]MH_SAM_APDU [06:10:02]CAPDU: 80 0D 01 02 [06:10:02]Write to MH i2c: E2 08 00 8F 3B 80 0D 01 02 00 00 00 00 43 [06:10:02]Write i2c OK [06:10:02]MH_I2C_Read... [06:10:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:10:02]Read from MH i2c: E2 [06:10:02]MH_I2C_Read... [06:10:02]Read from MH i2c: E2 03 00 [06:10:02]MH_I2C_Read... [06:10:02]Read from MH i2c: E2 03 00 8F 3B 00 90 00 3E [06:10:02]RAPDU: 90 00 [06:10:02]wFMCommunicate OK [06:10:02]wFMCommunicate request_size=255 [06:10:02]MH_SAM_APDU [06:10:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 17 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4D 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 99 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 07 00 00 00 F4 03 04 00 3D A3 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 51 07 01 00 35 04 06 00 6B [06:10:02]Write to MH i2c: E2 02 01 90 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 17 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4D 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 99 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 07 00 00 00 F4 03 04 00 3D A3 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 51 07 01 00 35 04 06 00 6B 00 00 6A [06:10:02]Write i2c OK [06:10:02]MH_I2C_Read... [06:10:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:10:02]Read from MH i2c: E2 [06:10:02]MH_I2C_Read... [06:10:02]Read from MH i2c: E2 03 00 [06:10:02]MH_I2C_Read... [06:10:02]Read from MH i2c: E2 03 00 90 3B 00 90 00 3F [06:10:02]RAPDU: 90 00 [06:10:02]wFMCommunicate OK [06:10:02]wFMCommunicate request_size=10 [06:10:02]MH_SAM_APDU [06:10:02]CAPDU: 80 0D 02 02 05 70 04 4F D3 BB [06:10:02]Write to MH i2c: E2 0D 00 91 3B 80 0D 02 02 05 00 70 04 4F D3 BB 00 00 A1 [06:10:02]Write i2c OK [06:10:02]MH_I2C_Read... [06:10:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:10:02]Read from MH i2c: E2 [06:10:02]MH_I2C_Read... [06:10:02]Read from MH i2c: E2 03 00 [06:10:02]MH_I2C_Read... [06:10:02]Read from MH i2c: E2 03 00 91 3B 00 90 00 40 [06:10:02]RAPDU: 90 00 [06:10:02]wFMCommunicate OK [06:10:02]wFMCommunicate request_size=4 [06:10:02]MH_SAM_APDU [06:10:02]CAPDU: 80 0D 03 02 [06:10:02]Write to MH i2c: E2 08 00 92 3B 80 0D 03 02 00 00 00 00 48 [06:10:02]Write i2c OK [06:10:02]MH_I2C_Read... [06:10:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:10:02]Read from MH i2c: E2 [06:10:02]MH_I2C_Read... [06:10:02]Read from MH i2c: E2 0B 00 [06:10:02]MH_I2C_Read... [06:10:02]Read from MH i2c: E2 0B 00 92 3B 00 57 9A 8E 95 39 F5 57 AD 90 00 8F [06:10:02]RAPDU: 57 9A 8E 95 39 F5 57 AD 90 00 [06:10:02]wFMCommunicate OK [06:10:02]SAM_PROTO_SignData done [06:10:02]FM_MakeSignedData done [06:10:02]CreateOFDProtocolMessage [06:10:02]wFMCommunicate request_size=4 [06:10:02]MH_SAM_APDU [06:10:02]CAPDU: 80 11 00 00 [06:10:02]Write to MH i2c: E2 08 00 93 3B 80 11 00 00 00 00 00 00 48 [06:10:02]Write i2c OK [06:10:02]MH_I2C_Read... [06:10:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:10:02]Read from MH i2c: E2 [06:10:02]MH_I2C_Read... [06:10:02]Read from MH i2c: E2 17 00 [06:10:02]MH_I2C_Read... [06:10:02]Read from MH i2c: E2 17 00 93 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 9E [06:10:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [06:10:02]wFMCommunicate OK [06:10:02]CreateOFDProtocolMessage done [06:10:02]OFDSenderStorePacket 67409 [06:10:02]StoreOFDPacket docnum=67409 [06:10:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 BB C4 07 01 78 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 17 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4D 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 99 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 07 00 00 00 F4 03 04 00 3D A3 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 51 07 01 00 35 04 06 00 6B 70 04 4F D3 BB 57 9A 8E 95 39 F5 57 AD [06:10:02]CheckFolder [06:10:02]dirname=/storage/ofd_packets [06:10:02]CheckFolder done [06:10:02]ProducePacketName [06:10:02]name=ofd_packets/00067409 [06:10:02]NVStorageSaveData ofd_packets/00067409 [06:10:02]File name is /storage/ofd_packets/00067409 [06:10:02]Write 301 bytes [06:10:02]NVStorageSaveData done [06:10:02]OFDSenderStorePacket done [06:10:02]KKMCreateOFDPacket done [06:10:02]NVStorageSaveData kkm_last_timestamp [06:10:02]File name is /storage/kkm_last_timestamp [06:10:02]Write 4 bytes [06:10:02]NVStorageSaveData done [06:10:02]ExternCall_PrintAddStr [06:10:02]wPrintStart [06:10:02]Write to MH i2c: 01 00 00 94 3B CF [06:10:02]Write i2c OK [06:10:02]MH_I2C_Read... [06:10:02]Read from MH i2c: 01 [06:10:02]MH_I2C_Read... [06:10:02]Read from MH i2c: 01 07 00 [06:10:02]MH_I2C_Read... [06:10:02]Read from MH i2c: 01 07 00 94 3B 00 00 00 00 00 FF 0F E4 [06:10:02]RasterBufferAndPrint [06:10:02]line Счет N : (1)507396 [06:10:02]line ИНН: 02508201610067 [06:10:02]line Контрольно-Кассовый Чек [06:10:02]line ПРОДАЖА [06:10:02]line ТРК (МРК, ГНК) : 33 [06:10:02]line Товар: 2710124130 [06:10:02]line Аи-92-К-5 [06:10:02]line 5.990 * 66.80 [06:10:02]line = 400.13 [06:10:02]line НДС 12% НСП 1% [06:10:02]line > о реализуемом товаре [06:10:02]line ОКРУГЛЕНИЕ: -0.13 [06:10:02]line ИТОГО: 400.00 [06:10:02]line Внесено: 400.00 [06:10:02]line СДАЧА: 0.00 [06:10:02]line НСП 1% : 3.54 [06:10:02]line НДС 12% : 42.49 [06:10:02]line Наличными: 400.00 [06:10:02]line Безнал.: 0.00 [06:10:02]line Место: АЗС № 91 "Партнер Нефть" [06:10:02]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [06:10:02]line СНО: Общий режим [06:10:02]line Чек 7 16.05.2024 06:10 [06:10:02]line Смена: 357 ФФД: 1.0 [06:10:02]line ЗНМ: 0300000119 [06:10:02]line РНМ: 0000000000091845 [06:10:02]line Версия ККМ: 001 [06:10:02]line ФМ: 0000000000871829 [06:10:02]line ФД: 67409 [06:10:02]line ФПД: 118128852849595 [06:10:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T061005&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67409&fm=118128852849595&tin=02508201610067®Number=0000000000091845&sum=40000 [06:10:02]OFD Sender: Processing packet 67409 [packets to send 35, broken 34] [06:10:02]ProducePacketName [06:10:02]name=ofd_packets/00067409 [06:10:02]OFD Sender: To server: pG, [06:10:02]CommunicateWithHost lk.salyk.kg:30040 [06:10:02]ConnectInit lk.salyk.kg [06:10:02]written 0, free lines is 4095 [06:10:03]Connected sock=10 [06:10:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 BB C4 07 01 78 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 17 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4D 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 99 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 07 00 00 00 F4 03 04 00 3D A3 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 51 07 01 00 35 04 06 00 6B 70 04 4F D3 BB 57 9A 8E 95 39 F5 57 AD [06:10:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 2B D0 47 00 B7 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 38 32 39 10 04 04 00 51 07 01 00 F4 03 04 00 18 4B 45 66 B6 04 01 00 00 3C 62 E9 38 06 AF 31 9D [06:10:03]CommunicateWithHost err = 0 [06:10:03]CheckOFDResponse [06:10:03]1017 (14) - 77093643461234 [06:10:03]1041 (16) - 0000000000871829 [06:10:03]1040 (4) - 67409 [06:10:03]1012 (4) - 15.05.2024 23:54 [06:10:03]1206 (1) - 0 [06:10:03]OFD Sender: Remove packet 67409 [06:10:03]ProducePacketName [06:10:03]name=ofd_packets/00067409 [06:10:03]NVStorageDeleteData [06:10:03]Write to MH i2c: 01 00 00 BE 3B F9 [06:10:03]Write i2c OK [06:10:03]MH_I2C_Read... [06:10:03]Read from MH i2c: 01 [06:10:03]MH_I2C_Read... [06:10:03]Read from MH i2c: 01 07 00 [06:10:03]MH_I2C_Read... [06:10:03]Read from MH i2c: 01 07 00 BE 3B 00 00 00 00 00 D3 0C DF [06:10:03]RasterBufferAndPrint [06:10:03]line [06:10:03]line [06:10:03]line [06:10:03]line [06:10:03]line [06:10:03]written 0, free lines is 3289 [06:10:03]MH_Cut [06:10:03]Write to MH i2c: D1 01 00 C5 3B 01 D2 [06:10:03]Write i2c OK [06:10:03]MH_I2C_Read... [06:10:03]Read from MH i2c: D1 [06:10:03]MH_I2C_Read... [06:10:03]Read from MH i2c: D1 01 00 [06:10:03]MH_I2C_Read... [06:10:03]Read from MH i2c: D1 01 00 C5 3B 00 D1 [06:10:03]Write to MH i2c: 01 00 00 C6 3B 01 [06:10:03]Write i2c OK [06:10:03]MH_I2C_Read... [06:10:03]OFD Sender: No OFD packet to send [06:10:04]*** Cut start [06:10:04]*** Purtial cut [06:10:04]*** CUTSNS_PIN = 0 [06:10:04]*** Stage 1: CUTSNS_PIN = 1 [06:10:06]Read from MH i2c: 01 [06:10:06]MH_I2C_Read... [06:10:06]*** Stop cut motor [06:10:06]*** Cut end [06:10:06]Read from MH i2c: 01 07 00 [06:10:06]MH_I2C_Read... [06:10:06]Read from MH i2c: 01 07 00 C6 3B 00 00 00 00 00 FF 0F 16 [06:10:06]process_action close_receipt done [06:10:06]requested_data is exist [06:10:06]produce_requested_data [06:10:06]requested_item fm.sn is exist - process it [06:10:06]wFMCommunicate request_size=4 [06:10:06]MH_SAM_APDU [06:10:06]CAPDU: 80 11 00 00 [06:10:06]Write to MH i2c: E2 08 00 C7 3B 80 11 00 00 00 00 00 00 7C [06:10:06]Write i2c OK [06:10:06]MH_I2C_Read... [06:10:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:10:06]Read from MH i2c: E2 [06:10:06]MH_I2C_Read... [06:10:06]Read from MH i2c: E2 17 00 [06:10:06]MH_I2C_Read... [06:10:06]Read from MH i2c: E2 17 00 C7 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D2 [06:10:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [06:10:06]wFMCommunicate OK [06:10:06]requested_item fd.num is exist - process it [06:10:06]SAM_PROTO_GetFieldsCounters [06:10:06]wFMCommunicate request_size=4 [06:10:06]MH_SAM_APDU [06:10:06]CAPDU: 80 13 00 00 [06:10:06]Write to MH i2c: E2 08 00 C8 3B 80 13 00 00 00 00 00 00 7F [06:10:06]Write i2c OK [06:10:06]MH_I2C_Read... [06:10:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:10:06]Read from MH i2c: E2 [06:10:06]MH_I2C_Read... [06:10:06]Read from MH i2c: E2 62 00 [06:10:06]MH_I2C_Read... [06:10:06]Read from MH i2c: E2 62 00 C8 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 51 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [06:10:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 51 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:10:06]wFMCommunicate OK [06:10:06]SAM_PROTO_GetFieldsCounters done [06:10:06]requested_item shift.num is exist - process it [06:10:06]requested_item shift.opened is exist - process it [06:10:06]req_shift_opened [06:10:06]FM_GetShiftState [06:10:06]SAM_PROTO_GetShiftState [06:10:06]wFMCommunicate request_size=4 [06:10:06]MH_SAM_APDU [06:10:06]CAPDU: 80 13 01 00 [06:10:06]Write to MH i2c: E2 08 00 C9 3B 80 13 01 00 00 00 00 00 81 [06:10:06]Write i2c OK [06:10:06]MH_I2C_Read... [06:10:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:10:06]Read from MH i2c: E2 [06:10:06]MH_I2C_Read... [06:10:06]Read from MH i2c: E2 0E 00 [06:10:06]MH_I2C_Read... [06:10:06]Read from MH i2c: E2 0E 00 C9 3B 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 2D [06:10:06]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [06:10:06]wFMCommunicate OK [06:10:06]SAM_PROTO_GetShiftState done [06:10:06]FM_GetShiftState done [06:10:06]req_shift_opened done [06:10:06]requested_item shift.open_date is exist - process it [06:10:06]req_shift_open_date [06:10:06]req_shift_open_date done [06:10:06]produce_requested_data done [06:10:06]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67409,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [06:10:06]process_action_free close_receipt [06:10:06]json_value_free [06:10:06]json_value_free done [06:10:06]process_json_proto returns [06:10:06]Send response to host [06:10:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67409,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [06:10:06]free response buf [06:10:06]execute_script done [06:10:06]execute_script returns [06:10:06]free content buf [06:10:06]Sock 9.Close socket [06:10:06]Sock 9.Thread stoped [06:10:08]OFD Sender: No OFD packet to send [06:10:13]OFD Sender: No OFD packet to send [06:10:18]OFD Sender: No OFD packet to send [06:10:23]OFD Sender: No OFD packet to send [06:10:28]OFD Sender: No OFD packet to send [06:10:33]OFD Sender: No OFD packet to send [06:10:38]OFD Sender: No OFD packet to send [06:10:43]OFD Sender: No OFD packet to send [06:10:48]OFD Sender: No OFD packet to send [06:10:53]OFD Sender: No OFD packet to send [06:10:58]OFD Sender: No OFD packet to send [06:11:03]OFD Sender: No OFD packet to send [06:11:08]OFD Sender: No OFD packet to send [06:11:13]OFD Sender: No OFD packet to send [06:11:18]OFD Sender: No OFD packet to send [06:11:23]OFD Sender: No OFD packet to send [06:11:28]OFD Sender: No OFD packet to send [06:11:33]OFD Sender: No OFD packet to send [06:11:38]OFD Sender: No OFD packet to send [06:11:43]OFD Sender: No OFD packet to send [06:11:48]OFD Sender: No OFD packet to send [06:11:53]OFD Sender: No OFD packet to send [06:11:58]OFD Sender: No OFD packet to send [06:12:03]OFD Sender: No OFD packet to send [06:12:08]OFD Sender: No OFD packet to send [06:12:13]OFD Sender: No OFD packet to send [06:12:18]OFD Sender: No OFD packet to send [06:12:23]OFD Sender: No OFD packet to send [06:12:28]OFD Sender: No OFD packet to send [06:12:33]OFD Sender: No OFD packet to send [06:12:38]OFD Sender: No OFD packet to send [06:12:43]OFD Sender: No OFD packet to send [06:12:48]OFD Sender: No OFD packet to send [06:12:53]OFD Sender: No OFD packet to send [06:12:58]OFD Sender: No OFD packet to send [06:13:03]OFD Sender: No OFD packet to send [06:13:08]OFD Sender: No OFD packet to send [06:13:13]OFD Sender: No OFD packet to send [06:13:18]OFD Sender: No OFD packet to send [06:13:23]OFD Sender: No OFD packet to send [06:13:28]OFD Sender: No OFD packet to send [06:13:33]OFD Sender: No OFD packet to send [06:13:38]OFD Sender: No OFD packet to send [06:13:43]OFD Sender: No OFD packet to send [06:13:48]OFD Sender: No OFD packet to send [06:13:53]OFD Sender: No OFD packet to send [06:13:58]OFD Sender: No OFD packet to send [06:14:03]OFD Sender: No OFD packet to send [06:14:08]OFD Sender: No OFD packet to send [06:14:13]OFD Sender: No OFD packet to send [06:14:18]OFD Sender: No OFD packet to send [06:14:23]OFD Sender: No OFD packet to send [06:14:28]OFD Sender: No OFD packet to send [06:14:33]OFD Sender: No OFD packet to send [06:14:38]OFD Sender: No OFD packet to send [06:14:43]OFD Sender: No OFD packet to send [06:14:49]OFD Sender: No OFD packet to send [06:14:54]OFD Sender: No OFD packet to send [06:14:59]OFD Sender: No OFD packet to send [06:15:04]OFD Sender: No OFD packet to send [06:15:09]OFD Sender: No OFD packet to send [06:15:14]OFD Sender: No OFD packet to send [06:15:19]OFD Sender: No OFD packet to send [06:15:24]OFD Sender: No OFD packet to send [06:15:29]OFD Sender: No OFD packet to send [06:15:34]OFD Sender: No OFD packet to send [06:15:39]OFD Sender: No OFD packet to send [06:15:44]OFD Sender: No OFD packet to send [06:15:49]OFD Sender: No OFD packet to send [06:15:54]OFD Sender: No OFD packet to send [06:15:59]OFD Sender: No OFD packet to send [06:16:04]OFD Sender: No OFD packet to send [06:16:09]OFD Sender: No OFD packet to send [06:16:14]OFD Sender: No OFD packet to send [06:16:19]OFD Sender: No OFD packet to send [06:16:24]OFD Sender: No OFD packet to send [06:16:29]OFD Sender: No OFD packet to send [06:16:34]OFD Sender: No OFD packet to send [06:16:39]OFD Sender: No OFD packet to send [06:16:44]OFD Sender: No OFD packet to send [06:16:49]OFD Sender: No OFD packet to send [06:16:54]OFD Sender: No OFD packet to send [06:16:59]OFD Sender: No OFD packet to send [06:17:04]OFD Sender: No OFD packet to send [06:17:09]OFD Sender: No OFD packet to send [06:17:14]OFD Sender: No OFD packet to send [06:17:19]OFD Sender: No OFD packet to send [06:17:24]OFD Sender: No OFD packet to send [06:17:29]OFD Sender: No OFD packet to send [06:17:34]OFD Sender: No OFD packet to send [06:17:39]OFD Sender: No OFD packet to send [06:17:44]OFD Sender: No OFD packet to send [06:17:49]OFD Sender: No OFD packet to send [06:17:54]OFD Sender: No OFD packet to send [06:17:59]OFD Sender: No OFD packet to send [06:18:04]OFD Sender: No OFD packet to send [06:18:09]OFD Sender: No OFD packet to send [06:18:14]OFD Sender: No OFD packet to send [06:18:19]OFD Sender: No OFD packet to send [06:18:24]OFD Sender: No OFD packet to send [06:18:29]OFD Sender: No OFD packet to send [06:18:34]OFD Sender: No OFD packet to send [06:18:39]OFD Sender: No OFD packet to send [06:18:44]OFD Sender: No OFD packet to send [06:18:49]OFD Sender: No OFD packet to send [06:18:54]OFD Sender: No OFD packet to send [06:18:59]OFD Sender: No OFD packet to send [06:19:04]OFD Sender: No OFD packet to send [06:19:09]OFD Sender: No OFD packet to send [06:19:14]OFD Sender: No OFD packet to send [06:19:19]OFD Sender: No OFD packet to send [06:19:24]OFD Sender: No OFD packet to send [06:19:29]OFD Sender: No OFD packet to send [06:19:34]OFD Sender: No OFD packet to send [06:19:39]OFD Sender: No OFD packet to send [06:19:44]OFD Sender: No OFD packet to send [06:19:49]OFD Sender: No OFD packet to send [06:19:54]OFD Sender: No OFD packet to send [06:19:59]OFD Sender: No OFD packet to send [06:20:04]OFD Sender: No OFD packet to send [06:20:09]OFD Sender: No OFD packet to send [06:20:14]OFD Sender: No OFD packet to send [06:20:19]OFD Sender: No OFD packet to send [06:20:24]OFD Sender: No OFD packet to send [06:20:29]OFD Sender: No OFD packet to send [06:20:34]OFD Sender: No OFD packet to send [06:20:39]OFD Sender: No OFD packet to send [06:20:44]OFD Sender: No OFD packet to send [06:20:49]OFD Sender: No OFD packet to send [06:20:54]OFD Sender: No OFD packet to send [06:20:59]OFD Sender: No OFD packet to send [06:21:04]OFD Sender: No OFD packet to send [06:21:09]OFD Sender: No OFD packet to send [06:21:14]OFD Sender: No OFD packet to send [06:21:19]OFD Sender: No OFD packet to send [06:21:24]OFD Sender: No OFD packet to send [06:21:29]OFD Sender: No OFD packet to send [06:21:34]OFD Sender: No OFD packet to send [06:21:39]OFD Sender: No OFD packet to send [06:21:44]OFD Sender: No OFD packet to send [06:21:49]OFD Sender: No OFD packet to send [06:21:54]OFD Sender: No OFD packet to send [06:21:59]OFD Sender: No OFD packet to send [06:22:04]OFD Sender: No OFD packet to send [06:22:09]OFD Sender: No OFD packet to send [06:22:14]OFD Sender: No OFD packet to send [06:22:19]OFD Sender: No OFD packet to send [06:22:24]OFD Sender: No OFD packet to send [06:22:29]OFD Sender: No OFD packet to send [06:22:34]OFD Sender: No OFD packet to send [06:22:39]OFD Sender: No OFD packet to send [06:22:44]OFD Sender: No OFD packet to send [06:22:49]OFD Sender: No OFD packet to send [06:22:54]OFD Sender: No OFD packet to send [06:22:59]OFD Sender: No OFD packet to send [06:23:04]OFD Sender: No OFD packet to send [06:23:09]OFD Sender: No OFD packet to send [06:23:14]OFD Sender: No OFD packet to send [06:23:19]OFD Sender: No OFD packet to send [06:23:24]OFD Sender: No OFD packet to send [06:23:29]OFD Sender: No OFD packet to send [06:23:34]OFD Sender: No OFD packet to send [06:23:39]OFD Sender: No OFD packet to send [06:23:44]OFD Sender: No OFD packet to send [06:23:49]OFD Sender: No OFD packet to send [06:23:54]OFD Sender: No OFD packet to send [06:23:59]OFD Sender: No OFD packet to send [06:24:04]OFD Sender: No OFD packet to send [06:24:09]OFD Sender: No OFD packet to send [06:24:14]OFD Sender: No OFD packet to send [06:24:19]OFD Sender: No OFD packet to send [06:24:24]OFD Sender: No OFD packet to send [06:24:29]OFD Sender: No OFD packet to send [06:24:34]OFD Sender: No OFD packet to send [06:24:39]OFD Sender: No OFD packet to send [06:24:44]OFD Sender: No OFD packet to send [06:24:49]OFD Sender: No OFD packet to send [06:24:54]OFD Sender: No OFD packet to send [06:24:59]OFD Sender: No OFD packet to send [06:25:04]OFD Sender: No OFD packet to send [06:25:09]OFD Sender: No OFD packet to send [06:25:14]OFD Sender: No OFD packet to send [06:25:19]OFD Sender: No OFD packet to send [06:25:24]OFD Sender: No OFD packet to send [06:25:29]OFD Sender: No OFD packet to send [06:25:34]OFD Sender: No OFD packet to send [06:25:39]OFD Sender: No OFD packet to send [06:25:44]OFD Sender: No OFD packet to send [06:25:49]OFD Sender: No OFD packet to send [06:25:54]OFD Sender: No OFD packet to send [06:25:59]OFD Sender: No OFD packet to send [06:26:04]OFD Sender: No OFD packet to send [06:26:09]OFD Sender: No OFD packet to send [06:26:14]OFD Sender: No OFD packet to send [06:26:19]OFD Sender: No OFD packet to send [06:26:24]OFD Sender: No OFD packet to send [06:26:29]OFD Sender: No OFD packet to send [06:26:34]OFD Sender: No OFD packet to send [06:26:39]OFD Sender: No OFD packet to send [06:26:44]OFD Sender: No OFD packet to send [06:26:49]OFD Sender: No OFD packet to send [06:26:54]OFD Sender: No OFD packet to send [06:26:56]accept exits with 7 [06:26:56]New connection [06:26:56]New thread 3067174244 created [06:26:56]Thread 3067030884 joined [06:26:56]Waiting for new connection... [06:26:56] Sock 7.Parse request [06:26:56]Sock 7.Check first char [06:26:56]Sock 7.First char is OK [06:26:56]request: POST /json_proto HTTP/1.0 [06:26:56]Method: POST [06:26:56]URL: /json_proto [06:26:56]Method is POST - this is cgi request [06:26:56]url: /json_proto [06:26:56]query_string will be loaded in cgi processing [06:26:56]execute_cgi json_proto POST (null) [06:26:56]execute_cgi path=json_proto method=POST [06:26:56]POST find Content-Length [06:26:56]Host: 172.17.41.195:8080 [06:26:56]Content-Length: 677 [06:26:56]Content-Type: application/json [06:26:56] [06:26:56]POST finish read [06:26:56]Found Content-Length = 677 [06:26:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507397", "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.80, "quantity" : 7.490, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:26:56]execute_script... [06:26: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)507397", "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.80, "quantity" : 7.490, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:26:56]POST & json_proto [06:26:56]process_json_proto [06:26:56]json parsed OK: [06:26:56]protocol is kg_v1.0 [06:26:56]action value=close_receipt [06:26:56]process_action close_receipt [06:26:56]cmd_close_receipt [06:26:56]MH_GetDate [06:26:56]Write to MH i2c: F0 00 00 CA 3B F4 [06:26:56]Write i2c OK [06:26:56]MH_I2C_Read... [06:26:56]Read from MH i2c: F0 [06:26:56]MH_I2C_Read... [06:26:56]Read from MH i2c: F0 09 00 [06:26:56]MH_I2C_Read... [06:26:56]Read from MH i2c: F0 09 00 CA 3B 00 35 A7 45 66 FC 21 6F 64 74 [06:26:56]GetLastDocTimeStamp 1715839805 [06:26:56]current date 1715840821 [06:26:56]FM_GetShiftState [06:26:56]SAM_PROTO_GetShiftState [06:26:56]wFMCommunicate request_size=4 [06:26:56]MH_SAM_APDU [06:26:56]CAPDU: 80 13 01 00 [06:26:56]Write to MH i2c: E2 08 00 CB 3B 80 13 01 00 00 00 00 00 83 [06:26:56]Write i2c OK [06:26:56]MH_I2C_Read... [06:26:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:26:56]Read from MH i2c: E2 [06:26:56]MH_I2C_Read... [06:26:56]Read from MH i2c: E2 0E 00 [06:26:56]MH_I2C_Read... [06:26:56]Read from MH i2c: E2 0E 00 CB 3B 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 2F [06:26:56]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [06:26:56]wFMCommunicate OK [06:26:56]SAM_PROTO_GetShiftState done [06:26:56]FM_GetShiftState done [06:26:56]opened in 1715818916 [06:26:56]opened+sec_in_day 1715905316 [06:26:56]quantity*price = 50033 [06:26:56]sum+1 = 50034 [06:26:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 8 16.05.2024 06:27 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67410 ФПД: 137069240155777 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T062701&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67410&fm=137069240155777&tin=02508201610067®Number=0000000000091845&sum=50000 [06:26:57]StoreToDocumentArchive [06:26:57]shift 357 fd 67410 [06:26:57]save to /storage/0357/doc_00067410 [06:26:57]save last doc name /storage/0357/doc_00067410 to /storage/kkm_last_doc_name [06:26:57]save OK [06:26:57]Clear old archive folders... [06:26:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:26:57]tlvbuf is 00B27B80 [06:26:57]SAM_PROTO_ClearQueue [06:26:57]wFMCommunicate request_size=4 [06:26:57]MH_SAM_APDU [06:26:57]CAPDU: 80 09 00 00 [06:26:57]Write to MH i2c: E2 08 00 D8 3B 80 09 00 00 00 00 00 00 85 [06:26:57]Write i2c OK [06:26:57]MH_I2C_Read... [06:26:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:26:58]Read from MH i2c: E2 [06:26:58]MH_I2C_Read... [06:26:58]Read from MH i2c: E2 03 00 [06:26:58]MH_I2C_Read... [06:26:58]Read from MH i2c: E2 03 00 D8 3B 00 90 00 87 [06:26:58]RAPDU: 90 00 [06:26:58]wFMCommunicate OK [06:26:58]SAM_PROTO_ClearQueue done [06:26:58]KKMCreateOFDPacket [06:26:58]OFDProtocolAddRootSTLVToBuf [06:26:58]FM_MakeSignedData [06:26:58]FM_MakeSignedData [06:26:58]SAM_PROTO_SignData [06:26:58]wFMCommunicate request_size=4 [06:26:58]MH_SAM_APDU [06:26:58]CAPDU: 80 0D 01 02 [06:26:58]Write to MH i2c: E2 08 00 D9 3B 80 0D 01 02 00 00 00 00 8D [06:26:58]Write i2c OK [06:26:58]MH_I2C_Read... [06:26:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:26:58]Read from MH i2c: E2 [06:26:58]MH_I2C_Read... [06:26:58]Read from MH i2c: E2 03 00 [06:26:58]MH_I2C_Read... [06:26:58]Read from MH i2c: E2 03 00 D9 3B 00 90 00 88 [06:26:58]RAPDU: 90 00 [06:26:58]wFMCommunicate OK [06:26:58]wFMCommunicate request_size=255 [06:26:58]MH_SAM_APDU [06:26: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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 35 A7 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 52 07 01 00 35 04 06 00 7C [06:26:58]Write to MH i2c: E2 02 01 DA 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 35 A7 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 52 07 01 00 35 04 06 00 7C 00 00 E3 [06:26:58]Write i2c OK [06:26:58]MH_I2C_Read... [06:26:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:26:58]Read from MH i2c: E2 [06:26:58]MH_I2C_Read... [06:26:58]Read from MH i2c: E2 03 00 [06:26:58]MH_I2C_Read... [06:26:58]Read from MH i2c: E2 03 00 DA 3B 00 90 00 89 [06:26:58]RAPDU: 90 00 [06:26:58]wFMCommunicate OK [06:26:58]wFMCommunicate request_size=10 [06:26:58]MH_SAM_APDU [06:26:58]CAPDU: 80 0D 02 02 05 A9 EB 5E 7E 81 [06:26:58]Write to MH i2c: E2 0D 00 DB 3B 80 0D 02 02 05 00 A9 EB 5E 7E 81 00 00 8B [06:26:58]Write i2c OK [06:26:58]MH_I2C_Read... [06:26:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:26:58]Read from MH i2c: E2 [06:26:58]MH_I2C_Read... [06:26:58]Read from MH i2c: E2 03 00 [06:26:58]MH_I2C_Read... [06:26:58]Read from MH i2c: E2 03 00 DB 3B 00 90 00 8A [06:26:58]RAPDU: 90 00 [06:26:58]wFMCommunicate OK [06:26:58]wFMCommunicate request_size=4 [06:26:58]MH_SAM_APDU [06:26:58]CAPDU: 80 0D 03 02 [06:26:58]Write to MH i2c: E2 08 00 DC 3B 80 0D 03 02 00 00 00 00 92 [06:26:58]Write i2c OK [06:26:58]MH_I2C_Read... [06:26:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:26:58]Read from MH i2c: E2 [06:26:58]MH_I2C_Read... [06:26:58]Read from MH i2c: E2 0B 00 [06:26:58]MH_I2C_Read... [06:26:58]Read from MH i2c: E2 0B 00 DC 3B 00 5B 0D 3E B3 A1 50 90 7B 90 00 E8 [06:26:58]RAPDU: 5B 0D 3E B3 A1 50 90 7B 90 00 [06:26:58]wFMCommunicate OK [06:26:58]SAM_PROTO_SignData done [06:26:58]FM_MakeSignedData done [06:26:58]CreateOFDProtocolMessage [06:26:58]wFMCommunicate request_size=4 [06:26:58]MH_SAM_APDU [06:26:58]CAPDU: 80 11 00 00 [06:26:58]Write to MH i2c: E2 08 00 DD 3B 80 11 00 00 00 00 00 00 92 [06:26:58]Write i2c OK [06:26:58]MH_I2C_Read... [06:26:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:26:58]Read from MH i2c: E2 [06:26:58]MH_I2C_Read... [06:26:58]Read from MH i2c: E2 17 00 [06:26:58]MH_I2C_Read... [06:26:58]Read from MH i2c: E2 17 00 DD 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E8 [06:26:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [06:26:58]wFMCommunicate OK [06:26:58]CreateOFDProtocolMessage done [06:26:58]OFDSenderStorePacket 67410 [06:26:58]StoreOFDPacket docnum=67410 [06:26:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 C4 E4 07 01 CD 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 35 A7 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 52 07 01 00 35 04 06 00 7C A9 EB 5E 7E 81 5B 0D 3E B3 A1 50 90 7B [06:26:58]CheckFolder [06:26:58]dirname=/storage/ofd_packets [06:26:58]CheckFolder done [06:26:58]ProducePacketName [06:26:58]name=ofd_packets/00067410 [06:26:58]NVStorageSaveData ofd_packets/00067410 [06:26:58]File name is /storage/ofd_packets/00067410 [06:26:58]Write 301 bytes [06:26:58]NVStorageSaveData done [06:26:58]OFDSenderStorePacket done [06:26:58]KKMCreateOFDPacket done [06:26:58]NVStorageSaveData kkm_last_timestamp [06:26:58]File name is /storage/kkm_last_timestamp [06:26:58]Write 4 bytes [06:26:58]NVStorageSaveData done [06:26:58]ExternCall_PrintAddStr [06:26:58]wPrintStart [06:26:58]Write to MH i2c: 01 00 00 DE 3B 19 [06:26:58]Write i2c OK [06:26:58]MH_I2C_Read... [06:26:58]Read from MH i2c: 01 [06:26:58]MH_I2C_Read... [06:26:58]Read from MH i2c: 01 07 00 [06:26:58]MH_I2C_Read... [06:26:58]Read from MH i2c: 01 07 00 DE 3B 00 00 00 00 00 FF 0F 2E [06:26:58]RasterBufferAndPrint [06:26:58]line Счет N : (1)507397 [06:26:58]line ИНН: 02508201610067 [06:26:58]line Контрольно-Кассовый Чек [06:26:58]line ПРОДАЖА [06:26:58]line ТРК (МРК, ГНК) : 33 [06:26:58]line Товар: 2710124130 [06:26:58]line Аи-92-К-5 [06:26:58]line 7.490 * 66.80 [06:26:58]line = 500.33 [06:26:58]line НДС 12% НСП 1% [06:26:58]line > о реализуемом товаре [06:26:58]line ОКРУГЛЕНИЕ: -0.33 [06:26:58]line ИТОГО: 500.00 [06:26:58]line Внесено: 500.00 [06:26:58]line СДАЧА: 0.00 [06:26:58]line НСП 1% : 4.43 [06:26:58]line НДС 12% : 53.13 [06:26:58]line Наличными: 500.00 [06:26:58]line Безнал.: 0.00 [06:26:58]line Место: АЗС № 91 "Партнер Нефть" [06:26:58]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [06:26:58]line СНО: Общий режим [06:26:58]line Чек 8 16.05.2024 06:27 [06:26:58]line Смена: 357 ФФД: 1.0 [06:26:58]line ЗНМ: 0300000119 [06:26:58]line РНМ: 0000000000091845 [06:26:58]line Версия ККМ: 001 [06:26:58]line ФМ: 0000000000871829 [06:26:58]line ФД: 67410 [06:26:58]line ФПД: 137069240155777 [06:26:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T062701&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67410&fm=137069240155777&tin=02508201610067®Number=0000000000091845&sum=50000 [06:26:58]written 0, free lines is 4095 [06:26:58]OFD Sender: Processing packet 67410 [packets to send 35, broken 34] [06:26:58]ProducePacketName [06:26:58]name=ofd_packets/00067410 [06:26:58]OFD Sender: To server: pG, [06:26:58]CommunicateWithHost lk.salyk.kg:30040 [06:26:58]ConnectInit lk.salyk.kg [06:26:59]Write to MH i2c: 01 00 00 08 3C 44 [06:26:59]Write i2c OK [06:26:59]MH_I2C_Read... [06:26:59]Read from MH i2c: 01 [06:26:59]MH_I2C_Read... [06:26:59]Read from MH i2c: 01 07 00 [06:26:59]MH_I2C_Read... [06:26:59]Read from MH i2c: 01 07 00 08 3C 00 00 00 00 00 CD 0C 24 [06:26:59]RasterBufferAndPrint [06:26:59]line [06:26:59]line [06:26:59]line [06:26:59]line [06:26:59]line [06:26:59]written 0, free lines is 3280 [06:26:59]MH_Cut [06:26:59]Write to MH i2c: D1 01 00 0F 3C 01 1D [06:26:59]Write i2c OK [06:26:59]MH_I2C_Read... [06:26:59]Read from MH i2c: D1 [06:26:59]MH_I2C_Read... [06:26:59]Read from MH i2c: D1 01 00 [06:26:59]MH_I2C_Read... [06:26:59]Read from MH i2c: D1 01 00 0F 3C 00 1C [06:26:59]Write to MH i2c: 01 00 00 10 3C 4C [06:26:59]Write i2c OK [06:26:59]MH_I2C_Read... [06:27:00]*** Cut start [06:27:00]*** Purtial cut [06:27:00]*** Stage 1: CUTSNS_PIN = 1 [06:27:00]Read from MH i2c: 01 [06:27:00]MH_I2C_Read... [06:27:00]*** Stop cut motor [06:27:00]*** Cut end [06:27:00]Read from MH i2c: 01 07 00 [06:27:00]MH_I2C_Read... [06:27:00]Read from MH i2c: 01 07 00 10 3C 00 00 00 00 00 FF 0F 61 [06:27:00]process_action close_receipt done [06:27:00]requested_data is exist [06:27:00]produce_requested_data [06:27:00]requested_item fm.sn is exist - process it [06:27:00]wFMCommunicate request_size=4 [06:27:00]MH_SAM_APDU [06:27:00]CAPDU: 80 11 00 00 [06:27:00]Write to MH i2c: E2 08 00 11 3C 80 11 00 00 00 00 00 00 C7 [06:27:00]Write i2c OK [06:27:00]MH_I2C_Read... [06:27:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:27:00]Read from MH i2c: E2 [06:27:00]MH_I2C_Read... [06:27:00]Read from MH i2c: E2 17 00 [06:27:00]MH_I2C_Read... [06:27:00]Read from MH i2c: E2 17 00 11 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 1D [06:27:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [06:27:00]wFMCommunicate OK [06:27:00]requested_item fd.num is exist - process it [06:27:00]SAM_PROTO_GetFieldsCounters [06:27:00]wFMCommunicate request_size=4 [06:27:00]MH_SAM_APDU [06:27:00]CAPDU: 80 13 00 00 [06:27:00]Write to MH i2c: E2 08 00 12 3C 80 13 00 00 00 00 00 00 CA [06:27:00]Write i2c OK [06:27:00]MH_I2C_Read... [06:27:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:27:00]Read from MH i2c: E2 [06:27:00]MH_I2C_Read... [06:27:00]Read from MH i2c: E2 62 00 [06:27:00]MH_I2C_Read... [06:27:00]Read from MH i2c: E2 62 00 12 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 52 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [06:27: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 52 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:27:00]wFMCommunicate OK [06:27:00]SAM_PROTO_GetFieldsCounters done [06:27:00]requested_item shift.num is exist - process it [06:27:00]requested_item shift.opened is exist - process it [06:27:00]req_shift_opened [06:27:00]FM_GetShiftState [06:27:00]SAM_PROTO_GetShiftState [06:27:00]wFMCommunicate request_size=4 [06:27:00]MH_SAM_APDU [06:27:00]CAPDU: 80 13 01 00 [06:27:00]Write to MH i2c: E2 08 00 13 3C 80 13 01 00 00 00 00 00 CC [06:27:00]Write i2c OK [06:27:00]MH_I2C_Read... [06:27:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:27:00]Read from MH i2c: E2 [06:27:00]MH_I2C_Read... [06:27:00]Read from MH i2c: E2 0E 00 [06:27:00]MH_I2C_Read... [06:27:00]Read from MH i2c: E2 0E 00 13 3C 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 78 [06:27:00]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [06:27:00]wFMCommunicate OK [06:27:00]SAM_PROTO_GetShiftState done [06:27:00]FM_GetShiftState done [06:27:00]req_shift_opened done [06:27:00]requested_item shift.open_date is exist - process it [06:27:00]req_shift_open_date [06:27:00]req_shift_open_date done [06:27:00]produce_requested_data done [06:27:00]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67410,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [06:27:00]process_action_free close_receipt [06:27:00]json_value_free [06:27:00]json_value_free done [06:27:00]process_json_proto returns [06:27:00]Send response to host [06:27:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67410,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [06:27:00]free response buf [06:27:00]execute_script done [06:27:00]execute_script returns [06:27:00]free content buf [06:27:00]Sock 7.Close socket [06:27:00]Sock 7.Thread stoped [06:29:12]ConnectInit Can't connect to host [06:29:12]CommunicateWithHost connect error [06:29:12]CommunicateWithHost err = -1 [06:29:12]OFD Sender: Server communicate error [06:29:17]OFD Sender: Processing packet 67410 [packets to send 35, broken 34] [06:29:17]ProducePacketName [06:29:17]name=ofd_packets/00067410 [06:29:17]OFD Sender: To server: pG, [06:29:17]CommunicateWithHost lk.salyk.kg:30040 [06:29:17]ConnectInit lk.salyk.kg [06:29:17]Connected sock=7 [06:29:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 C4 E4 07 01 CD 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 35 A7 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 52 07 01 00 35 04 06 00 7C A9 EB 5E 7E 81 5B 0D 3E B3 A1 50 90 7B [06:29:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 A2 1B 47 00 B5 E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 52 07 01 00 F4 03 04 00 9B 4F 45 66 B6 04 01 00 00 EA 0D 20 D4 7D 69 B8 47 [06:29:17]CommunicateWithHost err = 0 [06:29:17]CheckOFDResponse [06:29:17]1017 (14) - 77093643461234 [06:29:17]1041 (16) - 0000000000871829 [06:29:17]1040 (4) - 67410 [06:29:17]1012 (4) - 16.05.2024 00:13 [06:29:17]1206 (1) - 0 [06:29:17]OFD Sender: Remove packet 67410 [06:29:17]ProducePacketName [06:29:17]name=ofd_packets/00067410 [06:29:17]NVStorageDeleteData [06:29:18]OFD Sender: No OFD packet to send [06:29:23]OFD Sender: No OFD packet to send [06:29:28]OFD Sender: No OFD packet to send [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:13]OFD Sender: No OFD packet to send [06:37:18]OFD Sender: No OFD packet to send [06:37:23]OFD Sender: No OFD packet to send [06:37:28]OFD Sender: No OFD packet to send [06:37:33]OFD Sender: No OFD packet to send [06:37:38]OFD Sender: No OFD packet to send [06:37:43]OFD Sender: No OFD packet to send [06:37:48]OFD Sender: No OFD packet to send [06:37:53]OFD Sender: No OFD packet to send [06:37:58]OFD Sender: No OFD packet to send [06:38:03]OFD Sender: No OFD packet to send [06:38:08]OFD Sender: No OFD packet to send [06:38:13]OFD Sender: No OFD packet to send [06:38:18]OFD Sender: No OFD packet to send [06:38:23]OFD Sender: No OFD packet to send [06:38:28]OFD Sender: No OFD packet to send [06:38:33]OFD Sender: No OFD packet to send [06:38:38]OFD Sender: No OFD packet to send [06:38:43]OFD Sender: No OFD packet to send [06:38:48]OFD Sender: No OFD packet to send [06:38:53]OFD Sender: No OFD packet to send [06:38:58]OFD Sender: No OFD packet to send [06:39:03]OFD Sender: No OFD packet to send [06:39:08]OFD Sender: No OFD packet to send [06:39:13]OFD Sender: No OFD packet to send [06:39:18]OFD Sender: No OFD packet to send [06:39:23]OFD Sender: No OFD packet to send [06:39:28]OFD Sender: No OFD packet to send [06:39:33]OFD Sender: No OFD packet to send [06:39:38]OFD Sender: No OFD packet to send [06:39:43]OFD Sender: No OFD packet to send [06:39:48]OFD Sender: No OFD packet to send [06:39:53]OFD Sender: No OFD packet to send [06:39:58]OFD Sender: No OFD packet to send [06:40:03]OFD Sender: No OFD packet to send [06:40:08]OFD Sender: No OFD packet to send [06:40:13]OFD Sender: No OFD packet to send [06:40:18]OFD Sender: No OFD packet to send [06:40:23]OFD Sender: No OFD packet to send [06:40:28]OFD Sender: No OFD packet to send [06:40:33]OFD Sender: No OFD packet to send [06:40:38]OFD Sender: No OFD packet to send [06:40:43]OFD Sender: No OFD packet to send [06:40:48]OFD Sender: No OFD packet to send [06:40:53]OFD Sender: No OFD packet to send [06:40:59]OFD Sender: No OFD packet to send [06:41:04]OFD Sender: No OFD packet to send [06:41:09]OFD Sender: No OFD packet to send [06:41:14]OFD Sender: No OFD packet to send [06:41:19]OFD Sender: No OFD packet to send [06:41:24]OFD Sender: No OFD packet to send [06:41:29]OFD Sender: No OFD packet to send [06:41:34]OFD Sender: No OFD packet to send [06:41:39]OFD Sender: No OFD packet to send [06:41:44]OFD Sender: No OFD packet to send [06:41:49]OFD Sender: No OFD packet to send [06:41:54]OFD Sender: No OFD packet to send [06:41:59]OFD Sender: No OFD packet to send [06:42:04]OFD Sender: No OFD packet to send [06:42:09]OFD Sender: No OFD packet to send [06:42:14]OFD Sender: No OFD packet to send [06:42:19]OFD Sender: No OFD packet to send [06:42:24]OFD Sender: No OFD packet to send [06:42:29]OFD Sender: No OFD packet to send [06:42:34]OFD Sender: No OFD packet to send [06:42:39]OFD Sender: No OFD packet to send [06:42:44]OFD Sender: No OFD packet to send [06:42:49]OFD Sender: No OFD packet to send [06:42:54]OFD Sender: No OFD packet to send [06:42:59]OFD Sender: No OFD packet to send [06:43:04]OFD Sender: No OFD packet to send [06:43:09]OFD Sender: No OFD packet to send [06:43:14]OFD Sender: No OFD packet to send [06:43:19]OFD Sender: No OFD packet to send [06:43:24]OFD Sender: No OFD packet to send [06:43:29]OFD Sender: No OFD packet to send [06:43:34]OFD Sender: No OFD packet to send [06:43:39]OFD Sender: No OFD packet to send [06:43:44]OFD Sender: No OFD packet to send [06:43:49]OFD Sender: No OFD packet to send [06:43:54]OFD Sender: No OFD packet to send [06:43:59]OFD Sender: No OFD packet to send [06:44:04]OFD Sender: No OFD packet to send [06:44:09]OFD Sender: No OFD packet to send [06:44:14]OFD Sender: No OFD packet to send [06:44:19]OFD Sender: No OFD packet to send [06:44:24]OFD Sender: No OFD packet to send [06:44:29]OFD Sender: No OFD packet to send [06:44:34]OFD Sender: No OFD packet to send [06:44:39]OFD Sender: No OFD packet to send [06:44:44]OFD Sender: No OFD packet to send [06:44:49]OFD Sender: No OFD packet to send [06:44:54]OFD Sender: No OFD packet to send [06:44:59]OFD Sender: No OFD packet to send [06:45:04]OFD Sender: No OFD packet to send [06:45:09]OFD Sender: No OFD packet to send [06:45:14]OFD Sender: No OFD packet to send [06:45:19]OFD Sender: No OFD packet to send [06:45:24]OFD Sender: No OFD packet to send [06:45:29]OFD Sender: No OFD packet to send [06:45:34]OFD Sender: No OFD packet to send [06:45:39]OFD Sender: No OFD packet to send [06:45:44]OFD Sender: No OFD packet to send [06:45:49]OFD Sender: No OFD packet to send [06:45:54]OFD Sender: No OFD packet to send [06:45:59]OFD Sender: No OFD packet to send [06:46:04]OFD Sender: No OFD packet to send [06:46:09]OFD Sender: No OFD packet to send [06:46:14]OFD Sender: No OFD packet to send [06:46:19]OFD Sender: No OFD packet to send [06:46:24]OFD Sender: No OFD packet to send [06:46:29]OFD Sender: No OFD packet to send [06:46:34]OFD Sender: No OFD packet to send [06:46:39]OFD Sender: No OFD packet to send [06:46:44]OFD Sender: No OFD packet to send [06:46:49]OFD Sender: No OFD packet to send [06:46:54]OFD Sender: No OFD packet to send [06:46:59]OFD Sender: No OFD packet to send [06:47:04]OFD Sender: No OFD packet to send [06:47:09]accept exits with 9 [06:47:09]New connection [06:47:09]New thread 3067030884 created [06:47:09]Thread 3067174244 joined [06:47:09]Waiting for new connection... [06:47:09] Sock 9.Parse request [06:47:09]Sock 9.Check first char [06:47:09]Sock 9.First char is OK [06:47:09]request: POST /json_proto HTTP/1.0 [06:47:09]Method: POST [06:47:09]URL: /json_proto [06:47:09]Method is POST - this is cgi request [06:47:09]url: /json_proto [06:47:09]query_string will be loaded in cgi processing [06:47:09]execute_cgi json_proto POST (null) [06:47:09]execute_cgi path=json_proto method=POST [06:47:09]POST find Content-Length [06:47:09]Host: 172.17.41.195:8080 [06:47:09]Content-Length: 682 [06:47:09]Content-Type: application/json [06:47:09] [06:47:09]POST finish read [06:47:09]Found Content-Length = 682 [06:47:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507398", "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.80, "quantity" : 14.980, "sum" : 1000.66, "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:47:09]execute_script... [06:47: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)507398", "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.80, "quantity" : 14.980, "sum" : 1000.66, "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:47:09]POST & json_proto [06:47:09]process_json_proto [06:47:09]json parsed OK: [06:47:09]protocol is kg_v1.0 [06:47:09]action value=close_receipt [06:47:09]process_action close_receipt [06:47:09]cmd_close_receipt [06:47:09]MH_GetDate [06:47:09]Write to MH i2c: F0 00 00 14 3C 3F [06:47:09]Write i2c OK [06:47:09]MH_I2C_Read... [06:47:09]Read from MH i2c: F0 [06:47:09]MH_I2C_Read... [06:47:09]Read from MH i2c: F0 09 00 [06:47:09]MH_I2C_Read... [06:47:09]Read from MH i2c: F0 09 00 14 3C 00 F1 AB 45 66 FC 21 6F 64 7F [06:47:09]GetLastDocTimeStamp 1715840821 [06:47:09]current date 1715842033 [06:47:09]FM_GetShiftState [06:47:09]SAM_PROTO_GetShiftState [06:47:09]wFMCommunicate request_size=4 [06:47:09]MH_SAM_APDU [06:47:09]CAPDU: 80 13 01 00 [06:47:09]Write to MH i2c: E2 08 00 15 3C 80 13 01 00 00 00 00 00 CE [06:47:09]Write i2c OK [06:47:09]MH_I2C_Read... [06:47:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:47:09]Read from MH i2c: E2 [06:47:09]MH_I2C_Read... [06:47:09]Read from MH i2c: E2 0E 00 [06:47:09]MH_I2C_Read... [06:47:09]Read from MH i2c: E2 0E 00 15 3C 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 7A [06:47:09]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [06:47:09]wFMCommunicate OK [06:47:09]SAM_PROTO_GetShiftState done [06:47:09]FM_GetShiftState done [06:47:09]opened in 1715818916 [06:47:09]opened+sec_in_day 1715905316 [06:47:09]quantity*price = 100066 [06:47:09]sum+1 = 100067 [06:47:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 9 16.05.2024 06:47 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67411 ФПД: 213856002643010 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T064713&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67411&fm=213856002643010&tin=02508201610067®Number=0000000000091845&sum=100000 [06:47:10]StoreToDocumentArchive [06:47:10]shift 357 fd 67411 [06:47:10]save to /storage/0357/doc_00067411 [06:47:10]save last doc name /storage/0357/doc_00067411 to /storage/kkm_last_doc_name [06:47:10]save OK [06:47:10]Clear old archive folders... [06:47:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:47:10]tlvbuf is 00B36D40 [06:47:10]SAM_PROTO_ClearQueue [06:47:10]wFMCommunicate request_size=4 [06:47:10]MH_SAM_APDU [06:47:10]CAPDU: 80 09 00 00 [06:47:10]Write to MH i2c: E2 08 00 22 3C 80 09 00 00 00 00 00 00 D0 [06:47:10]Write i2c OK [06:47:10]MH_I2C_Read... [06:47:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:47:10]Read from MH i2c: E2 [06:47:10]MH_I2C_Read... [06:47:10]Read from MH i2c: E2 03 00 [06:47:10]MH_I2C_Read... [06:47:10]Read from MH i2c: E2 03 00 22 3C 00 90 00 D2 [06:47:10]RAPDU: 90 00 [06:47:10]wFMCommunicate OK [06:47:10]SAM_PROTO_ClearQueue done [06:47:10]KKMCreateOFDPacket [06:47:10]OFDProtocolAddRootSTLVToBuf [06:47:10]FM_MakeSignedData [06:47:10]FM_MakeSignedData [06:47:10]SAM_PROTO_SignData [06:47:10]wFMCommunicate request_size=4 [06:47:10]MH_SAM_APDU [06:47:10]CAPDU: 80 0D 01 02 [06:47:10]Write to MH i2c: E2 08 00 23 3C 80 0D 01 02 00 00 00 00 D8 [06:47:10]Write i2c OK [06:47:10]MH_I2C_Read... [06:47:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:47:10]Read from MH i2c: E2 [06:47:10]MH_I2C_Read... [06:47:10]Read from MH i2c: E2 03 00 [06:47:10]MH_I2C_Read... [06:47:10]Read from MH i2c: E2 03 00 23 3C 00 90 00 D3 [06:47:10]RAPDU: 90 00 [06:47:10]wFMCommunicate OK [06:47:10]wFMCommunicate request_size=255 [06:47:10]MH_SAM_APDU [06:47:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 F1 AB 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 53 07 01 00 35 04 06 00 C2 [06:47:10]Write to MH i2c: E2 02 01 24 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 F1 AB 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 53 07 01 00 35 04 06 00 C2 00 00 84 [06:47:10]Write i2c OK [06:47:10]MH_I2C_Read... [06:47:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:47:10]Read from MH i2c: E2 [06:47:10]MH_I2C_Read... [06:47:10]Read from MH i2c: E2 03 00 [06:47:10]MH_I2C_Read... [06:47:10]Read from MH i2c: E2 03 00 24 3C 00 90 00 D4 [06:47:10]RAPDU: 90 00 [06:47:10]wFMCommunicate OK [06:47:10]wFMCommunicate request_size=10 [06:47:10]MH_SAM_APDU [06:47:10]CAPDU: 80 0D 02 02 05 80 3B 12 14 42 [06:47:10]Write to MH i2c: E2 0D 00 25 3C 80 0D 02 02 05 00 80 3B 12 14 42 00 00 08 [06:47:10]Write i2c OK [06:47:10]MH_I2C_Read... [06:47:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:47:10]Read from MH i2c: E2 [06:47:10]MH_I2C_Read... [06:47:10]Read from MH i2c: E2 03 00 [06:47:10]MH_I2C_Read... [06:47:10]Read from MH i2c: E2 03 00 25 3C 00 90 00 D5 [06:47:10]RAPDU: 90 00 [06:47:10]wFMCommunicate OK [06:47:10]wFMCommunicate request_size=4 [06:47:10]MH_SAM_APDU [06:47:10]CAPDU: 80 0D 03 02 [06:47:10]Write to MH i2c: E2 08 00 26 3C 80 0D 03 02 00 00 00 00 DD [06:47:10]Write i2c OK [06:47:10]MH_I2C_Read... [06:47:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:47:10]Read from MH i2c: E2 [06:47:10]MH_I2C_Read... [06:47:10]Read from MH i2c: E2 0B 00 [06:47:10]MH_I2C_Read... [06:47:10]Read from MH i2c: E2 0B 00 26 3C 00 BA A4 F4 C4 DB 25 D3 56 90 00 1D [06:47:10]RAPDU: BA A4 F4 C4 DB 25 D3 56 90 00 [06:47:10]wFMCommunicate OK [06:47:10]SAM_PROTO_SignData done [06:47:10]FM_MakeSignedData done [06:47:10]CreateOFDProtocolMessage [06:47:10]wFMCommunicate request_size=4 [06:47:10]MH_SAM_APDU [06:47:10]CAPDU: 80 11 00 00 [06:47:10]Write to MH i2c: E2 08 00 27 3C 80 11 00 00 00 00 00 00 DD [06:47:10]Write i2c OK [06:47:10]MH_I2C_Read... [06:47:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:47:10]Read from MH i2c: E2 [06:47:10]MH_I2C_Read... [06:47:10]Read from MH i2c: E2 17 00 [06:47:10]MH_I2C_Read... [06:47:10]Read from MH i2c: E2 17 00 27 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 33 [06:47:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [06:47:10]wFMCommunicate OK [06:47:10]CreateOFDProtocolMessage done [06:47:10]OFDSenderStorePacket 67411 [06:47:10]StoreOFDPacket docnum=67411 [06:47:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 A6 80 07 01 48 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 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 F1 AB 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 53 07 01 00 35 04 06 00 C2 80 3B 12 14 42 BA A4 F4 C4 DB 25 D3 56 [06:47:10]CheckFolder [06:47:10]dirname=/storage/ofd_packets [06:47:10]CheckFolder done [06:47:10]ProducePacketName [06:47:10]name=ofd_packets/00067411 [06:47:10]NVStorageSaveData ofd_packets/00067411 [06:47:10]File name is /storage/ofd_packets/00067411 [06:47:10]Write 301 bytes [06:47:10]NVStorageSaveData done [06:47:10]OFDSenderStorePacket done [06:47:10]KKMCreateOFDPacket done [06:47:10]NVStorageSaveData kkm_last_timestamp [06:47:10]File name is /storage/kkm_last_timestamp [06:47:10]Write 4 bytes [06:47:10]NVStorageSaveData done [06:47:10]ExternCall_PrintAddStr [06:47:10]wPrintStart [06:47:10]Write to MH i2c: 01 00 00 28 3C 64 [06:47:10]Write i2c OK [06:47:10]MH_I2C_Read... [06:47:10]Read from MH i2c: 01 [06:47:10]MH_I2C_Read... [06:47:10]Read from MH i2c: 01 07 00 [06:47:10]MH_I2C_Read... [06:47:10]Read from MH i2c: 01 07 00 28 3C 00 00 00 00 00 FF 0F 79 [06:47:10]RasterBufferAndPrint [06:47:10]line Счет N : (1)507398 [06:47:10]line ИНН: 02508201610067 [06:47:10]line Контрольно-Кассовый Чек [06:47:10]line ПРОДАЖА [06:47:10]line ТРК (МРК, ГНК) : 43 [06:47:10]line Товар: 2710124130 [06:47:10]line Аи-92-К-5 [06:47:10]line 14.980 * 66.80 [06:47:10]line = 1000.66 [06:47:10]line НДС 12% НСП 1% [06:47:10]line > о реализуемом товаре [06:47:10]line ОКРУГЛЕНИЕ: -0.66 [06:47:10]line ИТОГО: 1000.00 [06:47:10]line Внесено: 1000.00 [06:47:10]line СДАЧА: 0.00 [06:47:10]line НСП 1% : 8.85 [06:47:10]line НДС 12% : 106.26 [06:47:10]line Наличными: 1000.00 [06:47:10]line Безнал.: 0.00 [06:47:10]line Место: АЗС № 91 "Партнер Нефть" [06:47:10]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [06:47:10]line СНО: Общий режим [06:47:10]line Чек 9 16.05.2024 06:47 [06:47:10]line Смена: 357 ФФД: 1.0 [06:47:10]line ЗНМ: 0300000119 [06:47:10]line РНМ: 0000000000091845 [06:47:10]line Версия ККМ: 001 [06:47:10]line ФМ: 0000000000871829 [06:47:10]line ФД: 67411 [06:47:10]line ФПД: 213856002643010 [06:47:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T064713&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67411&fm=213856002643010&tin=02508201610067®Number=0000000000091845&sum=100000 [06:47:11]OFD Sender: Processing packet 67411 [packets to send 35, broken 34] [06:47:11]ProducePacketName [06:47:11]name=ofd_packets/00067411 [06:47:11]OFD Sender: To server: pG, [06:47:11]CommunicateWithHost lk.salyk.kg:30040 [06:47:11]ConnectInit lk.salyk.kg [06:47:11]written 0, free lines is 4095 [06:47:11]Connected sock=10 [06:47:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 A6 80 07 01 48 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 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 F1 AB 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 53 07 01 00 35 04 06 00 C2 80 3B 12 14 42 BA A4 F4 C4 DB 25 D3 56 [06:47:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 54 0F 47 00 F5 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 38 32 39 10 04 04 00 53 07 01 00 F4 03 04 00 CD 53 45 66 B6 04 01 00 00 4F D8 46 4C 91 95 55 CA [06:47:11]CommunicateWithHost err = 0 [06:47:11]CheckOFDResponse [06:47:11]1017 (14) - 77093643461234 [06:47:11]1041 (16) - 0000000000871829 [06:47:11]1040 (4) - 67411 [06:47:11]1012 (4) - 16.05.2024 00:31 [06:47:11]1206 (1) - 0 [06:47:11]OFD Sender: Remove packet 67411 [06:47:11]ProducePacketName [06:47:11]name=ofd_packets/00067411 [06:47:11]NVStorageDeleteData [06:47:11]Write to MH i2c: 01 00 00 52 3C 8E [06:47:11]Write i2c OK [06:47:11]MH_I2C_Read... [06:47:11]Read from MH i2c: 01 [06:47:11]MH_I2C_Read... [06:47:11]Read from MH i2c: 01 07 00 [06:47:11]MH_I2C_Read... [06:47:11]Read from MH i2c: 01 07 00 52 3C 00 00 00 00 00 D8 0C 79 [06:47:11]RasterBufferAndPrint [06:47:11]line [06:47:11]line [06:47:11]line [06:47:11]line [06:47:11]line [06:47:11]written 0, free lines is 3294 [06:47:11]MH_Cut [06:47:11]Write to MH i2c: D1 01 00 59 3C 01 67 [06:47:11]Write i2c OK [06:47:11]MH_I2C_Read... [06:47:11]Read from MH i2c: D1 [06:47:11]MH_I2C_Read... [06:47:11]Read from MH i2c: D1 01 00 [06:47:11]MH_I2C_Read... [06:47:11]Read from MH i2c: D1 01 00 59 3C 00 66 [06:47:11]Write to MH i2c: 01 00 00 5A 3C 96 [06:47:11]Write i2c OK [06:47:11]MH_I2C_Read... [06:47:11]OFD Sender: No OFD packet to send [06:47:12]*** Cut start [06:47:12]*** Purtial cut [06:47:12]*** CUTSNS_PIN = 0 [06:47:12]*** Stage 1: CUTSNS_PIN = 1 [06:47:14]Read from MH i2c: 01 [06:47:14]MH_I2C_Read... [06:47:14]*** Stop cut motor [06:47:14]*** Cut end [06:47:14]Read from MH i2c: 01 07 00 [06:47:14]MH_I2C_Read... [06:47:14]Read from MH i2c: 01 07 00 5A 3C 00 00 00 00 00 FF 0F AB [06:47:14]process_action close_receipt done [06:47:14]requested_data is exist [06:47:14]produce_requested_data [06:47:14]requested_item fm.sn is exist - process it [06:47:14]wFMCommunicate request_size=4 [06:47:14]MH_SAM_APDU [06:47:14]CAPDU: 80 11 00 00 [06:47:14]Write to MH i2c: E2 08 00 5B 3C 80 11 00 00 00 00 00 00 11 [06:47:14]Write i2c OK [06:47:14]MH_I2C_Read... [06:47:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:47:14]Read from MH i2c: E2 [06:47:14]MH_I2C_Read... [06:47:14]Read from MH i2c: E2 17 00 [06:47:14]MH_I2C_Read... [06:47:14]Read from MH i2c: E2 17 00 5B 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 67 [06:47:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [06:47:14]wFMCommunicate OK [06:47:14]requested_item fd.num is exist - process it [06:47:14]SAM_PROTO_GetFieldsCounters [06:47:14]wFMCommunicate request_size=4 [06:47:14]MH_SAM_APDU [06:47:14]CAPDU: 80 13 00 00 [06:47:14]Write to MH i2c: E2 08 00 5C 3C 80 13 00 00 00 00 00 00 14 [06:47:14]Write i2c OK [06:47:14]MH_I2C_Read... [06:47:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:47:14]Read from MH i2c: E2 [06:47:14]MH_I2C_Read... [06:47:14]Read from MH i2c: E2 62 00 [06:47:14]MH_I2C_Read... [06:47:14]Read from MH i2c: E2 62 00 5C 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 53 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [06:47: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 53 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:47:14]wFMCommunicate OK [06:47:14]SAM_PROTO_GetFieldsCounters done [06:47:14]requested_item shift.num is exist - process it [06:47:14]requested_item shift.opened is exist - process it [06:47:14]req_shift_opened [06:47:14]FM_GetShiftState [06:47:14]SAM_PROTO_GetShiftState [06:47:14]wFMCommunicate request_size=4 [06:47:14]MH_SAM_APDU [06:47:14]CAPDU: 80 13 01 00 [06:47:14]Write to MH i2c: E2 08 00 5D 3C 80 13 01 00 00 00 00 00 16 [06:47:14]Write i2c OK [06:47:14]MH_I2C_Read... [06:47:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:47:14]Read from MH i2c: E2 [06:47:14]MH_I2C_Read... [06:47:14]Read from MH i2c: E2 0E 00 [06:47:14]MH_I2C_Read... [06:47:14]Read from MH i2c: E2 0E 00 5D 3C 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 C2 [06:47:14]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [06:47:14]wFMCommunicate OK [06:47:14]SAM_PROTO_GetShiftState done [06:47:14]FM_GetShiftState done [06:47:14]req_shift_opened done [06:47:14]requested_item shift.open_date is exist - process it [06:47:14]req_shift_open_date [06:47:14]req_shift_open_date done [06:47:14]produce_requested_data done [06:47:14]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67411,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [06:47:14]process_action_free close_receipt [06:47:14]json_value_free [06:47:14]json_value_free done [06:47:14]process_json_proto returns [06:47:14]Send response to host [06:47:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67411,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [06:47:14]free response buf [06:47:14]execute_script done [06:47:14]execute_script returns [06:47:14]free content buf [06:47:14]Sock 9.Close socket [06:47:14]Sock 9.Thread stoped [06:47:16]OFD Sender: No OFD packet to send [06:47:21]OFD Sender: No OFD packet to send [06:47:26]OFD Sender: No OFD packet to send [06:47:31]OFD Sender: No OFD packet to send [06:47:36]OFD Sender: No OFD packet to send [06:47:41]OFD Sender: No OFD packet to send [06:47:46]OFD Sender: No OFD packet to send [06:47:51]OFD Sender: No OFD packet to send [06:47:56]OFD Sender: No OFD packet to send [06:48:01]OFD Sender: No OFD packet to send [06:48:06]OFD Sender: No OFD packet to send [06:48:11]OFD Sender: No OFD packet to send [06:48:16]OFD Sender: No OFD packet to send [06:48:21]OFD Sender: No OFD packet to send [06:48:26]OFD Sender: No OFD packet to send [06:48:31]OFD Sender: No OFD packet to send [06:48:36]OFD Sender: No OFD packet to send [06:48:41]OFD Sender: No OFD packet to send [06:48:46]OFD Sender: No OFD packet to send [06:48:51]OFD Sender: No OFD packet to send [06:48:56]OFD Sender: No OFD packet to send [06:49:01]OFD Sender: No OFD packet to send [06:49:06]OFD Sender: No OFD packet to send [06:49:11]OFD Sender: No OFD packet to send [06:49:17]OFD Sender: No OFD packet to send [06:49:22]OFD Sender: No OFD packet to send [06:49:27]OFD Sender: No OFD packet to send [06:49:32]OFD Sender: No OFD packet to send [06:49:37]OFD Sender: No OFD packet to send [06:49:42]OFD Sender: No OFD packet to send [06:49:47]OFD Sender: No OFD packet to send [06:49:52]OFD Sender: No OFD packet to send [06:49:57]OFD Sender: No OFD packet to send [06:50:02]OFD Sender: No OFD packet to send [06:50:07]OFD Sender: No OFD packet to send [06:50:12]OFD Sender: No OFD packet to send [06:50:17]OFD Sender: No OFD packet to send [06:50:22]OFD Sender: No OFD packet to send [06:50:27]OFD Sender: No OFD packet to send [06:50:32]OFD Sender: No OFD packet to send [06:50:37]OFD Sender: No OFD packet to send [06:50:42]OFD Sender: No OFD packet to send [06:50:47]OFD Sender: No OFD packet to send [06:50:52]OFD Sender: No OFD packet to send [06:50:57]OFD Sender: No OFD packet to send [06:51:02]OFD Sender: No OFD packet to send [06:51:07]OFD Sender: No OFD packet to send [06:51:12]OFD Sender: No OFD packet to send [06:51:17]OFD Sender: No OFD packet to send [06:51:22]OFD Sender: No OFD packet to send [06:51:27]OFD Sender: No OFD packet to send [06:51:32]OFD Sender: No OFD packet to send [06:51:37]OFD Sender: No OFD packet to send [06:51:42]OFD Sender: No OFD packet to send [06:51:47]OFD Sender: No OFD packet to send [06:51:52]OFD Sender: No OFD packet to send [06:51:57]OFD Sender: No OFD packet to send [06:52:02]OFD Sender: No OFD packet to send [06:52:07]OFD Sender: No OFD packet to send [06:52:12]OFD Sender: No OFD packet to send [06:52:17]OFD Sender: No OFD packet to send [06:52:22]OFD Sender: No OFD packet to send [06:52:27]OFD Sender: No OFD packet to send [06:52:32]OFD Sender: No OFD packet to send [06:52:37]OFD Sender: No OFD packet to send [06:52:42]OFD Sender: No OFD packet to send [06:52:47]OFD Sender: No OFD packet to send [06:52:52]OFD Sender: No OFD packet to send [06:52:57]OFD Sender: No OFD packet to send [06:53:02]OFD Sender: No OFD packet to send [06:53:07]OFD Sender: No OFD packet to send [06:53:12]OFD Sender: No OFD packet to send [06:53:17]OFD Sender: No OFD packet to send [06:53:22]OFD Sender: No OFD packet to send [06:53:27]OFD Sender: No OFD packet to send [06:53:32]OFD Sender: No OFD packet to send [06:53:37]OFD Sender: No OFD packet to send [06:53:42]OFD Sender: No OFD packet to send [06:53:47]OFD Sender: No OFD packet to send [06:53:52]OFD Sender: No OFD packet to send [06:53:57]OFD Sender: No OFD packet to send [06:54:02]OFD Sender: No OFD packet to send [06:54:07]OFD Sender: No OFD packet to send [06:54:12]OFD Sender: No OFD packet to send [06:54:17]OFD Sender: No OFD packet to send [06:54:22]OFD Sender: No OFD packet to send [06:54:27]OFD Sender: No OFD packet to send [06:54:32]OFD Sender: No OFD packet to send [06:54:37]OFD Sender: No OFD packet to send [06:54:42]OFD Sender: No OFD packet to send [06:54:47]OFD Sender: No OFD packet to send [06:54:52]OFD Sender: No OFD packet to send [06:54:57]OFD Sender: No OFD packet to send [06:55:02]OFD Sender: No OFD packet to send [06:55:07]OFD Sender: No OFD packet to send [06:55:12]OFD Sender: No OFD packet to send [06:55:17]OFD Sender: No OFD packet to send [06:55:22]OFD Sender: No OFD packet to send [06:55:27]OFD Sender: No OFD packet to send [06:55:32]OFD Sender: No OFD packet to send [06:55:37]OFD Sender: No OFD packet to send [06:55:42]OFD Sender: No OFD packet to send [06:55:47]OFD Sender: No OFD packet to send [06:55:52]OFD Sender: No OFD packet to send [06:55:57]OFD Sender: No OFD packet to send [06:56:02]OFD Sender: No OFD packet to send [06:56:07]OFD Sender: No OFD packet to send [06:56:12]OFD Sender: No OFD packet to send [06:56:13]accept exits with 7 [06:56:13]New connection [06:56:13]New thread 3067174244 created [06:56:13]Thread 3067030884 joined [06:56:13]Waiting for new connection... [06:56:13] Sock 7.Parse request [06:56:13]Sock 7.Check first char [06:56:13]Sock 7.First char is OK [06:56:13]request: POST /json_proto HTTP/1.0 [06:56:13]Method: POST [06:56:13]URL: /json_proto [06:56:13]Method is POST - this is cgi request [06:56:13]url: /json_proto [06:56:13]query_string will be loaded in cgi processing [06:56:13]execute_cgi json_proto POST (null) [06:56:13]execute_cgi path=json_proto method=POST [06:56:13]POST find Content-Length [06:56:13]Host: 172.17.41.195:8080 [06:56:13]Content-Length: 1220 [06:56:13]Content-Type: application/json [06:56:13] [06:56:13]POST finish read [06:56:13]Found Content-Length = 1220 [06:56:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507399\u000A16.05.2024 06:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 79.820 x 74.70\u000A\u0418\u0422\u041E\u0413: 5962.55\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3472418/19\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:56:13]execute_script... [06:56:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507399\u000A16.05.2024 06:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 79.820 x 74.70\u000A\u0418\u0422\u041E\u0413: 5962.55\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3472418/19\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:56:13]POST & json_proto [06:56:13]process_json_proto [06:56:13]json parsed OK: [06:56:13]protocol is kg_v1.0 [06:56:13]action value=print_text [06:56:13]process_action print_text [06:56:13]cmd_print_text [06:56:13]ExternCall_PrintAddStr [06:56:13]wPrintStart [06:56:13]Write to MH i2c: 01 00 00 5E 3C 9A [06:56:13]Write i2c OK [06:56:13]MH_I2C_Read... [06:56:13]Read from MH i2c: 01 [06:56:13]MH_I2C_Read... [06:56:13]Read from MH i2c: 01 07 00 [06:56:13]MH_I2C_Read... [06:56:13]Read from MH i2c: 01 07 00 5E 3C 00 00 00 00 00 FF 0F AF [06:56:13]RasterBufferAndPrint [06:56:13]line *****ТОВАРНЫЙ ЧЕК***** [06:56:13]line АЗС-91 [06:56:13]line Партнер нефть [06:56:13]line 02508201610067 [06:56:13]line Кассир : Пайзулдаева А. [06:56:13]line Счет N : (1)507399 [06:56:13]line 16.05.2024 06:38 [06:56:13]line ПРОДАЖА [06:56:13]line ТРК (МРК, ГНК): 31 [06:56:13]line Вид ГСМ : 2710194210 [06:56:13]line ДТ-К-5 [06:56:13]line 79.820 x 74.70 [06:56:13]line ИТОГ: 5962.55 [06:56:13]line Тип оплаты: Талоны: Топливные Талоны [06:56:13]line 3472418/19 [06:56:13]line ______________________ [06:56:13]line (подпись) [06:56:13]written 0, free lines is 4095 [06:56:13]Write to MH i2c: 01 00 00 72 3C AE [06:56:13]Write i2c OK [06:56:13]MH_I2C_Read... [06:56:13]Read from MH i2c: 01 [06:56:13]MH_I2C_Read... [06:56:13]Read from MH i2c: 01 07 00 [06:56:13]MH_I2C_Read... [06:56:13]Read from MH i2c: 01 07 00 72 3C 00 00 00 00 00 13 0E D6 [06:56:13]RasterBufferAndPrint [06:56:13]line [06:56:13]line [06:56:13]line [06:56:13]line [06:56:13]line [06:56:13]written 0, free lines is 3605 [06:56:13]MH_Cut [06:56:13]Write to MH i2c: D1 01 00 79 3C 01 87 [06:56:13]Write i2c OK [06:56:13]MH_I2C_Read... [06:56:13]Read from MH i2c: D1 [06:56:13]MH_I2C_Read... [06:56:13]Read from MH i2c: D1 01 00 [06:56:13]MH_I2C_Read... [06:56:13]Read from MH i2c: D1 01 00 79 3C 00 86 [06:56:13]Write to MH i2c: 01 00 00 7A 3C B6 [06:56:13]Write i2c OK [06:56:13]MH_I2C_Read... [06:56:14]*** Cut start [06:56:14]*** Purtial cut [06:56:14]*** Stage 1: CUTSNS_PIN = 1 [06:56:14]Read from MH i2c: 01 [06:56:14]MH_I2C_Read... [06:56:14]*** Stop cut motor [06:56:14]*** Cut end [06:56:14]Read from MH i2c: 01 07 00 [06:56:14]MH_I2C_Read... [06:56:14]Read from MH i2c: 01 07 00 7A 3C 00 00 00 00 00 FF 0F CB [06:56:14]process_action print_text done [06:56:14]requested_data is exist [06:56:14]produce_requested_data [06:56:14]requested_item fm.sn is exist - process it [06:56:14]wFMCommunicate request_size=4 [06:56:14]MH_SAM_APDU [06:56:14]CAPDU: 80 11 00 00 [06:56:14]Write to MH i2c: E2 08 00 7B 3C 80 11 00 00 00 00 00 00 31 [06:56:14]Write i2c OK [06:56:14]MH_I2C_Read... [06:56:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:56:14]Read from MH i2c: E2 [06:56:14]MH_I2C_Read... [06:56:14]Read from MH i2c: E2 17 00 [06:56:14]MH_I2C_Read... [06:56:14]Read from MH i2c: E2 17 00 7B 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 87 [06:56:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [06:56:14]wFMCommunicate OK [06:56:14]requested_item fd.num is exist - process it [06:56:14]SAM_PROTO_GetFieldsCounters [06:56:14]wFMCommunicate request_size=4 [06:56:14]MH_SAM_APDU [06:56:14]CAPDU: 80 13 00 00 [06:56:14]Write to MH i2c: E2 08 00 7C 3C 80 13 00 00 00 00 00 00 34 [06:56:14]Write i2c OK [06:56:14]MH_I2C_Read... [06:56:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:56:14]Read from MH i2c: E2 [06:56:14]MH_I2C_Read... [06:56:14]Read from MH i2c: E2 62 00 [06:56:14]MH_I2C_Read... [06:56:14]Read from MH i2c: E2 62 00 7C 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 53 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [06: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 53 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:56:14]wFMCommunicate OK [06:56:14]SAM_PROTO_GetFieldsCounters done [06:56:14]requested_item shift.num is exist - process it [06:56:14]requested_item shift.opened is exist - process it [06:56:14]req_shift_opened [06:56:14]FM_GetShiftState [06:56:14]SAM_PROTO_GetShiftState [06:56:14]wFMCommunicate request_size=4 [06:56:14]MH_SAM_APDU [06:56:14]CAPDU: 80 13 01 00 [06:56:14]Write to MH i2c: E2 08 00 7D 3C 80 13 01 00 00 00 00 00 36 [06:56:14]Write i2c OK [06:56:14]MH_I2C_Read... [06:56:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:56:14]Read from MH i2c: E2 [06:56:14]MH_I2C_Read... [06:56:14]Read from MH i2c: E2 0E 00 [06:56:14]MH_I2C_Read... [06:56:14]Read from MH i2c: E2 0E 00 7D 3C 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 E2 [06:56:14]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [06:56:14]wFMCommunicate OK [06:56:14]SAM_PROTO_GetShiftState done [06:56:14]FM_GetShiftState done [06:56:14]req_shift_opened done [06:56:14]requested_item shift.open_date is exist - process it [06:56:14]req_shift_open_date [06:56:14]req_shift_open_date done [06:56:14]produce_requested_data done [06:56:14]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67411,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [06:56:14]process_action_free print_text [06:56:14]json_value_free [06:56:14]json_value_free done [06:56:14]process_json_proto returns [06:56:14]Send response to host [06:56:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67411,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [06:56:14]free response buf [06:56:14]execute_script done [06:56:14]execute_script returns [06:56:14]free content buf [06:56:14]Sock 7.Close socket [06:56:14]Sock 7.Thread stoped [06:56:17]OFD Sender: No OFD packet to send [06:56:22]OFD Sender: No OFD packet to send [06:56:27]OFD Sender: No OFD packet to send [06:56:32]OFD Sender: No OFD packet to send [06:56:37]OFD Sender: No OFD packet to send [06:56:42]OFD Sender: No OFD packet to send [06:56:47]OFD Sender: No OFD packet to send [06:56:52]OFD Sender: No OFD packet to send [06:56:57]OFD Sender: No OFD packet to send [06:57:02]OFD Sender: No OFD packet to send [06:57:07]OFD Sender: No OFD packet to send [06:57:12]OFD Sender: No OFD packet to send [06:57:17]OFD Sender: No OFD packet to send [06:57:22]OFD Sender: No OFD packet to send [06:57:27]OFD Sender: No OFD packet to send [06:57:32]OFD Sender: No OFD packet to send [06:57:37]OFD Sender: No OFD packet to send [06:57:42]OFD Sender: No OFD packet to send [06:57:47]OFD Sender: No OFD packet to send [06:57:52]OFD Sender: No OFD packet to send [06:57:57]OFD Sender: No OFD packet to send [06:58:02]OFD Sender: No OFD packet to send [06:58:07]OFD Sender: No OFD packet to send [06:58:12]OFD Sender: No OFD packet to send [06:58:17]OFD Sender: No OFD packet to send [06:58:22]OFD Sender: No OFD packet to send [06:58:27]OFD Sender: No OFD packet to send [06:58:32]OFD Sender: No OFD packet to send [06:58:37]OFD Sender: No OFD packet to send [06:58:42]OFD Sender: No OFD packet to send [06:58:47]OFD Sender: No OFD packet to send [06:58:52]OFD Sender: No OFD packet to send [06:58:57]OFD Sender: No OFD packet to send [06:59:02]OFD Sender: No OFD packet to send [06:59:07]OFD Sender: No OFD packet to send [06:59:12]OFD Sender: No OFD packet to send [06:59:17]OFD Sender: No OFD packet to send [06:59:22]OFD Sender: No OFD packet to send [06:59:27]OFD Sender: No OFD packet to send [06:59:32]OFD Sender: No OFD packet to send [06:59:37]OFD Sender: No OFD packet to send [06:59:38]accept exits with 9 [06:59:38]New connection [06:59:38]New thread 3067030884 created [06:59:38]Thread 3067174244 joined [06:59:38]Waiting for new connection... [06:59:38] Sock 9.Parse request [06:59:38]Sock 9.Check first char [06:59:38]Sock 9.First char is OK [06:59:38]request: POST /json_proto HTTP/1.0 [06:59:38]Method: POST [06:59:38]URL: /json_proto [06:59:38]Method is POST - this is cgi request [06:59:38]url: /json_proto [06:59:38]query_string will be loaded in cgi processing [06:59:38]execute_cgi json_proto POST (null) [06:59:38]execute_cgi path=json_proto method=POST [06:59:38]POST find Content-Length [06:59:38]Host: 172.17.41.195:8080 [06:59:38]Content-Length: 1209 [06:59:38]Content-Type: application/json [06:59:38] [06:59:38]POST finish read [06:59:38]Found Content-Length = 1209 [06:59:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507400\u000A16.05.2024 06:42\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 40.170 x 74.70\u000A\u0418\u0422\u041E\u0413: 3000.70\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:59:38]execute_script... [06:59:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507400\u000A16.05.2024 06:42\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 40.170 x 74.70\u000A\u0418\u0422\u041E\u0413: 3000.70\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:59:38]POST & json_proto [06:59:38]process_json_proto [06:59:38]json parsed OK: [06:59:38]protocol is kg_v1.0 [06:59:38]action value=print_text [06:59:38]process_action print_text [06:59:38]cmd_print_text [06:59:38]ExternCall_PrintAddStr [06:59:38]wPrintStart [06:59:38]Write to MH i2c: 01 00 00 7E 3C BA [06:59:38]Write i2c OK [06:59:38]MH_I2C_Read... [06:59:38]Read from MH i2c: 01 [06:59:38]MH_I2C_Read... [06:59:38]Read from MH i2c: 01 07 00 [06:59:38]MH_I2C_Read... [06:59:38]Read from MH i2c: 01 07 00 7E 3C 00 00 00 00 00 FF 0F CF [06:59:38]RasterBufferAndPrint [06:59:38]line *****ТОВАРНЫЙ ЧЕК***** [06:59:38]line АЗС-91 [06:59:38]line Партнер нефть [06:59:38]line 02508201610067 [06:59:38]line Кассир : Пайзулдаева А. [06:59:38]line Счет N : (1)507400 [06:59:38]line 16.05.2024 06:42 [06:59:38]line ПРОДАЖА [06:59:38]line ТРК (МРК, ГНК): 21 [06:59:38]line Вид ГСМ : 2710194210 [06:59:38]line ДТ-К-5 [06:59:38]line 40.170 x 74.70 [06:59:38]line ИТОГ: 3000.70 [06:59:38]line Тип оплаты: Талоны: Топливная Карта [06:59:38]line 02750 [06:59:38]line ______________________ [06:59:38]line (подпись) [06:59:38]written 0, free lines is 4095 [06:59:38]Write to MH i2c: 01 00 00 92 3C CE [06:59:38]Write i2c OK [06:59:38]MH_I2C_Read... [06:59:38]Read from MH i2c: 01 [06:59:38]MH_I2C_Read... [06:59:38]Read from MH i2c: 01 07 00 [06:59:38]MH_I2C_Read... [06:59:38]Read from MH i2c: 01 07 00 92 3C 00 00 00 00 00 10 0E F3 [06:59:38]RasterBufferAndPrint [06:59:38]line [06:59:38]line [06:59:38]line [06:59:38]line [06:59:38]line [06:59:38]written 0, free lines is 3602 [06:59:38]MH_Cut [06:59:38]Write to MH i2c: D1 01 00 99 3C 01 A7 [06:59:38]Write i2c OK [06:59:38]MH_I2C_Read... [06:59:38]Read from MH i2c: D1 [06:59:38]MH_I2C_Read... [06:59:38]Read from MH i2c: D1 01 00 [06:59:38]MH_I2C_Read... [06:59:38]Read from MH i2c: D1 01 00 99 3C 00 A6 [06:59:38]Write to MH i2c: 01 00 00 9A 3C D6 [06:59:38]Write i2c OK [06:59:38]MH_I2C_Read... [06:59:39]*** Cut start [06:59:39]*** Purtial cut [06:59:39]*** CUTSNS_PIN = 0 [06:59:39]*** Stage 1: CUTSNS_PIN = 1 [06:59:41]Read from MH i2c: 01 [06:59:41]MH_I2C_Read... [06:59:41]*** Stop cut motor [06:59:41]*** Cut end [06:59:41]Read from MH i2c: 01 07 00 [06:59:41]MH_I2C_Read... [06:59:41]Read from MH i2c: 01 07 00 9A 3C 00 00 00 00 00 FF 0F EB [06:59:41]process_action print_text done [06:59:41]requested_data is exist [06:59:41]produce_requested_data [06:59:41]requested_item fm.sn is exist - process it [06:59:41]wFMCommunicate request_size=4 [06:59:41]MH_SAM_APDU [06:59:41]CAPDU: 80 11 00 00 [06:59:41]Write to MH i2c: E2 08 00 9B 3C 80 11 00 00 00 00 00 00 51 [06:59:41]Write i2c OK [06:59:41]MH_I2C_Read... [06:59:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:59:41]Read from MH i2c: E2 [06:59:41]MH_I2C_Read... [06:59:41]Read from MH i2c: E2 17 00 [06:59:41]MH_I2C_Read... [06:59:41]Read from MH i2c: E2 17 00 9B 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A7 [06:59:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [06:59:41]wFMCommunicate OK [06:59:41]requested_item fd.num is exist - process it [06:59:41]SAM_PROTO_GetFieldsCounters [06:59:41]wFMCommunicate request_size=4 [06:59:41]MH_SAM_APDU [06:59:41]CAPDU: 80 13 00 00 [06:59:41]Write to MH i2c: E2 08 00 9C 3C 80 13 00 00 00 00 00 00 54 [06:59:41]Write i2c OK [06:59:41]MH_I2C_Read... [06:59:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:59:41]Read from MH i2c: E2 [06:59:41]MH_I2C_Read... [06:59:41]Read from MH i2c: E2 62 00 [06:59:41]MH_I2C_Read... [06:59:41]Read from MH i2c: E2 62 00 9C 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 53 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [06:59: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 53 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:59:41]wFMCommunicate OK [06:59:41]SAM_PROTO_GetFieldsCounters done [06:59:41]requested_item shift.num is exist - process it [06:59:41]requested_item shift.opened is exist - process it [06:59:41]req_shift_opened [06:59:41]FM_GetShiftState [06:59:41]SAM_PROTO_GetShiftState [06:59:41]wFMCommunicate request_size=4 [06:59:41]MH_SAM_APDU [06:59:41]CAPDU: 80 13 01 00 [06:59:41]Write to MH i2c: E2 08 00 9D 3C 80 13 01 00 00 00 00 00 56 [06:59:41]Write i2c OK [06:59:41]MH_I2C_Read... [06:59:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:59:41]Read from MH i2c: E2 [06:59:41]MH_I2C_Read... [06:59:41]Read from MH i2c: E2 0E 00 [06:59:41]MH_I2C_Read... [06:59:41]Read from MH i2c: E2 0E 00 9D 3C 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 02 [06:59:41]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [06:59:41]wFMCommunicate OK [06:59:41]SAM_PROTO_GetShiftState done [06:59:41]FM_GetShiftState done [06:59:41]req_shift_opened done [06:59:41]requested_item shift.open_date is exist - process it [06:59:41]req_shift_open_date [06:59:41]req_shift_open_date done [06:59:41]produce_requested_data done [06:59:41]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67411,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [06:59:41]process_action_free print_text [06:59:41]json_value_free [06:59:41]json_value_free done [06:59:41]process_json_proto returns [06:59:41]Send response to host [06:59:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67411,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [06:59:41]free response buf [06:59:41]execute_script done [06:59:41]execute_script returns [06:59:41]free content buf [06:59:41]Sock 9.Close socket [06:59:41]Sock 9.Thread stoped [06:59:42]OFD Sender: No OFD packet to send [06:59:47]OFD Sender: No OFD packet to send [06:59:52]OFD Sender: No OFD packet to send [06:59:57]OFD Sender: No OFD packet to send [07:00:02]OFD Sender: No OFD packet to send [07:00:07]OFD Sender: No OFD packet to send [07:00:12]OFD Sender: No OFD packet to send [07:00:17]OFD Sender: No OFD packet to send [07:00:22]OFD Sender: No OFD packet to send [07:00:27]OFD Sender: No OFD packet to send [07:00:32]OFD Sender: No OFD packet to send [07:00:37]OFD Sender: No OFD packet to send [07:00:42]OFD Sender: No OFD packet to send [07:00:47]OFD Sender: No OFD packet to send [07:00:52]OFD Sender: No OFD packet to send [07:00:57]OFD Sender: No OFD packet to send [07:01:02]OFD Sender: No OFD packet to send [07:01:07]OFD Sender: No OFD packet to send [07:01:11]accept exits with 7 [07:01:11]New connection [07:01:11]New thread 3067174244 created [07:01:11]Thread 3067030884 joined [07:01:11]Waiting for new connection... [07:01:11] Sock 7.Parse request [07:01:11]Sock 7.Check first char [07:01:11]Sock 7.First char is OK [07:01:11]request: POST /json_proto HTTP/1.0 [07:01:11]Method: POST [07:01:11]URL: /json_proto [07:01:11]Method is POST - this is cgi request [07:01:11]url: /json_proto [07:01:11]query_string will be loaded in cgi processing [07:01:11]execute_cgi json_proto POST (null) [07:01:11]execute_cgi path=json_proto method=POST [07:01:11]POST find Content-Length [07:01:11]Host: 172.17.41.195:8080 [07:01:11]Content-Length: 1211 [07:01:11]Content-Type: application/json [07:01:11] [07:01:11]POST finish read [07:01:11]Found Content-Length = 1211 [07:01:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507401\u000A16.05.2024 06:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 668.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:01:11]execute_script... [07:01:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507401\u000A16.05.2024 06:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 668.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:01:11]POST & json_proto [07:01:11]process_json_proto [07:01:11]json parsed OK: [07:01:11]protocol is kg_v1.0 [07:01:11]action value=print_text [07:01:11]process_action print_text [07:01:11]cmd_print_text [07:01:11]ExternCall_PrintAddStr [07:01:11]wPrintStart [07:01:11]Write to MH i2c: 01 00 00 9E 3C DA [07:01:11]Write i2c OK [07:01:11]MH_I2C_Read... [07:01:11]Read from MH i2c: 01 [07:01:11]MH_I2C_Read... [07:01:11]Read from MH i2c: 01 07 00 [07:01:11]MH_I2C_Read... [07:01:11]Read from MH i2c: 01 07 00 9E 3C 00 00 00 00 00 FF 0F EF [07:01:11]RasterBufferAndPrint [07:01:11]line *****ТОВАРНЫЙ ЧЕК***** [07:01:11]line АЗС-91 [07:01:11]line Партнер нефть [07:01:11]line 02508201610067 [07:01:11]line Кассир : Пайзулдаева А. [07:01:11]line Счет N : (1)507401 [07:01:11]line 16.05.2024 06:43 [07:01:11]line ПРОДАЖА [07:01:11]line ТРК (МРК, ГНК): 43 [07:01:11]line Вид ГСМ : 2710124130 [07:01:11]line Аи-92-К-5 [07:01:11]line 10.000 x 66.80 [07:01:11]line ИТОГ: 668.00 [07:01:11]line Тип оплаты: Талоны: Топливная Карта [07:01:11]line 02750 [07:01:11]line ______________________ [07:01:11]line (подпись) [07:01:11]written 0, free lines is 4095 [07:01:11]Write to MH i2c: 01 00 00 B2 3C EE [07:01:11]Write i2c OK [07:01:11]MH_I2C_Read... [07:01:11]Read from MH i2c: 01 [07:01:11]MH_I2C_Read... [07:01:11]Read from MH i2c: 01 07 00 [07:01:11]MH_I2C_Read... [07:01:11]Read from MH i2c: 01 07 00 B2 3C 00 00 00 00 00 12 0E 15 [07:01:11]RasterBufferAndPrint [07:01:11]line [07:01:11]line [07:01:11]line [07:01:11]line [07:01:11]line [07:01:11]written 0, free lines is 3604 [07:01:11]MH_Cut [07:01:11]Write to MH i2c: D1 01 00 B9 3C 01 C7 [07:01:11]Write i2c OK [07:01:11]MH_I2C_Read... [07:01:11]Read from MH i2c: D1 [07:01:11]MH_I2C_Read... [07:01:11]Read from MH i2c: D1 01 00 [07:01:11]MH_I2C_Read... [07:01:11]Read from MH i2c: D1 01 00 B9 3C 00 C6 [07:01:11]Write to MH i2c: 01 00 00 BA 3C F6 [07:01:11]Write i2c OK [07:01:11]MH_I2C_Read... [07:01:11]*** Cut start [07:01:11]*** Purtial cut [07:01:11]*** Stage 1: CUTSNS_PIN = 1 [07:01:12]Read from MH i2c: 01 [07:01:12]MH_I2C_Read... [07:01:12]Read from MH i2c: 01 07 00 [07:01:12]MH_I2C_Read... [07:01:12]*** Stop cut motor [07:01:12]*** Cut end [07:01:12]Read from MH i2c: 01 07 00 BA 3C 00 00 00 00 00 FF 0F 0B [07:01:12]process_action print_text done [07:01:12]requested_data is exist [07:01:12]produce_requested_data [07:01:12]requested_item fm.sn is exist - process it [07:01:12]wFMCommunicate request_size=4 [07:01:12]MH_SAM_APDU [07:01:12]CAPDU: 80 11 00 00 [07:01:12]Write to MH i2c: E2 08 00 BB 3C 80 11 00 00 00 00 00 00 71 [07:01:12]Write i2c OK [07:01:12]MH_I2C_Read... [07:01:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:01:12]Read from MH i2c: E2 [07:01:12]MH_I2C_Read... [07:01:12]Read from MH i2c: E2 17 00 [07:01:12]MH_I2C_Read... [07:01:12]Read from MH i2c: E2 17 00 BB 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C7 [07:01:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:01:12]wFMCommunicate OK [07:01:12]requested_item fd.num is exist - process it [07:01:12]SAM_PROTO_GetFieldsCounters [07:01:12]wFMCommunicate request_size=4 [07:01:12]MH_SAM_APDU [07:01:12]CAPDU: 80 13 00 00 [07:01:12]Write to MH i2c: E2 08 00 BC 3C 80 13 00 00 00 00 00 00 74 [07:01:12]Write i2c OK [07:01:12]MH_I2C_Read... [07:01:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:01:12]Read from MH i2c: E2 [07:01:12]MH_I2C_Read... [07:01:12]Read from MH i2c: E2 62 00 [07:01:12]MH_I2C_Read... [07:01:12]Read from MH i2c: E2 62 00 BC 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 53 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [07:01: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 53 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:01:12]wFMCommunicate OK [07:01:12]SAM_PROTO_GetFieldsCounters done [07:01:12]requested_item shift.num is exist - process it [07:01:12]requested_item shift.opened is exist - process it [07:01:12]req_shift_opened [07:01:12]FM_GetShiftState [07:01:12]SAM_PROTO_GetShiftState [07:01:12]wFMCommunicate request_size=4 [07:01:12]MH_SAM_APDU [07:01:12]CAPDU: 80 13 01 00 [07:01:12]Write to MH i2c: E2 08 00 BD 3C 80 13 01 00 00 00 00 00 76 [07:01:12]Write i2c OK [07:01:12]MH_I2C_Read... [07:01:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:01:12]Read from MH i2c: E2 [07:01:12]MH_I2C_Read... [07:01:12]Read from MH i2c: E2 0E 00 [07:01:12]MH_I2C_Read... [07:01:12]Read from MH i2c: E2 0E 00 BD 3C 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 22 [07:01:12]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [07:01:12]wFMCommunicate OK [07:01:12]SAM_PROTO_GetShiftState done [07:01:12]FM_GetShiftState done [07:01:12]req_shift_opened done [07:01:12]requested_item shift.open_date is exist - process it [07:01:12]req_shift_open_date [07:01:12]req_shift_open_date done [07:01:12]produce_requested_data done [07:01:12]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67411,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [07:01:12]process_action_free print_text [07:01:12]json_value_free [07:01:12]json_value_free done [07:01:12]process_json_proto returns [07:01:12]Send response to host [07:01:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67411,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [07:01:12]free response buf [07:01:12]execute_script done [07:01:12]execute_script returns [07:01:12]free content buf [07:01:12]Sock 7.Close socket [07:01:12]Sock 7.Thread stoped [07:01:12]OFD Sender: No OFD packet to send [07:01:17]OFD Sender: No OFD packet to send [07:01:22]OFD Sender: No OFD packet to send [07:01:27]OFD Sender: No OFD packet to send [07:01:32]OFD Sender: No OFD packet to send [07:01:37]OFD Sender: No OFD packet to send [07:01:42]OFD Sender: No OFD packet to send [07:01:47]OFD Sender: No OFD packet to send [07:01:52]OFD Sender: No OFD packet to send [07:01:57]OFD Sender: No OFD packet to send [07:02:02]OFD Sender: No OFD packet to send [07:02:07]OFD Sender: No OFD packet to send [07:02:12]OFD Sender: No OFD packet to send [07:02:17]OFD Sender: No OFD packet to send [07:02:22]OFD Sender: No OFD packet to send [07:02:27]OFD Sender: No OFD packet to send [07:02:32]OFD Sender: No OFD packet to send [07:02:37]OFD Sender: No OFD packet to send [07:02:42]OFD Sender: No OFD packet to send [07:02:47]OFD Sender: No OFD packet to send [07:02:52]OFD Sender: No OFD packet to send [07:02:57]OFD Sender: No OFD packet to send [07:03:02]OFD Sender: No OFD packet to send [07:03:07]OFD Sender: No OFD packet to send [07:03:12]OFD Sender: No OFD packet to send [07:03:17]OFD Sender: No OFD packet to send [07:03:22]OFD Sender: No OFD packet to send [07:03:27]OFD Sender: No OFD packet to send [07:03:32]OFD Sender: No OFD packet to send [07:03:37]OFD Sender: No OFD packet to send [07:03:42]OFD Sender: No OFD packet to send [07:03:47]OFD Sender: No OFD packet to send [07:03:52]OFD Sender: No OFD packet to send [07:03:57]OFD Sender: No OFD packet to send [07:04:02]OFD Sender: No OFD packet to send [07:04:07]OFD Sender: No OFD packet to send [07:04:12]OFD Sender: No OFD packet to send [07:04:17]OFD Sender: No OFD packet to send [07:04:22]OFD Sender: No OFD packet to send [07:04:27]OFD Sender: No OFD packet to send [07:04:32]OFD Sender: No OFD packet to send [07:04:37]OFD Sender: No OFD packet to send [07:04:42]OFD Sender: No OFD packet to send [07:04:47]OFD Sender: No OFD packet to send [07:04:52]OFD Sender: No OFD packet to send [07:04:57]OFD Sender: No OFD packet to send [07:05:02]OFD Sender: No OFD packet to send [07:05:07]OFD Sender: No OFD packet to send [07:05:12]OFD Sender: No OFD packet to send [07:05:17]OFD Sender: No OFD packet to send [07:05:22]OFD Sender: No OFD packet to send [07:05:27]OFD Sender: No OFD packet to send [07:05:30]accept exits with 9 [07:05:30]New connection [07:05:30]New thread 3067030884 created [07:05:30]Thread 3067174244 joined [07:05:30]Waiting for new connection... [07:05:30] Sock 9.Parse request [07:05:30]Sock 9.Check first char [07:05:30]Sock 9.First char is OK [07:05:30]request: POST /json_proto HTTP/1.0 [07:05:30]Method: POST [07:05:30]URL: /json_proto [07:05:30]Method is POST - this is cgi request [07:05:30]url: /json_proto [07:05:30]query_string will be loaded in cgi processing [07:05:30]execute_cgi json_proto POST (null) [07:05:30]execute_cgi path=json_proto method=POST [07:05:30]POST find Content-Length [07:05:30]Host: 172.17.41.195:8080 [07:05:30]Content-Length: 677 [07:05:30]Content-Type: application/json [07:05:30] [07:05:30]POST finish read [07:05:30]Found Content-Length = 677 [07:05:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507402", "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.80, "quantity" : 4.500, "sum" : 300.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:05:30]execute_script... [07:05: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)507402", "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.80, "quantity" : 4.500, "sum" : 300.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:05:30]POST & json_proto [07:05:30]process_json_proto [07:05:30]json parsed OK: [07:05:30]protocol is kg_v1.0 [07:05:30]action value=close_receipt [07:05:30]process_action close_receipt [07:05:30]cmd_close_receipt [07:05:30]MH_GetDate [07:05:30]Write to MH i2c: F0 00 00 BE 3C E9 [07:05:30]Write i2c OK [07:05:30]MH_I2C_Read... [07:05:30]Read from MH i2c: F0 [07:05:30]MH_I2C_Read... [07:05:30]Read from MH i2c: F0 09 00 [07:05:30]MH_I2C_Read... [07:05:30]Read from MH i2c: F0 09 00 BE 3C 00 3F B0 45 66 FC 21 6F 64 7C [07:05:30]GetLastDocTimeStamp 1715842033 [07:05:30]current date 1715843135 [07:05:30]FM_GetShiftState [07:05:30]SAM_PROTO_GetShiftState [07:05:30]wFMCommunicate request_size=4 [07:05:30]MH_SAM_APDU [07:05:30]CAPDU: 80 13 01 00 [07:05:30]Write to MH i2c: E2 08 00 BF 3C 80 13 01 00 00 00 00 00 78 [07:05:30]Write i2c OK [07:05:30]MH_I2C_Read... [07:05:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:05:30]Read from MH i2c: E2 [07:05:30]MH_I2C_Read... [07:05:30]Read from MH i2c: E2 0E 00 [07:05:30]MH_I2C_Read... [07:05:30]Read from MH i2c: E2 0E 00 BF 3C 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 24 [07:05:30]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [07:05:30]wFMCommunicate OK [07:05:30]SAM_PROTO_GetShiftState done [07:05:30]FM_GetShiftState done [07:05:30]opened in 1715818916 [07:05:30]opened+sec_in_day 1715905316 [07:05:30]quantity*price = 30060 [07:05:30]sum+1 = 30061 [07:05:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 10 16.05.2024 07:05 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67412 ФПД: 11291473210160 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T070535&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67412&fm=11291473210160&tin=02508201610067®Number=0000000000091845&sum=30000 [07:05:31]StoreToDocumentArchive [07:05:31]shift 357 fd 67412 [07:05:31]save to /storage/0357/doc_00067412 [07:05:31]save last doc name /storage/0357/doc_00067412 to /storage/kkm_last_doc_name [07:05:31]save OK [07:05:31]Clear old archive folders... [07:05:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:05:32]tlvbuf is 00B983A0 [07:05:32]SAM_PROTO_ClearQueue [07:05:32]wFMCommunicate request_size=4 [07:05:32]MH_SAM_APDU [07:05:32]CAPDU: 80 09 00 00 [07:05:32]Write to MH i2c: E2 08 00 CC 3C 80 09 00 00 00 00 00 00 7A [07:05:32]Write i2c OK [07:05:32]MH_I2C_Read... [07:05:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:05:32]Read from MH i2c: E2 [07:05:32]MH_I2C_Read... [07:05:32]Read from MH i2c: E2 03 00 [07:05:32]MH_I2C_Read... [07:05:32]Read from MH i2c: E2 03 00 CC 3C 00 90 00 7C [07:05:32]RAPDU: 90 00 [07:05:32]wFMCommunicate OK [07:05:32]SAM_PROTO_ClearQueue done [07:05:32]KKMCreateOFDPacket [07:05:32]OFDProtocolAddRootSTLVToBuf [07:05:32]FM_MakeSignedData [07:05:32]FM_MakeSignedData [07:05:32]SAM_PROTO_SignData [07:05:32]wFMCommunicate request_size=4 [07:05:32]MH_SAM_APDU [07:05:32]CAPDU: 80 0D 01 02 [07:05:32]Write to MH i2c: E2 08 00 CD 3C 80 0D 01 02 00 00 00 00 82 [07:05:32]Write i2c OK [07:05:32]MH_I2C_Read... [07:05:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:05:32]Read from MH i2c: E2 [07:05:32]MH_I2C_Read... [07:05:32]Read from MH i2c: E2 03 00 [07:05:32]MH_I2C_Read... [07:05:32]Read from MH i2c: E2 03 00 CD 3C 00 90 00 7D [07:05:32]RAPDU: 90 00 [07:05:32]wFMCommunicate OK [07:05:32]wFMCommunicate request_size=255 [07:05:32]MH_SAM_APDU [07:05:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 11 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 3F B0 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 54 07 01 00 35 04 06 00 0A [07:05:32]Write to MH i2c: E2 02 01 CE 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 11 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 3F B0 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 54 07 01 00 35 04 06 00 0A 00 00 92 [07:05:32]Write i2c OK [07:05:32]MH_I2C_Read... [07:05:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:05:32]Read from MH i2c: E2 [07:05:32]MH_I2C_Read... [07:05:32]Read from MH i2c: E2 03 00 [07:05:32]MH_I2C_Read... [07:05:32]Read from MH i2c: E2 03 00 CE 3C 00 90 00 7E [07:05:32]RAPDU: 90 00 [07:05:32]wFMCommunicate OK [07:05:32]wFMCommunicate request_size=10 [07:05:32]MH_SAM_APDU [07:05:32]CAPDU: 80 0D 02 02 05 45 00 3F EB 30 [07:05:32]Write to MH i2c: E2 0D 00 CF 3C 80 0D 02 02 05 00 45 00 3F EB 30 00 00 2E [07:05:32]Write i2c OK [07:05:32]MH_I2C_Read... [07:05:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:05:32]Read from MH i2c: E2 [07:05:32]MH_I2C_Read... [07:05:32]Read from MH i2c: E2 03 00 [07:05:32]MH_I2C_Read... [07:05:32]Read from MH i2c: E2 03 00 CF 3C 00 90 00 7F [07:05:32]RAPDU: 90 00 [07:05:32]wFMCommunicate OK [07:05:32]wFMCommunicate request_size=4 [07:05:32]MH_SAM_APDU [07:05:32]CAPDU: 80 0D 03 02 [07:05:32]Write to MH i2c: E2 08 00 D0 3C 80 0D 03 02 00 00 00 00 87 [07:05:32]Write i2c OK [07:05:32]MH_I2C_Read... [07:05:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:05:32]Read from MH i2c: E2 [07:05:32]MH_I2C_Read... [07:05:32]Read from MH i2c: E2 0B 00 [07:05:32]MH_I2C_Read... [07:05:32]Read from MH i2c: E2 0B 00 D0 3C 00 86 24 66 45 5D CD 26 80 90 00 AD [07:05:32]RAPDU: 86 24 66 45 5D CD 26 80 90 00 [07:05:32]wFMCommunicate OK [07:05:32]SAM_PROTO_SignData done [07:05:32]FM_MakeSignedData done [07:05:32]CreateOFDProtocolMessage [07:05:32]wFMCommunicate request_size=4 [07:05:32]MH_SAM_APDU [07:05:32]CAPDU: 80 11 00 00 [07:05:32]Write to MH i2c: E2 08 00 D1 3C 80 11 00 00 00 00 00 00 87 [07:05:32]Write i2c OK [07:05:32]MH_I2C_Read... [07:05:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:05:32]Read from MH i2c: E2 [07:05:32]MH_I2C_Read... [07:05:32]Read from MH i2c: E2 17 00 [07:05:32]MH_I2C_Read... [07:05:32]Read from MH i2c: E2 17 00 D1 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DD [07:05:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:05:32]wFMCommunicate OK [07:05:32]CreateOFDProtocolMessage done [07:05:32]OFDSenderStorePacket 67412 [07:05:32]StoreOFDPacket docnum=67412 [07:05:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 ED 4F 07 01 D1 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 94 11 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 3F B0 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 54 07 01 00 35 04 06 00 0A 45 00 3F EB 30 86 24 66 45 5D CD 26 80 [07:05:32]CheckFolder [07:05:32]dirname=/storage/ofd_packets [07:05:32]CheckFolder done [07:05:32]ProducePacketName [07:05:32]name=ofd_packets/00067412 [07:05:32]NVStorageSaveData ofd_packets/00067412 [07:05:32]File name is /storage/ofd_packets/00067412 [07:05:32]Write 301 bytes [07:05:32]NVStorageSaveData done [07:05:32]OFDSenderStorePacket done [07:05:32]KKMCreateOFDPacket done [07:05:32]NVStorageSaveData kkm_last_timestamp [07:05:32]File name is /storage/kkm_last_timestamp [07:05:32]Write 4 bytes [07:05:32]NVStorageSaveData done [07:05:32]ExternCall_PrintAddStr [07:05:32]wPrintStart [07:05:32]Write to MH i2c: 01 00 00 D2 3C 0E [07:05:32]Write i2c OK [07:05:32]MH_I2C_Read... [07:05:32]Read from MH i2c: 01 [07:05:32]MH_I2C_Read... [07:05:32]Read from MH i2c: 01 07 00 [07:05:32]MH_I2C_Read... [07:05:32]Read from MH i2c: 01 07 00 D2 3C 00 00 00 00 00 FF 0F 23 [07:05:32]RasterBufferAndPrint [07:05:32]line Счет N : (1)507402 [07:05:32]line ИНН: 02508201610067 [07:05:32]line Контрольно-Кассовый Чек [07:05:32]line ПРОДАЖА [07:05:32]line ТРК (МРК, ГНК) : 43 [07:05:32]line Товар: 2710124130 [07:05:32]line Аи-92-К-5 [07:05:32]line 4.500 * 66.80 [07:05:32]line = 300.60 [07:05:32]line НДС 12% НСП 1% [07:05:32]line > о реализуемом товаре [07:05:32]line ОКРУГЛЕНИЕ: -0.60 [07:05:32]line ИТОГО: 300.00 [07:05:32]line Внесено: 300.00 [07:05:32]line СДАЧА: 0.00 [07:05:32]line НСП 1% : 2.66 [07:05:32]line НДС 12% : 31.92 [07:05:32]line Наличными: 300.00 [07:05:32]line Безнал.: 0.00 [07:05:32]line Место: АЗС № 91 "Партнер Нефть" [07:05:32]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [07:05:32]line СНО: Общий режим [07:05:32]line Чек 10 16.05.2024 07:05 [07:05:32]line Смена: 357 ФФД: 1.0 [07:05:32]line ЗНМ: 0300000119 [07:05:32]line РНМ: 0000000000091845 [07:05:32]line Версия ККМ: 001 [07:05:32]line ФМ: 0000000000871829 [07:05:32]line ФД: 67412 [07:05:32]line ФПД: 11291473210160 [07:05:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T070535&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67412&fm=11291473210160&tin=02508201610067®Number=0000000000091845&sum=30000 [07:05:32]OFD Sender: Processing packet 67412 [packets to send 35, broken 34] [07:05:32]ProducePacketName [07:05:32]name=ofd_packets/00067412 [07:05:32]OFD Sender: To server: pG, [07:05:32]CommunicateWithHost lk.salyk.kg:30040 [07:05:32]ConnectInit lk.salyk.kg [07:05:32]written 0, free lines is 4095 [07:05:32]Connected sock=10 [07:05: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 38 32 39 0F 01 00 00 ED 4F 07 01 D1 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 94 11 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 3F B0 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 54 07 01 00 35 04 06 00 0A 45 00 3F EB 30 86 24 66 45 5D CD 26 80 [07: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 38 32 39 4F 00 00 00 3B 50 47 00 60 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 38 32 39 10 04 04 00 54 07 01 00 F4 03 04 00 1A 58 45 66 B6 04 01 00 00 73 43 A2 67 7D 9C 9C C8 [07:05:33]CommunicateWithHost err = 0 [07:05:33]CheckOFDResponse [07:05:33]1017 (14) - 77093643461234 [07:05:33]1041 (16) - 0000000000871829 [07:05:33]1040 (4) - 67412 [07:05:33]1012 (4) - 16.05.2024 00:49 [07:05:33]1206 (1) - 0 [07:05:33]OFD Sender: Remove packet 67412 [07:05:33]ProducePacketName [07:05:33]name=ofd_packets/00067412 [07:05:33]NVStorageDeleteData [07:05:33]Write to MH i2c: 01 00 00 FC 3C 38 [07:05:33]Write i2c OK [07:05:33]MH_I2C_Read... [07:05:33]Read from MH i2c: 01 [07:05:33]MH_I2C_Read... [07:05:33]Read from MH i2c: 01 07 00 [07:05:33]MH_I2C_Read... [07:05:33]Read from MH i2c: 01 07 00 FC 3C 00 00 00 00 00 CD 0C 18 [07:05:33]RasterBufferAndPrint [07:05:33]line [07:05:33]line [07:05:33]line [07:05:33]line [07:05:33]line [07:05:33]written 0, free lines is 3283 [07:05:33]MH_Cut [07:05:33]Write to MH i2c: D1 01 00 03 3D 01 12 [07:05:33]Write i2c OK [07:05:33]MH_I2C_Read... [07:05:33]Read from MH i2c: D1 [07:05:33]MH_I2C_Read... [07:05:33]Read from MH i2c: D1 01 00 [07:05:33]MH_I2C_Read... [07:05:33]Read from MH i2c: D1 01 00 03 3D 00 11 [07:05:33]Write to MH i2c: 01 00 00 04 3D 41 [07:05:33]Write i2c OK [07:05:33]MH_I2C_Read... [07:05:33]OFD Sender: No OFD packet to send [07:05:34]*** Cut start [07:05:34]*** Purtial cut [07:05:34]*** CUTSNS_PIN = 0 [07:05:34]*** Stage 1: CUTSNS_PIN = 1 [07:05:36]Read from MH i2c: 01 [07:05:36]MH_I2C_Read... [07:05:36]*** Stop cut motor [07:05:36]*** Cut end [07:05:36]Read from MH i2c: 01 07 00 [07:05:36]MH_I2C_Read... [07:05:36]Read from MH i2c: 01 07 00 04 3D 00 00 00 00 00 FF 0F 56 [07:05:36]process_action close_receipt done [07:05:36]requested_data is exist [07:05:36]produce_requested_data [07:05:36]requested_item fm.sn is exist - process it [07:05:36]wFMCommunicate request_size=4 [07:05:36]MH_SAM_APDU [07:05:36]CAPDU: 80 11 00 00 [07:05:36]Write to MH i2c: E2 08 00 05 3D 80 11 00 00 00 00 00 00 BC [07:05:36]Write i2c OK [07:05:36]MH_I2C_Read... [07:05:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:05:36]Read from MH i2c: E2 [07:05:36]MH_I2C_Read... [07:05:36]Read from MH i2c: E2 17 00 [07:05:36]MH_I2C_Read... [07:05:36]Read from MH i2c: E2 17 00 05 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 12 [07:05:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:05:36]wFMCommunicate OK [07:05:36]requested_item fd.num is exist - process it [07:05:36]SAM_PROTO_GetFieldsCounters [07:05:36]wFMCommunicate request_size=4 [07:05:36]MH_SAM_APDU [07:05:36]CAPDU: 80 13 00 00 [07:05:36]Write to MH i2c: E2 08 00 06 3D 80 13 00 00 00 00 00 00 BF [07:05:36]Write i2c OK [07:05:36]MH_I2C_Read... [07:05:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:05:36]Read from MH i2c: E2 [07:05:36]MH_I2C_Read... [07:05:36]Read from MH i2c: E2 62 00 [07:05:36]MH_I2C_Read... [07:05:36]Read from MH i2c: E2 62 00 06 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 54 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [07:05: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 54 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:05:36]wFMCommunicate OK [07:05:36]SAM_PROTO_GetFieldsCounters done [07:05:36]requested_item shift.num is exist - process it [07:05:36]requested_item shift.opened is exist - process it [07:05:36]req_shift_opened [07:05:36]FM_GetShiftState [07:05:36]SAM_PROTO_GetShiftState [07:05:36]wFMCommunicate request_size=4 [07:05:36]MH_SAM_APDU [07:05:36]CAPDU: 80 13 01 00 [07:05:36]Write to MH i2c: E2 08 00 07 3D 80 13 01 00 00 00 00 00 C1 [07:05:36]Write i2c OK [07:05:36]MH_I2C_Read... [07:05:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:05:36]Read from MH i2c: E2 [07:05:36]MH_I2C_Read... [07:05:36]Read from MH i2c: E2 0E 00 [07:05:36]MH_I2C_Read... [07:05:36]Read from MH i2c: E2 0E 00 07 3D 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 6D [07:05:36]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [07:05:36]wFMCommunicate OK [07:05:36]SAM_PROTO_GetShiftState done [07:05:36]FM_GetShiftState done [07:05:36]req_shift_opened done [07:05:36]requested_item shift.open_date is exist - process it [07:05:36]req_shift_open_date [07:05:36]req_shift_open_date done [07:05:36]produce_requested_data done [07:05:36]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67412,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [07:05:36]process_action_free close_receipt [07:05:36]json_value_free [07:05:36]json_value_free done [07:05:36]process_json_proto returns [07:05:36]Send response to host [07:05:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67412,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [07:05:36]free response buf [07:05:36]execute_script done [07:05:36]execute_script returns [07:05:36]free content buf [07:05:36]Sock 9.Close socket [07:05:36]Sock 9.Thread stoped [07:05:38]OFD Sender: No OFD packet to send [07:05:43]OFD Sender: No OFD packet to send [07:05:48]OFD Sender: No OFD packet to send [07:05:53]OFD Sender: No OFD packet to send [07:05:58]OFD Sender: No OFD packet to send [07:06:03]OFD Sender: No OFD packet to send [07:06:08]OFD Sender: No OFD packet to send [07:06:13]OFD Sender: No OFD packet to send [07:06:18]OFD Sender: No OFD packet to send [07:06:23]OFD Sender: No OFD packet to send [07:06:28]OFD Sender: No OFD packet to send [07:06:33]OFD Sender: No OFD packet to send [07:06:38]OFD Sender: No OFD packet to send [07:06:43]OFD Sender: No OFD packet to send [07:06:48]OFD Sender: No OFD packet to send [07:06:53]OFD Sender: No OFD packet to send [07:06:58]OFD Sender: No OFD packet to send [07:07:03]OFD Sender: No OFD packet to send [07:07:08]OFD Sender: No OFD packet to send [07:07:13]OFD Sender: No OFD packet to send [07:07:18]OFD Sender: No OFD packet to send [07:07:23]OFD Sender: No OFD packet to send [07:07:28]OFD Sender: No OFD packet to send [07:07:33]OFD Sender: No OFD packet to send [07:07:38]OFD Sender: No OFD packet to send [07:07:43]OFD Sender: No OFD packet to send [07:07:48]OFD Sender: No OFD packet to send [07:07:53]OFD Sender: No OFD packet to send [07:07:58]OFD Sender: No OFD packet to send [07:08:03]OFD Sender: No OFD packet to send [07:08:08]OFD Sender: No OFD packet to send [07:08:13]OFD Sender: No OFD packet to send [07:08:18]OFD Sender: No OFD packet to send [07:08:23]OFD Sender: No OFD packet to send [07:08:28]OFD Sender: No OFD packet to send [07:08:33]OFD Sender: No OFD packet to send [07:08:38]OFD Sender: No OFD packet to send [07:08:43]OFD Sender: No OFD packet to send [07:08:48]OFD Sender: No OFD packet to send [07:08:53]OFD Sender: No OFD packet to send [07:08:58]OFD Sender: No OFD packet to send [07:09:03]OFD Sender: No OFD packet to send [07:09:08]OFD Sender: No OFD packet to send [07:09:13]OFD Sender: No OFD packet to send [07:09:18]OFD Sender: No OFD packet to send [07:09:23]OFD Sender: No OFD packet to send [07:09:28]OFD Sender: No OFD packet to send [07:09:33]OFD Sender: No OFD packet to send [07:09:38]OFD Sender: No OFD packet to send [07:09:43]OFD Sender: No OFD packet to send [07:09:48]OFD Sender: No OFD packet to send [07:09:53]OFD Sender: No OFD packet to send [07:09:58]OFD Sender: No OFD packet to send [07:10:03]OFD Sender: No OFD packet to send [07:10:08]OFD Sender: No OFD packet to send [07:10:13]OFD Sender: No OFD packet to send [07:10:18]OFD Sender: No OFD packet to send [07:10:23]OFD Sender: No OFD packet to send [07:10:28]OFD Sender: No OFD packet to send [07:10:33]OFD Sender: No OFD packet to send [07:10:38]OFD Sender: No OFD packet to send [07:10:43]OFD Sender: No OFD packet to send [07:10:48]OFD Sender: No OFD packet to send [07:10:53]OFD Sender: No OFD packet to send [07:10:58]OFD Sender: No OFD packet to send [07:11:03]OFD Sender: No OFD packet to send [07:11:08]OFD Sender: No OFD packet to send [07:11:13]OFD Sender: No OFD packet to send [07:11:18]OFD Sender: No OFD packet to send [07:11:23]OFD Sender: No OFD packet to send [07:11:28]OFD Sender: No OFD packet to send [07:11:33]OFD Sender: No OFD packet to send [07:11:38]OFD Sender: No OFD packet to send [07:11:43]OFD Sender: No OFD packet to send [07:11:48]OFD Sender: No OFD packet to send [07:11:54]OFD Sender: No OFD packet to send [07:11:59]OFD Sender: No OFD packet to send [07:12:04]OFD Sender: No OFD packet to send [07:12:09]OFD Sender: No OFD packet to send [07:12:14]OFD Sender: No OFD packet to send [07:12:19]OFD Sender: No OFD packet to send [07:12:24]OFD Sender: No OFD packet to send [07:12:29]OFD Sender: No OFD packet to send [07:12:34]OFD Sender: No OFD packet to send [07:12:39]OFD Sender: No OFD packet to send [07:12:41]accept exits with 7 [07:12:41]New connection [07:12:41]New thread 3067174244 created [07:12:41]Thread 3067030884 joined [07:12:41]Waiting for new connection... [07:12:41] Sock 7.Parse request [07:12:41]Sock 7.Check first char [07:12:41]Sock 7.First char is OK [07:12:41]request: POST /json_proto HTTP/1.0 [07:12:41]Method: POST [07:12:41]URL: /json_proto [07:12:41]Method is POST - this is cgi request [07:12:41]url: /json_proto [07:12:41]query_string will be loaded in cgi processing [07:12:41]execute_cgi json_proto POST (null) [07:12:41]execute_cgi path=json_proto method=POST [07:12:41]POST find Content-Length [07:12:41]Host: 172.17.41.195:8080 [07:12:41]Content-Length: 677 [07:12:41]Content-Type: application/json [07:12:41] [07:12:41]POST finish read [07:12:41]Found Content-Length = 677 [07:12:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507403", "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.80, "quantity" : 7.490, "sum" : 500.33, "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:12:41]execute_script... [07:12: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)507403", "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.80, "quantity" : 7.490, "sum" : 500.33, "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:12:41]POST & json_proto [07:12:41]process_json_proto [07:12:41]json parsed OK: [07:12:41]protocol is kg_v1.0 [07:12:41]action value=close_receipt [07:12:41]process_action close_receipt [07:12:41]cmd_close_receipt [07:12:41]MH_GetDate [07:12:41]Write to MH i2c: F0 00 00 08 3D 34 [07:12:41]Write i2c OK [07:12:41]MH_I2C_Read... [07:12:41]Read from MH i2c: F0 [07:12:41]MH_I2C_Read... [07:12:41]Read from MH i2c: F0 09 00 [07:12:41]MH_I2C_Read... [07:12:41]Read from MH i2c: F0 09 00 08 3D 00 EE B1 45 66 FC 21 6F 64 77 [07:12:41]GetLastDocTimeStamp 1715843135 [07:12:41]current date 1715843566 [07:12:41]FM_GetShiftState [07:12:41]SAM_PROTO_GetShiftState [07:12:41]wFMCommunicate request_size=4 [07:12:41]MH_SAM_APDU [07:12:41]CAPDU: 80 13 01 00 [07:12:41]Write to MH i2c: E2 08 00 09 3D 80 13 01 00 00 00 00 00 C3 [07:12:41]Write i2c OK [07:12:41]MH_I2C_Read... [07:12:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:12:41]Read from MH i2c: E2 [07:12:41]MH_I2C_Read... [07:12:41]Read from MH i2c: E2 0E 00 [07:12:41]MH_I2C_Read... [07:12:41]Read from MH i2c: E2 0E 00 09 3D 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 6F [07:12:41]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [07:12:41]wFMCommunicate OK [07:12:41]SAM_PROTO_GetShiftState done [07:12:41]FM_GetShiftState done [07:12:41]opened in 1715818916 [07:12:41]opened+sec_in_day 1715905316 [07:12:41]quantity*price = 50033 [07:12:41]sum+1 = 50034 [07:12:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 11 16.05.2024 07:12 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67413 ФПД: 105303402355382 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T071246&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67413&fm=105303402355382&tin=02508201610067®Number=0000000000091845&sum=50000 [07:12:42]StoreToDocumentArchive [07:12:42]shift 357 fd 67413 [07:12:42]save to /storage/0357/doc_00067413 [07:12:42]save last doc name /storage/0357/doc_00067413 to /storage/kkm_last_doc_name [07:12:42]save OK [07:12:42]Clear old archive folders... [07:12:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:12:42]tlvbuf is 00BF6860 [07:12:42]SAM_PROTO_ClearQueue [07:12:42]wFMCommunicate request_size=4 [07:12:42]MH_SAM_APDU [07:12:42]CAPDU: 80 09 00 00 [07:12:42]Write to MH i2c: E2 08 00 16 3D 80 09 00 00 00 00 00 00 C5 [07:12:42]Write i2c OK [07:12:42]MH_I2C_Read... [07:12:42]Read from MH i2c: E2 [07:12:42]MH_I2C_Read... [07:12:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:12:42]Read from MH i2c: E2 03 00 [07:12:42]MH_I2C_Read... [07:12:42]Read from MH i2c: E2 03 00 16 3D 00 90 00 C7 [07:12:42]RAPDU: 90 00 [07:12:42]wFMCommunicate OK [07:12:42]SAM_PROTO_ClearQueue done [07:12:42]KKMCreateOFDPacket [07:12:42]OFDProtocolAddRootSTLVToBuf [07:12:42]FM_MakeSignedData [07:12:42]FM_MakeSignedData [07:12:42]SAM_PROTO_SignData [07:12:42]wFMCommunicate request_size=4 [07:12:42]MH_SAM_APDU [07:12:42]CAPDU: 80 0D 01 02 [07:12:42]Write to MH i2c: E2 08 00 17 3D 80 0D 01 02 00 00 00 00 CD [07:12:42]Write i2c OK [07:12:42]MH_I2C_Read... [07:12:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:12:42]Read from MH i2c: E2 [07:12:42]MH_I2C_Read... [07:12:42]Read from MH i2c: E2 03 00 [07:12:42]MH_I2C_Read... [07:12:42]Read from MH i2c: E2 03 00 17 3D 00 90 00 C8 [07:12:42]RAPDU: 90 00 [07:12:42]wFMCommunicate OK [07:12:42]wFMCommunicate request_size=255 [07:12:42]MH_SAM_APDU [07:12: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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 EE B1 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 55 07 01 00 35 04 06 00 5F [07:12:42]Write to MH i2c: E2 02 01 18 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 EE B1 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 55 07 01 00 35 04 06 00 5F 00 00 CF [07:12:42]Write i2c OK [07:12:42]MH_I2C_Read... [07:12:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:12:43]Read from MH i2c: E2 [07:12:43]MH_I2C_Read... [07:12:43]Read from MH i2c: E2 03 00 [07:12:43]MH_I2C_Read... [07:12:43]Read from MH i2c: E2 03 00 18 3D 00 90 00 C9 [07:12:43]RAPDU: 90 00 [07:12:43]wFMCommunicate OK [07:12:43]wFMCommunicate request_size=10 [07:12:43]MH_SAM_APDU [07:12:43]CAPDU: 80 0D 02 02 05 C5 DB E4 1A B6 [07:12:43]Write to MH i2c: E2 0D 00 19 3D 80 0D 02 02 05 00 C5 DB E4 1A B6 00 00 2E [07:12:43]Write i2c OK [07:12:43]MH_I2C_Read... [07:12:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:12:43]Read from MH i2c: E2 [07:12:43]MH_I2C_Read... [07:12:43]Read from MH i2c: E2 03 00 [07:12:43]MH_I2C_Read... [07:12:43]Read from MH i2c: E2 03 00 19 3D 00 90 00 CA [07:12:43]RAPDU: 90 00 [07:12:43]wFMCommunicate OK [07:12:43]wFMCommunicate request_size=4 [07:12:43]MH_SAM_APDU [07:12:43]CAPDU: 80 0D 03 02 [07:12:43]Write to MH i2c: E2 08 00 1A 3D 80 0D 03 02 00 00 00 00 D2 [07:12:43]Write i2c OK [07:12:43]MH_I2C_Read... [07:12:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:12:43]Read from MH i2c: E2 [07:12:43]MH_I2C_Read... [07:12:43]Read from MH i2c: E2 0B 00 [07:12:43]MH_I2C_Read... [07:12:43]Read from MH i2c: E2 0B 00 1A 3D 00 BF EA C4 3E 9B 62 CA 28 90 00 6D [07:12:43]RAPDU: BF EA C4 3E 9B 62 CA 28 90 00 [07:12:43]wFMCommunicate OK [07:12:43]SAM_PROTO_SignData done [07:12:43]FM_MakeSignedData done [07:12:43]CreateOFDProtocolMessage [07:12:43]wFMCommunicate request_size=4 [07:12:43]MH_SAM_APDU [07:12:43]CAPDU: 80 11 00 00 [07:12:43]Write to MH i2c: E2 08 00 1B 3D 80 11 00 00 00 00 00 00 D2 [07:12:43]Write i2c OK [07:12:43]MH_I2C_Read... [07:12:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:12:43]Read from MH i2c: E2 [07:12:43]MH_I2C_Read... [07:12:43]Read from MH i2c: E2 17 00 [07:12:43]MH_I2C_Read... [07:12:43]Read from MH i2c: E2 17 00 1B 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 28 [07:12:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:12:43]wFMCommunicate OK [07:12:43]CreateOFDProtocolMessage done [07:12:43]OFDSenderStorePacket 67413 [07:12:43]StoreOFDPacket docnum=67413 [07:12:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 89 D8 07 01 F5 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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 EE B1 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 55 07 01 00 35 04 06 00 5F C5 DB E4 1A B6 BF EA C4 3E 9B 62 CA 28 [07:12:43]CheckFolder [07:12:43]dirname=/storage/ofd_packets [07:12:43]CheckFolder done [07:12:43]ProducePacketName [07:12:43]name=ofd_packets/00067413 [07:12:43]NVStorageSaveData ofd_packets/00067413 [07:12:43]File name is /storage/ofd_packets/00067413 [07:12:43]Write 301 bytes [07:12:43]NVStorageSaveData done [07:12:43]OFDSenderStorePacket done [07:12:43]KKMCreateOFDPacket done [07:12:43]NVStorageSaveData kkm_last_timestamp [07:12:43]File name is /storage/kkm_last_timestamp [07:12:43]Write 4 bytes [07:12:43]NVStorageSaveData done [07:12:43]ExternCall_PrintAddStr [07:12:43]wPrintStart [07:12:43]Write to MH i2c: 01 00 00 1C 3D 59 [07:12:43]Write i2c OK [07:12:43]MH_I2C_Read... [07:12:43]Read from MH i2c: 01 [07:12:43]MH_I2C_Read... [07:12:43]Read from MH i2c: 01 07 00 [07:12:43]MH_I2C_Read... [07:12:43]Read from MH i2c: 01 07 00 1C 3D 00 00 00 00 00 FF 0F 6E [07:12:43]RasterBufferAndPrint [07:12:43]line Счет N : (1)507403 [07:12:43]line ИНН: 02508201610067 [07:12:43]line Контрольно-Кассовый Чек [07:12:43]line ПРОДАЖА [07:12:43]line ТРК (МРК, ГНК) : 33 [07:12:43]line Товар: 2710124130 [07:12:43]line Аи-92-К-5 [07:12:43]line 7.490 * 66.80 [07:12:43]line = 500.33 [07:12:43]line НДС 12% НСП 1% [07:12:43]line > о реализуемом товаре [07:12:43]line ОКРУГЛЕНИЕ: -0.33 [07:12:43]line ИТОГО: 500.00 [07:12:43]line Внесено: 500.00 [07:12:43]line СДАЧА: 0.00 [07:12:43]line НСП 1% : 4.43 [07:12:43]line НДС 12% : 53.13 [07:12:43]line Наличными: 500.00 [07:12:43]line Безнал.: 0.00 [07:12:43]line Место: АЗС № 91 "Партнер Нефть" [07:12:43]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [07:12:43]line СНО: Общий режим [07:12:43]line Чек 11 16.05.2024 07:12 [07:12:43]line Смена: 357 ФФД: 1.0 [07:12:43]line ЗНМ: 0300000119 [07:12:43]line РНМ: 0000000000091845 [07:12:43]line Версия ККМ: 001 [07:12:43]line ФМ: 0000000000871829 [07:12:43]line ФД: 67413 [07:12:43]line ФПД: 105303402355382 [07:12:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T071246&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67413&fm=105303402355382&tin=02508201610067®Number=0000000000091845&sum=50000 [07:12:43]OFD Sender: Processing packet 67413 [packets to send 35, broken 34] [07:12:43]ProducePacketName [07:12:43]name=ofd_packets/00067413 [07:12:43]OFD Sender: To server: pG, [07:12:43]CommunicateWithHost lk.salyk.kg:30040 [07:12:43]ConnectInit lk.salyk.kg [07:12:43]written 0, free lines is 4095 [07:12:43]Connected sock=10 [07:12: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 38 32 39 0F 01 00 00 89 D8 07 01 F5 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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 EE B1 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 55 07 01 00 35 04 06 00 5F C5 DB E4 1A B6 BF EA C4 3E 9B 62 CA 28 [07:12:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 45 DD 47 00 14 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 55 07 01 00 F4 03 04 00 C9 59 45 66 B6 04 01 00 00 37 19 D4 CE D9 B6 7C B3 [07:12:43]CommunicateWithHost err = 0 [07:12:43]CheckOFDResponse [07:12:43]1017 (14) - 77093643461234 [07:12:43]1041 (16) - 0000000000871829 [07:12:43]1040 (4) - 67413 [07:12:43]1012 (4) - 16.05.2024 00:56 [07:12:43]1206 (1) - 0 [07:12:43]OFD Sender: Remove packet 67413 [07:12:43]ProducePacketName [07:12:43]name=ofd_packets/00067413 [07:12:43]NVStorageDeleteData [07:12:43]Write to MH i2c: 01 00 00 46 3D 83 [07:12:43]Write i2c OK [07:12:43]MH_I2C_Read... [07:12:43]Read from MH i2c: 01 [07:12:43]MH_I2C_Read... [07:12:43]Read from MH i2c: 01 07 00 [07:12:43]MH_I2C_Read... [07:12:43]Read from MH i2c: 01 07 00 46 3D 00 00 00 00 00 D6 0C 6C [07:12:43]RasterBufferAndPrint [07:12:44]line [07:12:44]line [07:12:44]line [07:12:44]line [07:12:44]line [07:12:44]written 0, free lines is 3294 [07:12:44]MH_Cut [07:12:44]Write to MH i2c: D1 01 00 4D 3D 01 5C [07:12:44]Write i2c OK [07:12:44]MH_I2C_Read... [07:12:44]Read from MH i2c: D1 [07:12:44]MH_I2C_Read... [07:12:44]Read from MH i2c: D1 01 00 [07:12:44]MH_I2C_Read... [07:12:44]Read from MH i2c: D1 01 00 4D 3D 00 5B [07:12:44]Write to MH i2c: 01 00 00 4E 3D 8B [07:12:44]Write i2c OK [07:12:44]MH_I2C_Read... [07:12:44]OFD Sender: No OFD packet to send [07:12:44]*** Cut start [07:12:44]*** Purtial cut [07:12:44]*** Stage 1: CUTSNS_PIN = 1 [07:12:45]Read from MH i2c: 01 [07:12:45]MH_I2C_Read... [07:12:45]*** Stop cut motor [07:12:45]*** Cut end [07:12:45]Read from MH i2c: 01 07 00 [07:12:45]MH_I2C_Read... [07:12:45]Read from MH i2c: 01 07 00 4E 3D 00 00 00 00 00 FF 0F A0 [07:12:45]process_action close_receipt done [07:12:45]requested_data is exist [07:12:45]produce_requested_data [07:12:45]requested_item fm.sn is exist - process it [07:12:45]wFMCommunicate request_size=4 [07:12:45]MH_SAM_APDU [07:12:45]CAPDU: 80 11 00 00 [07:12:45]Write to MH i2c: E2 08 00 4F 3D 80 11 00 00 00 00 00 00 06 [07:12:45]Write i2c OK [07:12:45]MH_I2C_Read... [07:12:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:12:45]Read from MH i2c: E2 [07:12:45]MH_I2C_Read... [07:12:45]Read from MH i2c: E2 17 00 [07:12:45]MH_I2C_Read... [07:12:45]Read from MH i2c: E2 17 00 4F 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 5C [07:12:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:12:45]wFMCommunicate OK [07:12:45]requested_item fd.num is exist - process it [07:12:45]SAM_PROTO_GetFieldsCounters [07:12:45]wFMCommunicate request_size=4 [07:12:45]MH_SAM_APDU [07:12:45]CAPDU: 80 13 00 00 [07:12:45]Write to MH i2c: E2 08 00 50 3D 80 13 00 00 00 00 00 00 09 [07:12:45]Write i2c OK [07:12:45]MH_I2C_Read... [07:12:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:12:45]Read from MH i2c: E2 [07:12:45]MH_I2C_Read... [07:12:45]Read from MH i2c: E2 62 00 [07:12:45]MH_I2C_Read... [07:12:45]Read from MH i2c: E2 62 00 50 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 55 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [07:12: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 55 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:12:45]wFMCommunicate OK [07:12:45]SAM_PROTO_GetFieldsCounters done [07:12:45]requested_item shift.num is exist - process it [07:12:45]requested_item shift.opened is exist - process it [07:12:45]req_shift_opened [07:12:45]FM_GetShiftState [07:12:45]SAM_PROTO_GetShiftState [07:12:45]wFMCommunicate request_size=4 [07:12:45]MH_SAM_APDU [07:12:45]CAPDU: 80 13 01 00 [07:12:45]Write to MH i2c: E2 08 00 51 3D 80 13 01 00 00 00 00 00 0B [07:12:45]Write i2c OK [07:12:45]MH_I2C_Read... [07:12:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:12:45]Read from MH i2c: E2 [07:12:45]MH_I2C_Read... [07:12:45]Read from MH i2c: E2 0E 00 [07:12:45]MH_I2C_Read... [07:12:45]Read from MH i2c: E2 0E 00 51 3D 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 B7 [07:12:45]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [07:12:45]wFMCommunicate OK [07:12:45]SAM_PROTO_GetShiftState done [07:12:45]FM_GetShiftState done [07:12:45]req_shift_opened done [07:12:45]requested_item shift.open_date is exist - process it [07:12:45]req_shift_open_date [07:12:45]req_shift_open_date done [07:12:45]produce_requested_data done [07:12:45]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67413,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [07:12:45]process_action_free close_receipt [07:12:45]json_value_free [07:12:45]json_value_free done [07:12:45]process_json_proto returns [07:12:45]Send response to host [07:12:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67413,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [07:12:45]free response buf [07:12:45]execute_script done [07:12:45]execute_script returns [07:12:45]free content buf [07:12:45]Sock 7.Close socket [07:12:45]Sock 7.Thread stoped [07:12:49]OFD Sender: No OFD packet to send [07:12:54]OFD Sender: No OFD packet to send [07:12:59]OFD Sender: No OFD packet to send [07:13:04]OFD Sender: No OFD packet to send [07:13:09]OFD Sender: No OFD packet to send [07:13:14]OFD Sender: No OFD packet to send [07:13:19]OFD Sender: No OFD packet to send [07:13:24]OFD Sender: No OFD packet to send [07:13:29]OFD Sender: No OFD packet to send [07:13:34]OFD Sender: No OFD packet to send [07:13:39]OFD Sender: No OFD packet to send [07:13:44]OFD Sender: No OFD packet to send [07:13:49]OFD Sender: No OFD packet to send [07:13:54]OFD Sender: No OFD packet to send [07:13:59]OFD Sender: No OFD packet to send [07:14:04]OFD Sender: No OFD packet to send [07:14:09]OFD Sender: No OFD packet to send [07:14:14]OFD Sender: No OFD packet to send [07:14:19]OFD Sender: No OFD packet to send [07:14:24]OFD Sender: No OFD packet to send [07:14:29]OFD Sender: No OFD packet to send [07:14:34]OFD Sender: No OFD packet to send [07:14:39]OFD Sender: No OFD packet to send [07:14:44]OFD Sender: No OFD packet to send [07:14:49]OFD Sender: No OFD packet to send [07:14:54]OFD Sender: No OFD packet to send [07:14:59]OFD Sender: No OFD packet to send [07:15:04]OFD Sender: No OFD packet to send [07:15:09]OFD Sender: No OFD packet to send [07:15:14]OFD Sender: No OFD packet to send [07:15:19]OFD Sender: No OFD packet to send [07:15:24]OFD Sender: No OFD packet to send [07:15:29]OFD Sender: No OFD packet to send [07:15:34]OFD Sender: No OFD packet to send [07:15:39]OFD Sender: No OFD packet to send [07:15:44]OFD Sender: No OFD packet to send [07:15:49]OFD Sender: No OFD packet to send [07:15:54]OFD Sender: No OFD packet to send [07:15:59]OFD Sender: No OFD packet to send [07:16:04]OFD Sender: No OFD packet to send [07:16:09]OFD Sender: No OFD packet to send [07:16:14]OFD Sender: No OFD packet to send [07:16:19]OFD Sender: No OFD packet to send [07:16:24]OFD Sender: No OFD packet to send [07:16:29]OFD Sender: No OFD packet to send [07:16:34]OFD Sender: No OFD packet to send [07:16:39]OFD Sender: No OFD packet to send [07:16:40]accept exits with 9 [07:16:40]New connection [07:16:40]New thread 3067030884 created [07:16:40]Thread 3067174244 joined [07:16:40]Waiting for new connection... [07:16:40] Sock 9.Parse request [07:16:40]Sock 9.Check first char [07:16:40]Sock 9.First char is OK [07:16:40]request: POST /json_proto HTTP/1.0 [07:16:40]Method: POST [07:16:40]URL: /json_proto [07:16:40]Method is POST - this is cgi request [07:16:40]url: /json_proto [07:16:40]query_string will be loaded in cgi processing [07:16:40]execute_cgi json_proto POST (null) [07:16:40]execute_cgi path=json_proto method=POST [07:16:40]POST find Content-Length [07:16:40]Host: 172.17.41.195:8080 [07:16:40]Content-Length: 677 [07:16:40]Content-Type: application/json [07:16:40] [07:16:40]POST finish read [07:16:40]Found Content-Length = 677 [07:16:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507404", "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.80, "quantity" : 8.990, "sum" : 600.53, "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:16:40]execute_script... [07:16: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)507404", "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.80, "quantity" : 8.990, "sum" : 600.53, "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:16:40]POST & json_proto [07:16:40]process_json_proto [07:16:40]json parsed OK: [07:16:40]protocol is kg_v1.0 [07:16:40]action value=close_receipt [07:16:40]process_action close_receipt [07:16:40]cmd_close_receipt [07:16:40]MH_GetDate [07:16:40]Write to MH i2c: F0 00 00 52 3D 7E [07:16:40]Write i2c OK [07:16:40]MH_I2C_Read... [07:16:40]Read from MH i2c: F0 [07:16:40]MH_I2C_Read... [07:16:40]Read from MH i2c: F0 09 00 [07:16:40]MH_I2C_Read... [07:16:40]Read from MH i2c: F0 09 00 52 3D 00 DD B2 45 66 FC 21 6F 64 B1 [07:16:40]GetLastDocTimeStamp 1715843566 [07:16:40]current date 1715843805 [07:16:40]FM_GetShiftState [07:16:40]SAM_PROTO_GetShiftState [07:16:40]wFMCommunicate request_size=4 [07:16:40]MH_SAM_APDU [07:16:40]CAPDU: 80 13 01 00 [07:16:40]Write to MH i2c: E2 08 00 53 3D 80 13 01 00 00 00 00 00 0D [07:16:40]Write i2c OK [07:16:40]MH_I2C_Read... [07:16:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:16:40]Read from MH i2c: E2 [07:16:40]MH_I2C_Read... [07:16:40]Read from MH i2c: E2 0E 00 [07:16:40]MH_I2C_Read... [07:16:40]Read from MH i2c: E2 0E 00 53 3D 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 B9 [07:16:40]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [07:16:40]wFMCommunicate OK [07:16:40]SAM_PROTO_GetShiftState done [07:16:40]FM_GetShiftState done [07:16:40]opened in 1715818916 [07:16:40]opened+sec_in_day 1715905316 [07:16:40]quantity*price = 60053 [07:16:40]sum+1 = 60054 [07:16:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 12 16.05.2024 07:16 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67414 ФПД: 112957639256123 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T071645&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67414&fm=112957639256123&tin=02508201610067®Number=0000000000091845&sum=60000 [07:16:41]StoreToDocumentArchive [07:16:41]shift 357 fd 67414 [07:16:41]save to /storage/0357/doc_00067414 [07:16:41]save last doc name /storage/0357/doc_00067414 to /storage/kkm_last_doc_name [07:16:41]save OK [07:16:41]Clear old archive folders... [07:16:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:16:41]tlvbuf is 00B750F0 [07:16:41]SAM_PROTO_ClearQueue [07:16:41]wFMCommunicate request_size=4 [07:16:41]MH_SAM_APDU [07:16:41]CAPDU: 80 09 00 00 [07:16:41]Write to MH i2c: E2 08 00 60 3D 80 09 00 00 00 00 00 00 0F [07:16:41]Write i2c OK [07:16:41]MH_I2C_Read... [07:16:41]Read from MH i2c: E2 [07:16:41]MH_I2C_Read... [07:16:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:16:41]Read from MH i2c: E2 03 00 [07:16:41]MH_I2C_Read... [07:16:41]Read from MH i2c: E2 03 00 60 3D 00 90 00 11 [07:16:41]RAPDU: 90 00 [07:16:41]wFMCommunicate OK [07:16:41]SAM_PROTO_ClearQueue done [07:16:41]KKMCreateOFDPacket [07:16:41]OFDProtocolAddRootSTLVToBuf [07:16:41]FM_MakeSignedData [07:16:41]FM_MakeSignedData [07:16:41]SAM_PROTO_SignData [07:16:41]wFMCommunicate request_size=4 [07:16:41]MH_SAM_APDU [07:16:41]CAPDU: 80 0D 01 02 [07:16:41]Write to MH i2c: E2 08 00 61 3D 80 0D 01 02 00 00 00 00 17 [07:16:41]Write i2c OK [07:16:41]MH_I2C_Read... [07:16:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:16:41]Read from MH i2c: E2 [07:16:41]MH_I2C_Read... [07:16:41]Read from MH i2c: E2 03 00 [07:16:41]MH_I2C_Read... [07:16:41]Read from MH i2c: E2 03 00 61 3D 00 90 00 12 [07:16:41]RAPDU: 90 00 [07:16:41]wFMCommunicate OK [07:16:41]wFMCommunicate request_size=255 [07:16:41]MH_SAM_APDU [07:16: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 1E 23 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 95 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 0C 00 00 00 F4 03 04 00 DD B2 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 56 07 01 00 35 04 06 00 66 [07:16:41]Write to MH i2c: E2 02 01 62 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 23 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 95 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 0C 00 00 00 F4 03 04 00 DD B2 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 56 07 01 00 35 04 06 00 66 00 00 32 [07:16:41]Write i2c OK [07:16:41]MH_I2C_Read... [07:16:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:16:42]Read from MH i2c: E2 [07:16:42]MH_I2C_Read... [07:16:42]Read from MH i2c: E2 03 00 [07:16:42]MH_I2C_Read... [07:16:42]Read from MH i2c: E2 03 00 62 3D 00 90 00 13 [07:16:42]RAPDU: 90 00 [07:16:42]wFMCommunicate OK [07:16:42]wFMCommunicate request_size=10 [07:16:42]MH_SAM_APDU [07:16:42]CAPDU: 80 0D 02 02 05 BB FF F6 68 3B [07:16:42]Write to MH i2c: E2 0D 00 63 3D 80 0D 02 02 05 00 BB FF F6 68 3B 00 00 77 [07:16:42]Write i2c OK [07:16:42]MH_I2C_Read... [07:16:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:16:42]Read from MH i2c: E2 [07:16:42]MH_I2C_Read... [07:16:42]Read from MH i2c: E2 03 00 [07:16:42]MH_I2C_Read... [07:16:42]Read from MH i2c: E2 03 00 63 3D 00 90 00 14 [07:16:42]RAPDU: 90 00 [07:16:42]wFMCommunicate OK [07:16:42]wFMCommunicate request_size=4 [07:16:42]MH_SAM_APDU [07:16:42]CAPDU: 80 0D 03 02 [07:16:42]Write to MH i2c: E2 08 00 64 3D 80 0D 03 02 00 00 00 00 1C [07:16:42]Write i2c OK [07:16:42]MH_I2C_Read... [07:16:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:16:42]Read from MH i2c: E2 [07:16:42]MH_I2C_Read... [07:16:42]Read from MH i2c: E2 0B 00 [07:16:42]MH_I2C_Read... [07:16:42]Read from MH i2c: E2 0B 00 64 3D 00 A8 56 19 B0 B1 C2 1F 03 90 00 79 [07:16:42]RAPDU: A8 56 19 B0 B1 C2 1F 03 90 00 [07:16:42]wFMCommunicate OK [07:16:42]SAM_PROTO_SignData done [07:16:42]FM_MakeSignedData done [07:16:42]CreateOFDProtocolMessage [07:16:42]wFMCommunicate request_size=4 [07:16:42]MH_SAM_APDU [07:16:42]CAPDU: 80 11 00 00 [07:16:42]Write to MH i2c: E2 08 00 65 3D 80 11 00 00 00 00 00 00 1C [07:16:42]Write i2c OK [07:16:42]MH_I2C_Read... [07:16:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:16:42]Read from MH i2c: E2 [07:16:42]MH_I2C_Read... [07:16:42]Read from MH i2c: E2 17 00 [07:16:42]MH_I2C_Read... [07:16:42]Read from MH i2c: E2 17 00 65 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 72 [07:16:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:16:42]wFMCommunicate OK [07:16:42]CreateOFDProtocolMessage done [07:16:42]OFDSenderStorePacket 67414 [07:16:42]StoreOFDPacket docnum=67414 [07:16:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 F8 FC 07 01 DA 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 1E 23 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 95 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 0C 00 00 00 F4 03 04 00 DD B2 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 56 07 01 00 35 04 06 00 66 BB FF F6 68 3B A8 56 19 B0 B1 C2 1F 03 [07:16:42]CheckFolder [07:16:42]dirname=/storage/ofd_packets [07:16:42]CheckFolder done [07:16:42]ProducePacketName [07:16:42]name=ofd_packets/00067414 [07:16:42]NVStorageSaveData ofd_packets/00067414 [07:16:42]File name is /storage/ofd_packets/00067414 [07:16:42]Write 301 bytes [07:16:42]NVStorageSaveData done [07:16:42]OFDSenderStorePacket done [07:16:42]KKMCreateOFDPacket done [07:16:42]NVStorageSaveData kkm_last_timestamp [07:16:42]File name is /storage/kkm_last_timestamp [07:16:42]Write 4 bytes [07:16:42]NVStorageSaveData done [07:16:42]ExternCall_PrintAddStr [07:16:42]wPrintStart [07:16:42]Write to MH i2c: 01 00 00 66 3D A3 [07:16:42]Write i2c OK [07:16:42]MH_I2C_Read... [07:16:42]Read from MH i2c: 01 [07:16:42]MH_I2C_Read... [07:16:42]Read from MH i2c: 01 07 00 [07:16:42]MH_I2C_Read... [07:16:42]Read from MH i2c: 01 07 00 66 3D 00 00 00 00 00 FF 0F B8 [07:16:42]RasterBufferAndPrint [07:16:42]line Счет N : (1)507404 [07:16:42]line ИНН: 02508201610067 [07:16:42]line Контрольно-Кассовый Чек [07:16:42]line ПРОДАЖА [07:16:42]line ТРК (МРК, ГНК) : 33 [07:16:42]line Товар: 2710124130 [07:16:42]line Аи-92-К-5 [07:16:42]line 8.990 * 66.80 [07:16:42]line = 600.53 [07:16:42]line НДС 12% НСП 1% [07:16:42]line > о реализуемом товаре [07:16:42]line ОКРУГЛЕНИЕ: -0.53 [07:16:42]line ИТОГО: 600.00 [07:16:42]line Внесено: 600.00 [07:16:42]line СДАЧА: 0.00 [07:16:42]line НСП 1% : 5.31 [07:16:42]line НДС 12% : 63.77 [07:16:42]line Наличными: 600.00 [07:16:42]line Безнал.: 0.00 [07:16:42]line Место: АЗС № 91 "Партнер Нефть" [07:16:42]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [07:16:42]line СНО: Общий режим [07:16:42]line Чек 12 16.05.2024 07:16 [07:16:42]line Смена: 357 ФФД: 1.0 [07:16:42]line ЗНМ: 0300000119 [07:16:42]line РНМ: 0000000000091845 [07:16:42]line Версия ККМ: 001 [07:16:42]line ФМ: 0000000000871829 [07:16:42]line ФД: 67414 [07:16:42]line ФПД: 112957639256123 [07:16:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T071645&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67414&fm=112957639256123&tin=02508201610067®Number=0000000000091845&sum=60000 [07:16:42]OFD Sender: Processing packet 67414 [packets to send 35, broken 34] [07:16:42]ProducePacketName [07:16:42]name=ofd_packets/00067414 [07:16:42]OFD Sender: To server: pG, [07:16:42]CommunicateWithHost lk.salyk.kg:30040 [07:16:42]ConnectInit lk.salyk.kg [07:16:42]written 0, free lines is 4095 [07:16:42]Connected sock=10 [07:16: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 38 32 39 0F 01 00 00 F8 FC 07 01 DA 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 1E 23 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 95 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 0C 00 00 00 F4 03 04 00 DD B2 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 56 07 01 00 35 04 06 00 66 BB FF F6 68 3B A8 56 19 B0 B1 C2 1F 03 [07:16:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 C7 C9 47 00 D7 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 38 32 39 10 04 04 00 56 07 01 00 F4 03 04 00 B8 5A 45 66 B6 04 01 00 00 BA 46 11 E0 BF B4 C5 E9 [07:16:43]CommunicateWithHost err = 0 [07:16:43]CheckOFDResponse [07:16:43]1017 (14) - 77093643461234 [07:16:43]1041 (16) - 0000000000871829 [07:16:43]1040 (4) - 67414 [07:16:43]1012 (4) - 16.05.2024 01:00 [07:16:43]1206 (1) - 0 [07:16:43]OFD Sender: Remove packet 67414 [07:16:43]ProducePacketName [07:16:43]name=ofd_packets/00067414 [07:16:43]NVStorageDeleteData [07:16:43]Write to MH i2c: 01 00 00 90 3D CD [07:16:43]Write i2c OK [07:16:43]MH_I2C_Read... [07:16:43]Read from MH i2c: 01 [07:16:43]MH_I2C_Read... [07:16:43]Read from MH i2c: 01 07 00 [07:16:43]MH_I2C_Read... [07:16:43]Read from MH i2c: 01 07 00 90 3D 00 00 00 00 00 D5 0C B5 [07:16:43]RasterBufferAndPrint [07:16:43]line [07:16:43]line [07:16:43]line [07:16:43]line [07:16:43]line [07:16:43]written 0, free lines is 3294 [07:16:43]MH_Cut [07:16:43]Write to MH i2c: D1 01 00 97 3D 01 A6 [07:16:43]Write i2c OK [07:16:43]MH_I2C_Read... [07:16:43]Read from MH i2c: D1 [07:16:43]MH_I2C_Read... [07:16:43]Read from MH i2c: D1 01 00 [07:16:43]MH_I2C_Read... [07:16:43]Read from MH i2c: D1 01 00 97 3D 00 A5 [07:16:43]Write to MH i2c: 01 00 00 98 3D D5 [07:16:43]Write i2c OK [07:16:43]MH_I2C_Read... [07:16:43]OFD Sender: No OFD packet to send [07:16:43]*** Cut start [07:16:43]*** Purtial cut [07:16:43]*** CUTSNS_PIN = 0 [07:16:44]*** Stage 1: CUTSNS_PIN = 1 [07:16:45]Read from MH i2c: 01 [07:16:45]MH_I2C_Read... [07:16:45]*** Stop cut motor [07:16:45]*** Cut end [07:16:45]Read from MH i2c: 01 07 00 [07:16:45]MH_I2C_Read... [07:16:45]Read from MH i2c: 01 07 00 98 3D 00 00 00 00 00 FF 0F EA [07:16:45]process_action close_receipt done [07:16:45]requested_data is exist [07:16:45]produce_requested_data [07:16:45]requested_item fm.sn is exist - process it [07:16:45]wFMCommunicate request_size=4 [07:16:45]MH_SAM_APDU [07:16:45]CAPDU: 80 11 00 00 [07:16:45]Write to MH i2c: E2 08 00 99 3D 80 11 00 00 00 00 00 00 50 [07:16:45]Write i2c OK [07:16:45]MH_I2C_Read... [07:16:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:16:46]Read from MH i2c: E2 [07:16:46]MH_I2C_Read... [07:16:46]Read from MH i2c: E2 17 00 [07:16:46]MH_I2C_Read... [07:16:46]Read from MH i2c: E2 17 00 99 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A6 [07:16:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:16:46]wFMCommunicate OK [07:16:46]requested_item fd.num is exist - process it [07:16:46]SAM_PROTO_GetFieldsCounters [07:16:46]wFMCommunicate request_size=4 [07:16:46]MH_SAM_APDU [07:16:46]CAPDU: 80 13 00 00 [07:16:46]Write to MH i2c: E2 08 00 9A 3D 80 13 00 00 00 00 00 00 53 [07:16:46]Write i2c OK [07:16:46]MH_I2C_Read... [07:16:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:16:46]Read from MH i2c: E2 [07:16:46]MH_I2C_Read... [07:16:46]Read from MH i2c: E2 62 00 [07:16:46]MH_I2C_Read... [07:16:46]Read from MH i2c: E2 62 00 9A 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 56 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [07:16: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 56 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:16:46]wFMCommunicate OK [07:16:46]SAM_PROTO_GetFieldsCounters done [07:16:46]requested_item shift.num is exist - process it [07:16:46]requested_item shift.opened is exist - process it [07:16:46]req_shift_opened [07:16:46]FM_GetShiftState [07:16:46]SAM_PROTO_GetShiftState [07:16:46]wFMCommunicate request_size=4 [07:16:46]MH_SAM_APDU [07:16:46]CAPDU: 80 13 01 00 [07:16:46]Write to MH i2c: E2 08 00 9B 3D 80 13 01 00 00 00 00 00 55 [07:16:46]Write i2c OK [07:16:46]MH_I2C_Read... [07:16:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:16:46]Read from MH i2c: E2 [07:16:46]MH_I2C_Read... [07:16:46]Read from MH i2c: E2 0E 00 [07:16:46]MH_I2C_Read... [07:16:46]Read from MH i2c: E2 0E 00 9B 3D 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 01 [07:16:46]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [07:16:46]wFMCommunicate OK [07:16:46]SAM_PROTO_GetShiftState done [07:16:46]FM_GetShiftState done [07:16:46]req_shift_opened done [07:16:46]requested_item shift.open_date is exist - process it [07:16:46]req_shift_open_date [07:16:46]req_shift_open_date done [07:16:46]produce_requested_data done [07:16:46]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67414,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [07:16:46]process_action_free close_receipt [07:16:46]json_value_free [07:16:46]json_value_free done [07:16:46]process_json_proto returns [07:16:46]Send response to host [07:16:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67414,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [07:16:46]free response buf [07:16:46]execute_script done [07:16:46]execute_script returns [07:16:46]free content buf [07:16:46]Sock 9.Close socket [07:16:46]Sock 9.Thread stoped [07:16:48]OFD Sender: No OFD packet to send [07:16:53]OFD Sender: No OFD packet to send [07:16:58]OFD Sender: No OFD packet to send [07:17:03]OFD Sender: No OFD packet to send [07:17:08]OFD Sender: No OFD packet to send [07:17:13]OFD Sender: No OFD packet to send [07:17:18]OFD Sender: No OFD packet to send [07:17:23]OFD Sender: No OFD packet to send [07:17:28]OFD Sender: No OFD packet to send [07:17:33]OFD Sender: No OFD packet to send [07:17:38]OFD Sender: No OFD packet to send [07:17:43]OFD Sender: No OFD packet to send [07:17:48]OFD Sender: No OFD packet to send [07:17:53]OFD Sender: No OFD packet to send [07:17:58]OFD Sender: No OFD packet to send [07:18:03]OFD Sender: No OFD packet to send [07:18:08]OFD Sender: No OFD packet to send [07:18:13]OFD Sender: No OFD packet to send [07:18:18]OFD Sender: No OFD packet to send [07:18:23]OFD Sender: No OFD packet to send [07:18:28]OFD Sender: No OFD packet to send [07:18:33]OFD Sender: No OFD packet to send [07:18:38]OFD Sender: No OFD packet to send [07:18:43]OFD Sender: No OFD packet to send [07:18:48]OFD Sender: No OFD packet to send [07:18:53]OFD Sender: No OFD packet to send [07:18:58]OFD Sender: No OFD packet to send [07:19:03]OFD Sender: No OFD packet to send [07:19:08]OFD Sender: No OFD packet to send [07:19:13]OFD Sender: No OFD packet to send [07:19:18]OFD Sender: No OFD packet to send [07:19:23]OFD Sender: No OFD packet to send [07:19:26]accept exits with 7 [07:19:26]New connection [07:19:26]New thread 3067174244 created [07:19:26]Thread 3067030884 joined [07:19:26]Waiting for new connection... [07:19:26] Sock 7.Parse request [07:19:26]Sock 7.Check first char [07:19:26]Sock 7.First char is OK [07:19:26]request: POST /json_proto HTTP/1.0 [07:19:26]Method: POST [07:19:26]URL: /json_proto [07:19:26]Method is POST - this is cgi request [07:19:26]url: /json_proto [07:19:26]query_string will be loaded in cgi processing [07:19:26]execute_cgi json_proto POST (null) [07:19:26]execute_cgi path=json_proto method=POST [07:19:26]POST find Content-Length [07:19:26]Host: 172.17.41.195:8080 [07:19:26]Content-Length: 1209 [07:19:26]Content-Type: application/json [07:19:26] [07:19:26]POST finish read [07:19:26]Found Content-Length = 1209 [07:19:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507405\u000A16.05.2024 07:02\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 26.780 x 74.70\u000A\u0418\u0422\u041E\u0413: 2000.47\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:19:26]execute_script... [07:19:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507405\u000A16.05.2024 07:02\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 26.780 x 74.70\u000A\u0418\u0422\u041E\u0413: 2000.47\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:19:26]POST & json_proto [07:19:26]process_json_proto [07:19:26]json parsed OK: [07:19:26]protocol is kg_v1.0 [07:19:26]action value=print_text [07:19:26]process_action print_text [07:19:26]cmd_print_text [07:19:26]ExternCall_PrintAddStr [07:19:26]wPrintStart [07:19:26]Write to MH i2c: 01 00 00 9C 3D D9 [07:19:26]Write i2c OK [07:19:26]MH_I2C_Read... [07:19:26]Read from MH i2c: 01 [07:19:26]MH_I2C_Read... [07:19:26]Read from MH i2c: 01 07 00 [07:19:26]MH_I2C_Read... [07:19:26]Read from MH i2c: 01 07 00 9C 3D 00 00 00 00 00 FF 0F EE [07:19:26]RasterBufferAndPrint [07:19:26]line *****ТОВАРНЫЙ ЧЕК***** [07:19:26]line АЗС-91 [07:19:26]line Партнер нефть [07:19:26]line 02508201610067 [07:19:26]line Кассир : Пайзулдаева А. [07:19:26]line Счет N : (1)507405 [07:19:26]line 16.05.2024 07:02 [07:19:26]line ПРОДАЖА [07:19:26]line ТРК (МРК, ГНК): 21 [07:19:26]line Вид ГСМ : 2710194210 [07:19:26]line ДТ-К-5 [07:19:26]line 26.780 x 74.70 [07:19:26]line ИТОГ: 2000.47 [07:19:26]line Тип оплаты: Талоны: Топливная Карта [07:19:26]line 02750 [07:19:26]line ______________________ [07:19:26]line (подпись) [07:19:26]written 0, free lines is 4095 [07:19:26]Write to MH i2c: 01 00 00 B0 3D ED [07:19:26]Write i2c OK [07:19:26]MH_I2C_Read... [07:19:26]Read from MH i2c: 01 [07:19:26]MH_I2C_Read... [07:19:26]Read from MH i2c: 01 07 00 [07:19:26]MH_I2C_Read... [07:19:26]Read from MH i2c: 01 07 00 B0 3D 00 00 00 00 00 11 0E 13 [07:19:26]RasterBufferAndPrint [07:19:26]line [07:19:26]line [07:19:26]line [07:19:26]line [07:19:26]line [07:19:26]written 0, free lines is 3602 [07:19:26]MH_Cut [07:19:26]Write to MH i2c: D1 01 00 B7 3D 01 C6 [07:19:26]Write i2c OK [07:19:26]MH_I2C_Read... [07:19:26]Read from MH i2c: D1 [07:19:26]MH_I2C_Read... [07:19:26]Read from MH i2c: D1 01 00 [07:19:26]MH_I2C_Read... [07:19:26]Read from MH i2c: D1 01 00 B7 3D 00 C5 [07:19:26]Write to MH i2c: 01 00 00 B8 3D F5 [07:19:26]Write i2c OK [07:19:26]MH_I2C_Read... [07:19:26]*** Cut start [07:19:26]*** Purtial cut [07:19:26]*** Stage 1: CUTSNS_PIN = 1 [07:19:27]Read from MH i2c: 01 [07:19:27]MH_I2C_Read... [07:19:27]*** Stop cut motor [07:19:27]*** Cut end [07:19:27]Read from MH i2c: 01 07 00 [07:19:27]MH_I2C_Read... [07:19:27]Read from MH i2c: 01 07 00 B8 3D 00 00 00 00 00 FF 0F 0A [07:19:27]process_action print_text done [07:19:27]requested_data is exist [07:19:27]produce_requested_data [07:19:27]requested_item fm.sn is exist - process it [07:19:27]wFMCommunicate request_size=4 [07:19:27]MH_SAM_APDU [07:19:27]CAPDU: 80 11 00 00 [07:19:27]Write to MH i2c: E2 08 00 B9 3D 80 11 00 00 00 00 00 00 70 [07:19:27]Write i2c OK [07:19:27]MH_I2C_Read... [07:19:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:19:27]Read from MH i2c: E2 [07:19:27]MH_I2C_Read... [07:19:27]Read from MH i2c: E2 17 00 [07:19:27]MH_I2C_Read... [07:19:27]Read from MH i2c: E2 17 00 B9 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C6 [07:19:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:19:27]wFMCommunicate OK [07:19:27]requested_item fd.num is exist - process it [07:19:27]SAM_PROTO_GetFieldsCounters [07:19:27]wFMCommunicate request_size=4 [07:19:27]MH_SAM_APDU [07:19:27]CAPDU: 80 13 00 00 [07:19:27]Write to MH i2c: E2 08 00 BA 3D 80 13 00 00 00 00 00 00 73 [07:19:27]Write i2c OK [07:19:27]MH_I2C_Read... [07:19:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:19:27]Read from MH i2c: E2 [07:19:27]MH_I2C_Read... [07:19:27]Read from MH i2c: E2 62 00 [07:19:27]MH_I2C_Read... [07:19:27]Read from MH i2c: E2 62 00 BA 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 56 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [07:19: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 56 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:19:27]wFMCommunicate OK [07:19:27]SAM_PROTO_GetFieldsCounters done [07:19:27]requested_item shift.num is exist - process it [07:19:27]requested_item shift.opened is exist - process it [07:19:27]req_shift_opened [07:19:27]FM_GetShiftState [07:19:27]SAM_PROTO_GetShiftState [07:19:27]wFMCommunicate request_size=4 [07:19:27]MH_SAM_APDU [07:19:27]CAPDU: 80 13 01 00 [07:19:27]Write to MH i2c: E2 08 00 BB 3D 80 13 01 00 00 00 00 00 75 [07:19:27]Write i2c OK [07:19:27]MH_I2C_Read... [07:19:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:19:27]Read from MH i2c: E2 [07:19:27]MH_I2C_Read... [07:19:27]Read from MH i2c: E2 0E 00 [07:19:27]MH_I2C_Read... [07:19:27]Read from MH i2c: E2 0E 00 BB 3D 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 21 [07:19:27]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [07:19:27]wFMCommunicate OK [07:19:27]SAM_PROTO_GetShiftState done [07:19:27]FM_GetShiftState done [07:19:27]req_shift_opened done [07:19:27]requested_item shift.open_date is exist - process it [07:19:27]req_shift_open_date [07:19:27]req_shift_open_date done [07:19:27]produce_requested_data done [07:19:27]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67414,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [07:19:27]process_action_free print_text [07:19:27]json_value_free [07:19:27]json_value_free done [07:19:27]process_json_proto returns [07:19:27]Send response to host [07:19:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67414,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [07:19:27]free response buf [07:19:27]execute_script done [07:19:27]execute_script returns [07:19:27]free content buf [07:19:27]Sock 7.Close socket [07:19:27]Sock 7.Thread stoped [07:19:28]OFD Sender: No OFD packet to send [07:19:31]accept exits with 9 [07:19:31]New connection [07:19:31]New thread 3067030884 created [07:19:31]Thread 3067174244 joined [07:19:31]Waiting for new connection... [07:19:31] Sock 9.Parse request [07:19:31]Sock 9.Check first char [07:19:31]Sock 9.First char is OK [07:19:31]request: POST /json_proto HTTP/1.0 [07:19:31]Method: POST [07:19:31]URL: /json_proto [07:19:31]Method is POST - this is cgi request [07:19:31]url: /json_proto [07:19:31]query_string will be loaded in cgi processing [07:19:31]execute_cgi json_proto POST (null) [07:19:31]execute_cgi path=json_proto method=POST [07:19:31]POST find Content-Length [07:19:31]Host: 172.17.41.195:8080 [07:19:31]Content-Length: 1209 [07:19:31]Content-Type: application/json [07:19:31] [07:19:31]POST finish read [07:19:31]Found Content-Length = 1209 [07:19:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507406\u000A16.05.2024 07:02\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.390 x 74.70\u000A\u0418\u0422\u041E\u0413: 1000.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:19:31]execute_script... [07:19:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507406\u000A16.05.2024 07:02\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.390 x 74.70\u000A\u0418\u0422\u041E\u0413: 1000.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:19:31]POST & json_proto [07:19:31]process_json_proto [07:19:31]json parsed OK: [07:19:31]protocol is kg_v1.0 [07:19:31]action value=print_text [07:19:31]process_action print_text [07:19:31]cmd_print_text [07:19:31]ExternCall_PrintAddStr [07:19:31]wPrintStart [07:19:31]Write to MH i2c: 01 00 00 BC 3D F9 [07:19:31]Write i2c OK [07:19:31]MH_I2C_Read... [07:19:31]Read from MH i2c: 01 [07:19:31]MH_I2C_Read... [07:19:31]Read from MH i2c: 01 07 00 [07:19:31]MH_I2C_Read... [07:19:31]Read from MH i2c: 01 07 00 BC 3D 00 00 00 00 00 FF 0F 0E [07:19:31]RasterBufferAndPrint [07:19:31]line *****ТОВАРНЫЙ ЧЕК***** [07:19:31]line АЗС-91 [07:19:31]line Партнер нефть [07:19:31]line 02508201610067 [07:19:31]line Кассир : Пайзулдаева А. [07:19:31]line Счет N : (1)507406 [07:19:31]line 16.05.2024 07:02 [07:19:31]line ПРОДАЖА [07:19:31]line ТРК (МРК, ГНК): 41 [07:19:31]line Вид ГСМ : 2710194210 [07:19:31]line ДТ-К-5 [07:19:31]line 13.390 x 74.70 [07:19:31]line ИТОГ: 1000.23 [07:19:31]line Тип оплаты: Талоны: Топливная Карта [07:19:31]line 02750 [07:19:31]line ______________________ [07:19:31]line (подпись) [07:19:31]written 0, free lines is 4095 [07:19:31]Write to MH i2c: 01 00 00 D0 3D 0D [07:19:31]Write i2c OK [07:19:31]MH_I2C_Read... [07:19:31]Read from MH i2c: 01 [07:19:31]MH_I2C_Read... [07:19:31]Read from MH i2c: 01 07 00 [07:19:31]MH_I2C_Read... [07:19:31]Read from MH i2c: 01 07 00 D0 3D 00 00 00 00 00 11 0E 33 [07:19:31]RasterBufferAndPrint [07:19:31]line [07:19:31]line [07:19:31]line [07:19:31]line [07:19:31]line [07:19:31]written 0, free lines is 3602 [07:19:31]MH_Cut [07:19:31]Write to MH i2c: D1 01 00 D7 3D 01 E6 [07:19:31]Write i2c OK [07:19:31]MH_I2C_Read... [07:19:31]Read from MH i2c: D1 [07:19:31]MH_I2C_Read... [07:19:31]Read from MH i2c: D1 01 00 [07:19:31]MH_I2C_Read... [07:19:31]Read from MH i2c: D1 01 00 D7 3D 00 E5 [07:19:31]Write to MH i2c: 01 00 00 D8 3D 15 [07:19:31]Write i2c OK [07:19:31]MH_I2C_Read... [07:19:31]*** Cut start [07:19:31]*** Purtial cut [07:19:31]*** CUTSNS_PIN = 0 [07:19:32]*** Stage 1: CUTSNS_PIN = 1 [07:19:33]OFD Sender: No OFD packet to send [07:19:33]Read from MH i2c: 01 [07:19:33]MH_I2C_Read... [07:19:33]*** Stop cut motor [07:19:33]*** Cut end [07:19:33]Read from MH i2c: 01 07 00 [07:19:33]MH_I2C_Read... [07:19:33]Read from MH i2c: 01 07 00 D8 3D 00 00 00 00 00 FF 0F 2A [07:19:33]process_action print_text done [07:19:33]requested_data is exist [07:19:33]produce_requested_data [07:19:33]requested_item fm.sn is exist - process it [07:19:33]wFMCommunicate request_size=4 [07:19:33]MH_SAM_APDU [07:19:33]CAPDU: 80 11 00 00 [07:19:33]Write to MH i2c: E2 08 00 D9 3D 80 11 00 00 00 00 00 00 90 [07:19:33]Write i2c OK [07:19:33]MH_I2C_Read... [07:19:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:19:34]Read from MH i2c: E2 [07:19:34]MH_I2C_Read... [07:19:34]Read from MH i2c: E2 17 00 [07:19:34]MH_I2C_Read... [07:19:34]Read from MH i2c: E2 17 00 D9 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E6 [07:19:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:19:34]wFMCommunicate OK [07:19:34]requested_item fd.num is exist - process it [07:19:34]SAM_PROTO_GetFieldsCounters [07:19:34]wFMCommunicate request_size=4 [07:19:34]MH_SAM_APDU [07:19:34]CAPDU: 80 13 00 00 [07:19:34]Write to MH i2c: E2 08 00 DA 3D 80 13 00 00 00 00 00 00 93 [07:19:34]Write i2c OK [07:19:34]MH_I2C_Read... [07:19:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:19:34]Read from MH i2c: E2 [07:19:34]MH_I2C_Read... [07:19:34]Read from MH i2c: E2 62 00 [07:19:34]MH_I2C_Read... [07:19:34]Read from MH i2c: E2 62 00 DA 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 56 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [07:19:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 56 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:19:34]wFMCommunicate OK [07:19:34]SAM_PROTO_GetFieldsCounters done [07:19:34]requested_item shift.num is exist - process it [07:19:34]requested_item shift.opened is exist - process it [07:19:34]req_shift_opened [07:19:34]FM_GetShiftState [07:19:34]SAM_PROTO_GetShiftState [07:19:34]wFMCommunicate request_size=4 [07:19:34]MH_SAM_APDU [07:19:34]CAPDU: 80 13 01 00 [07:19:34]Write to MH i2c: E2 08 00 DB 3D 80 13 01 00 00 00 00 00 95 [07:19:34]Write i2c OK [07:19:34]MH_I2C_Read... [07:19:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:19:34]Read from MH i2c: E2 [07:19:34]MH_I2C_Read... [07:19:34]Read from MH i2c: E2 0E 00 [07:19:34]MH_I2C_Read... [07:19:34]Read from MH i2c: E2 0E 00 DB 3D 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 41 [07:19:34]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [07:19:34]wFMCommunicate OK [07:19:34]SAM_PROTO_GetShiftState done [07:19:34]FM_GetShiftState done [07:19:34]req_shift_opened done [07:19:34]requested_item shift.open_date is exist - process it [07:19:34]req_shift_open_date [07:19:34]req_shift_open_date done [07:19:34]produce_requested_data done [07:19:34]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67414,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [07:19:34]process_action_free print_text [07:19:34]json_value_free [07:19:34]json_value_free done [07:19:34]process_json_proto returns [07:19:34]Send response to host [07:19:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67414,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [07:19:34]free response buf [07:19:34]execute_script done [07:19:34]execute_script returns [07:19:34]free content buf [07:19:34]Sock 9.Close socket [07:19:34]Sock 9.Thread stoped [07:19:38]OFD Sender: No OFD packet to send [07:19:43]OFD Sender: No OFD packet to send [07:19:48]OFD Sender: No OFD packet to send [07:19:53]OFD Sender: No OFD packet to send [07:19:58]OFD Sender: No OFD packet to send [07:20:03]OFD Sender: No OFD packet to send [07:20:08]OFD Sender: No OFD packet to send [07:20:13]OFD Sender: No OFD packet to send [07:20:18]OFD Sender: No OFD packet to send [07:20:23]OFD Sender: No OFD packet to send [07:20:28]OFD Sender: No OFD packet to send [07:20:33]OFD Sender: No OFD packet to send [07:20:38]OFD Sender: No OFD packet to send [07:20:43]OFD Sender: No OFD packet to send [07:20:48]OFD Sender: No OFD packet to send [07:20:53]OFD Sender: No OFD packet to send [07:20:58]OFD Sender: No OFD packet to send [07:21:03]OFD Sender: No OFD packet to send [07:21:08]OFD Sender: No OFD packet to send [07:21:13]OFD Sender: No OFD packet to send [07:21:18]OFD Sender: No OFD packet to send [07:21:23]OFD Sender: No OFD packet to send [07:21:28]OFD Sender: No OFD packet to send [07:21:33]OFD Sender: No OFD packet to send [07:21:38]OFD Sender: No OFD packet to send [07:21:43]OFD Sender: No OFD packet to send [07:21:48]OFD Sender: No OFD packet to send [07:21:53]OFD Sender: No OFD packet to send [07:21:58]OFD Sender: No OFD packet to send [07:22:03]OFD Sender: No OFD packet to send [07:22:08]OFD Sender: No OFD packet to send [07:22:13]OFD Sender: No OFD packet to send [07:22:18]OFD Sender: No OFD packet to send [07:22:23]OFD Sender: No OFD packet to send [07:22:25]accept exits with 7 [07:22:25]New connection [07:22:25]New thread 3067174244 created [07:22:25]Thread 3067030884 joined [07:22:25]Waiting for new connection... [07:22:25] Sock 7.Parse request [07:22:25]Sock 7.Check first char [07:22:25]Sock 7.First char is OK [07:22:25]request: POST /json_proto HTTP/1.0 [07:22:25]Method: POST [07:22:25]URL: /json_proto [07:22:25]Method is POST - this is cgi request [07:22:25]url: /json_proto [07:22:25]query_string will be loaded in cgi processing [07:22:25]execute_cgi json_proto POST (null) [07:22:25]execute_cgi path=json_proto method=POST [07:22:25]POST find Content-Length [07:22:25]Host: 172.17.41.195:8080 [07:22:25]Content-Length: 677 [07:22:25]Content-Type: application/json [07:22:25] [07:22:25]POST finish read [07:22:25]Found Content-Length = 677 [07:22:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507407", "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.80, "quantity" : 7.490, "sum" : 500.33, "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:22:25]execute_script... [07:22: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)507407", "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.80, "quantity" : 7.490, "sum" : 500.33, "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:22:25]POST & json_proto [07:22:25]process_json_proto [07:22:25]json parsed OK: [07:22:25]protocol is kg_v1.0 [07:22:25]action value=close_receipt [07:22:25]process_action close_receipt [07:22:25]cmd_close_receipt [07:22:25]MH_GetDate [07:22:25]Write to MH i2c: F0 00 00 DC 3D 08 [07:22:25]Write i2c OK [07:22:25]MH_I2C_Read... [07:22:25]Read from MH i2c: F0 [07:22:25]MH_I2C_Read... [07:22:25]Read from MH i2c: F0 09 00 [07:22:25]MH_I2C_Read... [07:22:25]Read from MH i2c: F0 09 00 DC 3D 00 36 B4 45 66 FC 21 6F 64 96 [07:22:25]GetLastDocTimeStamp 1715843805 [07:22:25]current date 1715844150 [07:22:25]FM_GetShiftState [07:22:25]SAM_PROTO_GetShiftState [07:22:25]wFMCommunicate request_size=4 [07:22:25]MH_SAM_APDU [07:22:25]CAPDU: 80 13 01 00 [07:22:25]Write to MH i2c: E2 08 00 DD 3D 80 13 01 00 00 00 00 00 97 [07:22:25]Write i2c OK [07:22:25]MH_I2C_Read... [07:22:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:22:25]Read from MH i2c: E2 [07:22:25]MH_I2C_Read... [07:22:25]Read from MH i2c: E2 0E 00 [07:22:25]MH_I2C_Read... [07:22:25]Read from MH i2c: E2 0E 00 DD 3D 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 43 [07:22:25]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [07:22:25]wFMCommunicate OK [07:22:25]SAM_PROTO_GetShiftState done [07:22:25]FM_GetShiftState done [07:22:25]opened in 1715818916 [07:22:25]opened+sec_in_day 1715905316 [07:22:25]quantity*price = 50033 [07:22:25]sum+1 = 50034 [07:22:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 13 16.05.2024 07:22 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67415 ФПД: 80060016011781 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T072230&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67415&fm=80060016011781&tin=02508201610067®Number=0000000000091845&sum=50000 [07:22:26]StoreToDocumentArchive [07:22:26]shift 357 fd 67415 [07:22:26]save to /storage/0357/doc_00067415 [07:22:26]save last doc name /storage/0357/doc_00067415 to /storage/kkm_last_doc_name [07:22:26]save OK [07:22:26]Clear old archive folders... [07:22:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:22:26]tlvbuf is 00BA48A0 [07:22:26]SAM_PROTO_ClearQueue [07:22:26]wFMCommunicate request_size=4 [07:22:26]MH_SAM_APDU [07:22:26]CAPDU: 80 09 00 00 [07:22:26]Write to MH i2c: E2 08 00 EA 3D 80 09 00 00 00 00 00 00 99 [07:22:26]Write i2c OK [07:22:26]MH_I2C_Read... [07:22:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:22:26]Read from MH i2c: E2 [07:22:26]MH_I2C_Read... [07:22:26]Read from MH i2c: E2 03 00 [07:22:26]MH_I2C_Read... [07:22:26]Read from MH i2c: E2 03 00 EA 3D 00 90 00 9B [07:22:26]RAPDU: 90 00 [07:22:26]wFMCommunicate OK [07:22:26]SAM_PROTO_ClearQueue done [07:22:26]KKMCreateOFDPacket [07:22:26]OFDProtocolAddRootSTLVToBuf [07:22:26]FM_MakeSignedData [07:22:26]FM_MakeSignedData [07:22:26]SAM_PROTO_SignData [07:22:26]wFMCommunicate request_size=4 [07:22:26]MH_SAM_APDU [07:22:26]CAPDU: 80 0D 01 02 [07:22:26]Write to MH i2c: E2 08 00 EB 3D 80 0D 01 02 00 00 00 00 A1 [07:22:26]Write i2c OK [07:22:26]MH_I2C_Read... [07:22:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:22:26]Read from MH i2c: E2 [07:22:26]MH_I2C_Read... [07:22:26]Read from MH i2c: E2 03 00 [07:22:26]MH_I2C_Read... [07:22:26]Read from MH i2c: E2 03 00 EB 3D 00 90 00 9C [07:22:26]RAPDU: 90 00 [07:22:26]wFMCommunicate OK [07:22:26]wFMCommunicate request_size=255 [07:22:26]MH_SAM_APDU [07:22: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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 36 B4 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 57 07 01 00 35 04 06 00 48 [07:22:26]Write to MH i2c: E2 02 01 EC 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 36 B4 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 57 07 01 00 35 04 06 00 48 00 00 DB [07:22:26]Write i2c OK [07:22:26]MH_I2C_Read... [07:22:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:22:27]Read from MH i2c: E2 [07:22:27]MH_I2C_Read... [07:22:27]Read from MH i2c: E2 03 00 [07:22:27]MH_I2C_Read... [07:22:27]Read from MH i2c: E2 03 00 EC 3D 00 90 00 9D [07:22:27]RAPDU: 90 00 [07:22:27]wFMCommunicate OK [07:22:27]wFMCommunicate request_size=10 [07:22:27]MH_SAM_APDU [07:22:27]CAPDU: 80 0D 02 02 05 D0 6C D0 AA 05 [07:22:27]Write to MH i2c: E2 0D 00 ED 3D 80 0D 02 02 05 00 D0 6C D0 AA 05 00 00 69 [07:22:27]Write i2c OK [07:22:27]MH_I2C_Read... [07:22:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:22:27]Read from MH i2c: E2 [07:22:27]MH_I2C_Read... [07:22:27]Read from MH i2c: E2 03 00 [07:22:27]MH_I2C_Read... [07:22:27]Read from MH i2c: E2 03 00 ED 3D 00 90 00 9E [07:22:27]RAPDU: 90 00 [07:22:27]wFMCommunicate OK [07:22:27]wFMCommunicate request_size=4 [07:22:27]MH_SAM_APDU [07:22:27]CAPDU: 80 0D 03 02 [07:22:27]Write to MH i2c: E2 08 00 EE 3D 80 0D 03 02 00 00 00 00 A6 [07:22:27]Write i2c OK [07:22:27]MH_I2C_Read... [07:22:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:22:27]Read from MH i2c: E2 [07:22:27]MH_I2C_Read... [07:22:27]Read from MH i2c: E2 0B 00 [07:22:27]MH_I2C_Read... [07:22:27]Read from MH i2c: E2 0B 00 EE 3D 00 B8 1F E4 4F 5E 83 F6 B2 90 00 3A [07:22:27]RAPDU: B8 1F E4 4F 5E 83 F6 B2 90 00 [07:22:27]wFMCommunicate OK [07:22:27]SAM_PROTO_SignData done [07:22:27]FM_MakeSignedData done [07:22:27]CreateOFDProtocolMessage [07:22:27]wFMCommunicate request_size=4 [07:22:27]MH_SAM_APDU [07:22:27]CAPDU: 80 11 00 00 [07:22:27]Write to MH i2c: E2 08 00 EF 3D 80 11 00 00 00 00 00 00 A6 [07:22:27]Write i2c OK [07:22:27]MH_I2C_Read... [07:22:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:22:27]Read from MH i2c: E2 [07:22:27]MH_I2C_Read... [07:22:27]Read from MH i2c: E2 17 00 [07:22:27]MH_I2C_Read... [07:22:27]Read from MH i2c: E2 17 00 EF 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 FC [07:22:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:22:27]wFMCommunicate OK [07:22:27]CreateOFDProtocolMessage done [07:22:27]OFDSenderStorePacket 67415 [07:22:27]StoreOFDPacket docnum=67415 [07:22:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 D4 D9 07 01 59 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 36 B4 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 57 07 01 00 35 04 06 00 48 D0 6C D0 AA 05 B8 1F E4 4F 5E 83 F6 B2 [07:22:27]CheckFolder [07:22:27]dirname=/storage/ofd_packets [07:22:27]CheckFolder done [07:22:27]ProducePacketName [07:22:27]name=ofd_packets/00067415 [07:22:27]NVStorageSaveData ofd_packets/00067415 [07:22:27]File name is /storage/ofd_packets/00067415 [07:22:27]Write 301 bytes [07:22:27]NVStorageSaveData done [07:22:27]OFDSenderStorePacket done [07:22:27]KKMCreateOFDPacket done [07:22:27]NVStorageSaveData kkm_last_timestamp [07:22:27]File name is /storage/kkm_last_timestamp [07:22:27]Write 4 bytes [07:22:27]NVStorageSaveData done [07:22:27]ExternCall_PrintAddStr [07:22:27]wPrintStart [07:22:27]Write to MH i2c: 01 00 00 F0 3D 2D [07:22:27]Write i2c OK [07:22:27]MH_I2C_Read... [07:22:27]Read from MH i2c: 01 [07:22:27]MH_I2C_Read... [07:22:27]Read from MH i2c: 01 07 00 [07:22:27]MH_I2C_Read... [07:22:27]Read from MH i2c: 01 07 00 F0 3D 00 00 00 00 00 FF 0F 42 [07:22:27]RasterBufferAndPrint [07:22:27]line Счет N : (1)507407 [07:22:27]line ИНН: 02508201610067 [07:22:27]line Контрольно-Кассовый Чек [07:22:27]line ПРОДАЖА [07:22:27]line ТРК (МРК, ГНК) : 13 [07:22:27]line Товар: 2710124130 [07:22:27]line Аи-92-К-5 [07:22:27]line 7.490 * 66.80 [07:22:27]line = 500.33 [07:22:27]line НДС 12% НСП 1% [07:22:27]line > о реализуемом товаре [07:22:27]line ОКРУГЛЕНИЕ: -0.33 [07:22:27]line ИТОГО: 500.00 [07:22:27]line Внесено: 500.00 [07:22:27]line СДАЧА: 0.00 [07:22:27]line НСП 1% : 4.43 [07:22:27]line НДС 12% : 53.13 [07:22:27]line Наличными: 500.00 [07:22:27]line Безнал.: 0.00 [07:22:27]line Место: АЗС № 91 "Партнер Нефть" [07:22:27]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [07:22:27]line СНО: Общий режим [07:22:27]line Чек 13 16.05.2024 07:22 [07:22:27]line Смена: 357 ФФД: 1.0 [07:22:27]line ЗНМ: 0300000119 [07:22:27]line РНМ: 0000000000091845 [07:22:27]line Версия ККМ: 001 [07:22:27]line ФМ: 0000000000871829 [07:22:27]line ФД: 67415 [07:22:27]line ФПД: 80060016011781 [07:22:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T072230&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67415&fm=80060016011781&tin=02508201610067®Number=0000000000091845&sum=50000 [07:22:27]written 0, free lines is 4095 [07:22:27]OFD Sender: Processing packet 67415 [packets to send 35, broken 34] [07:22:27]ProducePacketName [07:22:27]name=ofd_packets/00067415 [07:22:27]OFD Sender: To server: pG, [07:22:27]CommunicateWithHost lk.salyk.kg:30040 [07:22:27]ConnectInit lk.salyk.kg [07:22:27]Connected sock=10 [07:22: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 38 32 39 0F 01 00 00 D4 D9 07 01 59 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 36 B4 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 57 07 01 00 35 04 06 00 48 D0 6C D0 AA 05 B8 1F E4 4F 5E 83 F6 B2 [07:22:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 EA 77 47 00 3A 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 38 32 39 10 04 04 00 57 07 01 00 F4 03 04 00 11 5C 45 66 B6 04 01 00 00 99 DF 20 2B 04 32 3C 4C [07:22:28]CommunicateWithHost err = 0 [07:22:28]CheckOFDResponse [07:22:28]1017 (14) - 77093643461234 [07:22:28]1041 (16) - 0000000000871829 [07:22:28]1040 (4) - 67415 [07:22:28]1012 (4) - 16.05.2024 01:06 [07:22:28]1206 (1) - 0 [07:22:28]OFD Sender: Remove packet 67415 [07:22:28]ProducePacketName [07:22:28]name=ofd_packets/00067415 [07:22:28]NVStorageDeleteData [07:22:28]Write to MH i2c: 01 00 00 1A 3E 58 [07:22:28]Write i2c OK [07:22:28]MH_I2C_Read... [07:22:28]Read from MH i2c: 01 [07:22:28]MH_I2C_Read... [07:22:28]Read from MH i2c: 01 07 00 [07:22:28]MH_I2C_Read... [07:22:28]Read from MH i2c: 01 07 00 1A 3E 00 00 00 00 00 C7 0C 32 [07:22:28]RasterBufferAndPrint [07:22:28]line [07:22:28]line [07:22:28]line [07:22:28]line [07:22:28]line [07:22:28]written 0, free lines is 3278 [07:22:28]MH_Cut [07:22:28]Write to MH i2c: D1 01 00 21 3E 01 31 [07:22:28]Write i2c OK [07:22:28]MH_I2C_Read... [07:22:28]Read from MH i2c: D1 [07:22:28]MH_I2C_Read... [07:22:28]Read from MH i2c: D1 01 00 [07:22:28]MH_I2C_Read... [07:22:28]Read from MH i2c: D1 01 00 21 3E 00 30 [07:22:28]Write to MH i2c: 01 00 00 22 3E 60 [07:22:28]Write i2c OK [07:22:28]MH_I2C_Read... [07:22:28]OFD Sender: No OFD packet to send [07:22:28]*** Cut start [07:22:28]*** Purtial cut [07:22:28]*** Stage 1: CUTSNS_PIN = 1 [07:22:29]Read from MH i2c: 01 [07:22:29]MH_I2C_Read... [07:22:29]*** Stop cut motor [07:22:29]*** Cut end [07:22:29]Read from MH i2c: 01 07 00 [07:22:29]MH_I2C_Read... [07:22:29]Read from MH i2c: 01 07 00 22 3E 00 00 00 00 00 FF 0F 75 [07:22:29]process_action close_receipt done [07:22:29]requested_data is exist [07:22:29]produce_requested_data [07:22:29]requested_item fm.sn is exist - process it [07:22:29]wFMCommunicate request_size=4 [07:22:29]MH_SAM_APDU [07:22:29]CAPDU: 80 11 00 00 [07:22:29]Write to MH i2c: E2 08 00 23 3E 80 11 00 00 00 00 00 00 DB [07:22:29]Write i2c OK [07:22:29]MH_I2C_Read... [07:22:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:22:29]Read from MH i2c: E2 [07:22:29]MH_I2C_Read... [07:22:29]Read from MH i2c: E2 17 00 [07:22:29]MH_I2C_Read... [07:22:29]Read from MH i2c: E2 17 00 23 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 31 [07:22:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:22:29]wFMCommunicate OK [07:22:29]requested_item fd.num is exist - process it [07:22:29]SAM_PROTO_GetFieldsCounters [07:22:29]wFMCommunicate request_size=4 [07:22:29]MH_SAM_APDU [07:22:29]CAPDU: 80 13 00 00 [07:22:29]Write to MH i2c: E2 08 00 24 3E 80 13 00 00 00 00 00 00 DE [07:22:29]Write i2c OK [07:22:29]MH_I2C_Read... [07:22:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:22:29]Read from MH i2c: E2 [07:22:29]MH_I2C_Read... [07:22:29]Read from MH i2c: E2 62 00 [07:22:29]MH_I2C_Read... [07:22:29]Read from MH i2c: E2 62 00 24 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 57 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [07:22: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 57 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:22:29]wFMCommunicate OK [07:22:29]SAM_PROTO_GetFieldsCounters done [07:22:29]requested_item shift.num is exist - process it [07:22:29]requested_item shift.opened is exist - process it [07:22:29]req_shift_opened [07:22:29]FM_GetShiftState [07:22:29]SAM_PROTO_GetShiftState [07:22:29]wFMCommunicate request_size=4 [07:22:29]MH_SAM_APDU [07:22:29]CAPDU: 80 13 01 00 [07:22:29]Write to MH i2c: E2 08 00 25 3E 80 13 01 00 00 00 00 00 E0 [07:22:29]Write i2c OK [07:22:29]MH_I2C_Read... [07:22:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:22:29]Read from MH i2c: E2 [07:22:29]MH_I2C_Read... [07:22:29]Read from MH i2c: E2 0E 00 [07:22:29]MH_I2C_Read... [07:22:29]Read from MH i2c: E2 0E 00 25 3E 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 8C [07:22:29]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [07:22:29]wFMCommunicate OK [07:22:29]SAM_PROTO_GetShiftState done [07:22:29]FM_GetShiftState done [07:22:29]req_shift_opened done [07:22:29]requested_item shift.open_date is exist - process it [07:22:29]req_shift_open_date [07:22:29]req_shift_open_date done [07:22:29]produce_requested_data done [07:22:29]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67415,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [07:22:29]process_action_free close_receipt [07:22:29]json_value_free [07:22:29]json_value_free done [07:22:29]process_json_proto returns [07:22:29]Send response to host [07:22:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67415,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [07:22:29]free response buf [07:22:29]execute_script done [07:22:29]execute_script returns [07:22:29]free content buf [07:22:29]Sock 7.Close socket [07:22:29]Sock 7.Thread stoped [07:22:33]OFD Sender: No OFD packet to send [07:22:38]OFD Sender: No OFD packet to send [07:22:43]OFD Sender: No OFD packet to send [07:22:48]OFD Sender: No OFD packet to send [07:22:53]OFD Sender: No OFD packet to send [07:22:58]OFD Sender: No OFD packet to send [07:23:03]OFD Sender: No OFD packet to send [07:23:08]OFD Sender: No OFD packet to send [07:23:13]OFD Sender: No OFD packet to send [07:23:18]OFD Sender: No OFD packet to send [07:23:23]OFD Sender: No OFD packet to send [07:23:28]OFD Sender: No OFD packet to send [07:23:33]OFD Sender: No OFD packet to send [07:23:38]OFD Sender: No OFD packet to send [07:23:43]OFD Sender: No OFD packet to send [07:23:48]OFD Sender: No OFD packet to send [07:23:53]OFD Sender: No OFD packet to send [07:23:58]OFD Sender: No OFD packet to send [07:24:03]OFD Sender: No OFD packet to send [07:24:08]OFD Sender: No OFD packet to send [07:24:13]OFD Sender: No OFD packet to send [07:24:18]OFD Sender: No OFD packet to send [07:24:23]OFD Sender: No OFD packet to send [07:24:28]OFD Sender: No OFD packet to send [07:24:33]OFD Sender: No OFD packet to send [07:24:38]OFD Sender: No OFD packet to send [07:24:43]OFD Sender: No OFD packet to send [07:24:48]OFD Sender: No OFD packet to send [07:24:53]OFD Sender: No OFD packet to send [07:24:58]OFD Sender: No OFD packet to send [07:25:03]OFD Sender: No OFD packet to send [07:25:08]OFD Sender: No OFD packet to send [07:25:13]OFD Sender: No OFD packet to send [07:25:18]OFD Sender: No OFD packet to send [07:25:23]OFD Sender: No OFD packet to send [07:25:28]OFD Sender: No OFD packet to send [07:25:33]OFD Sender: No OFD packet to send [07:25:38]OFD Sender: No OFD packet to send [07:25:42]accept exits with 9 [07:25:42]New connection [07:25:42]New thread 3067030884 created [07:25:42]Thread 3067174244 joined [07:25:42]Waiting for new connection... [07:25:42] Sock 9.Parse request [07:25:42]Sock 9.Check first char [07:25:42]Sock 9.First char is OK [07:25:42]request: POST /json_proto HTTP/1.0 [07:25:42]Method: POST [07:25:42]URL: /json_proto [07:25:42]Method is POST - this is cgi request [07:25:42]url: /json_proto [07:25:42]query_string will be loaded in cgi processing [07:25:42]execute_cgi json_proto POST (null) [07:25:42]execute_cgi path=json_proto method=POST [07:25:42]POST find Content-Length [07:25:42]Host: 172.17.41.195:8080 [07:25:42]Content-Length: 1223 [07:25:42]Content-Type: application/json [07:25:42] [07:25:42]POST finish read [07:25:42]Found Content-Length = 1223 [07:25:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507408\u000A16.05.2024 07:08\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 60.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 4482.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3797527/28/29\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:25:42]execute_script... [07:25:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507408\u000A16.05.2024 07:08\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 60.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 4482.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3797527/28/29\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:25:42]POST & json_proto [07:25:42]process_json_proto [07:25:42]json parsed OK: [07:25:42]protocol is kg_v1.0 [07:25:42]action value=print_text [07:25:42]process_action print_text [07:25:42]cmd_print_text [07:25:42]ExternCall_PrintAddStr [07:25:42]wPrintStart [07:25:42]Write to MH i2c: 01 00 00 26 3E 64 [07:25:42]Write i2c OK [07:25:42]MH_I2C_Read... [07:25:42]Read from MH i2c: 01 [07:25:42]MH_I2C_Read... [07:25:42]Read from MH i2c: 01 07 00 [07:25:42]MH_I2C_Read... [07:25:42]Read from MH i2c: 01 07 00 26 3E 00 00 00 00 00 FF 0F 79 [07:25:42]RasterBufferAndPrint [07:25:42]line *****ТОВАРНЫЙ ЧЕК***** [07:25:42]line АЗС-91 [07:25:42]line Партнер нефть [07:25:42]line 02508201610067 [07:25:42]line Кассир : Пайзулдаева А. [07:25:42]line Счет N : (1)507408 [07:25:42]line 16.05.2024 07:08 [07:25:42]line ПРОДАЖА [07:25:42]line ТРК (МРК, ГНК): 31 [07:25:42]line Вид ГСМ : 2710194210 [07:25:42]line ДТ-К-5 [07:25:42]line 60.000 x 74.70 [07:25:42]line ИТОГ: 4482.00 [07:25:42]line Тип оплаты: Талоны: Топливные Талоны [07:25:42]line 3797527/28/29 [07:25:42]line ______________________ [07:25:42]line (подпись) [07:25:42]written 0, free lines is 4095 [07:25:42]Write to MH i2c: 01 00 00 3A 3E 78 [07:25:42]Write i2c OK [07:25:42]MH_I2C_Read... [07:25:42]Read from MH i2c: 01 [07:25:42]MH_I2C_Read... [07:25:42]Read from MH i2c: 01 07 00 [07:25:42]MH_I2C_Read... [07:25:42]Read from MH i2c: 01 07 00 3A 3E 00 00 00 00 00 15 0E A2 [07:25:42]RasterBufferAndPrint [07:25:42]line [07:25:42]line [07:25:42]line [07:25:42]line [07:25:42]line [07:25:42]written 0, free lines is 3606 [07:25:42]MH_Cut [07:25:42]Write to MH i2c: D1 01 00 41 3E 01 51 [07:25:42]Write i2c OK [07:25:42]MH_I2C_Read... [07:25:42]Read from MH i2c: D1 [07:25:42]MH_I2C_Read... [07:25:42]Read from MH i2c: D1 01 00 [07:25:42]MH_I2C_Read... [07:25:42]Read from MH i2c: D1 01 00 41 3E 00 50 [07:25:42]Write to MH i2c: 01 00 00 42 3E 80 [07:25:42]Write i2c OK [07:25:42]MH_I2C_Read... [07:25:43]*** Cut start [07:25:43]*** Purtial cut [07:25:43]*** CUTSNS_PIN = 0 [07:25:43]*** Stage 1: CUTSNS_PIN = 1 [07:25:43]OFD Sender: No OFD packet to send [07:25:45]Read from MH i2c: 01 [07:25:45]MH_I2C_Read... [07:25:45]*** Stop cut motor [07:25:45]*** Cut end [07:25:45]Read from MH i2c: 01 07 00 [07:25:45]MH_I2C_Read... [07:25:45]Read from MH i2c: 01 07 00 42 3E 00 00 00 00 00 FF 0F 95 [07:25:45]process_action print_text done [07:25:45]requested_data is exist [07:25:45]produce_requested_data [07:25:45]requested_item fm.sn is exist - process it [07:25:45]wFMCommunicate request_size=4 [07:25:45]MH_SAM_APDU [07:25:45]CAPDU: 80 11 00 00 [07:25:45]Write to MH i2c: E2 08 00 43 3E 80 11 00 00 00 00 00 00 FB [07:25:45]Write i2c OK [07:25:45]MH_I2C_Read... [07:25:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:25:45]Read from MH i2c: E2 [07:25:45]MH_I2C_Read... [07:25:45]Read from MH i2c: E2 17 00 [07:25:45]MH_I2C_Read... [07:25:45]Read from MH i2c: E2 17 00 43 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 51 [07:25:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:25:45]wFMCommunicate OK [07:25:45]requested_item fd.num is exist - process it [07:25:45]SAM_PROTO_GetFieldsCounters [07:25:45]wFMCommunicate request_size=4 [07:25:45]MH_SAM_APDU [07:25:45]CAPDU: 80 13 00 00 [07:25:45]Write to MH i2c: E2 08 00 44 3E 80 13 00 00 00 00 00 00 FE [07:25:45]Write i2c OK [07:25:45]MH_I2C_Read... [07:25:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:25:45]Read from MH i2c: E2 [07:25:45]MH_I2C_Read... [07:25:45]Read from MH i2c: E2 62 00 [07:25:45]MH_I2C_Read... [07:25:45]Read from MH i2c: E2 62 00 44 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 57 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [07:25: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 57 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:25:45]wFMCommunicate OK [07:25:45]SAM_PROTO_GetFieldsCounters done [07:25:45]requested_item shift.num is exist - process it [07:25:45]requested_item shift.opened is exist - process it [07:25:45]req_shift_opened [07:25:45]FM_GetShiftState [07:25:45]SAM_PROTO_GetShiftState [07:25:45]wFMCommunicate request_size=4 [07:25:45]MH_SAM_APDU [07:25:45]CAPDU: 80 13 01 00 [07:25:45]Write to MH i2c: E2 08 00 45 3E 80 13 01 00 00 00 00 00 00 [07:25:45]Write i2c OK [07:25:45]MH_I2C_Read... [07:25:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:25:45]Read from MH i2c: E2 [07:25:45]MH_I2C_Read... [07:25:45]Read from MH i2c: E2 0E 00 [07:25:45]MH_I2C_Read... [07:25:45]Read from MH i2c: E2 0E 00 45 3E 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 AC [07:25:45]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [07:25:45]wFMCommunicate OK [07:25:45]SAM_PROTO_GetShiftState done [07:25:45]FM_GetShiftState done [07:25:45]req_shift_opened done [07:25:45]requested_item shift.open_date is exist - process it [07:25:45]req_shift_open_date [07:25:45]req_shift_open_date done [07:25:45]produce_requested_data done [07:25:45]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67415,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [07:25:45]process_action_free print_text [07:25:45]json_value_free [07:25:45]json_value_free done [07:25:45]process_json_proto returns [07:25:45]Send response to host [07:25:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67415,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [07:25:45]free response buf [07:25:45]execute_script done [07:25:45]execute_script returns [07:25:45]free content buf [07:25:45]Sock 9.Close socket [07:25:45]Sock 9.Thread stoped [07:25:48]OFD Sender: No OFD packet to send [07:25:53]OFD Sender: No OFD packet to send [07:25:58]OFD Sender: No OFD packet to send [07:26:03]OFD Sender: No OFD packet to send [07:26:08]OFD Sender: No OFD packet to send [07:26:13]OFD Sender: No OFD packet to send [07:26:18]OFD Sender: No OFD packet to send [07:26:23]OFD Sender: No OFD packet to send [07:26:28]OFD Sender: No OFD packet to send [07:26:33]OFD Sender: No OFD packet to send [07:26:38]OFD Sender: No OFD packet to send [07:26:43]OFD Sender: No OFD packet to send [07:26:48]OFD Sender: No OFD packet to send [07:26:53]OFD Sender: No OFD packet to send [07:26:58]OFD Sender: No OFD packet to send [07:27:03]OFD Sender: No OFD packet to send [07:27:08]OFD Sender: No OFD packet to send [07:27:13]OFD Sender: No OFD packet to send [07:27:18]OFD Sender: No OFD packet to send [07:27:23]OFD Sender: No OFD packet to send [07:27:28]OFD Sender: No OFD packet to send [07:27:33]OFD Sender: No OFD packet to send [07:27:38]OFD Sender: No OFD packet to send [07:27:39]accept exits with 7 [07:27:39]New connection [07:27:39]New thread 3067174244 created [07:27:39]Thread 3067030884 joined [07:27:39]Waiting for new connection... [07:27:39] Sock 7.Parse request [07:27:39]Sock 7.Check first char [07:27:39]Sock 7.First char is OK [07:27:39]request: POST /json_proto HTTP/1.0 [07:27:39]Method: POST [07:27:39]URL: /json_proto [07:27:39]Method is POST - this is cgi request [07:27:39]url: /json_proto [07:27:39]query_string will be loaded in cgi processing [07:27:39]execute_cgi json_proto POST (null) [07:27:39]execute_cgi path=json_proto method=POST [07:27:39]POST find Content-Length [07:27:39]Host: 172.17.41.195:8080 [07:27:39]Content-Length: 1217 [07:27:39]Content-Type: application/json [07:27:39] [07:27:39]POST finish read [07:27:39]Found Content-Length = 1217 [07:27:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507409\u000A16.05.2024 07:10\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.180 x 74.70\u000A\u0418\u0422\u041E\u0413: 1507.45\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3472419\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:27:39]execute_script... [07:27:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507409\u000A16.05.2024 07:10\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.180 x 74.70\u000A\u0418\u0422\u041E\u0413: 1507.45\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3472419\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:27:39]POST & json_proto [07:27:39]process_json_proto [07:27:39]json parsed OK: [07:27:39]protocol is kg_v1.0 [07:27:39]action value=print_text [07:27:39]process_action print_text [07:27:39]cmd_print_text [07:27:39]ExternCall_PrintAddStr [07:27:39]wPrintStart [07:27:39]Write to MH i2c: 01 00 00 46 3E 84 [07:27:39]Write i2c OK [07:27:39]MH_I2C_Read... [07:27:39]Read from MH i2c: 01 [07:27:39]MH_I2C_Read... [07:27:39]Read from MH i2c: 01 07 00 [07:27:39]MH_I2C_Read... [07:27:39]Read from MH i2c: 01 07 00 46 3E 00 00 00 00 00 FF 0F 99 [07:27:39]RasterBufferAndPrint [07:27:39]line *****ТОВАРНЫЙ ЧЕК***** [07:27:39]line АЗС-91 [07:27:39]line Партнер нефть [07:27:39]line 02508201610067 [07:27:39]line Кассир : Пайзулдаева А. [07:27:39]line Счет N : (1)507409 [07:27:39]line 16.05.2024 07:10 [07:27:39]line ПРОДАЖА [07:27:39]line ТРК (МРК, ГНК): 21 [07:27:39]line Вид ГСМ : 2710194210 [07:27:39]line ДТ-К-5 [07:27:39]line 20.180 x 74.70 [07:27:39]line ИТОГ: 1507.45 [07:27:39]line Тип оплаты: Талоны: Топливные Талоны [07:27:39]line 3472419 [07:27:39]line ______________________ [07:27:39]line (подпись) [07:27:39]written 0, free lines is 4095 [07:27:39]Write to MH i2c: 01 00 00 5A 3E 98 [07:27:39]Write i2c OK [07:27:39]MH_I2C_Read... [07:27:39]Read from MH i2c: 01 [07:27:39]MH_I2C_Read... [07:27:39]Read from MH i2c: 01 07 00 [07:27:39]MH_I2C_Read... [07:27:39]Read from MH i2c: 01 07 00 5A 3E 00 00 00 00 00 10 0E BD [07:27:39]RasterBufferAndPrint [07:27:39]line [07:27:39]line [07:27:39]line [07:27:39]line [07:27:39]line [07:27:39]written 0, free lines is 3601 [07:27:39]MH_Cut [07:27:39]Write to MH i2c: D1 01 00 61 3E 01 71 [07:27:39]Write i2c OK [07:27:39]MH_I2C_Read... [07:27:39]Read from MH i2c: D1 [07:27:39]MH_I2C_Read... [07:27:39]Read from MH i2c: D1 01 00 [07:27:39]MH_I2C_Read... [07:27:39]Read from MH i2c: D1 01 00 61 3E 00 70 [07:27:39]Write to MH i2c: 01 00 00 62 3E A0 [07:27:39]Write i2c OK [07:27:39]MH_I2C_Read... [07:27:39]*** Cut start [07:27:39]*** Purtial cut [07:27:39]*** Stage 1: CUTSNS_PIN = 1 [07:27:40]Read from MH i2c: 01 [07:27:40]MH_I2C_Read... [07:27:40]*** Stop cut motor [07:27:40]*** Cut end [07:27:40]Read from MH i2c: 01 07 00 [07:27:40]MH_I2C_Read... [07:27:40]Read from MH i2c: 01 07 00 62 3E 00 00 00 00 00 FF 0F B5 [07:27:40]process_action print_text done [07:27:40]requested_data is exist [07:27:40]produce_requested_data [07:27:40]requested_item fm.sn is exist - process it [07:27:40]wFMCommunicate request_size=4 [07:27:40]MH_SAM_APDU [07:27:40]CAPDU: 80 11 00 00 [07:27:40]Write to MH i2c: E2 08 00 63 3E 80 11 00 00 00 00 00 00 1B [07:27:40]Write i2c OK [07:27:40]MH_I2C_Read... [07:27:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:27:40]Read from MH i2c: E2 [07:27:40]MH_I2C_Read... [07:27:40]Read from MH i2c: E2 17 00 [07:27:40]MH_I2C_Read... [07:27:40]Read from MH i2c: E2 17 00 63 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 71 [07:27:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:27:40]wFMCommunicate OK [07:27:40]requested_item fd.num is exist - process it [07:27:40]SAM_PROTO_GetFieldsCounters [07:27:40]wFMCommunicate request_size=4 [07:27:40]MH_SAM_APDU [07:27:40]CAPDU: 80 13 00 00 [07:27:40]Write to MH i2c: E2 08 00 64 3E 80 13 00 00 00 00 00 00 1E [07:27:40]Write i2c OK [07:27:40]MH_I2C_Read... [07:27:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:27:40]Read from MH i2c: E2 [07:27:40]MH_I2C_Read... [07:27:40]Read from MH i2c: E2 62 00 [07:27:40]MH_I2C_Read... [07:27:40]Read from MH i2c: E2 62 00 64 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 57 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [07: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 57 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:27:40]wFMCommunicate OK [07:27:40]SAM_PROTO_GetFieldsCounters done [07:27:40]requested_item shift.num is exist - process it [07:27:40]requested_item shift.opened is exist - process it [07:27:40]req_shift_opened [07:27:40]FM_GetShiftState [07:27:40]SAM_PROTO_GetShiftState [07:27:40]wFMCommunicate request_size=4 [07:27:40]MH_SAM_APDU [07:27:40]CAPDU: 80 13 01 00 [07:27:40]Write to MH i2c: E2 08 00 65 3E 80 13 01 00 00 00 00 00 20 [07:27:40]Write i2c OK [07:27:40]MH_I2C_Read... [07:27:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:27:40]Read from MH i2c: E2 [07:27:40]MH_I2C_Read... [07:27:40]Read from MH i2c: E2 0E 00 [07:27:40]MH_I2C_Read... [07:27:40]Read from MH i2c: E2 0E 00 65 3E 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 CC [07:27:40]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [07:27:40]wFMCommunicate OK [07:27:40]SAM_PROTO_GetShiftState done [07:27:40]FM_GetShiftState done [07:27:40]req_shift_opened done [07:27:40]requested_item shift.open_date is exist - process it [07:27:40]req_shift_open_date [07:27:40]req_shift_open_date done [07:27:40]produce_requested_data done [07:27:40]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67415,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [07:27:40]process_action_free print_text [07:27:40]json_value_free [07:27:40]json_value_free done [07:27:40]process_json_proto returns [07:27:40]Send response to host [07:27:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67415,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [07:27:40]free response buf [07:27:40]execute_script done [07:27:40]execute_script returns [07:27:40]free content buf [07:27:40]Sock 7.Close socket [07:27:40]Sock 7.Thread stoped [07:27:43]OFD Sender: No OFD packet to send [07:27:48]OFD Sender: No OFD packet to send [07:27:53]OFD Sender: No OFD packet to send [07:27:58]OFD Sender: No OFD packet to send [07:28:03]OFD Sender: No OFD packet to send [07:28:08]OFD Sender: No OFD packet to send [07:28:13]OFD Sender: No OFD packet to send [07:28:18]OFD Sender: No OFD packet to send [07:28:23]OFD Sender: No OFD packet to send [07:28:28]OFD Sender: No OFD packet to send [07:28:33]OFD Sender: No OFD packet to send [07:28:38]OFD Sender: No OFD packet to send [07:28:43]OFD Sender: No OFD packet to send [07:28:48]OFD Sender: No OFD packet to send [07:28:49]accept exits with 9 [07:28:49]New connection [07:28:49]New thread 3067030884 created [07:28:49]Thread 3067174244 joined [07:28:49]Waiting for new connection... [07:28:49] Sock 9.Parse request [07:28:49]Sock 9.Check first char [07:28:49]Sock 9.First char is OK [07:28:49]request: POST /json_proto HTTP/1.0 [07:28:49]Method: POST [07:28:49]URL: /json_proto [07:28:49]Method is POST - this is cgi request [07:28:49]url: /json_proto [07:28:49]query_string will be loaded in cgi processing [07:28:49]execute_cgi json_proto POST (null) [07:28:49]execute_cgi path=json_proto method=POST [07:28:49]POST find Content-Length [07:28:49]Host: 172.17.41.195:8080 [07:28:49]Content-Length: 1207 [07:28:49]Content-Type: application/json [07:28:49] [07:28:49]POST finish read [07:28:49]Found Content-Length = 1207 [07:28:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507410\u000A16.05.2024 07:11\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 9.820 x 74.70\u000A\u0418\u0422\u041E\u0413: 733.55\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:28:49]execute_script... [07:28:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507410\u000A16.05.2024 07:11\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 9.820 x 74.70\u000A\u0418\u0422\u041E\u0413: 733.55\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:28:49]POST & json_proto [07:28:49]process_json_proto [07:28:49]json parsed OK: [07:28:49]protocol is kg_v1.0 [07:28:49]action value=print_text [07:28:49]process_action print_text [07:28:49]cmd_print_text [07:28:49]ExternCall_PrintAddStr [07:28:49]wPrintStart [07:28:49]Write to MH i2c: 01 00 00 66 3E A4 [07:28:49]Write i2c OK [07:28:49]MH_I2C_Read... [07:28:49]Read from MH i2c: 01 [07:28:49]MH_I2C_Read... [07:28:49]Read from MH i2c: 01 07 00 [07:28:49]MH_I2C_Read... [07:28:49]Read from MH i2c: 01 07 00 66 3E 00 00 00 00 00 FF 0F B9 [07:28:49]RasterBufferAndPrint [07:28:49]line *****ТОВАРНЫЙ ЧЕК***** [07:28:49]line АЗС-91 [07:28:49]line Партнер нефть [07:28:49]line 02508201610067 [07:28:49]line Кассир : Пайзулдаева А. [07:28:49]line Счет N : (1)507410 [07:28:49]line 16.05.2024 07:11 [07:28:49]line ПРОДАЖА [07:28:49]line ТРК (МРК, ГНК): 21 [07:28:49]line Вид ГСМ : 2710194210 [07:28:49]line ДТ-К-5 [07:28:49]line 9.820 x 74.70 [07:28:49]line ИТОГ: 733.55 [07:28:49]line Тип оплаты: Талоны: Топливная Карта [07:28:49]line 02750 [07:28:49]line ______________________ [07:28:49]line (подпись) [07:28:49]written 0, free lines is 4095 [07:28:49]Write to MH i2c: 01 00 00 7A 3E B8 [07:28:49]Write i2c OK [07:28:49]MH_I2C_Read... [07:28:49]Read from MH i2c: 01 [07:28:49]MH_I2C_Read... [07:28:49]Read from MH i2c: 01 07 00 [07:28:49]MH_I2C_Read... [07:28:49]Read from MH i2c: 01 07 00 7A 3E 00 00 00 00 00 0F 0E DC [07:28:49]RasterBufferAndPrint [07:28:49]line [07:28:49]line [07:28:49]line [07:28:49]line [07:28:49]line [07:28:49]written 0, free lines is 3600 [07:28:49]MH_Cut [07:28:49]Write to MH i2c: D1 01 00 81 3E 01 91 [07:28:49]Write i2c OK [07:28:49]MH_I2C_Read... [07:28:49]Read from MH i2c: D1 [07:28:49]MH_I2C_Read... [07:28:49]Read from MH i2c: D1 01 00 [07:28:49]MH_I2C_Read... [07:28:49]Read from MH i2c: D1 01 00 81 3E 00 90 [07:28:49]Write to MH i2c: 01 00 00 82 3E C0 [07:28:49]Write i2c OK [07:28:49]MH_I2C_Read... [07:28:50]*** Cut start [07:28:50]*** Purtial cut [07:28:50]*** CUTSNS_PIN = 0 [07:28:50]*** Stage 1: CUTSNS_PIN = 1 [07:28:52]Read from MH i2c: 01 [07:28:52]MH_I2C_Read... [07:28:52]*** Stop cut motor [07:28:52]*** Cut end [07:28:52]Read from MH i2c: 01 07 00 [07:28:52]MH_I2C_Read... [07:28:52]Read from MH i2c: 01 07 00 82 3E 00 00 00 00 00 FF 0F D5 [07:28:52]process_action print_text done [07:28:52]requested_data is exist [07:28:52]produce_requested_data [07:28:52]requested_item fm.sn is exist - process it [07:28:52]wFMCommunicate request_size=4 [07:28:52]MH_SAM_APDU [07:28:52]CAPDU: 80 11 00 00 [07:28:52]Write to MH i2c: E2 08 00 83 3E 80 11 00 00 00 00 00 00 3B [07:28:52]Write i2c OK [07:28:52]MH_I2C_Read... [07:28:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:28:52]Read from MH i2c: E2 [07:28:52]MH_I2C_Read... [07:28:52]Read from MH i2c: E2 17 00 [07:28:52]MH_I2C_Read... [07:28:52]Read from MH i2c: E2 17 00 83 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 91 [07:28:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:28:52]wFMCommunicate OK [07:28:52]requested_item fd.num is exist - process it [07:28:52]SAM_PROTO_GetFieldsCounters [07:28:52]wFMCommunicate request_size=4 [07:28:52]MH_SAM_APDU [07:28:52]CAPDU: 80 13 00 00 [07:28:52]Write to MH i2c: E2 08 00 84 3E 80 13 00 00 00 00 00 00 3E [07:28:52]Write i2c OK [07:28:52]MH_I2C_Read... [07:28:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:28:52]Read from MH i2c: E2 [07:28:52]MH_I2C_Read... [07:28:52]Read from MH i2c: E2 62 00 [07:28:52]MH_I2C_Read... [07:28:52]Read from MH i2c: E2 62 00 84 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 57 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [07:28: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 57 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:28:52]wFMCommunicate OK [07:28:52]SAM_PROTO_GetFieldsCounters done [07:28:52]requested_item shift.num is exist - process it [07:28:52]requested_item shift.opened is exist - process it [07:28:52]req_shift_opened [07:28:52]FM_GetShiftState [07:28:52]SAM_PROTO_GetShiftState [07:28:52]wFMCommunicate request_size=4 [07:28:52]MH_SAM_APDU [07:28:52]CAPDU: 80 13 01 00 [07:28:52]Write to MH i2c: E2 08 00 85 3E 80 13 01 00 00 00 00 00 40 [07:28:52]Write i2c OK [07:28:52]MH_I2C_Read... [07:28:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:28:52]Read from MH i2c: E2 [07:28:52]MH_I2C_Read... [07:28:52]Read from MH i2c: E2 0E 00 [07:28:52]MH_I2C_Read... [07:28:52]Read from MH i2c: E2 0E 00 85 3E 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 EC [07:28:52]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [07:28:52]wFMCommunicate OK [07:28:52]SAM_PROTO_GetShiftState done [07:28:52]FM_GetShiftState done [07:28:52]req_shift_opened done [07:28:52]requested_item shift.open_date is exist - process it [07:28:52]req_shift_open_date [07:28:52]req_shift_open_date done [07:28:52]produce_requested_data done [07:28:52]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67415,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [07:28:52]process_action_free print_text [07:28:52]json_value_free [07:28:52]json_value_free done [07:28:52]process_json_proto returns [07:28:52]Send response to host [07:28:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67415,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [07:28:52]free response buf [07:28:52]execute_script done [07:28:52]execute_script returns [07:28:52]free content buf [07:28:52]Sock 9.Close socket [07:28:52]Sock 9.Thread stoped [07:28:53]OFD Sender: No OFD packet to send [07:28:58]OFD Sender: No OFD packet to send [07:29:03]OFD Sender: No OFD packet to send [07:29:08]OFD Sender: No OFD packet to send [07:29:13]OFD Sender: No OFD packet to send [07:29:18]OFD Sender: No OFD packet to send [07:29:23]OFD Sender: No OFD packet to send [07:29:28]OFD Sender: No OFD packet to send [07:29:33]OFD Sender: No OFD packet to send [07:29:38]OFD Sender: No OFD packet to send [07:29:43]OFD Sender: No OFD packet to send [07:29:48]OFD Sender: No OFD packet to send [07:29:53]OFD Sender: No OFD packet to send [07:29:58]OFD Sender: No OFD packet to send [07:30:03]OFD Sender: No OFD packet to send [07:30:08]OFD Sender: No OFD packet to send [07:30:13]OFD Sender: No OFD packet to send [07:30:18]OFD Sender: No OFD packet to send [07:30:23]OFD Sender: No OFD packet to send [07:30:28]OFD Sender: No OFD packet to send [07:30:33]OFD Sender: No OFD packet to send [07:30:39]OFD Sender: No OFD packet to send [07:30:44]OFD Sender: No OFD packet to send [07:30:49]OFD Sender: No OFD packet to send [07:30:54]OFD Sender: No OFD packet to send [07:30:59]OFD Sender: No OFD packet to send [07:31:04]OFD Sender: No OFD packet to send [07:31:09]OFD Sender: No OFD packet to send [07:31:14]OFD Sender: No OFD packet to send [07:31:19]OFD Sender: No OFD packet to send [07:31:24]OFD Sender: No OFD packet to send [07:31:29]OFD Sender: No OFD packet to send [07:31:34]OFD Sender: No OFD packet to send [07:31:39]OFD Sender: No OFD packet to send [07:31:44]OFD Sender: No OFD packet to send [07:31:49]OFD Sender: No OFD packet to send [07:31:54]OFD Sender: No OFD packet to send [07:31:59]OFD Sender: No OFD packet to send [07:32:04]OFD Sender: No OFD packet to send [07:32:09]OFD Sender: No OFD packet to send [07:32:14]OFD Sender: No OFD packet to send [07:32:19]OFD Sender: No OFD packet to send [07:32:24]OFD Sender: No OFD packet to send [07:32:29]OFD Sender: No OFD packet to send [07:32:34]OFD Sender: No OFD packet to send [07:32:39]OFD Sender: No OFD packet to send [07:32:44]OFD Sender: No OFD packet to send [07:32:49]OFD Sender: No OFD packet to send [07:32:54]OFD Sender: No OFD packet to send [07:32:59]OFD Sender: No OFD packet to send [07:33:04]OFD Sender: No OFD packet to send [07:33:09]OFD Sender: No OFD packet to send [07:33:14]OFD Sender: No OFD packet to send [07:33:15]accept exits with 7 [07:33:15]New connection [07:33:15]New thread 3067174244 created [07:33:15]Thread 3067030884 joined [07:33:15]Waiting for new connection... [07:33:15] Sock 7.Parse request [07:33:15]Sock 7.Check first char [07:33:15]Sock 7.First char is OK [07:33:15]request: POST /json_proto HTTP/1.0 [07:33:15]Method: POST [07:33:15]URL: /json_proto [07:33:15]Method is POST - this is cgi request [07:33:15]url: /json_proto [07:33:15]query_string will be loaded in cgi processing [07:33:15]execute_cgi json_proto POST (null) [07:33:15]execute_cgi path=json_proto method=POST [07:33:15]POST find Content-Length [07:33:15]Host: 172.17.41.195:8080 [07:33:15]Content-Length: 1209 [07:33:15]Content-Type: application/json [07:33:15] [07:33:15]POST finish read [07:33:15]Found Content-Length = 1209 [07:33:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507411\u000A16.05.2024 07:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 26.780 x 74.70\u000A\u0418\u0422\u041E\u0413: 2000.47\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:33:15]execute_script... [07:33:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507411\u000A16.05.2024 07:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 26.780 x 74.70\u000A\u0418\u0422\u041E\u0413: 2000.47\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:33:15]POST & json_proto [07:33:15]process_json_proto [07:33:15]json parsed OK: [07:33:15]protocol is kg_v1.0 [07:33:15]action value=print_text [07:33:15]process_action print_text [07:33:15]cmd_print_text [07:33:15]ExternCall_PrintAddStr [07:33:15]wPrintStart [07:33:15]Write to MH i2c: 01 00 00 86 3E C4 [07:33:15]Write i2c OK [07:33:15]MH_I2C_Read... [07:33:15]Read from MH i2c: 01 [07:33:15]MH_I2C_Read... [07:33:15]Read from MH i2c: 01 07 00 [07:33:15]MH_I2C_Read... [07:33:15]Read from MH i2c: 01 07 00 86 3E 00 00 00 00 00 FF 0F D9 [07:33:15]RasterBufferAndPrint [07:33:15]line *****ТОВАРНЫЙ ЧЕК***** [07:33:15]line АЗС-91 [07:33:15]line Партнер нефть [07:33:15]line 02508201610067 [07:33:15]line Кассир : Пайзулдаева А. [07:33:15]line Счет N : (1)507411 [07:33:15]line 16.05.2024 07:15 [07:33:15]line ПРОДАЖА [07:33:15]line ТРК (МРК, ГНК): 41 [07:33:15]line Вид ГСМ : 2710194210 [07:33:15]line ДТ-К-5 [07:33:15]line 26.780 x 74.70 [07:33:15]line ИТОГ: 2000.47 [07:33:15]line Тип оплаты: Талоны: Топливная Карта [07:33:15]line 02750 [07:33:15]line ______________________ [07:33:15]line (подпись) [07:33:15]written 0, free lines is 4095 [07:33:15]Write to MH i2c: 01 00 00 9A 3E D8 [07:33:15]Write i2c OK [07:33:15]MH_I2C_Read... [07:33:15]Read from MH i2c: 01 [07:33:15]MH_I2C_Read... [07:33:15]Read from MH i2c: 01 07 00 [07:33:15]MH_I2C_Read... [07:33:15]Read from MH i2c: 01 07 00 9A 3E 00 00 00 00 00 10 0E FD [07:33:15]RasterBufferAndPrint [07:33:15]line [07:33:15]line [07:33:15]line [07:33:15]line [07:33:15]line [07:33:15]written 0, free lines is 3601 [07:33:15]MH_Cut [07:33:15]Write to MH i2c: D1 01 00 A1 3E 01 B1 [07:33:15]Write i2c OK [07:33:15]MH_I2C_Read... [07:33:15]Read from MH i2c: D1 [07:33:15]MH_I2C_Read... [07:33:15]Read from MH i2c: D1 01 00 [07:33:15]MH_I2C_Read... [07:33:15]Read from MH i2c: D1 01 00 A1 3E 00 B0 [07:33:15]Write to MH i2c: 01 00 00 A2 3E E0 [07:33:15]Write i2c OK [07:33:15]MH_I2C_Read... [07:33:16]*** Cut start [07:33:16]*** Purtial cut [07:33:16]*** Stage 1: CUTSNS_PIN = 1 [07:33:16]Read from MH i2c: 01 [07:33:16]MH_I2C_Read... [07:33:16]*** Stop cut motor [07:33:16]*** Cut end [07:33:16]Read from MH i2c: 01 07 00 [07:33:16]MH_I2C_Read... [07:33:16]Read from MH i2c: 01 07 00 A2 3E 00 00 00 00 00 FF 0F F5 [07:33:16]process_action print_text done [07:33:16]requested_data is exist [07:33:16]produce_requested_data [07:33:16]requested_item fm.sn is exist - process it [07:33:16]wFMCommunicate request_size=4 [07:33:16]MH_SAM_APDU [07:33:16]CAPDU: 80 11 00 00 [07:33:16]Write to MH i2c: E2 08 00 A3 3E 80 11 00 00 00 00 00 00 5B [07:33:16]Write i2c OK [07:33:16]MH_I2C_Read... [07:33:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:33:16]Read from MH i2c: E2 [07:33:16]MH_I2C_Read... [07:33:16]Read from MH i2c: E2 17 00 [07:33:16]MH_I2C_Read... [07:33:16]Read from MH i2c: E2 17 00 A3 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B1 [07:33:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:33:16]wFMCommunicate OK [07:33:16]requested_item fd.num is exist - process it [07:33:16]SAM_PROTO_GetFieldsCounters [07:33:16]wFMCommunicate request_size=4 [07:33:16]MH_SAM_APDU [07:33:16]CAPDU: 80 13 00 00 [07:33:16]Write to MH i2c: E2 08 00 A4 3E 80 13 00 00 00 00 00 00 5E [07:33:16]Write i2c OK [07:33:16]MH_I2C_Read... [07:33:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:33:16]Read from MH i2c: E2 [07:33:16]MH_I2C_Read... [07:33:16]Read from MH i2c: E2 62 00 [07:33:16]MH_I2C_Read... [07:33:16]Read from MH i2c: E2 62 00 A4 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 57 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [07:33: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 57 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:33:16]wFMCommunicate OK [07:33:16]SAM_PROTO_GetFieldsCounters done [07:33:16]requested_item shift.num is exist - process it [07:33:16]requested_item shift.opened is exist - process it [07:33:16]req_shift_opened [07:33:16]FM_GetShiftState [07:33:16]SAM_PROTO_GetShiftState [07:33:16]wFMCommunicate request_size=4 [07:33:16]MH_SAM_APDU [07:33:16]CAPDU: 80 13 01 00 [07:33:16]Write to MH i2c: E2 08 00 A5 3E 80 13 01 00 00 00 00 00 60 [07:33:16]Write i2c OK [07:33:16]MH_I2C_Read... [07:33:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:33:16]Read from MH i2c: E2 [07:33:16]MH_I2C_Read... [07:33:16]Read from MH i2c: E2 0E 00 [07:33:16]MH_I2C_Read... [07:33:16]Read from MH i2c: E2 0E 00 A5 3E 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 0C [07:33:16]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [07:33:16]wFMCommunicate OK [07:33:16]SAM_PROTO_GetShiftState done [07:33:16]FM_GetShiftState done [07:33:16]req_shift_opened done [07:33:16]requested_item shift.open_date is exist - process it [07:33:16]req_shift_open_date [07:33:16]req_shift_open_date done [07:33:16]produce_requested_data done [07:33:16]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67415,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [07:33:16]process_action_free print_text [07:33:16]json_value_free [07:33:16]json_value_free done [07:33:16]process_json_proto returns [07:33:16]Send response to host [07:33:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67415,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [07:33:16]free response buf [07:33:16]execute_script done [07:33:16]execute_script returns [07:33:16]free content buf [07:33:16]Sock 7.Close socket [07:33:16]Sock 7.Thread stoped [07:33:19]OFD Sender: No OFD packet to send [07:33:24]OFD Sender: No OFD packet to send [07:33:29]OFD Sender: No OFD packet to send [07:33:34]OFD Sender: No OFD packet to send [07:33:39]OFD Sender: No OFD packet to send [07:33:44]OFD Sender: No OFD packet to send [07:33:49]OFD Sender: No OFD packet to send [07:33:54]OFD Sender: No OFD packet to send [07:33:59]OFD Sender: No OFD packet to send [07:34:04]OFD Sender: No OFD packet to send [07:34:09]OFD Sender: No OFD packet to send [07:34:14]OFD Sender: No OFD packet to send [07:34:19]OFD Sender: No OFD packet to send [07:34:24]OFD Sender: No OFD packet to send [07:34:29]OFD Sender: No OFD packet to send [07:34:34]OFD Sender: No OFD packet to send [07:34:39]OFD Sender: No OFD packet to send [07:34:44]OFD Sender: No OFD packet to send [07:34:49]OFD Sender: No OFD packet to send [07:34:54]OFD Sender: No OFD packet to send [07:34:55]accept exits with 9 [07:34:55]New connection [07:34:55]New thread 3067030884 created [07:34:55]Thread 3067174244 joined [07:34:55]Waiting for new connection... [07:34:55] Sock 9.Parse request [07:34:55]Sock 9.Check first char [07:34:55]Sock 9.First char is OK [07:34:55]request: POST /json_proto HTTP/1.0 [07:34:55]Method: POST [07:34:55]URL: /json_proto [07:34:55]Method is POST - this is cgi request [07:34:55]url: /json_proto [07:34:55]query_string will be loaded in cgi processing [07:34:55]execute_cgi json_proto POST (null) [07:34:55]execute_cgi path=json_proto method=POST [07:34:55]POST find Content-Length [07:34:55]Host: 172.17.41.195:8080 [07:34:55]Content-Length: 1209 [07:34:55]Content-Type: application/json [07:34:55] [07:34:55]POST finish read [07:34:55]Found Content-Length = 1209 [07:34:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507412\u000A16.05.2024 07:17\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 33.470 x 74.70\u000A\u0418\u0422\u041E\u0413: 2500.21\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:34:55]execute_script... [07:34:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507412\u000A16.05.2024 07:17\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 33.470 x 74.70\u000A\u0418\u0422\u041E\u0413: 2500.21\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:34:55]POST & json_proto [07:34:55]process_json_proto [07:34:55]json parsed OK: [07:34:55]protocol is kg_v1.0 [07:34:55]action value=print_text [07:34:55]process_action print_text [07:34:55]cmd_print_text [07:34:55]ExternCall_PrintAddStr [07:34:55]wPrintStart [07:34:55]Write to MH i2c: 01 00 00 A6 3E E4 [07:34:55]Write i2c OK [07:34:55]MH_I2C_Read... [07:34:55]Read from MH i2c: 01 [07:34:55]MH_I2C_Read... [07:34:55]Read from MH i2c: 01 07 00 [07:34:55]MH_I2C_Read... [07:34:55]Read from MH i2c: 01 07 00 A6 3E 00 00 00 00 00 FF 0F F9 [07:34:55]RasterBufferAndPrint [07:34:55]line *****ТОВАРНЫЙ ЧЕК***** [07:34:55]line АЗС-91 [07:34:55]line Партнер нефть [07:34:55]line 02508201610067 [07:34:55]line Кассир : Пайзулдаева А. [07:34:55]line Счет N : (1)507412 [07:34:55]line 16.05.2024 07:17 [07:34:55]line ПРОДАЖА [07:34:55]line ТРК (МРК, ГНК): 11 [07:34:55]line Вид ГСМ : 2710194210 [07:34:55]line ДТ-К-5 [07:34:55]line 33.470 x 74.70 [07:34:55]line ИТОГ: 2500.21 [07:34:55]line Тип оплаты: Талоны: Топливная Карта [07:34:55]line 02750 [07:34:55]line ______________________ [07:34:55]line (подпись) [07:34:55]written 0, free lines is 4095 [07:34:55]Write to MH i2c: 01 00 00 BA 3E F8 [07:34:55]Write i2c OK [07:34:55]MH_I2C_Read... [07:34:55]Read from MH i2c: 01 [07:34:55]MH_I2C_Read... [07:34:55]Read from MH i2c: 01 07 00 [07:34:55]MH_I2C_Read... [07:34:55]Read from MH i2c: 01 07 00 BA 3E 00 00 00 00 00 0E 0E 1B [07:34:55]RasterBufferAndPrint [07:34:55]line [07:34:55]line [07:34:55]line [07:34:55]line [07:34:55]line [07:34:55]written 0, free lines is 3600 [07:34:55]MH_Cut [07:34:55]Write to MH i2c: D1 01 00 C1 3E 01 D1 [07:34:55]Write i2c OK [07:34:55]MH_I2C_Read... [07:34:55]Read from MH i2c: D1 [07:34:55]MH_I2C_Read... [07:34:55]Read from MH i2c: D1 01 00 [07:34:55]MH_I2C_Read... [07:34:55]Read from MH i2c: D1 01 00 C1 3E 00 D0 [07:34:55]Write to MH i2c: 01 00 00 C2 3E 00 [07:34:55]Write i2c OK [07:34:55]MH_I2C_Read... [07:34:56]*** Cut start [07:34:56]*** Purtial cut [07:34:56]*** CUTSNS_PIN = 0 [07:34:56]*** Stage 1: CUTSNS_PIN = 1 [07:34:58]Read from MH i2c: 01 [07:34:58]MH_I2C_Read... [07:34:58]*** Stop cut motor [07:34:58]*** Cut end [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 C2 3E 00 00 00 00 00 FF 0F 15 [07:34:58]process_action print_text done [07:34:58]requested_data is exist [07:34:58]produce_requested_data [07:34:58]requested_item fm.sn is exist - process it [07:34:58]wFMCommunicate request_size=4 [07:34:58]MH_SAM_APDU [07:34:58]CAPDU: 80 11 00 00 [07:34:58]Write to MH i2c: E2 08 00 C3 3E 80 11 00 00 00 00 00 00 7B [07:34:58]Write i2c OK [07:34:58]MH_I2C_Read... [07:34:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:34:58]Read from MH i2c: E2 [07:34:58]MH_I2C_Read... [07:34:58]Read from MH i2c: E2 17 00 [07:34:58]MH_I2C_Read... [07:34:58]Read from MH i2c: E2 17 00 C3 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D1 [07:34:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:34:58]wFMCommunicate OK [07:34:58]requested_item fd.num is exist - process it [07:34:58]SAM_PROTO_GetFieldsCounters [07:34:58]wFMCommunicate request_size=4 [07:34:58]MH_SAM_APDU [07:34:58]CAPDU: 80 13 00 00 [07:34:58]Write to MH i2c: E2 08 00 C4 3E 80 13 00 00 00 00 00 00 7E [07:34:58]Write i2c OK [07:34:58]MH_I2C_Read... [07:34:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:34:58]Read from MH i2c: E2 [07:34:58]MH_I2C_Read... [07:34:58]Read from MH i2c: E2 62 00 [07:34:58]MH_I2C_Read... [07:34:58]Read from MH i2c: E2 62 00 C4 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 57 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [07:34: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 57 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:34:58]wFMCommunicate OK [07:34:58]SAM_PROTO_GetFieldsCounters done [07:34:58]requested_item shift.num is exist - process it [07:34:58]requested_item shift.opened is exist - process it [07:34:58]req_shift_opened [07:34:58]FM_GetShiftState [07:34:58]SAM_PROTO_GetShiftState [07:34:58]wFMCommunicate request_size=4 [07:34:58]MH_SAM_APDU [07:34:58]CAPDU: 80 13 01 00 [07:34:58]Write to MH i2c: E2 08 00 C5 3E 80 13 01 00 00 00 00 00 80 [07:34:58]Write i2c OK [07:34:58]MH_I2C_Read... [07:34:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:34:58]Read from MH i2c: E2 [07:34:58]MH_I2C_Read... [07:34:58]Read from MH i2c: E2 0E 00 [07:34:58]MH_I2C_Read... [07:34:58]Read from MH i2c: E2 0E 00 C5 3E 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 2C [07:34:58]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [07:34:58]wFMCommunicate OK [07:34:58]SAM_PROTO_GetShiftState done [07:34:58]FM_GetShiftState done [07:34:58]req_shift_opened done [07:34:58]requested_item shift.open_date is exist - process it [07:34:58]req_shift_open_date [07:34:58]req_shift_open_date done [07:34:58]produce_requested_data done [07:34:58]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67415,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [07:34:58]process_action_free print_text [07:34:58]json_value_free [07:34:58]json_value_free done [07:34:58]process_json_proto returns [07:34:58]Send response to host [07:34:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67415,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [07:34:58]free response buf [07:34:58]execute_script done [07:34:58]execute_script returns [07:34:58]free content buf [07:34:58]Sock 9.Close socket [07:34:58]Sock 9.Thread stoped [07:34:59]OFD Sender: No OFD packet to send [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:27]accept exits with 10 [07:36:27]New connection [07:36:27]New thread 3067174244 created [07:36:27]Thread 3067030884 joined [07:36:27]Waiting for new connection... [07:36:27] Sock 10.Parse request [07:36:27]Sock 10.Check first char [07:36:27]Sock 10.First char is OK [07:36:27]request: POST /json_proto HTTP/1.0 [07:36:27]Method: POST [07:36:27]URL: /json_proto [07:36:27]Method is POST - this is cgi request [07:36:27]url: /json_proto [07:36:27]query_string will be loaded in cgi processing [07:36:27]execute_cgi json_proto POST (null) [07:36:27]execute_cgi path=json_proto method=POST [07:36:27]POST find Content-Length [07:36:27]Host: 172.17.41.195:8080 [07:36:27]Content-Length: 677 [07:36:27]Content-Type: application/json [07:36:27] [07:36:27]POST finish read [07:36:27]Found Content-Length = 677 [07:36:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507413", "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.80, "quantity" : 7.490, "sum" : 500.33, "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:36:27]execute_script... [07:36: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)507413", "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.80, "quantity" : 7.490, "sum" : 500.33, "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:36:27]POST & json_proto [07:36:27]process_json_proto [07:36:27]json parsed OK: [07:36:27]protocol is kg_v1.0 [07:36:27]action value=close_receipt [07:36:27]process_action close_receipt [07:36:27]cmd_close_receipt [07:36:27]MH_GetDate [07:36:27]Write to MH i2c: F0 00 00 C6 3E F3 [07:36:27]Write i2c OK [07:36:27]MH_I2C_Read... [07:36:27]Read from MH i2c: F0 [07:36:27]MH_I2C_Read... [07:36:27]Read from MH i2c: F0 09 00 [07:36:27]MH_I2C_Read... [07:36:27]Read from MH i2c: F0 09 00 C6 3E 00 80 B7 45 66 FC 21 6F 64 CE [07:36:27]GetLastDocTimeStamp 1715844150 [07:36:27]current date 1715844992 [07:36:27]FM_GetShiftState [07:36:27]SAM_PROTO_GetShiftState [07:36:27]wFMCommunicate request_size=4 [07:36:27]MH_SAM_APDU [07:36:27]CAPDU: 80 13 01 00 [07:36:27]Write to MH i2c: E2 08 00 C7 3E 80 13 01 00 00 00 00 00 82 [07:36:27]Write i2c OK [07:36:27]MH_I2C_Read... [07:36:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:36:27]Read from MH i2c: E2 [07:36:27]MH_I2C_Read... [07:36:27]Read from MH i2c: E2 0E 00 [07:36:27]MH_I2C_Read... [07:36:27]Read from MH i2c: E2 0E 00 C7 3E 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 2E [07:36:27]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [07:36:27]wFMCommunicate OK [07:36:27]SAM_PROTO_GetShiftState done [07:36:27]FM_GetShiftState done [07:36:27]opened in 1715818916 [07:36:27]opened+sec_in_day 1715905316 [07:36:27]quantity*price = 50033 [07:36:27]sum+1 = 50034 [07:36:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 14 16.05.2024 07:36 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67416 ФПД: 190195159923417 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T073632&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67416&fm=190195159923417&tin=02508201610067®Number=0000000000091845&sum=50000 [07:36:28]StoreToDocumentArchive [07:36:28]shift 357 fd 67416 [07:36:28]save to /storage/0357/doc_00067416 [07:36:28]save last doc name /storage/0357/doc_00067416 to /storage/kkm_last_doc_name [07:36:28]save OK [07:36:28]Clear old archive folders... [07:36:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:36:28]tlvbuf is 00B27C40 [07:36:28]SAM_PROTO_ClearQueue [07:36:28]wFMCommunicate request_size=4 [07:36:28]MH_SAM_APDU [07:36:28]CAPDU: 80 09 00 00 [07:36:28]Write to MH i2c: E2 08 00 D4 3E 80 09 00 00 00 00 00 00 84 [07:36:28]Write i2c OK [07:36:28]MH_I2C_Read... [07:36:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:36:28]Read from MH i2c: E2 [07:36:28]MH_I2C_Read... [07:36:28]Read from MH i2c: E2 03 00 [07:36:28]MH_I2C_Read... [07:36:28]Read from MH i2c: E2 03 00 D4 3E 00 90 00 86 [07:36:28]RAPDU: 90 00 [07:36:28]wFMCommunicate OK [07:36:28]SAM_PROTO_ClearQueue done [07:36:28]KKMCreateOFDPacket [07:36:28]OFDProtocolAddRootSTLVToBuf [07:36:28]FM_MakeSignedData [07:36:28]FM_MakeSignedData [07:36:28]SAM_PROTO_SignData [07:36:28]wFMCommunicate request_size=4 [07:36:28]MH_SAM_APDU [07:36:28]CAPDU: 80 0D 01 02 [07:36:28]Write to MH i2c: E2 08 00 D5 3E 80 0D 01 02 00 00 00 00 8C [07:36:28]Write i2c OK [07:36:28]MH_I2C_Read... [07:36:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:36:28]Read from MH i2c: E2 [07:36:28]MH_I2C_Read... [07:36:28]Read from MH i2c: E2 03 00 [07:36:28]MH_I2C_Read... [07:36:28]Read from MH i2c: E2 03 00 D5 3E 00 90 00 87 [07:36:28]RAPDU: 90 00 [07:36:28]wFMCommunicate OK [07:36:28]wFMCommunicate request_size=255 [07:36:28]MH_SAM_APDU [07:36: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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 80 B7 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 58 07 01 00 35 04 06 00 AC [07:36:28]Write to MH i2c: E2 02 01 D6 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 80 B7 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 58 07 01 00 35 04 06 00 AC 00 00 79 [07:36:29]Write i2c OK [07:36:29]MH_I2C_Read... [07:36:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:36:29]Read from MH i2c: E2 [07:36:29]MH_I2C_Read... [07:36:29]Read from MH i2c: E2 03 00 [07:36:29]MH_I2C_Read... [07:36:29]Read from MH i2c: E2 03 00 D6 3E 00 90 00 88 [07:36:29]RAPDU: 90 00 [07:36:29]wFMCommunicate OK [07:36:29]wFMCommunicate request_size=10 [07:36:29]MH_SAM_APDU [07:36:29]CAPDU: 80 0D 02 02 05 FB 42 F1 FA D9 [07:36:29]Write to MH i2c: E2 0D 00 D7 3E 80 0D 02 02 05 00 FB 42 F1 FA D9 00 00 9A [07:36:29]Write i2c OK [07:36:29]MH_I2C_Read... [07:36:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:36:29]Read from MH i2c: E2 [07:36:29]MH_I2C_Read... [07:36:29]Read from MH i2c: E2 03 00 [07:36:29]MH_I2C_Read... [07:36:29]Read from MH i2c: E2 03 00 D7 3E 00 90 00 89 [07:36:29]RAPDU: 90 00 [07:36:29]wFMCommunicate OK [07:36:29]wFMCommunicate request_size=4 [07:36:29]MH_SAM_APDU [07:36:29]CAPDU: 80 0D 03 02 [07:36:29]Write to MH i2c: E2 08 00 D8 3E 80 0D 03 02 00 00 00 00 91 [07:36:29]Write i2c OK [07:36:29]MH_I2C_Read... [07:36:29]OFD Sender: No OFD packet to send [07:36:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:36:29]Read from MH i2c: E2 [07:36:29]MH_I2C_Read... [07:36:29]Read from MH i2c: E2 0B 00 [07:36:29]MH_I2C_Read... [07:36:29]Read from MH i2c: E2 0B 00 D8 3E 00 BC EF DE 55 40 88 97 3C 90 00 0B [07:36:29]RAPDU: BC EF DE 55 40 88 97 3C 90 00 [07:36:29]wFMCommunicate OK [07:36:29]SAM_PROTO_SignData done [07:36:29]FM_MakeSignedData done [07:36:29]CreateOFDProtocolMessage [07:36:29]wFMCommunicate request_size=4 [07:36:29]MH_SAM_APDU [07:36:29]CAPDU: 80 11 00 00 [07:36:29]Write to MH i2c: E2 08 00 D9 3E 80 11 00 00 00 00 00 00 91 [07:36:29]Write i2c OK [07:36:29]MH_I2C_Read... [07:36:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:36:29]Read from MH i2c: E2 [07:36:29]MH_I2C_Read... [07:36:29]Read from MH i2c: E2 17 00 [07:36:29]MH_I2C_Read... [07:36:29]Read from MH i2c: E2 17 00 D9 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E7 [07:36:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:36:29]wFMCommunicate OK [07:36:29]CreateOFDProtocolMessage done [07:36:29]OFDSenderStorePacket 67416 [07:36:29]StoreOFDPacket docnum=67416 [07:36:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 F4 8D 07 01 32 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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 80 B7 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 58 07 01 00 35 04 06 00 AC FB 42 F1 FA D9 BC EF DE 55 40 88 97 3C [07:36:29]CheckFolder [07:36:29]dirname=/storage/ofd_packets [07:36:29]CheckFolder done [07:36:29]ProducePacketName [07:36:29]name=ofd_packets/00067416 [07:36:29]NVStorageSaveData ofd_packets/00067416 [07:36:29]File name is /storage/ofd_packets/00067416 [07:36:29]Write 301 bytes [07:36:29]NVStorageSaveData done [07:36:29]OFDSenderStorePacket done [07:36:29]KKMCreateOFDPacket done [07:36:29]NVStorageSaveData kkm_last_timestamp [07:36:29]File name is /storage/kkm_last_timestamp [07:36:29]Write 4 bytes [07:36:29]NVStorageSaveData done [07:36:29]ExternCall_PrintAddStr [07:36:29]wPrintStart [07:36:29]Write to MH i2c: 01 00 00 DA 3E 18 [07:36:29]Write i2c OK [07:36:29]MH_I2C_Read... [07:36:29]Read from MH i2c: 01 [07:36:29]MH_I2C_Read... [07:36:29]Read from MH i2c: 01 07 00 [07:36:29]MH_I2C_Read... [07:36:29]Read from MH i2c: 01 07 00 DA 3E 00 00 00 00 00 FF 0F 2D [07:36:29]RasterBufferAndPrint [07:36:29]line Счет N : (1)507413 [07:36:29]line ИНН: 02508201610067 [07:36:29]line Контрольно-Кассовый Чек [07:36:29]line ПРОДАЖА [07:36:29]line ТРК (МРК, ГНК) : 33 [07:36:29]line Товар: 2710124130 [07:36:29]line Аи-92-К-5 [07:36:29]line 7.490 * 66.80 [07:36:29]line = 500.33 [07:36:29]line НДС 12% НСП 1% [07:36:29]line > о реализуемом товаре [07:36:29]line ОКРУГЛЕНИЕ: -0.33 [07:36:29]line ИТОГО: 500.00 [07:36:29]line Внесено: 500.00 [07:36:29]line СДАЧА: 0.00 [07:36:29]line НСП 1% : 4.43 [07:36:29]line НДС 12% : 53.13 [07:36:29]line Наличными: 500.00 [07:36:29]line Безнал.: 0.00 [07:36:29]line Место: АЗС № 91 "Партнер Нефть" [07:36:29]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [07:36:29]line СНО: Общий режим [07:36:29]line Чек 14 16.05.2024 07:36 [07:36:29]line Смена: 357 ФФД: 1.0 [07:36:29]line ЗНМ: 0300000119 [07:36:29]line РНМ: 0000000000091845 [07:36:29]line Версия ККМ: 001 [07:36:29]line ФМ: 0000000000871829 [07:36:29]line ФД: 67416 [07:36:29]line ФПД: 190195159923417 [07:36:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T073632&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67416&fm=190195159923417&tin=02508201610067®Number=0000000000091845&sum=50000 [07:36:29]OFD Sender: Processing packet 67416 [packets to send 35, broken 34] [07:36:29]ProducePacketName [07:36:29]name=ofd_packets/00067416 [07:36:29]OFD Sender: To server: pG, [07:36:29]CommunicateWithHost lk.salyk.kg:30040 [07:36:29]ConnectInit lk.salyk.kg [07:36:29]written 0, free lines is 4095 [07:36:29]Connected sock=9 [07:36: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 38 32 39 0F 01 00 00 F4 8D 07 01 32 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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 80 B7 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 58 07 01 00 35 04 06 00 AC FB 42 F1 FA D9 BC EF DE 55 40 88 97 3C [07: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 38 32 39 4F 00 00 00 22 B3 47 00 E6 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 38 32 39 10 04 04 00 58 07 01 00 F4 03 04 00 5B 5F 45 66 B6 04 01 00 00 1D 09 C5 8B 87 71 4D E3 [07:36:30]CommunicateWithHost err = 0 [07:36:30]CheckOFDResponse [07:36:30]1017 (14) - 77093643461234 [07:36:30]1041 (16) - 0000000000871829 [07:36:30]1040 (4) - 67416 [07:36:30]1012 (4) - 16.05.2024 01:20 [07:36:30]1206 (1) - 0 [07:36:30]OFD Sender: Remove packet 67416 [07:36:30]ProducePacketName [07:36:30]name=ofd_packets/00067416 [07:36:30]NVStorageDeleteData [07:36:30]Write to MH i2c: 01 00 00 04 3F 43 [07:36:30]Write i2c OK [07:36:30]MH_I2C_Read... [07:36:30]Read from MH i2c: 01 [07:36:30]MH_I2C_Read... [07:36:30]Read from MH i2c: 01 07 00 [07:36:30]MH_I2C_Read... [07:36:30]Read from MH i2c: 01 07 00 04 3F 00 00 00 00 00 BF 0C 15 [07:36:30]RasterBufferAndPrint [07:36:30]line [07:36:30]line [07:36:30]line [07:36:30]line [07:36:30]line [07:36:30]written 0, free lines is 3269 [07:36:30]MH_Cut [07:36:30]Write to MH i2c: D1 01 00 0B 3F 01 1C [07:36:30]Write i2c OK [07:36:30]MH_I2C_Read... [07:36:30]Read from MH i2c: D1 [07:36:30]MH_I2C_Read... [07:36:30]Read from MH i2c: D1 01 00 [07:36:30]MH_I2C_Read... [07:36:30]Read from MH i2c: D1 01 00 0B 3F 00 1B [07:36:30]Write to MH i2c: 01 00 00 0C 3F 4B [07:36:30]Write i2c OK [07:36:30]MH_I2C_Read... [07:36:30]OFD Sender: No OFD packet to send [07:36:31]*** Cut start [07:36:31]*** Purtial cut [07:36:31]*** Stage 1: CUTSNS_PIN = 1 [07:36:31]Read from MH i2c: 01 [07:36:31]MH_I2C_Read... [07:36:31]*** Stop cut motor [07:36:31]*** Cut end [07:36:31]Read from MH i2c: 01 07 00 [07:36:31]MH_I2C_Read... [07:36:31]Read from MH i2c: 01 07 00 0C 3F 00 00 00 00 00 FF 0F 60 [07:36:31]process_action close_receipt done [07:36:31]requested_data is exist [07:36:31]produce_requested_data [07:36:31]requested_item fm.sn is exist - process it [07:36:31]wFMCommunicate request_size=4 [07:36:31]MH_SAM_APDU [07:36:31]CAPDU: 80 11 00 00 [07:36:31]Write to MH i2c: E2 08 00 0D 3F 80 11 00 00 00 00 00 00 C6 [07:36:31]Write i2c OK [07:36:31]MH_I2C_Read... [07:36:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:36:31]Read from MH i2c: E2 [07:36:31]MH_I2C_Read... [07:36:31]Read from MH i2c: E2 17 00 [07:36:31]MH_I2C_Read... [07:36:31]Read from MH i2c: E2 17 00 0D 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 1C [07:36:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:36:31]wFMCommunicate OK [07:36:31]requested_item fd.num is exist - process it [07:36:31]SAM_PROTO_GetFieldsCounters [07:36:31]wFMCommunicate request_size=4 [07:36:31]MH_SAM_APDU [07:36:31]CAPDU: 80 13 00 00 [07:36:31]Write to MH i2c: E2 08 00 0E 3F 80 13 00 00 00 00 00 00 C9 [07:36:31]Write i2c OK [07:36:31]MH_I2C_Read... [07:36:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:36:31]Read from MH i2c: E2 [07:36:31]MH_I2C_Read... [07:36:31]Read from MH i2c: E2 62 00 [07:36:31]MH_I2C_Read... [07:36:31]Read from MH i2c: E2 62 00 0E 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 58 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [07:36: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 58 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:36:31]wFMCommunicate OK [07:36:31]SAM_PROTO_GetFieldsCounters done [07:36:31]requested_item shift.num is exist - process it [07:36:31]requested_item shift.opened is exist - process it [07:36:31]req_shift_opened [07:36:31]FM_GetShiftState [07:36:31]SAM_PROTO_GetShiftState [07:36:31]wFMCommunicate request_size=4 [07:36:31]MH_SAM_APDU [07:36:31]CAPDU: 80 13 01 00 [07:36:31]Write to MH i2c: E2 08 00 0F 3F 80 13 01 00 00 00 00 00 CB [07:36:31]Write i2c OK [07:36:31]MH_I2C_Read... [07:36:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:36:31]Read from MH i2c: E2 [07:36:31]MH_I2C_Read... [07:36:31]Read from MH i2c: E2 0E 00 [07:36:31]MH_I2C_Read... [07:36:31]Read from MH i2c: E2 0E 00 0F 3F 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 77 [07:36:31]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [07:36:31]wFMCommunicate OK [07:36:31]SAM_PROTO_GetShiftState done [07:36:31]FM_GetShiftState done [07:36:31]req_shift_opened done [07:36:31]requested_item shift.open_date is exist - process it [07:36:31]req_shift_open_date [07:36:31]req_shift_open_date done [07:36:31]produce_requested_data done [07:36:31]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67416,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [07:36:31]process_action_free close_receipt [07:36:31]json_value_free [07:36:31]json_value_free done [07:36:31]process_json_proto returns [07:36:31]Send response to host [07:36:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67416,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [07:36:31]free response buf [07:36:31]execute_script done [07:36:31]execute_script returns [07:36:31]free content buf [07:36:31]Sock 10.Close socket [07:36:31]Sock 10.Thread stoped [07:36:35]OFD Sender: No OFD packet to send [07:36:40]OFD Sender: No OFD packet to send [07:36:45]OFD Sender: No OFD packet to send [07:36:50]OFD Sender: No OFD packet to send [07:36:55]OFD Sender: No OFD packet to send [07:37:00]OFD Sender: No OFD packet to send [07:37:05]OFD Sender: No OFD packet to send [07:37:10]OFD Sender: No OFD packet to send [07:37:15]OFD Sender: No OFD packet to send [07:37:20]OFD Sender: No OFD packet to send [07:37:25]OFD Sender: No OFD packet to send [07:37:30]OFD Sender: No OFD packet to send [07:37:35]OFD Sender: No OFD packet to send [07:37:40]OFD Sender: No OFD packet to send [07:37:45]OFD Sender: No OFD packet to send [07:37:50]OFD Sender: No OFD packet to send [07:37:55]OFD Sender: No OFD packet to send [07:38:00]OFD Sender: No OFD packet to send [07:38:05]OFD Sender: No OFD packet to send [07:38:10]OFD Sender: No OFD packet to send [07:38:15]OFD Sender: No OFD packet to send [07:38:20]OFD Sender: No OFD packet to send [07:38:25]OFD Sender: No OFD packet to send [07:38:30]OFD Sender: No OFD packet to send [07:38:35]OFD Sender: No OFD packet to send [07:38:40]OFD Sender: No OFD packet to send [07:38:45]OFD Sender: No OFD packet to send [07:38:50]OFD Sender: No OFD packet to send [07:38:55]OFD Sender: No OFD packet to send [07:39:00]OFD Sender: No OFD packet to send [07:39:05]OFD Sender: No OFD packet to send [07:39:10]OFD Sender: No OFD packet to send [07:39:15]OFD Sender: No OFD packet to send [07:39:20]OFD Sender: No OFD packet to send [07:39:25]OFD Sender: No OFD packet to send [07:39:30]OFD Sender: No OFD packet to send [07:39:35]OFD Sender: No OFD packet to send [07:39:40]OFD Sender: No OFD packet to send [07:39:45]OFD Sender: No OFD packet to send [07:39:50]OFD Sender: No OFD packet to send [07:39:55]OFD Sender: No OFD packet to send [07:40:00]OFD Sender: No OFD packet to send [07:40:05]OFD Sender: No OFD packet to send [07:40:10]OFD Sender: No OFD packet to send [07:40:15]OFD Sender: No OFD packet to send [07:40:20]OFD Sender: No OFD packet to send [07:40:25]OFD Sender: No OFD packet to send [07:40:30]OFD Sender: No OFD packet to send [07:40:35]OFD Sender: No OFD packet to send [07:40:40]OFD Sender: No OFD packet to send [07:40:45]OFD Sender: No OFD packet to send [07:40:50]OFD Sender: No OFD packet to send [07:40:55]OFD Sender: No OFD packet to send [07:41:00]OFD Sender: No OFD packet to send [07:41:05]OFD Sender: No OFD packet to send [07:41:10]OFD Sender: No OFD packet to send [07:41:15]OFD Sender: No OFD packet to send [07:41:20]OFD Sender: No OFD packet to send [07:41:25]OFD Sender: No OFD packet to send [07:41:30]OFD Sender: No OFD packet to send [07:41:35]OFD Sender: No OFD packet to send [07:41:40]OFD Sender: No OFD packet to send [07:41:45]OFD Sender: No OFD packet to send [07:41:50]OFD Sender: No OFD packet to send [07:41:55]OFD Sender: No OFD packet to send [07:42:00]OFD Sender: No OFD packet to send [07:42:05]OFD Sender: No OFD packet to send [07:42:10]OFD Sender: No OFD packet to send [07:42:15]OFD Sender: No OFD packet to send [07:42:20]OFD Sender: No OFD packet to send [07:42:25]OFD Sender: No OFD packet to send [07:42:30]OFD Sender: No OFD packet to send [07:42:35]OFD Sender: No OFD packet to send [07:42:40]OFD Sender: No OFD packet to send [07:42:45]OFD Sender: No OFD packet to send [07:42:50]OFD Sender: No OFD packet to send [07:42:55]OFD Sender: No OFD packet to send [07:43:00]OFD Sender: No OFD packet to send [07:43:05]OFD Sender: No OFD packet to send [07:43:10]OFD Sender: No OFD packet to send [07:43:15]OFD Sender: No OFD packet to send [07:43:20]OFD Sender: No OFD packet to send [07:43:25]OFD Sender: No OFD packet to send [07:43:30]OFD Sender: No OFD packet to send [07:43:35]OFD Sender: No OFD packet to send [07:43:40]OFD Sender: No OFD packet to send [07:43:45]OFD Sender: No OFD packet to send [07:43:50]OFD Sender: No OFD packet to send [07:43:55]OFD Sender: No OFD packet to send [07:44:00]OFD Sender: No OFD packet to send [07:44:05]OFD Sender: No OFD packet to send [07:44:10]OFD Sender: No OFD packet to send [07:44:15]OFD Sender: No OFD packet to send [07:44:20]OFD Sender: No OFD packet to send [07:44:25]OFD Sender: No OFD packet to send [07:44:30]OFD Sender: No OFD packet to send [07:44:35]OFD Sender: No OFD packet to send [07:44: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:26]OFD Sender: No OFD packet to send [07:46:31]OFD Sender: No OFD packet to send [07:46:36]OFD Sender: No OFD packet to send [07:46:41]OFD Sender: No OFD packet to send [07:46:46]OFD Sender: No OFD packet to send [07:46:51]OFD Sender: No OFD packet to send [07:46:56]OFD Sender: No OFD packet to send [07:47:01]OFD Sender: No OFD packet to send [07:47:06]OFD Sender: No OFD packet to send [07:47:11]OFD Sender: No OFD packet to send [07:47:16]OFD Sender: No OFD packet to send [07:47:21]OFD Sender: No OFD packet to send [07:47:26]OFD Sender: No OFD packet to send [07:47:31]OFD Sender: No OFD packet to send [07:47:36]OFD Sender: No OFD packet to send [07:47:41]OFD Sender: No OFD packet to send [07:47:46]OFD Sender: No OFD packet to send [07:47:51]OFD Sender: No OFD packet to send [07:47:56]OFD Sender: No OFD packet to send [07:48:01]OFD Sender: No OFD packet to send [07:48:06]OFD Sender: No OFD packet to send [07:48:11]OFD Sender: No OFD packet to send [07:48:16]OFD Sender: No OFD packet to send [07:48:21]OFD Sender: No OFD packet to send [07:48:26]OFD Sender: No OFD packet to send [07:48:31]OFD Sender: No OFD packet to send [07:48:36]OFD Sender: No OFD packet to send [07:48:41]OFD Sender: No OFD packet to send [07:48:46]OFD Sender: No OFD packet to send [07:48:51]OFD Sender: No OFD packet to send [07:48:56]OFD Sender: No OFD packet to send [07:49:01]OFD Sender: No OFD packet to send [07:49:06]OFD Sender: No OFD packet to send [07:49:11]OFD Sender: No OFD packet to send [07:49:16]OFD Sender: No OFD packet to send [07:49:21]OFD Sender: No OFD packet to send [07:49:26]OFD Sender: No OFD packet to send [07:49:31]OFD Sender: No OFD packet to send [07:49:36]OFD Sender: No OFD packet to send [07:49:41]OFD Sender: No OFD packet to send [07:49:46]OFD Sender: No OFD packet to send [07:49:51]OFD Sender: No OFD packet to send [07:49:56]OFD Sender: No OFD packet to send [07:50:01]OFD Sender: No OFD packet to send [07:50:06]OFD Sender: No OFD packet to send [07:50:11]OFD Sender: No OFD packet to send [07:50:16]OFD Sender: No OFD packet to send [07:50:21]OFD Sender: No OFD packet to send [07:50:26]OFD Sender: No OFD packet to send [07:50:31]OFD Sender: No OFD packet to send [07:50:36]OFD Sender: No OFD packet to send [07:50:41]OFD Sender: No OFD packet to send [07:50:46]OFD Sender: No OFD packet to send [07:50:51]OFD Sender: No OFD packet to send [07:50:56]OFD Sender: No OFD packet to send [07:51:01]OFD Sender: No OFD packet to send [07:51:06]OFD Sender: No OFD packet to send [07:51:11]OFD Sender: No OFD packet to send [07:51:11]accept exits with 7 [07:51:11]New connection [07:51:11]New thread 3067030884 created [07:51:11]Thread 3067174244 joined [07:51:11]Waiting for new connection... [07:51:11] Sock 7.Parse request [07:51:11]Sock 7.Check first char [07:51:11]Sock 7.First char is OK [07:51:11]request: POST /json_proto HTTP/1.0 [07:51:11]Method: POST [07:51:11]URL: /json_proto [07:51:11]Method is POST - this is cgi request [07:51:11]url: /json_proto [07:51:11]query_string will be loaded in cgi processing [07:51:11]execute_cgi json_proto POST (null) [07:51:11]execute_cgi path=json_proto method=POST [07:51:11]POST find Content-Length [07:51:11]Host: 172.17.41.195:8080 [07:51:11]Content-Length: 674 [07:51:11]Content-Type: application/json [07:51:11] [07:51:11]POST finish read [07:51:11]Found Content-Length = 674 [07:51:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507414", "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" : 74.70, "quantity" : 4.020, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:51:11]execute_script... [07:51: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)507414", "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" : 74.70, "quantity" : 4.020, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:51:11]POST & json_proto [07:51:11]process_json_proto [07:51:11]json parsed OK: [07:51:11]protocol is kg_v1.0 [07:51:11]action value=close_receipt [07:51:11]process_action close_receipt [07:51:11]cmd_close_receipt [07:51:11]MH_GetDate [07:51:11]Write to MH i2c: F0 00 00 10 3F 3E [07:51:11]Write i2c OK [07:51:11]MH_I2C_Read... [07:51:11]Read from MH i2c: F0 [07:51:11]MH_I2C_Read... [07:51:11]Read from MH i2c: F0 09 00 [07:51:11]MH_I2C_Read... [07:51:11]Read from MH i2c: F0 09 00 10 3F 00 F4 BA 45 66 FC 21 6F 64 90 [07:51:11]GetLastDocTimeStamp 1715844992 [07:51:11]current date 1715845876 [07:51:11]FM_GetShiftState [07:51:11]SAM_PROTO_GetShiftState [07:51:11]wFMCommunicate request_size=4 [07:51:11]MH_SAM_APDU [07:51:11]CAPDU: 80 13 01 00 [07:51:11]Write to MH i2c: E2 08 00 11 3F 80 13 01 00 00 00 00 00 CD [07:51:12]Write i2c OK [07:51:12]MH_I2C_Read... [07:51:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:51:12]Read from MH i2c: E2 [07:51:12]MH_I2C_Read... [07:51:12]Read from MH i2c: E2 0E 00 [07:51:12]MH_I2C_Read... [07:51:12]Read from MH i2c: E2 0E 00 11 3F 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 79 [07:51:12]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [07:51:12]wFMCommunicate OK [07:51:12]SAM_PROTO_GetShiftState done [07:51:12]FM_GetShiftState done [07:51:12]opened in 1715818916 [07:51:12]opened+sec_in_day 1715905316 [07:51:12]quantity*price = 30029 [07:51:12]sum+1 = 30030 [07:51:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 15 16.05.2024 07:51 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67417 ФПД: 167302661494039 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T075116&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67417&fm=167302661494039&tin=02508201610067®Number=0000000000091845&sum=30000 [07:51:13]StoreToDocumentArchive [07:51:13]shift 357 fd 67417 [07:51:13]save to /storage/0357/doc_00067417 [07:51:13]save last doc name /storage/0357/doc_00067417 to /storage/kkm_last_doc_name [07:51:13]save OK [07:51:13]Clear old archive folders... [07:51:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:51:13]tlvbuf is 00BF6910 [07:51:13]SAM_PROTO_ClearQueue [07:51:13]wFMCommunicate request_size=4 [07:51:13]MH_SAM_APDU [07:51:13]CAPDU: 80 09 00 00 [07:51:13]Write to MH i2c: E2 08 00 1E 3F 80 09 00 00 00 00 00 00 CF [07:51:13]Write i2c OK [07:51:13]MH_I2C_Read... [07:51:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:51:13]Read from MH i2c: E2 [07:51:13]MH_I2C_Read... [07:51:13]Read from MH i2c: E2 03 00 [07:51:13]MH_I2C_Read... [07:51:13]Read from MH i2c: E2 03 00 1E 3F 00 90 00 D1 [07:51:13]RAPDU: 90 00 [07:51:13]wFMCommunicate OK [07:51:13]SAM_PROTO_ClearQueue done [07:51:13]KKMCreateOFDPacket [07:51:13]OFDProtocolAddRootSTLVToBuf [07:51:13]FM_MakeSignedData [07:51:13]FM_MakeSignedData [07:51:13]SAM_PROTO_SignData [07:51:13]wFMCommunicate request_size=4 [07:51:13]MH_SAM_APDU [07:51:13]CAPDU: 80 0D 01 02 [07:51:13]Write to MH i2c: E2 08 00 1F 3F 80 0D 01 02 00 00 00 00 D7 [07:51:13]Write i2c OK [07:51:13]MH_I2C_Read... [07:51:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:51:13]Read from MH i2c: E2 [07:51:13]MH_I2C_Read... [07:51:13]Read from MH i2c: E2 03 00 [07:51:13]MH_I2C_Read... [07:51:13]Read from MH i2c: E2 03 00 1F 3F 00 90 00 D2 [07:51:13]RAPDU: 90 00 [07:51:13]wFMCommunicate OK [07:51:13]wFMCommunicate request_size=255 [07:51:13]MH_SAM_APDU [07:51: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 B4 0F 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 4D 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 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 F4 BA 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 59 07 01 00 35 04 06 00 98 29 2F B5 [07:51:13]Write to MH i2c: E2 02 01 20 3F 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 0F 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 4D 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 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 F4 BA 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 59 07 01 00 35 04 06 00 98 29 2F B5 00 00 B3 [07:51:13]Write i2c OK [07:51:13]MH_I2C_Read... [07:51:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:51:13]Read from MH i2c: E2 [07:51:13]MH_I2C_Read... [07:51:13]Read from MH i2c: E2 03 00 [07:51:13]MH_I2C_Read... [07:51:13]Read from MH i2c: E2 03 00 20 3F 00 90 00 D3 [07:51:13]RAPDU: 90 00 [07:51:13]wFMCommunicate OK [07:51:13]wFMCommunicate request_size=7 [07:51:13]MH_SAM_APDU [07:51:13]CAPDU: 80 0D 02 02 02 55 17 [07:51:13]Write to MH i2c: E2 0A 00 21 3F 80 0D 02 02 02 00 55 17 00 00 4A [07:51:13]Write i2c OK [07:51:13]MH_I2C_Read... [07:51:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:51:13]Read from MH i2c: E2 [07:51:13]MH_I2C_Read... [07:51:13]Read from MH i2c: E2 03 00 [07:51:13]MH_I2C_Read... [07:51:13]Read from MH i2c: E2 03 00 21 3F 00 90 00 D4 [07:51:13]RAPDU: 90 00 [07:51:13]wFMCommunicate OK [07:51:13]wFMCommunicate request_size=4 [07:51:13]MH_SAM_APDU [07:51:13]CAPDU: 80 0D 03 02 [07:51:13]Write to MH i2c: E2 08 00 22 3F 80 0D 03 02 00 00 00 00 DC [07:51:13]Write i2c OK [07:51:13]MH_I2C_Read... [07:51:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:51:13]Read from MH i2c: E2 [07:51:13]MH_I2C_Read... [07:51:13]Read from MH i2c: E2 0B 00 [07:51:13]MH_I2C_Read... [07:51:13]Read from MH i2c: E2 0B 00 22 3F 00 2B 1B FC 70 BC 7D 84 57 90 00 A3 [07:51:13]RAPDU: 2B 1B FC 70 BC 7D 84 57 90 00 [07:51:13]wFMCommunicate OK [07:51:13]SAM_PROTO_SignData done [07:51:13]FM_MakeSignedData done [07:51:13]CreateOFDProtocolMessage [07:51:13]wFMCommunicate request_size=4 [07:51:13]MH_SAM_APDU [07:51:13]CAPDU: 80 11 00 00 [07:51:13]Write to MH i2c: E2 08 00 23 3F 80 11 00 00 00 00 00 00 DC [07:51:13]Write i2c OK [07:51:13]MH_I2C_Read... [07:51:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:51:13]Read from MH i2c: E2 [07:51:13]MH_I2C_Read... [07:51:13]Read from MH i2c: E2 17 00 [07:51:13]MH_I2C_Read... [07:51:13]Read from MH i2c: E2 17 00 23 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 32 [07:51:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:51:13]wFMCommunicate OK [07:51:13]CreateOFDProtocolMessage done [07:51:13]OFDSenderStorePacket 67417 [07:51:13]StoreOFDPacket docnum=67417 [07:51:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 E5 35 04 01 96 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 B4 0F 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 4D 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 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 F4 BA 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 59 07 01 00 35 04 06 00 98 29 2F B5 55 17 2B 1B FC 70 BC 7D 84 57 [07:51:13]CheckFolder [07:51:13]dirname=/storage/ofd_packets [07:51:13]CheckFolder done [07:51:13]ProducePacketName [07:51:13]name=ofd_packets/00067417 [07:51:13]NVStorageSaveData ofd_packets/00067417 [07:51:13]File name is /storage/ofd_packets/00067417 [07:51:13]Write 298 bytes [07:51:13]NVStorageSaveData done [07:51:13]OFDSenderStorePacket done [07:51:13]KKMCreateOFDPacket done [07:51:13]NVStorageSaveData kkm_last_timestamp [07:51:13]File name is /storage/kkm_last_timestamp [07:51:13]Write 4 bytes [07:51:13]NVStorageSaveData done [07:51:13]ExternCall_PrintAddStr [07:51:13]wPrintStart [07:51:13]Write to MH i2c: 01 00 00 24 3F 63 [07:51:13]Write i2c OK [07:51:13]MH_I2C_Read... [07:51:13]Read from MH i2c: 01 [07:51:13]MH_I2C_Read... [07:51:13]Read from MH i2c: 01 07 00 [07:51:13]MH_I2C_Read... [07:51:13]Read from MH i2c: 01 07 00 24 3F 00 00 00 00 00 FF 0F 78 [07:51:13]RasterBufferAndPrint [07:51:13]line Счет N : (1)507414 [07:51:13]line ИНН: 02508201610067 [07:51:13]line Контрольно-Кассовый Чек [07:51:13]line ПРОДАЖА [07:51:13]line ТРК (МРК, ГНК) : 31 [07:51:13]line Товар: 2710194210 [07:51:13]line ДТ-К-5 [07:51:13]line 4.020 * 74.70 [07:51:13]line = 300.29 [07:51:13]line НДС 12% НСП 1% [07:51:13]line > о реализуемом товаре [07:51:13]line ОКРУГЛЕНИЕ: -0.29 [07:51:13]line ИТОГО: 300.00 [07:51:13]line Внесено: 300.00 [07:51:13]line СДАЧА: 0.00 [07:51:13]line НСП 1% : 2.66 [07:51:13]line НДС 12% : 31.89 [07:51:13]line Наличными: 300.00 [07:51:13]line Безнал.: 0.00 [07:51:13]line Место: АЗС № 91 "Партнер Нефть" [07:51:13]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [07:51:13]line СНО: Общий режим [07:51:13]line Чек 15 16.05.2024 07:51 [07:51:13]line Смена: 357 ФФД: 1.0 [07:51:13]line ЗНМ: 0300000119 [07:51:13]line РНМ: 0000000000091845 [07:51:13]line Версия ККМ: 001 [07:51:13]line ФМ: 0000000000871829 [07:51:13]line ФД: 67417 [07:51:13]line ФПД: 167302661494039 [07:51:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T075116&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67417&fm=167302661494039&tin=02508201610067®Number=0000000000091845&sum=30000 [07:51:14]OFD Sender: Processing packet 67417 [packets to send 35, broken 34] [07:51:14]ProducePacketName [07:51:14]name=ofd_packets/00067417 [07:51:14]OFD Sender: To server: pG, [07:51:14]CommunicateWithHost lk.salyk.kg:30040 [07:51:14]ConnectInit lk.salyk.kg [07:51:14]written 0, free lines is 4095 [07:51:14]Connected sock=10 [07:51: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 38 32 39 0C 01 00 00 E5 35 04 01 96 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 B4 0F 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 4D 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 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 F4 BA 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 59 07 01 00 35 04 06 00 98 29 2F B5 55 17 2B 1B FC 70 BC 7D 84 57 [07:51:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 8A A0 47 00 A8 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 38 32 39 10 04 04 00 59 07 01 00 F4 03 04 00 D0 62 45 66 B6 04 01 00 00 7C 05 A4 34 25 27 82 AB [07:51:14]CommunicateWithHost err = 0 [07:51:14]CheckOFDResponse [07:51:14]1017 (14) - 77093643461234 [07:51:14]1041 (16) - 0000000000871829 [07:51:14]1040 (4) - 67417 [07:51:14]1012 (4) - 16.05.2024 01:35 [07:51:14]1206 (1) - 0 [07:51:14]OFD Sender: Remove packet 67417 [07:51:14]ProducePacketName [07:51:14]name=ofd_packets/00067417 [07:51:14]NVStorageDeleteData [07:51:14]Write to MH i2c: 01 00 00 4E 3F 8D [07:51:14]Write i2c OK [07:51:14]MH_I2C_Read... [07:51:14]Read from MH i2c: 01 [07:51:14]MH_I2C_Read... [07:51:14]Read from MH i2c: 01 07 00 [07:51:14]MH_I2C_Read... [07:51:14]Read from MH i2c: 01 07 00 4E 3F 00 00 00 00 00 CC 0C 6C [07:51:14]RasterBufferAndPrint [07:51:14]line [07:51:14]line [07:51:14]line [07:51:14]line [07:51:14]line [07:51:14]written 0, free lines is 3284 [07:51:14]MH_Cut [07:51:14]Write to MH i2c: D1 01 00 55 3F 01 66 [07:51:14]Write i2c OK [07:51:14]MH_I2C_Read... [07:51:14]Read from MH i2c: D1 [07:51:14]MH_I2C_Read... [07:51:14]Read from MH i2c: D1 01 00 [07:51:14]MH_I2C_Read... [07:51:14]Read from MH i2c: D1 01 00 55 3F 00 65 [07:51:14]Write to MH i2c: 01 00 00 56 3F 95 [07:51:14]Write i2c OK [07:51:14]MH_I2C_Read... [07:51:14]OFD Sender: No OFD packet to send [07:51:15]*** Cut start [07:51:15]*** Purtial cut [07:51:15]*** CUTSNS_PIN = 0 [07:51:15]*** Stage 1: CUTSNS_PIN = 1 [07:51:17]Read from MH i2c: 01 [07:51:17]MH_I2C_Read... [07:51:17]*** Stop cut motor [07:51:17]*** Cut end [07:51:17]Read from MH i2c: 01 07 00 [07:51:17]MH_I2C_Read... [07:51:17]Read from MH i2c: 01 07 00 56 3F 00 00 00 00 00 FF 0F AA [07:51:17]process_action close_receipt done [07:51:17]requested_data is exist [07:51:17]produce_requested_data [07:51:17]requested_item fm.sn is exist - process it [07:51:17]wFMCommunicate request_size=4 [07:51:17]MH_SAM_APDU [07:51:17]CAPDU: 80 11 00 00 [07:51:17]Write to MH i2c: E2 08 00 57 3F 80 11 00 00 00 00 00 00 10 [07:51:17]Write i2c OK [07:51:17]MH_I2C_Read... [07:51:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:51:17]Read from MH i2c: E2 [07:51:17]MH_I2C_Read... [07:51:17]Read from MH i2c: E2 17 00 [07:51:17]MH_I2C_Read... [07:51:17]Read from MH i2c: E2 17 00 57 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 66 [07:51:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:51:17]wFMCommunicate OK [07:51:17]requested_item fd.num is exist - process it [07:51:17]SAM_PROTO_GetFieldsCounters [07:51:17]wFMCommunicate request_size=4 [07:51:17]MH_SAM_APDU [07:51:17]CAPDU: 80 13 00 00 [07:51:17]Write to MH i2c: E2 08 00 58 3F 80 13 00 00 00 00 00 00 13 [07:51:17]Write i2c OK [07:51:17]MH_I2C_Read... [07:51:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:51:17]Read from MH i2c: E2 [07:51:17]MH_I2C_Read... [07:51:17]Read from MH i2c: E2 62 00 [07:51:17]MH_I2C_Read... [07:51:17]Read from MH i2c: E2 62 00 58 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 59 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [07:51: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 59 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:51:17]wFMCommunicate OK [07:51:17]SAM_PROTO_GetFieldsCounters done [07:51:17]requested_item shift.num is exist - process it [07:51:17]requested_item shift.opened is exist - process it [07:51:17]req_shift_opened [07:51:17]FM_GetShiftState [07:51:17]SAM_PROTO_GetShiftState [07:51:17]wFMCommunicate request_size=4 [07:51:17]MH_SAM_APDU [07:51:17]CAPDU: 80 13 01 00 [07:51:17]Write to MH i2c: E2 08 00 59 3F 80 13 01 00 00 00 00 00 15 [07:51:17]Write i2c OK [07:51:17]MH_I2C_Read... [07:51:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:51:17]Read from MH i2c: E2 [07:51:17]MH_I2C_Read... [07:51:17]Read from MH i2c: E2 0E 00 [07:51:17]MH_I2C_Read... [07:51:17]Read from MH i2c: E2 0E 00 59 3F 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 C1 [07:51:17]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [07:51:17]wFMCommunicate OK [07:51:17]SAM_PROTO_GetShiftState done [07:51:17]FM_GetShiftState done [07:51:17]req_shift_opened done [07:51:17]requested_item shift.open_date is exist - process it [07:51:17]req_shift_open_date [07:51:17]req_shift_open_date done [07:51:17]produce_requested_data done [07:51:17]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67417,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [07:51:17]process_action_free close_receipt [07:51:17]json_value_free [07:51:17]json_value_free done [07:51:17]process_json_proto returns [07:51:17]Send response to host [07:51:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67417,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [07:51:17]free response buf [07:51:17]execute_script done [07:51:17]execute_script returns [07:51:17]free content buf [07:51:17]Sock 7.Close socket [07:51:17]Sock 7.Thread stoped [07:51:19]OFD Sender: No OFD packet to send [07:51:24]OFD Sender: No OFD packet to send [07:51:29]OFD Sender: No OFD packet to send [07:51:34]OFD Sender: No OFD packet to send [07:51:39]OFD Sender: No OFD packet to send [07:51:44]OFD Sender: No OFD packet to send [07:51:49]OFD Sender: No OFD packet to send [07:51:54]OFD Sender: No OFD packet to send [07:51:59]OFD Sender: No OFD packet to send [07:52:04]OFD Sender: No OFD packet to send [07:52:09]OFD Sender: No OFD packet to send [07:52:14]OFD Sender: No OFD packet to send [07:52:19]OFD Sender: No OFD packet to send [07:52:22]accept exits with 9 [07:52:22]New connection [07:52:22]New thread 3067174244 created [07:52:22]Thread 3067030884 joined [07:52:22]Waiting for new connection... [07:52:22] Sock 9.Parse request [07:52:22]Sock 9.Check first char [07:52:22]Sock 9.First char is OK [07:52:22]request: POST /json_proto HTTP/1.0 [07:52:22]Method: POST [07:52:22]URL: /json_proto [07:52:22]Method is POST - this is cgi request [07:52:22]url: /json_proto [07:52:22]query_string will be loaded in cgi processing [07:52:22]execute_cgi json_proto POST (null) [07:52:22]execute_cgi path=json_proto method=POST [07:52:22]POST find Content-Length [07:52:22]Host: 172.17.41.195:8080 [07:52:22]Content-Length: 682 [07:52:22]Content-Type: application/json [07:52:22] [07:52:22]POST finish read [07:52:22]Found Content-Length = 682 [07:52:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507415", "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.80, "quantity" : 14.980, "sum" : 1000.66, "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:52:22]execute_script... [07:52: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)507415", "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.80, "quantity" : 14.980, "sum" : 1000.66, "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:52:22]POST & json_proto [07:52:22]process_json_proto [07:52:22]json parsed OK: [07:52:22]protocol is kg_v1.0 [07:52:22]action value=close_receipt [07:52:22]process_action close_receipt [07:52:22]cmd_close_receipt [07:52:22]MH_GetDate [07:52:22]Write to MH i2c: F0 00 00 5A 3F 88 [07:52:22]Write i2c OK [07:52:22]MH_I2C_Read... [07:52:22]Read from MH i2c: F0 [07:52:22]MH_I2C_Read... [07:52:22]Read from MH i2c: F0 09 00 [07:52:22]MH_I2C_Read... [07:52:22]Read from MH i2c: F0 09 00 5A 3F 00 3B BB 45 66 FC 21 6F 64 22 [07:52:22]GetLastDocTimeStamp 1715845876 [07:52:22]current date 1715845947 [07:52:22]FM_GetShiftState [07:52:22]SAM_PROTO_GetShiftState [07:52:22]wFMCommunicate request_size=4 [07:52:22]MH_SAM_APDU [07:52:22]CAPDU: 80 13 01 00 [07:52:22]Write to MH i2c: E2 08 00 5B 3F 80 13 01 00 00 00 00 00 17 [07:52:22]Write i2c OK [07:52:22]MH_I2C_Read... [07:52:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:52:22]Read from MH i2c: E2 [07:52:22]MH_I2C_Read... [07:52:22]Read from MH i2c: E2 0E 00 [07:52:22]MH_I2C_Read... [07:52:22]Read from MH i2c: E2 0E 00 5B 3F 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 C3 [07:52:22]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [07:52:22]wFMCommunicate OK [07:52:22]SAM_PROTO_GetShiftState done [07:52:22]FM_GetShiftState done [07:52:22]opened in 1715818916 [07:52:22]opened+sec_in_day 1715905316 [07:52:22]quantity*price = 100066 [07:52:22]sum+1 = 100067 [07:52:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 16 16.05.2024 07:52 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67418 ФПД: 144840693538269 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T075227&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67418&fm=144840693538269&tin=02508201610067®Number=0000000000091845&sum=100000 [07:52:23]StoreToDocumentArchive [07:52:23]shift 357 fd 67418 [07:52:23]save to /storage/0357/doc_00067418 [07:52:23]save last doc name /storage/0357/doc_00067418 to /storage/kkm_last_doc_name [07:52:23]save OK [07:52:23]Clear old archive folders... [07:52:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:52:23]tlvbuf is 00C38DF0 [07:52:23]SAM_PROTO_ClearQueue [07:52:23]wFMCommunicate request_size=4 [07:52:23]MH_SAM_APDU [07:52:23]CAPDU: 80 09 00 00 [07:52:23]Write to MH i2c: E2 08 00 68 3F 80 09 00 00 00 00 00 00 19 [07:52:23]Write i2c OK [07:52:23]MH_I2C_Read... [07:52:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:52:23]Read from MH i2c: E2 [07:52:23]MH_I2C_Read... [07:52:23]Read from MH i2c: E2 03 00 [07:52:23]MH_I2C_Read... [07:52:23]Read from MH i2c: E2 03 00 68 3F 00 90 00 1B [07:52:23]RAPDU: 90 00 [07:52:23]wFMCommunicate OK [07:52:23]SAM_PROTO_ClearQueue done [07:52:23]KKMCreateOFDPacket [07:52:23]OFDProtocolAddRootSTLVToBuf [07:52:23]FM_MakeSignedData [07:52:23]FM_MakeSignedData [07:52:23]SAM_PROTO_SignData [07:52:23]wFMCommunicate request_size=4 [07:52:23]MH_SAM_APDU [07:52:23]CAPDU: 80 0D 01 02 [07:52:23]Write to MH i2c: E2 08 00 69 3F 80 0D 01 02 00 00 00 00 21 [07:52:23]Write i2c OK [07:52:23]MH_I2C_Read... [07:52:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:52:23]Read from MH i2c: E2 [07:52:23]MH_I2C_Read... [07:52:23]Read from MH i2c: E2 03 00 [07:52:23]MH_I2C_Read... [07:52:23]Read from MH i2c: E2 03 00 69 3F 00 90 00 1C [07:52:23]RAPDU: 90 00 [07:52:23]wFMCommunicate OK [07:52:23]wFMCommunicate request_size=255 [07:52:23]MH_SAM_APDU [07:52: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 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 3B BB 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5A 07 01 00 35 04 06 00 83 [07:52:23]Write to MH i2c: E2 02 01 6A 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 3B BB 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5A 07 01 00 35 04 06 00 83 00 00 F6 [07:52:23]Write i2c OK [07:52:23]MH_I2C_Read... [07:52:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:52:24]Read from MH i2c: E2 [07:52:24]MH_I2C_Read... [07:52:24]Read from MH i2c: E2 03 00 [07:52:24]MH_I2C_Read... [07:52:24]Read from MH i2c: E2 03 00 6A 3F 00 90 00 1D [07:52:24]RAPDU: 90 00 [07:52:24]wFMCommunicate OK [07:52:24]wFMCommunicate request_size=10 [07:52:24]MH_SAM_APDU [07:52:24]CAPDU: 80 0D 02 02 05 BB 5A 16 5D DD [07:52:24]Write to MH i2c: E2 0D 00 6B 3F 80 0D 02 02 05 00 BB 5A 16 5D DD 00 00 93 [07:52:24]Write i2c OK [07:52:24]MH_I2C_Read... [07:52:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:52:24]Read from MH i2c: E2 [07:52:24]MH_I2C_Read... [07:52:24]Read from MH i2c: E2 03 00 [07:52:24]MH_I2C_Read... [07:52:24]Read from MH i2c: E2 03 00 6B 3F 00 90 00 1E [07:52:24]RAPDU: 90 00 [07:52:24]wFMCommunicate OK [07:52:24]wFMCommunicate request_size=4 [07:52:24]MH_SAM_APDU [07:52:24]CAPDU: 80 0D 03 02 [07:52:24]Write to MH i2c: E2 08 00 6C 3F 80 0D 03 02 00 00 00 00 26 [07:52:24]Write i2c OK [07:52:24]MH_I2C_Read... [07:52:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:52:24]Read from MH i2c: E2 [07:52:24]MH_I2C_Read... [07:52:24]Read from MH i2c: E2 0B 00 [07:52:24]MH_I2C_Read... [07:52:24]Read from MH i2c: E2 0B 00 6C 3F 00 71 3B 6E BD 89 4C EE 23 90 00 E4 [07:52:24]RAPDU: 71 3B 6E BD 89 4C EE 23 90 00 [07:52:24]wFMCommunicate OK [07:52:24]SAM_PROTO_SignData done [07:52:24]FM_MakeSignedData done [07:52:24]CreateOFDProtocolMessage [07:52:24]wFMCommunicate request_size=4 [07:52:24]MH_SAM_APDU [07:52:24]CAPDU: 80 11 00 00 [07:52:24]Write to MH i2c: E2 08 00 6D 3F 80 11 00 00 00 00 00 00 26 [07:52:24]Write i2c OK [07:52:24]MH_I2C_Read... [07:52:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:52:24]Read from MH i2c: E2 [07:52:24]MH_I2C_Read... [07:52:24]Read from MH i2c: E2 17 00 [07:52:24]MH_I2C_Read... [07:52:24]Read from MH i2c: E2 17 00 6D 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7C [07:52:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:52:24]wFMCommunicate OK [07:52:24]CreateOFDProtocolMessage done [07:52:24]OFDSenderStorePacket 67418 [07:52:24]StoreOFDPacket docnum=67418 [07:52:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 70 FF 07 01 8B 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 3B BB 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5A 07 01 00 35 04 06 00 83 BB 5A 16 5D DD 71 3B 6E BD 89 4C EE 23 [07:52:24]CheckFolder [07:52:24]dirname=/storage/ofd_packets [07:52:24]CheckFolder done [07:52:24]ProducePacketName [07:52:24]name=ofd_packets/00067418 [07:52:24]NVStorageSaveData ofd_packets/00067418 [07:52:24]File name is /storage/ofd_packets/00067418 [07:52:24]Write 301 bytes [07:52:24]NVStorageSaveData done [07:52:24]OFDSenderStorePacket done [07:52:24]KKMCreateOFDPacket done [07:52:24]NVStorageSaveData kkm_last_timestamp [07:52:24]File name is /storage/kkm_last_timestamp [07:52:24]Write 4 bytes [07:52:24]NVStorageSaveData done [07:52:24]ExternCall_PrintAddStr [07:52:24]wPrintStart [07:52:24]Write to MH i2c: 01 00 00 6E 3F AD [07:52:24]Write i2c OK [07:52:24]MH_I2C_Read... [07:52:24]Read from MH i2c: 01 [07:52:24]MH_I2C_Read... [07:52:24]Read from MH i2c: 01 07 00 [07:52:24]MH_I2C_Read... [07:52:24]Read from MH i2c: 01 07 00 6E 3F 00 00 00 00 00 FF 0F C2 [07:52:24]RasterBufferAndPrint [07:52:24]line Счет N : (1)507415 [07:52:24]line ИНН: 02508201610067 [07:52:24]line Контрольно-Кассовый Чек [07:52:24]line ПРОДАЖА [07:52:24]line ТРК (МРК, ГНК) : 43 [07:52:24]line Товар: 2710124130 [07:52:24]line Аи-92-К-5 [07:52:24]line 14.980 * 66.80 [07:52:24]line = 1000.66 [07:52:24]line НДС 12% НСП 1% [07:52:24]line > о реализуемом товаре [07:52:24]line ОКРУГЛЕНИЕ: -0.66 [07:52:24]line ИТОГО: 1000.00 [07:52:24]line Внесено: 1000.00 [07:52:24]line СДАЧА: 0.00 [07:52:24]line НСП 1% : 8.85 [07:52:24]line НДС 12% : 106.26 [07:52:24]line Наличными: 1000.00 [07:52:24]line Безнал.: 0.00 [07:52:24]line Место: АЗС № 91 "Партнер Нефть" [07:52:24]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [07:52:24]line СНО: Общий режим [07:52:24]line Чек 16 16.05.2024 07:52 [07:52:24]line Смена: 357 ФФД: 1.0 [07:52:24]line ЗНМ: 0300000119 [07:52:24]line РНМ: 0000000000091845 [07:52:24]line Версия ККМ: 001 [07:52:24]line ФМ: 0000000000871829 [07:52:24]line ФД: 67418 [07:52:24]line ФПД: 144840693538269 [07:52:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T075227&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67418&fm=144840693538269&tin=02508201610067®Number=0000000000091845&sum=100000 [07:52:24]written 0, free lines is 4095 [07:52:24]OFD Sender: Processing packet 67418 [packets to send 35, broken 34] [07:52:24]ProducePacketName [07:52:24]name=ofd_packets/00067418 [07:52:24]OFD Sender: To server: pG, [07:52:24]CommunicateWithHost lk.salyk.kg:30040 [07:52:24]ConnectInit lk.salyk.kg [07:52:24]Connected sock=10 [07:52: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 38 32 39 0F 01 00 00 70 FF 07 01 8B 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 3B BB 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5A 07 01 00 35 04 06 00 83 BB 5A 16 5D DD 71 3B 6E BD 89 4C EE 23 [07:52:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 EC 59 47 00 E3 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 38 32 39 10 04 04 00 5A 07 01 00 F4 03 04 00 16 63 45 66 B6 04 01 00 00 80 2C CB CA 9F 80 96 9F [07:52:24]CommunicateWithHost err = 0 [07:52:24]CheckOFDResponse [07:52:24]1017 (14) - 77093643461234 [07:52:24]1041 (16) - 0000000000871829 [07:52:24]1040 (4) - 67418 [07:52:24]1012 (4) - 16.05.2024 01:36 [07:52:24]1206 (1) - 0 [07:52:24]OFD Sender: Remove packet 67418 [07:52:24]ProducePacketName [07:52:24]name=ofd_packets/00067418 [07:52:24]NVStorageDeleteData [07:52:25]Write to MH i2c: 01 00 00 98 3F D7 [07:52:25]Write i2c OK [07:52:25]MH_I2C_Read... [07:52:25]Read from MH i2c: 01 [07:52:25]MH_I2C_Read... [07:52:25]Read from MH i2c: 01 07 00 [07:52:25]MH_I2C_Read... [07:52:25]Read from MH i2c: 01 07 00 98 3F 00 00 00 00 00 C6 0C B0 [07:52:25]RasterBufferAndPrint [07:52:25]line [07:52:25]line [07:52:25]line [07:52:25]line [07:52:25]line [07:52:25]written 0, free lines is 3274 [07:52:25]MH_Cut [07:52:25]Write to MH i2c: D1 01 00 9F 3F 01 B0 [07:52:25]Write i2c OK [07:52:25]MH_I2C_Read... [07:52:25]Read from MH i2c: D1 [07:52:25]MH_I2C_Read... [07:52:25]Read from MH i2c: D1 01 00 [07:52:25]MH_I2C_Read... [07:52:25]Read from MH i2c: D1 01 00 9F 3F 00 AF [07:52:25]Write to MH i2c: 01 00 00 A0 3F DF [07:52:25]Write i2c OK [07:52:25]MH_I2C_Read... [07:52:25]OFD Sender: No OFD packet to send [07:52:25]*** Cut start [07:52:25]*** Purtial cut [07:52:25]*** Stage 1: CUTSNS_PIN = 1 [07:52:26]Read from MH i2c: 01 [07:52:26]MH_I2C_Read... [07:52:26]*** Stop cut motor [07:52:26]*** Cut end [07:52:26]Read from MH i2c: 01 07 00 [07:52:26]MH_I2C_Read... [07:52:26]Read from MH i2c: 01 07 00 A0 3F 00 00 00 00 00 FF 0F F4 [07:52:26]process_action close_receipt done [07:52:26]requested_data is exist [07:52:26]produce_requested_data [07:52:26]requested_item fm.sn is exist - process it [07:52:26]wFMCommunicate request_size=4 [07:52:26]MH_SAM_APDU [07:52:26]CAPDU: 80 11 00 00 [07:52:26]Write to MH i2c: E2 08 00 A1 3F 80 11 00 00 00 00 00 00 5A [07:52:26]Write i2c OK [07:52:26]MH_I2C_Read... [07:52:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:52:26]Read from MH i2c: E2 [07:52:26]MH_I2C_Read... [07:52:26]Read from MH i2c: E2 17 00 [07:52:26]MH_I2C_Read... [07:52:26]Read from MH i2c: E2 17 00 A1 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B0 [07:52:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:52:26]wFMCommunicate OK [07:52:26]requested_item fd.num is exist - process it [07:52:26]SAM_PROTO_GetFieldsCounters [07:52:26]wFMCommunicate request_size=4 [07:52:26]MH_SAM_APDU [07:52:26]CAPDU: 80 13 00 00 [07:52:26]Write to MH i2c: E2 08 00 A2 3F 80 13 00 00 00 00 00 00 5D [07:52:26]Write i2c OK [07:52:26]MH_I2C_Read... [07:52:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:52:26]Read from MH i2c: E2 [07:52:26]MH_I2C_Read... [07:52:26]Read from MH i2c: E2 62 00 [07:52:26]MH_I2C_Read... [07:52:26]Read from MH i2c: E2 62 00 A2 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 5A 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [07:52: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 5A 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:52:26]wFMCommunicate OK [07:52:26]SAM_PROTO_GetFieldsCounters done [07:52:26]requested_item shift.num is exist - process it [07:52:26]requested_item shift.opened is exist - process it [07:52:26]req_shift_opened [07:52:26]FM_GetShiftState [07:52:26]SAM_PROTO_GetShiftState [07:52:26]wFMCommunicate request_size=4 [07:52:26]MH_SAM_APDU [07:52:26]CAPDU: 80 13 01 00 [07:52:26]Write to MH i2c: E2 08 00 A3 3F 80 13 01 00 00 00 00 00 5F [07:52:26]Write i2c OK [07:52:26]MH_I2C_Read... [07:52:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:52:26]Read from MH i2c: E2 [07:52:26]MH_I2C_Read... [07:52:26]Read from MH i2c: E2 0E 00 [07:52:26]MH_I2C_Read... [07:52:26]Read from MH i2c: E2 0E 00 A3 3F 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 0B [07:52:26]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [07:52:26]wFMCommunicate OK [07:52:26]SAM_PROTO_GetShiftState done [07:52:26]FM_GetShiftState done [07:52:26]req_shift_opened done [07:52:26]requested_item shift.open_date is exist - process it [07:52:26]req_shift_open_date [07:52:26]req_shift_open_date done [07:52:26]produce_requested_data done [07:52:26]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67418,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [07:52:26]process_action_free close_receipt [07:52:26]json_value_free [07:52:26]json_value_free done [07:52:26]process_json_proto returns [07:52:26]Send response to host [07:52:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67418,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [07:52:26]free response buf [07:52:26]execute_script done [07:52:26]execute_script returns [07:52:26]free content buf [07:52:26]Sock 9.Close socket [07:52:26]Sock 9.Thread stoped [07:52:30]OFD Sender: No OFD packet to send [07:52:35]OFD Sender: No OFD packet to send [07:52:40]OFD Sender: No OFD packet to send [07:52:45]OFD Sender: No OFD packet to send [07:52:50]OFD Sender: No OFD packet to send [07:52:55]OFD Sender: No OFD packet to send [07:53:00]OFD Sender: No OFD packet to send [07:53:05]OFD Sender: No OFD packet to send [07:53:10]OFD Sender: No OFD packet to send [07:53:15]OFD Sender: No OFD packet to send [07:53:20]OFD Sender: No OFD packet to send [07:53:25]OFD Sender: No OFD packet to send [07:53:30]OFD Sender: No OFD packet to send [07:53:35]OFD Sender: No OFD packet to send [07:53:40]OFD Sender: No OFD packet to send [07:53:45]OFD Sender: No OFD packet to send [07:53:50]OFD Sender: No OFD packet to send [07:53:55]OFD Sender: No OFD packet to send [07:54:00]OFD Sender: No OFD packet to send [07:54:05]OFD Sender: No OFD packet to send [07:54:10]OFD Sender: No OFD packet to send [07:54:15]OFD Sender: No OFD packet to send [07:54:20]OFD Sender: No OFD packet to send [07:54:25]OFD Sender: No OFD packet to send [07:54:30]OFD Sender: No OFD packet to send [07:54:35]OFD Sender: No OFD packet to send [07:54:40]OFD Sender: No OFD packet to send [07:54:45]OFD Sender: No OFD packet to send [07:54:50]OFD Sender: No OFD packet to send [07:54:55]OFD Sender: No OFD packet to send [07:55:00]OFD Sender: No OFD packet to send [07:55:05]OFD Sender: No OFD packet to send [07:55:10]OFD Sender: No OFD packet to send [07:55:15]OFD Sender: No OFD packet to send [07:55:20]OFD Sender: No OFD packet to send [07:55:25]OFD Sender: No OFD packet to send [07:55:30]OFD Sender: No OFD packet to send [07:55:35]OFD Sender: No OFD packet to send [07:55:40]OFD Sender: No OFD packet to send [07:55:45]OFD Sender: No OFD packet to send [07:55:50]OFD Sender: No OFD packet to send [07:55:55]OFD Sender: No OFD packet to send [07:56:00]OFD Sender: No OFD packet to send [07:56:05]OFD Sender: No OFD packet to send [07:56:10]OFD Sender: No OFD packet to send [07:56:15]OFD Sender: No OFD packet to send [07:56:20]OFD Sender: No OFD packet to send [07:56:25]OFD Sender: No OFD packet to send [07:56:30]OFD Sender: No OFD packet to send [07:56:35]OFD Sender: No OFD packet to send [07:56:40]OFD Sender: No OFD packet to send [07:56:45]OFD Sender: No OFD packet to send [07:56:50]OFD Sender: No OFD packet to send [07:56:55]OFD Sender: No OFD packet to send [07:57:00]OFD Sender: No OFD packet to send [07:57:05]OFD Sender: No OFD packet to send [07:57:10]OFD Sender: No OFD packet to send [07:57:15]OFD Sender: No OFD packet to send [07:57:20]OFD Sender: No OFD packet to send [07:57:25]OFD Sender: No OFD packet to send [07:57:30]OFD Sender: No OFD packet to send [07:57:35]OFD Sender: No OFD packet to send [07:57:40]OFD Sender: No OFD packet to send [07:57:45]OFD Sender: No OFD packet to send [07:57:50]OFD Sender: No OFD packet to send [07:57:55]OFD Sender: No OFD packet to send [07:58:00]OFD Sender: No OFD packet to send [07:58:05]OFD Sender: No OFD packet to send [07:58:10]OFD Sender: No OFD packet to send [07:58:15]OFD Sender: No OFD packet to send [07:58:20]OFD Sender: No OFD packet to send [07:58:25]OFD Sender: No OFD packet to send [07:58:30]OFD Sender: No OFD packet to send [07:58:35]OFD Sender: No OFD packet to send [07:58:40]OFD Sender: No OFD packet to send [07:58:45]OFD Sender: No OFD packet to send [07:58:50]OFD Sender: No OFD packet to send [07:58:55]OFD Sender: No OFD packet to send [07:59:00]OFD Sender: No OFD packet to send [07:59:05]OFD Sender: No OFD packet to send [07:59:10]OFD Sender: No OFD packet to send [07:59:15]OFD Sender: No OFD packet to send [07:59:20]OFD Sender: No OFD packet to send [07:59:25]OFD Sender: No OFD packet to send [07:59:30]OFD Sender: No OFD packet to send [07:59:35]OFD Sender: No OFD packet to send [07:59:40]OFD Sender: No OFD packet to send [07:59:45]OFD Sender: No OFD packet to send [07:59:50]OFD Sender: No OFD packet to send [07:59:55]OFD Sender: No OFD packet to send [08:00:00]OFD Sender: No OFD packet to send [08:00:05]OFD Sender: No OFD packet to send [08:00:10]OFD Sender: No OFD packet to send [08:00:13]accept exits with 7 [08:00:13]New connection [08:00:13]New thread 3067030884 created [08:00:13]Thread 3067174244 joined [08:00:13]Waiting for new connection... [08:00:13] Sock 7.Parse request [08:00:13]Sock 7.Check first char [08:00:13]Sock 7.First char is OK [08:00:13]request: POST /json_proto HTTP/1.0 [08:00:13]Method: POST [08:00:13]URL: /json_proto [08:00:13]Method is POST - this is cgi request [08:00:13]url: /json_proto [08:00:13]query_string will be loaded in cgi processing [08:00:13]execute_cgi json_proto POST (null) [08:00:13]execute_cgi path=json_proto method=POST [08:00:13]POST find Content-Length [08:00:13]Host: 172.17.41.195:8080 [08:00:13]Content-Length: 1221 [08:00:13]Content-Type: application/json [08:00:13] [08:00:13]POST finish read [08:00:13]Found Content-Length = 1221 [08:00:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507416\u000A16.05.2024 07:42\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 7470.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3472478/79\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:00:13]execute_script... [08:00:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507416\u000A16.05.2024 07:42\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 7470.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3472478/79\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:00:13]POST & json_proto [08:00:13]process_json_proto [08:00:13]json parsed OK: [08:00:13]protocol is kg_v1.0 [08:00:13]action value=print_text [08:00:13]process_action print_text [08:00:13]cmd_print_text [08:00:13]ExternCall_PrintAddStr [08:00:13]wPrintStart [08:00:13]Write to MH i2c: 01 00 00 A4 3F E3 [08:00:13]Write i2c OK [08:00:13]MH_I2C_Read... [08:00:13]Read from MH i2c: 01 [08:00:13]MH_I2C_Read... [08:00:13]Read from MH i2c: 01 07 00 [08:00:13]MH_I2C_Read... [08:00:13]Read from MH i2c: 01 07 00 A4 3F 00 00 00 00 00 FF 0F F8 [08:00:13]RasterBufferAndPrint [08:00:13]line *****ТОВАРНЫЙ ЧЕК***** [08:00:13]line АЗС-91 [08:00:13]line Партнер нефть [08:00:13]line 02508201610067 [08:00:13]line Кассир : Пайзулдаева А. [08:00:13]line Счет N : (1)507416 [08:00:13]line 16.05.2024 07:42 [08:00:13]line ПРОДАЖА [08:00:13]line ТРК (МРК, ГНК): 11 [08:00:13]line Вид ГСМ : 2710194210 [08:00:13]line ДТ-К-5 [08:00:13]line 100.000 x 74.70 [08:00:13]line ИТОГ: 7470.00 [08:00:13]line Тип оплаты: Талоны: Топливные Талоны [08:00:13]line 3472478/79 [08:00:13]line ______________________ [08:00:13]line (подпись) [08:00:13]written 0, free lines is 4095 [08:00:13]Write to MH i2c: 01 00 00 B8 3F F7 [08:00:13]Write i2c OK [08:00:13]MH_I2C_Read... [08:00:13]Read from MH i2c: 01 [08:00:13]MH_I2C_Read... [08:00:13]Read from MH i2c: 01 07 00 [08:00:13]MH_I2C_Read... [08:00:13]Read from MH i2c: 01 07 00 B8 3F 00 00 00 00 00 10 0E 1C [08:00:13]RasterBufferAndPrint [08:00:13]line [08:00:13]line [08:00:13]line [08:00:13]line [08:00:13]line [08:00:13]written 0, free lines is 3602 [08:00:13]MH_Cut [08:00:13]Write to MH i2c: D1 01 00 BF 3F 01 D0 [08:00:13]Write i2c OK [08:00:13]MH_I2C_Read... [08:00:13]Read from MH i2c: D1 [08:00:13]MH_I2C_Read... [08:00:13]Read from MH i2c: D1 01 00 [08:00:13]MH_I2C_Read... [08:00:13]Read from MH i2c: D1 01 00 BF 3F 00 CF [08:00:13]Write to MH i2c: 01 00 00 C0 3F FF [08:00:13]Write i2c OK [08:00:13]MH_I2C_Read... [08:00:14]*** Cut start [08:00:14]*** Purtial cut [08:00:14]*** CUTSNS_PIN = 0 [08:00:14]*** Stage 1: CUTSNS_PIN = 1 [08:00:15]OFD Sender: No OFD packet to send [08:00:16]Read from MH i2c: 01 [08:00:16]MH_I2C_Read... [08:00:16]Read from MH i2c: 01 07 00 [08:00:16]MH_I2C_Read... [08:00:16]*** Stop cut motor [08:00:16]*** Cut end [08:00:16]Read from MH i2c: 01 07 00 C0 3F 00 00 00 00 00 FF 0F 14 [08:00:16]process_action print_text done [08:00:16]requested_data is exist [08:00:16]produce_requested_data [08:00:16]requested_item fm.sn is exist - process it [08:00:16]wFMCommunicate request_size=4 [08:00:16]MH_SAM_APDU [08:00:16]CAPDU: 80 11 00 00 [08:00:16]Write to MH i2c: E2 08 00 C1 3F 80 11 00 00 00 00 00 00 7A [08:00:16]Write i2c OK [08:00:16]MH_I2C_Read... [08:00:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:00:16]Read from MH i2c: E2 [08:00:16]MH_I2C_Read... [08:00:16]Read from MH i2c: E2 17 00 [08:00:16]MH_I2C_Read... [08:00:16]Read from MH i2c: E2 17 00 C1 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D0 [08:00:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:00:16]wFMCommunicate OK [08:00:16]requested_item fd.num is exist - process it [08:00:16]SAM_PROTO_GetFieldsCounters [08:00:16]wFMCommunicate request_size=4 [08:00:16]MH_SAM_APDU [08:00:16]CAPDU: 80 13 00 00 [08:00:16]Write to MH i2c: E2 08 00 C2 3F 80 13 00 00 00 00 00 00 7D [08:00:16]Write i2c OK [08:00:16]MH_I2C_Read... [08:00:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:00:16]Read from MH i2c: E2 [08:00:16]MH_I2C_Read... [08:00:16]Read from MH i2c: E2 62 00 [08:00:16]MH_I2C_Read... [08:00:16]Read from MH i2c: E2 62 00 C2 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 5A 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [08:00: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 5A 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:00:16]wFMCommunicate OK [08:00:16]SAM_PROTO_GetFieldsCounters done [08:00:16]requested_item shift.num is exist - process it [08:00:16]requested_item shift.opened is exist - process it [08:00:16]req_shift_opened [08:00:16]FM_GetShiftState [08:00:16]SAM_PROTO_GetShiftState [08:00:16]wFMCommunicate request_size=4 [08:00:16]MH_SAM_APDU [08:00:16]CAPDU: 80 13 01 00 [08:00:16]Write to MH i2c: E2 08 00 C3 3F 80 13 01 00 00 00 00 00 7F [08:00:16]Write i2c OK [08:00:16]MH_I2C_Read... [08:00:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:00:16]Read from MH i2c: E2 [08:00:16]MH_I2C_Read... [08:00:16]Read from MH i2c: E2 0E 00 [08:00:16]MH_I2C_Read... [08:00:16]Read from MH i2c: E2 0E 00 C3 3F 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 2B [08:00:16]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [08:00:16]wFMCommunicate OK [08:00:16]SAM_PROTO_GetShiftState done [08:00:16]FM_GetShiftState done [08:00:16]req_shift_opened done [08:00:16]requested_item shift.open_date is exist - process it [08:00:16]req_shift_open_date [08:00:16]req_shift_open_date done [08:00:16]produce_requested_data done [08:00:16]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67418,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [08:00:16]process_action_free print_text [08:00:16]json_value_free [08:00:16]json_value_free done [08:00:16]process_json_proto returns [08:00:16]Send response to host [08:00:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67418,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [08:00:16]free response buf [08:00:16]execute_script done [08:00:16]execute_script returns [08:00:16]free content buf [08:00:16]Sock 7.Close socket [08:00:16]Sock 7.Thread stoped [08:00:16]accept exits with 9 [08:00:16]New connection [08:00:16]New thread 3067174244 created [08:00:16]Thread 3067030884 joined [08:00:16]Waiting for new connection... [08:00:16] Sock 9.Parse request [08:00:16]Sock 9.Check first char [08:00:16]Sock 9.First char is OK [08:00:16]request: POST /json_proto HTTP/1.0 [08:00:16]Method: POST [08:00:16]URL: /json_proto [08:00:16]Method is POST - this is cgi request [08:00:16]url: /json_proto [08:00:16]query_string will be loaded in cgi processing [08:00:16]execute_cgi json_proto POST (null) [08:00:16]execute_cgi path=json_proto method=POST [08:00:16]POST find Content-Length [08:00:16]Host: 172.17.41.195:8080 [08:00:16]Content-Length: 1221 [08:00:16]Content-Type: application/json [08:00:16] [08:00:16]POST finish read [08:00:16]Found Content-Length = 1221 [08:00:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507417\u000A16.05.2024 07:42\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 7470.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3472480/81\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:00:16]execute_script... [08:00:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507417\u000A16.05.2024 07:42\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 7470.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3472480/81\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:00:16]POST & json_proto [08:00:16]process_json_proto [08:00:16]json parsed OK: [08:00:16]protocol is kg_v1.0 [08:00:16]action value=print_text [08:00:16]process_action print_text [08:00:16]cmd_print_text [08:00:16]ExternCall_PrintAddStr [08:00:16]wPrintStart [08:00:16]Write to MH i2c: 01 00 00 C4 3F 03 [08:00:16]Write i2c OK [08:00:16]MH_I2C_Read... [08:00:16]Read from MH i2c: 01 [08:00:16]MH_I2C_Read... [08:00:16]Read from MH i2c: 01 07 00 [08:00:16]MH_I2C_Read... [08:00:16]Read from MH i2c: 01 07 00 C4 3F 00 00 00 00 00 FF 0F 18 [08:00:16]RasterBufferAndPrint [08:00:16]line *****ТОВАРНЫЙ ЧЕК***** [08:00:16]line АЗС-91 [08:00:16]line Партнер нефть [08:00:16]line 02508201610067 [08:00:16]line Кассир : Пайзулдаева А. [08:00:16]line Счет N : (1)507417 [08:00:16]line 16.05.2024 07:42 [08:00:16]line ПРОДАЖА [08:00:16]line ТРК (МРК, ГНК): 21 [08:00:16]line Вид ГСМ : 2710194210 [08:00:16]line ДТ-К-5 [08:00:16]line 100.000 x 74.70 [08:00:16]line ИТОГ: 7470.00 [08:00:16]line Тип оплаты: Талоны: Топливные Талоны [08:00:16]line 3472480/81 [08:00:16]line ______________________ [08:00:16]line (подпись) [08:00:16]written 0, free lines is 4095 [08:00:17]Write to MH i2c: 01 00 00 D8 3F 17 [08:00:17]Write i2c OK [08:00:17]MH_I2C_Read... [08:00:17]Read from MH i2c: 01 [08:00:17]MH_I2C_Read... [08:00:17]Read from MH i2c: 01 07 00 [08:00:17]MH_I2C_Read... [08:00:17]Read from MH i2c: 01 07 00 D8 3F 00 00 00 00 00 10 0E 3C [08:00:17]RasterBufferAndPrint [08:00:17]line [08:00:17]line [08:00:17]line [08:00:17]line [08:00:17]line [08:00:17]written 0, free lines is 3602 [08:00:17]MH_Cut [08:00:17]Write to MH i2c: D1 01 00 DF 3F 01 F0 [08:00:17]Write i2c OK [08:00:17]MH_I2C_Read... [08:00:17]Read from MH i2c: D1 [08:00:17]MH_I2C_Read... [08:00:17]Read from MH i2c: D1 01 00 [08:00:17]MH_I2C_Read... [08:00:17]Read from MH i2c: D1 01 00 DF 3F 00 EF [08:00:17]Write to MH i2c: 01 00 00 E0 3F 1F [08:00:17]Write i2c OK [08:00:17]MH_I2C_Read... [08:00:17]*** Cut start [08:00:17]*** Purtial cut [08:00:17]*** Stage 1: CUTSNS_PIN = 1 [08:00:17]Read from MH i2c: 01 [08:00:17]MH_I2C_Read... [08:00:17]*** Stop cut motor [08:00:17]*** Cut end [08:00:17]Read from MH i2c: 01 07 00 [08:00:17]MH_I2C_Read... [08:00:17]Read from MH i2c: 01 07 00 E0 3F 00 00 00 00 00 FF 0F 34 [08:00:17]process_action print_text done [08:00:17]requested_data is exist [08:00:17]produce_requested_data [08:00:17]requested_item fm.sn is exist - process it [08:00:17]wFMCommunicate request_size=4 [08:00:17]MH_SAM_APDU [08:00:17]CAPDU: 80 11 00 00 [08:00:17]Write to MH i2c: E2 08 00 E1 3F 80 11 00 00 00 00 00 00 9A [08:00:17]Write i2c OK [08:00:17]MH_I2C_Read... [08:00:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:00:18]Read from MH i2c: E2 [08:00:18]MH_I2C_Read... [08:00:18]Read from MH i2c: E2 17 00 [08:00:18]MH_I2C_Read... [08:00:18]Read from MH i2c: E2 17 00 E1 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F0 [08:00:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:00:18]wFMCommunicate OK [08:00:18]requested_item fd.num is exist - process it [08:00:18]SAM_PROTO_GetFieldsCounters [08:00:18]wFMCommunicate request_size=4 [08:00:18]MH_SAM_APDU [08:00:18]CAPDU: 80 13 00 00 [08:00:18]Write to MH i2c: E2 08 00 E2 3F 80 13 00 00 00 00 00 00 9D [08:00:18]Write i2c OK [08:00:18]MH_I2C_Read... [08:00:18]Read from MH i2c: E2 [08:00:18]MH_I2C_Read... [08:00:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:00:18]Read from MH i2c: E2 62 00 [08:00:18]MH_I2C_Read... [08:00:18]Read from MH i2c: E2 62 00 E2 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 5A 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [08:00: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 5A 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:00:18]wFMCommunicate OK [08:00:18]SAM_PROTO_GetFieldsCounters done [08:00:18]requested_item shift.num is exist - process it [08:00:18]requested_item shift.opened is exist - process it [08:00:18]req_shift_opened [08:00:18]FM_GetShiftState [08:00:18]SAM_PROTO_GetShiftState [08:00:18]wFMCommunicate request_size=4 [08:00:18]MH_SAM_APDU [08:00:18]CAPDU: 80 13 01 00 [08:00:18]Write to MH i2c: E2 08 00 E3 3F 80 13 01 00 00 00 00 00 9F [08:00:18]Write i2c OK [08:00:18]MH_I2C_Read... [08:00:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:00:18]Read from MH i2c: E2 [08:00:18]MH_I2C_Read... [08:00:18]Read from MH i2c: E2 0E 00 [08:00:18]MH_I2C_Read... [08:00:18]Read from MH i2c: E2 0E 00 E3 3F 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 4B [08:00:18]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [08:00:18]wFMCommunicate OK [08:00:18]SAM_PROTO_GetShiftState done [08:00:18]FM_GetShiftState done [08:00:18]req_shift_opened done [08:00:18]requested_item shift.open_date is exist - process it [08:00:18]req_shift_open_date [08:00:18]req_shift_open_date done [08:00:18]produce_requested_data done [08:00:18]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67418,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [08:00:18]process_action_free print_text [08:00:18]json_value_free [08:00:18]json_value_free done [08:00:18]process_json_proto returns [08:00:18]Send response to host [08:00:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67418,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [08:00:18]free response buf [08:00:18]execute_script done [08:00:18]execute_script returns [08:00:18]free content buf [08:00:18]Sock 9.Close socket [08:00:18]Sock 9.Thread stoped [08:00:20]OFD Sender: No OFD packet to send [08:00:25]OFD Sender: No OFD packet to send [08:00:30]OFD Sender: No OFD packet to send [08:00:35]OFD Sender: No OFD packet to send [08:00:40]OFD Sender: No OFD packet to send [08:00:45]OFD Sender: No OFD packet to send [08:00:50]OFD Sender: No OFD packet to send [08:00:55]OFD Sender: No OFD packet to send [08:01:00]OFD Sender: No OFD packet to send [08:01:05]OFD Sender: No OFD packet to send [08:01:10]OFD Sender: No OFD packet to send [08:01:15]OFD Sender: No OFD packet to send [08:01:20]OFD Sender: No OFD packet to send [08:01:25]OFD Sender: No OFD packet to send [08:01:30]OFD Sender: No OFD packet to send [08:01:35]OFD Sender: No OFD packet to send [08:01:40]OFD Sender: No OFD packet to send [08:01:45]OFD Sender: No OFD packet to send [08:01:50]OFD Sender: No OFD packet to send [08:01:55]OFD Sender: No OFD packet to send [08:02:00]OFD Sender: No OFD packet to send [08:02:05]OFD Sender: No OFD packet to send [08:02:10]OFD Sender: No OFD packet to send [08:02:15]OFD Sender: No OFD packet to send [08:02:20]OFD Sender: No OFD packet to send [08:02:25]OFD Sender: No OFD packet to send [08:02:30]OFD Sender: No OFD packet to send [08:02:35]OFD Sender: No OFD packet to send [08:02:40]OFD Sender: No OFD packet to send [08:02:45]OFD Sender: No OFD packet to send [08:02:50]OFD Sender: No OFD packet to send [08:02:55]OFD Sender: No OFD packet to send [08:03:00]OFD Sender: No OFD packet to send [08:03:05]OFD Sender: No OFD packet to send [08:03:10]OFD Sender: No OFD packet to send [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:36]OFD Sender: No OFD packet to send [08:03:41]OFD Sender: No OFD packet to send [08:03:46]OFD Sender: No OFD packet to send [08:03:51]OFD Sender: No OFD packet to send [08:03:56]OFD Sender: No OFD packet to send [08:04:01]OFD Sender: No OFD packet to send [08:04:06]OFD Sender: No OFD packet to send [08:04:11]OFD Sender: No OFD packet to send [08:04:16]OFD Sender: No OFD packet to send [08:04:21]OFD Sender: No OFD packet to send [08:04:26]OFD Sender: No OFD packet to send [08:04:27]accept exits with 7 [08:04:27]New connection [08:04:27]New thread 3067030884 created [08:04:27]Thread 3067174244 joined [08:04:27]Waiting for new connection... [08:04:27] Sock 7.Parse request [08:04:27]Sock 7.Check first char [08:04:27]Sock 7.First char is OK [08:04:27]request: POST /json_proto HTTP/1.0 [08:04:27]Method: POST [08:04:27]URL: /json_proto [08:04:27]Method is POST - this is cgi request [08:04:27]url: /json_proto [08:04:27]query_string will be loaded in cgi processing [08:04:27]execute_cgi json_proto POST (null) [08:04:27]execute_cgi path=json_proto method=POST [08:04:27]POST find Content-Length [08:04:27]Host: 172.17.41.195:8080 [08:04:27]Content-Length: 1209 [08:04:27]Content-Type: application/json [08:04:27] [08:04:27]POST finish read [08:04:27]Found Content-Length = 1209 [08:04:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507419\u000A16.05.2024 07:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 40.170 x 74.70\u000A\u0418\u0422\u041E\u0413: 3000.70\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:04:27]execute_script... [08:04:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507419\u000A16.05.2024 07:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 40.170 x 74.70\u000A\u0418\u0422\u041E\u0413: 3000.70\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:04:27]POST & json_proto [08:04:27]process_json_proto [08:04:27]json parsed OK: [08:04:27]protocol is kg_v1.0 [08:04:27]action value=print_text [08:04:27]process_action print_text [08:04:27]cmd_print_text [08:04:27]ExternCall_PrintAddStr [08:04:27]wPrintStart [08:04:27]Write to MH i2c: 01 00 00 E4 3F 23 [08:04:27]Write i2c OK [08:04:27]MH_I2C_Read... [08:04:27]Read from MH i2c: 01 [08:04:27]MH_I2C_Read... [08:04:27]Read from MH i2c: 01 07 00 [08:04:27]MH_I2C_Read... [08:04:27]Read from MH i2c: 01 07 00 E4 3F 00 00 00 00 00 FF 0F 38 [08:04:27]RasterBufferAndPrint [08:04:27]line *****ТОВАРНЫЙ ЧЕК***** [08:04:27]line АЗС-91 [08:04:27]line Партнер нефть [08:04:27]line 02508201610067 [08:04:27]line Кассир : Пайзулдаева А. [08:04:27]line Счет N : (1)507419 [08:04:27]line 16.05.2024 07:47 [08:04:27]line ПРОДАЖА [08:04:27]line ТРК (МРК, ГНК): 41 [08:04:27]line Вид ГСМ : 2710194210 [08:04:27]line ДТ-К-5 [08:04:27]line 40.170 x 74.70 [08:04:27]line ИТОГ: 3000.70 [08:04:27]line Тип оплаты: Талоны: Топливная Карта [08:04:27]line 02750 [08:04:27]line ______________________ [08:04:27]line (подпись) [08:04:27]written 0, free lines is 4095 [08:04:27]Write to MH i2c: 01 00 00 F8 3F 37 [08:04:27]Write i2c OK [08:04:27]MH_I2C_Read... [08:04:27]Read from MH i2c: 01 [08:04:27]MH_I2C_Read... [08:04:27]Read from MH i2c: 01 07 00 [08:04:27]MH_I2C_Read... [08:04:27]Read from MH i2c: 01 07 00 F8 3F 00 00 00 00 00 0E 0E 5A [08:04:27]RasterBufferAndPrint [08:04:27]line [08:04:27]line [08:04:27]line [08:04:27]line [08:04:27]line [08:04:27]written 0, free lines is 3600 [08:04:27]MH_Cut [08:04:27]Write to MH i2c: D1 01 00 FF 3F 01 10 [08:04:27]Write i2c OK [08:04:27]MH_I2C_Read... [08:04:27]Read from MH i2c: D1 [08:04:27]MH_I2C_Read... [08:04:27]Read from MH i2c: D1 01 00 [08:04:27]MH_I2C_Read... [08:04:27]Read from MH i2c: D1 01 00 FF 3F 00 0F [08:04:27]Write to MH i2c: 01 00 00 00 40 40 [08:04:27]Write i2c OK [08:04:27]MH_I2C_Read... [08:04:27]*** Cut start [08:04:27]*** Purtial cut [08:04:27]*** CUTSNS_PIN = 0 [08:04:28]*** Stage 1: CUTSNS_PIN = 1 [08:04:29]Read from MH i2c: 01 [08:04:29]MH_I2C_Read... [08:04:29]*** Stop cut motor [08:04:29]*** Cut end [08:04:29]Read from MH i2c: 01 07 00 [08:04:29]MH_I2C_Read... [08:04:29]Read from MH i2c: 01 07 00 00 40 00 00 00 00 00 FF 0F 55 [08:04:29]process_action print_text done [08:04:29]requested_data is exist [08:04:29]produce_requested_data [08:04:29]requested_item fm.sn is exist - process it [08:04:29]wFMCommunicate request_size=4 [08:04:29]MH_SAM_APDU [08:04:29]CAPDU: 80 11 00 00 [08:04:29]Write to MH i2c: E2 08 00 01 40 80 11 00 00 00 00 00 00 BB [08:04:29]Write i2c OK [08:04:29]MH_I2C_Read... [08:04:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:04:29]Read from MH i2c: E2 [08:04:29]MH_I2C_Read... [08:04:29]Read from MH i2c: E2 17 00 [08:04:29]MH_I2C_Read... [08:04:29]Read from MH i2c: E2 17 00 01 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 11 [08:04:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:04:29]wFMCommunicate OK [08:04:29]requested_item fd.num is exist - process it [08:04:29]SAM_PROTO_GetFieldsCounters [08:04:29]wFMCommunicate request_size=4 [08:04:29]MH_SAM_APDU [08:04:29]CAPDU: 80 13 00 00 [08:04:29]Write to MH i2c: E2 08 00 02 40 80 13 00 00 00 00 00 00 BE [08:04:29]Write i2c OK [08:04:29]MH_I2C_Read... [08:04:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:04:30]Read from MH i2c: E2 [08:04:30]MH_I2C_Read... [08:04:30]Read from MH i2c: E2 62 00 [08:04:30]MH_I2C_Read... [08:04:30]Read from MH i2c: E2 62 00 02 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 5A 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [08:04: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 5A 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:04:30]wFMCommunicate OK [08:04:30]SAM_PROTO_GetFieldsCounters done [08:04:30]requested_item shift.num is exist - process it [08:04:30]requested_item shift.opened is exist - process it [08:04:30]req_shift_opened [08:04:30]FM_GetShiftState [08:04:30]SAM_PROTO_GetShiftState [08:04:30]wFMCommunicate request_size=4 [08:04:30]MH_SAM_APDU [08:04:30]CAPDU: 80 13 01 00 [08:04:30]Write to MH i2c: E2 08 00 03 40 80 13 01 00 00 00 00 00 C0 [08:04:30]Write i2c OK [08:04:30]MH_I2C_Read... [08:04:30]Read from MH i2c: E2 [08:04:30]MH_I2C_Read... [08:04:30]Read from MH i2c: E2 0E 00 [08:04:30]MH_I2C_Read... [08:04:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:04:30]Read from MH i2c: E2 0E 00 03 40 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 6C [08:04:30]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [08:04:30]wFMCommunicate OK [08:04:30]SAM_PROTO_GetShiftState done [08:04:30]FM_GetShiftState done [08:04:30]req_shift_opened done [08:04:30]requested_item shift.open_date is exist - process it [08:04:30]req_shift_open_date [08:04:30]req_shift_open_date done [08:04:30]produce_requested_data done [08:04:30]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67418,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [08:04:30]process_action_free print_text [08:04:30]json_value_free [08:04:30]json_value_free done [08:04:30]process_json_proto returns [08:04:30]Send response to host [08:04:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67418,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [08:04:30]free response buf [08:04:30]execute_script done [08:04:30]execute_script returns [08:04:30]free content buf [08:04:30]Sock 7.Close socket [08:04:30]Sock 7.Thread stoped [08:04:31]OFD Sender: No OFD packet to send [08:04:36]OFD Sender: No OFD packet to send [08:04:41]OFD Sender: No OFD packet to send [08:04:46]OFD Sender: No OFD packet to send [08:04:51]OFD Sender: No OFD packet to send [08:04:56]OFD Sender: No OFD packet to send [08:05:01]OFD Sender: No OFD packet to send [08:05:06]OFD Sender: No OFD packet to send [08:05:11]OFD Sender: No OFD packet to send [08:05:16]OFD Sender: No OFD packet to send [08:05:21]OFD Sender: No OFD packet to send [08:05:26]OFD Sender: No OFD packet to send [08:05:31]OFD Sender: No OFD packet to send [08:05:36]OFD Sender: No OFD packet to send [08:05:41]OFD Sender: No OFD packet to send [08:05:46]OFD Sender: No OFD packet to send [08:05:51]OFD Sender: No OFD packet to send [08:05:56]OFD Sender: No OFD packet to send [08:06:01]OFD Sender: No OFD packet to send [08:06:06]OFD Sender: No OFD packet to send [08:06:11]OFD Sender: No OFD packet to send [08:06:15]accept exits with 9 [08:06:15]New connection [08:06:15]New thread 3067174244 created [08:06:15]Thread 3067030884 joined [08:06:15]Waiting for new connection... [08:06:15] Sock 9.Parse request [08:06:15]Sock 9.Check first char [08:06:15]Sock 9.First char is OK [08:06:15]request: POST /json_proto HTTP/1.0 [08:06:15]Method: POST [08:06:15]URL: /json_proto [08:06:15]Method is POST - this is cgi request [08:06:15]url: /json_proto [08:06:15]query_string will be loaded in cgi processing [08:06:15]execute_cgi json_proto POST (null) [08:06:15]execute_cgi path=json_proto method=POST [08:06:15]POST find Content-Length [08:06:15]Host: 172.17.41.195:8080 [08:06:15]Content-Length: 1221 [08:06:15]Content-Type: application/json [08:06:15] [08:06:15]POST finish read [08:06:15]Found Content-Length = 1221 [08:06:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507418\u000A16.05.2024 07:48\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 7470.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3472482/83\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:06:15]execute_script... [08:06:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507418\u000A16.05.2024 07:48\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 7470.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3472482/83\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:06:15]POST & json_proto [08:06:15]process_json_proto [08:06:15]json parsed OK: [08:06:15]protocol is kg_v1.0 [08:06:15]action value=print_text [08:06:15]process_action print_text [08:06:15]cmd_print_text [08:06:15]ExternCall_PrintAddStr [08:06:15]wPrintStart [08:06:15]Write to MH i2c: 01 00 00 04 40 44 [08:06:15]Write i2c OK [08:06:15]MH_I2C_Read... [08:06:15]Read from MH i2c: 01 [08:06:15]MH_I2C_Read... [08:06:15]Read from MH i2c: 01 07 00 [08:06:15]MH_I2C_Read... [08:06:15]Read from MH i2c: 01 07 00 04 40 00 00 00 00 00 FF 0F 59 [08:06:15]RasterBufferAndPrint [08:06:15]line *****ТОВАРНЫЙ ЧЕК***** [08:06:15]line АЗС-91 [08:06:15]line Партнер нефть [08:06:15]line 02508201610067 [08:06:15]line Кассир : Пайзулдаева А. [08:06:15]line Счет N : (1)507418 [08:06:15]line 16.05.2024 07:48 [08:06:15]line ПРОДАЖА [08:06:15]line ТРК (МРК, ГНК): 11 [08:06:15]line Вид ГСМ : 2710194210 [08:06:15]line ДТ-К-5 [08:06:15]line 100.000 x 74.70 [08:06:15]line ИТОГ: 7470.00 [08:06:15]line Тип оплаты: Талоны: Топливные Талоны [08:06:15]line 3472482/83 [08:06:15]line ______________________ [08:06:15]line (подпись) [08:06:15]written 0, free lines is 4095 [08:06:16]Write to MH i2c: 01 00 00 18 40 58 [08:06:16]Write i2c OK [08:06:16]MH_I2C_Read... [08:06:16]Read from MH i2c: 01 [08:06:16]MH_I2C_Read... [08:06:16]Read from MH i2c: 01 07 00 [08:06:16]MH_I2C_Read... [08:06:16]Read from MH i2c: 01 07 00 18 40 00 00 00 00 00 11 0E 7E [08:06:16]RasterBufferAndPrint [08:06:16]line [08:06:16]line [08:06:16]line [08:06:16]line [08:06:16]line [08:06:16]written 0, free lines is 3603 [08:06:16]MH_Cut [08:06:16]Write to MH i2c: D1 01 00 1F 40 01 31 [08:06:16]Write i2c OK [08:06:16]MH_I2C_Read... [08:06:16]Read from MH i2c: D1 [08:06:16]MH_I2C_Read... [08:06:16]Read from MH i2c: D1 01 00 [08:06:16]MH_I2C_Read... [08:06:16]Read from MH i2c: D1 01 00 1F 40 00 30 [08:06:16]Write to MH i2c: 01 00 00 20 40 60 [08:06:16]Write i2c OK [08:06:16]MH_I2C_Read... [08:06:16]OFD Sender: No OFD packet to send [08:06:16]*** Cut start [08:06:16]*** Purtial cut [08:06:16]*** Stage 1: CUTSNS_PIN = 1 [08:06:16]Read from MH i2c: 01 [08:06:16]MH_I2C_Read... [08:06:16]Read from MH i2c: 01 07 00 [08:06:16]MH_I2C_Read... [08:06:16]*** Stop cut motor [08:06:16]*** Cut end [08:06:16]Read from MH i2c: 01 07 00 20 40 00 00 00 00 00 FF 0F 75 [08:06:16]process_action print_text done [08:06:16]requested_data is exist [08:06:16]produce_requested_data [08:06:16]requested_item fm.sn is exist - process it [08:06:16]wFMCommunicate request_size=4 [08:06:16]MH_SAM_APDU [08:06:16]CAPDU: 80 11 00 00 [08:06:16]Write to MH i2c: E2 08 00 21 40 80 11 00 00 00 00 00 00 DB [08:06:16]Write i2c OK [08:06:16]MH_I2C_Read... [08:06:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:16]Read from MH i2c: E2 [08:06:16]MH_I2C_Read... [08:06:16]Read from MH i2c: E2 17 00 [08:06:16]MH_I2C_Read... [08:06:16]Read from MH i2c: E2 17 00 21 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 31 [08:06:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:06:16]wFMCommunicate OK [08:06:16]requested_item fd.num is exist - process it [08:06:16]SAM_PROTO_GetFieldsCounters [08:06:16]wFMCommunicate request_size=4 [08:06:16]MH_SAM_APDU [08:06:16]CAPDU: 80 13 00 00 [08:06:16]Write to MH i2c: E2 08 00 22 40 80 13 00 00 00 00 00 00 DE [08:06:16]Write i2c OK [08:06:16]MH_I2C_Read... [08:06:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:06:17]Read from MH i2c: E2 [08:06:17]MH_I2C_Read... [08:06:17]Read from MH i2c: E2 62 00 [08:06:17]MH_I2C_Read... [08:06:17]Read from MH i2c: E2 62 00 22 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 5A 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [08:06:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 5A 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:06:17]wFMCommunicate OK [08:06:17]SAM_PROTO_GetFieldsCounters done [08:06:17]requested_item shift.num is exist - process it [08:06:17]requested_item shift.opened is exist - process it [08:06:17]req_shift_opened [08:06:17]FM_GetShiftState [08:06:17]SAM_PROTO_GetShiftState [08:06:17]wFMCommunicate request_size=4 [08:06:17]MH_SAM_APDU [08:06:17]CAPDU: 80 13 01 00 [08:06:17]Write to MH i2c: E2 08 00 23 40 80 13 01 00 00 00 00 00 E0 [08:06:17]Write i2c OK [08:06:17]MH_I2C_Read... [08:06:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:17]Read from MH i2c: E2 [08:06:17]MH_I2C_Read... [08:06:17]Read from MH i2c: E2 0E 00 [08:06:17]MH_I2C_Read... [08:06:17]Read from MH i2c: E2 0E 00 23 40 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 8C [08:06:17]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [08:06:17]wFMCommunicate OK [08:06:17]SAM_PROTO_GetShiftState done [08:06:17]FM_GetShiftState done [08:06:17]req_shift_opened done [08:06:17]requested_item shift.open_date is exist - process it [08:06:17]req_shift_open_date [08:06:17]req_shift_open_date done [08:06:17]produce_requested_data done [08:06:17]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67418,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [08:06:17]process_action_free print_text [08:06:17]json_value_free [08:06:17]json_value_free done [08:06:17]process_json_proto returns [08:06:17]Send response to host [08:06:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67418,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [08:06:17]free response buf [08:06:17]execute_script done [08:06:17]execute_script returns [08:06:17]free content buf [08:06:17]Sock 9.Close socket [08:06:17]Sock 9.Thread stoped [08:06:21]OFD Sender: No OFD packet to send [08:06:26]OFD Sender: No OFD packet to send [08:06:31]OFD Sender: No OFD packet to send [08:06:36]OFD Sender: No OFD packet to send [08:06:41]OFD Sender: No OFD packet to send [08:06:46]OFD Sender: No OFD packet to send [08:06:51]OFD Sender: No OFD packet to send [08:06:56]OFD Sender: No OFD packet to send [08:07:01]OFD Sender: No OFD packet to send [08:07:06]OFD Sender: No OFD packet to send [08:07:11]OFD Sender: No OFD packet to send [08:07:16]OFD Sender: No OFD packet to send [08:07:21]OFD Sender: No OFD packet to send [08:07:26]OFD Sender: No OFD packet to send [08:07:31]OFD Sender: No OFD packet to send [08:07:36]OFD Sender: No OFD packet to send [08:07:41]OFD Sender: No OFD packet to send [08:07:46]OFD Sender: No OFD packet to send [08:07:51]OFD Sender: No OFD packet to send [08:07:56]OFD Sender: No OFD packet to send [08:07:58]accept exits with 10 [08:07:58]New connection [08:07:58]New thread 3067030884 created [08:07:58]Thread 3067174244 joined [08:07:58]Waiting for new connection... [08:07:58] Sock 10.Parse request [08:07:58]Sock 10.Check first char [08:07:58]Sock 10.First char is OK [08:07:58]request: POST /json_proto HTTP/1.0 [08:07:58]Method: POST [08:07:58]URL: /json_proto [08:07:58]Method is POST - this is cgi request [08:07:58]url: /json_proto [08:07:58]query_string will be loaded in cgi processing [08:07:58]execute_cgi json_proto POST (null) [08:07:58]execute_cgi path=json_proto method=POST [08:07:58]POST find Content-Length [08:07:58]Host: 172.17.41.195:8080 [08:07:58]Content-Length: 1217 [08:07:58]Content-Type: application/json [08:07:58] [08:07:58]POST finish read [08:07:58]Found Content-Length = 1217 [08:07:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507420\u000A16.05.2024 07:50\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1494.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3779857\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:58]execute_script... [08:07:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507420\u000A16.05.2024 07:50\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1494.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3779857\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:58]POST & json_proto [08:07:58]process_json_proto [08:07:58]json parsed OK: [08:07:58]protocol is kg_v1.0 [08:07:58]action value=print_text [08:07:58]process_action print_text [08:07:58]cmd_print_text [08:07:58]ExternCall_PrintAddStr [08:07:58]wPrintStart [08:07:58]Write to MH i2c: 01 00 00 24 40 64 [08:07:58]Write i2c OK [08:07:58]MH_I2C_Read... [08:07:58]Read from MH i2c: 01 [08:07:58]MH_I2C_Read... [08:07:58]Read from MH i2c: 01 07 00 [08:07:58]MH_I2C_Read... [08:07:58]Read from MH i2c: 01 07 00 24 40 00 00 00 00 00 FF 0F 79 [08:07:58]RasterBufferAndPrint [08:07:58]line *****ТОВАРНЫЙ ЧЕК***** [08:07:58]line АЗС-91 [08:07:58]line Партнер нефть [08:07:58]line 02508201610067 [08:07:58]line Кассир : Пайзулдаева А. [08:07:58]line Счет N : (1)507420 [08:07:58]line 16.05.2024 07:50 [08:07:58]line ПРОДАЖА [08:07:58]line ТРК (МРК, ГНК): 11 [08:07:58]line Вид ГСМ : 2710194210 [08:07:58]line ДТ-К-5 [08:07:58]line 20.000 x 74.70 [08:07:58]line ИТОГ: 1494.00 [08:07:58]line Тип оплаты: Талоны: Топливные Талоны [08:07:58]line 3779857 [08:07:58]line ______________________ [08:07:58]line (подпись) [08:07:58]written 0, free lines is 4095 [08:07:58]Write to MH i2c: 01 00 00 38 40 78 [08:07:58]Write i2c OK [08:07:58]MH_I2C_Read... [08:07:58]Read from MH i2c: 01 [08:07:58]MH_I2C_Read... [08:07:58]Read from MH i2c: 01 07 00 [08:07:58]MH_I2C_Read... [08:07:58]Read from MH i2c: 01 07 00 38 40 00 00 00 00 00 0F 0E 9C [08:07:58]RasterBufferAndPrint [08:07:58]line [08:07:58]line [08:07:58]line [08:07:58]line [08:07:58]line [08:07:58]written 0, free lines is 3600 [08:07:58]MH_Cut [08:07:58]Write to MH i2c: D1 01 00 3F 40 01 51 [08:07:58]Write i2c OK [08:07:58]MH_I2C_Read... [08:07:58]Read from MH i2c: D1 [08:07:58]MH_I2C_Read... [08:07:58]Read from MH i2c: D1 01 00 [08:07:58]MH_I2C_Read... [08:07:58]Read from MH i2c: D1 01 00 3F 40 00 50 [08:07:58]Write to MH i2c: 01 00 00 40 40 80 [08:07:58]Write i2c OK [08:07:58]MH_I2C_Read... [08:07:59]*** Cut start [08:07:59]*** Purtial cut [08:07:59]*** CUTSNS_PIN = 0 [08:07:59]*** Stage 1: CUTSNS_PIN = 1 [08:08:01]OFD Sender: No OFD packet to send [08:08:01]Read from MH i2c: 01 [08:08:01]MH_I2C_Read... [08:08:01]Read from MH i2c: 01 07 00 [08:08:01]MH_I2C_Read... [08:08:01]*** Stop cut motor [08:08:01]*** Cut end [08:08:01]Read from MH i2c: 01 07 00 40 40 00 00 00 00 00 FF 0F 95 [08:08:01]process_action print_text done [08:08:01]requested_data is exist [08:08:01]produce_requested_data [08:08:01]requested_item fm.sn is exist - process it [08:08:01]wFMCommunicate request_size=4 [08:08:01]MH_SAM_APDU [08:08:01]CAPDU: 80 11 00 00 [08:08:01]Write to MH i2c: E2 08 00 41 40 80 11 00 00 00 00 00 00 FB [08:08:01]Write i2c OK [08:08:01]MH_I2C_Read... [08:08:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:01]Read from MH i2c: E2 [08:08:01]MH_I2C_Read... [08:08:01]Read from MH i2c: E2 17 00 [08:08:01]MH_I2C_Read... [08:08:01]Read from MH i2c: E2 17 00 41 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 51 [08:08:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:08:01]wFMCommunicate OK [08:08:01]requested_item fd.num is exist - process it [08:08:01]SAM_PROTO_GetFieldsCounters [08:08:01]wFMCommunicate request_size=4 [08:08:01]MH_SAM_APDU [08:08:01]CAPDU: 80 13 00 00 [08:08:01]Write to MH i2c: E2 08 00 42 40 80 13 00 00 00 00 00 00 FE [08:08:01]Write i2c OK [08:08:01]MH_I2C_Read... [08:08:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:08:01]Read from MH i2c: E2 [08:08:01]MH_I2C_Read... [08:08:01]Read from MH i2c: E2 62 00 [08:08:01]MH_I2C_Read... [08:08:01]Read from MH i2c: E2 62 00 42 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 5A 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [08:08:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 5A 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:08:01]wFMCommunicate OK [08:08:01]SAM_PROTO_GetFieldsCounters done [08:08:01]requested_item shift.num is exist - process it [08:08:01]requested_item shift.opened is exist - process it [08:08:01]req_shift_opened [08:08:01]FM_GetShiftState [08:08:01]SAM_PROTO_GetShiftState [08:08:01]wFMCommunicate request_size=4 [08:08:01]MH_SAM_APDU [08:08:01]CAPDU: 80 13 01 00 [08:08:01]Write to MH i2c: E2 08 00 43 40 80 13 01 00 00 00 00 00 00 [08:08:01]Write i2c OK [08:08:01]MH_I2C_Read... [08:08:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:01]Read from MH i2c: E2 [08:08:01]MH_I2C_Read... [08:08:01]Read from MH i2c: E2 0E 00 [08:08:01]MH_I2C_Read... [08:08:01]Read from MH i2c: E2 0E 00 43 40 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 AC [08:08:01]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [08:08:01]wFMCommunicate OK [08:08:01]SAM_PROTO_GetShiftState done [08:08:01]FM_GetShiftState done [08:08:01]req_shift_opened done [08:08:01]requested_item shift.open_date is exist - process it [08:08:01]req_shift_open_date [08:08:01]req_shift_open_date done [08:08:01]produce_requested_data done [08:08:01]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67418,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [08:08:01]process_action_free print_text [08:08:01]json_value_free [08:08:01]json_value_free done [08:08:01]process_json_proto returns [08:08:01]Send response to host [08:08:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67418,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [08:08:01]free response buf [08:08:01]execute_script done [08:08:01]execute_script returns [08:08:01]free content buf [08:08:01]Sock 10.Close socket [08:08:01]Sock 10.Thread stoped [08:08:06]OFD Sender: No OFD packet to send [08:08:11]OFD Sender: No OFD packet to send [08:08:16]OFD Sender: No OFD packet to send [08:08:21]OFD Sender: No OFD packet to send [08:08:26]OFD Sender: No OFD packet to send [08:08:31]OFD Sender: No OFD packet to send [08:08:36]OFD Sender: No OFD packet to send [08:08:41]OFD Sender: No OFD packet to send [08:08:46]OFD Sender: No OFD packet to send [08:08:51]OFD Sender: No OFD packet to send [08:08:56]OFD Sender: No OFD packet to send [08:09:00]accept exits with 7 [08:09:00]New connection [08:09:00]New thread 3067174244 created [08:09:00]Thread 3067030884 joined [08:09:00]Waiting for new connection... [08:09:00] Sock 7.Parse request [08:09:00]Sock 7.Check first char [08:09:00]Sock 7.First char is OK [08:09:00]request: POST /json_proto HTTP/1.0 [08:09:00]Method: POST [08:09:00]URL: /json_proto [08:09:00]Method is POST - this is cgi request [08:09:00]url: /json_proto [08:09:00]query_string will be loaded in cgi processing [08:09:00]execute_cgi json_proto POST (null) [08:09:00]execute_cgi path=json_proto method=POST [08:09:00]POST find Content-Length [08:09:00]Host: 172.17.41.195:8080 [08:09:00]Content-Length: 670 [08:09:00]Content-Type: application/json [08:09:00] [08:09:00]POST finish read [08:09:00]Found Content-Length = 670 [08:09:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507421", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:00]execute_script... [08:09: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)507421", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:00]POST & json_proto [08:09:00]process_json_proto [08:09:00]json parsed OK: [08:09:00]protocol is kg_v1.0 [08:09:00]action value=close_receipt [08:09:00]process_action close_receipt [08:09:00]cmd_close_receipt [08:09:00]MH_GetDate [08:09:00]Write to MH i2c: F0 00 00 44 40 73 [08:09:00]Write i2c OK [08:09:00]MH_I2C_Read... [08:09:00]Read from MH i2c: F0 [08:09:00]MH_I2C_Read... [08:09:00]Read from MH i2c: F0 09 00 [08:09:00]MH_I2C_Read... [08:09:00]Read from MH i2c: F0 09 00 44 40 00 21 BF 45 66 FC 21 6F 64 F7 [08:09:00]GetLastDocTimeStamp 1715845947 [08:09:00]current date 1715846945 [08:09:00]FM_GetShiftState [08:09:00]SAM_PROTO_GetShiftState [08:09:00]wFMCommunicate request_size=4 [08:09:00]MH_SAM_APDU [08:09:00]CAPDU: 80 13 01 00 [08:09:00]Write to MH i2c: E2 08 00 45 40 80 13 01 00 00 00 00 00 02 [08:09:00]Write i2c OK [08:09:00]MH_I2C_Read... [08:09:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:00]Read from MH i2c: E2 [08:09:00]MH_I2C_Read... [08:09:00]Read from MH i2c: E2 0E 00 [08:09:00]MH_I2C_Read... [08:09:00]Read from MH i2c: E2 0E 00 45 40 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 AE [08:09:00]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [08:09:00]wFMCommunicate OK [08:09:00]SAM_PROTO_GetShiftState done [08:09:00]FM_GetShiftState done [08:09:00]opened in 1715818916 [08:09:00]opened+sec_in_day 1715905316 [08:09:00]quantity*price = 50036 [08:09:00]sum+1 = 50037 [08:09:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 17 16.05.2024 08:09 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67419 ФПД: 255621217673857 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T080905&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67419&fm=255621217673857&tin=02508201610067®Number=0000000000091845&sum=50000 [08:09:01]StoreToDocumentArchive [08:09:01]shift 357 fd 67419 [08:09:01]save to /storage/0357/doc_00067419 [08:09:01]save last doc name /storage/0357/doc_00067419 to /storage/kkm_last_doc_name [08:09:01]save OK [08:09:01]Clear old archive folders... [08:09:01]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:09:01]tlvbuf is 00BF6BC0 [08:09:01]SAM_PROTO_ClearQueue [08:09:01]wFMCommunicate request_size=4 [08:09:01]MH_SAM_APDU [08:09:01]CAPDU: 80 09 00 00 [08:09:01]Write to MH i2c: E2 08 00 52 40 80 09 00 00 00 00 00 00 04 [08:09:01]Write i2c OK [08:09:01]MH_I2C_Read... [08:09:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:09:01]Read from MH i2c: E2 [08:09:01]MH_I2C_Read... [08:09:01]Read from MH i2c: E2 03 00 [08:09:01]MH_I2C_Read... [08:09:01]Read from MH i2c: E2 03 00 52 40 00 90 00 06 [08:09:01]RAPDU: 90 00 [08:09:01]wFMCommunicate OK [08:09:01]SAM_PROTO_ClearQueue done [08:09:01]KKMCreateOFDPacket [08:09:01]OFDProtocolAddRootSTLVToBuf [08:09:01]FM_MakeSignedData [08:09:01]FM_MakeSignedData [08:09:01]SAM_PROTO_SignData [08:09:01]wFMCommunicate request_size=4 [08:09:01]MH_SAM_APDU [08:09:01]CAPDU: 80 0D 01 02 [08:09:01]Write to MH i2c: E2 08 00 53 40 80 0D 01 02 00 00 00 00 0C [08:09:01]Write i2c OK [08:09:01]MH_I2C_Read... [08:09:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:09:01]Read from MH i2c: E2 [08:09:01]MH_I2C_Read... [08:09:01]Read from MH i2c: E2 03 00 [08:09:01]MH_I2C_Read... [08:09:01]Read from MH i2c: E2 03 00 53 40 00 90 00 07 [08:09:01]RAPDU: 90 00 [08:09:01]wFMCommunicate OK [08:09:01]wFMCommunicate request_size=255 [08:09:01]MH_SAM_APDU [08:09:01]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 11 00 00 00 F4 03 04 00 21 BF 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5B 07 01 00 35 04 06 00 [08:09:01]Write to MH i2c: E2 02 01 54 40 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 11 00 00 00 F4 03 04 00 21 BF 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5B 07 01 00 35 04 06 00 00 00 1F [08:09:01]Write i2c OK [08:09:01]MH_I2C_Read... [08:09:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:01]Read from MH i2c: E2 [08:09:01]MH_I2C_Read... [08:09:01]Read from MH i2c: E2 03 00 [08:09:01]MH_I2C_Read... [08:09:01]Read from MH i2c: E2 03 00 54 40 00 90 00 08 [08:09:01]RAPDU: 90 00 [08:09:01]wFMCommunicate OK [08:09:01]wFMCommunicate request_size=11 [08:09:01]MH_SAM_APDU [08:09:01]CAPDU: 80 0D 02 02 06 E8 7C 73 E0 62 81 [08:09:01]Write to MH i2c: E2 0E 00 55 40 80 0D 02 02 06 00 E8 7C 73 E0 62 81 00 00 B5 [08:09:01]Write i2c OK [08:09:01]MH_I2C_Read... [08:09:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:01]Read from MH i2c: E2 [08:09:01]MH_I2C_Read... [08:09:01]Read from MH i2c: E2 03 00 [08:09:01]MH_I2C_Read... [08:09:01]Read from MH i2c: E2 03 00 55 40 00 90 00 09 [08:09:01]RAPDU: 90 00 [08:09:01]wFMCommunicate OK [08:09:01]wFMCommunicate request_size=4 [08:09:01]MH_SAM_APDU [08:09:01]CAPDU: 80 0D 03 02 [08:09:01]Write to MH i2c: E2 08 00 56 40 80 0D 03 02 00 00 00 00 11 [08:09:01]Write i2c OK [08:09:01]MH_I2C_Read... [08:09:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:09:01]Read from MH i2c: E2 [08:09:01]MH_I2C_Read... [08:09:01]Read from MH i2c: E2 0B 00 [08:09:01]MH_I2C_Read... [08:09:01]Read from MH i2c: E2 0B 00 56 40 00 86 3A 12 7D 37 DF 37 1B 90 00 C9 [08:09:01]RAPDU: 86 3A 12 7D 37 DF 37 1B 90 00 [08:09:01]wFMCommunicate OK [08:09:01]SAM_PROTO_SignData done [08:09:01]FM_MakeSignedData done [08:09:01]CreateOFDProtocolMessage [08:09:01]wFMCommunicate request_size=4 [08:09:01]MH_SAM_APDU [08:09:01]CAPDU: 80 11 00 00 [08:09:01]Write to MH i2c: E2 08 00 57 40 80 11 00 00 00 00 00 00 11 [08:09:01]Write i2c OK [08:09:01]MH_I2C_Read... [08:09:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:02]Read from MH i2c: E2 [08:09:02]MH_I2C_Read... [08:09:02]Read from MH i2c: E2 17 00 [08:09:02]MH_I2C_Read... [08:09:02]Read from MH i2c: E2 17 00 57 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 67 [08:09:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:09:02]wFMCommunicate OK [08:09:02]CreateOFDProtocolMessage done [08:09:02]OFDSenderStorePacket 67419 [08:09:02]StoreOFDPacket docnum=67419 [08:09:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 E8 C0 08 01 D9 60 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 11 00 00 00 F4 03 04 00 21 BF 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5B 07 01 00 35 04 06 00 E8 7C 73 E0 62 81 86 3A 12 7D 37 DF 37 1B [08:09:02]CheckFolder [08:09:02]dirname=/storage/ofd_packets [08:09:02]CheckFolder done [08:09:02]ProducePacketName [08:09:02]name=ofd_packets/00067419 [08:09:02]NVStorageSaveData ofd_packets/00067419 [08:09:02]File name is /storage/ofd_packets/00067419 [08:09:02]Write 302 bytes [08:09:02]NVStorageSaveData done [08:09:02]OFDSenderStorePacket done [08:09:02]KKMCreateOFDPacket done [08:09:02]NVStorageSaveData kkm_last_timestamp [08:09:02]File name is /storage/kkm_last_timestamp [08:09:02]Write 4 bytes [08:09:02]NVStorageSaveData done [08:09:02]ExternCall_PrintAddStr [08:09:02]wPrintStart [08:09:02]Write to MH i2c: 01 00 00 58 40 98 [08:09:02]Write i2c OK [08:09:02]MH_I2C_Read... [08:09:02]Read from MH i2c: 01 [08:09:02]MH_I2C_Read... [08:09:02]Read from MH i2c: 01 07 00 [08:09:02]MH_I2C_Read... [08:09:02]Read from MH i2c: 01 07 00 58 40 00 00 00 00 00 FF 0F AD [08:09:02]RasterBufferAndPrint [08:09:02]line Счет N : (1)507421 [08:09:02]line ИНН: 02508201610067 [08:09:02]line Контрольно-Кассовый Чек [08:09:02]line ПРОДАЖА [08:09:02]line ТРК (МРК, ГНК) : 42 [08:09:02]line Товар: 2710124130 [08:09:02]line Super-92-К-5 [08:09:02]line 7.380 * 67.80 [08:09:02]line = 500.36 [08:09:02]line НДС 12% НСП 1% [08:09:02]line > о реализуемом товаре [08:09:02]line ОКРУГЛЕНИЕ: -0.36 [08:09:02]line ИТОГО: 500.00 [08:09:02]line Внесено: 500.00 [08:09:02]line СДАЧА: 0.00 [08:09:02]line НСП 1% : 4.43 [08:09:02]line НДС 12% : 53.14 [08:09:02]line Наличными: 500.00 [08:09:02]line Безнал.: 0.00 [08:09:02]line Место: АЗС № 91 "Партнер Нефть" [08:09:02]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [08:09:02]line СНО: Общий режим [08:09:02]line Чек 17 16.05.2024 08:09 [08:09:02]line Смена: 357 ФФД: 1.0 [08:09:02]line ЗНМ: 0300000119 [08:09:02]line РНМ: 0000000000091845 [08:09:02]line Версия ККМ: 001 [08:09:02]line ФМ: 0000000000871829 [08:09:02]line ФД: 67419 [08:09:02]line ФПД: 255621217673857 [08:09:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T080905&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67419&fm=255621217673857&tin=02508201610067®Number=0000000000091845&sum=50000 [08:09:02]written 0, free lines is 4095 [08:09:02]OFD Sender: Processing packet 67419 [packets to send 35, broken 34] [08:09:02]ProducePacketName [08:09:02]name=ofd_packets/00067419 [08:09:02]OFD Sender: To server: pG, [08:09:02]CommunicateWithHost lk.salyk.kg:30040 [08:09:02]ConnectInit lk.salyk.kg [08:09:02]Connected sock=9 [08:09: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 38 32 39 10 01 00 00 E8 C0 08 01 D9 60 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 11 00 00 00 F4 03 04 00 21 BF 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5B 07 01 00 35 04 06 00 E8 7C 73 E0 62 81 86 3A 12 7D 37 DF 37 1B [08:09:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 A0 AB 47 00 3E 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 38 32 39 10 04 04 00 5B 07 01 00 F4 03 04 00 FC 66 45 66 B6 04 01 00 00 EB 3A AA 89 7C FB 04 D3 [08:09:02]CommunicateWithHost err = 0 [08:09:02]CheckOFDResponse [08:09:02]1017 (14) - 77093643461234 [08:09:02]1041 (16) - 0000000000871829 [08:09:02]1040 (4) - 67419 [08:09:02]1012 (4) - 16.05.2024 01:53 [08:09:02]1206 (1) - 0 [08:09:02]OFD Sender: Remove packet 67419 [08:09:02]ProducePacketName [08:09:02]name=ofd_packets/00067419 [08:09:02]NVStorageDeleteData [08:09:02]Write to MH i2c: 01 00 00 82 40 C2 [08:09:02]Write i2c OK [08:09:02]MH_I2C_Read... [08:09:02]Read from MH i2c: 01 [08:09:02]MH_I2C_Read... [08:09:02]Read from MH i2c: 01 07 00 [08:09:02]MH_I2C_Read... [08:09:02]Read from MH i2c: 01 07 00 82 40 00 00 00 00 00 E0 0C B5 [08:09:02]RasterBufferAndPrint [08:09:02]line [08:09:02]line [08:09:02]line [08:09:02]line [08:09:02]line [08:09:02]written 0, free lines is 3302 [08:09:02]MH_Cut [08:09:02]Write to MH i2c: D1 01 00 89 40 01 9B [08:09:02]Write i2c OK [08:09:02]MH_I2C_Read... [08:09:02]Read from MH i2c: D1 [08:09:02]MH_I2C_Read... [08:09:02]Read from MH i2c: D1 01 00 [08:09:02]MH_I2C_Read... [08:09:02]Read from MH i2c: D1 01 00 89 40 00 9A [08:09:02]Write to MH i2c: 01 00 00 8A 40 CA [08:09:02]Write i2c OK [08:09:02]MH_I2C_Read... [08:09:03]OFD Sender: No OFD packet to send [08:09:03]*** Cut start [08:09:03]*** Purtial cut [08:09:03]*** Stage 1: CUTSNS_PIN = 1 [08:09:03]Read from MH i2c: 01 [08:09:03]MH_I2C_Read... [08:09:03]*** Stop cut motor [08:09:03]*** Cut end [08:09:03]Read from MH i2c: 01 07 00 [08:09:03]MH_I2C_Read... [08:09:03]Read from MH i2c: 01 07 00 8A 40 00 00 00 00 00 FF 0F DF [08:09:03]process_action close_receipt done [08:09:03]requested_data is exist [08:09:03]produce_requested_data [08:09:03]requested_item fm.sn is exist - process it [08:09:03]wFMCommunicate request_size=4 [08:09:03]MH_SAM_APDU [08:09:03]CAPDU: 80 11 00 00 [08:09:03]Write to MH i2c: E2 08 00 8B 40 80 11 00 00 00 00 00 00 45 [08:09:03]Write i2c OK [08:09:03]MH_I2C_Read... [08:09:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:03]Read from MH i2c: E2 [08:09:03]MH_I2C_Read... [08:09:03]Read from MH i2c: E2 17 00 [08:09:03]MH_I2C_Read... [08:09:03]Read from MH i2c: E2 17 00 8B 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 9B [08:09:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:09:03]wFMCommunicate OK [08:09:03]requested_item fd.num is exist - process it [08:09:03]SAM_PROTO_GetFieldsCounters [08:09:03]wFMCommunicate request_size=4 [08:09:03]MH_SAM_APDU [08:09:03]CAPDU: 80 13 00 00 [08:09:03]Write to MH i2c: E2 08 00 8C 40 80 13 00 00 00 00 00 00 48 [08:09:03]Write i2c OK [08:09:03]MH_I2C_Read... [08:09:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:09:04]Read from MH i2c: E2 [08:09:04]MH_I2C_Read... [08:09:04]Read from MH i2c: E2 62 00 [08:09:04]MH_I2C_Read... [08:09:04]Read from MH i2c: E2 62 00 8C 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 5B 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [08:09:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 5B 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:09:04]wFMCommunicate OK [08:09:04]SAM_PROTO_GetFieldsCounters done [08:09:04]requested_item shift.num is exist - process it [08:09:04]requested_item shift.opened is exist - process it [08:09:04]req_shift_opened [08:09:04]FM_GetShiftState [08:09:04]SAM_PROTO_GetShiftState [08:09:04]wFMCommunicate request_size=4 [08:09:04]MH_SAM_APDU [08:09:04]CAPDU: 80 13 01 00 [08:09:04]Write to MH i2c: E2 08 00 8D 40 80 13 01 00 00 00 00 00 4A [08:09:04]Write i2c OK [08:09:04]MH_I2C_Read... [08:09:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:04]Read from MH i2c: E2 [08:09:04]MH_I2C_Read... [08:09:04]Read from MH i2c: E2 0E 00 [08:09:04]MH_I2C_Read... [08:09:04]Read from MH i2c: E2 0E 00 8D 40 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 F6 [08:09:04]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [08:09:04]wFMCommunicate OK [08:09:04]SAM_PROTO_GetShiftState done [08:09:04]FM_GetShiftState done [08:09:04]req_shift_opened done [08:09:04]requested_item shift.open_date is exist - process it [08:09:04]req_shift_open_date [08:09:04]req_shift_open_date done [08:09:04]produce_requested_data done [08:09:04]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67419,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [08:09:04]process_action_free close_receipt [08:09:04]json_value_free [08:09:04]json_value_free done [08:09:04]process_json_proto returns [08:09:04]Send response to host [08:09:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67419,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [08:09:04]free response buf [08:09:04]execute_script done [08:09:04]execute_script returns [08:09:04]free content buf [08:09:04]Sock 7.Close socket [08:09:04]Sock 7.Thread stoped [08:09:08]OFD Sender: No OFD packet to send [08:09:13]OFD Sender: No OFD packet to send [08:09:18]OFD Sender: No OFD packet to send [08:09:23]OFD Sender: No OFD packet to send [08:09:28]OFD Sender: No OFD packet to send [08:09:33]OFD Sender: No OFD packet to send [08:09:38]OFD Sender: No OFD packet to send [08:09:43]OFD Sender: No OFD packet to send [08:09:48]OFD Sender: No OFD packet to send [08:09:53]OFD Sender: No OFD packet to send [08:09:58]OFD Sender: No OFD packet to send [08:10:03]OFD Sender: No OFD packet to send [08:10:08]OFD Sender: No OFD packet to send [08:10:13]OFD Sender: No OFD packet to send [08:10:18]OFD Sender: No OFD packet to send [08:10:23]OFD Sender: No OFD packet to send [08:10:28]OFD Sender: No OFD packet to send [08:10:33]OFD Sender: No OFD packet to send [08:10:38]OFD Sender: No OFD packet to send [08:10:43]OFD Sender: No OFD packet to send [08:10:48]OFD Sender: No OFD packet to send [08:10:53]OFD Sender: No OFD packet to send [08:10:58]OFD Sender: No OFD packet to send [08:11:03]OFD Sender: No OFD packet to send [08:11:08]OFD Sender: No OFD packet to send [08:11:13]OFD Sender: No OFD packet to send [08:11:18]OFD Sender: No OFD packet to send [08:11:23]OFD Sender: No OFD packet to send [08:11:28]OFD Sender: No OFD packet to send [08:11:33]OFD Sender: No OFD packet to send [08:11:38]OFD Sender: No OFD packet to send [08:11:43]OFD Sender: No OFD packet to send [08:11:48]OFD Sender: No OFD packet to send [08:11:53]OFD Sender: No OFD packet to send [08:11:58]OFD Sender: No OFD packet to send [08:12:03]OFD Sender: No OFD packet to send [08:12:08]OFD Sender: No OFD packet to send [08:12:13]OFD Sender: No OFD packet to send [08:12:18]OFD Sender: No OFD packet to send [08:12:23]OFD Sender: No OFD packet to send [08:12:28]OFD Sender: No OFD packet to send [08:12:33]OFD Sender: No OFD packet to send [08:12:38]OFD Sender: No OFD packet to send [08:12:43]OFD Sender: No OFD packet to send [08:12:48]OFD Sender: No OFD packet to send [08:12:53]OFD Sender: No OFD packet to send [08:12:58]OFD Sender: No OFD packet to send [08:13:03]OFD Sender: No OFD packet to send [08:13:08]OFD Sender: No OFD packet to send [08:13:13]OFD Sender: No OFD packet to send [08:13:18]OFD Sender: No OFD packet to send [08:13:23]OFD Sender: No OFD packet to send [08:13:28]OFD Sender: No OFD packet to send [08:13:33]OFD Sender: No OFD packet to send [08:13:38]OFD Sender: No OFD packet to send [08:13:43]OFD Sender: No OFD packet to send [08:13:48]OFD Sender: No OFD packet to send [08:13:53]OFD Sender: No OFD packet to send [08:13:58]OFD Sender: No OFD packet to send [08:14:03]OFD Sender: No OFD packet to send [08:14:08]OFD Sender: No OFD packet to send [08:14:13]OFD Sender: No OFD packet to send [08:14:18]accept exits with 10 [08:14:18]New connection [08:14:18]New thread 3067030884 created [08:14:18]Thread 3067174244 joined [08:14:18]Waiting for new connection... [08:14:18] Sock 10.Parse request [08:14:18]Sock 10.Check first char [08:14:18]Sock 10.First char is OK [08:14:18]request: POST /json_proto HTTP/1.0 [08:14:18]Method: POST [08:14:18]URL: /json_proto [08:14:18]Method is POST - this is cgi request [08:14:18]url: /json_proto [08:14:18]query_string will be loaded in cgi processing [08:14:18]execute_cgi json_proto POST (null) [08:14:18]execute_cgi path=json_proto method=POST [08:14:18]POST find Content-Length [08:14:18]Host: 172.17.41.195:8080 [08:14:18]Content-Length: 682 [08:14:18]Content-Type: application/json [08:14:18] [08:14:18]POST finish read [08:14:18]Found Content-Length = 682 [08:14:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507422", "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.80, "quantity" : 14.980, "sum" : 1000.66, "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:14:18]execute_script... [08:14:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507422", "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.80, "quantity" : 14.980, "sum" : 1000.66, "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:14:18]POST & json_proto [08:14:18]process_json_proto [08:14:18]json parsed OK: [08:14:18]protocol is kg_v1.0 [08:14:18]action value=close_receipt [08:14:18]process_action close_receipt [08:14:18]cmd_close_receipt [08:14:18]MH_GetDate [08:14:18]Write to MH i2c: F0 00 00 8E 40 BD [08:14:18]Write i2c OK [08:14:18]MH_I2C_Read... [08:14:18]Read from MH i2c: F0 [08:14:18]MH_I2C_Read... [08:14:18]Read from MH i2c: F0 09 00 [08:14:18]MH_I2C_Read... [08:14:18]Read from MH i2c: F0 09 00 8E 40 00 5F C0 45 66 FC 21 6F 64 80 [08:14:18]GetLastDocTimeStamp 1715846945 [08:14:18]current date 1715847263 [08:14:18]FM_GetShiftState [08:14:18]SAM_PROTO_GetShiftState [08:14:18]wFMCommunicate request_size=4 [08:14:18]MH_SAM_APDU [08:14:18]CAPDU: 80 13 01 00 [08:14:18]Write to MH i2c: E2 08 00 8F 40 80 13 01 00 00 00 00 00 4C [08:14:18]Write i2c OK [08:14:18]MH_I2C_Read... [08:14:18]OFD Sender: No OFD packet to send [08:14:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:14:18]Read from MH i2c: E2 [08:14:18]MH_I2C_Read... [08:14:18]Read from MH i2c: E2 0E 00 [08:14:18]MH_I2C_Read... [08:14:18]Read from MH i2c: E2 0E 00 8F 40 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 F8 [08:14:18]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [08:14:18]wFMCommunicate OK [08:14:18]SAM_PROTO_GetShiftState done [08:14:18]FM_GetShiftState done [08:14:18]opened in 1715818916 [08:14:18]opened+sec_in_day 1715905316 [08:14:18]quantity*price = 100066 [08:14:18]sum+1 = 100067 [08:14:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 18 16.05.2024 08:14 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67420 ФПД: 83487482232855 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T081423&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67420&fm=83487482232855&tin=02508201610067®Number=0000000000091845&sum=100000 [08:14:19]StoreToDocumentArchive [08:14:19]shift 357 fd 67420 [08:14:19]save to /storage/0357/doc_00067420 [08:14:19]save last doc name /storage/0357/doc_00067420 to /storage/kkm_last_doc_name [08:14:19]save OK [08:14:19]Clear old archive folders... [08:14:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:14:19]tlvbuf is 00B3ABA0 [08:14:19]SAM_PROTO_ClearQueue [08:14:19]wFMCommunicate request_size=4 [08:14:19]MH_SAM_APDU [08:14:19]CAPDU: 80 09 00 00 [08:14:19]Write to MH i2c: E2 08 00 9C 40 80 09 00 00 00 00 00 00 4E [08:14:19]Write i2c OK [08:14:19]MH_I2C_Read... [08:14:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:14:19]Read from MH i2c: E2 [08:14:19]MH_I2C_Read... [08:14:19]Read from MH i2c: E2 03 00 [08:14:19]MH_I2C_Read... [08:14:19]Read from MH i2c: E2 03 00 9C 40 00 90 00 50 [08:14:19]RAPDU: 90 00 [08:14:19]wFMCommunicate OK [08:14:19]SAM_PROTO_ClearQueue done [08:14:19]KKMCreateOFDPacket [08:14:19]OFDProtocolAddRootSTLVToBuf [08:14:19]FM_MakeSignedData [08:14:19]FM_MakeSignedData [08:14:19]SAM_PROTO_SignData [08:14:19]wFMCommunicate request_size=4 [08:14:19]MH_SAM_APDU [08:14:19]CAPDU: 80 0D 01 02 [08:14:19]Write to MH i2c: E2 08 00 9D 40 80 0D 01 02 00 00 00 00 56 [08:14:19]Write i2c OK [08:14:19]MH_I2C_Read... [08:14:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:14:19]Read from MH i2c: E2 [08:14:19]MH_I2C_Read... [08:14:19]Read from MH i2c: E2 03 00 [08:14:19]MH_I2C_Read... [08:14:19]Read from MH i2c: E2 03 00 9D 40 00 90 00 51 [08:14:19]RAPDU: 90 00 [08:14:19]wFMCommunicate OK [08:14:19]wFMCommunicate request_size=255 [08:14:19]MH_SAM_APDU [08:14: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 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 5F C0 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5C 07 01 00 35 04 06 00 4B [08:14:19]Write to MH i2c: E2 02 01 9E 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 5F C0 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5C 07 01 00 35 04 06 00 4B 00 00 20 [08:14:19]Write i2c OK [08:14:19]MH_I2C_Read... [08:14:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:14:19]Read from MH i2c: E2 [08:14:19]MH_I2C_Read... [08:14:19]Read from MH i2c: E2 03 00 [08:14:19]MH_I2C_Read... [08:14:19]Read from MH i2c: E2 03 00 9E 40 00 90 00 52 [08:14:19]RAPDU: 90 00 [08:14:19]wFMCommunicate OK [08:14:19]wFMCommunicate request_size=10 [08:14:19]MH_SAM_APDU [08:14:19]CAPDU: 80 0D 02 02 05 EE 71 B8 C0 17 [08:14:19]Write to MH i2c: E2 0D 00 9F 40 80 0D 02 02 05 00 EE 71 B8 C0 17 00 00 51 [08:14:19]Write i2c OK [08:14:19]MH_I2C_Read... [08:14:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:14:20]Read from MH i2c: E2 [08:14:20]MH_I2C_Read... [08:14:20]Read from MH i2c: E2 03 00 [08:14:20]MH_I2C_Read... [08:14:20]Read from MH i2c: E2 03 00 9F 40 00 90 00 53 [08:14:20]RAPDU: 90 00 [08:14:20]wFMCommunicate OK [08:14:20]wFMCommunicate request_size=4 [08:14:20]MH_SAM_APDU [08:14:20]CAPDU: 80 0D 03 02 [08:14:20]Write to MH i2c: E2 08 00 A0 40 80 0D 03 02 00 00 00 00 5B [08:14:20]Write i2c OK [08:14:20]MH_I2C_Read... [08:14:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:14:20]Read from MH i2c: E2 [08:14:20]MH_I2C_Read... [08:14:20]Read from MH i2c: E2 0B 00 [08:14:20]MH_I2C_Read... [08:14:20]Read from MH i2c: E2 0B 00 A0 40 00 4E 89 1B 1B 49 4D A9 E5 90 00 8D [08:14:20]RAPDU: 4E 89 1B 1B 49 4D A9 E5 90 00 [08:14:20]wFMCommunicate OK [08:14:20]SAM_PROTO_SignData done [08:14:20]FM_MakeSignedData done [08:14:20]CreateOFDProtocolMessage [08:14:20]wFMCommunicate request_size=4 [08:14:20]MH_SAM_APDU [08:14:20]CAPDU: 80 11 00 00 [08:14:20]Write to MH i2c: E2 08 00 A1 40 80 11 00 00 00 00 00 00 5B [08:14:20]Write i2c OK [08:14:20]MH_I2C_Read... [08:14:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:14:20]Read from MH i2c: E2 [08:14:20]MH_I2C_Read... [08:14:20]Read from MH i2c: E2 17 00 [08:14:20]MH_I2C_Read... [08:14:20]Read from MH i2c: E2 17 00 A1 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B1 [08:14:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:14:20]wFMCommunicate OK [08:14:20]CreateOFDProtocolMessage done [08:14:20]OFDSenderStorePacket 67420 [08:14:20]StoreOFDPacket docnum=67420 [08:14:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 9E E1 07 01 06 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 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 5F C0 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5C 07 01 00 35 04 06 00 4B EE 71 B8 C0 17 4E 89 1B 1B 49 4D A9 E5 [08:14:20]CheckFolder [08:14:20]dirname=/storage/ofd_packets [08:14:20]CheckFolder done [08:14:20]ProducePacketName [08:14:20]name=ofd_packets/00067420 [08:14:20]NVStorageSaveData ofd_packets/00067420 [08:14:20]File name is /storage/ofd_packets/00067420 [08:14:20]Write 301 bytes [08:14:20]NVStorageSaveData done [08:14:20]OFDSenderStorePacket done [08:14:20]KKMCreateOFDPacket done [08:14:20]NVStorageSaveData kkm_last_timestamp [08:14:20]File name is /storage/kkm_last_timestamp [08:14:20]Write 4 bytes [08:14:20]NVStorageSaveData done [08:14:20]ExternCall_PrintAddStr [08:14:20]wPrintStart [08:14:20]Write to MH i2c: 01 00 00 A2 40 E2 [08:14:20]Write i2c OK [08:14:20]MH_I2C_Read... [08:14:20]Read from MH i2c: 01 [08:14:20]MH_I2C_Read... [08:14:20]Read from MH i2c: 01 07 00 [08:14:20]MH_I2C_Read... [08:14:20]Read from MH i2c: 01 07 00 A2 40 00 00 00 00 00 FF 0F F7 [08:14:20]RasterBufferAndPrint [08:14:20]line Счет N : (1)507422 [08:14:20]line ИНН: 02508201610067 [08:14:20]line Контрольно-Кассовый Чек [08:14:20]line ПРОДАЖА [08:14:20]line ТРК (МРК, ГНК) : 33 [08:14:20]line Товар: 2710124130 [08:14:20]line Аи-92-К-5 [08:14:20]line 14.980 * 66.80 [08:14:20]line = 1000.66 [08:14:20]line НДС 12% НСП 1% [08:14:20]line > о реализуемом товаре [08:14:20]line ОКРУГЛЕНИЕ: -0.66 [08:14:20]line ИТОГО: 1000.00 [08:14:20]line Внесено: 1000.00 [08:14:20]line СДАЧА: 0.00 [08:14:20]line НСП 1% : 8.85 [08:14:20]line НДС 12% : 106.26 [08:14:20]line Наличными: 1000.00 [08:14:20]line Безнал.: 0.00 [08:14:20]line Место: АЗС № 91 "Партнер Нефть" [08:14:20]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [08:14:20]line СНО: Общий режим [08:14:20]line Чек 18 16.05.2024 08:14 [08:14:20]line Смена: 357 ФФД: 1.0 [08:14:20]line ЗНМ: 0300000119 [08:14:20]line РНМ: 0000000000091845 [08:14:20]line Версия ККМ: 001 [08:14:20]line ФМ: 0000000000871829 [08:14:20]line ФД: 67420 [08:14:20]line ФПД: 83487482232855 [08:14:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T081423&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67420&fm=83487482232855&tin=02508201610067®Number=0000000000091845&sum=100000 [08:14:20]written 0, free lines is 4095 [08:14:20]OFD Sender: Processing packet 67420 [packets to send 35, broken 34] [08:14:20]ProducePacketName [08:14:20]name=ofd_packets/00067420 [08:14:20]OFD Sender: To server: pG, [08:14:20]CommunicateWithHost lk.salyk.kg:30040 [08:14:20]ConnectInit lk.salyk.kg [08:14:20]Connected sock=9 [08:14: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 38 32 39 0F 01 00 00 9E E1 07 01 06 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 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 5F C0 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5C 07 01 00 35 04 06 00 4B EE 71 B8 C0 17 4E 89 1B 1B 49 4D A9 E5 [08:14:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 34 BB 47 00 2E 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 38 32 39 10 04 04 00 5C 07 01 00 F4 03 04 00 3A 68 45 66 B6 04 01 00 00 3E 6F 2F EC AC 04 78 C4 [08:14:20]CommunicateWithHost err = 0 [08:14:20]CheckOFDResponse [08:14:20]1017 (14) - 77093643461234 [08:14:20]1041 (16) - 0000000000871829 [08:14:20]1040 (4) - 67420 [08:14:20]1012 (4) - 16.05.2024 01:58 [08:14:20]1206 (1) - 0 [08:14:20]OFD Sender: Remove packet 67420 [08:14:20]ProducePacketName [08:14:20]name=ofd_packets/00067420 [08:14:20]NVStorageDeleteData [08:14:20]Write to MH i2c: 01 00 00 CC 40 0C [08:14:20]Write i2c OK [08:14:20]MH_I2C_Read... [08:14:20]Read from MH i2c: 01 [08:14:20]MH_I2C_Read... [08:14:20]Read from MH i2c: 01 07 00 [08:14:20]MH_I2C_Read... [08:14:20]Read from MH i2c: 01 07 00 CC 40 00 00 00 00 00 CA 0C E9 [08:14:20]RasterBufferAndPrint [08:14:20]line [08:14:20]line [08:14:20]line [08:14:20]line [08:14:20]line [08:14:20]written 0, free lines is 3281 [08:14:20]MH_Cut [08:14:20]Write to MH i2c: D1 01 00 D3 40 01 E5 [08:14:20]Write i2c OK [08:14:20]MH_I2C_Read... [08:14:20]Read from MH i2c: D1 [08:14:20]MH_I2C_Read... [08:14:20]Read from MH i2c: D1 01 00 [08:14:20]MH_I2C_Read... [08:14:20]Read from MH i2c: D1 01 00 D3 40 00 E4 [08:14:20]Write to MH i2c: 01 00 00 D4 40 14 [08:14:20]Write i2c OK [08:14:20]MH_I2C_Read... [08:14:21]OFD Sender: No OFD packet to send [08:14:21]*** Cut start [08:14:21]*** Purtial cut [08:14:21]*** CUTSNS_PIN = 0 [08:14:21]*** Stage 1: CUTSNS_PIN = 1 [08:14:23]Read from MH i2c: 01 [08:14:23]MH_I2C_Read... [08:14:23]*** Stop cut motor [08:14:23]*** Cut end [08:14:23]Read from MH i2c: 01 07 00 [08:14:23]MH_I2C_Read... [08:14:23]Read from MH i2c: 01 07 00 D4 40 00 00 00 00 00 FF 0F 29 [08:14:23]process_action close_receipt done [08:14:23]requested_data is exist [08:14:23]produce_requested_data [08:14:23]requested_item fm.sn is exist - process it [08:14:23]wFMCommunicate request_size=4 [08:14:23]MH_SAM_APDU [08:14:23]CAPDU: 80 11 00 00 [08:14:23]Write to MH i2c: E2 08 00 D5 40 80 11 00 00 00 00 00 00 8F [08:14:23]Write i2c OK [08:14:23]MH_I2C_Read... [08:14:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:14:23]Read from MH i2c: E2 [08:14:23]MH_I2C_Read... [08:14:23]Read from MH i2c: E2 17 00 [08:14:23]MH_I2C_Read... [08:14:23]Read from MH i2c: E2 17 00 D5 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E5 [08:14:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:14:23]wFMCommunicate OK [08:14:23]requested_item fd.num is exist - process it [08:14:23]SAM_PROTO_GetFieldsCounters [08:14:23]wFMCommunicate request_size=4 [08:14:23]MH_SAM_APDU [08:14:23]CAPDU: 80 13 00 00 [08:14:23]Write to MH i2c: E2 08 00 D6 40 80 13 00 00 00 00 00 00 92 [08:14:23]Write i2c OK [08:14:23]MH_I2C_Read... [08:14:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:14:23]Read from MH i2c: E2 [08:14:23]MH_I2C_Read... [08:14:23]Read from MH i2c: E2 62 00 [08:14:23]MH_I2C_Read... [08:14:23]Read from MH i2c: E2 62 00 D6 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 5C 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [08:14:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 5C 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:14:23]wFMCommunicate OK [08:14:23]SAM_PROTO_GetFieldsCounters done [08:14:23]requested_item shift.num is exist - process it [08:14:23]requested_item shift.opened is exist - process it [08:14:23]req_shift_opened [08:14:23]FM_GetShiftState [08:14:23]SAM_PROTO_GetShiftState [08:14:23]wFMCommunicate request_size=4 [08:14:23]MH_SAM_APDU [08:14:23]CAPDU: 80 13 01 00 [08:14:23]Write to MH i2c: E2 08 00 D7 40 80 13 01 00 00 00 00 00 94 [08:14:23]Write i2c OK [08:14:23]MH_I2C_Read... [08:14:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:14:23]Read from MH i2c: E2 [08:14:23]MH_I2C_Read... [08:14:23]Read from MH i2c: E2 0E 00 [08:14:23]MH_I2C_Read... [08:14:23]Read from MH i2c: E2 0E 00 D7 40 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 40 [08:14:23]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [08:14:23]wFMCommunicate OK [08:14:23]SAM_PROTO_GetShiftState done [08:14:23]FM_GetShiftState done [08:14:23]req_shift_opened done [08:14:23]requested_item shift.open_date is exist - process it [08:14:23]req_shift_open_date [08:14:23]req_shift_open_date done [08:14:23]produce_requested_data done [08:14:23]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67420,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [08:14:23]process_action_free close_receipt [08:14:23]json_value_free [08:14:23]json_value_free done [08:14:23]process_json_proto returns [08:14:23]Send response to host [08:14:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67420,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [08:14:23]free response buf [08:14:23]execute_script done [08:14:23]execute_script returns [08:14:23]free content buf [08:14:23]Sock 10.Close socket [08:14:23]Sock 10.Thread stoped [08:14:26]OFD Sender: No OFD packet to send [08:14:31]OFD Sender: No OFD packet to send [08:14:36]OFD Sender: No OFD packet to send [08:14:41]OFD Sender: No OFD packet to send [08:14:46]OFD Sender: No OFD packet to send [08:14:51]OFD Sender: No OFD packet to send [08:14:56]OFD Sender: No OFD packet to send [08:15:01]OFD Sender: No OFD packet to send [08:15:06]OFD Sender: No OFD packet to send [08:15:11]OFD Sender: No OFD packet to send [08:15:16]OFD Sender: No OFD packet to send [08:15:21]OFD Sender: No OFD packet to send [08:15:26]OFD Sender: No OFD packet to send [08:15:31]OFD Sender: No OFD packet to send [08:15:36]OFD Sender: No OFD packet to send [08:15:41]OFD Sender: No OFD packet to send [08:15:46]OFD Sender: No OFD packet to send [08:15:51]OFD Sender: No OFD packet to send [08:15:56]OFD Sender: No OFD packet to send [08:16:01]OFD Sender: No OFD packet to send [08:16:06]OFD Sender: No OFD packet to send [08:16:11]OFD Sender: No OFD packet to send [08:16:16]OFD Sender: No OFD packet to send [08:16:21]OFD Sender: No OFD packet to send [08:16:26]OFD Sender: No OFD packet to send [08:16:31]OFD Sender: No OFD packet to send [08:16:36]OFD Sender: No OFD packet to send [08:16:41]OFD Sender: No OFD packet to send [08:16:46]OFD Sender: No OFD packet to send [08:16:51]OFD Sender: No OFD packet to send [08:16:56]OFD Sender: No OFD packet to send [08:17:01]OFD Sender: No OFD packet to send [08:17:06]OFD Sender: No OFD packet to send [08:17:11]OFD Sender: No OFD packet to send [08:17:16]OFD Sender: No OFD packet to send [08:17:21]OFD Sender: No OFD packet to send [08:17:26]OFD Sender: No OFD packet to send [08:17:31]OFD Sender: No OFD packet to send [08:17:36]OFD Sender: No OFD packet to send [08:17:41]OFD Sender: No OFD packet to send [08:17:46]OFD Sender: No OFD packet to send [08:17:51]OFD Sender: No OFD packet to send [08:17:56]OFD Sender: No OFD packet to send [08:18:01]OFD Sender: No OFD packet to send [08:18:06]OFD Sender: No OFD packet to send [08:18:11]OFD Sender: No OFD packet to send [08:18:16]OFD Sender: No OFD packet to send [08:18:21]OFD Sender: No OFD packet to send [08:18:26]OFD Sender: No OFD packet to send [08:18:31]OFD Sender: No OFD packet to send [08:18:36]OFD Sender: No OFD packet to send [08:18:41]OFD Sender: No OFD packet to send [08:18:46]OFD Sender: No OFD packet to send [08:18:51]OFD Sender: No OFD packet to send [08:18:56]OFD Sender: No OFD packet to send [08:19:01]OFD Sender: No OFD packet to send [08:19:06]OFD Sender: No OFD packet to send [08:19:11]OFD Sender: No OFD packet to send [08:19:16]OFD Sender: No OFD packet to send [08:19:21]OFD Sender: No OFD packet to send [08:19:26]OFD Sender: No OFD packet to send [08:19:31]OFD Sender: No OFD packet to send [08:19:36]OFD Sender: No OFD packet to send [08:19:41]OFD Sender: No OFD packet to send [08:19:46]OFD Sender: No OFD packet to send [08:19:51]OFD Sender: No OFD packet to send [08:19:56]OFD Sender: No OFD packet to send [08:20:01]OFD Sender: No OFD packet to send [08:20:06]OFD Sender: No OFD packet to send [08:20:11]OFD Sender: No OFD packet to send [08:20:16]OFD Sender: No OFD packet to send [08:20:21]OFD Sender: No OFD packet to send [08:20:26]OFD Sender: No OFD packet to send [08:20:31]OFD Sender: No OFD packet to send [08:20:36]OFD Sender: No OFD packet to send [08:20:41]OFD Sender: No OFD packet to send [08:20:46]OFD Sender: No OFD packet to send [08:20:51]OFD Sender: No OFD packet to send [08:20:56]OFD Sender: No OFD packet to send [08:21:01]OFD Sender: No OFD packet to send [08:21:06]OFD Sender: No OFD packet to send [08:21:11]OFD Sender: No OFD packet to send [08:21:16]OFD Sender: No OFD packet to send [08:21:21]OFD Sender: No OFD packet to send [08:21:26]OFD Sender: No OFD packet to send [08:21:31]OFD Sender: No OFD packet to send [08:21:36]OFD Sender: No OFD packet to send [08:21:41]OFD Sender: No OFD packet to send [08:21:46]OFD Sender: No OFD packet to send [08:21:51]OFD Sender: No OFD packet to send [08:21:56]OFD Sender: No OFD packet to send [08:22:01]OFD Sender: No OFD packet to send [08:22:06]OFD Sender: No OFD packet to send [08:22:11]OFD Sender: No OFD packet to send [08:22:16]OFD Sender: No OFD packet to send [08:22:21]OFD Sender: No OFD packet to send [08:22:26]OFD Sender: No OFD packet to send [08:22:31]OFD Sender: No OFD packet to send [08:22:36]OFD Sender: No OFD packet to send [08:22:41]OFD Sender: No OFD packet to send [08:22:46]OFD Sender: No OFD packet to send [08:22:51]OFD Sender: No OFD packet to send [08:22:56]OFD Sender: No OFD packet to send [08:23:01]OFD Sender: No OFD packet to send [08:23:06]OFD Sender: No OFD packet to send [08:23: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:36]OFD Sender: No OFD packet to send [08:23:41]OFD Sender: No OFD packet to send [08:23:46]OFD Sender: No OFD packet to send [08:23:51]OFD Sender: No OFD packet to send [08:23:56]OFD Sender: No OFD packet to send [08:24:01]OFD Sender: No OFD packet to send [08:24:06]OFD Sender: No OFD packet to send [08:24:11]OFD Sender: No OFD packet to send [08:24:16]OFD Sender: No OFD packet to send [08:24:21]OFD Sender: No OFD packet to send [08:24:26]OFD Sender: No OFD packet to send [08:24:31]OFD Sender: No OFD packet to send [08:24:36]OFD Sender: No OFD packet to send [08:24:41]OFD Sender: No OFD packet to send [08:24:46]OFD Sender: No OFD packet to send [08:24:51]OFD Sender: No OFD packet to send [08:24:56]OFD Sender: No OFD packet to send [08:25:01]OFD Sender: No OFD packet to send [08:25:06]OFD Sender: No OFD packet to send [08:25:11]OFD Sender: No OFD packet to send [08:25:16]OFD Sender: No OFD packet to send [08:25:21]OFD Sender: No OFD packet to send [08:25:26]OFD Sender: No OFD packet to send [08:25:31]OFD Sender: No OFD packet to send [08:25:36]OFD Sender: No OFD packet to send [08:25:41]OFD Sender: No OFD packet to send [08:25:46]OFD Sender: No OFD packet to send [08:25:51]OFD Sender: No OFD packet to send [08:25:56]OFD Sender: No OFD packet to send [08:26:01]OFD Sender: No OFD packet to send [08:26:06]OFD Sender: No OFD packet to send [08:26:11]OFD Sender: No OFD packet to send [08:26:16]OFD Sender: No OFD packet to send [08:26:21]OFD Sender: No OFD packet to send [08:26:26]OFD Sender: No OFD packet to send [08:26:31]OFD Sender: No OFD packet to send [08:26:36]OFD Sender: No OFD packet to send [08:26:41]OFD Sender: No OFD packet to send [08:26:46]OFD Sender: No OFD packet to send [08:26:51]OFD Sender: No OFD packet to send [08:26:56]OFD Sender: No OFD packet to send [08:27:01]OFD Sender: No OFD packet to send [08:27:06]OFD Sender: No OFD packet to send [08:27:11]OFD Sender: No OFD packet to send [08:27:16]OFD Sender: No OFD packet to send [08:27:21]OFD Sender: No OFD packet to send [08:27:26]OFD Sender: No OFD packet to send [08:27:31]OFD Sender: No OFD packet to send [08:27:36]OFD Sender: No OFD packet to send [08:27:41]OFD Sender: No OFD packet to send [08:27:46]OFD Sender: No OFD packet to send [08:27:51]OFD Sender: No OFD packet to send [08:27: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:12]OFD Sender: No OFD packet to send [08:29:17]OFD Sender: No OFD packet to send [08:29:22]OFD Sender: No OFD packet to send [08:29:27]OFD Sender: No OFD packet to send [08:29:32]OFD Sender: No OFD packet to send [08:29:37]OFD Sender: No OFD packet to send [08:29:42]OFD Sender: No OFD packet to send [08:29:47]OFD Sender: No OFD packet to send [08:29:52]OFD Sender: No OFD packet to send [08:29:57]OFD Sender: No OFD packet to send [08:30:02]OFD Sender: No OFD packet to send [08:30:07]OFD Sender: No OFD packet to send [08:30:12]OFD Sender: No OFD packet to send [08:30:17]OFD Sender: No OFD packet to send [08:30:22]OFD Sender: No OFD packet to send [08:30:27]OFD Sender: No OFD packet to send [08:30:32]OFD Sender: No OFD packet to send [08:30:32]accept exits with 7 [08:30:32]New connection [08:30:32]New thread 3067174244 created [08:30:32]Thread 3067030884 joined [08:30:32]Waiting for new connection... [08:30:32] Sock 7.Parse request [08:30:32]Sock 7.Check first char [08:30:32]Sock 7.First char is OK [08:30:32]request: POST /json_proto HTTP/1.0 [08:30:32]Method: POST [08:30:32]URL: /json_proto [08:30:32]Method is POST - this is cgi request [08:30:32]url: /json_proto [08:30:32]query_string will be loaded in cgi processing [08:30:32]execute_cgi json_proto POST (null) [08:30:32]execute_cgi path=json_proto method=POST [08:30:32]POST find Content-Length [08:30:32]Host: 172.17.41.195:8080 [08:30:32]Content-Length: 215 [08:30:32]Content-Type: application/json [08:30:32] [08:30:32]POST finish read [08:30:32]Found Content-Length = 215 [08:30:32]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:30:32]execute_script... [08:30:32]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:30:32]POST & json_proto [08:30:32]process_json_proto [08:30:32]json parsed OK: [08:30:32]protocol is kg_v1.0 [08:30:32]action value=get_value [08:30:32]process_action get_value [08:30:32]cmd_get_value [08:30:32]process_action get_value done [08:30:32]requested_data is exist [08:30:32]produce_requested_data [08:30:32]requested_item kkm.sn is exist - process it [08:30:32]requested_item kkm.ver is exist - process it [08:30:32]requested_item fm.sn is exist - process it [08:30:32]wFMCommunicate request_size=4 [08:30:32]MH_SAM_APDU [08:30:32]CAPDU: 80 11 00 00 [08:30:32]Write to MH i2c: E2 08 00 D8 40 80 11 00 00 00 00 00 00 92 [08:30:32]Write i2c OK [08:30:32]MH_I2C_Read... [08:30:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:32]Read from MH i2c: E2 [08:30:32]MH_I2C_Read... [08:30:32]Read from MH i2c: E2 17 00 [08:30:32]MH_I2C_Read... [08:30:32]Read from MH i2c: E2 17 00 D8 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E8 [08:30:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:30:32]wFMCommunicate OK [08:30:32]requested_item fd.num is exist - process it [08:30:32]SAM_PROTO_GetFieldsCounters [08:30:32]wFMCommunicate request_size=4 [08:30:32]MH_SAM_APDU [08:30:32]CAPDU: 80 13 00 00 [08:30:32]Write to MH i2c: E2 08 00 D9 40 80 13 00 00 00 00 00 00 95 [08:30:32]Write i2c OK [08:30:32]MH_I2C_Read... [08:30:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:30:32]Read from MH i2c: E2 [08:30:32]MH_I2C_Read... [08:30:32]Read from MH i2c: E2 62 00 [08:30:32]MH_I2C_Read... [08:30:32]Read from MH i2c: E2 62 00 D9 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 5C 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [08:30:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 5C 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:30:32]wFMCommunicate OK [08:30:32]SAM_PROTO_GetFieldsCounters done [08:30:32]requested_item shift.num is exist - process it [08:30:32]requested_item shift.opened is exist - process it [08:30:32]req_shift_opened [08:30:32]FM_GetShiftState [08:30:32]SAM_PROTO_GetShiftState [08:30:32]wFMCommunicate request_size=4 [08:30:32]MH_SAM_APDU [08:30:32]CAPDU: 80 13 01 00 [08:30:32]Write to MH i2c: E2 08 00 DA 40 80 13 01 00 00 00 00 00 97 [08:30:32]Write i2c OK [08:30:32]MH_I2C_Read... [08:30:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:32]Read from MH i2c: E2 [08:30:32]MH_I2C_Read... [08:30:32]Read from MH i2c: E2 0E 00 [08:30:32]MH_I2C_Read... [08:30:32]Read from MH i2c: E2 0E 00 DA 40 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 43 [08:30:32]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [08:30:32]wFMCommunicate OK [08:30:32]SAM_PROTO_GetShiftState done [08:30:32]FM_GetShiftState done [08:30:32]req_shift_opened done [08:30:32]requested_item shift.open_date is exist - process it [08:30:32]req_shift_open_date [08:30:32]req_shift_open_date done [08:30:32]produce_requested_data done [08:30:32]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67420,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [08:30:32]process_action_free get_value [08:30:32]json_value_free [08:30:32]json_value_free done [08:30:32]process_json_proto returns [08:30:32]Send response to host [08:30:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67420,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [08:30:32]free response buf [08:30:32]execute_script done [08:30:32]execute_script returns [08:30:32]free content buf [08:30:32]Sock 7.Close socket [08:30:32]Sock 7.Thread stoped [08:30:32]accept exits with 9 [08:30:32]New connection [08:30:32]New thread 3067030884 created [08:30:32]Thread 3067174244 joined [08:30:32]Waiting for new connection... [08:30:32] Sock 9.Parse request [08:30:32]Sock 9.Check first char [08:30:32]Sock 9.First char is OK [08:30:32]request: POST /json_proto HTTP/1.0 [08:30:32]Method: POST [08:30:32]URL: /json_proto [08:30:32]Method is POST - this is cgi request [08:30:32]url: /json_proto [08:30:32]query_string will be loaded in cgi processing [08:30:32]execute_cgi json_proto POST (null) [08:30:32]execute_cgi path=json_proto method=POST [08:30:32]POST find Content-Length [08:30:32]Host: 172.17.41.195:8080 [08:30:32]Content-Length: 331 [08:30:32]Content-Type: application/json [08:30:32] [08:30:32]POST finish read [08:30:32]Found Content-Length = 331 [08:30:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [08:30:32]execute_script... [08:30: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" ] } } [08:30:33]POST & json_proto [08:30:33]process_json_proto [08:30:33]json parsed OK: [08:30:33]protocol is kg_v1.0 [08:30:33]action value=get_value [08:30:33]process_action get_value [08:30:33]cmd_get_value [08:30:33]process_action get_value done [08:30:33]requested_data is exist [08:30:33]produce_requested_data [08:30:33]requested_item fm.sale.total is exist - process it [08:30:33]SAM_PROTO_GetFMData [08:30:33]wFMCommunicate request_size=4 [08:30:33]MH_SAM_APDU [08:30:33]CAPDU: 80 13 03 00 [08:30:33]Write to MH i2c: E2 08 00 DB 40 80 13 03 00 00 00 00 00 9A [08:30:33]Write i2c OK [08:30:33]MH_I2C_Read... [08:30:33]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [08:30:33]Read from MH i2c: E2 [08:30:33]MH_I2C_Read... [08:30:33]Read from MH i2c: E2 FD 00 [08:30:33]MH_I2C_Read... [08:30:33]Read from MH i2c: E2 FD 00 DB 40 00 C6 04 85 04 C2 04 6E 04 04 00 92 04 01 00 69 04 A3 00 6F 04 04 00 EA 03 01 00 B1 04 05 00 F8 50 F0 1A 03 70 04 05 00 C8 10 92 BF 02 72 04 04 00 30 40 5E 5B 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 BA 0A 6E 54 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 10 17 09 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 A8 00 00 00 B1 04 04 00 90 BE BA DC 70 04 04 00 90 BE BA DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AB B9 70 17 EF 03 09 90 00 08 [08:30:33]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 92 04 01 00 69 04 A3 00 6F 04 04 00 EA 03 01 00 B1 04 05 00 F8 50 F0 1A 03 70 04 05 00 C8 10 92 BF 02 72 04 04 00 30 40 5E 5B 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 BA 0A 6E 54 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 10 17 09 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 A8 00 00 00 B1 04 04 00 90 BE BA DC 70 04 04 00 90 BE BA DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AB B9 70 17 EF 03 09 90 00 [08:30:33]wFMCommunicate OK [08:30:33]wFMCommunicate request_size=4 [08:30:33]MH_SAM_APDU [08:30:33]CAPDU: 80 17 00 00 [08:30:33]Write to MH i2c: E2 08 00 DC 40 80 17 00 00 00 00 00 00 9C [08:30:33]Write i2c OK [08:30:33]MH_I2C_Read... [08:30:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:30:33]Read from MH i2c: E2 [08:30:33]MH_I2C_Read... [08:30:33]Read from MH i2c: E2 FD 00 [08:30:33]MH_I2C_Read... [08:30:33]Read from MH i2c: E2 FD 00 DC 40 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6C 0F F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 C0 [08:30:33]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6C 0F F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [08:30:33]wFMCommunicate OK [08:30:33]wFMCommunicate request_size=4 [08:30:33]MH_SAM_APDU [08:30:33]CAPDU: 80 17 00 00 [08:30:33]Write to MH i2c: E2 08 00 DD 40 80 17 00 00 00 00 00 00 9D [08:30:33]Write i2c OK [08:30:33]MH_I2C_Read... [08:30:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:30:34]Read from MH i2c: E2 [08:30:34]MH_I2C_Read... [08:30:34]Read from MH i2c: E2 FD 00 [08:30:34]MH_I2C_Read... [08:30:34]Read from MH i2c: E2 FD 00 DD 40 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 C4 [08:30:34]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [08:30:34]wFMCommunicate OK [08:30:34]wFMCommunicate request_size=4 [08:30:34]MH_SAM_APDU [08:30:34]CAPDU: 80 17 00 00 [08:30:34]Write to MH i2c: E2 08 00 DE 40 80 17 00 00 00 00 00 00 9E [08:30:34]Write i2c OK [08:30:34]MH_I2C_Read... [08:30:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:30:34]Read from MH i2c: E2 [08:30:34]MH_I2C_Read... [08:30:34]Read from MH i2c: E2 FD 00 [08:30:34]MH_I2C_Read... [08:30:34]Read from MH i2c: E2 FD 00 DE 40 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 19 [08:30:34]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [08:30:34]wFMCommunicate OK [08:30:34]wFMCommunicate request_size=4 [08:30:34]MH_SAM_APDU [08:30:34]CAPDU: 80 17 00 00 [08:30:34]Write to MH i2c: E2 08 00 DF 40 80 17 00 00 00 00 00 00 9F [08:30:34]Write i2c OK [08:30:34]MH_I2C_Read... [08:30:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [08:30:34]Read from MH i2c: E2 [08:30:34]MH_I2C_Read... [08:30:34]Read from MH i2c: E2 E3 00 [08:30:34]MH_I2C_Read... [08:30:34]Read from MH i2c: E2 E3 00 DF 40 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7E [08:30:34]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:30:34]wFMCommunicate OK [08:30:34]SAM_PROTO_GetFMData done [08:30:34]requested_item fm.sale_refund.total is exist - process it [08:30:34]requested_item fm.buy.total is exist - process it [08:30:34]requested_item shift.sale.total is exist - process it [08:30:34]SAM_PROTO_GetShiftData [08:30:34]wFMCommunicate request_size=4 [08:30:34]MH_SAM_APDU [08:30:34]CAPDU: 80 13 02 00 [08:30:34]Write to MH i2c: E2 08 00 E0 40 80 13 02 00 00 00 00 00 9E [08:30:34]Write i2c OK [08:30:34]MH_I2C_Read... [08:30:34]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [08:30:35]Read from MH i2c: E2 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: E2 FD 00 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: E2 FD 00 E0 40 00 AE 04 AA 04 AA 04 6E 04 04 00 12 00 00 00 69 04 9B 00 6F 04 04 00 12 00 00 00 B1 04 03 00 A2 72 14 70 04 03 00 20 65 11 72 04 03 00 82 0D 03 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 29 2C 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 57 2E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 AF [08:30:35]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 12 00 00 00 69 04 9B 00 6F 04 04 00 12 00 00 00 B1 04 03 00 A2 72 14 70 04 03 00 20 65 11 72 04 03 00 82 0D 03 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 29 2C 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 57 2E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:30:35]wFMCommunicate OK [08:30:35]wFMCommunicate request_size=4 [08:30:35]MH_SAM_APDU [08:30:35]CAPDU: 80 17 00 00 [08:30:35]Write to MH i2c: E2 08 00 E1 40 80 17 00 00 00 00 00 00 A1 [08:30:35]Write i2c OK [08:30:35]MH_I2C_Read... [08:30:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:30:35]Read from MH i2c: E2 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: E2 FD 00 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: E2 FD 00 E1 40 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 C3 [08:30:35]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [08:30:35]wFMCommunicate OK [08:30:35]wFMCommunicate request_size=4 [08:30:35]MH_SAM_APDU [08:30:35]CAPDU: 80 17 00 00 [08:30:35]Write to MH i2c: E2 08 00 E2 40 80 17 00 00 00 00 00 00 A2 [08:30:35]Write i2c OK [08:30:35]MH_I2C_Read... [08:30:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:30:35]Read from MH i2c: E2 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: E2 FD 00 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: E2 FD 00 E2 40 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 59 [08:30:35]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [08:30:35]wFMCommunicate OK [08:30:35]wFMCommunicate request_size=4 [08:30:35]MH_SAM_APDU [08:30:35]CAPDU: 80 17 00 00 [08:30:35]Write to MH i2c: E2 08 00 E3 40 80 17 00 00 00 00 00 00 A3 [08:30:35]Write i2c OK [08:30:35]MH_I2C_Read... [08:30:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:30:35]Read from MH i2c: E2 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: E2 FD 00 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: E2 FD 00 E3 40 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 15 [08:30:35]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [08:30:35]wFMCommunicate OK [08:30:35]wFMCommunicate request_size=4 [08:30:35]MH_SAM_APDU [08:30:35]CAPDU: 80 17 00 00 [08:30:35]Write to MH i2c: E2 08 00 E4 40 80 17 00 00 00 00 00 00 A4 [08:30:35]Write i2c OK [08:30:35]MH_I2C_Read... [08:30:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [08:30:36]Read from MH i2c: E2 [08:30:36]MH_I2C_Read... [08:30:36]Read from MH i2c: E2 CB 00 [08:30:36]MH_I2C_Read... [08:30:36]Read from MH i2c: E2 CB 00 E4 40 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 8D [08:30:36]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:30:36]wFMCommunicate OK [08:30:36]SAM_PROTO_GetShiftData done [08:30:36]requested_item shift.sale.total_cash is exist - process it [08:30:36]requested_item shift.sale_refund.total is exist - process it [08:30:36]requested_item shift.sale_refund.total_cash is exist - process it [08:30:36]requested_item shift.buy.total is exist - process it [08:30:36]requested_item shift.buy.total_cash is exist - process it [08:30:36]produce_requested_data done [08:30:36]produce_requested_data return {"fm.sale.total":133368588.72,"fm.sale_refund.total":37032260.00,"fm.buy.total":0.00,"shift.sale.total":13400.66,"shift.sale.total_cash":11400.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:30:36]process_action_free get_value [08:30:36]json_value_free [08:30:36]json_value_free done [08:30:36]process_json_proto returns [08:30:36]Send response to host [08:30:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133368588.72,"fm.sale_refund.total":37032260.00,"fm.buy.total":0.00,"shift.sale.total":13400.66,"shift.sale.total_cash":11400.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:30:36]free response buf [08:30:36]execute_script done [08:30:36]execute_script returns [08:30:36]free content buf [08:30:36]Sock 9.Close socket [08:30:36]Sock 9.Thread stoped [08:30:37]OFD Sender: No OFD packet to send [08:30:42]OFD Sender: No OFD packet to send [08:30:47]OFD Sender: No OFD packet to send [08:30:52]OFD Sender: No OFD packet to send [08:30:57]OFD Sender: No OFD packet to send [08:31:02]OFD Sender: No OFD packet to send [08:31:07]OFD Sender: No OFD packet to send [08:31:12]OFD Sender: No OFD packet to send [08:31:17]OFD Sender: No OFD packet to send [08:31:21]accept exits with 7 [08:31:21]New connection [08:31:21]New thread 3067174244 created [08:31:21]Thread 3067030884 joined [08:31:21]Waiting for new connection... [08:31:21] Sock 7.Parse request [08:31:21]Sock 7.Check first char [08:31:21]Sock 7.First char is OK [08:31:21]request: POST /json_proto HTTP/1.0 [08:31:21]Method: POST [08:31:21]URL: /json_proto [08:31:21]Method is POST - this is cgi request [08:31:21]url: /json_proto [08:31:21]query_string will be loaded in cgi processing [08:31:21]execute_cgi json_proto POST (null) [08:31:21]execute_cgi path=json_proto method=POST [08:31:21]POST find Content-Length [08:31:21]Host: 172.17.41.195:8080 [08:31:21]Content-Length: 812 [08:31:21]Content-Type: application/json [08:31:21] [08:31:21]POST finish read [08:31:21]Found Content-Length = 812 [08:31:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 44.250, "sum" : 3000.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3000.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:21]execute_script... [08:31: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)507423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 44.250, "sum" : 3000.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3000.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:21]POST & json_proto [08:31:21]process_json_proto [08:31:21]json parsed OK: [08:31:21]protocol is kg_v1.0 [08:31:21]action value=close_receipt [08:31:21]process_action close_receipt [08:31:21]cmd_close_receipt [08:31:21]MH_GetDate [08:31:21]Write to MH i2c: F0 00 00 E5 40 14 [08:31:21]Write i2c OK [08:31:21]MH_I2C_Read... [08:31:21]Read from MH i2c: F0 [08:31:21]MH_I2C_Read... [08:31:21]Read from MH i2c: F0 09 00 [08:31:21]MH_I2C_Read... [08:31:21]Read from MH i2c: F0 09 00 E5 40 00 5E C4 45 66 FC 21 6F 64 DA [08:31:21]GetLastDocTimeStamp 1715847263 [08:31:21]current date 1715848286 [08:31:21]FM_GetShiftState [08:31:21]SAM_PROTO_GetShiftState [08:31:21]wFMCommunicate request_size=4 [08:31:21]MH_SAM_APDU [08:31:21]CAPDU: 80 13 01 00 [08:31:21]Write to MH i2c: E2 08 00 E6 40 80 13 01 00 00 00 00 00 A3 [08:31:21]Write i2c OK [08:31:21]MH_I2C_Read... [08:31:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:21]Read from MH i2c: E2 [08:31:21]MH_I2C_Read... [08:31:21]Read from MH i2c: E2 0E 00 [08:31:21]MH_I2C_Read... [08:31:21]Read from MH i2c: E2 0E 00 E6 40 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 4F [08:31:21]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [08:31:21]wFMCommunicate OK [08:31:21]SAM_PROTO_GetShiftState done [08:31:21]FM_GetShiftState done [08:31:21]opened in 1715818916 [08:31:21]opened+sec_in_day 1715905316 [08:31:21]quantity*price = 300015 [08:31:21]sum+1 = 300016 [08:31:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.15 НСП 1% : 26.55 НДС 12% : 318.60 Наличными: 0.00 Безнал.: 3000.15 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 19 16.05.2024 08:31 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67421 ФПД: 55428278804534 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T083126&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67421&fm=55428278804534&tin=02508201610067®Number=0000000000091845&sum=300015 [08:31:23]StoreToDocumentArchive [08:31:23]shift 357 fd 67421 [08:31:23]save to /storage/0357/doc_00067421 [08:31:23]save last doc name /storage/0357/doc_00067421 to /storage/kkm_last_doc_name [08:31:23]save OK [08:31:23]Clear old archive folders... [08:31:23]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:31:23]tlvbuf is 00C38D30 [08:31:23]SAM_PROTO_ClearQueue [08:31:23]wFMCommunicate request_size=4 [08:31:23]MH_SAM_APDU [08:31:23]CAPDU: 80 09 00 00 [08:31:23]Write to MH i2c: E2 08 00 F3 40 80 09 00 00 00 00 00 00 A5 [08:31:23]Write i2c OK [08:31:23]MH_I2C_Read... [08:31:23]Read from MH i2c: E2 [08:31:23]MH_I2C_Read... [08:31:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:31:23]Read from MH i2c: E2 03 00 [08:31:23]MH_I2C_Read... [08:31:23]Read from MH i2c: E2 03 00 F3 40 00 90 00 A7 [08:31:23]RAPDU: 90 00 [08:31:23]wFMCommunicate OK [08:31:23]SAM_PROTO_ClearQueue done [08:31:23]KKMCreateOFDPacket [08:31:23]OFDProtocolAddRootSTLVToBuf [08:31:23]FM_MakeSignedData [08:31:23]FM_MakeSignedData [08:31:23]SAM_PROTO_SignData [08:31:23]wFMCommunicate request_size=4 [08:31:23]MH_SAM_APDU [08:31:23]CAPDU: 80 0D 01 02 [08:31:23]Write to MH i2c: E2 08 00 F4 40 80 0D 01 02 00 00 00 00 AD [08:31:23]Write i2c OK [08:31:23]MH_I2C_Read... [08:31:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:31:23]Read from MH i2c: E2 [08:31:23]MH_I2C_Read... [08:31:23]Read from MH i2c: E2 03 00 [08:31:23]MH_I2C_Read... [08:31:23]Read from MH i2c: E2 03 00 F4 40 00 90 00 A8 [08:31:23]RAPDU: 90 00 [08:31:23]wFMCommunicate OK [08:31:23]wFMCommunicate request_size=255 [08:31:23]MH_SAM_APDU [08:31:23]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA AC 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 EF 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EF 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 74 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EF 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 5E C4 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5D 07 01 00 35 04 06 00 [08:31:23]Write to MH i2c: E2 02 01 F5 40 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA AC 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 EF 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EF 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 74 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EF 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 5E C4 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5D 07 01 00 35 04 06 00 00 00 98 [08:31:23]Write i2c OK [08:31:23]MH_I2C_Read... [08:31:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:23]Read from MH i2c: E2 [08:31:23]MH_I2C_Read... [08:31:23]Read from MH i2c: E2 03 00 [08:31:23]MH_I2C_Read... [08:31:23]Read from MH i2c: E2 03 00 F5 40 00 90 00 A9 [08:31:23]RAPDU: 90 00 [08:31:23]wFMCommunicate OK [08:31:23]wFMCommunicate request_size=11 [08:31:23]MH_SAM_APDU [08:31:23]CAPDU: 80 0D 02 02 06 32 69 66 DE 60 36 [08:31:23]Write to MH i2c: E2 0E 00 F6 40 80 0D 02 02 06 00 32 69 66 DE 60 36 00 00 31 [08:31:23]Write i2c OK [08:31:23]MH_I2C_Read... [08:31:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:23]Read from MH i2c: E2 [08:31:23]MH_I2C_Read... [08:31:23]Read from MH i2c: E2 03 00 [08:31:23]MH_I2C_Read... [08:31:23]Read from MH i2c: E2 03 00 F6 40 00 90 00 AA [08:31:23]RAPDU: 90 00 [08:31:23]wFMCommunicate OK [08:31:23]wFMCommunicate request_size=4 [08:31:23]MH_SAM_APDU [08:31:23]CAPDU: 80 0D 03 02 [08:31:23]Write to MH i2c: E2 08 00 F7 40 80 0D 03 02 00 00 00 00 B2 [08:31:23]Write i2c OK [08:31:23]MH_I2C_Read... [08:31:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:31:23]Read from MH i2c: E2 [08:31:23]MH_I2C_Read... [08:31:23]Read from MH i2c: E2 0B 00 [08:31:23]MH_I2C_Read... [08:31:23]Read from MH i2c: E2 0B 00 F7 40 00 E3 69 C1 26 D6 6C EC C5 90 00 D9 [08:31:23]RAPDU: E3 69 C1 26 D6 6C EC C5 90 00 [08:31:23]wFMCommunicate OK [08:31:23]SAM_PROTO_SignData done [08:31:23]FM_MakeSignedData done [08:31:23]CreateOFDProtocolMessage [08:31:23]wFMCommunicate request_size=4 [08:31:23]MH_SAM_APDU [08:31:23]CAPDU: 80 11 00 00 [08:31:23]Write to MH i2c: E2 08 00 F8 40 80 11 00 00 00 00 00 00 B2 [08:31:23]Write i2c OK [08:31:23]MH_I2C_Read... [08:31:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:23]Read from MH i2c: E2 [08:31:23]MH_I2C_Read... [08:31:23]Read from MH i2c: E2 17 00 [08:31:23]MH_I2C_Read... [08:31:23]Read from MH i2c: E2 17 00 F8 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 08 [08:31:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:31:23]wFMCommunicate OK [08:31:23]CreateOFDProtocolMessage done [08:31:23]OFDSenderStorePacket 67421 [08:31:23]StoreOFDPacket docnum=67421 [08:31:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 4A 13 08 01 8D DE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA AC 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 EF 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EF 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 74 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EF 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 5E C4 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5D 07 01 00 35 04 06 00 32 69 66 DE 60 36 E3 69 C1 26 D6 6C EC C5 [08:31:23]CheckFolder [08:31:23]dirname=/storage/ofd_packets [08:31:23]CheckFolder done [08:31:23]ProducePacketName [08:31:23]name=ofd_packets/00067421 [08:31:23]NVStorageSaveData ofd_packets/00067421 [08:31:23]File name is /storage/ofd_packets/00067421 [08:31:23]Write 302 bytes [08:31:23]NVStorageSaveData done [08:31:23]OFDSenderStorePacket done [08:31:23]KKMCreateOFDPacket done [08:31:23]NVStorageSaveData kkm_last_timestamp [08:31:23]File name is /storage/kkm_last_timestamp [08:31:23]Write 4 bytes [08:31:23]NVStorageSaveData done [08:31:23]ExternCall_PrintAddStr [08:31:23]wPrintStart [08:31:23]Write to MH i2c: 01 00 00 F9 40 39 [08:31:23]Write i2c OK [08:31:23]MH_I2C_Read... [08:31:23]Read from MH i2c: 01 [08:31:23]MH_I2C_Read... [08:31:23]Read from MH i2c: 01 07 00 [08:31:23]MH_I2C_Read... [08:31:23]Read from MH i2c: 01 07 00 F9 40 00 00 00 00 00 FF 0F 4E [08:31:23]RasterBufferAndPrint [08:31:23]line Счет N : (1)507423 [08:31:23]line ИНН: 02508201610067 [08:31:23]line Контрольно-Кассовый Чек [08:31:23]line ПРОДАЖА [08:31:23]line ТРК (МРК, ГНК) : 22 [08:31:23]line Товар: 2710124130 [08:31:23]line Super-92-К-5 [08:31:23]line 44.250 * 67.80 [08:31:23]line = 3000.15 [08:31:23]line НДС 12% НСП 1% [08:31:23]line > о реализуемом товаре [08:31:23]line ИТОГО: 3000.15 [08:31:23]line НСП 1% : 26.55 [08:31:23]line НДС 12% : 318.60 [08:31:23]line Наличными: 0.00 [08:31:23]line Безнал.: 3000.15 [08:31:23]line Место: АЗС № 91 "Партнер Нефть" [08:31:23]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [08:31:23]line СНО: Общий режим [08:31:23]line Чек 19 16.05.2024 08:31 [08:31:23]line Смена: 357 ФФД: 1.0 [08:31:23]line ЗНМ: 0300000119 [08:31:23]line РНМ: 0000000000091845 [08:31:23]line Версия ККМ: 001 [08:31:23]line Платежная система: Бакай Банк [08:31:23]line ФМ: 0000000000871829 [08:31:23]line ФД: 67421 [08:31:23]line ФПД: 55428278804534 [08:31:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T083126&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67421&fm=55428278804534&tin=02508201610067®Number=0000000000091845&sum=300015 [08:31:23]OFD Sender: Processing packet 67421 [packets to send 35, broken 34] [08:31:23]ProducePacketName [08:31:23]name=ofd_packets/00067421 [08:31:23]OFD Sender: To server: pG, [08:31:23]CommunicateWithHost lk.salyk.kg:30040 [08:31:23]ConnectInit lk.salyk.kg [08:31:23]written 0, free lines is 4095 [08:31:24]Connected sock=10 [08:31:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 4A 13 08 01 8D DE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA AC 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 EF 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EF 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 74 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EF 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 5E C4 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5D 07 01 00 35 04 06 00 32 69 66 DE 60 36 E3 69 C1 26 D6 6C EC C5 [08:31:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 CA 07 47 00 6F 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5D 07 01 00 F4 03 04 00 3A 6C 45 66 B6 04 01 00 00 F5 CB C4 FA 24 21 70 D4 [08:31:24]CommunicateWithHost err = 0 [08:31:24]CheckOFDResponse [08:31:24]1017 (14) - 77093643461234 [08:31:24]1041 (16) - 0000000000871829 [08:31:24]1040 (4) - 67421 [08:31:24]1012 (4) - 16.05.2024 02:15 [08:31:24]1206 (1) - 0 [08:31:24]OFD Sender: Remove packet 67421 [08:31:24]ProducePacketName [08:31:24]name=ofd_packets/00067421 [08:31:24]NVStorageDeleteData [08:31:24]Write to MH i2c: 01 00 00 22 41 63 [08:31:24]Write i2c OK [08:31:24]MH_I2C_Read... [08:31:24]Read from MH i2c: 01 [08:31:24]MH_I2C_Read... [08:31:24]Read from MH i2c: 01 07 00 [08:31:24]MH_I2C_Read... [08:31:24]Read from MH i2c: 01 07 00 22 41 00 00 00 00 00 E6 0C 5C [08:31:24]RasterBufferAndPrint [08:31:24]line [08:31:24]line [08:31:24]line [08:31:24]line [08:31:24]line [08:31:24]written 0, free lines is 3310 [08:31:24]MH_Cut [08:31:24]Write to MH i2c: D1 01 00 29 41 01 3C [08:31:24]Write i2c OK [08:31:24]MH_I2C_Read... [08:31:24]Read from MH i2c: D1 [08:31:24]MH_I2C_Read... [08:31:24]Read from MH i2c: D1 01 00 [08:31:24]MH_I2C_Read... [08:31:24]Read from MH i2c: D1 01 00 29 41 00 3B [08:31:24]Write to MH i2c: 01 00 00 2A 41 6B [08:31:24]Write i2c OK [08:31:24]MH_I2C_Read... [08:31:24]OFD Sender: No OFD packet to send [08:31:25]*** Cut start [08:31:25]*** Purtial cut [08:31:25]*** Stage 1: CUTSNS_PIN = 1 [08:31:25]Read from MH i2c: 01 [08:31:25]MH_I2C_Read... [08:31:25]*** Stop cut motor [08:31:25]*** Cut end [08:31:25]Read from MH i2c: 01 07 00 [08:31:25]MH_I2C_Read... [08:31:25]Read from MH i2c: 01 07 00 2A 41 00 00 00 00 00 FF 0F 80 [08:31:25]process_action close_receipt done [08:31:25]requested_data is exist [08:31:25]produce_requested_data [08:31:25]requested_item fm.sn is exist - process it [08:31:25]wFMCommunicate request_size=4 [08:31:25]MH_SAM_APDU [08:31:25]CAPDU: 80 11 00 00 [08:31:25]Write to MH i2c: E2 08 00 2B 41 80 11 00 00 00 00 00 00 E6 [08:31:25]Write i2c OK [08:31:25]MH_I2C_Read... [08:31:25]Read from MH i2c: E2 [08:31:25]MH_I2C_Read... [08:31:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:25]Read from MH i2c: E2 17 00 [08:31:25]MH_I2C_Read... [08:31:25]Read from MH i2c: E2 17 00 2B 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3C [08:31:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:31:25]wFMCommunicate OK [08:31:25]requested_item fd.num is exist - process it [08:31:25]SAM_PROTO_GetFieldsCounters [08:31:25]wFMCommunicate request_size=4 [08:31:25]MH_SAM_APDU [08:31:25]CAPDU: 80 13 00 00 [08:31:25]Write to MH i2c: E2 08 00 2C 41 80 13 00 00 00 00 00 00 E9 [08:31:25]Write i2c OK [08:31:25]MH_I2C_Read... [08:31:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:31:25]Read from MH i2c: E2 [08:31:25]MH_I2C_Read... [08:31:25]Read from MH i2c: E2 62 00 [08:31:25]MH_I2C_Read... [08:31:25]Read from MH i2c: E2 62 00 2C 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 5D 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [08:31: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 5D 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:31:25]wFMCommunicate OK [08:31:25]SAM_PROTO_GetFieldsCounters done [08:31:25]requested_item shift.num is exist - process it [08:31:25]requested_item shift.opened is exist - process it [08:31:25]req_shift_opened [08:31:25]FM_GetShiftState [08:31:25]SAM_PROTO_GetShiftState [08:31:25]wFMCommunicate request_size=4 [08:31:25]MH_SAM_APDU [08:31:25]CAPDU: 80 13 01 00 [08:31:25]Write to MH i2c: E2 08 00 2D 41 80 13 01 00 00 00 00 00 EB [08:31:25]Write i2c OK [08:31:25]MH_I2C_Read... [08:31:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:25]Read from MH i2c: E2 [08:31:25]MH_I2C_Read... [08:31:25]Read from MH i2c: E2 0E 00 [08:31:25]MH_I2C_Read... [08:31:25]Read from MH i2c: E2 0E 00 2D 41 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 97 [08:31:25]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [08:31:25]wFMCommunicate OK [08:31:25]SAM_PROTO_GetShiftState done [08:31:25]FM_GetShiftState done [08:31:25]req_shift_opened done [08:31:25]requested_item shift.open_date is exist - process it [08:31:25]req_shift_open_date [08:31:25]req_shift_open_date done [08:31:25]produce_requested_data done [08:31:25]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67421,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [08:31:25]process_action_free close_receipt [08:31:25]json_value_free [08:31:25]json_value_free done [08:31:25]process_json_proto returns [08:31:25]Send response to host [08:31:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67421,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [08:31:25]free response buf [08:31:25]execute_script done [08:31:25]execute_script returns [08:31:25]free content buf [08:31:25]Sock 7.Close socket [08:31:25]Sock 7.Thread stoped [08:31:26]accept exits with 9 [08:31:26]New connection [08:31:26]New thread 3067030884 created [08:31:26]Thread 3067174244 joined [08:31:26]Waiting for new connection... [08:31:26] Sock 9.Parse request [08:31:26]Sock 9.Check first char [08:31:26]Sock 9.First char is OK [08:31:26]request: POST /json_proto HTTP/1.0 [08:31:26]Method: POST [08:31:26]URL: /json_proto [08:31:26]Method is POST - this is cgi request [08:31:26]url: /json_proto [08:31:26]query_string will be loaded in cgi processing [08:31:26]execute_cgi json_proto POST (null) [08:31:26]execute_cgi path=json_proto method=POST [08:31:26]POST find Content-Length [08:31:26]Host: 172.17.41.195:8080 [08:31:26]Content-Length: 677 [08:31:26]Content-Type: application/json [08:31:26] [08:31:26]POST finish read [08:31:26]Found Content-Length = 677 [08:31:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507424", "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.80, "quantity" : 7.490, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:26]execute_script... [08:31:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507424", "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.80, "quantity" : 7.490, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:26]POST & json_proto [08:31:26]process_json_proto [08:31:26]json parsed OK: [08:31:26]protocol is kg_v1.0 [08:31:26]action value=close_receipt [08:31:26]process_action close_receipt [08:31:26]cmd_close_receipt [08:31:26]MH_GetDate [08:31:26]Write to MH i2c: F0 00 00 2E 41 5E [08:31:26]Write i2c OK [08:31:26]MH_I2C_Read... [08:31:26]Read from MH i2c: F0 [08:31:26]MH_I2C_Read... [08:31:26]Read from MH i2c: F0 09 00 [08:31:26]MH_I2C_Read... [08:31:26]Read from MH i2c: F0 09 00 2E 41 00 63 C4 45 66 FC 21 6F 64 29 [08:31:26]GetLastDocTimeStamp 1715848286 [08:31:26]current date 1715848291 [08:31:26]FM_GetShiftState [08:31:26]SAM_PROTO_GetShiftState [08:31:26]wFMCommunicate request_size=4 [08:31:26]MH_SAM_APDU [08:31:26]CAPDU: 80 13 01 00 [08:31:26]Write to MH i2c: E2 08 00 2F 41 80 13 01 00 00 00 00 00 ED [08:31:26]Write i2c OK [08:31:26]MH_I2C_Read... [08:31:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:26]Read from MH i2c: E2 [08:31:26]MH_I2C_Read... [08:31:26]Read from MH i2c: E2 0E 00 [08:31:26]MH_I2C_Read... [08:31:26]Read from MH i2c: E2 0E 00 2F 41 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 99 [08:31:26]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [08:31:26]wFMCommunicate OK [08:31:26]SAM_PROTO_GetShiftState done [08:31:26]FM_GetShiftState done [08:31:26]opened in 1715818916 [08:31:26]opened+sec_in_day 1715905316 [08:31:26]quantity*price = 50033 [08:31:26]sum+1 = 50034 [08:31:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 20 16.05.2024 08:31 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67422 ФПД: 98056965368782 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T083131&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67422&fm=98056965368782&tin=02508201610067®Number=0000000000091845&sum=50000 [08:31:27]StoreToDocumentArchive [08:31:27]shift 357 fd 67422 [08:31:27]save to /storage/0357/doc_00067422 [08:31:27]save last doc name /storage/0357/doc_00067422 to /storage/kkm_last_doc_name [08:31:27]save OK [08:31:27]Clear old archive folders... [08:31:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:31:27]tlvbuf is 00C026B0 [08:31:27]SAM_PROTO_ClearQueue [08:31:27]wFMCommunicate request_size=4 [08:31:27]MH_SAM_APDU [08:31:27]CAPDU: 80 09 00 00 [08:31:27]Write to MH i2c: E2 08 00 3C 41 80 09 00 00 00 00 00 00 EF [08:31:27]Write i2c OK [08:31:27]MH_I2C_Read... [08:31:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:31:27]Read from MH i2c: E2 [08:31:27]MH_I2C_Read... [08:31:27]Read from MH i2c: E2 03 00 [08:31:27]MH_I2C_Read... [08:31:27]Read from MH i2c: E2 03 00 3C 41 00 90 00 F1 [08:31:27]RAPDU: 90 00 [08:31:27]wFMCommunicate OK [08:31:27]SAM_PROTO_ClearQueue done [08:31:27]KKMCreateOFDPacket [08:31:27]OFDProtocolAddRootSTLVToBuf [08:31:27]FM_MakeSignedData [08:31:27]FM_MakeSignedData [08:31:27]SAM_PROTO_SignData [08:31:27]wFMCommunicate request_size=4 [08:31:27]MH_SAM_APDU [08:31:27]CAPDU: 80 0D 01 02 [08:31:27]Write to MH i2c: E2 08 00 3D 41 80 0D 01 02 00 00 00 00 F7 [08:31:27]Write i2c OK [08:31:27]MH_I2C_Read... [08:31:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:31:27]Read from MH i2c: E2 [08:31:27]MH_I2C_Read... [08:31:27]Read from MH i2c: E2 03 00 [08:31:27]MH_I2C_Read... [08:31:27]Read from MH i2c: E2 03 00 3D 41 00 90 00 F2 [08:31:27]RAPDU: 90 00 [08:31:27]wFMCommunicate OK [08:31:27]wFMCommunicate request_size=255 [08:31:27]MH_SAM_APDU [08:31: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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 63 C4 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5E 07 01 00 35 04 06 00 59 [08:31:27]Write to MH i2c: E2 02 01 3E 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 63 C4 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5E 07 01 00 35 04 06 00 59 00 00 8D [08:31:27]Write i2c OK [08:31:27]MH_I2C_Read... [08:31:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:28]Read from MH i2c: E2 [08:31:28]MH_I2C_Read... [08:31:28]Read from MH i2c: E2 03 00 [08:31:28]MH_I2C_Read... [08:31:28]Read from MH i2c: E2 03 00 3E 41 00 90 00 F3 [08:31:28]RAPDU: 90 00 [08:31:28]wFMCommunicate OK [08:31:28]wFMCommunicate request_size=10 [08:31:28]MH_SAM_APDU [08:31:28]CAPDU: 80 0D 02 02 05 2E AA 96 AB CE [08:31:28]Write to MH i2c: E2 0D 00 3F 41 80 0D 02 02 05 00 2E AA 96 AB CE 00 00 EB [08:31:28]Write i2c OK [08:31:28]MH_I2C_Read... [08:31:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:28]Read from MH i2c: E2 [08:31:28]MH_I2C_Read... [08:31:28]Read from MH i2c: E2 03 00 [08:31:28]MH_I2C_Read... [08:31:28]Read from MH i2c: E2 03 00 3F 41 00 90 00 F4 [08:31:28]RAPDU: 90 00 [08:31:28]wFMCommunicate OK [08:31:28]wFMCommunicate request_size=4 [08:31:28]MH_SAM_APDU [08:31:28]CAPDU: 80 0D 03 02 [08:31:28]Write to MH i2c: E2 08 00 40 41 80 0D 03 02 00 00 00 00 FC [08:31:28]Write i2c OK [08:31:28]MH_I2C_Read... [08:31:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:31:28]Read from MH i2c: E2 [08:31:28]MH_I2C_Read... [08:31:28]Read from MH i2c: E2 0B 00 [08:31:28]MH_I2C_Read... [08:31:28]Read from MH i2c: E2 0B 00 40 41 00 7C 72 65 15 4E 03 93 CF 90 00 18 [08:31:28]RAPDU: 7C 72 65 15 4E 03 93 CF 90 00 [08:31:28]wFMCommunicate OK [08:31:28]SAM_PROTO_SignData done [08:31:28]FM_MakeSignedData done [08:31:28]CreateOFDProtocolMessage [08:31:28]wFMCommunicate request_size=4 [08:31:28]MH_SAM_APDU [08:31:28]CAPDU: 80 11 00 00 [08:31:28]Write to MH i2c: E2 08 00 41 41 80 11 00 00 00 00 00 00 FC [08:31:28]Write i2c OK [08:31:28]MH_I2C_Read... [08:31:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:28]Read from MH i2c: E2 [08:31:28]MH_I2C_Read... [08:31:28]Read from MH i2c: E2 17 00 [08:31:28]MH_I2C_Read... [08:31:28]Read from MH i2c: E2 17 00 41 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 52 [08:31:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:31:28]wFMCommunicate OK [08:31:28]CreateOFDProtocolMessage done [08:31:28]OFDSenderStorePacket 67422 [08:31:28]StoreOFDPacket docnum=67422 [08:31:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 EA F6 07 01 46 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 63 C4 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5E 07 01 00 35 04 06 00 59 2E AA 96 AB CE 7C 72 65 15 4E 03 93 CF [08:31:28]CheckFolder [08:31:28]dirname=/storage/ofd_packets [08:31:28]CheckFolder done [08:31:28]ProducePacketName [08:31:28]name=ofd_packets/00067422 [08:31:28]NVStorageSaveData ofd_packets/00067422 [08:31:28]File name is /storage/ofd_packets/00067422 [08:31:28]Write 301 bytes [08:31:28]NVStorageSaveData done [08:31:28]OFDSenderStorePacket done [08:31:28]KKMCreateOFDPacket done [08:31:28]NVStorageSaveData kkm_last_timestamp [08:31:28]File name is /storage/kkm_last_timestamp [08:31:28]Write 4 bytes [08:31:28]NVStorageSaveData done [08:31:28]ExternCall_PrintAddStr [08:31:28]wPrintStart [08:31:28]Write to MH i2c: 01 00 00 42 41 83 [08:31:28]Write i2c OK [08:31:28]MH_I2C_Read... [08:31:28]Read from MH i2c: 01 [08:31:28]MH_I2C_Read... [08:31:28]Read from MH i2c: 01 07 00 [08:31:28]MH_I2C_Read... [08:31:28]Read from MH i2c: 01 07 00 42 41 00 00 00 00 00 FF 0F 98 [08:31:28]RasterBufferAndPrint [08:31:28]line Счет N : (1)507424 [08:31:28]line ИНН: 02508201610067 [08:31:28]line Контрольно-Кассовый Чек [08:31:28]line ПРОДАЖА [08:31:28]line ТРК (МРК, ГНК) : 43 [08:31:28]line Товар: 2710124130 [08:31:28]line Аи-92-К-5 [08:31:28]line 7.490 * 66.80 [08:31:28]line = 500.33 [08:31:28]line НДС 12% НСП 1% [08:31:28]line > о реализуемом товаре [08:31:28]line ОКРУГЛЕНИЕ: -0.33 [08:31:28]line ИТОГО: 500.00 [08:31:28]line Внесено: 500.00 [08:31:28]line СДАЧА: 0.00 [08:31:28]line НСП 1% : 4.43 [08:31:28]line НДС 12% : 53.13 [08:31:28]line Наличными: 500.00 [08:31:28]line Безнал.: 0.00 [08:31:28]line Место: АЗС № 91 "Партнер Нефть" [08:31:28]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [08:31:28]line СНО: Общий режим [08:31:28]line Чек 20 16.05.2024 08:31 [08:31:28]line Смена: 357 ФФД: 1.0 [08:31:28]line ЗНМ: 0300000119 [08:31:28]line РНМ: 0000000000091845 [08:31:28]line Версия ККМ: 001 [08:31:28]line ФМ: 0000000000871829 [08:31:28]line ФД: 67422 [08:31:28]line ФПД: 98056965368782 [08:31:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T083131&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67422&fm=98056965368782&tin=02508201610067®Number=0000000000091845&sum=50000 [08:31:28]OFD Sender: Processing packet 67422 [packets to send 35, broken 34] [08:31:28]ProducePacketName [08:31:28]name=ofd_packets/00067422 [08:31:28]OFD Sender: To server: pG, [08:31:28]CommunicateWithHost lk.salyk.kg:30040 [08:31:28]ConnectInit lk.salyk.kg [08:31:28]written 0, free lines is 4095 [08:31:28]Connected sock=7 [08:31: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 38 32 39 0F 01 00 00 EA F6 07 01 46 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 63 C4 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5E 07 01 00 35 04 06 00 59 2E AA 96 AB CE 7C 72 65 15 4E 03 93 CF [08:31:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 D1 1C 47 00 85 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 38 32 39 10 04 04 00 5E 07 01 00 F4 03 04 00 3E 6C 45 66 B6 04 01 00 00 23 22 ED D6 8C 67 A5 7E [08:31:28]CommunicateWithHost err = 0 [08:31:28]CheckOFDResponse [08:31:28]1017 (14) - 77093643461234 [08:31:28]1041 (16) - 0000000000871829 [08:31:28]1040 (4) - 67422 [08:31:28]1012 (4) - 16.05.2024 02:15 [08:31:28]1206 (1) - 0 [08:31:28]OFD Sender: Remove packet 67422 [08:31:28]ProducePacketName [08:31:28]name=ofd_packets/00067422 [08:31:28]NVStorageDeleteData [08:31:29]Write to MH i2c: 01 00 00 6C 41 AD [08:31:29]Write i2c OK [08:31:29]MH_I2C_Read... [08:31:29]Read from MH i2c: 01 [08:31:29]MH_I2C_Read... [08:31:29]Read from MH i2c: 01 07 00 [08:31:29]MH_I2C_Read... [08:31:29]Read from MH i2c: 01 07 00 6C 41 00 00 00 00 00 EE 0C AE [08:31:29]RasterBufferAndPrint [08:31:29]line [08:31:29]line [08:31:29]line [08:31:29]line [08:31:29]line [08:31:29]written 0, free lines is 3325 [08:31:29]MH_Cut [08:31:29]Write to MH i2c: D1 01 00 73 41 01 86 [08:31:29]Write i2c OK [08:31:29]MH_I2C_Read... [08:31:29]Read from MH i2c: D1 [08:31:29]MH_I2C_Read... [08:31:29]Read from MH i2c: D1 01 00 [08:31:29]MH_I2C_Read... [08:31:29]Read from MH i2c: D1 01 00 73 41 00 85 [08:31:29]Write to MH i2c: 01 00 00 74 41 B5 [08:31:29]Write i2c OK [08:31:29]MH_I2C_Read... [08:31:29]OFD Sender: No OFD packet to send [08:31:29]*** Cut start [08:31:29]*** Purtial cut [08:31:29]*** CUTSNS_PIN = 0 [08:31:30]*** Stage 1: CUTSNS_PIN = 1 [08:31:31]Read from MH i2c: 01 [08:31:31]MH_I2C_Read... [08:31:31]*** Stop cut motor [08:31:31]*** Cut end [08:31:31]Read from MH i2c: 01 07 00 [08:31:31]MH_I2C_Read... [08:31:31]Read from MH i2c: 01 07 00 74 41 00 00 00 00 00 FF 0F CA [08:31:31]process_action close_receipt done [08:31:31]requested_data is exist [08:31:31]produce_requested_data [08:31:31]requested_item fm.sn is exist - process it [08:31:31]wFMCommunicate request_size=4 [08:31:31]MH_SAM_APDU [08:31:31]CAPDU: 80 11 00 00 [08:31:31]Write to MH i2c: E2 08 00 75 41 80 11 00 00 00 00 00 00 30 [08:31:31]Write i2c OK [08:31:31]MH_I2C_Read... [08:31:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:31]Read from MH i2c: E2 [08:31:31]MH_I2C_Read... [08:31:31]Read from MH i2c: E2 17 00 [08:31:31]MH_I2C_Read... [08:31:31]Read from MH i2c: E2 17 00 75 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 86 [08:31:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:31:31]wFMCommunicate OK [08:31:31]requested_item fd.num is exist - process it [08:31:31]SAM_PROTO_GetFieldsCounters [08:31:31]wFMCommunicate request_size=4 [08:31:31]MH_SAM_APDU [08:31:31]CAPDU: 80 13 00 00 [08:31:31]Write to MH i2c: E2 08 00 76 41 80 13 00 00 00 00 00 00 33 [08:31:31]Write i2c OK [08:31:31]MH_I2C_Read... [08:31:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:31:32]Read from MH i2c: E2 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: E2 62 00 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: E2 62 00 76 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 5E 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [08:31: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 5E 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:31:32]wFMCommunicate OK [08:31:32]SAM_PROTO_GetFieldsCounters done [08:31:32]requested_item shift.num is exist - process it [08:31:32]requested_item shift.opened is exist - process it [08:31:32]req_shift_opened [08:31:32]FM_GetShiftState [08:31:32]SAM_PROTO_GetShiftState [08:31:32]wFMCommunicate request_size=4 [08:31:32]MH_SAM_APDU [08:31:32]CAPDU: 80 13 01 00 [08:31:32]Write to MH i2c: E2 08 00 77 41 80 13 01 00 00 00 00 00 35 [08:31:32]Write i2c OK [08:31:32]MH_I2C_Read... [08:31:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:32]Read from MH i2c: E2 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: E2 0E 00 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: E2 0E 00 77 41 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 E1 [08:31:32]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [08:31:32]wFMCommunicate OK [08:31:32]SAM_PROTO_GetShiftState done [08:31:32]FM_GetShiftState done [08:31:32]req_shift_opened done [08:31:32]requested_item shift.open_date is exist - process it [08:31:32]req_shift_open_date [08:31:32]req_shift_open_date done [08:31:32]produce_requested_data done [08:31:32]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67422,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [08:31:32]process_action_free close_receipt [08:31:32]json_value_free [08:31:32]json_value_free done [08:31:32]process_json_proto returns [08:31:32]Send response to host [08:31:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67422,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [08:31:32]free response buf [08:31:32]execute_script done [08:31:32]execute_script returns [08:31:32]free content buf [08:31:32]Sock 9.Close socket [08:31:32]Sock 9.Thread stoped [08:31:34]OFD Sender: No OFD packet to send [08:31:39]OFD Sender: No OFD packet to send [08:31:44]OFD Sender: No OFD packet to send [08:31:49]OFD Sender: No OFD packet to send [08:31:54]OFD Sender: No OFD packet to send [08:31:59]OFD Sender: No OFD packet to send [08:32:04]OFD Sender: No OFD packet to send [08:32:09]OFD Sender: No OFD packet to send [08:32:14]OFD Sender: No OFD packet to send [08:32:19]OFD Sender: No OFD packet to send [08:32:24]OFD Sender: No OFD packet to send [08:32:29]OFD Sender: No OFD packet to send [08:32:34]OFD Sender: No OFD packet to send [08:32:39]OFD Sender: No OFD packet to send [08:32:44]OFD Sender: No OFD packet to send [08:32:49]OFD Sender: No OFD packet to send [08:32:54]OFD Sender: No OFD packet to send [08:32:59]OFD Sender: No OFD packet to send [08:33:04]OFD Sender: No OFD packet to send [08:33:09]OFD Sender: No OFD packet to send [08:33:14]OFD Sender: No OFD packet to send [08:33:19]OFD Sender: No OFD packet to send [08:33:24]OFD Sender: No OFD packet to send [08:33:29]OFD Sender: No OFD packet to send [08:33:34]OFD Sender: No OFD packet to send [08:33:39]OFD Sender: No OFD packet to send [08:33:44]OFD Sender: No OFD packet to send [08:33:49]OFD Sender: No OFD packet to send [08:33:54]OFD Sender: No OFD packet to send [08:33:59]OFD Sender: No OFD packet to send [08:34:04]OFD Sender: No OFD packet to send [08:34:09]OFD Sender: No OFD packet to send [08:34:14]OFD Sender: No OFD packet to send [08:34:19]OFD Sender: No OFD packet to send [08:34:24]OFD Sender: No OFD packet to send [08:34:29]OFD Sender: No OFD packet to send [08:34:34]OFD Sender: No OFD packet to send [08:34:39]OFD Sender: No OFD packet to send [08:34:44]OFD Sender: No OFD packet to send [08:34:49]OFD Sender: No OFD packet to send [08:34:54]OFD Sender: No OFD packet to send [08:34:59]OFD Sender: No OFD packet to send [08:35:04]OFD Sender: No OFD packet to send [08:35:09]OFD Sender: No OFD packet to send [08:35:14]OFD Sender: No OFD packet to send [08:35:19]OFD Sender: No OFD packet to send [08:35:24]OFD Sender: No OFD packet to send [08:35:29]OFD Sender: No OFD packet to send [08:35:34]OFD Sender: No OFD packet to send [08:35:39]OFD Sender: No OFD packet to send [08:35:43]accept exits with 10 [08:35:43]New connection [08:35:43]New thread 3067174244 created [08:35:43]Thread 3067030884 joined [08:35:43]Waiting for new connection... [08:35:43] Sock 10.Parse request [08:35:43]Sock 10.Check first char [08:35:43]Sock 10.First char is OK [08:35:43]request: POST /json_proto HTTP/1.0 [08:35:43]Method: POST [08:35:43]URL: /json_proto [08:35:43]Method is POST - this is cgi request [08:35:43]url: /json_proto [08:35:43]query_string will be loaded in cgi processing [08:35:43]execute_cgi json_proto POST (null) [08:35:43]execute_cgi path=json_proto method=POST [08:35:43]POST find Content-Length [08:35:43]Host: 172.17.41.195:8080 [08:35:43]Content-Length: 682 [08:35:43]Content-Type: application/json [08:35:43] [08:35:43]POST finish read [08:35:43]Found Content-Length = 682 [08:35:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507425", "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.80, "quantity" : 17.970, "sum" : 1200.40, "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:35:43]execute_script... [08:35:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507425", "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.80, "quantity" : 17.970, "sum" : 1200.40, "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:35:43]POST & json_proto [08:35:43]process_json_proto [08:35:43]json parsed OK: [08:35:43]protocol is kg_v1.0 [08:35:43]action value=close_receipt [08:35:43]process_action close_receipt [08:35:43]cmd_close_receipt [08:35:43]MH_GetDate [08:35:43]Write to MH i2c: F0 00 00 78 41 A8 [08:35:43]Write i2c OK [08:35:43]MH_I2C_Read... [08:35:43]Read from MH i2c: F0 [08:35:43]MH_I2C_Read... [08:35:43]Read from MH i2c: F0 09 00 [08:35:43]MH_I2C_Read... [08:35:43]Read from MH i2c: F0 09 00 78 41 00 64 C5 45 66 FC 21 6F 64 75 [08:35:43]GetLastDocTimeStamp 1715848291 [08:35:43]current date 1715848548 [08:35:43]FM_GetShiftState [08:35:43]SAM_PROTO_GetShiftState [08:35:43]wFMCommunicate request_size=4 [08:35:43]MH_SAM_APDU [08:35:43]CAPDU: 80 13 01 00 [08:35:43]Write to MH i2c: E2 08 00 79 41 80 13 01 00 00 00 00 00 37 [08:35:43]Write i2c OK [08:35:43]MH_I2C_Read... [08:35:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:43]Read from MH i2c: E2 [08:35:43]MH_I2C_Read... [08:35:43]Read from MH i2c: E2 0E 00 [08:35:43]MH_I2C_Read... [08:35:43]Read from MH i2c: E2 0E 00 79 41 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 E3 [08:35:43]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [08:35:43]wFMCommunicate OK [08:35:43]SAM_PROTO_GetShiftState done [08:35:43]FM_GetShiftState done [08:35:43]opened in 1715818916 [08:35:43]opened+sec_in_day 1715905316 [08:35:43]quantity*price = 120039 [08:35:43]sum+1 = 120041 [08:35:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.48 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 21 16.05.2024 08:35 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67423 ФПД: 138162270133505 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T083548&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67423&fm=138162270133505&tin=02508201610067®Number=0000000000091845&sum=120000 [08:35:44]StoreToDocumentArchive [08:35:44]shift 357 fd 67423 [08:35:44]save to /storage/0357/doc_00067423 [08:35:44]save last doc name /storage/0357/doc_00067423 to /storage/kkm_last_doc_name [08:35:44]save OK [08:35:44]Clear old archive folders... [08:35:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:35:44]tlvbuf is 00B3B170 [08:35:44]SAM_PROTO_ClearQueue [08:35:44]wFMCommunicate request_size=4 [08:35:44]MH_SAM_APDU [08:35:44]CAPDU: 80 09 00 00 [08:35:44]Write to MH i2c: E2 08 00 86 41 80 09 00 00 00 00 00 00 39 [08:35:44]Write i2c OK [08:35:44]MH_I2C_Read... [08:35:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:35:44]Read from MH i2c: E2 [08:35:44]MH_I2C_Read... [08:35:44]Read from MH i2c: E2 03 00 [08:35:44]MH_I2C_Read... [08:35:44]Read from MH i2c: E2 03 00 86 41 00 90 00 3B [08:35:44]RAPDU: 90 00 [08:35:44]wFMCommunicate OK [08:35:44]SAM_PROTO_ClearQueue done [08:35:44]KKMCreateOFDPacket [08:35:44]OFDProtocolAddRootSTLVToBuf [08:35:44]FM_MakeSignedData [08:35:44]FM_MakeSignedData [08:35:44]SAM_PROTO_SignData [08:35:44]wFMCommunicate request_size=4 [08:35:44]MH_SAM_APDU [08:35:44]CAPDU: 80 0D 01 02 [08:35:44]Write to MH i2c: E2 08 00 87 41 80 0D 01 02 00 00 00 00 41 [08:35:44]Write i2c OK [08:35:44]MH_I2C_Read... [08:35:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:35:45]Read from MH i2c: E2 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: E2 03 00 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: E2 03 00 87 41 00 90 00 3C [08:35:45]RAPDU: 90 00 [08:35:45]wFMCommunicate OK [08:35:45]wFMCommunicate request_size=255 [08:35:45]MH_SAM_APDU [08:35: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 32 46 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E8 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 CC 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 15 00 00 00 F4 03 04 00 64 C5 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5F 07 01 00 35 04 06 00 7D [08:35:45]Write to MH i2c: E2 02 01 88 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 46 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E8 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 CC 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 15 00 00 00 F4 03 04 00 64 C5 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5F 07 01 00 35 04 06 00 7D 00 00 3B [08:35:45]Write i2c OK [08:35:45]MH_I2C_Read... [08:35:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:45]Read from MH i2c: E2 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: E2 03 00 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: E2 03 00 88 41 00 90 00 3D [08:35:45]RAPDU: 90 00 [08:35:45]wFMCommunicate OK [08:35:45]wFMCommunicate request_size=10 [08:35:45]MH_SAM_APDU [08:35:45]CAPDU: 80 0D 02 02 05 A8 69 08 5D 01 [08:35:45]Write to MH i2c: E2 0D 00 89 41 80 0D 02 02 05 00 A8 69 08 5D 01 00 00 C5 [08:35:45]Write i2c OK [08:35:45]MH_I2C_Read... [08:35:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:45]Read from MH i2c: E2 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: E2 03 00 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: E2 03 00 89 41 00 90 00 3E [08:35:45]RAPDU: 90 00 [08:35:45]wFMCommunicate OK [08:35:45]wFMCommunicate request_size=4 [08:35:45]MH_SAM_APDU [08:35:45]CAPDU: 80 0D 03 02 [08:35:45]Write to MH i2c: E2 08 00 8A 41 80 0D 03 02 00 00 00 00 46 [08:35:45]Write i2c OK [08:35:45]MH_I2C_Read... [08:35:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:35:45]Read from MH i2c: E2 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: E2 0B 00 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: E2 0B 00 8A 41 00 E9 CE 16 17 4E 02 9A 62 90 00 77 [08:35:45]RAPDU: E9 CE 16 17 4E 02 9A 62 90 00 [08:35:45]wFMCommunicate OK [08:35:45]SAM_PROTO_SignData done [08:35:45]FM_MakeSignedData done [08:35:45]CreateOFDProtocolMessage [08:35:45]wFMCommunicate request_size=4 [08:35:45]MH_SAM_APDU [08:35:45]CAPDU: 80 11 00 00 [08:35:45]Write to MH i2c: E2 08 00 8B 41 80 11 00 00 00 00 00 00 46 [08:35:45]Write i2c OK [08:35:45]MH_I2C_Read... [08:35:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:45]Read from MH i2c: E2 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: E2 17 00 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: E2 17 00 8B 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 9C [08:35:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:35:45]wFMCommunicate OK [08:35:45]CreateOFDProtocolMessage done [08:35:45]OFDSenderStorePacket 67423 [08:35:45]StoreOFDPacket docnum=67423 [08:35:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 D2 C1 07 01 8E 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 46 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E8 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 CC 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 15 00 00 00 F4 03 04 00 64 C5 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5F 07 01 00 35 04 06 00 7D A8 69 08 5D 01 E9 CE 16 17 4E 02 9A 62 [08:35:45]CheckFolder [08:35:45]dirname=/storage/ofd_packets [08:35:45]CheckFolder done [08:35:45]ProducePacketName [08:35:45]name=ofd_packets/00067423 [08:35:45]NVStorageSaveData ofd_packets/00067423 [08:35:45]File name is /storage/ofd_packets/00067423 [08:35:45]Write 301 bytes [08:35:45]NVStorageSaveData done [08:35:45]OFDSenderStorePacket done [08:35:45]KKMCreateOFDPacket done [08:35:45]NVStorageSaveData kkm_last_timestamp [08:35:45]File name is /storage/kkm_last_timestamp [08:35:45]Write 4 bytes [08:35:45]NVStorageSaveData done [08:35:45]ExternCall_PrintAddStr [08:35:45]wPrintStart [08:35:45]Write to MH i2c: 01 00 00 8C 41 CD [08:35:45]Write i2c OK [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: 01 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: 01 07 00 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: 01 07 00 8C 41 00 00 00 00 00 FF 0F E2 [08:35:45]RasterBufferAndPrint [08:35:45]line Счет N : (1)507425 [08:35:45]line ИНН: 02508201610067 [08:35:45]line Контрольно-Кассовый Чек [08:35:45]line ПРОДАЖА [08:35:45]line ТРК (МРК, ГНК) : 33 [08:35:45]line Товар: 2710124130 [08:35:45]line Аи-92-К-5 [08:35:45]line 17.970 * 66.80 [08:35:45]line = 1200.40 [08:35:45]line НДС 12% НСП 1% [08:35:45]line > о реализуемом товаре [08:35:45]line ОКРУГЛЕНИЕ: -0.40 [08:35:45]line ИТОГО: 1200.00 [08:35:45]line Внесено: 1200.00 [08:35:45]line СДАЧА: 0.00 [08:35:45]line НСП 1% : 10.62 [08:35:45]line НДС 12% : 127.48 [08:35:45]line Наличными: 1200.00 [08:35:45]line Безнал.: 0.00 [08:35:45]line Место: АЗС № 91 "Партнер Нефть" [08:35:45]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [08:35:45]line СНО: Общий режим [08:35:45]line Чек 21 16.05.2024 08:35 [08:35:45]line Смена: 357 ФФД: 1.0 [08:35:45]line ЗНМ: 0300000119 [08:35:45]line РНМ: 0000000000091845 [08:35:45]line Версия ККМ: 001 [08:35:45]line ФМ: 0000000000871829 [08:35:45]line ФД: 67423 [08:35:45]line ФПД: 138162270133505 [08:35:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T083548&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67423&fm=138162270133505&tin=02508201610067®Number=0000000000091845&sum=120000 [08:35:45]written 0, free lines is 4095 [08:35:45]OFD Sender: Processing packet 67423 [packets to send 35, broken 34] [08:35:45]ProducePacketName [08:35:45]name=ofd_packets/00067423 [08:35:45]OFD Sender: To server: pG, [08:35:45]CommunicateWithHost lk.salyk.kg:30040 [08:35:45]ConnectInit lk.salyk.kg [08:35:45]Connected sock=11 [08:35:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 D2 C1 07 01 8E 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 46 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E8 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 CC 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 15 00 00 00 F4 03 04 00 64 C5 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5F 07 01 00 35 04 06 00 7D A8 69 08 5D 01 E9 CE 16 17 4E 02 9A 62 [08:35:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 94 FA 47 00 2B 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5F 07 01 00 F4 03 04 00 40 6D 45 66 B6 04 01 00 00 29 12 D9 A8 A6 45 71 A4 [08:35:46]CommunicateWithHost err = 0 [08:35:46]CheckOFDResponse [08:35:46]1017 (14) - 77093643461234 [08:35:46]1041 (16) - 0000000000871829 [08:35:46]1040 (4) - 67423 [08:35:46]1012 (4) - 16.05.2024 02:19 [08:35:46]1206 (1) - 0 [08:35:46]OFD Sender: Remove packet 67423 [08:35:46]ProducePacketName [08:35:46]name=ofd_packets/00067423 [08:35:46]NVStorageDeleteData [08:35:46]Write to MH i2c: 01 00 00 B6 41 F7 [08:35:46]Write i2c OK [08:35:46]MH_I2C_Read... [08:35:46]Read from MH i2c: 01 [08:35:46]MH_I2C_Read... [08:35:46]Read from MH i2c: 01 07 00 [08:35:46]MH_I2C_Read... [08:35:46]Read from MH i2c: 01 07 00 B6 41 00 00 00 00 00 C2 0C CC [08:35:46]RasterBufferAndPrint [08:35:46]line [08:35:46]line [08:35:46]line [08:35:46]line [08:35:46]line [08:35:46]written 0, free lines is 3272 [08:35:46]MH_Cut [08:35:46]Write to MH i2c: D1 01 00 BD 41 01 D0 [08:35:46]Write i2c OK [08:35:46]MH_I2C_Read... [08:35:46]Read from MH i2c: D1 [08:35:46]MH_I2C_Read... [08:35:46]Read from MH i2c: D1 01 00 [08:35:46]MH_I2C_Read... [08:35:46]Read from MH i2c: D1 01 00 BD 41 00 CF [08:35:46]Write to MH i2c: 01 00 00 BE 41 FF [08:35:46]Write i2c OK [08:35:46]MH_I2C_Read... [08:35:46]OFD Sender: No OFD packet to send [08:35:47]*** Cut start [08:35:47]*** Purtial cut [08:35:47]*** Stage 1: CUTSNS_PIN = 1 [08:35:47]Read from MH i2c: 01 [08:35:47]MH_I2C_Read... [08:35:47]*** Stop cut motor [08:35:47]*** Cut end [08:35:47]Read from MH i2c: 01 07 00 [08:35:47]MH_I2C_Read... [08:35:47]Read from MH i2c: 01 07 00 BE 41 00 00 00 00 00 FF 0F 14 [08:35:47]process_action close_receipt done [08:35:47]requested_data is exist [08:35:47]produce_requested_data [08:35:47]requested_item fm.sn is exist - process it [08:35:47]wFMCommunicate request_size=4 [08:35:47]MH_SAM_APDU [08:35:47]CAPDU: 80 11 00 00 [08:35:47]Write to MH i2c: E2 08 00 BF 41 80 11 00 00 00 00 00 00 7A [08:35:47]Write i2c OK [08:35:47]MH_I2C_Read... [08:35:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:47]Read from MH i2c: E2 [08:35:47]MH_I2C_Read... [08:35:47]Read from MH i2c: E2 17 00 [08:35:47]MH_I2C_Read... [08:35:47]Read from MH i2c: E2 17 00 BF 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D0 [08:35:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:35:47]wFMCommunicate OK [08:35:47]requested_item fd.num is exist - process it [08:35:47]SAM_PROTO_GetFieldsCounters [08:35:47]wFMCommunicate request_size=4 [08:35:47]MH_SAM_APDU [08:35:47]CAPDU: 80 13 00 00 [08:35:47]Write to MH i2c: E2 08 00 C0 41 80 13 00 00 00 00 00 00 7D [08:35:47]Write i2c OK [08:35:47]MH_I2C_Read... [08:35:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:35:47]Read from MH i2c: E2 [08:35:47]MH_I2C_Read... [08:35:47]Read from MH i2c: E2 62 00 [08:35:47]MH_I2C_Read... [08:35:47]Read from MH i2c: E2 62 00 C0 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 5F 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [08:35:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 5F 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:35:47]wFMCommunicate OK [08:35:47]SAM_PROTO_GetFieldsCounters done [08:35:47]requested_item shift.num is exist - process it [08:35:47]requested_item shift.opened is exist - process it [08:35:47]req_shift_opened [08:35:47]FM_GetShiftState [08:35:47]SAM_PROTO_GetShiftState [08:35:47]wFMCommunicate request_size=4 [08:35:47]MH_SAM_APDU [08:35:47]CAPDU: 80 13 01 00 [08:35:47]Write to MH i2c: E2 08 00 C1 41 80 13 01 00 00 00 00 00 7F [08:35:47]Write i2c OK [08:35:47]MH_I2C_Read... [08:35:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:47]Read from MH i2c: E2 [08:35:47]MH_I2C_Read... [08:35:47]Read from MH i2c: E2 0E 00 [08:35:47]MH_I2C_Read... [08:35:47]Read from MH i2c: E2 0E 00 C1 41 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 2B [08:35:47]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [08:35:47]wFMCommunicate OK [08:35:47]SAM_PROTO_GetShiftState done [08:35:47]FM_GetShiftState done [08:35:47]req_shift_opened done [08:35:47]requested_item shift.open_date is exist - process it [08:35:47]req_shift_open_date [08:35:47]req_shift_open_date done [08:35:47]produce_requested_data done [08:35:47]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67423,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [08:35:47]process_action_free close_receipt [08:35:47]json_value_free [08:35:47]json_value_free done [08:35:47]process_json_proto returns [08:35:47]Send response to host [08:35:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67423,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [08:35:47]free response buf [08:35:47]execute_script done [08:35:47]execute_script returns [08:35:47]free content buf [08:35:47]Sock 10.Close socket [08:35:47]Sock 10.Thread stoped [08:35:51]OFD Sender: No OFD packet to send [08:35:56]OFD Sender: No OFD packet to send [08:36:01]OFD Sender: No OFD packet to send [08:36:06]OFD Sender: No OFD packet to send [08:36:11]OFD Sender: No OFD packet to send [08:36:16]OFD Sender: No OFD packet to send [08:36:21]OFD Sender: No OFD packet to send [08:36:26]OFD Sender: No OFD packet to send [08:36:31]OFD Sender: No OFD packet to send [08:36:36]OFD Sender: No OFD packet to send [08:36:41]OFD Sender: No OFD packet to send [08:36:46]OFD Sender: No OFD packet to send [08:36:51]OFD Sender: No OFD packet to send [08:36:56]OFD Sender: No OFD packet to send [08:37:01]OFD Sender: No OFD packet to send [08:37:06]OFD Sender: No OFD packet to send [08:37:11]OFD Sender: No OFD packet to send [08:37:16]OFD Sender: No OFD packet to send [08:37:21]OFD Sender: No OFD packet to send [08:37:26]OFD Sender: No OFD packet to send [08:37:31]OFD Sender: No OFD packet to send [08:37:36]OFD Sender: No OFD packet to send [08:37:41]OFD Sender: No OFD packet to send [08:37:46]OFD Sender: No OFD packet to send [08:37:51]OFD Sender: No OFD packet to send [08:37:56]OFD Sender: No OFD packet to send [08:38:01]OFD Sender: No OFD packet to send [08:38:06]OFD Sender: No OFD packet to send [08:38:11]OFD Sender: No OFD packet to send [08:38:16]OFD Sender: No OFD packet to send [08:38:21]OFD Sender: No OFD packet to send [08:38:26]OFD Sender: No OFD packet to send [08:38:30]accept exits with 7 [08:38:30]New connection [08:38:30]New thread 3067030884 created [08:38:30]Thread 3067174244 joined [08:38:30]Waiting for new connection... [08:38:30] Sock 7.Parse request [08:38:30]Sock 7.Check first char [08:38:30]Sock 7.First char is OK [08:38:30]request: POST /json_proto HTTP/1.0 [08:38:30]Method: POST [08:38:30]URL: /json_proto [08:38:30]Method is POST - this is cgi request [08:38:30]url: /json_proto [08:38:30]query_string will be loaded in cgi processing [08:38:30]execute_cgi json_proto POST (null) [08:38:30]execute_cgi path=json_proto method=POST [08:38:30]POST find Content-Length [08:38:30]Host: 172.17.41.195:8080 [08:38:30]Content-Length: 639 [08:38:30]Content-Type: application/json [08:38:30] [08:38:30]POST finish read [08:38:30]Found Content-Length = 639 [08:38:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507427", "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.80, "quantity" : 5.000, "sum" : 334.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 334.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:38:30]execute_script... [08:38: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)507427", "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.80, "quantity" : 5.000, "sum" : 334.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 334.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:38:30]POST & json_proto [08:38:30]process_json_proto [08:38:30]json parsed OK: [08:38:30]protocol is kg_v1.0 [08:38:30]action value=close_receipt [08:38:30]process_action close_receipt [08:38:30]cmd_close_receipt [08:38:30]MH_GetDate [08:38:30]Write to MH i2c: F0 00 00 C2 41 F2 [08:38:30]Write i2c OK [08:38:30]MH_I2C_Read... [08:38:30]Read from MH i2c: F0 [08:38:30]MH_I2C_Read... [08:38:30]Read from MH i2c: F0 09 00 [08:38:30]MH_I2C_Read... [08:38:30]Read from MH i2c: F0 09 00 C2 41 00 0B C6 45 66 FC 21 6F 64 67 [08:38:30]GetLastDocTimeStamp 1715848548 [08:38:30]current date 1715848715 [08:38:30]FM_GetShiftState [08:38:30]SAM_PROTO_GetShiftState [08:38:30]wFMCommunicate request_size=4 [08:38:30]MH_SAM_APDU [08:38:30]CAPDU: 80 13 01 00 [08:38:30]Write to MH i2c: E2 08 00 C3 41 80 13 01 00 00 00 00 00 81 [08:38:30]Write i2c OK [08:38:30]MH_I2C_Read... [08:38:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:38:30]Read from MH i2c: E2 [08:38:30]MH_I2C_Read... [08:38:30]Read from MH i2c: E2 0E 00 [08:38:30]MH_I2C_Read... [08:38:30]Read from MH i2c: E2 0E 00 C3 41 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 2D [08:38:30]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [08:38:30]wFMCommunicate OK [08:38:30]SAM_PROTO_GetShiftState done [08:38:30]FM_GetShiftState done [08:38:30]opened in 1715818916 [08:38:30]opened+sec_in_day 1715905316 [08:38:30]quantity*price = 33400 [08:38:30]sum+1 = 33401 [08:38:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 334.00 НСП 1% : 2.96 НДС 12% : 35.47 Наличными: 334.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 22 16.05.2024 08:38 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67424 ФПД: 221047751653307 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T083835&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67424&fm=221047751653307&tin=02508201610067®Number=0000000000091845&sum=33400 [08:38:31]StoreToDocumentArchive [08:38:31]shift 357 fd 67424 [08:38:31]save to /storage/0357/doc_00067424 [08:38:31]save last doc name /storage/0357/doc_00067424 to /storage/kkm_last_doc_name [08:38:31]save OK [08:38:31]Clear old archive folders... [08:38:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:38:31]tlvbuf is 00BF6CB0 [08:38:31]SAM_PROTO_ClearQueue [08:38:31]wFMCommunicate request_size=4 [08:38:31]MH_SAM_APDU [08:38:31]CAPDU: 80 09 00 00 [08:38:31]Write to MH i2c: E2 08 00 D0 41 80 09 00 00 00 00 00 00 83 [08:38:31]Write i2c OK [08:38:31]MH_I2C_Read... [08:38:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:38:31]Read from MH i2c: E2 [08:38:31]MH_I2C_Read... [08:38:31]Read from MH i2c: E2 03 00 [08:38:31]MH_I2C_Read... [08:38:31]Read from MH i2c: E2 03 00 D0 41 00 90 00 85 [08:38:31]RAPDU: 90 00 [08:38:31]wFMCommunicate OK [08:38:31]SAM_PROTO_ClearQueue done [08:38:31]KKMCreateOFDPacket [08:38:31]OFDProtocolAddRootSTLVToBuf [08:38:31]FM_MakeSignedData [08:38:31]FM_MakeSignedData [08:38:31]SAM_PROTO_SignData [08:38:31]wFMCommunicate request_size=4 [08:38:31]MH_SAM_APDU [08:38:31]CAPDU: 80 0D 01 02 [08:38:31]Write to MH i2c: E2 08 00 D1 41 80 0D 01 02 00 00 00 00 8B [08:38:31]Write i2c OK [08:38:31]MH_I2C_Read... [08:38:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:38:31]Read from MH i2c: E2 [08:38:31]MH_I2C_Read... [08:38:31]Read from MH i2c: E2 03 00 [08:38:31]MH_I2C_Read... [08:38:31]Read from MH i2c: E2 03 00 D1 41 00 90 00 86 [08:38:31]RAPDU: 90 00 [08:38:31]wFMCommunicate OK [08:38:31]wFMCommunicate request_size=255 [08:38:31]MH_SAM_APDU [08:38: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 88 13 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 78 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 0D 00 00 00 00 07 04 06 00 78 82 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 0B C6 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 60 07 01 00 35 04 06 00 C9 [08:38:31]Write to MH i2c: E2 02 01 D2 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 78 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 0D 00 00 00 00 07 04 06 00 78 82 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 0B C6 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 60 07 01 00 35 04 06 00 C9 00 00 8F [08:38:31]Write i2c OK [08:38:31]MH_I2C_Read... [08:38:31]OFD Sender: No OFD packet to send [08:38:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:38:32]Read from MH i2c: E2 [08:38:32]MH_I2C_Read... [08:38:32]Read from MH i2c: E2 03 00 [08:38:32]MH_I2C_Read... [08:38:32]Read from MH i2c: E2 03 00 D2 41 00 90 00 87 [08:38:32]RAPDU: 90 00 [08:38:32]wFMCommunicate OK [08:38:32]wFMCommunicate request_size=10 [08:38:32]MH_SAM_APDU [08:38:32]CAPDU: 80 0D 02 02 05 0A B0 B7 37 BB [08:38:32]Write to MH i2c: E2 0D 00 D3 41 80 0D 02 02 05 00 0A B0 B7 37 BB 00 00 FB [08:38:32]Write i2c OK [08:38:32]MH_I2C_Read... [08:38:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:38:32]Read from MH i2c: E2 [08:38:32]MH_I2C_Read... [08:38:32]Read from MH i2c: E2 03 00 [08:38:32]MH_I2C_Read... [08:38:32]Read from MH i2c: E2 03 00 D3 41 00 90 00 88 [08:38:32]RAPDU: 90 00 [08:38:32]wFMCommunicate OK [08:38:32]wFMCommunicate request_size=4 [08:38:32]MH_SAM_APDU [08:38:32]CAPDU: 80 0D 03 02 [08:38:32]Write to MH i2c: E2 08 00 D4 41 80 0D 03 02 00 00 00 00 90 [08:38:32]Write i2c OK [08:38:32]MH_I2C_Read... [08:38:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:38:32]Read from MH i2c: E2 [08:38:32]MH_I2C_Read... [08:38:32]Read from MH i2c: E2 0B 00 [08:38:32]MH_I2C_Read... [08:38:32]Read from MH i2c: E2 0B 00 D4 41 00 07 91 68 8B 51 AE 13 29 90 00 57 [08:38:32]RAPDU: 07 91 68 8B 51 AE 13 29 90 00 [08:38:32]wFMCommunicate OK [08:38:32]SAM_PROTO_SignData done [08:38:32]FM_MakeSignedData done [08:38:32]CreateOFDProtocolMessage [08:38:32]wFMCommunicate request_size=4 [08:38:32]MH_SAM_APDU [08:38:32]CAPDU: 80 11 00 00 [08:38:32]Write to MH i2c: E2 08 00 D5 41 80 11 00 00 00 00 00 00 90 [08:38:32]Write i2c OK [08:38:32]MH_I2C_Read... [08:38:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:38:32]Read from MH i2c: E2 [08:38:32]MH_I2C_Read... [08:38:32]Read from MH i2c: E2 17 00 [08:38:32]MH_I2C_Read... [08:38:32]Read from MH i2c: E2 17 00 D5 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E6 [08:38:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:38:32]wFMCommunicate OK [08:38:32]CreateOFDProtocolMessage done [08:38:32]OFDSenderStorePacket 67424 [08:38:32]StoreOFDPacket docnum=67424 [08:38:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 EA 81 07 01 EB 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 88 13 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 78 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 0D 00 00 00 00 07 04 06 00 78 82 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 0B C6 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 60 07 01 00 35 04 06 00 C9 0A B0 B7 37 BB 07 91 68 8B 51 AE 13 29 [08:38:32]CheckFolder [08:38:32]dirname=/storage/ofd_packets [08:38:32]CheckFolder done [08:38:32]ProducePacketName [08:38:32]name=ofd_packets/00067424 [08:38:32]NVStorageSaveData ofd_packets/00067424 [08:38:32]File name is /storage/ofd_packets/00067424 [08:38:32]Write 301 bytes [08:38:32]NVStorageSaveData done [08:38:32]OFDSenderStorePacket done [08:38:32]KKMCreateOFDPacket done [08:38:32]NVStorageSaveData kkm_last_timestamp [08:38:32]File name is /storage/kkm_last_timestamp [08:38:32]Write 4 bytes [08:38:32]NVStorageSaveData done [08:38:32]ExternCall_PrintAddStr [08:38:32]wPrintStart [08:38:32]Write to MH i2c: 01 00 00 D6 41 17 [08:38:32]Write i2c OK [08:38:32]MH_I2C_Read... [08:38:32]Read from MH i2c: 01 [08:38:32]MH_I2C_Read... [08:38:32]Read from MH i2c: 01 07 00 [08:38:32]MH_I2C_Read... [08:38:32]Read from MH i2c: 01 07 00 D6 41 00 00 00 00 00 FF 0F 2C [08:38:32]RasterBufferAndPrint [08:38:32]line Счет N : (1)507427 [08:38:32]line ИНН: 02508201610067 [08:38:32]line Контрольно-Кассовый Чек [08:38:32]line ПРОДАЖА [08:38:32]line ТРК (МРК, ГНК) : 43 [08:38:32]line Товар: 2710124130 [08:38:32]line Аи-92-К-5 [08:38:32]line 5.000 * 66.80 [08:38:32]line = 334.00 [08:38:32]line НДС 12% НСП 1% [08:38:32]line > о реализуемом товаре [08:38:32]line ИТОГО: 334.00 [08:38:32]line НСП 1% : 2.96 [08:38:32]line НДС 12% : 35.47 [08:38:32]line Наличными: 334.00 [08:38:32]line Безнал.: 0.00 [08:38:32]line Место: АЗС № 91 "Партнер Нефть" [08:38:32]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [08:38:32]line СНО: Общий режим [08:38:32]line Чек 22 16.05.2024 08:38 [08:38:32]line Смена: 357 ФФД: 1.0 [08:38:32]line ЗНМ: 0300000119 [08:38:32]line РНМ: 0000000000091845 [08:38:32]line Версия ККМ: 001 [08:38:32]line ФМ: 0000000000871829 [08:38:32]line ФД: 67424 [08:38:32]line ФПД: 221047751653307 [08:38:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T083835&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67424&fm=221047751653307&tin=02508201610067®Number=0000000000091845&sum=33400 [08:38:32]OFD Sender: Processing packet 67424 [packets to send 35, broken 34] [08:38:32]ProducePacketName [08:38:32]name=ofd_packets/00067424 [08:38:32]OFD Sender: To server: pG, [08:38:32]CommunicateWithHost lk.salyk.kg:30040 [08:38:32]ConnectInit lk.salyk.kg [08:38:32]written 0, free lines is 4095 [08:38:32]Connected sock=10 [08:38: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 38 32 39 0F 01 00 00 EA 81 07 01 EB 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 88 13 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 78 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 0D 00 00 00 00 07 04 06 00 78 82 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 0B C6 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 60 07 01 00 35 04 06 00 C9 0A B0 B7 37 BB 07 91 68 8B 51 AE 13 29 [08:38:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 44 A7 47 00 5B 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 38 32 39 10 04 04 00 60 07 01 00 F4 03 04 00 E6 6D 45 66 B6 04 01 00 00 88 97 32 CA F6 A0 6A 2B [08:38:32]CommunicateWithHost err = 0 [08:38:32]CheckOFDResponse [08:38:32]1017 (14) - 77093643461234 [08:38:32]1041 (16) - 0000000000871829 [08:38:32]1040 (4) - 67424 [08:38:32]1012 (4) - 16.05.2024 02:22 [08:38:32]1206 (1) - 0 [08:38:32]OFD Sender: Remove packet 67424 [08:38:32]ProducePacketName [08:38:32]name=ofd_packets/00067424 [08:38:32]NVStorageDeleteData [08:38:32]Write to MH i2c: 01 00 00 FD 41 3E [08:38:32]Write i2c OK [08:38:32]MH_I2C_Read... [08:38:32]Read from MH i2c: 01 [08:38:32]MH_I2C_Read... [08:38:32]Read from MH i2c: 01 07 00 [08:38:32]MH_I2C_Read... [08:38:32]Read from MH i2c: 01 07 00 FD 41 00 00 00 00 00 06 0D 58 [08:38:32]RasterBufferAndPrint [08:38:32]line [08:38:32]line [08:38:32]line [08:38:32]line [08:38:32]line [08:38:32]written 0, free lines is 3340 [08:38:32]MH_Cut [08:38:32]Write to MH i2c: D1 01 00 04 42 01 18 [08:38:32]Write i2c OK [08:38:32]MH_I2C_Read... [08:38:32]Read from MH i2c: D1 [08:38:32]MH_I2C_Read... [08:38:32]Read from MH i2c: D1 01 00 [08:38:32]MH_I2C_Read... [08:38:32]Read from MH i2c: D1 01 00 04 42 00 17 [08:38:32]Write to MH i2c: 01 00 00 05 42 47 [08:38:32]Write i2c OK [08:38:32]MH_I2C_Read... [08:38:33]OFD Sender: No OFD packet to send [08:38:33]*** Cut start [08:38:33]*** Purtial cut [08:38:33]*** CUTSNS_PIN = 0 [08:38:34]*** Stage 1: CUTSNS_PIN = 1 [08:38:35]Read from MH i2c: 01 [08:38:35]MH_I2C_Read... [08:38:35]*** Stop cut motor [08:38:35]*** Cut end [08:38:35]Read from MH i2c: 01 07 00 [08:38:35]MH_I2C_Read... [08:38:35]Read from MH i2c: 01 07 00 05 42 00 00 00 00 00 FF 0F 5C [08:38:35]process_action close_receipt done [08:38:35]requested_data is exist [08:38:35]produce_requested_data [08:38:35]requested_item fm.sn is exist - process it [08:38:35]wFMCommunicate request_size=4 [08:38:35]MH_SAM_APDU [08:38:35]CAPDU: 80 11 00 00 [08:38:35]Write to MH i2c: E2 08 00 06 42 80 11 00 00 00 00 00 00 C2 [08:38:35]Write i2c OK [08:38:35]MH_I2C_Read... [08:38:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:38:35]Read from MH i2c: E2 [08:38:35]MH_I2C_Read... [08:38:35]Read from MH i2c: E2 17 00 [08:38:35]MH_I2C_Read... [08:38:35]Read from MH i2c: E2 17 00 06 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 18 [08:38:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:38:35]wFMCommunicate OK [08:38:35]requested_item fd.num is exist - process it [08:38:35]SAM_PROTO_GetFieldsCounters [08:38:35]wFMCommunicate request_size=4 [08:38:35]MH_SAM_APDU [08:38:35]CAPDU: 80 13 00 00 [08:38:35]Write to MH i2c: E2 08 00 07 42 80 13 00 00 00 00 00 00 C5 [08:38:35]Write i2c OK [08:38:35]MH_I2C_Read... [08:38:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:38:35]Read from MH i2c: E2 [08:38:35]MH_I2C_Read... [08:38:35]Read from MH i2c: E2 62 00 [08:38:35]MH_I2C_Read... [08:38:35]Read from MH i2c: E2 62 00 07 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 60 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [08:38: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 60 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:38:35]wFMCommunicate OK [08:38:35]SAM_PROTO_GetFieldsCounters done [08:38:35]requested_item shift.num is exist - process it [08:38:35]requested_item shift.opened is exist - process it [08:38:35]req_shift_opened [08:38:35]FM_GetShiftState [08:38:35]SAM_PROTO_GetShiftState [08:38:35]wFMCommunicate request_size=4 [08:38:35]MH_SAM_APDU [08:38:35]CAPDU: 80 13 01 00 [08:38:35]Write to MH i2c: E2 08 00 08 42 80 13 01 00 00 00 00 00 C7 [08:38:35]Write i2c OK [08:38:35]MH_I2C_Read... [08:38:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:38:35]Read from MH i2c: E2 [08:38:35]MH_I2C_Read... [08:38:35]Read from MH i2c: E2 0E 00 [08:38:35]MH_I2C_Read... [08:38:35]Read from MH i2c: E2 0E 00 08 42 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 73 [08:38:35]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [08:38:35]wFMCommunicate OK [08:38:35]SAM_PROTO_GetShiftState done [08:38:35]FM_GetShiftState done [08:38:35]req_shift_opened done [08:38:35]requested_item shift.open_date is exist - process it [08:38:35]req_shift_open_date [08:38:35]req_shift_open_date done [08:38:35]produce_requested_data done [08:38:35]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67424,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [08:38:35]process_action_free close_receipt [08:38:35]json_value_free [08:38:35]json_value_free done [08:38:35]process_json_proto returns [08:38:35]Send response to host [08:38:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67424,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [08:38:35]free response buf [08:38:35]execute_script done [08:38:35]execute_script returns [08:38:35]free content buf [08:38:35]Sock 7.Close socket [08:38:36]Sock 7.Thread stoped [08:38:38]OFD Sender: No OFD packet to send [08:38:41]accept exits with 9 [08:38:41]New connection [08:38:41]New thread 3067174244 created [08:38:41]Thread 3067030884 joined [08:38:41]Waiting for new connection... [08:38:41] Sock 9.Parse request [08:38:41]Sock 9.Check first char [08:38:41]Sock 9.First char is OK [08:38:41]request: POST /json_proto HTTP/1.0 [08:38:41]Method: POST [08:38:41]URL: /json_proto [08:38:41]Method is POST - this is cgi request [08:38:41]url: /json_proto [08:38:41]query_string will be loaded in cgi processing [08:38:41]execute_cgi json_proto POST (null) [08:38:41]execute_cgi path=json_proto method=POST [08:38:41]POST find Content-Length [08:38:41]Host: 172.17.41.195:8080 [08:38:41]Content-Length: 801 [08:38:41]Content-Type: application/json [08:38:41] [08:38:41]POST finish read [08:38:41]Found Content-Length = 801 [08:38:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507426", "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.80, "quantity" : 10.480, "sum" : 700.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:38:41]execute_script... [08:38: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)507426", "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.80, "quantity" : 10.480, "sum" : 700.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:38:41]POST & json_proto [08:38:41]process_json_proto [08:38:41]json parsed OK: [08:38:41]protocol is kg_v1.0 [08:38:41]action value=close_receipt [08:38:41]process_action close_receipt [08:38:41]cmd_close_receipt [08:38:41]MH_GetDate [08:38:41]Write to MH i2c: F0 00 00 09 42 3A [08:38:41]Write i2c OK [08:38:41]MH_I2C_Read... [08:38:41]Read from MH i2c: F0 [08:38:41]MH_I2C_Read... [08:38:41]Read from MH i2c: F0 09 00 [08:38:41]MH_I2C_Read... [08:38:41]Read from MH i2c: F0 09 00 09 42 00 16 C6 45 66 FC 21 6F 64 BA [08:38:41]GetLastDocTimeStamp 1715848715 [08:38:41]current date 1715848726 [08:38:41]FM_GetShiftState [08:38:41]SAM_PROTO_GetShiftState [08:38:41]wFMCommunicate request_size=4 [08:38:41]MH_SAM_APDU [08:38:41]CAPDU: 80 13 01 00 [08:38:41]Write to MH i2c: E2 08 00 0A 42 80 13 01 00 00 00 00 00 C9 [08:38:41]Write i2c OK [08:38:41]MH_I2C_Read... [08:38:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:38:41]Read from MH i2c: E2 [08:38:41]MH_I2C_Read... [08:38:41]Read from MH i2c: E2 0E 00 [08:38:41]MH_I2C_Read... [08:38:41]Read from MH i2c: E2 0E 00 0A 42 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 75 [08:38:41]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [08:38:41]wFMCommunicate OK [08:38:41]SAM_PROTO_GetShiftState done [08:38:41]FM_GetShiftState done [08:38:41]opened in 1715818916 [08:38:41]opened+sec_in_day 1715905316 [08:38:41]quantity*price = 70006 [08:38:41]sum+1 = 70007 [08:38:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.06 НСП 1% : 6.19 НДС 12% : 74.34 Наличными: 0.00 Безнал.: 700.06 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 23 16.05.2024 08:38 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67425 ФПД: 172037929124759 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T083846&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67425&fm=172037929124759&tin=02508201610067®Number=0000000000091845&sum=70006 [08:38:42]StoreToDocumentArchive [08:38:42]shift 357 fd 67425 [08:38:42]save to /storage/0357/doc_00067425 [08:38:42]save last doc name /storage/0357/doc_00067425 to /storage/kkm_last_doc_name [08:38:42]save OK [08:38:42]Clear old archive folders... [08:38:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:38:42]tlvbuf is 00B0FE20 [08:38:42]SAM_PROTO_ClearQueue [08:38:42]wFMCommunicate request_size=4 [08:38:42]MH_SAM_APDU [08:38:42]CAPDU: 80 09 00 00 [08:38:42]Write to MH i2c: E2 08 00 17 42 80 09 00 00 00 00 00 00 CB [08:38:42]Write i2c OK [08:38:42]MH_I2C_Read... [08:38:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:38:42]Read from MH i2c: E2 [08:38:42]MH_I2C_Read... [08:38:42]Read from MH i2c: E2 03 00 [08:38:42]MH_I2C_Read... [08:38:42]Read from MH i2c: E2 03 00 17 42 00 90 00 CD [08:38:42]RAPDU: 90 00 [08:38:42]wFMCommunicate OK [08:38:42]SAM_PROTO_ClearQueue done [08:38:42]KKMCreateOFDPacket [08:38:42]OFDProtocolAddRootSTLVToBuf [08:38:42]FM_MakeSignedData [08:38:42]FM_MakeSignedData [08:38:42]SAM_PROTO_SignData [08:38:42]wFMCommunicate request_size=4 [08:38:42]MH_SAM_APDU [08:38:42]CAPDU: 80 0D 01 02 [08:38:42]Write to MH i2c: E2 08 00 18 42 80 0D 01 02 00 00 00 00 D3 [08:38:42]Write i2c OK [08:38:42]MH_I2C_Read... [08:38:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:38:42]Read from MH i2c: E2 [08:38:42]MH_I2C_Read... [08:38:42]Read from MH i2c: E2 03 00 [08:38:42]MH_I2C_Read... [08:38:42]Read from MH i2c: E2 03 00 18 42 00 90 00 CE [08:38:42]RAPDU: 90 00 [08:38:42]wFMCommunicate OK [08:38:42]wFMCommunicate request_size=255 [08:38:42]MH_SAM_APDU [08:38: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 28 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 76 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 76 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 0A 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 76 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 16 C6 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 61 07 01 00 35 04 06 00 9C [08:38:42]Write to MH i2c: E2 02 01 19 42 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 28 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 76 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 76 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 0A 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 76 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 16 C6 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 61 07 01 00 35 04 06 00 9C 00 00 61 [08:38:42]Write i2c OK [08:38:42]MH_I2C_Read... [08:38:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:38:42]Read from MH i2c: E2 [08:38:42]MH_I2C_Read... [08:38:42]Read from MH i2c: E2 03 00 [08:38:42]MH_I2C_Read... [08:38:42]Read from MH i2c: E2 03 00 19 42 00 90 00 CF [08:38:42]RAPDU: 90 00 [08:38:42]wFMCommunicate OK [08:38:42]wFMCommunicate request_size=10 [08:38:42]MH_SAM_APDU [08:38:42]CAPDU: 80 0D 02 02 05 77 B3 A7 43 97 [08:38:42]Write to MH i2c: E2 0D 00 1A 42 80 0D 02 02 05 00 77 B3 A7 43 97 00 00 8B [08:38:42]Write i2c OK [08:38:42]MH_I2C_Read... [08:38:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:38:42]Read from MH i2c: E2 [08:38:42]MH_I2C_Read... [08:38:42]Read from MH i2c: E2 03 00 [08:38:42]MH_I2C_Read... [08:38:42]Read from MH i2c: E2 03 00 1A 42 00 90 00 D0 [08:38:42]RAPDU: 90 00 [08:38:42]wFMCommunicate OK [08:38:42]wFMCommunicate request_size=4 [08:38:42]MH_SAM_APDU [08:38:42]CAPDU: 80 0D 03 02 [08:38:42]Write to MH i2c: E2 08 00 1B 42 80 0D 03 02 00 00 00 00 D8 [08:38:42]Write i2c OK [08:38:42]MH_I2C_Read... [08:38:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:38:42]Read from MH i2c: E2 [08:38:42]MH_I2C_Read... [08:38:42]Read from MH i2c: E2 0B 00 [08:38:42]MH_I2C_Read... [08:38:42]Read from MH i2c: E2 0B 00 1B 42 00 59 2C 9D B5 9E 55 5E 4A 90 00 4B [08:38:42]RAPDU: 59 2C 9D B5 9E 55 5E 4A 90 00 [08:38:42]wFMCommunicate OK [08:38:42]SAM_PROTO_SignData done [08:38:42]FM_MakeSignedData done [08:38:42]CreateOFDProtocolMessage [08:38:42]wFMCommunicate request_size=4 [08:38:42]MH_SAM_APDU [08:38:42]CAPDU: 80 11 00 00 [08:38:42]Write to MH i2c: E2 08 00 1C 42 80 11 00 00 00 00 00 00 D8 [08:38:42]Write i2c OK [08:38:42]MH_I2C_Read... [08:38:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:38:42]Read from MH i2c: E2 [08:38:42]MH_I2C_Read... [08:38:42]Read from MH i2c: E2 17 00 [08:38:42]MH_I2C_Read... [08:38:42]Read from MH i2c: E2 17 00 1C 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2E [08:38:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:38:42]wFMCommunicate OK [08:38:42]CreateOFDProtocolMessage done [08:38:42]OFDSenderStorePacket 67425 [08:38:42]StoreOFDPacket docnum=67425 [08:38:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 FA B9 07 01 5D 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 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 28 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 76 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 76 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 0A 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 76 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 16 C6 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 61 07 01 00 35 04 06 00 9C 77 B3 A7 43 97 59 2C 9D B5 9E 55 5E 4A [08:38:42]CheckFolder [08:38:42]dirname=/storage/ofd_packets [08:38:42]CheckFolder done [08:38:42]ProducePacketName [08:38:42]name=ofd_packets/00067425 [08:38:42]NVStorageSaveData ofd_packets/00067425 [08:38:42]File name is /storage/ofd_packets/00067425 [08:38:42]Write 301 bytes [08:38:42]NVStorageSaveData done [08:38:42]OFDSenderStorePacket done [08:38:42]KKMCreateOFDPacket done [08:38:42]NVStorageSaveData kkm_last_timestamp [08:38:42]File name is /storage/kkm_last_timestamp [08:38:42]Write 4 bytes [08:38:42]NVStorageSaveData done [08:38:42]ExternCall_PrintAddStr [08:38:42]wPrintStart [08:38:42]Write to MH i2c: 01 00 00 1D 42 5F [08:38:42]Write i2c OK [08:38:42]MH_I2C_Read... [08:38:42]Read from MH i2c: 01 [08:38:42]MH_I2C_Read... [08:38:42]Read from MH i2c: 01 07 00 [08:38:42]MH_I2C_Read... [08:38:42]Read from MH i2c: 01 07 00 1D 42 00 00 00 00 00 FF 0F 74 [08:38:42]RasterBufferAndPrint [08:38:42]line Счет N : (1)507426 [08:38:42]line ИНН: 02508201610067 [08:38:42]line Контрольно-Кассовый Чек [08:38:42]line ПРОДАЖА [08:38:42]line ТРК (МРК, ГНК) : 13 [08:38:42]line Товар: 2710124130 [08:38:42]line Аи-92-К-5 [08:38:42]line 10.480 * 66.80 [08:38:42]line = 700.06 [08:38:42]line НДС 12% НСП 1% [08:38:42]line > о реализуемом товаре [08:38:42]line ИТОГО: 700.06 [08:38:42]line НСП 1% : 6.19 [08:38:42]line НДС 12% : 74.34 [08:38:42]line Наличными: 0.00 [08:38:42]line Безнал.: 700.06 [08:38:42]line Место: АЗС № 91 "Партнер Нефть" [08:38:42]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [08:38:42]line СНО: Общий режим [08:38:42]line Чек 23 16.05.2024 08:38 [08:38:42]line Смена: 357 ФФД: 1.0 [08:38:42]line ЗНМ: 0300000119 [08:38:42]line РНМ: 0000000000091845 [08:38:42]line Версия ККМ: 001 [08:38:42]line Платежная система: O! деньги [08:38:42]line ФМ: 0000000000871829 [08:38:42]line ФД: 67425 [08:38:42]line ФПД: 172037929124759 [08:38:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T083846&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67425&fm=172037929124759&tin=02508201610067®Number=0000000000091845&sum=70006 [08:38:42]*** FLAG_PRN_PAP1 set [08:38:42]int [08:38:42]Write i2c OK [08:38:42]MH_I2C_Read... [08:38:42]Read from MH i2c: DD [08:38:42]MH_I2C_Read... [08:38:42]Read from MH i2c: DD 05 00 [08:38:42]MH_I2C_Read... [08:38:42]Read from MH i2c: DD 05 00 1E 42 00 00 00 FF 0F 4F [08:38:42]written 0, free lines is 4095 [08:38:42]Write to MH i2c: DD 90 01 1F 42 00 00 00 00 21 00 00 00 40 01 60 06 2D 0C 38 00 C0 FF 17 03 F0 07 80 E0 C0 7C 03 01 FF 80 7C 07 FF 80 1E 01 F8 3F 2E 0C 10 00 C0 10 36 0F FC C0 C3 FC FE 07 FE FF 80 2E 0C 00 00 E0 7F 1D 1E 0E 01 83 1C 01 81 C0 01 C7 00 07 3E 0F 01 E0 2D 0C 10 00 40 B8 1F 38 06 E0 80 03 83 80 00 7E 04 07 81 C0 2D 0C 00 00 20 02 1F 70 00 03 C1 6E 00 03 83 80 2D F0 13 00 00 78 01 38 38 0F 80 FF FE F0 07 01 C0 0F CE 2C C4 10 00 48 C5 08 E0 3F E0 70 0E 00 00 FE 0E 01 87 2D C0 13 00 20 06 15 78 F0 03 80 78 07 E1 FF 8E 07 3E 2D C0 10 00 00 CC 19 70 70 38 07 87 1E 03 0E 07 7F 2E C0 10 00 08 C6 34 E0 38 3C 00 E0 03 1C 07 0F C7 80 2E 10 10 00 00 8C 34 3C 1C 01 C7 06 1E 83 C0 2E F0 10 00 00 C0 14 1F F8 FF F8 1E 3C 0C 3C 01 2E 10 10 00 00 C0 07 0F 0E 38 0F FF C0 78 2E F4 10 00 00 00 04 70 00 38 E0 00 0F F0 2E 00 10 00 20 FA 0F 07 03 C0 C3 83 80 78 00 0E 01 E0 03 2E 4C 00 00 40 4D 16 38 06 70 80 01 03 83 70 03 C0 83 2E CC 10 00 08 3E 3A 1E 0E 78 10 03 0E C2 07 81 C7 00 07 01 C7 80 2D CC 00 00 E0 5F 1C 0F FC 3F F0 01 81 FF C1 83 FF 00 FE F0 FF 80 FF 2D CC 10 00 00 56 10 03 F0 0F C0 01 80 FC 7C E0 7C 21 EC 3B 00 E8 01 00 00 00 00 00 00 00 00 00 00 00 00 C0 00 03 21 00 00 00 00 00 21 00 00 00 40 01 60 06 00 00 00 6E [08:38:43]Write to MH i2c: 01 00 00 1F 42 61 [08:38:43]OFD Sender: Processing packet 67425 [packets to send 35, broken 34] [08:38:43]ProducePacketName [08:38:43]name=ofd_packets/00067425 [08:38:43]OFD Sender: To server: pG, [08:38:43]CommunicateWithHost lk.salyk.kg:30040 [08:38:43]ConnectInit lk.salyk.kg [08:38:43]Write i2c OK [08:38:43]MH_I2C_Read... [08:38:43]Write i2c OK [08:38:43]MH_I2C_Read... [08:38:43]Read from MH i2c: DD [08:38:43]MH_I2C_Read... [08:38:43]Read from MH i2c: DD [08:38:43]MH_I2C_Read... [08:38:43]Read from MH i2c: DD 01 00 [08:38:43]answer for other command [DD] [08:38:43]MH Int Process stopped [08:38:43]Read from MH i2c: DD 01 00 [08:38:43]MH_I2C_Read... [08:38:43]Read from MH i2c: DD 01 00 1F 42 05 43 [08:38:43]answer with wrong packet_num 421F - expected 4220 [08:38:43]process_action_free close_receipt [08:38:43]json_value_free [08:38:43]json_value_free done [08:38:43]process_json_proto returns [08:38:43]Send response to host [08:38:43]{"protocol":"kg_v1.0","response":{"error":1039,"error_desc":"CoCPU protocol format"}} [08:38:43]free response buf [08:38:43]execute_script done [08:38:43]execute_script returns [08:38:43]free content buf [08:38:43]Sock 9.Close socket [08:38:43]Sock 9.Thread stoped [08:38:43]Connected sock=6 [08:38: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 38 32 39 0F 01 00 00 FA B9 07 01 5D 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 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 28 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 76 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 76 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 0A 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 76 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 16 C6 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 61 07 01 00 35 04 06 00 9C 77 B3 A7 43 97 59 2C 9D B5 9E 55 5E 4A [08:38:43]*** FLAG_PRN_PAP2 set [08:38:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 B7 68 47 00 E0 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 38 32 39 10 04 04 00 61 07 01 00 F4 03 04 00 F1 6D 45 66 B6 04 01 00 00 CD B8 98 D4 D4 C8 EF AB [08:38:43]CommunicateWithHost err = 0 [08:38:43]CheckOFDResponse [08:38:43]1017 (14) - 77093643461234 [08:38:43]1041 (16) - 0000000000871829 [08:38:43]1040 (4) - 67425 [08:38:43]1012 (4) - 16.05.2024 02:22 [08:38:43]1206 (1) - 0 [08:38:43]OFD Sender: Remove packet 67425 [08:38:43]ProducePacketName [08:38:43]name=ofd_packets/00067425 [08:38:43]NVStorageDeleteData [08:38:43]OFD Sender: No OFD packet to send [08:38:45]*** FLAG_PRN_PAP1 reset [08:38:45]*** FLAG_PRN_PAP2 reset [08:38:48]OFD Sender: No OFD packet to send [08:38:54]OFD Sender: No OFD packet to send [08:38:59]OFD Sender: No OFD packet to send [08:39:04]OFD Sender: No OFD packet to send [08:39:09]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 4E FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 8A [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30515, crc_r 5823D75D, crc_c: 5823D75D, size: 52480 [00:00:10]*** [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E318 010246F9) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903 init start (LINUX_LIGHT) [00:00:10]*** Serial: 3139303353513838 540000000057254E (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 30843977+1685004796=1715848773 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33540623 [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 4E FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 8B [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30515 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 38 00 FF FF 57 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 46 C6 45 66 FC 21 6F 64 A6 [08:39:34]Current date/time: 16.05.2024 08:39 [08:39:34]FM_Init [08:39:34]wFMConnect [08:39:34]MH_SAM_On [08:39:34]Write to MH i2c: E0 00 00 08 00 E7 [08:39:34]Write i2c OK [08:39:34]MH_I2C_Read... [08:39:34]*** iso7816_init finished! [08:39:34]*** atr: [08:39:34]*** 0F 3B D5 18 FF 81 91 FE [08:39:34]*** 1F C3 80 73 C8 21 10 0A [08:39:34]*** 00 00 00 00 00 00 00 00 [08:39:34]*** 00 00 00 00 00 00 00 00 [08:39:34]*** 00 00 00 00 00 00 00 00 [08:39:34]*** 00 00 00 00 00 00 00 00 [08:39:34]*** 00 00 00 00 00 00 00 00 [08:39:34]*** 00 00 00 00 00 00 00 00 [08:39:34]Read from MH i2c: E0 [08:39:34]MH_I2C_Read... [08:39:34]Read from MH i2c: E0 10 00 [08:39:34]MH_I2C_Read... [08:39:34]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [08:39:34]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [08:39:34]wFMCommunicate request_size=10 [08:39:34]MH_SAM_APDU [08:39:34]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [08:39:34]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [08:39:34]Write i2c OK [08:39:34]MH_I2C_Read... [08:39:34]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [08:39:34]Read from MH i2c: E2 [08:39:34]MH_I2C_Read... [08:39:34]Read from MH i2c: E2 03 00 [08:39:34]MH_I2C_Read... [08:39:34]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [08:39:34]RAPDU: 90 00 [08:39:34]wFMCommunicate OK [08:39:34]wFMCommunicate request_size=4 [08:39:34]MH_SAM_APDU [08:39:34]CAPDU: 80 11 00 00 [08:39:34]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [08:39:34]Write i2c OK [08:39:34]MH_I2C_Read... [08:39:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:39:34]Read from MH i2c: E2 [08:39:34]MH_I2C_Read... [08:39:34]Read from MH i2c: E2 17 00 [08:39:34]MH_I2C_Read... [08:39:34]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DA [08:39:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:39:34]wFMCommunicate OK [08:39:34]Detected FM SN is 0000000000871829 [08:39:34]Stored FM SN is 0000000000871829 [08:39:34]wFMCommunicate request_size=9 [08:39:34]MH_SAM_APDU [08:39:34]CAPDU: 80 16 00 00 04 44 DD 00 00 [08:39:34]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 44 DD 00 00 00 00 B3 [08:39:34]Write i2c OK [08:39:34]MH_I2C_Read... [08:39:34]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [08:39:34]Read from MH i2c: E2 [08:39:34]MH_I2C_Read... [08:39:34]Read from MH i2c: E2 03 00 [08:39:34]MH_I2C_Read... [08:39:34]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [08:39:34]RAPDU: 90 00 [08:39:34]wFMCommunicate OK [08:39:34]FM PIN OK [08:39:34]wFMCommunicate request_size=8 [08:39:34]MH_SAM_APDU [08:39:34]CAPDU: 80 14 04 00 03 02 00 01 [08:39:34]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [08:39:34]Write i2c OK [08:39:34]MH_I2C_Read... [08:39:34]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [08:39:34]Read from MH i2c: E2 [08:39:34]MH_I2C_Read... [08:39:34]Read from MH i2c: E2 03 00 [08:39:34]MH_I2C_Read... [08:39:34]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [08:39:34]RAPDU: 90 00 [08:39:34]wFMCommunicate OK [08:39:34]wFMCommunicate request_size=13 [08:39:34]MH_SAM_APDU [08:39:34]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [08:39:34]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [08:39:34]Write i2c OK [08:39:34]MH_I2C_Read... [08:39:34]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [08:39:34]Read from MH i2c: E2 [08:39:34]MH_I2C_Read... [08:39:34]Read from MH i2c: E2 03 00 [08:39:34]MH_I2C_Read... [08:39:34]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [08:39:34]RAPDU: 90 00 [08:39:34]wFMCommunicate OK [08:39:34]wFMCommunicate request_size=4 [08:39:34]MH_SAM_APDU [08:39:34]CAPDU: 80 11 00 00 [08:39:34]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [08:39:34]Write i2c OK [08:39:34]MH_I2C_Read... [08:39:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:39:34]Read from MH i2c: E2 [08:39:34]MH_I2C_Read... [08:39:34]Read from MH i2c: E2 17 00 [08:39:34]MH_I2C_Read... [08:39:34]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DE [08:39:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:39:34]wFMCommunicate OK [08:39:34]DocumentArchiveInit [08:39:34]Start Httpd... [08:39:34]Httpd thread 3067538788 created [08:39:34]Write to MH i2c: 01 00 00 0F 00 0F [08:39:34]Write i2c OK [08:39:34]MH_I2C_Read... [08:39:34]Read from MH i2c: 01 [08:39:34]MH_I2C_Read... [08:39:34]Read from MH i2c: 01 07 00 [08:39:34]MH_I2C_Read... [08:39:34]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [08:39:34]Allocated Socket 5 [08:39:34]Bind OK [08:39:34]Listen OK [08:39:34]httpd running on port 8080 [08:39:34]Waiting for new connection... [08:39:34]MH Int Process started [08:39:34]OFD Sender: No OFD packet to send [08:39:39]OFD Sender: No OFD packet to send [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]/dev/ttyS4 opened [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 01 00 00 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 01 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 4E FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 8A [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** Check firmware version 30515, crc_r 5823D75D, crc_c: 5823D75D, size: 52480 [00:00:09]*** [00:00:09]Read from MH i2c: A0 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:09]*** Starting fw at address 01020100 (2007E318 010246F9) [00:00:09]*** Waiting for read because exit forced [00:00:09]*** 10 ms more... [00:00:10]*** MH1903 init start (LINUX_LIGHT) [00:00:10]*** Serial: 3139303353513838 540000000057254E (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 30844004+1685004796=1715848800 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33540623 [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 03 00 02 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 03 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 4E FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 8B [00:00:10]Are we in boot? [00:00:10]We are not in boot now [00:00:10]Write to MH i2c: 01 00 00 04 00 04 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:10]Model is 3 [00:00:10]MH firmware is 30515 [00:00:10]MH boot firmware is 3 [00:00:10]MH_SetPrinterDots 448 [00:00:10]HeadWidthInBytes 56 [00:00:10]maxmasksize 7 [00:00:10]Write to MH i2c: D6 06 00 05 00 41 00 38 00 FF FF 57 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:10]Write to MH i2c: D5 00 00 06 00 DA [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 60 C6 45 66 FC 21 6F 64 C0 [08:40:00]Current date/time: 16.05.2024 08:40 [08:40:00]FM_Init [08:40:00]wFMConnect [08:40:00]MH_SAM_On [08:40:00]Write to MH i2c: E0 00 00 08 00 E7 [08:40:00]Write i2c OK [08:40:00]MH_I2C_Read... [08:40:00]*** iso7816_init finished! [08:40:00]*** atr: [08:40:00]*** 0F 3B D5 18 FF 81 91 FE [08:40:00]*** 1F C3 80 73 C8 21 10 0A [08:40:00]*** 00 00 00 00 00 00 00 00 [08:40:00]*** 00 00 00 00 00 00 00 00 [08:40:00]*** 00 00 00 00 00 00 00 00 [08:40:00]*** 00 00 00 00 00 00 00 00 [08:40:00]*** 00 00 00 00 00 00 00 00 [08:40:00]*** 00 00 00 00 00 00 00 00 [08:40:00]Read from MH i2c: E0 [08:40:00]MH_I2C_Read... [08:40:00]Read from MH i2c: E0 10 00 [08:40:00]MH_I2C_Read... [08:40:00]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [08:40:00]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [08:40:00]wFMCommunicate request_size=10 [08:40:00]MH_SAM_APDU [08:40:00]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [08:40:00]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [08:40:00]Write i2c OK [08:40:00]MH_I2C_Read... [08:40:00]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [08:40:00]Read from MH i2c: E2 [08:40:00]MH_I2C_Read... [08:40:00]Read from MH i2c: E2 03 00 [08:40:00]MH_I2C_Read... [08:40:00]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [08:40:00]RAPDU: 90 00 [08:40:00]wFMCommunicate OK [08:40:00]wFMCommunicate request_size=4 [08:40:00]MH_SAM_APDU [08:40:00]CAPDU: 80 11 00 00 [08:40:00]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [08:40:00]Write i2c OK [08:40:00]MH_I2C_Read... [08:40:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:00]Read from MH i2c: E2 [08:40:00]MH_I2C_Read... [08:40:00]Read from MH i2c: E2 17 00 [08:40:00]MH_I2C_Read... [08:40:00]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DA [08:40:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:40:00]wFMCommunicate OK [08:40:00]Detected FM SN is 0000000000871829 [08:40:00]Stored FM SN is 0000000000871829 [08:40:00]wFMCommunicate request_size=9 [08:40:00]MH_SAM_APDU [08:40:00]CAPDU: 80 16 00 00 04 44 DD 00 00 [08:40:00]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 44 DD 00 00 00 00 B3 [08:40:00]Write i2c OK [08:40:00]MH_I2C_Read... [08:40:00]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [08:40:00]Read from MH i2c: E2 [08:40:00]MH_I2C_Read... [08:40:00]Read from MH i2c: E2 03 00 [08:40:00]MH_I2C_Read... [08:40:00]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [08:40:00]RAPDU: 90 00 [08:40:00]wFMCommunicate OK [08:40:00]FM PIN OK [08:40:00]wFMCommunicate request_size=8 [08:40:00]MH_SAM_APDU [08:40:00]CAPDU: 80 14 04 00 03 02 00 01 [08:40:00]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [08:40:00]Write i2c OK [08:40:00]MH_I2C_Read... [08:40:00]Read from MH i2c: E2 [08:40:00]MH_I2C_Read... [08:40:00]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [08:40:00]Read from MH i2c: E2 03 00 [08:40:00]MH_I2C_Read... [08:40:00]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [08:40:00]RAPDU: 90 00 [08:40:00]wFMCommunicate OK [08:40:00]wFMCommunicate request_size=13 [08:40:00]MH_SAM_APDU [08:40:00]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [08:40:00]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [08:40:00]Write i2c OK [08:40:00]MH_I2C_Read... [08:40:00]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [08:40:00]Read from MH i2c: E2 [08:40:00]MH_I2C_Read... [08:40:00]Read from MH i2c: E2 03 00 [08:40:00]MH_I2C_Read... [08:40:00]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [08:40:00]RAPDU: 90 00 [08:40:00]wFMCommunicate OK [08:40:00]wFMCommunicate request_size=4 [08:40:00]MH_SAM_APDU [08:40:00]CAPDU: 80 11 00 00 [08:40:00]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [08:40:00]Write i2c OK [08:40:00]MH_I2C_Read... [08:40:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:00]Read from MH i2c: E2 [08:40:00]MH_I2C_Read... [08:40:00]Read from MH i2c: E2 17 00 [08:40:00]MH_I2C_Read... [08:40:00]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DE [08:40:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:40:00]wFMCommunicate OK [08:40:00]DocumentArchiveInit [08:40:00]Start Httpd... [08:40:00]Httpd thread 3067891044 created [08:40:00]Write to MH i2c: 01 00 00 0F 00 0F [08:40:00]Write i2c OK [08:40:00]MH_I2C_Read... [08:40:00]Read from MH i2c: 01 [08:40:00]MH_I2C_Read... [08:40:00]Read from MH i2c: 01 07 00 [08:40:00]MH_I2C_Read... [08:40:00]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [08:40:00]MH Int Process started [08:40:00]Allocated Socket 7 [08:40:00]Bind OK [08:40:00]Listen OK [08:40:00]httpd running on port 8080 [08:40:00]Waiting for new connection... [08:40:00]OFD Sender: No OFD packet to send [08:40:01]accept exits with 8 [08:40:01]New connection [08:40:01]New thread 3067604324 created [08:40:01]Waiting for new connection... [08:40:01] Sock 8.Parse request [08:40:01]Sock 8.Check first char [08:40:01]Sock 8.First char is OK [08:40:01]request: POST /json_proto HTTP/1.0 [08:40:01]Method: POST [08:40:01]URL: /json_proto [08:40:01]Method is POST - this is cgi request [08:40:01]url: /json_proto [08:40:01]query_string will be loaded in cgi processing [08:40:01]execute_cgi json_proto POST (null) [08:40:01]execute_cgi path=json_proto method=POST [08:40:01]POST find Content-Length [08:40:01]Host: 172.17.41.195:8080 [08:40:01]Content-Length: 215 [08:40:01]Content-Type: application/json [08:40:01] [08:40:01]POST finish read [08:40:01]Found Content-Length = 215 [08:40:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:01]execute_script... [08:40:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:01]POST & json_proto [08:40:01]process_json_proto [08:40:01]json parsed OK: [08:40:01]protocol is kg_v1.0 [08:40:01]action value=get_value [08:40:01]process_action get_value [08:40:01]cmd_get_value [08:40:01]process_action get_value done [08:40:01]requested_data is exist [08:40:01]produce_requested_data [08:40:01]requested_item kkm.sn is exist - process it [08:40:01]requested_item kkm.ver is exist - process it [08:40:01]requested_item fm.sn is exist - process it [08:40:01]wFMCommunicate request_size=4 [08:40:01]MH_SAM_APDU [08:40:01]CAPDU: 80 11 00 00 [08:40:01]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [08:40:01]Write i2c OK [08:40:01]MH_I2C_Read... [08:40:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:01]Read from MH i2c: E2 [08:40:01]MH_I2C_Read... [08:40:01]Read from MH i2c: E2 17 00 [08:40:01]MH_I2C_Read... [08:40:01]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E0 [08:40:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:40:01]wFMCommunicate OK [08:40:01]requested_item fd.num is exist - process it [08:40:01]SAM_PROTO_GetFieldsCounters [08:40:01]wFMCommunicate request_size=4 [08:40:01]MH_SAM_APDU [08:40:01]CAPDU: 80 13 00 00 [08:40:01]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [08:40:01]Write i2c OK [08:40:01]MH_I2C_Read... [08:40:01]Read from MH i2c: E2 [08:40:01]MH_I2C_Read... [08:40:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:40:01]Read from MH i2c: E2 62 00 [08:40:01]MH_I2C_Read... [08:40:01]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 61 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [08:40: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 61 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:40:01]wFMCommunicate OK [08:40:01]SAM_PROTO_GetFieldsCounters done [08:40:01]requested_item shift.num is exist - process it [08:40:01]requested_item shift.opened is exist - process it [08:40:01]req_shift_opened [08:40:01]FM_GetShiftState [08:40:01]SAM_PROTO_GetShiftState [08:40:01]wFMCommunicate request_size=4 [08:40:01]MH_SAM_APDU [08:40:01]CAPDU: 80 13 01 00 [08:40:01]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [08:40:01]Write i2c OK [08:40:01]MH_I2C_Read... [08:40:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:01]Read from MH i2c: E2 [08:40:01]MH_I2C_Read... [08:40:01]Read from MH i2c: E2 0E 00 [08:40:01]MH_I2C_Read... [08:40:01]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 3B [08:40:01]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [08:40:01]wFMCommunicate OK [08:40:01]SAM_PROTO_GetShiftState done [08:40:01]FM_GetShiftState done [08:40:01]req_shift_opened done [08:40:01]requested_item shift.open_date is exist - process it [08:40:01]req_shift_open_date [08:40:01]req_shift_open_date done [08:40:01]produce_requested_data done [08:40:01]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67425,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [08:40:01]process_action_free get_value [08:40:01]json_value_free [08:40:01]json_value_free done [08:40:01]process_json_proto returns [08:40:01]Send response to host [08:40:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67425,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [08:40:01]free response buf [08:40:01]execute_script done [08:40:01]execute_script returns [08:40:01]free content buf [08:40:01]Sock 8.Close socket [08:40:01]Sock 8.Thread stoped [08:40:01]accept exits with 9 [08:40:01]New connection [08:40:01]New thread 3067460964 created [08:40:01]Thread 3067604324 joined [08:40:01]Waiting for new connection... [08:40:01] Sock 9.Parse request [08:40:01]Sock 9.Check first char [08:40:01]Sock 9.First char is OK [08:40:01]request: POST /json_proto HTTP/1.0 [08:40:01]Method: POST [08:40:01]URL: /json_proto [08:40:01]Method is POST - this is cgi request [08:40:01]url: /json_proto [08:40:01]query_string will be loaded in cgi processing [08:40:01]execute_cgi json_proto POST (null) [08:40:01]execute_cgi path=json_proto method=POST [08:40:01]POST find Content-Length [08:40:01]Host: 172.17.41.195:8080 [08:40:01]Content-Length: 331 [08:40:01]Content-Type: application/json [08:40:01] [08:40:01]POST finish read [08:40:01]Found Content-Length = 331 [08:40:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [08:40:01]execute_script... [08:40:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [08:40:01]POST & json_proto [08:40:01]process_json_proto [08:40:01]json parsed OK: [08:40:01]protocol is kg_v1.0 [08:40:01]action value=get_value [08:40:01]process_action get_value [08:40:01]cmd_get_value [08:40:01]process_action get_value done [08:40:01]requested_data is exist [08:40:01]produce_requested_data [08:40:01]requested_item fm.sale.total is exist - process it [08:40:01]SAM_PROTO_GetFMData [08:40:01]wFMCommunicate request_size=4 [08:40:01]MH_SAM_APDU [08:40:01]CAPDU: 80 13 03 00 [08:40:01]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [08:40:01]Write i2c OK [08:40:01]MH_I2C_Read... [08:40:02]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [08:40:02]Read from MH i2c: E2 [08:40:02]MH_I2C_Read... [08:40:02]Read from MH i2c: E2 FD 00 [08:40:02]MH_I2C_Read... [08:40:02]Read from MH i2c: E2 FD 00 13 00 00 C6 04 85 04 C2 04 6E 04 04 00 97 04 01 00 69 04 A3 00 6F 04 04 00 EF 03 01 00 B1 04 05 00 E5 10 F9 1A 03 70 04 05 00 50 2B 95 BF 02 72 04 04 00 95 E5 63 5B 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 A0 F8 6E 54 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 E3 2A 09 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 A8 00 00 00 B1 04 04 00 90 BE BA DC 70 04 04 00 90 BE BA DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AB B9 70 17 EF 03 09 90 00 2F [08:40:02]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 97 04 01 00 69 04 A3 00 6F 04 04 00 EF 03 01 00 B1 04 05 00 E5 10 F9 1A 03 70 04 05 00 50 2B 95 BF 02 72 04 04 00 95 E5 63 5B 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 A0 F8 6E 54 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 E3 2A 09 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 A8 00 00 00 B1 04 04 00 90 BE BA DC 70 04 04 00 90 BE BA DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AB B9 70 17 EF 03 09 90 00 [08:40:02]wFMCommunicate OK [08:40:02]wFMCommunicate request_size=4 [08:40:02]MH_SAM_APDU [08:40:02]CAPDU: 80 17 00 00 [08:40:02]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [08:40:02]Write i2c OK [08:40:02]MH_I2C_Read... [08:40:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:40:02]Read from MH i2c: E2 [08:40:02]MH_I2C_Read... [08:40:02]Read from MH i2c: E2 FD 00 [08:40:02]MH_I2C_Read... [08:40:02]Read from MH i2c: E2 FD 00 14 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6C 0F F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 B8 [08:40:02]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6C 0F F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [08:40:02]wFMCommunicate OK [08:40:02]wFMCommunicate request_size=4 [08:40:02]MH_SAM_APDU [08:40:02]CAPDU: 80 17 00 00 [08:40:02]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [08:40:02]Write i2c OK [08:40:02]MH_I2C_Read... [08:40:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:40:02]Read from MH i2c: E2 [08:40:02]MH_I2C_Read... [08:40:02]Read from MH i2c: E2 FD 00 [08:40:02]MH_I2C_Read... [08:40:02]Read from MH i2c: E2 FD 00 15 00 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 BC [08:40:02]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [08:40:02]wFMCommunicate OK [08:40:02]wFMCommunicate request_size=4 [08:40:02]MH_SAM_APDU [08:40:02]CAPDU: 80 17 00 00 [08:40:02]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [08:40:02]Write i2c OK [08:40:02]MH_I2C_Read... [08:40:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:40:02]Read from MH i2c: E2 [08:40:02]MH_I2C_Read... [08:40:02]Read from MH i2c: E2 FD 00 [08:40:02]MH_I2C_Read... [08:40:02]Read from MH i2c: E2 FD 00 16 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 11 [08:40:02]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [08:40:02]wFMCommunicate OK [08:40:02]wFMCommunicate request_size=4 [08:40:02]MH_SAM_APDU [08:40:02]CAPDU: 80 17 00 00 [08:40:02]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [08:40:02]Write i2c OK [08:40:02]MH_I2C_Read... [08:40:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [08:40:03]Read from MH i2c: E2 [08:40:03]MH_I2C_Read... [08:40:03]Read from MH i2c: E2 E3 00 [08:40:03]MH_I2C_Read... [08:40:03]Read from MH i2c: E2 E3 00 17 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 76 [08:40:03]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:40:03]wFMCommunicate OK [08:40:03]SAM_PROTO_GetFMData done [08:40:03]requested_item fm.sale_refund.total is exist - process it [08:40:03]requested_item fm.buy.total is exist - process it [08:40:03]requested_item shift.sale.total is exist - process it [08:40:03]SAM_PROTO_GetShiftData [08:40:03]wFMCommunicate request_size=4 [08:40:03]MH_SAM_APDU [08:40:03]CAPDU: 80 13 02 00 [08:40:03]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [08:40:03]Write i2c OK [08:40:03]MH_I2C_Read... [08:40:03]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [08:40:03]Read from MH i2c: E2 [08:40:03]MH_I2C_Read... [08:40:03]Read from MH i2c: E2 FD 00 [08:40:03]MH_I2C_Read... [08:40:03]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 17 00 00 00 69 04 9B 00 6F 04 04 00 17 00 00 00 B1 04 03 00 8F 32 1D 70 04 03 00 A8 7F 14 72 04 03 00 E7 B2 08 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 0F 1A 03 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 2A 42 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D7 [08:40:03]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 17 00 00 00 69 04 9B 00 6F 04 04 00 17 00 00 00 B1 04 03 00 8F 32 1D 70 04 03 00 A8 7F 14 72 04 03 00 E7 B2 08 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 0F 1A 03 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 2A 42 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:40:03]wFMCommunicate OK [08:40:03]wFMCommunicate request_size=4 [08:40:03]MH_SAM_APDU [08:40:03]CAPDU: 80 17 00 00 [08:40:03]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [08:40:03]Write i2c OK [08:40:03]MH_I2C_Read... [08:40:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:40:03]Read from MH i2c: E2 [08:40:03]MH_I2C_Read... [08:40:03]Read from MH i2c: E2 FD 00 [08:40:03]MH_I2C_Read... [08:40:03]Read from MH i2c: E2 FD 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 BB [08:40:03]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:40:03]wFMCommunicate OK [08:40:03]wFMCommunicate request_size=4 [08:40:03]MH_SAM_APDU [08:40:03]CAPDU: 80 17 00 00 [08:40:03]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [08:40:03]Write i2c OK [08:40:03]MH_I2C_Read... [08:40:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:40:04]Read from MH i2c: E2 [08:40:04]MH_I2C_Read... [08:40:04]Read from MH i2c: E2 FD 00 [08:40:04]MH_I2C_Read... [08:40:04]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 51 [08:40:04]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:40:04]wFMCommunicate OK [08:40:04]wFMCommunicate request_size=4 [08:40:04]MH_SAM_APDU [08:40:04]CAPDU: 80 17 00 00 [08:40:04]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [08:40:04]Write i2c OK [08:40:04]MH_I2C_Read... [08:40:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:40:04]Read from MH i2c: E2 [08:40:04]MH_I2C_Read... [08:40:04]Read from MH i2c: E2 FD 00 [08:40:04]MH_I2C_Read... [08:40:04]Read from MH i2c: E2 FD 00 1B 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 0D [08:40:04]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:40:04]wFMCommunicate OK [08:40:04]wFMCommunicate request_size=4 [08:40:04]MH_SAM_APDU [08:40:04]CAPDU: 80 17 00 00 [08:40:04]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [08:40:04]Write i2c OK [08:40:04]MH_I2C_Read... [08:40:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [08:40:04]Read from MH i2c: E2 [08:40:04]MH_I2C_Read... [08:40:04]Read from MH i2c: E2 CB 00 [08:40:04]MH_I2C_Read... [08:40:04]Read from MH i2c: E2 CB 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [08:40:04]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:40:04]wFMCommunicate OK [08:40:04]SAM_PROTO_GetShiftData done [08:40:04]requested_item shift.sale.total_cash is exist - process it [08:40:04]requested_item shift.sale_refund.total is exist - process it [08:40:04]requested_item shift.sale_refund.total_cash is exist - process it [08:40:04]requested_item shift.buy.total is exist - process it [08:40:04]requested_item shift.buy.total_cash is exist - process it [08:40:04]produce_requested_data done [08:40:04]produce_requested_data return {"fm.sale.total":133374322.93,"fm.sale_refund.total":37032260.00,"fm.buy.total":0.00,"shift.sale.total":19134.87,"shift.sale.total_cash":13434.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:40:04]process_action_free get_value [08:40:04]json_value_free [08:40:04]json_value_free done [08:40:04]process_json_proto returns [08:40:04]Send response to host [08:40:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133374322.93,"fm.sale_refund.total":37032260.00,"fm.buy.total":0.00,"shift.sale.total":19134.87,"shift.sale.total_cash":13434.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:40:04]free response buf [08:40:04]execute_script done [08:40:04]execute_script returns [08:40:04]free content buf [08:40:04]Sock 9.Close socket [08:40:04]Sock 9.Thread stoped [08:40:05]accept exits with 8 [08:40:05]New connection [08:40:05]New thread 3067604324 created [08:40:05]Thread 3067460964 joined [08:40:05]Waiting for new connection... [08:40:05] Sock 8.Parse request [08:40:05]Sock 8.Check first char [08:40:05]Sock 8.First char is OK [08:40:05]request: POST /json_proto HTTP/1.0 [08:40:05]Method: POST [08:40:05]URL: /json_proto [08:40:05]Method is POST - this is cgi request [08:40:05]url: /json_proto [08:40:05]query_string will be loaded in cgi processing [08:40:05]execute_cgi json_proto POST (null) [08:40:05]execute_cgi path=json_proto method=POST [08:40:05]POST find Content-Length [08:40:05]Host: 172.17.41.195:8080 [08:40:05]Content-Length: 144 [08:40:05]Content-Type: application/json [08:40:05] [08:40:05]POST finish read [08:40:05]Found Content-Length = 144 [08:40:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [08:40:05]execute_script... [08:40:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [08:40:05]POST & json_proto [08:40:05]process_json_proto [08:40:05]json parsed OK: [08:40:05]protocol is kg_v1.0 [08:40:05]action value=print_doc [08:40:05]process_action print_doc [08:40:05]process_action_free print_doc [08:40:05]json_value_free [08:40:05]json_value_free done [08:40:05]process_json_proto returns [08:40:05]Send response to host [08:40:05]{"protocol":"kg_v1.0","response":{"error":1000,"error_desc":"Open file error(LoadLastDocumentFromArchive)"}} [08:40:05]free response buf [08:40:05]execute_script done [08:40:05]execute_script returns [08:40:05]free content buf [08:40:05]Sock 8.Close socket [08:40:05]Sock 8.Thread stoped [08:40:05]OFD Sender: No OFD packet to send [08:40:10]OFD Sender: No OFD packet to send [08:40:15]OFD Sender: No OFD packet to send [08:40:20]OFD Sender: No OFD packet to send [08:40:25]OFD Sender: No OFD packet to send [08:40:30]OFD Sender: No OFD packet to send [08:40:35]OFD Sender: No OFD packet to send [08:40:40]OFD Sender: No OFD packet to send [08:40:45]OFD Sender: No OFD packet to send [08:40:50]OFD Sender: No OFD packet to send [08:40:55]OFD Sender: No OFD packet to send [08:41:00]OFD Sender: No OFD packet to send [08:41:05]OFD Sender: No OFD packet to send [08:41:10]OFD Sender: No OFD packet to send [08:41:15]OFD Sender: No OFD packet to send [08:41:20]OFD Sender: No OFD packet to send [08:41:25]OFD Sender: No OFD packet to send [08:41:30]OFD Sender: No OFD packet to send [08:41:35]OFD Sender: No OFD packet to send [08:41:40]OFD Sender: No OFD packet to send [08:41:45]OFD Sender: No OFD packet to send [08:41:50]OFD Sender: No OFD packet to send [08:41:55]OFD Sender: No OFD packet to send [08:42:00]OFD Sender: No OFD packet to send [08:42:05]OFD Sender: No OFD packet to send [08:42:10]OFD Sender: No OFD packet to send [08:42:15]OFD Sender: No OFD packet to send [08:42:20]OFD Sender: No OFD packet to send [08:42:25]OFD Sender: No OFD packet to send [08:42:30]OFD Sender: No OFD packet to send [08:42:35]OFD Sender: No OFD packet to send [08:42:40]OFD Sender: No OFD packet to send [08:42:45]OFD Sender: No OFD packet to send [08:42:50]OFD Sender: No OFD packet to send [08:42:55]OFD Sender: No OFD packet to send [08:43:00]OFD Sender: No OFD packet to send [08:43:05]OFD Sender: No OFD packet to send [08:43:10]OFD Sender: No OFD packet to send [08:43:15]OFD Sender: No OFD packet to send [08:43:20]OFD Sender: No OFD packet to send [08:43:21]accept exits with 9 [08:43:21]New connection [08:43:21]New thread 3067460964 created [08:43:21]Thread 3067604324 joined [08:43:21]Waiting for new connection... [08:43:21] Sock 9.Parse request [08:43:21]Sock 9.Check first char [08:43:21]Sock 9.First char is OK [08:43:21]request: POST /json_proto HTTP/1.0 [08:43:21]Method: POST [08:43:21]URL: /json_proto [08:43:21]Method is POST - this is cgi request [08:43:21]url: /json_proto [08:43:21]query_string will be loaded in cgi processing [08:43:21]execute_cgi json_proto POST (null) [08:43:21]execute_cgi path=json_proto method=POST [08:43:21]POST find Content-Length [08:43:21]Host: 172.17.41.195:8080 [08:43:21]Content-Length: 215 [08:43:21]Content-Type: application/json [08:43:21] [08:43:21]POST finish read [08:43:21]Found Content-Length = 215 [08:43:21]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:43:21]execute_script... [08:43:21]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:43:21]POST & json_proto [08:43:21]process_json_proto [08:43:21]json parsed OK: [08:43:21]protocol is kg_v1.0 [08:43:21]action value=get_value [08:43:21]process_action get_value [08:43:21]cmd_get_value [08:43:21]process_action get_value done [08:43:21]requested_data is exist [08:43:21]produce_requested_data [08:43:21]requested_item kkm.sn is exist - process it [08:43:21]requested_item kkm.ver is exist - process it [08:43:21]requested_item fm.sn is exist - process it [08:43:21]wFMCommunicate request_size=4 [08:43:21]MH_SAM_APDU [08:43:21]CAPDU: 80 11 00 00 [08:43:21]Write to MH i2c: E2 08 00 1D 00 80 11 00 00 00 00 00 00 97 [08:43:21]Write i2c OK [08:43:21]MH_I2C_Read... [08:43:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:43:21]Read from MH i2c: E2 [08:43:21]MH_I2C_Read... [08:43:21]Read from MH i2c: E2 17 00 [08:43:21]MH_I2C_Read... [08:43:21]Read from MH i2c: E2 17 00 1D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 ED [08:43:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:43:21]wFMCommunicate OK [08:43:21]requested_item fd.num is exist - process it [08:43:21]SAM_PROTO_GetFieldsCounters [08:43:21]wFMCommunicate request_size=4 [08:43:21]MH_SAM_APDU [08:43:21]CAPDU: 80 13 00 00 [08:43:21]Write to MH i2c: E2 08 00 1E 00 80 13 00 00 00 00 00 00 9A [08:43:21]Write i2c OK [08:43:21]MH_I2C_Read... [08:43:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:43:21]Read from MH i2c: E2 [08:43:21]MH_I2C_Read... [08:43:21]Read from MH i2c: E2 62 00 [08:43:21]MH_I2C_Read... [08:43:21]Read from MH i2c: E2 62 00 1E 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 61 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [08: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 61 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:43:21]wFMCommunicate OK [08:43:21]SAM_PROTO_GetFieldsCounters done [08:43:21]requested_item shift.num is exist - process it [08:43:21]requested_item shift.opened is exist - process it [08:43:21]req_shift_opened [08:43:21]FM_GetShiftState [08:43:21]SAM_PROTO_GetShiftState [08:43:21]wFMCommunicate request_size=4 [08:43:21]MH_SAM_APDU [08:43:21]CAPDU: 80 13 01 00 [08:43:21]Write to MH i2c: E2 08 00 1F 00 80 13 01 00 00 00 00 00 9C [08:43:21]Write i2c OK [08:43:21]MH_I2C_Read... [08:43:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:43:21]Read from MH i2c: E2 [08:43:21]MH_I2C_Read... [08:43:21]Read from MH i2c: E2 0E 00 [08:43:21]MH_I2C_Read... [08:43:21]Read from MH i2c: E2 0E 00 1F 00 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 48 [08:43:21]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [08:43:21]wFMCommunicate OK [08:43:21]SAM_PROTO_GetShiftState done [08:43:21]FM_GetShiftState done [08:43:21]req_shift_opened done [08:43:21]requested_item shift.open_date is exist - process it [08:43:21]req_shift_open_date [08:43:21]req_shift_open_date done [08:43:21]produce_requested_data done [08:43:21]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67425,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [08:43:21]process_action_free get_value [08:43:21]json_value_free [08:43:21]json_value_free done [08:43:21]process_json_proto returns [08:43:21]Send response to host [08:43:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67425,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [08:43:21]free response buf [08:43:21]execute_script done [08:43:21]execute_script returns [08:43:21]free content buf [08:43:21]Sock 9.Close socket [08:43:21]Sock 9.Thread stoped [08:43:21]accept exits with 8 [08:43:21]New connection [08:43:21]New thread 3067604324 created [08:43:21]Thread 3067460964 joined [08:43:21]Waiting for new connection... [08:43:21] Sock 8.Parse request [08:43:21]Sock 8.Check first char [08:43:21]Sock 8.First char is OK [08:43:21]request: POST /json_proto HTTP/1.0 [08:43:21]Method: POST [08:43:21]URL: /json_proto [08:43:21]Method is POST - this is cgi request [08:43:21]url: /json_proto [08:43:21]query_string will be loaded in cgi processing [08:43:21]execute_cgi json_proto POST (null) [08:43:21]execute_cgi path=json_proto method=POST [08:43:21]POST find Content-Length [08:43:21]Host: 172.17.41.195:8080 [08:43:21]Content-Length: 331 [08:43:21]Content-Type: application/json [08:43:21] [08:43:21]POST finish read [08:43:21]Found Content-Length = 331 [08:43:21]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:43:21]execute_script... [08:43:22]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:43:22]POST & json_proto [08:43:22]process_json_proto [08:43:22]json parsed OK: [08:43:22]protocol is kg_v1.0 [08:43:22]action value=get_value [08:43:22]process_action get_value [08:43:22]cmd_get_value [08:43:22]process_action get_value done [08:43:22]requested_data is exist [08:43:22]produce_requested_data [08:43:22]requested_item fm.sale.total is exist - process it [08:43:22]SAM_PROTO_GetFMData [08:43:22]wFMCommunicate request_size=4 [08:43:22]MH_SAM_APDU [08:43:22]CAPDU: 80 13 03 00 [08:43:22]Write to MH i2c: E2 08 00 20 00 80 13 03 00 00 00 00 00 9F [08:43:22]Write i2c OK [08:43:22]MH_I2C_Read... [08:43:22]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [08:43:22]Read from MH i2c: E2 [08:43:22]MH_I2C_Read... [08:43:22]Read from MH i2c: E2 FD 00 [08:43:22]MH_I2C_Read... [08:43:22]Read from MH i2c: E2 FD 00 20 00 00 C6 04 85 04 C2 04 6E 04 04 00 97 04 01 00 69 04 A3 00 6F 04 04 00 EF 03 01 00 B1 04 05 00 E5 10 F9 1A 03 70 04 05 00 50 2B 95 BF 02 72 04 04 00 95 E5 63 5B 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 A0 F8 6E 54 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 E3 2A 09 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 A8 00 00 00 B1 04 04 00 90 BE BA DC 70 04 04 00 90 BE BA DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AB B9 70 17 EF 03 09 90 00 3C [08:43:22]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 97 04 01 00 69 04 A3 00 6F 04 04 00 EF 03 01 00 B1 04 05 00 E5 10 F9 1A 03 70 04 05 00 50 2B 95 BF 02 72 04 04 00 95 E5 63 5B 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 A0 F8 6E 54 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 E3 2A 09 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 A8 00 00 00 B1 04 04 00 90 BE BA DC 70 04 04 00 90 BE BA DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AB B9 70 17 EF 03 09 90 00 [08:43:22]wFMCommunicate OK [08:43:22]wFMCommunicate request_size=4 [08:43:22]MH_SAM_APDU [08:43:22]CAPDU: 80 17 00 00 [08:43:22]Write to MH i2c: E2 08 00 21 00 80 17 00 00 00 00 00 00 A1 [08:43:22]Write i2c OK [08:43:22]MH_I2C_Read... [08:43:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:43:22]Read from MH i2c: E2 [08:43:22]MH_I2C_Read... [08:43:22]Read from MH i2c: E2 FD 00 [08:43:22]MH_I2C_Read... [08:43:22]Read from MH i2c: E2 FD 00 21 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6C 0F F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 C5 [08:43:22]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6C 0F F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [08:43:22]wFMCommunicate OK [08:43:22]wFMCommunicate request_size=4 [08:43:22]MH_SAM_APDU [08:43:22]CAPDU: 80 17 00 00 [08:43:22]Write to MH i2c: E2 08 00 22 00 80 17 00 00 00 00 00 00 A2 [08:43:22]Write i2c OK [08:43:22]MH_I2C_Read... [08:43:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:43:23]Read from MH i2c: E2 [08:43:23]MH_I2C_Read... [08:43:23]Read from MH i2c: E2 FD 00 [08:43:23]MH_I2C_Read... [08:43:23]Read from MH i2c: E2 FD 00 22 00 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 C9 [08:43:23]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [08:43:23]wFMCommunicate OK [08:43:23]wFMCommunicate request_size=4 [08:43:23]MH_SAM_APDU [08:43:23]CAPDU: 80 17 00 00 [08:43:23]Write to MH i2c: E2 08 00 23 00 80 17 00 00 00 00 00 00 A3 [08:43:23]Write i2c OK [08:43:23]MH_I2C_Read... [08:43:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:43:23]Read from MH i2c: E2 [08:43:23]MH_I2C_Read... [08:43:23]Read from MH i2c: E2 FD 00 [08:43:23]MH_I2C_Read... [08:43:23]Read from MH i2c: E2 FD 00 23 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 1E [08:43:23]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [08:43:23]wFMCommunicate OK [08:43:23]wFMCommunicate request_size=4 [08:43:23]MH_SAM_APDU [08:43:23]CAPDU: 80 17 00 00 [08:43:23]Write to MH i2c: E2 08 00 24 00 80 17 00 00 00 00 00 00 A4 [08:43:23]Write i2c OK [08:43:23]MH_I2C_Read... [08:43:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [08:43:23]Read from MH i2c: E2 [08:43:23]MH_I2C_Read... [08:43:23]Read from MH i2c: E2 E3 00 [08:43:23]MH_I2C_Read... [08:43:23]Read from MH i2c: E2 E3 00 24 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 83 [08:43:23]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:43:23]wFMCommunicate OK [08:43:23]SAM_PROTO_GetFMData done [08:43:23]requested_item fm.sale_refund.total is exist - process it [08:43:23]requested_item fm.buy.total is exist - process it [08:43:23]requested_item shift.sale.total is exist - process it [08:43:23]SAM_PROTO_GetShiftData [08:43:23]wFMCommunicate request_size=4 [08:43:23]MH_SAM_APDU [08:43:23]CAPDU: 80 13 02 00 [08:43:23]Write to MH i2c: E2 08 00 25 00 80 13 02 00 00 00 00 00 A3 [08:43:23]Write i2c OK [08:43:23]MH_I2C_Read... [08:43:24]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [08:43:24]Read from MH i2c: E2 [08:43:24]MH_I2C_Read... [08:43:24]Read from MH i2c: E2 FD 00 [08:43:24]MH_I2C_Read... [08:43:24]Read from MH i2c: E2 FD 00 25 00 00 AE 04 AA 04 AA 04 6E 04 04 00 17 00 00 00 69 04 9B 00 6F 04 04 00 17 00 00 00 B1 04 03 00 8F 32 1D 70 04 03 00 A8 7F 14 72 04 03 00 E7 B2 08 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 0F 1A 03 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 2A 42 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E4 [08:43:24]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 17 00 00 00 69 04 9B 00 6F 04 04 00 17 00 00 00 B1 04 03 00 8F 32 1D 70 04 03 00 A8 7F 14 72 04 03 00 E7 B2 08 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 0F 1A 03 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 2A 42 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:43:24]wFMCommunicate OK [08:43:24]wFMCommunicate request_size=4 [08:43:24]MH_SAM_APDU [08:43:24]CAPDU: 80 17 00 00 [08:43:24]Write to MH i2c: E2 08 00 26 00 80 17 00 00 00 00 00 00 A6 [08:43:24]Write i2c OK [08:43:24]MH_I2C_Read... [08:43:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:43:24]Read from MH i2c: E2 [08:43:24]MH_I2C_Read... [08:43:24]Read from MH i2c: E2 FD 00 [08:43:24]MH_I2C_Read... [08:43:24]Read from MH i2c: E2 FD 00 26 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 C8 [08:43:24]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:43:24]wFMCommunicate OK [08:43:24]wFMCommunicate request_size=4 [08:43:24]MH_SAM_APDU [08:43:24]CAPDU: 80 17 00 00 [08:43:24]Write to MH i2c: E2 08 00 27 00 80 17 00 00 00 00 00 00 A7 [08:43:24]Write i2c OK [08:43:24]MH_I2C_Read... [08:43:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:43:24]Read from MH i2c: E2 [08:43:24]MH_I2C_Read... [08:43:24]Read from MH i2c: E2 FD 00 [08:43:24]MH_I2C_Read... [08:43:24]Read from MH i2c: E2 FD 00 27 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 5E [08:43:24]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:43:24]wFMCommunicate OK [08:43:24]wFMCommunicate request_size=4 [08:43:24]MH_SAM_APDU [08:43:24]CAPDU: 80 17 00 00 [08:43:24]Write to MH i2c: E2 08 00 28 00 80 17 00 00 00 00 00 00 A8 [08:43:24]Write i2c OK [08:43:24]MH_I2C_Read... [08:43:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:43:24]Read from MH i2c: E2 [08:43:24]MH_I2C_Read... [08:43:24]Read from MH i2c: E2 FD 00 [08:43:24]MH_I2C_Read... [08:43:24]Read from MH i2c: E2 FD 00 28 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 1A [08:43:24]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:43:24]wFMCommunicate OK [08:43:24]wFMCommunicate request_size=4 [08:43:24]MH_SAM_APDU [08:43:24]CAPDU: 80 17 00 00 [08:43:24]Write to MH i2c: E2 08 00 29 00 80 17 00 00 00 00 00 00 A9 [08:43:24]Write i2c OK [08:43:24]MH_I2C_Read... [08:43:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [08:43:25]Read from MH i2c: E2 [08:43:25]MH_I2C_Read... [08:43:25]Read from MH i2c: E2 CB 00 [08:43:25]MH_I2C_Read... [08:43:25]Read from MH i2c: E2 CB 00 29 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 92 [08:43:25]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:43:25]wFMCommunicate OK [08:43:25]SAM_PROTO_GetShiftData done [08:43:25]requested_item shift.sale.total_cash is exist - process it [08:43:25]requested_item shift.sale_refund.total is exist - process it [08:43:25]requested_item shift.sale_refund.total_cash is exist - process it [08:43:25]requested_item shift.buy.total is exist - process it [08:43:25]requested_item shift.buy.total_cash is exist - process it [08:43:25]produce_requested_data done [08:43:25]produce_requested_data return {"fm.sale.total":133374322.93,"fm.sale_refund.total":37032260.00,"fm.buy.total":0.00,"shift.sale.total":19134.87,"shift.sale.total_cash":13434.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:43:25]process_action_free get_value [08:43:25]json_value_free [08:43:25]json_value_free done [08:43:25]process_json_proto returns [08:43:25]Send response to host [08:43:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133374322.93,"fm.sale_refund.total":37032260.00,"fm.buy.total":0.00,"shift.sale.total":19134.87,"shift.sale.total_cash":13434.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:43:25]free response buf [08:43:25]execute_script done [08:43:25]execute_script returns [08:43:25]free content buf [08:43:25]Sock 8.Close socket [08:43:25]Sock 8.Thread stoped [08:43:25]accept exits with 9 [08:43:25]New connection [08:43:25]New thread 3067460964 created [08:43:25]Thread 3067604324 joined [08:43:25]Waiting for new connection... [08:43:25] Sock 9.Parse request [08:43:25]Sock 9.Check first char [08:43:25]Sock 9.First char is OK [08:43:25]request: POST /json_proto HTTP/1.0 [08:43:25]Method: POST [08:43:25]URL: /json_proto [08:43:25]Method is POST - this is cgi request [08:43:25]url: /json_proto [08:43:25]query_string will be loaded in cgi processing [08:43:25]execute_cgi json_proto POST (null) [08:43:25]execute_cgi path=json_proto method=POST [08:43:25]POST find Content-Length [08:43:25]Host: 172.17.41.195:8080 [08:43:25]Content-Length: 1209 [08:43:25]Content-Type: application/json [08:43:25] [08:43:25]POST finish read [08:43:25]Found Content-Length = 1209 [08:43:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507428\u000A16.05.2024 08:25\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1494.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:43:25]execute_script... [08:43:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507428\u000A16.05.2024 08:25\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1494.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:43:25]POST & json_proto [08:43:25]process_json_proto [08:43:25]json parsed OK: [08:43:25]protocol is kg_v1.0 [08:43:25]action value=print_text [08:43:25]process_action print_text [08:43:25]cmd_print_text [08:43:25]ExternCall_PrintAddStr [08:43:25]wPrintStart [08:43:25]Write to MH i2c: 01 00 00 2A 00 2A [08:43:25]Write i2c OK [08:43:25]MH_I2C_Read... [08:43:25]Read from MH i2c: 01 [08:43:25]MH_I2C_Read... [08:43:25]Read from MH i2c: 01 07 00 [08:43:25]MH_I2C_Read... [08:43:25]Read from MH i2c: 01 07 00 2A 00 00 00 00 00 00 FF 0F 3F [08:43:25]RasterBufferAndPrint [08:43:25]line *****ТОВАРНЫЙ ЧЕК***** [08:43:25]line АЗС-91 [08:43:25]line Партнер нефть [08:43:25]line 02508201610067 [08:43:25]line Кассир : Пайзулдаева А. [08:43:25]line Счет N : (1)507428 [08:43:25]line 16.05.2024 08:25 [08:43:25]line ПРОДАЖА [08:43:25]line ТРК (МРК, ГНК): 31 [08:43:25]line Вид ГСМ : 2710194210 [08:43:25]line ДТ-К-5 [08:43:25]line 20.000 x 74.70 [08:43:25]line ИТОГ: 1494.00 [08:43:25]line Тип оплаты: Талоны: Топливная Карта [08:43:25]line 02750 [08:43:25]line ______________________ [08:43:25]line (подпись) [08:43:25]written 0, free lines is 4095 [08:43:25]OFD Sender: No OFD packet to send [08:43:25]Write to MH i2c: 01 00 00 3E 00 3E [08:43:25]Write i2c OK [08:43:25]MH_I2C_Read... [08:43:25]Read from MH i2c: 01 [08:43:25]MH_I2C_Read... [08:43:25]Read from MH i2c: 01 07 00 [08:43:25]MH_I2C_Read... [08:43:25]Read from MH i2c: 01 07 00 3E 00 00 00 00 00 00 13 0E 66 [08:43:25]RasterBufferAndPrint [08:43:25]line [08:43:25]line [08:43:25]line [08:43:25]line [08:43:25]line [08:43:25]written 0, free lines is 3608 [08:43:25]MH_Cut [08:43:25]Write to MH i2c: D1 01 00 45 00 01 17 [08:43:25]Write i2c OK [08:43:25]MH_I2C_Read... [08:43:25]Read from MH i2c: D1 [08:43:25]MH_I2C_Read... [08:43:25]Read from MH i2c: D1 01 00 [08:43:25]MH_I2C_Read... [08:43:25]Read from MH i2c: D1 01 00 45 00 00 16 [08:43:25]Write to MH i2c: 01 00 00 46 00 46 [08:43:25]Write i2c OK [08:43:25]MH_I2C_Read... [08:43:26]*** Cut start [08:43:26]*** Purtial cut [08:43:26]*** Stage 1: CUTSNS_PIN = 1 [08:43:26]Read from MH i2c: 01 [08:43:26]MH_I2C_Read... [08:43:26]*** Stop cut motor [08:43:26]*** Cut end [08:43:26]Read from MH i2c: 01 07 00 [08:43:26]MH_I2C_Read... [08:43:26]Read from MH i2c: 01 07 00 46 00 00 00 00 00 00 FF 0F 5B [08:43:26]process_action print_text done [08:43:26]requested_data is exist [08:43:26]produce_requested_data [08:43:26]requested_item fm.sn is exist - process it [08:43:26]wFMCommunicate request_size=4 [08:43:26]MH_SAM_APDU [08:43:26]CAPDU: 80 11 00 00 [08:43:26]Write to MH i2c: E2 08 00 47 00 80 11 00 00 00 00 00 00 C1 [08:43:26]Write i2c OK [08:43:26]MH_I2C_Read... [08:43:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:43:26]Read from MH i2c: E2 [08:43:26]MH_I2C_Read... [08:43:26]Read from MH i2c: E2 17 00 [08:43:26]MH_I2C_Read... [08:43:26]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 38 32 39 90 00 17 [08:43:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:43:26]wFMCommunicate OK [08:43:26]requested_item fd.num is exist - process it [08:43:26]SAM_PROTO_GetFieldsCounters [08:43:26]wFMCommunicate request_size=4 [08:43:26]MH_SAM_APDU [08:43:26]CAPDU: 80 13 00 00 [08:43:26]Write to MH i2c: E2 08 00 48 00 80 13 00 00 00 00 00 00 C4 [08:43:26]Write i2c OK [08:43:26]MH_I2C_Read... [08:43:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:43:26]Read from MH i2c: E2 [08:43:26]MH_I2C_Read... [08:43:26]Read from MH i2c: E2 62 00 [08:43:26]MH_I2C_Read... [08:43:26]Read from MH i2c: E2 62 00 48 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 61 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [08:43:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 61 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:43:26]wFMCommunicate OK [08:43:26]SAM_PROTO_GetFieldsCounters done [08:43:26]requested_item shift.num is exist - process it [08:43:26]requested_item shift.opened is exist - process it [08:43:26]req_shift_opened [08:43:26]FM_GetShiftState [08:43:26]SAM_PROTO_GetShiftState [08:43:26]wFMCommunicate request_size=4 [08:43:26]MH_SAM_APDU [08:43:26]CAPDU: 80 13 01 00 [08:43:26]Write to MH i2c: E2 08 00 49 00 80 13 01 00 00 00 00 00 C6 [08:43:26]Write i2c OK [08:43:26]MH_I2C_Read... [08:43:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:43:27]Read from MH i2c: E2 [08:43:27]MH_I2C_Read... [08:43:27]Read from MH i2c: E2 0E 00 [08:43:27]MH_I2C_Read... [08:43:27]Read from MH i2c: E2 0E 00 49 00 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 72 [08:43:27]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [08:43:27]wFMCommunicate OK [08:43:27]SAM_PROTO_GetShiftState done [08:43:27]FM_GetShiftState done [08:43:27]req_shift_opened done [08:43:27]requested_item shift.open_date is exist - process it [08:43:27]req_shift_open_date [08:43:27]req_shift_open_date done [08:43:27]produce_requested_data done [08:43:27]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67425,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [08:43:27]process_action_free print_text [08:43:27]json_value_free [08:43:27]json_value_free done [08:43:27]process_json_proto returns [08:43:27]Send response to host [08:43:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67425,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [08:43:27]free response buf [08:43:27]execute_script done [08:43:27]execute_script returns [08:43:27]free content buf [08:43:27]Sock 9.Close socket [08:43:27]Sock 9.Thread stoped [08:43:30]OFD Sender: No OFD packet to send [08:43:35]OFD Sender: No OFD packet to send [08:43:40]OFD Sender: No OFD packet to send [08:43:45]OFD Sender: No OFD packet to send [08:43:50]OFD Sender: No OFD packet to send [08:43:55]OFD Sender: No OFD packet to send [08:44:00]OFD Sender: No OFD packet to send [08:44:03]accept exits with 8 [08:44:03]New connection [08:44:03]New thread 3067604324 created [08:44:03]Thread 3067460964 joined [08:44:03]Waiting for new connection... [08:44:03] Sock 8.Parse request [08:44:03]Sock 8.Check first char [08:44:03]Sock 8.First char is OK [08:44:03]request: POST /json_proto HTTP/1.0 [08:44:03]Method: POST [08:44:03]URL: /json_proto [08:44:03]Method is POST - this is cgi request [08:44:03]url: /json_proto [08:44:03]query_string will be loaded in cgi processing [08:44:03]execute_cgi json_proto POST (null) [08:44:03]execute_cgi path=json_proto method=POST [08:44:03]POST find Content-Length [08:44:03]Host: 172.17.41.195:8080 [08:44:03]Content-Length: 670 [08:44:03]Content-Type: application/json [08:44:03] [08:44:03]POST finish read [08:44:03]Found Content-Length = 670 [08:44:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507429", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:03]execute_script... [08:44: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)507429", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:03]POST & json_proto [08:44:03]process_json_proto [08:44:03]json parsed OK: [08:44:03]protocol is kg_v1.0 [08:44:03]action value=close_receipt [08:44:03]process_action close_receipt [08:44:03]cmd_close_receipt [08:44:03]MH_GetDate [08:44:03]Write to MH i2c: F0 00 00 4A 00 39 [08:44:03]Write i2c OK [08:44:03]MH_I2C_Read... [08:44:03]Read from MH i2c: F0 [08:44:03]MH_I2C_Read... [08:44:03]Read from MH i2c: F0 09 00 [08:44:03]MH_I2C_Read... [08:44:03]Read from MH i2c: F0 09 00 4A 00 00 54 C7 45 66 FC 21 6F 64 F8 [08:44:03]GetLastDocTimeStamp 1715848726 [08:44:03]current date 1715849044 [08:44:03]FM_GetShiftState [08:44:03]SAM_PROTO_GetShiftState [08:44:03]wFMCommunicate request_size=4 [08:44:03]MH_SAM_APDU [08:44:03]CAPDU: 80 13 01 00 [08:44:03]Write to MH i2c: E2 08 00 4B 00 80 13 01 00 00 00 00 00 C8 [08:44:03]Write i2c OK [08:44:03]MH_I2C_Read... [08:44:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:03]Read from MH i2c: E2 [08:44:03]MH_I2C_Read... [08:44:03]Read from MH i2c: E2 0E 00 [08:44:03]MH_I2C_Read... [08:44:03]Read from MH i2c: E2 0E 00 4B 00 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 74 [08:44:03]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [08:44:03]wFMCommunicate OK [08:44:03]SAM_PROTO_GetShiftState done [08:44:03]FM_GetShiftState done [08:44:03]opened in 1715818916 [08:44:03]opened+sec_in_day 1715905316 [08:44:03]quantity*price = 50036 [08:44:03]sum+1 = 50037 [08:44:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 24 16.05.2024 08:44 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67426 ФПД: 212017405097370 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T084404&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67426&fm=212017405097370&tin=02508201610067®Number=0000000000091845&sum=50000 [08:44:04]StoreToDocumentArchive [08:44:04]shift 357 fd 67426 [08:44:04]save to /storage/0357/doc_00067426 [08:44:04]save last doc name /storage/0357/doc_00067426 to /storage/kkm_last_doc_name [08:44:04]save OK [08:44:04]Clear old archive folders... [08:44:04]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:44:04]tlvbuf is 00C90A30 [08:44:04]SAM_PROTO_ClearQueue [08:44:04]wFMCommunicate request_size=4 [08:44:04]MH_SAM_APDU [08:44:04]CAPDU: 80 09 00 00 [08:44:04]Write to MH i2c: E2 08 00 58 00 80 09 00 00 00 00 00 00 CA [08:44:04]Write i2c OK [08:44:04]MH_I2C_Read... [08:44:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:44:04]Read from MH i2c: E2 [08:44:04]MH_I2C_Read... [08:44:04]Read from MH i2c: E2 03 00 [08:44:04]MH_I2C_Read... [08:44:04]Read from MH i2c: E2 03 00 58 00 00 90 00 CC [08:44:04]RAPDU: 90 00 [08:44:04]wFMCommunicate OK [08:44:04]SAM_PROTO_ClearQueue done [08:44:04]KKMCreateOFDPacket [08:44:04]OFDProtocolAddRootSTLVToBuf [08:44:04]FM_MakeSignedData [08:44:04]FM_MakeSignedData [08:44:04]SAM_PROTO_SignData [08:44:04]wFMCommunicate request_size=4 [08:44:04]MH_SAM_APDU [08:44:04]CAPDU: 80 0D 01 02 [08:44:04]Write to MH i2c: E2 08 00 59 00 80 0D 01 02 00 00 00 00 D2 [08:44:04]Write i2c OK [08:44:04]MH_I2C_Read... [08:44:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:44:04]Read from MH i2c: E2 [08:44:04]MH_I2C_Read... [08:44:04]Read from MH i2c: E2 03 00 [08:44:04]MH_I2C_Read... [08:44:04]Read from MH i2c: E2 03 00 59 00 00 90 00 CD [08:44:04]RAPDU: 90 00 [08:44:04]wFMCommunicate OK [08:44:04]wFMCommunicate request_size=255 [08:44:04]MH_SAM_APDU [08:44:04]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 54 C7 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 62 07 01 00 35 04 06 00 [08:44:04]Write to MH i2c: E2 02 01 5A 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 54 C7 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 62 07 01 00 35 04 06 00 00 00 2E [08:44:04]Write i2c OK [08:44:04]MH_I2C_Read... [08:44:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:04]Read from MH i2c: E2 [08:44:04]MH_I2C_Read... [08:44:04]Read from MH i2c: E2 03 00 [08:44:04]MH_I2C_Read... [08:44:04]Read from MH i2c: E2 03 00 5A 00 00 90 00 CE [08:44:04]RAPDU: 90 00 [08:44:04]wFMCommunicate OK [08:44:04]wFMCommunicate request_size=11 [08:44:04]MH_SAM_APDU [08:44:04]CAPDU: 80 0D 02 02 06 C0 D4 26 1D F5 9A [08:44:04]Write to MH i2c: E2 0E 00 5B 00 80 0D 02 02 06 00 C0 D4 26 1D F5 9A 00 00 47 [08:44:04]Write i2c OK [08:44:04]MH_I2C_Read... [08:44:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:04]Read from MH i2c: E2 [08:44:04]MH_I2C_Read... [08:44:04]Read from MH i2c: E2 03 00 [08:44:04]MH_I2C_Read... [08:44:04]Read from MH i2c: E2 03 00 5B 00 00 90 00 CF [08:44:04]RAPDU: 90 00 [08:44:04]wFMCommunicate OK [08:44:04]wFMCommunicate request_size=4 [08:44:04]MH_SAM_APDU [08:44:04]CAPDU: 80 0D 03 02 [08:44:04]Write to MH i2c: E2 08 00 5C 00 80 0D 03 02 00 00 00 00 D7 [08:44:04]Write i2c OK [08:44:04]MH_I2C_Read... [08:44:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:44:04]Read from MH i2c: E2 [08:44:04]MH_I2C_Read... [08:44:04]Read from MH i2c: E2 0B 00 [08:44:04]MH_I2C_Read... [08:44:04]Read from MH i2c: E2 0B 00 5C 00 00 93 05 CA 36 F4 61 58 E6 90 00 03 [08:44:04]RAPDU: 93 05 CA 36 F4 61 58 E6 90 00 [08:44:04]wFMCommunicate OK [08:44:04]SAM_PROTO_SignData done [08:44:04]FM_MakeSignedData done [08:44:04]CreateOFDProtocolMessage [08:44:04]wFMCommunicate request_size=4 [08:44:04]MH_SAM_APDU [08:44:04]CAPDU: 80 11 00 00 [08:44:04]Write to MH i2c: E2 08 00 5D 00 80 11 00 00 00 00 00 00 D7 [08:44:04]Write i2c OK [08:44:04]MH_I2C_Read... [08:44:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:04]Read from MH i2c: E2 [08:44:04]MH_I2C_Read... [08:44:04]Read from MH i2c: E2 17 00 [08:44:04]MH_I2C_Read... [08:44:04]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 38 32 39 90 00 2D [08:44:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:44:04]wFMCommunicate OK [08:44:04]CreateOFDProtocolMessage done [08:44:04]OFDSenderStorePacket 67426 [08:44:04]StoreOFDPacket docnum=67426 [08:44:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 E5 34 08 01 5C 6E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 54 C7 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 62 07 01 00 35 04 06 00 C0 D4 26 1D F5 9A 93 05 CA 36 F4 61 58 E6 [08:44:04]CheckFolder [08:44:04]dirname=/storage/ofd_packets [08:44:04]CheckFolder done [08:44:04]ProducePacketName [08:44:04]name=ofd_packets/00067426 [08:44:04]NVStorageSaveData ofd_packets/00067426 [08:44:04]File name is /storage/ofd_packets/00067426 [08:44:04]Write 302 bytes [08:44:04]NVStorageSaveData done [08:44:04]OFDSenderStorePacket done [08:44:04]KKMCreateOFDPacket done [08:44:04]NVStorageSaveData kkm_last_timestamp [08:44:04]File name is /storage/kkm_last_timestamp [08:44:04]Write 4 bytes [08:44:04]NVStorageSaveData done [08:44:04]ExternCall_PrintAddStr [08:44:04]wPrintStart [08:44:04]Write to MH i2c: 01 00 00 5E 00 5E [08:44:04]Write i2c OK [08:44:04]MH_I2C_Read... [08:44:04]Read from MH i2c: 01 [08:44:04]MH_I2C_Read... [08:44:04]Read from MH i2c: 01 07 00 [08:44:04]MH_I2C_Read... [08:44:04]Read from MH i2c: 01 07 00 5E 00 00 00 00 00 00 FF 0F 73 [08:44:04]RasterBufferAndPrint [08:44:04]line Счет N : (1)507429 [08:44:04]line ИНН: 02508201610067 [08:44:04]line Контрольно-Кассовый Чек [08:44:04]line ПРОДАЖА [08:44:04]line ТРК (МРК, ГНК) : 32 [08:44:04]line Товар: 2710124130 [08:44:04]line Super-92-К-5 [08:44:04]line 7.380 * 67.80 [08:44:04]line = 500.36 [08:44:04]line НДС 12% НСП 1% [08:44:04]line > о реализуемом товаре [08:44:04]line ОКРУГЛЕНИЕ: -0.36 [08:44:04]line ИТОГО: 500.00 [08:44:04]line Внесено: 500.00 [08:44:04]line СДАЧА: 0.00 [08:44:04]line НСП 1% : 4.43 [08:44:04]line НДС 12% : 53.14 [08:44:04]line Наличными: 500.00 [08:44:04]line Безнал.: 0.00 [08:44:04]line Место: АЗС № 91 "Партнер Нефть" [08:44:04]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [08:44:04]line СНО: Общий режим [08:44:04]line Чек 24 16.05.2024 08:44 [08:44:04]line Смена: 357 ФФД: 1.0 [08:44:04]line ЗНМ: 0300000119 [08:44:04]line РНМ: 0000000000091845 [08:44:04]line Версия ККМ: 001 [08:44:04]line ФМ: 0000000000871829 [08:44:04]line ФД: 67426 [08:44:04]line ФПД: 212017405097370 [08:44:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T084404&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67426&fm=212017405097370&tin=02508201610067®Number=0000000000091845&sum=50000 [08:44:04]written 0, free lines is 4095 [08:44:04]OFD Sender: Processing packet 67426 [packets to send 35, broken 34] [08:44:04]ProducePacketName [08:44:05]name=ofd_packets/00067426 [08:44:05]OFD Sender: To server: pG, [08:44:05]CommunicateWithHost lk.salyk.kg:30040 [08:44:05]ConnectInit lk.salyk.kg [08:44:05]Write to MH i2c: 01 00 00 88 00 88 [08:44:05]Connected sock=10 [08:44: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 38 32 39 10 01 00 00 E5 34 08 01 5C 6E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 54 C7 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 62 07 01 00 35 04 06 00 C0 D4 26 1D F5 9A 93 05 CA 36 F4 61 58 E6 [08:44:05]Write i2c OK [08:44:05]MH_I2C_Read... [08:44:05]Read from MH i2c: 01 [08:44:05]MH_I2C_Read... [08:44:05]Read from MH i2c: 01 07 00 [08:44:05]MH_I2C_Read... [08:44:05]Read from MH i2c: 01 07 00 88 00 00 00 00 00 00 BF 0C 5A [08:44:05]RasterBufferAndPrint [08:44:05]line [08:44:05]line [08:44:05]line [08:44:05]line [08:44:05]line [08:44:05]written 0, free lines is 3296 [08:44:05]MH_Cut [08:44:05]Write to MH i2c: D1 01 00 8F 00 01 61 [08:44:05]Write i2c OK [08:44:05]MH_I2C_Read... [08:44:05]Read from MH i2c: D1 [08:44:05]MH_I2C_Read... [08:44:05]Read from MH i2c: D1 01 00 [08:44:05]MH_I2C_Read... [08:44:05]Read from MH i2c: D1 01 00 8F 00 00 60 [08:44:05]Write to MH i2c: 01 00 00 90 00 90 [08:44:05]Write i2c OK [08:44:05]MH_I2C_Read... [08:44:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 D4 E0 47 00 E8 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 38 32 39 10 04 04 00 62 07 01 00 F4 03 04 00 2F 6F 45 66 B6 04 01 00 00 9A 4B 0F F5 65 DA 04 8D [08:44:05]CommunicateWithHost err = 0 [08:44:05]CheckOFDResponse [08:44:05]1017 (14) - 77093643461234 [08:44:05]1041 (16) - 0000000000871829 [08:44:05]1040 (4) - 67426 [08:44:05]1012 (4) - 16.05.2024 02:27 [08:44:05]1206 (1) - 0 [08:44:05]OFD Sender: Remove packet 67426 [08:44:05]ProducePacketName [08:44:05]name=ofd_packets/00067426 [08:44:05]NVStorageDeleteData [08:44:06]OFD Sender: No OFD packet to send [08:44:06]*** Cut start [08:44:06]*** Purtial cut [08:44:06]*** CUTSNS_PIN = 0 [08:44:06]*** Stage 1: CUTSNS_PIN = 1 [08:44:08]Read from MH i2c: 01 [08:44:08]MH_I2C_Read... [08:44:08]*** Stop cut motor [08:44:08]*** Cut end [08:44:08]Read from MH i2c: 01 07 00 [08:44:08]MH_I2C_Read... [08:44:08]Read from MH i2c: 01 07 00 90 00 00 00 00 00 00 FF 0F A5 [08:44:08]process_action close_receipt done [08:44:08]requested_data is exist [08:44:08]produce_requested_data [08:44:08]requested_item fm.sn is exist - process it [08:44:08]wFMCommunicate request_size=4 [08:44:08]MH_SAM_APDU [08:44:08]CAPDU: 80 11 00 00 [08:44:08]Write to MH i2c: E2 08 00 91 00 80 11 00 00 00 00 00 00 0B [08:44:08]Write i2c OK [08:44:08]MH_I2C_Read... [08:44:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:08]Read from MH i2c: E2 [08:44:08]MH_I2C_Read... [08:44:08]Read from MH i2c: E2 17 00 [08:44:08]MH_I2C_Read... [08:44:08]Read from MH i2c: E2 17 00 91 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 61 [08:44:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:44:08]wFMCommunicate OK [08:44:08]requested_item fd.num is exist - process it [08:44:08]SAM_PROTO_GetFieldsCounters [08:44:08]wFMCommunicate request_size=4 [08:44:08]MH_SAM_APDU [08:44:08]CAPDU: 80 13 00 00 [08:44:08]Write to MH i2c: E2 08 00 92 00 80 13 00 00 00 00 00 00 0E [08:44:08]Write i2c OK [08:44:08]MH_I2C_Read... [08:44:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:44:08]Read from MH i2c: E2 [08:44:08]MH_I2C_Read... [08:44:08]Read from MH i2c: E2 62 00 [08:44:08]MH_I2C_Read... [08:44:08]Read from MH i2c: E2 62 00 92 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 62 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [08:44: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 62 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:44:08]wFMCommunicate OK [08:44:08]SAM_PROTO_GetFieldsCounters done [08:44:08]requested_item shift.num is exist - process it [08:44:08]requested_item shift.opened is exist - process it [08:44:08]req_shift_opened [08:44:08]FM_GetShiftState [08:44:08]SAM_PROTO_GetShiftState [08:44:08]wFMCommunicate request_size=4 [08:44:08]MH_SAM_APDU [08:44:08]CAPDU: 80 13 01 00 [08:44:08]Write to MH i2c: E2 08 00 93 00 80 13 01 00 00 00 00 00 10 [08:44:08]Write i2c OK [08:44:08]MH_I2C_Read... [08:44:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:08]Read from MH i2c: E2 [08:44:08]MH_I2C_Read... [08:44:08]Read from MH i2c: E2 0E 00 [08:44:08]MH_I2C_Read... [08:44:08]Read from MH i2c: E2 0E 00 93 00 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 BC [08:44:08]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [08:44:08]wFMCommunicate OK [08:44:08]SAM_PROTO_GetShiftState done [08:44:08]FM_GetShiftState done [08:44:08]req_shift_opened done [08:44:08]requested_item shift.open_date is exist - process it [08:44:08]req_shift_open_date [08:44:08]req_shift_open_date done [08:44:08]produce_requested_data done [08:44:08]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67426,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [08:44:08]process_action_free close_receipt [08:44:08]json_value_free [08:44:08]json_value_free done [08:44:08]process_json_proto returns [08:44:08]Send response to host [08:44:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67426,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [08:44:08]free response buf [08:44:08]execute_script done [08:44:08]execute_script returns [08:44:08]free content buf [08:44:08]Sock 8.Close socket [08:44:08]Sock 8.Thread stoped [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:31]OFD Sender: No OFD packet to send [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:46]OFD Sender: No OFD packet to send [08:50:51]OFD Sender: No OFD packet to send [08:50:56]OFD Sender: No OFD packet to send [08:51:01]OFD Sender: No OFD packet to send [08:51:06]OFD Sender: No OFD packet to send [08:51:11]OFD Sender: No OFD packet to send [08:51:16]OFD Sender: No OFD packet to send [08:51:21]OFD Sender: No OFD packet to send [08:51:26]OFD Sender: No OFD packet to send [08:51:31]OFD Sender: No OFD packet to send [08:51:36]OFD Sender: No OFD packet to send [08:51:41]OFD Sender: No OFD packet to send [08:51:46]OFD Sender: No OFD packet to send [08:51:51]OFD Sender: No OFD packet to send [08:51:56]OFD Sender: No OFD packet to send [08:52:01]OFD Sender: No OFD packet to send [08:52:06]OFD Sender: No OFD packet to send [08:52:11]OFD Sender: No OFD packet to send [08:52:16]OFD Sender: No OFD packet to send [08:52:21]OFD Sender: No OFD packet to send [08:52:26]OFD Sender: No OFD packet to send [08:52:31]OFD Sender: No OFD packet to send [08:52:36]OFD Sender: No OFD packet to send [08:52:41]OFD Sender: No OFD packet to send [08:52:46]OFD Sender: No OFD packet to send [08:52:51]OFD Sender: No OFD packet to send [08:52:56]OFD Sender: No OFD packet to send [08:53:01]OFD Sender: No OFD packet to send [08:53:06]OFD Sender: No OFD packet to send [08:53:11]OFD Sender: No OFD packet to send [08:53:16]OFD Sender: No OFD packet to send [08:53:21]OFD Sender: No OFD packet to send [08:53:26]OFD Sender: No OFD packet to send [08:53:31]OFD Sender: No OFD packet to send [08:53:36]OFD Sender: No OFD packet to send [08:53:41]OFD Sender: No OFD packet to send [08:53:46]OFD Sender: No OFD packet to send [08:53:51]OFD Sender: No OFD packet to send [08:53:56]OFD Sender: No OFD packet to send [08:54:01]OFD Sender: No OFD packet to send [08:54:06]OFD Sender: No OFD packet to send [08:54:11]OFD Sender: No OFD packet to send [08:54:16]OFD Sender: No OFD packet to send [08:54:21]OFD Sender: No OFD packet to send [08:54:23]accept exits with 9 [08:54:23]New connection [08:54:23]New thread 3067460964 created [08:54:23]Thread 3067604324 joined [08:54:23]Waiting for new connection... [08:54:23] Sock 9.Parse request [08:54:23]Sock 9.Check first char [08:54:23]Sock 9.First char is OK [08:54:23]request: POST /json_proto HTTP/1.0 [08:54:23]Method: POST [08:54:23]URL: /json_proto [08:54:23]Method is POST - this is cgi request [08:54:23]url: /json_proto [08:54:23]query_string will be loaded in cgi processing [08:54:23]execute_cgi json_proto POST (null) [08:54:23]execute_cgi path=json_proto method=POST [08:54:23]POST find Content-Length [08:54:23]Host: 172.17.41.195:8080 [08:54:23]Content-Length: 679 [08:54:23]Content-Type: application/json [08:54:23] [08:54:23]POST finish read [08:54:23]Found Content-Length = 679 [08:54:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507430", "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" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "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:54:23]execute_script... [08:54: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)507430", "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" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "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:54:23]POST & json_proto [08:54:23]process_json_proto [08:54:23]json parsed OK: [08:54:23]protocol is kg_v1.0 [08:54:23]action value=close_receipt [08:54:23]process_action close_receipt [08:54:23]cmd_close_receipt [08:54:23]MH_GetDate [08:54:23]Write to MH i2c: F0 00 00 94 00 83 [08:54:23]Write i2c OK [08:54:23]MH_I2C_Read... [08:54:23]Read from MH i2c: F0 [08:54:23]MH_I2C_Read... [08:54:23]Read from MH i2c: F0 09 00 [08:54:23]MH_I2C_Read... [08:54:23]Read from MH i2c: F0 09 00 94 00 00 C1 C9 45 66 FC 21 6F 64 B1 [08:54:23]GetLastDocTimeStamp 1715849044 [08:54:23]current date 1715849665 [08:54:23]FM_GetShiftState [08:54:23]SAM_PROTO_GetShiftState [08:54:23]wFMCommunicate request_size=4 [08:54:23]MH_SAM_APDU [08:54:23]CAPDU: 80 13 01 00 [08:54:23]Write to MH i2c: E2 08 00 95 00 80 13 01 00 00 00 00 00 12 [08:54:23]Write i2c OK [08:54:23]MH_I2C_Read... [08:54:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:24]Read from MH i2c: E2 [08:54:24]MH_I2C_Read... [08:54:24]Read from MH i2c: E2 0E 00 [08:54:24]MH_I2C_Read... [08:54:24]Read from MH i2c: E2 0E 00 95 00 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 BE [08:54:24]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [08:54:24]wFMCommunicate OK [08:54:24]SAM_PROTO_GetShiftState done [08:54:24]FM_GetShiftState done [08:54:24]opened in 1715818916 [08:54:24]opened+sec_in_day 1715905316 [08:54:24]quantity*price = 100023 [08:54:24]sum+1 = 100024 [08:54:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 25 16.05.2024 08:54 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67427 ФПД: 48746784878275 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T085425&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67427&fm=48746784878275&tin=02508201610067®Number=0000000000091845&sum=100000 [08:54:25]StoreToDocumentArchive [08:54:25]shift 357 fd 67427 [08:54:25]save to /storage/0357/doc_00067427 [08:54:25]save last doc name /storage/0357/doc_00067427 to /storage/kkm_last_doc_name [08:54:25]save OK [08:54:25]Clear old archive folders... [08:54:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:54:25]tlvbuf is 00C875B0 [08:54:25]SAM_PROTO_ClearQueue [08:54:25]wFMCommunicate request_size=4 [08:54:25]MH_SAM_APDU [08:54:25]CAPDU: 80 09 00 00 [08:54:25]Write to MH i2c: E2 08 00 A2 00 80 09 00 00 00 00 00 00 14 [08:54:25]Write i2c OK [08:54:25]MH_I2C_Read... [08:54:25]Read from MH i2c: E2 [08:54:25]MH_I2C_Read... [08:54:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:54:25]Read from MH i2c: E2 03 00 [08:54:25]MH_I2C_Read... [08:54:25]Read from MH i2c: E2 03 00 A2 00 00 90 00 16 [08:54:25]RAPDU: 90 00 [08:54:25]wFMCommunicate OK [08:54:25]SAM_PROTO_ClearQueue done [08:54:25]KKMCreateOFDPacket [08:54:25]OFDProtocolAddRootSTLVToBuf [08:54:25]FM_MakeSignedData [08:54:25]FM_MakeSignedData [08:54:25]SAM_PROTO_SignData [08:54:25]wFMCommunicate request_size=4 [08:54:25]MH_SAM_APDU [08:54:25]CAPDU: 80 0D 01 02 [08:54:25]Write to MH i2c: E2 08 00 A3 00 80 0D 01 02 00 00 00 00 1C [08:54:25]Write i2c OK [08:54:25]MH_I2C_Read... [08:54:25]Read from MH i2c: E2 [08:54:25]MH_I2C_Read... [08:54:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:54:25]Read from MH i2c: E2 03 00 [08:54:25]MH_I2C_Read... [08:54:25]Read from MH i2c: E2 03 00 A3 00 00 90 00 17 [08:54:25]RAPDU: 90 00 [08:54:25]wFMCommunicate OK [08:54:25]wFMCommunicate request_size=255 [08:54:25]MH_SAM_APDU [08:54: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 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 19 00 00 00 F4 03 04 00 C1 C9 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 63 07 01 00 35 04 06 00 2C 55 BE CB [08:54:25]Write to MH i2c: E2 02 01 A4 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 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 19 00 00 00 F4 03 04 00 C1 C9 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 63 07 01 00 35 04 06 00 2C 55 BE CB 00 00 1F [08:54:25]Write i2c OK [08:54:25]MH_I2C_Read... [08:54:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:25]Read from MH i2c: E2 [08:54:25]MH_I2C_Read... [08:54:25]Read from MH i2c: E2 03 00 [08:54:25]MH_I2C_Read... [08:54:25]Read from MH i2c: E2 03 00 A4 00 00 90 00 18 [08:54:25]RAPDU: 90 00 [08:54:25]wFMCommunicate OK [08:54:25]wFMCommunicate request_size=7 [08:54:25]MH_SAM_APDU [08:54:25]CAPDU: 80 0D 02 02 02 EE C3 [08:54:25]Write to MH i2c: E2 0A 00 A5 00 80 0D 02 02 02 00 EE C3 00 00 D4 [08:54:25]Write i2c OK [08:54:25]MH_I2C_Read... [08:54:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:25]Read from MH i2c: E2 [08:54:25]MH_I2C_Read... [08:54:25]Read from MH i2c: E2 03 00 [08:54:25]MH_I2C_Read... [08:54:25]Read from MH i2c: E2 03 00 A5 00 00 90 00 19 [08:54:25]RAPDU: 90 00 [08:54:25]wFMCommunicate OK [08:54:25]wFMCommunicate request_size=4 [08:54:25]MH_SAM_APDU [08:54:25]CAPDU: 80 0D 03 02 [08:54:25]Write to MH i2c: E2 08 00 A6 00 80 0D 03 02 00 00 00 00 21 [08:54:25]Write i2c OK [08:54:25]MH_I2C_Read... [08:54:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:54:25]Read from MH i2c: E2 [08:54:25]MH_I2C_Read... [08:54:25]Read from MH i2c: E2 0B 00 [08:54:25]MH_I2C_Read... [08:54:25]Read from MH i2c: E2 0B 00 A6 00 00 F6 6E 5F E0 04 FC FC A2 90 00 63 [08:54:25]RAPDU: F6 6E 5F E0 04 FC FC A2 90 00 [08:54:25]wFMCommunicate OK [08:54:25]SAM_PROTO_SignData done [08:54:25]FM_MakeSignedData done [08:54:25]CreateOFDProtocolMessage [08:54:25]wFMCommunicate request_size=4 [08:54:25]MH_SAM_APDU [08:54:25]CAPDU: 80 11 00 00 [08:54:25]Write to MH i2c: E2 08 00 A7 00 80 11 00 00 00 00 00 00 21 [08:54:25]Write i2c OK [08:54:25]MH_I2C_Read... [08:54:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:25]Read from MH i2c: E2 [08:54:25]MH_I2C_Read... [08:54:25]Read from MH i2c: E2 17 00 [08:54:25]MH_I2C_Read... [08:54:25]Read from MH i2c: E2 17 00 A7 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 77 [08:54:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:54:25]wFMCommunicate OK [08:54:25]CreateOFDProtocolMessage done [08:54:25]OFDSenderStorePacket 67427 [08:54:25]StoreOFDPacket docnum=67427 [08:54:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 EB C1 04 01 66 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 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 19 00 00 00 F4 03 04 00 C1 C9 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 63 07 01 00 35 04 06 00 2C 55 BE CB EE C3 F6 6E 5F E0 04 FC FC A2 [08:54:25]CheckFolder [08:54:25]dirname=/storage/ofd_packets [08:54:25]CheckFolder done [08:54:25]ProducePacketName [08:54:25]name=ofd_packets/00067427 [08:54:25]NVStorageSaveData ofd_packets/00067427 [08:54:25]File name is /storage/ofd_packets/00067427 [08:54:25]Write 298 bytes [08:54:25]NVStorageSaveData done [08:54:25]OFDSenderStorePacket done [08:54:25]KKMCreateOFDPacket done [08:54:25]NVStorageSaveData kkm_last_timestamp [08:54:25]File name is /storage/kkm_last_timestamp [08:54:25]Write 4 bytes [08:54:25]NVStorageSaveData done [08:54:25]ExternCall_PrintAddStr [08:54:25]wPrintStart [08:54:25]Write to MH i2c: 01 00 00 A8 00 A8 [08:54:25]Write i2c OK [08:54:25]MH_I2C_Read... [08:54:25]Read from MH i2c: 01 [08:54:25]MH_I2C_Read... [08:54:25]Read from MH i2c: 01 07 00 [08:54:25]MH_I2C_Read... [08:54:25]Read from MH i2c: 01 07 00 A8 00 00 00 00 00 00 FF 0F BD [08:54:25]RasterBufferAndPrint [08:54:25]line Счет N : (1)507430 [08:54:25]line ИНН: 02508201610067 [08:54:25]line Контрольно-Кассовый Чек [08:54:25]line ПРОДАЖА [08:54:25]line ТРК (МРК, ГНК) : 11 [08:54:25]line Товар: 2710194210 [08:54:25]line ДТ-К-5 [08:54:25]line 13.390 * 74.70 [08:54:25]line = 1000.23 [08:54:25]line НДС 12% НСП 1% [08:54:25]line > о реализуемом товаре [08:54:25]line ОКРУГЛЕНИЕ: -0.23 [08:54:25]line ИТОГО: 1000.00 [08:54:25]line Внесено: 1000.00 [08:54:25]line СДАЧА: 0.00 [08:54:25]line НСП 1% : 8.85 [08:54:25]line НДС 12% : 106.22 [08:54:25]line Наличными: 1000.00 [08:54:25]line Безнал.: 0.00 [08:54:25]line Место: АЗС № 91 "Партнер Нефть" [08:54:25]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [08:54:25]line СНО: Общий режим [08:54:25]line Чек 25 16.05.2024 08:54 [08:54:25]line Смена: 357 ФФД: 1.0 [08:54:25]line ЗНМ: 0300000119 [08:54:25]line РНМ: 0000000000091845 [08:54:25]line Версия ККМ: 001 [08:54:25]line ФМ: 0000000000871829 [08:54:25]line ФД: 67427 [08:54:25]line ФПД: 48746784878275 [08:54:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T085425&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67427&fm=48746784878275&tin=02508201610067®Number=0000000000091845&sum=100000 [08:54:25]OFD Sender: Processing packet 67427 [packets to send 35, broken 34] [08:54:25]ProducePacketName [08:54:25]name=ofd_packets/00067427 [08:54:26]OFD Sender: To server: pG, [08:54:26]CommunicateWithHost lk.salyk.kg:30040 [08:54:26]ConnectInit lk.salyk.kg [08:54:26]written 0, free lines is 4095 [08:54:26]Connected sock=10 [08:54: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 38 32 39 0C 01 00 00 EB C1 04 01 66 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 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 19 00 00 00 F4 03 04 00 C1 C9 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 63 07 01 00 35 04 06 00 2C 55 BE CB EE C3 F6 6E 5F E0 04 FC FC A2 [08:54:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 C4 6F 47 00 B5 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 63 07 01 00 F4 03 04 00 9C 71 45 66 B6 04 01 00 00 C0 1B C5 36 72 7D E6 D9 [08:54:26]CommunicateWithHost err = 0 [08:54:26]CheckOFDResponse [08:54:26]1017 (14) - 77093643461234 [08:54:26]1041 (16) - 0000000000871829 [08:54:26]1040 (4) - 67427 [08:54:26]1012 (4) - 16.05.2024 02:38 [08:54:26]1206 (1) - 0 [08:54:26]OFD Sender: Remove packet 67427 [08:54:26]ProducePacketName [08:54:26]name=ofd_packets/00067427 [08:54:26]NVStorageDeleteData [08:54:26]Write to MH i2c: 01 00 00 D2 00 D2 [08:54:26]Write i2c OK [08:54:26]MH_I2C_Read... [08:54:26]Read from MH i2c: 01 [08:54:26]MH_I2C_Read... [08:54:26]Read from MH i2c: 01 07 00 [08:54:26]MH_I2C_Read... [08:54:26]Read from MH i2c: 01 07 00 D2 00 00 00 00 00 00 C5 0C AA [08:54:26]RasterBufferAndPrint [08:54:26]line [08:54:26]line [08:54:26]line [08:54:26]line [08:54:26]line [08:54:26]written 0, free lines is 3275 [08:54:26]MH_Cut [08:54:26]Write to MH i2c: D1 01 00 D9 00 01 AB [08:54:26]Write i2c OK [08:54:26]MH_I2C_Read... [08:54:26]Read from MH i2c: D1 [08:54:26]MH_I2C_Read... [08:54:26]Read from MH i2c: D1 01 00 [08:54:26]MH_I2C_Read... [08:54:26]Read from MH i2c: D1 01 00 D9 00 00 AA [08:54:26]Write to MH i2c: 01 00 00 DA 00 DA [08:54:26]Write i2c OK [08:54:26]MH_I2C_Read... [08:54:26]OFD Sender: No OFD packet to send [08:54:27]*** Cut start [08:54:27]*** Purtial cut [08:54:27]*** Stage 1: CUTSNS_PIN = 1 [08:54:27]Read from MH i2c: 01 [08:54:27]MH_I2C_Read... [08:54:27]*** Stop cut motor [08:54:27]*** Cut end [08:54:27]Read from MH i2c: 01 07 00 [08:54:27]MH_I2C_Read... [08:54:27]Read from MH i2c: 01 07 00 DA 00 00 00 00 00 00 FF 0F EF [08:54:27]process_action close_receipt done [08:54:27]requested_data is exist [08:54:27]produce_requested_data [08:54:27]requested_item fm.sn is exist - process it [08:54:27]wFMCommunicate request_size=4 [08:54:27]MH_SAM_APDU [08:54:27]CAPDU: 80 11 00 00 [08:54:27]Write to MH i2c: E2 08 00 DB 00 80 11 00 00 00 00 00 00 55 [08:54:27]Write i2c OK [08:54:27]MH_I2C_Read... [08:54:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:27]Read from MH i2c: E2 [08:54:27]MH_I2C_Read... [08:54:27]Read from MH i2c: E2 17 00 [08:54:27]MH_I2C_Read... [08:54:27]Read from MH i2c: E2 17 00 DB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AB [08:54:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:54:27]wFMCommunicate OK [08:54:27]requested_item fd.num is exist - process it [08:54:27]SAM_PROTO_GetFieldsCounters [08:54:27]wFMCommunicate request_size=4 [08:54:27]MH_SAM_APDU [08:54:27]CAPDU: 80 13 00 00 [08:54:27]Write to MH i2c: E2 08 00 DC 00 80 13 00 00 00 00 00 00 58 [08:54:27]Write i2c OK [08:54:27]MH_I2C_Read... [08:54:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:54:27]Read from MH i2c: E2 [08:54:27]MH_I2C_Read... [08:54:27]Read from MH i2c: E2 62 00 [08:54:27]MH_I2C_Read... [08:54:27]Read from MH i2c: E2 62 00 DC 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 63 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [08:54: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 63 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:54:27]wFMCommunicate OK [08:54:27]SAM_PROTO_GetFieldsCounters done [08:54:27]requested_item shift.num is exist - process it [08:54:27]requested_item shift.opened is exist - process it [08:54:27]req_shift_opened [08:54:27]FM_GetShiftState [08:54:27]SAM_PROTO_GetShiftState [08:54:27]wFMCommunicate request_size=4 [08:54:27]MH_SAM_APDU [08:54:27]CAPDU: 80 13 01 00 [08:54:27]Write to MH i2c: E2 08 00 DD 00 80 13 01 00 00 00 00 00 5A [08:54:27]Write i2c OK [08:54:27]MH_I2C_Read... [08:54:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:27]Read from MH i2c: E2 [08:54:27]MH_I2C_Read... [08:54:27]Read from MH i2c: E2 0E 00 [08:54:27]MH_I2C_Read... [08:54:27]Read from MH i2c: E2 0E 00 DD 00 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 06 [08:54:27]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [08:54:27]wFMCommunicate OK [08:54:27]SAM_PROTO_GetShiftState done [08:54:27]FM_GetShiftState done [08:54:27]req_shift_opened done [08:54:27]requested_item shift.open_date is exist - process it [08:54:27]req_shift_open_date [08:54:27]req_shift_open_date done [08:54:27]produce_requested_data done [08:54:27]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67427,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [08:54:27]process_action_free close_receipt [08:54:27]json_value_free [08:54:27]json_value_free done [08:54:27]process_json_proto returns [08:54:27]Send response to host [08:54:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67427,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [08:54:27]free response buf [08:54:27]execute_script done [08:54:27]execute_script returns [08:54:27]free content buf [08:54:27]Sock 9.Close socket [08:54:27]Sock 9.Thread stoped [08:54:31]OFD Sender: No OFD packet to send [08:54:36]OFD Sender: No OFD packet to send [08:54:41]OFD Sender: No OFD packet to send [08:54:46]OFD Sender: No OFD packet to send [08:54:51]OFD Sender: No OFD packet to send [08:54:56]OFD Sender: No OFD packet to send [08:55:01]OFD Sender: No OFD packet to send [08:55:04]accept exits with 8 [08:55:04]New connection [08:55:04]New thread 3067604324 created [08:55:04]Thread 3067460964 joined [08:55:04]Waiting for new connection... [08:55:04] Sock 8.Parse request [08:55:04]Sock 8.Check first char [08:55:04]Sock 8.First char is OK [08:55:04]request: POST /json_proto HTTP/1.0 [08:55:04]Method: POST [08:55:04]URL: /json_proto [08:55:04]Method is POST - this is cgi request [08:55:04]url: /json_proto [08:55:04]query_string will be loaded in cgi processing [08:55:04]execute_cgi json_proto POST (null) [08:55:04]execute_cgi path=json_proto method=POST [08:55:04]POST find Content-Length [08:55:04]Host: 172.17.41.195:8080 [08:55:04]Content-Length: 670 [08:55:04]Content-Type: application/json [08:55:04] [08:55:04]POST finish read [08:55:04]Found Content-Length = 670 [08:55:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507431", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:04]execute_script... [08:55: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)507431", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:04]POST & json_proto [08:55:04]process_json_proto [08:55:04]json parsed OK: [08:55:04]protocol is kg_v1.0 [08:55:04]action value=close_receipt [08:55:04]process_action close_receipt [08:55:04]cmd_close_receipt [08:55:04]MH_GetDate [08:55:04]Write to MH i2c: F0 00 00 DE 00 CD [08:55:04]Write i2c OK [08:55:04]MH_I2C_Read... [08:55:04]Read from MH i2c: F0 [08:55:04]MH_I2C_Read... [08:55:04]Read from MH i2c: F0 09 00 [08:55:04]MH_I2C_Read... [08:55:04]Read from MH i2c: F0 09 00 DE 00 00 E9 C9 45 66 FC 21 6F 64 23 [08:55:04]GetLastDocTimeStamp 1715849665 [08:55:04]current date 1715849705 [08:55:04]FM_GetShiftState [08:55:04]SAM_PROTO_GetShiftState [08:55:04]wFMCommunicate request_size=4 [08:55:04]MH_SAM_APDU [08:55:04]CAPDU: 80 13 01 00 [08:55:04]Write to MH i2c: E2 08 00 DF 00 80 13 01 00 00 00 00 00 5C [08:55:04]Write i2c OK [08:55:04]MH_I2C_Read... [08:55:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:04]Read from MH i2c: E2 [08:55:04]MH_I2C_Read... [08:55:04]Read from MH i2c: E2 0E 00 [08:55:04]MH_I2C_Read... [08:55:04]Read from MH i2c: E2 0E 00 DF 00 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 08 [08:55:04]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [08:55:04]wFMCommunicate OK [08:55:04]SAM_PROTO_GetShiftState done [08:55:04]FM_GetShiftState done [08:55:04]opened in 1715818916 [08:55:04]opened+sec_in_day 1715905316 [08:55:04]quantity*price = 60003 [08:55:04]sum+1 = 60004 [08:55:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 26 16.05.2024 08:55 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67428 ФПД: 249673569427952 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T085505&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67428&fm=249673569427952&tin=02508201610067®Number=0000000000091845&sum=60000 [08:55:05]StoreToDocumentArchive [08:55:05]shift 357 fd 67428 [08:55:05]save to /storage/0357/doc_00067428 [08:55:05]save last doc name /storage/0357/doc_00067428 to /storage/kkm_last_doc_name [08:55:05]save OK [08:55:05]Clear old archive folders... [08:55:05]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:55:05]tlvbuf is 00CC9170 [08:55:05]SAM_PROTO_ClearQueue [08:55:05]wFMCommunicate request_size=4 [08:55:05]MH_SAM_APDU [08:55:05]CAPDU: 80 09 00 00 [08:55:05]Write to MH i2c: E2 08 00 EC 00 80 09 00 00 00 00 00 00 5E [08:55:05]Write i2c OK [08:55:05]MH_I2C_Read... [08:55:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:55:05]Read from MH i2c: E2 [08:55:05]MH_I2C_Read... [08:55:05]Read from MH i2c: E2 03 00 [08:55:05]MH_I2C_Read... [08:55:05]Read from MH i2c: E2 03 00 EC 00 00 90 00 60 [08:55:05]RAPDU: 90 00 [08:55:05]wFMCommunicate OK [08:55:05]SAM_PROTO_ClearQueue done [08:55:05]KKMCreateOFDPacket [08:55:05]OFDProtocolAddRootSTLVToBuf [08:55:05]FM_MakeSignedData [08:55:05]FM_MakeSignedData [08:55:05]SAM_PROTO_SignData [08:55:05]wFMCommunicate request_size=4 [08:55:05]MH_SAM_APDU [08:55:05]CAPDU: 80 0D 01 02 [08:55:05]Write to MH i2c: E2 08 00 ED 00 80 0D 01 02 00 00 00 00 66 [08:55:05]Write i2c OK [08:55:05]MH_I2C_Read... [08:55:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:55:05]Read from MH i2c: E2 [08:55:05]MH_I2C_Read... [08:55:05]Read from MH i2c: E2 03 00 [08:55:05]MH_I2C_Read... [08:55:05]Read from MH i2c: E2 03 00 ED 00 00 90 00 61 [08:55:05]RAPDU: 90 00 [08:55:05]wFMCommunicate OK [08:55:05]wFMCommunicate request_size=255 [08:55:05]MH_SAM_APDU [08:55:05]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 1A 00 00 00 F4 03 04 00 E9 C9 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 64 07 01 00 35 04 06 00 [08:55:05]Write to MH i2c: E2 02 01 EE 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 1A 00 00 00 F4 03 04 00 E9 C9 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 64 07 01 00 35 04 06 00 00 00 24 [08:55:05]Write i2c OK [08:55:05]MH_I2C_Read... [08:55:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:05]Read from MH i2c: E2 [08:55:05]MH_I2C_Read... [08:55:05]Read from MH i2c: E2 03 00 [08:55:05]MH_I2C_Read... [08:55:05]Read from MH i2c: E2 03 00 EE 00 00 90 00 62 [08:55:05]RAPDU: 90 00 [08:55:05]wFMCommunicate OK [08:55:05]wFMCommunicate request_size=11 [08:55:05]MH_SAM_APDU [08:55:05]CAPDU: 80 0D 02 02 06 E3 13 A8 6A 61 F0 [08:55:05]Write to MH i2c: E2 0E 00 EF 00 80 0D 02 02 06 00 E3 13 A8 6A 61 F0 00 00 CE [08:55:05]Write i2c OK [08:55:05]MH_I2C_Read... [08:55:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:05]Read from MH i2c: E2 [08:55:05]MH_I2C_Read... [08:55:05]Read from MH i2c: E2 03 00 [08:55:05]MH_I2C_Read... [08:55:05]Read from MH i2c: E2 03 00 EF 00 00 90 00 63 [08:55:05]RAPDU: 90 00 [08:55:05]wFMCommunicate OK [08:55:05]wFMCommunicate request_size=4 [08:55:05]MH_SAM_APDU [08:55:05]CAPDU: 80 0D 03 02 [08:55:05]Write to MH i2c: E2 08 00 F0 00 80 0D 03 02 00 00 00 00 6B [08:55:05]Write i2c OK [08:55:05]MH_I2C_Read... [08:55:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:55:05]Read from MH i2c: E2 [08:55:05]MH_I2C_Read... [08:55:05]Read from MH i2c: E2 0B 00 [08:55:05]MH_I2C_Read... [08:55:05]Read from MH i2c: E2 0B 00 F0 00 00 6C 23 D2 92 C9 86 A5 71 90 00 C4 [08:55:05]RAPDU: 6C 23 D2 92 C9 86 A5 71 90 00 [08:55:05]wFMCommunicate OK [08:55:05]SAM_PROTO_SignData done [08:55:05]FM_MakeSignedData done [08:55:05]CreateOFDProtocolMessage [08:55:05]wFMCommunicate request_size=4 [08:55:05]MH_SAM_APDU [08:55:05]CAPDU: 80 11 00 00 [08:55:05]Write to MH i2c: E2 08 00 F1 00 80 11 00 00 00 00 00 00 6B [08:55:05]Write i2c OK [08:55:05]MH_I2C_Read... [08:55:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:05]Read from MH i2c: E2 [08:55:05]MH_I2C_Read... [08:55:05]Read from MH i2c: E2 17 00 [08:55:05]MH_I2C_Read... [08:55:05]Read from MH i2c: E2 17 00 F1 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C1 [08:55:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:55:05]wFMCommunicate OK [08:55:05]CreateOFDProtocolMessage done [08:55:05]OFDSenderStorePacket 67428 [08:55:05]StoreOFDPacket docnum=67428 [08:55:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 40 BA 08 01 9F A6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 1A 00 00 00 F4 03 04 00 E9 C9 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 64 07 01 00 35 04 06 00 E3 13 A8 6A 61 F0 6C 23 D2 92 C9 86 A5 71 [08:55:05]CheckFolder [08:55:05]dirname=/storage/ofd_packets [08:55:05]CheckFolder done [08:55:05]ProducePacketName [08:55:05]name=ofd_packets/00067428 [08:55:05]NVStorageSaveData ofd_packets/00067428 [08:55:05]File name is /storage/ofd_packets/00067428 [08:55:05]Write 302 bytes [08:55:05]NVStorageSaveData done [08:55:05]OFDSenderStorePacket done [08:55:05]KKMCreateOFDPacket done [08:55:05]NVStorageSaveData kkm_last_timestamp [08:55:05]File name is /storage/kkm_last_timestamp [08:55:05]Write 4 bytes [08:55:05]NVStorageSaveData done [08:55:05]ExternCall_PrintAddStr [08:55:05]wPrintStart [08:55:05]Write to MH i2c: 01 00 00 F2 00 F2 [08:55:05]Write i2c OK [08:55:05]MH_I2C_Read... [08:55:05]Read from MH i2c: 01 [08:55:05]MH_I2C_Read... [08:55:05]Read from MH i2c: 01 07 00 [08:55:05]MH_I2C_Read... [08:55:05]Read from MH i2c: 01 07 00 F2 00 00 00 00 00 00 FF 0F 07 [08:55:05]RasterBufferAndPrint [08:55:05]line Счет N : (1)507431 [08:55:05]line ИНН: 02508201610067 [08:55:05]line Контрольно-Кассовый Чек [08:55:05]line ПРОДАЖА [08:55:05]line ТРК (МРК, ГНК) : 42 [08:55:05]line Товар: 2710124130 [08:55:05]line Super-92-К-5 [08:55:05]line 8.850 * 67.80 [08:55:05]line = 600.03 [08:55:05]line НДС 12% НСП 1% [08:55:05]line > о реализуемом товаре [08:55:05]line ОКРУГЛЕНИЕ: -0.03 [08:55:05]line ИТОГО: 600.00 [08:55:05]line Внесено: 600.00 [08:55:05]line СДАЧА: 0.00 [08:55:05]line НСП 1% : 5.31 [08:55:05]line НДС 12% : 63.72 [08:55:05]line Наличными: 600.00 [08:55:05]line Безнал.: 0.00 [08:55:05]line Место: АЗС № 91 "Партнер Нефть" [08:55:05]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [08:55:05]line СНО: Общий режим [08:55:05]line Чек 26 16.05.2024 08:55 [08:55:05]line Смена: 357 ФФД: 1.0 [08:55:05]line ЗНМ: 0300000119 [08:55:05]line РНМ: 0000000000091845 [08:55:05]line Версия ККМ: 001 [08:55:05]line ФМ: 0000000000871829 [08:55:05]line ФД: 67428 [08:55:05]line ФПД: 249673569427952 [08:55:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T085505&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67428&fm=249673569427952&tin=02508201610067®Number=0000000000091845&sum=60000 [08:55:06]OFD Sender: Processing packet 67428 [packets to send 35, broken 34] [08:55:06]ProducePacketName [08:55:06]name=ofd_packets/00067428 [08:55:06]OFD Sender: To server: pG, [08:55:06]CommunicateWithHost lk.salyk.kg:30040 [08:55:06]ConnectInit lk.salyk.kg [08:55:06]written 0, free lines is 4095 [08:55:06]Connected sock=10 [08:55: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 38 32 39 10 01 00 00 40 BA 08 01 9F A6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 1A 00 00 00 F4 03 04 00 E9 C9 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 64 07 01 00 35 04 06 00 E3 13 A8 6A 61 F0 6C 23 D2 92 C9 86 A5 71 [08:55:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 B1 26 47 00 A7 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 38 32 39 10 04 04 00 64 07 01 00 F4 03 04 00 C4 71 45 66 B6 04 01 00 00 03 DF 78 1F 69 86 77 87 [08:55:06]CommunicateWithHost err = 0 [08:55:06]CheckOFDResponse [08:55:06]1017 (14) - 77093643461234 [08:55:06]1041 (16) - 0000000000871829 [08:55:06]1040 (4) - 67428 [08:55:06]1012 (4) - 16.05.2024 02:39 [08:55:06]1206 (1) - 0 [08:55:06]OFD Sender: Remove packet 67428 [08:55:06]ProducePacketName [08:55:06]name=ofd_packets/00067428 [08:55:06]NVStorageDeleteData [08:55:06]Write to MH i2c: 01 00 00 1C 01 1D [08:55:06]Write i2c OK [08:55:06]MH_I2C_Read... [08:55:06]Read from MH i2c: 01 [08:55:06]MH_I2C_Read... [08:55:06]Read from MH i2c: 01 07 00 [08:55:06]MH_I2C_Read... [08:55:06]Read from MH i2c: 01 07 00 1C 01 00 00 00 00 00 C7 0C F7 [08:55:06]RasterBufferAndPrint [08:55:06]line [08:55:06]line [08:55:06]line [08:55:06]line [08:55:06]line [08:55:06]written 0, free lines is 3276 [08:55:06]MH_Cut [08:55:06]Write to MH i2c: D1 01 00 23 01 01 F6 [08:55:06]Write i2c OK [08:55:06]MH_I2C_Read... [08:55:06]Read from MH i2c: D1 [08:55:06]MH_I2C_Read... [08:55:06]Read from MH i2c: D1 01 00 [08:55:06]MH_I2C_Read... [08:55:06]Read from MH i2c: D1 01 00 23 01 00 F5 [08:55:06]Write to MH i2c: 01 00 00 24 01 25 [08:55:06]Write i2c OK [08:55:06]MH_I2C_Read... [08:55:07]OFD Sender: No OFD packet to send [08:55:07]*** Cut start [08:55:07]*** Purtial cut [08:55:07]*** CUTSNS_PIN = 0 [08:55:07]*** Stage 1: CUTSNS_PIN = 1 [08:55:09]Read from MH i2c: 01 [08:55:09]MH_I2C_Read... [08:55:09]*** Stop cut motor [08:55:09]*** Cut end [08:55:09]Read from MH i2c: 01 07 00 [08:55:09]MH_I2C_Read... [08:55:09]Read from MH i2c: 01 07 00 24 01 00 00 00 00 00 FF 0F 3A [08:55:09]process_action close_receipt done [08:55:09]requested_data is exist [08:55:09]produce_requested_data [08:55:09]requested_item fm.sn is exist - process it [08:55:09]wFMCommunicate request_size=4 [08:55:09]MH_SAM_APDU [08:55:09]CAPDU: 80 11 00 00 [08:55:09]Write to MH i2c: E2 08 00 25 01 80 11 00 00 00 00 00 00 A0 [08:55:09]Write i2c OK [08:55:09]MH_I2C_Read... [08:55:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:09]Read from MH i2c: E2 [08:55:09]MH_I2C_Read... [08:55:09]Read from MH i2c: E2 17 00 [08:55:09]MH_I2C_Read... [08:55:09]Read from MH i2c: E2 17 00 25 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F6 [08:55:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:55:09]wFMCommunicate OK [08:55:09]requested_item fd.num is exist - process it [08:55:09]SAM_PROTO_GetFieldsCounters [08:55:09]wFMCommunicate request_size=4 [08:55:09]MH_SAM_APDU [08:55:09]CAPDU: 80 13 00 00 [08:55:09]Write to MH i2c: E2 08 00 26 01 80 13 00 00 00 00 00 00 A3 [08:55:09]Write i2c OK [08:55:09]MH_I2C_Read... [08:55:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:55:09]Read from MH i2c: E2 [08:55:09]MH_I2C_Read... [08:55:09]Read from MH i2c: E2 62 00 [08:55:09]MH_I2C_Read... [08:55:09]Read from MH i2c: E2 62 00 26 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 64 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [08:55: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 64 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:55:09]wFMCommunicate OK [08:55:09]SAM_PROTO_GetFieldsCounters done [08:55:09]requested_item shift.num is exist - process it [08:55:09]requested_item shift.opened is exist - process it [08:55:09]req_shift_opened [08:55:09]FM_GetShiftState [08:55:09]SAM_PROTO_GetShiftState [08:55:09]wFMCommunicate request_size=4 [08:55:09]MH_SAM_APDU [08:55:09]CAPDU: 80 13 01 00 [08:55:09]Write to MH i2c: E2 08 00 27 01 80 13 01 00 00 00 00 00 A5 [08:55:09]Write i2c OK [08:55:09]MH_I2C_Read... [08:55:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:09]Read from MH i2c: E2 [08:55:09]MH_I2C_Read... [08:55:09]Read from MH i2c: E2 0E 00 [08:55:09]MH_I2C_Read... [08:55:09]Read from MH i2c: E2 0E 00 27 01 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 51 [08:55:09]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [08:55:09]wFMCommunicate OK [08:55:09]SAM_PROTO_GetShiftState done [08:55:09]FM_GetShiftState done [08:55:09]req_shift_opened done [08:55:09]requested_item shift.open_date is exist - process it [08:55:09]req_shift_open_date [08:55:09]req_shift_open_date done [08:55:09]produce_requested_data done [08:55:09]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67428,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [08:55:09]process_action_free close_receipt [08:55:09]json_value_free [08:55:09]json_value_free done [08:55:09]process_json_proto returns [08:55:09]Send response to host [08:55:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67428,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [08:55:09]free response buf [08:55:09]execute_script done [08:55:09]execute_script returns [08:55:09]free content buf [08:55:09]Sock 8.Close socket [08:55:09]Sock 8.Thread stoped [08:55:12]OFD Sender: No OFD packet to send [08:55:17]OFD Sender: No OFD packet to send [08:55:22]OFD Sender: No OFD packet to send [08:55:27]OFD Sender: No OFD packet to send [08:55:32]OFD Sender: No OFD packet to send [08:55:37]OFD Sender: No OFD packet to send [08:55:42]OFD Sender: No OFD packet to send [08:55:47]OFD Sender: No OFD packet to send [08:55:52]OFD Sender: No OFD packet to send [08:55:57]OFD Sender: No OFD packet to send [08:56:02]OFD Sender: No OFD packet to send [08:56:07]OFD Sender: No OFD packet to send [08:56:12]OFD Sender: No OFD packet to send [08:56:17]OFD Sender: No OFD packet to send [08:56:22]OFD Sender: No OFD packet to send [08:56:27]OFD Sender: No OFD packet to send [08:56:32]OFD Sender: No OFD packet to send [08:56:37]OFD Sender: No OFD packet to send [08:56:42]OFD Sender: No OFD packet to send [08:56:47]OFD Sender: No OFD packet to send [08:56:52]OFD Sender: No OFD packet to send [08:56:57]OFD Sender: No OFD packet to send [08:57:02]OFD Sender: No OFD packet to send [08:57:07]OFD Sender: No OFD packet to send [08:57:12]OFD Sender: No OFD packet to send [08:57:17]OFD Sender: No OFD packet to send [08:57:22]OFD Sender: No OFD packet to send [08:57:27]OFD Sender: No OFD packet to send [08:57:29]accept exits with 9 [08:57:29]New connection [08:57:29]New thread 3067460964 created [08:57:29]Thread 3067604324 joined [08:57:29]Waiting for new connection... [08:57:29] Sock 9.Parse request [08:57:29]Sock 9.Check first char [08:57:29]Sock 9.First char is OK [08:57:29]request: POST /json_proto HTTP/1.0 [08:57:29]Method: POST [08:57:29]URL: /json_proto [08:57:29]Method is POST - this is cgi request [08:57:29]url: /json_proto [08:57:29]query_string will be loaded in cgi processing [08:57:29]execute_cgi json_proto POST (null) [08:57:29]execute_cgi path=json_proto method=POST [08:57:29]POST find Content-Length [08:57:29]Host: 172.17.41.195:8080 [08:57:29]Content-Length: 1212 [08:57:29]Content-Type: application/json [08:57:29] [08:57:29]POST finish read [08:57:29]Found Content-Length = 1212 [08:57:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507432\u000A16.05.2024 08:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 1336.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:29]execute_script... [08:57:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507432\u000A16.05.2024 08:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 1336.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:29]POST & json_proto [08:57:29]process_json_proto [08:57:29]json parsed OK: [08:57:29]protocol is kg_v1.0 [08:57:29]action value=print_text [08:57:29]process_action print_text [08:57:29]cmd_print_text [08:57:29]ExternCall_PrintAddStr [08:57:29]wPrintStart [08:57:29]Write to MH i2c: 01 00 00 28 01 29 [08:57:29]Write i2c OK [08:57:29]MH_I2C_Read... [08:57:29]Read from MH i2c: 01 [08:57:29]MH_I2C_Read... [08:57:29]Read from MH i2c: 01 07 00 [08:57:29]MH_I2C_Read... [08:57:29]Read from MH i2c: 01 07 00 28 01 00 00 00 00 00 FF 0F 3E [08:57:29]RasterBufferAndPrint [08:57:29]line *****ТОВАРНЫЙ ЧЕК***** [08:57:29]line АЗС-91 [08:57:29]line Партнер нефть [08:57:29]line 02508201610067 [08:57:29]line Кассир : Пайзулдаева А. [08:57:29]line Счет N : (1)507432 [08:57:29]line 16.05.2024 08:40 [08:57:29]line ПРОДАЖА [08:57:29]line ТРК (МРК, ГНК): 33 [08:57:29]line Вид ГСМ : 2710124130 [08:57:29]line Аи-92-К-5 [08:57:29]line 20.000 x 66.80 [08:57:29]line ИТОГ: 1336.00 [08:57:29]line Тип оплаты: Талоны: Топливная Карта [08:57:29]line 02750 [08:57:29]line ______________________ [08:57:29]line (подпись) [08:57:29]written 0, free lines is 4095 [08:57:29]Write to MH i2c: 01 00 00 3C 01 3D [08:57:29]Write i2c OK [08:57:29]MH_I2C_Read... [08:57:29]Read from MH i2c: 01 [08:57:29]MH_I2C_Read... [08:57:29]Read from MH i2c: 01 07 00 [08:57:29]MH_I2C_Read... [08:57:29]Read from MH i2c: 01 07 00 3C 01 00 00 00 00 00 12 0E 64 [08:57:29]RasterBufferAndPrint [08:57:29]line [08:57:29]line [08:57:29]line [08:57:29]line [08:57:29]line [08:57:29]written 0, free lines is 3603 [08:57:29]MH_Cut [08:57:29]Write to MH i2c: D1 01 00 43 01 01 16 [08:57:29]Write i2c OK [08:57:29]MH_I2C_Read... [08:57:29]Read from MH i2c: D1 [08:57:29]MH_I2C_Read... [08:57:29]Read from MH i2c: D1 01 00 [08:57:29]MH_I2C_Read... [08:57:29]Read from MH i2c: D1 01 00 43 01 00 15 [08:57:29]Write to MH i2c: 01 00 00 44 01 45 [08:57:29]Write i2c OK [08:57:29]MH_I2C_Read... [08:57:30]*** Cut start [08:57:30]*** Purtial cut [08:57:30]*** Stage 1: CUTSNS_PIN = 1 [08:57:30]Read from MH i2c: 01 [08:57:30]MH_I2C_Read... [08:57:30]*** Stop cut motor [08:57:30]*** Cut end [08:57:30]Read from MH i2c: 01 07 00 [08:57:30]MH_I2C_Read... [08:57:30]Read from MH i2c: 01 07 00 44 01 00 00 00 00 00 FF 0F 5A [08:57:30]process_action print_text done [08:57:30]requested_data is exist [08:57:30]produce_requested_data [08:57:30]requested_item fm.sn is exist - process it [08:57:30]wFMCommunicate request_size=4 [08:57:30]MH_SAM_APDU [08:57:30]CAPDU: 80 11 00 00 [08:57:30]Write to MH i2c: E2 08 00 45 01 80 11 00 00 00 00 00 00 C0 [08:57:30]Write i2c OK [08:57:30]MH_I2C_Read... [08:57:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:30]Read from MH i2c: E2 [08:57:30]MH_I2C_Read... [08:57:30]Read from MH i2c: E2 17 00 [08:57:30]MH_I2C_Read... [08:57:30]Read from MH i2c: E2 17 00 45 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 16 [08:57:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:57:30]wFMCommunicate OK [08:57:30]requested_item fd.num is exist - process it [08:57:30]SAM_PROTO_GetFieldsCounters [08:57:30]wFMCommunicate request_size=4 [08:57:30]MH_SAM_APDU [08:57:30]CAPDU: 80 13 00 00 [08:57:30]Write to MH i2c: E2 08 00 46 01 80 13 00 00 00 00 00 00 C3 [08:57:30]Write i2c OK [08:57:30]MH_I2C_Read... [08:57:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:57:30]Read from MH i2c: E2 [08:57:30]MH_I2C_Read... [08:57:30]Read from MH i2c: E2 62 00 [08:57:30]MH_I2C_Read... [08:57:30]Read from MH i2c: E2 62 00 46 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 64 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [08:57: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 64 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:57:30]wFMCommunicate OK [08:57:30]SAM_PROTO_GetFieldsCounters done [08:57:30]requested_item shift.num is exist - process it [08:57:30]requested_item shift.opened is exist - process it [08:57:30]req_shift_opened [08:57:30]FM_GetShiftState [08:57:30]SAM_PROTO_GetShiftState [08:57:30]wFMCommunicate request_size=4 [08:57:30]MH_SAM_APDU [08:57:30]CAPDU: 80 13 01 00 [08:57:30]Write to MH i2c: E2 08 00 47 01 80 13 01 00 00 00 00 00 C5 [08:57:30]Write i2c OK [08:57:30]MH_I2C_Read... [08:57:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:30]Read from MH i2c: E2 [08:57:30]MH_I2C_Read... [08:57:30]Read from MH i2c: E2 0E 00 [08:57:30]MH_I2C_Read... [08:57:30]Read from MH i2c: E2 0E 00 47 01 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 71 [08:57:30]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [08:57:30]wFMCommunicate OK [08:57:30]SAM_PROTO_GetShiftState done [08:57:30]FM_GetShiftState done [08:57:30]req_shift_opened done [08:57:30]requested_item shift.open_date is exist - process it [08:57:30]req_shift_open_date [08:57:30]req_shift_open_date done [08:57:30]produce_requested_data done [08:57:30]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67428,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [08:57:30]process_action_free print_text [08:57:30]json_value_free [08:57:30]json_value_free done [08:57:30]process_json_proto returns [08:57:30]Send response to host [08:57:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67428,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [08:57:30]free response buf [08:57:30]execute_script done [08:57:30]execute_script returns [08:57:30]free content buf [08:57:30]Sock 9.Close socket [08:57:30]Sock 9.Thread stoped [08:57:32]OFD Sender: No OFD packet to send [08:57:37]OFD Sender: No OFD packet to send [08:57:42]OFD Sender: No OFD packet to send [08:57:47]OFD Sender: No OFD packet to send [08:57:52]OFD Sender: No OFD packet to send [08:57:57]OFD Sender: No OFD packet to send [08:58:02]OFD Sender: No OFD packet to send [08:58:07]OFD Sender: No OFD packet to send [08:58:12]OFD Sender: No OFD packet to send [08:58:17]OFD Sender: No OFD packet to send [08:58:21]accept exits with 8 [08:58:21]New connection [08:58:21]New thread 3067604324 created [08:58:21]Thread 3067460964 joined [08:58:21]Waiting for new connection... [08:58:21] Sock 8.Parse request [08:58:21]Sock 8.Check first char [08:58:21]Sock 8.First char is OK [08:58:21]request: POST /json_proto HTTP/1.0 [08:58:21]Method: POST [08:58:21]URL: /json_proto [08:58:21]Method is POST - this is cgi request [08:58:21]url: /json_proto [08:58:21]query_string will be loaded in cgi processing [08:58:21]execute_cgi json_proto POST (null) [08:58:21]execute_cgi path=json_proto method=POST [08:58:21]POST find Content-Length [08:58:21]Host: 172.17.41.195:8080 [08:58:21]Content-Length: 675 [08:58:21]Content-Type: application/json [08:58:21] [08:58:21]POST finish read [08:58:21]Found Content-Length = 675 [08:58:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507433", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 17.700, "sum" : 1200.06, "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:58:21]execute_script... [08: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)507433", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 17.700, "sum" : 1200.06, "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:58:21]POST & json_proto [08:58:21]process_json_proto [08:58:21]json parsed OK: [08:58:21]protocol is kg_v1.0 [08:58:21]action value=close_receipt [08:58:21]process_action close_receipt [08:58:21]cmd_close_receipt [08:58:21]MH_GetDate [08:58:21]Write to MH i2c: F0 00 00 48 01 38 [08:58:21]Write i2c OK [08:58:21]MH_I2C_Read... [08:58:21]Read from MH i2c: F0 [08:58:21]MH_I2C_Read... [08:58:21]Read from MH i2c: F0 09 00 [08:58:21]MH_I2C_Read... [08:58:21]Read from MH i2c: F0 09 00 48 01 00 AE CA 45 66 FC 21 6F 64 54 [08:58:21]GetLastDocTimeStamp 1715849705 [08:58:21]current date 1715849902 [08:58:21]FM_GetShiftState [08:58:21]SAM_PROTO_GetShiftState [08:58:21]wFMCommunicate request_size=4 [08:58:21]MH_SAM_APDU [08:58:21]CAPDU: 80 13 01 00 [08:58:21]Write to MH i2c: E2 08 00 49 01 80 13 01 00 00 00 00 00 C7 [08:58:21]Write i2c OK [08:58:21]MH_I2C_Read... [08:58:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:21]Read from MH i2c: E2 [08:58:21]MH_I2C_Read... [08:58:21]Read from MH i2c: E2 0E 00 [08:58:21]MH_I2C_Read... [08:58:21]Read from MH i2c: E2 0E 00 49 01 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 73 [08:58:21]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [08:58:21]wFMCommunicate OK [08:58:21]SAM_PROTO_GetShiftState done [08:58:21]FM_GetShiftState done [08:58:21]opened in 1715818916 [08:58:21]opened+sec_in_day 1715905316 [08:58:21]quantity*price = 120006 [08:58:21]sum+1 = 120007 [08:58:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.44 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 27 16.05.2024 08:58 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67429 ФПД: 245574790847063 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T085822&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67429&fm=245574790847063&tin=02508201610067®Number=0000000000091845&sum=120000 [08:58:22]StoreToDocumentArchive [08:58:22]shift 357 fd 67429 [08:58:22]save to /storage/0357/doc_00067429 [08:58:22]save last doc name /storage/0357/doc_00067429 to /storage/kkm_last_doc_name [08:58:22]save OK [08:58:22]Clear old archive folders... [08:58:22]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:58:22]tlvbuf is 00C7FCE0 [08:58:22]SAM_PROTO_ClearQueue [08:58:22]wFMCommunicate request_size=4 [08:58:22]MH_SAM_APDU [08:58:22]CAPDU: 80 09 00 00 [08:58:22]Write to MH i2c: E2 08 00 56 01 80 09 00 00 00 00 00 00 C9 [08:58:22]Write i2c OK [08:58:22]MH_I2C_Read... [08:58:22]Read from MH i2c: E2 [08:58:22]MH_I2C_Read... [08:58:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:58:22]Read from MH i2c: E2 03 00 [08:58:22]MH_I2C_Read... [08:58:22]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [08:58:22]RAPDU: 90 00 [08:58:22]wFMCommunicate OK [08:58:22]SAM_PROTO_ClearQueue done [08:58:22]KKMCreateOFDPacket [08:58:22]OFDProtocolAddRootSTLVToBuf [08:58:22]FM_MakeSignedData [08:58:22]FM_MakeSignedData [08:58:22]SAM_PROTO_SignData [08:58:22]wFMCommunicate request_size=4 [08:58:22]MH_SAM_APDU [08:58:22]CAPDU: 80 0D 01 02 [08:58:22]Write to MH i2c: E2 08 00 57 01 80 0D 01 02 00 00 00 00 D1 [08:58:22]Write i2c OK [08:58:22]MH_I2C_Read... [08:58:22]Read from MH i2c: E2 [08:58:22]MH_I2C_Read... [08:58:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:58:22]Read from MH i2c: E2 03 00 [08:58:22]MH_I2C_Read... [08:58:22]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [08:58:22]RAPDU: 90 00 [08:58:22]wFMCommunicate OK [08:58:22]wFMCommunicate request_size=255 [08:58:22]MH_SAM_APDU [08:58:22]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 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 C8 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 1B 00 00 00 F4 03 04 00 AE CA 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 65 07 01 00 35 04 06 00 [08:58:22]Write to MH i2c: E2 02 01 58 01 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 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 C8 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 1B 00 00 00 F4 03 04 00 AE CA 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 65 07 01 00 35 04 06 00 00 00 02 [08:58:22]Write i2c OK [08:58:22]MH_I2C_Read... [08:58:22]Read from MH i2c: E2 [08:58:22]MH_I2C_Read... [08:58:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:22]Read from MH i2c: E2 03 00 [08:58:22]MH_I2C_Read... [08:58:22]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [08:58:22]RAPDU: 90 00 [08:58:22]wFMCommunicate OK [08:58:22]wFMCommunicate request_size=11 [08:58:22]MH_SAM_APDU [08:58:22]CAPDU: 80 0D 02 02 06 DF 59 56 2C 9A 57 [08:58:22]Write to MH i2c: E2 0E 00 59 01 80 0D 02 02 06 00 DF 59 56 2C 9A 57 00 00 8B [08:58:22]Write i2c OK [08:58:22]MH_I2C_Read... [08:58:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:22]Read from MH i2c: E2 [08:58:22]MH_I2C_Read... [08:58:22]Read from MH i2c: E2 03 00 [08:58:22]MH_I2C_Read... [08:58:22]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [08:58:22]RAPDU: 90 00 [08:58:22]wFMCommunicate OK [08:58:22]wFMCommunicate request_size=4 [08:58:22]MH_SAM_APDU [08:58:22]CAPDU: 80 0D 03 02 [08:58:22]Write to MH i2c: E2 08 00 5A 01 80 0D 03 02 00 00 00 00 D6 [08:58:22]Write i2c OK [08:58:22]MH_I2C_Read... [08:58:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:58:22]Read from MH i2c: E2 [08:58:22]MH_I2C_Read... [08:58:22]Read from MH i2c: E2 0B 00 [08:58:22]MH_I2C_Read... [08:58:22]Read from MH i2c: E2 0B 00 5A 01 00 92 2D 0A 1E FE 6C 75 A3 90 00 40 [08:58:22]RAPDU: 92 2D 0A 1E FE 6C 75 A3 90 00 [08:58:22]wFMCommunicate OK [08:58:22]SAM_PROTO_SignData done [08:58:22]FM_MakeSignedData done [08:58:22]CreateOFDProtocolMessage [08:58:22]wFMCommunicate request_size=4 [08:58:22]MH_SAM_APDU [08:58:22]CAPDU: 80 11 00 00 [08:58:22]Write to MH i2c: E2 08 00 5B 01 80 11 00 00 00 00 00 00 D6 [08:58:22]Write i2c OK [08:58:22]MH_I2C_Read... [08:58:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:22]Read from MH i2c: E2 [08:58:22]MH_I2C_Read... [08:58:22]Read from MH i2c: E2 17 00 [08:58:22]MH_I2C_Read... [08:58:22]Read from MH i2c: E2 17 00 5B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2C [08:58:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:58:22]wFMCommunicate OK [08:58:22]CreateOFDProtocolMessage done [08:58:22]OFDSenderStorePacket 67429 [08:58:22]StoreOFDPacket docnum=67429 [08:58:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 9F 03 08 01 83 C0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 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 C8 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 1B 00 00 00 F4 03 04 00 AE CA 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 65 07 01 00 35 04 06 00 DF 59 56 2C 9A 57 92 2D 0A 1E FE 6C 75 A3 [08:58:22]CheckFolder [08:58:22]dirname=/storage/ofd_packets [08:58:22]CheckFolder done [08:58:22]ProducePacketName [08:58:22]name=ofd_packets/00067429 [08:58:22]NVStorageSaveData ofd_packets/00067429 [08:58:22]File name is /storage/ofd_packets/00067429 [08:58:22]Write 302 bytes [08:58:22]NVStorageSaveData done [08:58:22]OFDSenderStorePacket done [08:58:22]KKMCreateOFDPacket done [08:58:22]NVStorageSaveData kkm_last_timestamp [08:58:22]File name is /storage/kkm_last_timestamp [08:58:22]Write 4 bytes [08:58:22]NVStorageSaveData done [08:58:22]ExternCall_PrintAddStr [08:58:22]wPrintStart [08:58:22]Write to MH i2c: 01 00 00 5C 01 5D [08:58:22]Write i2c OK [08:58:22]MH_I2C_Read... [08:58:22]Read from MH i2c: 01 [08:58:22]MH_I2C_Read... [08:58:22]Read from MH i2c: 01 07 00 [08:58:22]MH_I2C_Read... [08:58:22]Read from MH i2c: 01 07 00 5C 01 00 00 00 00 00 FF 0F 72 [08:58:22]RasterBufferAndPrint [08:58:22]line Счет N : (1)507433 [08:58:22]line ИНН: 02508201610067 [08:58:22]line Контрольно-Кассовый Чек [08:58:22]line ПРОДАЖА [08:58:22]line ТРК (МРК, ГНК) : 22 [08:58:22]line Товар: 2710124130 [08:58:22]line Super-92-К-5 [08:58:22]line 17.700 * 67.80 [08:58:22]line = 1200.06 [08:58:22]line НДС 12% НСП 1% [08:58:22]line > о реализуемом товаре [08:58:22]line ОКРУГЛЕНИЕ: -0.06 [08:58:22]line ИТОГО: 1200.00 [08:58:22]line Внесено: 1200.00 [08:58:22]line СДАЧА: 0.00 [08:58:22]line НСП 1% : 10.62 [08:58:22]line НДС 12% : 127.44 [08:58:22]line Наличными: 1200.00 [08:58:22]line Безнал.: 0.00 [08:58:22]line Место: АЗС № 91 "Партнер Нефть" [08:58:22]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [08:58:22]line СНО: Общий режим [08:58:22]line Чек 27 16.05.2024 08:58 [08:58:22]line Смена: 357 ФФД: 1.0 [08:58:22]line ЗНМ: 0300000119 [08:58:22]line РНМ: 0000000000091845 [08:58:22]line Версия ККМ: 001 [08:58:22]line ФМ: 0000000000871829 [08:58:22]line ФД: 67429 [08:58:22]line ФПД: 245574790847063 [08:58:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T085822&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67429&fm=245574790847063&tin=02508201610067®Number=0000000000091845&sum=120000 [08:58:23]written 0, free lines is 4095 [08:58:23]OFD Sender: Processing packet 67429 [packets to send 35, broken 34] [08:58:23]ProducePacketName [08:58:23]name=ofd_packets/00067429 [08:58:23]OFD Sender: To server: pG, [08:58:23]CommunicateWithHost lk.salyk.kg:30040 [08:58:23]ConnectInit lk.salyk.kg [08:58:23]Connected sock=10 [08: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 38 32 39 10 01 00 00 9F 03 08 01 83 C0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 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 C8 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 1B 00 00 00 F4 03 04 00 AE CA 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 65 07 01 00 35 04 06 00 DF 59 56 2C 9A 57 92 2D 0A 1E FE 6C 75 A3 [08: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 38 32 39 4F 00 00 00 55 CB 47 00 4A 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 38 32 39 10 04 04 00 65 07 01 00 F4 03 04 00 89 72 45 66 B6 04 01 00 00 38 61 81 15 22 B2 AD 77 [08:58:23]CommunicateWithHost err = 0 [08:58:23]CheckOFDResponse [08:58:23]1017 (14) - 77093643461234 [08:58:23]1041 (16) - 0000000000871829 [08:58:23]1040 (4) - 67429 [08:58:23]1012 (4) - 16.05.2024 02:42 [08:58:23]1206 (1) - 0 [08:58:23]OFD Sender: Remove packet 67429 [08:58:23]ProducePacketName [08:58:23]name=ofd_packets/00067429 [08:58:23]NVStorageDeleteData [08:58:23]Write to MH i2c: 01 00 00 86 01 87 [08:58:23]Write i2c OK [08:58:23]MH_I2C_Read... [08:58:23]Read from MH i2c: 01 [08:58:23]MH_I2C_Read... [08:58:23]Read from MH i2c: 01 07 00 [08:58:23]MH_I2C_Read... [08:58:23]Read from MH i2c: 01 07 00 86 01 00 00 00 00 00 C4 0C 5E [08:58:23]RasterBufferAndPrint [08:58:23]line [08:58:23]line [08:58:23]line [08:58:23]line [08:58:23]line [08:58:23]written 0, free lines is 3273 [08:58:23]MH_Cut [08:58:23]Write to MH i2c: D1 01 00 8D 01 01 60 [08:58:23]Write i2c OK [08:58:23]MH_I2C_Read... [08:58:23]Read from MH i2c: D1 [08:58:23]MH_I2C_Read... [08:58:23]Read from MH i2c: D1 01 00 [08:58:23]MH_I2C_Read... [08:58:23]Read from MH i2c: D1 01 00 8D 01 00 5F [08:58:23]Write to MH i2c: 01 00 00 8E 01 8F [08:58:23]Write i2c OK [08:58:23]MH_I2C_Read... [08:58:24]OFD Sender: No OFD packet to send [08:58:24]*** Cut start [08:58:24]*** Purtial cut [08:58:24]*** CUTSNS_PIN = 0 [08:58:24]*** Stage 1: CUTSNS_PIN = 1 [08:58:26]Read from MH i2c: 01 [08:58:26]MH_I2C_Read... [08:58:26]*** Stop cut motor [08:58:26]*** Cut end [08:58:26]Read from MH i2c: 01 07 00 [08:58:26]MH_I2C_Read... [08:58:26]Read from MH i2c: 01 07 00 8E 01 00 00 00 00 00 FF 0F A4 [08:58:26]process_action close_receipt done [08:58:26]requested_data is exist [08:58:26]produce_requested_data [08:58:26]requested_item fm.sn is exist - process it [08:58:26]wFMCommunicate request_size=4 [08:58:26]MH_SAM_APDU [08:58:26]CAPDU: 80 11 00 00 [08:58:26]Write to MH i2c: E2 08 00 8F 01 80 11 00 00 00 00 00 00 0A [08:58:26]Write i2c OK [08:58:26]MH_I2C_Read... [08:58:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:26]Read from MH i2c: E2 [08:58:26]MH_I2C_Read... [08:58:26]Read from MH i2c: E2 17 00 [08:58:26]MH_I2C_Read... [08:58:26]Read from MH i2c: E2 17 00 8F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 60 [08:58:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:58:26]wFMCommunicate OK [08:58:26]requested_item fd.num is exist - process it [08:58:26]SAM_PROTO_GetFieldsCounters [08:58:26]wFMCommunicate request_size=4 [08:58:26]MH_SAM_APDU [08:58:26]CAPDU: 80 13 00 00 [08:58:26]Write to MH i2c: E2 08 00 90 01 80 13 00 00 00 00 00 00 0D [08:58:26]Write i2c OK [08:58:26]MH_I2C_Read... [08:58:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:58:26]Read from MH i2c: E2 [08:58:26]MH_I2C_Read... [08:58:26]Read from MH i2c: E2 62 00 [08:58:26]MH_I2C_Read... [08:58:26]Read from MH i2c: E2 62 00 90 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 65 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [08:58:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 65 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:58:26]wFMCommunicate OK [08:58:26]SAM_PROTO_GetFieldsCounters done [08:58:26]requested_item shift.num is exist - process it [08:58:26]requested_item shift.opened is exist - process it [08:58:26]req_shift_opened [08:58:26]FM_GetShiftState [08:58:26]SAM_PROTO_GetShiftState [08:58:26]wFMCommunicate request_size=4 [08:58:26]MH_SAM_APDU [08:58:26]CAPDU: 80 13 01 00 [08:58:26]Write to MH i2c: E2 08 00 91 01 80 13 01 00 00 00 00 00 0F [08:58:26]Write i2c OK [08:58:26]MH_I2C_Read... [08:58:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:26]Read from MH i2c: E2 [08:58:26]MH_I2C_Read... [08:58:26]Read from MH i2c: E2 0E 00 [08:58:26]MH_I2C_Read... [08:58:26]Read from MH i2c: E2 0E 00 91 01 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 BB [08:58:26]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [08:58:26]wFMCommunicate OK [08:58:26]SAM_PROTO_GetShiftState done [08:58:26]FM_GetShiftState done [08:58:26]req_shift_opened done [08:58:26]requested_item shift.open_date is exist - process it [08:58:26]req_shift_open_date [08:58:26]req_shift_open_date done [08:58:26]produce_requested_data done [08:58:26]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67429,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [08:58:26]process_action_free close_receipt [08:58:26]json_value_free [08:58:26]json_value_free done [08:58:26]process_json_proto returns [08:58:26]Send response to host [08:58:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67429,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [08:58:26]free response buf [08:58:26]execute_script done [08:58:26]execute_script returns [08:58:26]free content buf [08:58:26]Sock 8.Close socket [08:58:26]Sock 8.Thread stoped [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:41]accept exits with 9 [08:58:41]New connection [08:58:41]New thread 3067460964 created [08:58:41]Thread 3067604324 joined [08:58:41]Waiting for new connection... [08:58:41] Sock 9.Parse request [08:58:41]Sock 9.Check first char [08:58:41]Sock 9.First char is OK [08:58:41]request: POST /json_proto HTTP/1.0 [08:58:41]Method: POST [08:58:41]URL: /json_proto [08:58:41]Method is POST - this is cgi request [08:58:41]url: /json_proto [08:58:41]query_string will be loaded in cgi processing [08:58:41]execute_cgi json_proto POST (null) [08:58:41]execute_cgi path=json_proto method=POST [08:58:41]POST find Content-Length [08:58:41]Host: 172.17.41.195:8080 [08:58:41]Content-Length: 675 [08:58:41]Content-Type: application/json [08:58:41] [08:58:41]POST finish read [08:58:41]Found Content-Length = 675 [08:58:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507434", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 17.700, "sum" : 1200.06, "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:58:41]execute_script... [08:58: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)507434", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 17.700, "sum" : 1200.06, "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:58:41]POST & json_proto [08:58:41]process_json_proto [08:58:41]json parsed OK: [08:58:41]protocol is kg_v1.0 [08:58:41]action value=close_receipt [08:58:41]process_action close_receipt [08:58:41]cmd_close_receipt [08:58:41]MH_GetDate [08:58:41]Write to MH i2c: F0 00 00 92 01 82 [08:58:41]Write i2c OK [08:58:41]MH_I2C_Read... [08:58:41]Read from MH i2c: F0 [08:58:41]MH_I2C_Read... [08:58:41]Read from MH i2c: F0 09 00 [08:58:41]MH_I2C_Read... [08:58:41]Read from MH i2c: F0 09 00 92 01 00 C2 CA 45 66 FC 21 6F 64 B2 [08:58:41]GetLastDocTimeStamp 1715849902 [08:58:41]current date 1715849922 [08:58:41]FM_GetShiftState [08:58:41]SAM_PROTO_GetShiftState [08:58:41]wFMCommunicate request_size=4 [08:58:41]MH_SAM_APDU [08:58:41]CAPDU: 80 13 01 00 [08:58:41]Write to MH i2c: E2 08 00 93 01 80 13 01 00 00 00 00 00 11 [08:58:41]Write i2c OK [08:58:41]MH_I2C_Read... [08:58:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:41]Read from MH i2c: E2 [08:58:41]MH_I2C_Read... [08:58:41]Read from MH i2c: E2 0E 00 [08:58:41]MH_I2C_Read... [08:58:41]Read from MH i2c: E2 0E 00 93 01 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 BD [08:58:41]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [08:58:41]wFMCommunicate OK [08:58:41]SAM_PROTO_GetShiftState done [08:58:41]FM_GetShiftState done [08:58:41]opened in 1715818916 [08:58:41]opened+sec_in_day 1715905316 [08:58:41]quantity*price = 120006 [08:58:41]sum+1 = 120007 [08:58:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.44 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 28 16.05.2024 08:58 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67430 ФПД: 60174086315841 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T085842&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67430&fm=60174086315841&tin=02508201610067®Number=0000000000091845&sum=120000 [08:58:42]StoreToDocumentArchive [08:58:42]shift 357 fd 67430 [08:58:42]save to /storage/0357/doc_00067430 [08:58:42]save last doc name /storage/0357/doc_00067430 to /storage/kkm_last_doc_name [08:58:42]save OK [08:58:42]Clear old archive folders... [08:58:42]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:58:42]tlvbuf is 00C80720 [08:58:42]SAM_PROTO_ClearQueue [08:58:42]wFMCommunicate request_size=4 [08:58:42]MH_SAM_APDU [08:58:42]CAPDU: 80 09 00 00 [08:58:42]Write to MH i2c: E2 08 00 A0 01 80 09 00 00 00 00 00 00 13 [08:58:42]Write i2c OK [08:58:42]MH_I2C_Read... [08:58:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:58:42]Read from MH i2c: E2 [08:58:42]MH_I2C_Read... [08:58:42]Read from MH i2c: E2 03 00 [08:58:42]MH_I2C_Read... [08:58:42]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [08:58:42]RAPDU: 90 00 [08:58:42]wFMCommunicate OK [08:58:42]SAM_PROTO_ClearQueue done [08:58:42]KKMCreateOFDPacket [08:58:42]OFDProtocolAddRootSTLVToBuf [08:58:42]FM_MakeSignedData [08:58:42]FM_MakeSignedData [08:58:42]SAM_PROTO_SignData [08:58:42]wFMCommunicate request_size=4 [08:58:42]MH_SAM_APDU [08:58:42]CAPDU: 80 0D 01 02 [08:58:42]Write to MH i2c: E2 08 00 A1 01 80 0D 01 02 00 00 00 00 1B [08:58:42]Write i2c OK [08:58:42]MH_I2C_Read... [08:58:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:58:42]Read from MH i2c: E2 [08:58:42]MH_I2C_Read... [08:58:42]Read from MH i2c: E2 03 00 [08:58:42]MH_I2C_Read... [08:58:42]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [08:58:42]RAPDU: 90 00 [08:58:42]wFMCommunicate OK [08:58:42]wFMCommunicate request_size=255 [08:58:42]MH_SAM_APDU [08:58:42]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 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 C8 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 1C 00 00 00 F4 03 04 00 C2 CA 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 66 07 01 00 35 04 06 00 [08:58:42]Write to MH i2c: E2 02 01 A2 01 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 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 C8 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 1C 00 00 00 F4 03 04 00 C2 CA 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 66 07 01 00 35 04 06 00 00 00 62 [08:58:42]Write i2c OK [08:58:42]MH_I2C_Read... [08:58:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:42]Read from MH i2c: E2 [08:58:42]MH_I2C_Read... [08:58:42]Read from MH i2c: E2 03 00 [08:58:42]MH_I2C_Read... [08:58:42]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [08:58:42]RAPDU: 90 00 [08:58:42]wFMCommunicate OK [08:58:42]wFMCommunicate request_size=11 [08:58:42]MH_SAM_APDU [08:58:42]CAPDU: 80 0D 02 02 06 36 BA 5F 0A 1F 41 [08:58:42]Write to MH i2c: E2 0E 00 A3 01 80 0D 02 02 06 00 36 BA 5F 0A 1F 41 00 00 E3 [08:58:42]Write i2c OK [08:58:42]MH_I2C_Read... [08:58:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:42]Read from MH i2c: E2 [08:58:42]MH_I2C_Read... [08:58:42]Read from MH i2c: E2 03 00 [08:58:42]MH_I2C_Read... [08:58:42]Read from MH i2c: E2 03 00 A3 01 00 90 00 18 [08:58:42]RAPDU: 90 00 [08:58:42]wFMCommunicate OK [08:58:42]wFMCommunicate request_size=4 [08:58:42]MH_SAM_APDU [08:58:42]CAPDU: 80 0D 03 02 [08:58:42]Write to MH i2c: E2 08 00 A4 01 80 0D 03 02 00 00 00 00 20 [08:58:42]Write i2c OK [08:58:42]MH_I2C_Read... [08:58:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:58:42]Read from MH i2c: E2 [08:58:42]MH_I2C_Read... [08:58:42]Read from MH i2c: E2 0B 00 [08:58:42]MH_I2C_Read... [08:58:42]Read from MH i2c: E2 0B 00 A4 01 00 B6 E2 BD 33 34 EE B1 6F 90 00 EB [08:58:42]RAPDU: B6 E2 BD 33 34 EE B1 6F 90 00 [08:58:42]wFMCommunicate OK [08:58:42]SAM_PROTO_SignData done [08:58:42]FM_MakeSignedData done [08:58:42]CreateOFDProtocolMessage [08:58:42]wFMCommunicate request_size=4 [08:58:42]MH_SAM_APDU [08:58:42]CAPDU: 80 11 00 00 [08:58:42]Write to MH i2c: E2 08 00 A5 01 80 11 00 00 00 00 00 00 20 [08:58:42]Write i2c OK [08:58:42]MH_I2C_Read... [08:58:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:42]Read from MH i2c: E2 [08:58:42]MH_I2C_Read... [08:58:42]Read from MH i2c: E2 17 00 [08:58:42]MH_I2C_Read... [08:58:42]Read from MH i2c: E2 17 00 A5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 76 [08:58:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:58:42]wFMCommunicate OK [08:58:42]CreateOFDProtocolMessage done [08:58:42]OFDSenderStorePacket 67430 [08:58:42]StoreOFDPacket docnum=67430 [08:58:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 C0 B4 08 01 76 C2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 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 C8 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 1C 00 00 00 F4 03 04 00 C2 CA 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 66 07 01 00 35 04 06 00 36 BA 5F 0A 1F 41 B6 E2 BD 33 34 EE B1 6F [08:58:42]CheckFolder [08:58:42]dirname=/storage/ofd_packets [08:58:42]CheckFolder done [08:58:42]ProducePacketName [08:58:42]name=ofd_packets/00067430 [08:58:42]NVStorageSaveData ofd_packets/00067430 [08:58:42]File name is /storage/ofd_packets/00067430 [08:58:42]Write 302 bytes [08:58:42]NVStorageSaveData done [08:58:42]OFDSenderStorePacket done [08:58:42]KKMCreateOFDPacket done [08:58:42]NVStorageSaveData kkm_last_timestamp [08:58:42]File name is /storage/kkm_last_timestamp [08:58:42]Write 4 bytes [08:58:42]NVStorageSaveData done [08:58:42]ExternCall_PrintAddStr [08:58:42]wPrintStart [08:58:42]Write to MH i2c: 01 00 00 A6 01 A7 [08:58:42]Write i2c OK [08:58:42]MH_I2C_Read... [08:58:42]Read from MH i2c: 01 [08:58:42]MH_I2C_Read... [08:58:42]Read from MH i2c: 01 07 00 [08:58:42]MH_I2C_Read... [08:58:42]Read from MH i2c: 01 07 00 A6 01 00 00 00 00 00 FF 0F BC [08:58:42]RasterBufferAndPrint [08:58:42]line Счет N : (1)507434 [08:58:42]line ИНН: 02508201610067 [08:58:42]line Контрольно-Кассовый Чек [08:58:42]line ПРОДАЖА [08:58:42]line ТРК (МРК, ГНК) : 12 [08:58:42]line Товар: 2710124130 [08:58:42]line Super-92-К-5 [08:58:42]line 17.700 * 67.80 [08:58:42]line = 1200.06 [08:58:42]line НДС 12% НСП 1% [08:58:42]line > о реализуемом товаре [08:58:42]line ОКРУГЛЕНИЕ: -0.06 [08:58:42]line ИТОГО: 1200.00 [08:58:42]line Внесено: 1200.00 [08:58:42]line СДАЧА: 0.00 [08:58:42]line НСП 1% : 10.62 [08:58:42]line НДС 12% : 127.44 [08:58:42]line Наличными: 1200.00 [08:58:42]line Безнал.: 0.00 [08:58:42]line Место: АЗС № 91 "Партнер Нефть" [08:58:42]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [08:58:42]line СНО: Общий режим [08:58:42]line Чек 28 16.05.2024 08:58 [08:58:42]line Смена: 357 ФФД: 1.0 [08:58:42]line ЗНМ: 0300000119 [08:58:42]line РНМ: 0000000000091845 [08:58:42]line Версия ККМ: 001 [08:58:42]line ФМ: 0000000000871829 [08:58:42]line ФД: 67430 [08:58:42]line ФПД: 60174086315841 [08:58:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T085842&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67430&fm=60174086315841&tin=02508201610067®Number=0000000000091845&sum=120000 [08:58:43]OFD Sender: Processing packet 67430 [packets to send 35, broken 34] [08:58:43]ProducePacketName [08:58:43]name=ofd_packets/00067430 [08:58:43]OFD Sender: To server: pG, [08:58:43]CommunicateWithHost lk.salyk.kg:30040 [08:58:43]ConnectInit lk.salyk.kg [08:58:43]written 0, free lines is 4095 [08:58:43]Connected sock=10 [08:58: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 38 32 39 10 01 00 00 C0 B4 08 01 76 C2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 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 C8 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 1C 00 00 00 F4 03 04 00 C2 CA 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 66 07 01 00 35 04 06 00 36 BA 5F 0A 1F 41 B6 E2 BD 33 34 EE B1 6F [08:58:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 10 F3 47 00 A9 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 38 32 39 10 04 04 00 66 07 01 00 F4 03 04 00 9D 72 45 66 B6 04 01 00 00 85 07 C0 9D CC E8 A9 35 [08:58:43]CommunicateWithHost err = 0 [08:58:43]CheckOFDResponse [08:58:43]1017 (14) - 77093643461234 [08:58:43]1041 (16) - 0000000000871829 [08:58:43]1040 (4) - 67430 [08:58:43]1012 (4) - 16.05.2024 02:42 [08:58:43]1206 (1) - 0 [08:58:43]OFD Sender: Remove packet 67430 [08:58:43]ProducePacketName [08:58:43]name=ofd_packets/00067430 [08:58:43]NVStorageDeleteData [08:58:43]Write to MH i2c: 01 00 00 D0 01 D1 [08:58:43]Write i2c OK [08:58:43]MH_I2C_Read... [08:58:43]Read from MH i2c: 01 [08:58:43]MH_I2C_Read... [08:58:43]Read from MH i2c: 01 07 00 [08:58:43]MH_I2C_Read... [08:58:43]Read from MH i2c: 01 07 00 D0 01 00 00 00 00 00 C9 0C AD [08:58:43]RasterBufferAndPrint [08:58:43]line [08:58:43]line [08:58:43]line [08:58:43]line [08:58:43]line [08:58:43]written 0, free lines is 3279 [08:58:43]MH_Cut [08:58:43]Write to MH i2c: D1 01 00 D7 01 01 AA [08:58:43]Write i2c OK [08:58:43]MH_I2C_Read... [08:58:43]Read from MH i2c: D1 [08:58:43]MH_I2C_Read... [08:58:43]Read from MH i2c: D1 01 00 [08:58:43]MH_I2C_Read... [08:58:43]Read from MH i2c: D1 01 00 D7 01 00 A9 [08:58:43]Write to MH i2c: 01 00 00 D8 01 D9 [08:58:43]Write i2c OK [08:58:43]MH_I2C_Read... [08:58:43]OFD Sender: No OFD packet to send [08:58:44]*** Cut start [08:58:44]*** Purtial cut [08:58:44]*** Stage 1: CUTSNS_PIN = 1 [08:58:44]Read from MH i2c: 01 [08:58:44]MH_I2C_Read... [08:58:44]*** Stop cut motor [08:58:44]*** Cut end [08:58:44]Read from MH i2c: 01 07 00 [08:58:44]MH_I2C_Read... [08:58:44]Read from MH i2c: 01 07 00 D8 01 00 00 00 00 00 FF 0F EE [08:58:44]process_action close_receipt done [08:58:44]requested_data is exist [08:58:44]produce_requested_data [08:58:44]requested_item fm.sn is exist - process it [08:58:44]wFMCommunicate request_size=4 [08:58:44]MH_SAM_APDU [08:58:44]CAPDU: 80 11 00 00 [08:58:44]Write to MH i2c: E2 08 00 D9 01 80 11 00 00 00 00 00 00 54 [08:58:44]Write i2c OK [08:58:44]MH_I2C_Read... [08:58:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:44]Read from MH i2c: E2 [08:58:44]MH_I2C_Read... [08:58:44]Read from MH i2c: E2 17 00 [08:58:44]MH_I2C_Read... [08:58:44]Read from MH i2c: E2 17 00 D9 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AA [08:58:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:58:44]wFMCommunicate OK [08:58:44]requested_item fd.num is exist - process it [08:58:44]SAM_PROTO_GetFieldsCounters [08:58:44]wFMCommunicate request_size=4 [08:58:44]MH_SAM_APDU [08:58:44]CAPDU: 80 13 00 00 [08:58:44]Write to MH i2c: E2 08 00 DA 01 80 13 00 00 00 00 00 00 57 [08:58:44]Write i2c OK [08:58:44]MH_I2C_Read... [08:58:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:58:44]Read from MH i2c: E2 [08:58:44]MH_I2C_Read... [08:58:44]Read from MH i2c: E2 62 00 [08:58:44]MH_I2C_Read... [08:58:44]Read from MH i2c: E2 62 00 DA 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 66 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [08: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 66 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:58:44]wFMCommunicate OK [08:58:44]SAM_PROTO_GetFieldsCounters done [08:58:44]requested_item shift.num is exist - process it [08:58:44]requested_item shift.opened is exist - process it [08:58:44]req_shift_opened [08:58:44]FM_GetShiftState [08:58:44]SAM_PROTO_GetShiftState [08:58:44]wFMCommunicate request_size=4 [08:58:44]MH_SAM_APDU [08:58:44]CAPDU: 80 13 01 00 [08:58:44]Write to MH i2c: E2 08 00 DB 01 80 13 01 00 00 00 00 00 59 [08:58:44]Write i2c OK [08:58:44]MH_I2C_Read... [08:58:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:44]Read from MH i2c: E2 [08:58:44]MH_I2C_Read... [08:58:44]Read from MH i2c: E2 0E 00 [08:58:44]MH_I2C_Read... [08:58:44]Read from MH i2c: E2 0E 00 DB 01 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 05 [08:58:44]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [08:58:44]wFMCommunicate OK [08:58:44]SAM_PROTO_GetShiftState done [08:58:44]FM_GetShiftState done [08:58:44]req_shift_opened done [08:58:44]requested_item shift.open_date is exist - process it [08:58:44]req_shift_open_date [08:58:44]req_shift_open_date done [08:58:44]produce_requested_data done [08:58:44]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67430,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [08:58:44]process_action_free close_receipt [08:58:44]json_value_free [08:58:44]json_value_free done [08:58:44]process_json_proto returns [08:58:44]Send response to host [08:58:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67430,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [08:58:44]free response buf [08:58:44]execute_script done [08:58:44]execute_script returns [08:58:44]free content buf [08:58:44]Sock 9.Close socket [08:58:44]Sock 9.Thread stoped [08:58:48]OFD Sender: No OFD packet to send [08:58:53]OFD Sender: No OFD packet to send [08:58:58]OFD Sender: No OFD packet to send [08:59:03]OFD Sender: No OFD packet to send [08:59:08]OFD Sender: No OFD packet to send [08:59:13]OFD Sender: No OFD packet to send [08:59:18]OFD Sender: No OFD packet to send [08:59:23]OFD Sender: No OFD packet to send [08:59:28]OFD Sender: No OFD packet to send [08:59:33]OFD Sender: No OFD packet to send [08:59:38]OFD Sender: No OFD packet to send [08:59:43]OFD Sender: No OFD packet to send [08:59:48]OFD Sender: No OFD packet to send [08:59:53]OFD Sender: No OFD packet to send [08:59:58]OFD Sender: No OFD packet to send [09:00:03]OFD Sender: No OFD packet to send [09:00:08]OFD Sender: No OFD packet to send [09:00:13]OFD Sender: No OFD packet to send [09:00:18]OFD Sender: No OFD packet to send [09:00:23]OFD Sender: No OFD packet to send [09:00:28]OFD Sender: No OFD packet to send [09:00:33]OFD Sender: No OFD packet to send [09:00:38]OFD Sender: No OFD packet to send [09:00:43]OFD Sender: No OFD packet to send [09:00:48]OFD Sender: No OFD packet to send [09:00: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:44]OFD Sender: No OFD packet to send [09:01:49]OFD Sender: No OFD packet to send [09:01:54]OFD Sender: No OFD packet to send [09:01:59]OFD Sender: No OFD packet to send [09:02:04]OFD Sender: No OFD packet to send [09:02: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:02]accept exits with 8 [09:03:02]New connection [09:03:02]New thread 3067604324 created [09:03:02]Thread 3067460964 joined [09:03:02]Waiting for new connection... [09:03:02] Sock 8.Parse request [09:03:02]Sock 8.Check first char [09:03:02]Sock 8.First char is OK [09:03:02]request: POST /json_proto HTTP/1.0 [09:03:02]Method: POST [09:03:02]URL: /json_proto [09:03:02]Method is POST - this is cgi request [09:03:02]url: /json_proto [09:03:02]query_string will be loaded in cgi processing [09:03:02]execute_cgi json_proto POST (null) [09:03:02]execute_cgi path=json_proto method=POST [09:03:02]POST find Content-Length [09:03:02]Host: 172.17.41.195:8080 [09:03:02]Content-Length: 677 [09:03:02]Content-Type: application/json [09:03:02] [09:03:02]POST finish read [09:03:02]Found Content-Length = 677 [09:03:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507437", "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.80, "quantity" : 5.990, "sum" : 400.13, "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:03:02]execute_script... [09: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)507437", "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.80, "quantity" : 5.990, "sum" : 400.13, "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:03:02]POST & json_proto [09:03:02]process_json_proto [09:03:02]json parsed OK: [09:03:02]protocol is kg_v1.0 [09:03:02]action value=close_receipt [09:03:02]process_action close_receipt [09:03:02]cmd_close_receipt [09:03:02]MH_GetDate [09:03:02]Write to MH i2c: F0 00 00 DC 01 CC [09:03:02]Write i2c OK [09:03:02]MH_I2C_Read... [09:03:02]Read from MH i2c: F0 [09:03:02]MH_I2C_Read... [09:03:02]Read from MH i2c: F0 09 00 [09:03:02]MH_I2C_Read... [09:03:02]Read from MH i2c: F0 09 00 DC 01 00 C7 CB 45 66 FC 21 6F 64 02 [09:03:02]GetLastDocTimeStamp 1715849922 [09:03:02]current date 1715850183 [09:03:02]FM_GetShiftState [09:03:02]SAM_PROTO_GetShiftState [09:03:02]wFMCommunicate request_size=4 [09:03:02]MH_SAM_APDU [09:03:02]CAPDU: 80 13 01 00 [09:03:02]Write to MH i2c: E2 08 00 DD 01 80 13 01 00 00 00 00 00 5B [09:03:02]Write i2c OK [09:03:02]MH_I2C_Read... [09:03:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:02]Read from MH i2c: E2 [09:03:02]MH_I2C_Read... [09:03:02]Read from MH i2c: E2 0E 00 [09:03:02]MH_I2C_Read... [09:03:02]Read from MH i2c: E2 0E 00 DD 01 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 07 [09:03:02]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [09:03:02]wFMCommunicate OK [09:03:02]SAM_PROTO_GetShiftState done [09:03:02]FM_GetShiftState done [09:03:02]opened in 1715818916 [09:03:02]opened+sec_in_day 1715905316 [09:03:02]quantity*price = 40013 [09:03:02]sum+1 = 40014 [09:03:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.49 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 29 16.05.2024 09:03 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67431 ФПД: 159879447062335 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T090303&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67431&fm=159879447062335&tin=02508201610067®Number=0000000000091845&sum=40000 [09:03:03]StoreToDocumentArchive [09:03:03]shift 357 fd 67431 [09:03:03]save to /storage/0357/doc_00067431 [09:03:03]save last doc name /storage/0357/doc_00067431 to /storage/kkm_last_doc_name [09:03:03]save OK [09:03:03]Clear old archive folders... [09:03:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:03:03]tlvbuf is 00CC7230 [09:03:03]SAM_PROTO_ClearQueue [09:03:03]wFMCommunicate request_size=4 [09:03:03]MH_SAM_APDU [09:03:03]CAPDU: 80 09 00 00 [09:03:03]Write to MH i2c: E2 08 00 EA 01 80 09 00 00 00 00 00 00 5D [09:03:03]Write i2c OK [09:03:03]MH_I2C_Read... [09:03:03]Read from MH i2c: E2 [09:03:03]MH_I2C_Read... [09:03:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:03:03]Read from MH i2c: E2 03 00 [09:03:03]MH_I2C_Read... [09:03:03]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [09:03:03]RAPDU: 90 00 [09:03:03]wFMCommunicate OK [09:03:03]SAM_PROTO_ClearQueue done [09:03:03]KKMCreateOFDPacket [09:03:03]OFDProtocolAddRootSTLVToBuf [09:03:03]FM_MakeSignedData [09:03:03]FM_MakeSignedData [09:03:03]SAM_PROTO_SignData [09:03:03]wFMCommunicate request_size=4 [09:03:03]MH_SAM_APDU [09:03:03]CAPDU: 80 0D 01 02 [09:03:03]Write to MH i2c: E2 08 00 EB 01 80 0D 01 02 00 00 00 00 65 [09:03:03]Write i2c OK [09:03:03]MH_I2C_Read... [09:03:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:03:03]Read from MH i2c: E2 [09:03:03]MH_I2C_Read... [09:03:03]Read from MH i2c: E2 03 00 [09:03:03]MH_I2C_Read... [09:03:03]Read from MH i2c: E2 03 00 EB 01 00 90 00 60 [09:03:03]RAPDU: 90 00 [09:03:03]wFMCommunicate OK [09:03:03]wFMCommunicate request_size=255 [09:03:03]MH_SAM_APDU [09: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 17 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4D 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 99 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 1D 00 00 00 F4 03 04 00 C7 CB 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 67 07 01 00 35 04 06 00 91 [09:03:03]Write to MH i2c: E2 02 01 EC 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 17 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4D 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 99 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 1D 00 00 00 F4 03 04 00 C7 CB 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 67 07 01 00 35 04 06 00 91 00 00 90 [09:03:03]Write i2c OK [09:03:03]MH_I2C_Read... [09:03:04]OFD Sender: No OFD packet to send [09:03:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:04]Read from MH i2c: E2 [09:03:04]MH_I2C_Read... [09:03:04]Read from MH i2c: E2 03 00 [09:03:04]MH_I2C_Read... [09:03:04]Read from MH i2c: E2 03 00 EC 01 00 90 00 61 [09:03:04]RAPDU: 90 00 [09:03:04]wFMCommunicate OK [09:03:04]wFMCommunicate request_size=10 [09:03:04]MH_SAM_APDU [09:03:04]CAPDU: 80 0D 02 02 05 68 D5 A6 27 3F [09:03:04]Write to MH i2c: E2 0D 00 ED 01 80 0D 02 02 05 00 68 D5 A6 27 3F 00 00 BB [09:03:04]Write i2c OK [09:03:04]MH_I2C_Read... [09:03:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:04]Read from MH i2c: E2 [09:03:04]MH_I2C_Read... [09:03:04]Read from MH i2c: E2 03 00 [09:03:04]MH_I2C_Read... [09:03:04]Read from MH i2c: E2 03 00 ED 01 00 90 00 62 [09:03:04]RAPDU: 90 00 [09:03:04]wFMCommunicate OK [09:03:04]wFMCommunicate request_size=4 [09:03:04]MH_SAM_APDU [09:03:04]CAPDU: 80 0D 03 02 [09:03:04]Write to MH i2c: E2 08 00 EE 01 80 0D 03 02 00 00 00 00 6A [09:03:04]Write i2c OK [09:03:04]MH_I2C_Read... [09:03:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:03:04]Read from MH i2c: E2 [09:03:04]MH_I2C_Read... [09:03:04]Read from MH i2c: E2 0B 00 [09:03:04]MH_I2C_Read... [09:03:04]Read from MH i2c: E2 0B 00 EE 01 00 10 D9 D6 F9 5B 3F 02 5C 90 00 1B [09:03:04]RAPDU: 10 D9 D6 F9 5B 3F 02 5C 90 00 [09:03:04]wFMCommunicate OK [09:03:04]SAM_PROTO_SignData done [09:03:04]FM_MakeSignedData done [09:03:04]CreateOFDProtocolMessage [09:03:04]wFMCommunicate request_size=4 [09:03:04]MH_SAM_APDU [09:03:04]CAPDU: 80 11 00 00 [09:03:04]Write to MH i2c: E2 08 00 EF 01 80 11 00 00 00 00 00 00 6A [09:03:04]Write i2c OK [09:03:04]MH_I2C_Read... [09:03:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:04]Read from MH i2c: E2 [09:03:04]MH_I2C_Read... [09:03:04]Read from MH i2c: E2 17 00 [09:03:04]MH_I2C_Read... [09:03:04]Read from MH i2c: E2 17 00 EF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C0 [09:03:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:03:04]wFMCommunicate OK [09:03:04]CreateOFDProtocolMessage done [09:03:04]OFDSenderStorePacket 67431 [09:03:04]StoreOFDPacket docnum=67431 [09:03:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 61 7B 07 01 F7 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 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 17 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4D 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 99 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 1D 00 00 00 F4 03 04 00 C7 CB 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 67 07 01 00 35 04 06 00 91 68 D5 A6 27 3F 10 D9 D6 F9 5B 3F 02 5C [09:03:04]CheckFolder [09:03:04]dirname=/storage/ofd_packets [09:03:04]CheckFolder done [09:03:04]ProducePacketName [09:03:04]name=ofd_packets/00067431 [09:03:04]NVStorageSaveData ofd_packets/00067431 [09:03:04]File name is /storage/ofd_packets/00067431 [09:03:04]Write 301 bytes [09:03:04]NVStorageSaveData done [09:03:04]OFDSenderStorePacket done [09:03:04]KKMCreateOFDPacket done [09:03:04]NVStorageSaveData kkm_last_timestamp [09:03:04]File name is /storage/kkm_last_timestamp [09:03:04]Write 4 bytes [09:03:04]NVStorageSaveData done [09:03:04]ExternCall_PrintAddStr [09:03:04]wPrintStart [09:03:04]Write to MH i2c: 01 00 00 F0 01 F1 [09:03:04]Write i2c OK [09:03:04]MH_I2C_Read... [09:03:04]Read from MH i2c: 01 [09:03:04]MH_I2C_Read... [09:03:04]Read from MH i2c: 01 07 00 [09:03:04]MH_I2C_Read... [09:03:04]Read from MH i2c: 01 07 00 F0 01 00 00 00 00 00 FF 0F 06 [09:03:04]RasterBufferAndPrint [09:03:04]line Счет N : (1)507437 [09:03:04]line ИНН: 02508201610067 [09:03:04]line Контрольно-Кассовый Чек [09:03:04]line ПРОДАЖА [09:03:04]line ТРК (МРК, ГНК) : 23 [09:03:04]line Товар: 2710124130 [09:03:04]line Аи-92-К-5 [09:03:04]line 5.990 * 66.80 [09:03:04]line = 400.13 [09:03:04]line НДС 12% НСП 1% [09:03:04]line > о реализуемом товаре [09:03:04]line ОКРУГЛЕНИЕ: -0.13 [09:03:04]line ИТОГО: 400.00 [09:03:04]line Внесено: 400.00 [09:03:04]line СДАЧА: 0.00 [09:03:04]line НСП 1% : 3.54 [09:03:04]line НДС 12% : 42.49 [09:03:04]line Наличными: 400.00 [09:03:04]line Безнал.: 0.00 [09:03:04]line Место: АЗС № 91 "Партнер Нефть" [09:03:04]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [09:03:04]line СНО: Общий режим [09:03:04]line Чек 29 16.05.2024 09:03 [09:03:04]line Смена: 357 ФФД: 1.0 [09:03:04]line ЗНМ: 0300000119 [09:03:04]line РНМ: 0000000000091845 [09:03:04]line Версия ККМ: 001 [09:03:04]line ФМ: 0000000000871829 [09:03:04]line ФД: 67431 [09:03:04]line ФПД: 159879447062335 [09:03:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T090303&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67431&fm=159879447062335&tin=02508201610067®Number=0000000000091845&sum=40000 [09:03:04]OFD Sender: Processing packet 67431 [packets to send 35, broken 34] [09:03:04]ProducePacketName [09:03:04]name=ofd_packets/00067431 [09:03:04]OFD Sender: To server: pG, [09:03:04]CommunicateWithHost lk.salyk.kg:30040 [09:03:04]ConnectInit lk.salyk.kg [09:03:04]written 0, free lines is 4095 [09:03:04]Connected sock=10 [09: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 38 32 39 0F 01 00 00 61 7B 07 01 F7 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 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 17 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4D 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 99 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 1D 00 00 00 F4 03 04 00 C7 CB 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 67 07 01 00 35 04 06 00 91 68 D5 A6 27 3F 10 D9 D6 F9 5B 3F 02 5C [09: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 38 32 39 4F 00 00 00 67 BB 47 00 2F 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 38 32 39 10 04 04 00 67 07 01 00 F4 03 04 00 A2 73 45 66 B6 04 01 00 00 EB F1 44 17 80 3A C3 A7 [09:03:04]CommunicateWithHost err = 0 [09:03:04]CheckOFDResponse [09:03:04]1017 (14) - 77093643461234 [09:03:04]1041 (16) - 0000000000871829 [09:03:04]1040 (4) - 67431 [09:03:04]1012 (4) - 16.05.2024 02:46 [09:03:04]1206 (1) - 0 [09:03:04]OFD Sender: Remove packet 67431 [09:03:04]ProducePacketName [09:03:04]name=ofd_packets/00067431 [09:03:04]NVStorageDeleteData [09:03:05]Write to MH i2c: 01 00 00 1A 02 1C [09:03:05]Write i2c OK [09:03:05]MH_I2C_Read... [09:03:05]Read from MH i2c: 01 [09:03:05]MH_I2C_Read... [09:03:05]Read from MH i2c: 01 07 00 [09:03:05]MH_I2C_Read... [09:03:05]Read from MH i2c: 01 07 00 1A 02 00 00 00 00 00 CC 0C FB [09:03:05]RasterBufferAndPrint [09:03:05]line [09:03:05]line [09:03:05]line [09:03:05]line [09:03:05]line [09:03:05]written 0, free lines is 3283 [09:03:05]MH_Cut [09:03:05]Write to MH i2c: D1 01 00 21 02 01 F5 [09:03:05]Write i2c OK [09:03:05]MH_I2C_Read... [09:03:05]Read from MH i2c: D1 [09:03:05]MH_I2C_Read... [09:03:05]Read from MH i2c: D1 01 00 [09:03:05]MH_I2C_Read... [09:03:05]Read from MH i2c: D1 01 00 21 02 00 F4 [09:03:05]Write to MH i2c: 01 00 00 22 02 24 [09:03:05]Write i2c OK [09:03:05]MH_I2C_Read... [09:03:05]OFD Sender: No OFD packet to send [09:03:05]*** Cut start [09:03:05]*** Purtial cut [09:03:05]*** CUTSNS_PIN = 0 [09:03:06]*** Stage 1: CUTSNS_PIN = 1 [09:03:07]Read from MH i2c: 01 [09:03:07]MH_I2C_Read... [09:03:07]*** Stop cut motor [09:03:07]*** Cut end [09:03:07]Read from MH i2c: 01 07 00 [09:03:07]MH_I2C_Read... [09:03:07]Read from MH i2c: 01 07 00 22 02 00 00 00 00 00 FF 0F 39 [09:03:07]process_action close_receipt done [09:03:07]requested_data is exist [09:03:07]produce_requested_data [09:03:07]requested_item fm.sn is exist - process it [09:03:07]wFMCommunicate request_size=4 [09:03:07]MH_SAM_APDU [09:03:07]CAPDU: 80 11 00 00 [09:03:07]Write to MH i2c: E2 08 00 23 02 80 11 00 00 00 00 00 00 9F [09:03:07]Write i2c OK [09:03:07]MH_I2C_Read... [09:03:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:08]Read from MH i2c: E2 [09:03:08]MH_I2C_Read... [09:03:08]Read from MH i2c: E2 17 00 [09:03:08]MH_I2C_Read... [09:03:08]Read from MH i2c: E2 17 00 23 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F5 [09:03:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:03:08]wFMCommunicate OK [09:03:08]requested_item fd.num is exist - process it [09:03:08]SAM_PROTO_GetFieldsCounters [09:03:08]wFMCommunicate request_size=4 [09:03:08]MH_SAM_APDU [09:03:08]CAPDU: 80 13 00 00 [09:03:08]Write to MH i2c: E2 08 00 24 02 80 13 00 00 00 00 00 00 A2 [09:03:08]Write i2c OK [09:03:08]MH_I2C_Read... [09:03:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:03:08]Read from MH i2c: E2 [09:03:08]MH_I2C_Read... [09:03:08]Read from MH i2c: E2 62 00 [09:03:08]MH_I2C_Read... [09:03:08]Read from MH i2c: E2 62 00 24 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 67 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [09:03: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 67 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:03:08]wFMCommunicate OK [09:03:08]SAM_PROTO_GetFieldsCounters done [09:03:08]requested_item shift.num is exist - process it [09:03:08]requested_item shift.opened is exist - process it [09:03:08]req_shift_opened [09:03:08]FM_GetShiftState [09:03:08]SAM_PROTO_GetShiftState [09:03:08]wFMCommunicate request_size=4 [09:03:08]MH_SAM_APDU [09:03:08]CAPDU: 80 13 01 00 [09:03:08]Write to MH i2c: E2 08 00 25 02 80 13 01 00 00 00 00 00 A4 [09:03:08]Write i2c OK [09:03:08]MH_I2C_Read... [09:03:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:08]Read from MH i2c: E2 [09:03:08]MH_I2C_Read... [09:03:08]Read from MH i2c: E2 0E 00 [09:03:08]MH_I2C_Read... [09:03:08]Read from MH i2c: E2 0E 00 25 02 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 50 [09:03:08]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [09:03:08]wFMCommunicate OK [09:03:08]SAM_PROTO_GetShiftState done [09:03:08]FM_GetShiftState done [09:03:08]req_shift_opened done [09:03:08]requested_item shift.open_date is exist - process it [09:03:08]req_shift_open_date [09:03:08]req_shift_open_date done [09:03:08]produce_requested_data done [09:03:08]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67431,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [09:03:08]process_action_free close_receipt [09:03:08]json_value_free [09:03:08]json_value_free done [09:03:08]process_json_proto returns [09:03:08]Send response to host [09:03:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67431,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [09:03:08]free response buf [09:03:08]execute_script done [09:03:08]execute_script returns [09:03:08]free content buf [09:03:08]Sock 8.Close socket [09:03:08]Sock 8.Thread stoped [09:03:10]OFD Sender: No OFD packet to send [09:03:15]OFD Sender: No OFD packet to send [09:03:20]OFD Sender: No OFD packet to send [09:03:25]OFD Sender: No OFD packet to send [09:03:30]OFD Sender: No OFD packet to send [09:03:35]OFD Sender: No OFD packet to send [09:03:40]OFD Sender: No OFD packet to send [09:03:45]OFD Sender: No OFD packet to send [09:03:50]accept exits with 9 [09:03:50]New connection [09:03:50]New thread 3067460964 created [09:03:50]Thread 3067604324 joined [09:03:50]Waiting for new connection... [09:03:50] Sock 9.Parse request [09:03:50]Sock 9.Check first char [09:03:50]Sock 9.First char is OK [09:03:50]request: POST /json_proto HTTP/1.0 [09:03:50]Method: POST [09:03:50]URL: /json_proto [09:03:50]Method is POST - this is cgi request [09:03:50]url: /json_proto [09:03:50]query_string will be loaded in cgi processing [09:03:50]execute_cgi json_proto POST (null) [09:03:50]execute_cgi path=json_proto method=POST [09:03:50]POST find Content-Length [09:03:50]Host: 172.17.41.195:8080 [09:03:50]Content-Length: 679 [09:03:50]Content-Type: application/json [09:03:50] [09:03:50]POST finish read [09:03:50]Found Content-Length = 679 [09:03:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507436", "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" : 74.70, "quantity" : 40.170, "sum" : 3000.70, "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" ] } } [09:03:50]execute_script... [09:03: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)507436", "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" : 74.70, "quantity" : 40.170, "sum" : 3000.70, "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" ] } } [09:03:50]POST & json_proto [09:03:50]process_json_proto [09:03:50]json parsed OK: [09:03:50]protocol is kg_v1.0 [09:03:50]action value=close_receipt [09:03:50]process_action close_receipt [09:03:50]cmd_close_receipt [09:03:50]MH_GetDate [09:03:50]Write to MH i2c: F0 00 00 26 02 17 [09:03:50]Write i2c OK [09:03:50]MH_I2C_Read... [09:03:50]Read from MH i2c: F0 [09:03:50]MH_I2C_Read... [09:03:50]Read from MH i2c: F0 09 00 [09:03:50]MH_I2C_Read... [09:03:50]Read from MH i2c: F0 09 00 26 02 00 F7 CB 45 66 FC 21 6F 64 7D [09:03:50]GetLastDocTimeStamp 1715850183 [09:03:50]current date 1715850231 [09:03:50]FM_GetShiftState [09:03:50]SAM_PROTO_GetShiftState [09:03:50]wFMCommunicate request_size=4 [09:03:50]MH_SAM_APDU [09:03:50]CAPDU: 80 13 01 00 [09:03:50]Write to MH i2c: E2 08 00 27 02 80 13 01 00 00 00 00 00 A6 [09:03:50]Write i2c OK [09:03:50]MH_I2C_Read... [09:03:50]OFD Sender: No OFD packet to send [09:03:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:50]Read from MH i2c: E2 [09:03:50]MH_I2C_Read... [09:03:50]Read from MH i2c: E2 0E 00 [09:03:50]MH_I2C_Read... [09:03:50]Read from MH i2c: E2 0E 00 27 02 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 52 [09:03:50]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [09:03:50]wFMCommunicate OK [09:03:50]SAM_PROTO_GetShiftState done [09:03:50]FM_GetShiftState done [09:03:50]opened in 1715818916 [09:03:50]opened+sec_in_day 1715905316 [09:03:50]quantity*price = 300069 [09:03:50]sum+1 = 300071 [09:03:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 30 16.05.2024 09:03 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67432 ФПД: 45727674131911 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T090351&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67432&fm=45727674131911&tin=02508201610067®Number=0000000000091845&sum=300000 [09:03:51]StoreToDocumentArchive [09:03:51]shift 357 fd 67432 [09:03:51]save to /storage/0357/doc_00067432 [09:03:51]save last doc name /storage/0357/doc_00067432 to /storage/kkm_last_doc_name [09:03:51]save OK [09:03:51]Clear old archive folders... [09:03:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:03:51]tlvbuf is 00C954D0 [09:03:51]SAM_PROTO_ClearQueue [09:03:51]wFMCommunicate request_size=4 [09:03:51]MH_SAM_APDU [09:03:51]CAPDU: 80 09 00 00 [09:03:51]Write to MH i2c: E2 08 00 34 02 80 09 00 00 00 00 00 00 A8 [09:03:51]Write i2c OK [09:03:51]MH_I2C_Read... [09:03:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:03:51]Read from MH i2c: E2 [09:03:51]MH_I2C_Read... [09:03:51]Read from MH i2c: E2 03 00 [09:03:51]MH_I2C_Read... [09:03:51]Read from MH i2c: E2 03 00 34 02 00 90 00 AA [09:03:51]RAPDU: 90 00 [09:03:51]wFMCommunicate OK [09:03:51]SAM_PROTO_ClearQueue done [09:03:51]KKMCreateOFDPacket [09:03:51]OFDProtocolAddRootSTLVToBuf [09:03:51]FM_MakeSignedData [09:03:51]FM_MakeSignedData [09:03:51]SAM_PROTO_SignData [09:03:51]wFMCommunicate request_size=4 [09:03:51]MH_SAM_APDU [09:03:51]CAPDU: 80 0D 01 02 [09:03:51]Write to MH i2c: E2 08 00 35 02 80 0D 01 02 00 00 00 00 B0 [09:03:51]Write i2c OK [09:03:51]MH_I2C_Read... [09:03:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:03:51]Read from MH i2c: E2 [09:03:51]MH_I2C_Read... [09:03:51]Read from MH i2c: E2 03 00 [09:03:51]MH_I2C_Read... [09:03:51]Read from MH i2c: E2 03 00 35 02 00 90 00 AB [09:03:51]RAPDU: 90 00 [09:03:51]wFMCommunicate OK [09:03:51]wFMCommunicate request_size=255 [09:03:51]MH_SAM_APDU [09:03:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 26 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 7A 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 1E 00 00 00 F4 03 04 00 F7 CB 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 68 07 01 00 35 04 06 00 29 96 CD C5 [09:03:51]Write to MH i2c: E2 02 01 36 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 EA 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 26 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 7A 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 1E 00 00 00 F4 03 04 00 F7 CB 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 68 07 01 00 35 04 06 00 29 96 CD C5 00 00 A0 [09:03:51]Write i2c OK [09:03:51]MH_I2C_Read... [09:03:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:52]Read from MH i2c: E2 [09:03:52]MH_I2C_Read... [09:03:52]Read from MH i2c: E2 03 00 [09:03:52]MH_I2C_Read... [09:03:52]Read from MH i2c: E2 03 00 36 02 00 90 00 AC [09:03:52]RAPDU: 90 00 [09:03:52]wFMCommunicate OK [09:03:52]wFMCommunicate request_size=7 [09:03:52]MH_SAM_APDU [09:03:52]CAPDU: 80 0D 02 02 02 E5 C7 [09:03:52]Write to MH i2c: E2 0A 00 37 02 80 0D 02 02 02 00 E5 C7 00 00 63 [09:03:52]Write i2c OK [09:03:52]MH_I2C_Read... [09:03:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:52]Read from MH i2c: E2 [09:03:52]MH_I2C_Read... [09:03:52]Read from MH i2c: E2 03 00 [09:03:52]MH_I2C_Read... [09:03:52]Read from MH i2c: E2 03 00 37 02 00 90 00 AD [09:03:52]RAPDU: 90 00 [09:03:52]wFMCommunicate OK [09:03:52]wFMCommunicate request_size=4 [09:03:52]MH_SAM_APDU [09:03:52]CAPDU: 80 0D 03 02 [09:03:52]Write to MH i2c: E2 08 00 38 02 80 0D 03 02 00 00 00 00 B5 [09:03:52]Write i2c OK [09:03:52]MH_I2C_Read... [09:03:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:03:52]Read from MH i2c: E2 [09:03:52]MH_I2C_Read... [09:03:52]Read from MH i2c: E2 0B 00 [09:03:52]MH_I2C_Read... [09:03:52]Read from MH i2c: E2 0B 00 38 02 00 9A F5 69 02 55 5C AC D6 90 00 E3 [09:03:52]RAPDU: 9A F5 69 02 55 5C AC D6 90 00 [09:03:52]wFMCommunicate OK [09:03:52]SAM_PROTO_SignData done [09:03:52]FM_MakeSignedData done [09:03:52]CreateOFDProtocolMessage [09:03:52]wFMCommunicate request_size=4 [09:03:52]MH_SAM_APDU [09:03:52]CAPDU: 80 11 00 00 [09:03:52]Write to MH i2c: E2 08 00 39 02 80 11 00 00 00 00 00 00 B5 [09:03:52]Write i2c OK [09:03:52]MH_I2C_Read... [09:03:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:52]Read from MH i2c: E2 [09:03:52]MH_I2C_Read... [09:03:52]Read from MH i2c: E2 17 00 [09:03:52]MH_I2C_Read... [09:03:52]Read from MH i2c: E2 17 00 39 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0B [09:03:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:03:52]wFMCommunicate OK [09:03:52]CreateOFDProtocolMessage done [09:03:52]OFDSenderStorePacket 67432 [09:03:52]StoreOFDPacket docnum=67432 [09:03:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 02 53 04 01 E0 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 EA 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 26 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 7A 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 1E 00 00 00 F4 03 04 00 F7 CB 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 68 07 01 00 35 04 06 00 29 96 CD C5 E5 C7 9A F5 69 02 55 5C AC D6 [09:03:52]CheckFolder [09:03:52]dirname=/storage/ofd_packets [09:03:52]CheckFolder done [09:03:52]ProducePacketName [09:03:52]name=ofd_packets/00067432 [09:03:52]NVStorageSaveData ofd_packets/00067432 [09:03:52]File name is /storage/ofd_packets/00067432 [09:03:52]Write 298 bytes [09:03:52]NVStorageSaveData done [09:03:52]OFDSenderStorePacket done [09:03:52]KKMCreateOFDPacket done [09:03:52]NVStorageSaveData kkm_last_timestamp [09:03:52]File name is /storage/kkm_last_timestamp [09:03:52]Write 4 bytes [09:03:52]NVStorageSaveData done [09:03:52]ExternCall_PrintAddStr [09:03:52]wPrintStart [09:03:52]Write to MH i2c: 01 00 00 3A 02 3C [09:03:52]Write i2c OK [09:03:52]MH_I2C_Read... [09:03:52]Read from MH i2c: 01 [09:03:52]MH_I2C_Read... [09:03:52]Read from MH i2c: 01 07 00 [09:03:52]MH_I2C_Read... [09:03:52]Read from MH i2c: 01 07 00 3A 02 00 00 00 00 00 FF 0F 51 [09:03:52]RasterBufferAndPrint [09:03:52]line Счет N : (1)507436 [09:03:52]line ИНН: 02508201610067 [09:03:52]line Контрольно-Кассовый Чек [09:03:52]line ПРОДАЖА [09:03:52]line ТРК (МРК, ГНК) : 31 [09:03:52]line Товар: 2710194210 [09:03:52]line ДТ-К-5 [09:03:52]line 40.170 * 74.70 [09:03:52]line = 3000.70 [09:03:52]line НДС 12% НСП 1% [09:03:52]line > о реализуемом товаре [09:03:52]line ОКРУГЛЕНИЕ: -0.70 [09:03:52]line ИТОГО: 3000.00 [09:03:52]line Внесено: 3000.00 [09:03:52]line СДАЧА: 0.00 [09:03:52]line НСП 1% : 26.55 [09:03:52]line НДС 12% : 318.66 [09:03:52]line Наличными: 3000.00 [09:03:52]line Безнал.: 0.00 [09:03:52]line Место: АЗС № 91 "Партнер Нефть" [09:03:52]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [09:03:52]line СНО: Общий режим [09:03:52]line Чек 30 16.05.2024 09:03 [09:03:52]line Смена: 357 ФФД: 1.0 [09:03:52]line ЗНМ: 0300000119 [09:03:52]line РНМ: 0000000000091845 [09:03:52]line Версия ККМ: 001 [09:03:52]line ФМ: 0000000000871829 [09:03:52]line ФД: 67432 [09:03:52]line ФПД: 45727674131911 [09:03:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T090351&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67432&fm=45727674131911&tin=02508201610067®Number=0000000000091845&sum=300000 [09:03:52]OFD Sender: Processing packet 67432 [packets to send 35, broken 34] [09:03:52]ProducePacketName [09:03:52]name=ofd_packets/00067432 [09:03:52]OFD Sender: To server: pG, [09:03:52]CommunicateWithHost lk.salyk.kg:30040 [09:03:52]ConnectInit lk.salyk.kg [09:03:52]written 0, free lines is 4095 [09:03:52]Connected sock=10 [09:03: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 38 32 39 0C 01 00 00 02 53 04 01 E0 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 EA 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 26 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 7A 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 1E 00 00 00 F4 03 04 00 F7 CB 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 68 07 01 00 35 04 06 00 29 96 CD C5 E5 C7 9A F5 69 02 55 5C AC D6 [09:03:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 86 28 47 00 4D E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 68 07 01 00 F4 03 04 00 D2 73 45 66 B6 04 01 00 00 4D 51 E2 AB 57 4F 1C B2 [09:03:52]CommunicateWithHost err = 0 [09:03:52]CheckOFDResponse [09:03:52]1017 (14) - 77093643461234 [09:03:52]1041 (16) - 0000000000871829 [09:03:52]1040 (4) - 67432 [09:03:52]1012 (4) - 16.05.2024 02:47 [09:03:52]1206 (1) - 0 [09:03:52]OFD Sender: Remove packet 67432 [09:03:52]ProducePacketName [09:03:52]name=ofd_packets/00067432 [09:03:52]NVStorageDeleteData [09:03:52]Write to MH i2c: 01 00 00 64 02 66 [09:03:52]Write i2c OK [09:03:52]MH_I2C_Read... [09:03:52]Read from MH i2c: 01 [09:03:52]MH_I2C_Read... [09:03:52]Read from MH i2c: 01 07 00 [09:03:52]MH_I2C_Read... [09:03:52]Read from MH i2c: 01 07 00 64 02 00 00 00 00 00 BF 0C 38 [09:03:52]RasterBufferAndPrint [09:03:52]line [09:03:52]line [09:03:52]line [09:03:52]line [09:03:52]line [09:03:52]written 0, free lines is 3270 [09:03:52]MH_Cut [09:03:52]Write to MH i2c: D1 01 00 6B 02 01 3F [09:03:52]Write i2c OK [09:03:52]MH_I2C_Read... [09:03:52]Read from MH i2c: D1 [09:03:52]MH_I2C_Read... [09:03:52]Read from MH i2c: D1 01 00 [09:03:52]MH_I2C_Read... [09:03:52]Read from MH i2c: D1 01 00 6B 02 00 3E [09:03:52]Write to MH i2c: 01 00 00 6C 02 6E [09:03:52]Write i2c OK [09:03:52]MH_I2C_Read... [09:03:53]OFD Sender: No OFD packet to send [09:03:53]*** Cut start [09:03:53]*** Purtial cut [09:03:53]*** Stage 1: CUTSNS_PIN = 1 [09:03:54]Read from MH i2c: 01 [09:03:54]MH_I2C_Read... [09:03:54]*** Stop cut motor [09:03:54]*** Cut end [09:03:54]Read from MH i2c: 01 07 00 [09:03:54]MH_I2C_Read... [09:03:54]Read from MH i2c: 01 07 00 6C 02 00 00 00 00 00 FF 0F 83 [09:03:54]process_action close_receipt done [09:03:54]requested_data is exist [09:03:54]produce_requested_data [09:03:54]requested_item fm.sn is exist - process it [09:03:54]wFMCommunicate request_size=4 [09:03:54]MH_SAM_APDU [09:03:54]CAPDU: 80 11 00 00 [09:03:54]Write to MH i2c: E2 08 00 6D 02 80 11 00 00 00 00 00 00 E9 [09:03:54]Write i2c OK [09:03:54]MH_I2C_Read... [09:03:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:54]Read from MH i2c: E2 [09:03:54]MH_I2C_Read... [09:03:54]Read from MH i2c: E2 17 00 [09:03:54]MH_I2C_Read... [09:03:54]Read from MH i2c: E2 17 00 6D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3F [09:03:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:03:54]wFMCommunicate OK [09:03:54]requested_item fd.num is exist - process it [09:03:54]SAM_PROTO_GetFieldsCounters [09:03:54]wFMCommunicate request_size=4 [09:03:54]MH_SAM_APDU [09:03:54]CAPDU: 80 13 00 00 [09:03:54]Write to MH i2c: E2 08 00 6E 02 80 13 00 00 00 00 00 00 EC [09:03:54]Write i2c OK [09:03:54]MH_I2C_Read... [09:03:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:03:54]Read from MH i2c: E2 [09:03:54]MH_I2C_Read... [09:03:54]Read from MH i2c: E2 62 00 [09:03:54]MH_I2C_Read... [09:03:54]Read from MH i2c: E2 62 00 6E 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 68 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [09:03: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 68 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:03:54]wFMCommunicate OK [09:03:54]SAM_PROTO_GetFieldsCounters done [09:03:54]requested_item shift.num is exist - process it [09:03:54]requested_item shift.opened is exist - process it [09:03:54]req_shift_opened [09:03:54]FM_GetShiftState [09:03:54]SAM_PROTO_GetShiftState [09:03:54]wFMCommunicate request_size=4 [09:03:54]MH_SAM_APDU [09:03:54]CAPDU: 80 13 01 00 [09:03:54]Write to MH i2c: E2 08 00 6F 02 80 13 01 00 00 00 00 00 EE [09:03:54]Write i2c OK [09:03:54]MH_I2C_Read... [09:03:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:54]Read from MH i2c: E2 [09:03:54]MH_I2C_Read... [09:03:54]Read from MH i2c: E2 0E 00 [09:03:54]MH_I2C_Read... [09:03:54]Read from MH i2c: E2 0E 00 6F 02 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 9A [09:03:54]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [09:03:54]wFMCommunicate OK [09:03:54]SAM_PROTO_GetShiftState done [09:03:54]FM_GetShiftState done [09:03:54]req_shift_opened done [09:03:54]requested_item shift.open_date is exist - process it [09:03:54]req_shift_open_date [09:03:54]req_shift_open_date done [09:03:54]produce_requested_data done [09:03:54]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67432,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [09:03:54]process_action_free close_receipt [09:03:54]json_value_free [09:03:54]json_value_free done [09:03:54]process_json_proto returns [09:03:54]Send response to host [09:03:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67432,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [09:03:54]free response buf [09:03:54]execute_script done [09:03:54]execute_script returns [09:03:54]free content buf [09:03:54]Sock 9.Close socket [09:03:54]Sock 9.Thread stoped [09:03:58]OFD Sender: No OFD packet to send [09:04:03]OFD Sender: No OFD packet to send [09:04:08]OFD Sender: No OFD packet to send [09:04:13]OFD Sender: No OFD packet to send [09:04:18]OFD Sender: No OFD packet to send [09:04:23]OFD Sender: No OFD packet to send [09:04:28]OFD Sender: No OFD packet to send [09:04:33]OFD Sender: No OFD packet to send [09:04:36]accept exits with 8 [09:04:36]New connection [09:04:36]New thread 3067604324 created [09:04:36]Thread 3067460964 joined [09:04:36]Waiting for new connection... [09:04:36] Sock 8.Parse request [09:04:36]Sock 8.Check first char [09:04:36]Sock 8.First char is OK [09:04:36]request: POST /json_proto HTTP/1.0 [09:04:36]Method: POST [09:04:36]URL: /json_proto [09:04:36]Method is POST - this is cgi request [09:04:36]url: /json_proto [09:04:36]query_string will be loaded in cgi processing [09:04:36]execute_cgi json_proto POST (null) [09:04:36]execute_cgi path=json_proto method=POST [09:04:36]POST find Content-Length [09:04:36]Host: 172.17.41.195:8080 [09:04:36]Content-Length: 1212 [09:04:36]Content-Type: application/json [09:04:36] [09:04:36]POST finish read [09:04:36]Found Content-Length = 1212 [09:04:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507435\u000A16.05.2024 08:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 1002.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:04:36]execute_script... [09:04:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507435\u000A16.05.2024 08:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 1002.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:04:36]POST & json_proto [09:04:36]process_json_proto [09:04:36]json parsed OK: [09:04:36]protocol is kg_v1.0 [09:04:36]action value=print_text [09:04:36]process_action print_text [09:04:36]cmd_print_text [09:04:36]ExternCall_PrintAddStr [09:04:36]wPrintStart [09:04:36]Write to MH i2c: 01 00 00 70 02 72 [09:04:36]Write i2c OK [09:04:36]MH_I2C_Read... [09:04:36]Read from MH i2c: 01 [09:04:36]MH_I2C_Read... [09:04:36]Read from MH i2c: 01 07 00 [09:04:36]MH_I2C_Read... [09:04:36]Read from MH i2c: 01 07 00 70 02 00 00 00 00 00 FF 0F 87 [09:04:36]RasterBufferAndPrint [09:04:36]line *****ТОВАРНЫЙ ЧЕК***** [09:04:36]line АЗС-91 [09:04:36]line Партнер нефть [09:04:36]line 02508201610067 [09:04:36]line Кассир : Пайзулдаева А. [09:04:36]line Счет N : (1)507435 [09:04:36]line 16.05.2024 08:47 [09:04:36]line ПРОДАЖА [09:04:36]line ТРК (МРК, ГНК): 43 [09:04:36]line Вид ГСМ : 2710124130 [09:04:36]line Аи-92-К-5 [09:04:36]line 15.000 x 66.80 [09:04:36]line ИТОГ: 1002.00 [09:04:36]line Тип оплаты: Талоны: Топливная Карта [09:04:36]line 02750 [09:04:36]line ______________________ [09:04:36]line (подпись) [09:04:36]written 0, free lines is 4095 [09:04:37]Write to MH i2c: 01 00 00 84 02 86 [09:04:37]Write i2c OK [09:04:37]MH_I2C_Read... [09:04:37]Read from MH i2c: 01 [09:04:37]MH_I2C_Read... [09:04:37]Read from MH i2c: 01 07 00 [09:04:37]MH_I2C_Read... [09:04:37]Read from MH i2c: 01 07 00 84 02 00 00 00 00 00 13 0E AE [09:04:37]RasterBufferAndPrint [09:04:37]line [09:04:37]line [09:04:37]line [09:04:37]line [09:04:37]line [09:04:37]written 0, free lines is 3604 [09:04:37]MH_Cut [09:04:37]Write to MH i2c: D1 01 00 8B 02 01 5F [09:04:37]Write i2c OK [09:04:37]MH_I2C_Read... [09:04:37]Read from MH i2c: D1 [09:04:37]MH_I2C_Read... [09:04:37]Read from MH i2c: D1 01 00 [09:04:37]MH_I2C_Read... [09:04:37]Read from MH i2c: D1 01 00 8B 02 00 5E [09:04:37]Write to MH i2c: 01 00 00 8C 02 8E [09:04:37]Write i2c OK [09:04:37]MH_I2C_Read... [09:04:37]*** Cut start [09:04:37]*** Purtial cut [09:04:37]*** CUTSNS_PIN = 0 [09:04:37]*** Stage 1: CUTSNS_PIN = 1 [09:04:38]OFD Sender: No OFD packet to send [09:04:39]Read from MH i2c: 01 [09:04:39]MH_I2C_Read... [09:04:39]Read from MH i2c: 01 07 00 [09:04:39]MH_I2C_Read... [09:04:39]*** Stop cut motor [09:04:39]*** Cut end [09:04:39]Read from MH i2c: 01 07 00 8C 02 00 00 00 00 00 FF 0F A3 [09:04:39]process_action print_text done [09:04:39]requested_data is exist [09:04:39]produce_requested_data [09:04:39]requested_item fm.sn is exist - process it [09:04:39]wFMCommunicate request_size=4 [09:04:39]MH_SAM_APDU [09:04:39]CAPDU: 80 11 00 00 [09:04:39]Write to MH i2c: E2 08 00 8D 02 80 11 00 00 00 00 00 00 09 [09:04:39]Write i2c OK [09:04:39]MH_I2C_Read... [09:04:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:39]Read from MH i2c: E2 [09:04:39]MH_I2C_Read... [09:04:39]Read from MH i2c: E2 17 00 [09:04:39]MH_I2C_Read... [09:04:39]Read from MH i2c: E2 17 00 8D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 5F [09:04:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:04:39]wFMCommunicate OK [09:04:39]requested_item fd.num is exist - process it [09:04:39]SAM_PROTO_GetFieldsCounters [09:04:39]wFMCommunicate request_size=4 [09:04:39]MH_SAM_APDU [09:04:39]CAPDU: 80 13 00 00 [09:04:39]Write to MH i2c: E2 08 00 8E 02 80 13 00 00 00 00 00 00 0C [09:04:39]Write i2c OK [09:04:39]MH_I2C_Read... [09:04:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:04:39]Read from MH i2c: E2 [09:04:39]MH_I2C_Read... [09:04:39]Read from MH i2c: E2 62 00 [09:04:39]MH_I2C_Read... [09:04:39]Read from MH i2c: E2 62 00 8E 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 68 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [09:04: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 68 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:04:39]wFMCommunicate OK [09:04:39]SAM_PROTO_GetFieldsCounters done [09:04:39]requested_item shift.num is exist - process it [09:04:39]requested_item shift.opened is exist - process it [09:04:39]req_shift_opened [09:04:39]FM_GetShiftState [09:04:39]SAM_PROTO_GetShiftState [09:04:39]wFMCommunicate request_size=4 [09:04:39]MH_SAM_APDU [09:04:39]CAPDU: 80 13 01 00 [09:04:39]Write to MH i2c: E2 08 00 8F 02 80 13 01 00 00 00 00 00 0E [09:04:39]Write i2c OK [09:04:39]MH_I2C_Read... [09:04:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:39]Read from MH i2c: E2 [09:04:39]MH_I2C_Read... [09:04:39]Read from MH i2c: E2 0E 00 [09:04:39]MH_I2C_Read... [09:04:39]Read from MH i2c: E2 0E 00 8F 02 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 BA [09:04:39]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [09:04:39]wFMCommunicate OK [09:04:39]SAM_PROTO_GetShiftState done [09:04:39]FM_GetShiftState done [09:04:39]req_shift_opened done [09:04:39]requested_item shift.open_date is exist - process it [09:04:39]req_shift_open_date [09:04:39]req_shift_open_date done [09:04:39]produce_requested_data done [09:04:39]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67432,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [09:04:39]process_action_free print_text [09:04:39]json_value_free [09:04:39]json_value_free done [09:04:39]process_json_proto returns [09:04:39]Send response to host [09:04:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67432,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [09:04:39]free response buf [09:04:39]execute_script done [09:04:39]execute_script returns [09:04:39]free content buf [09:04:39]Sock 8.Close socket [09:04:39]Sock 8.Thread stoped [09:04:43]OFD Sender: No OFD packet to send [09:04:48]OFD Sender: No OFD packet to send [09:04:53]OFD Sender: No OFD packet to send [09:04:58]OFD Sender: No OFD packet to send [09:05:03]OFD Sender: No OFD packet to send [09:05:08]OFD Sender: No OFD packet to send [09:05:13]OFD Sender: No OFD packet to send [09:05:18]OFD Sender: No OFD packet to send [09:05:23]OFD Sender: No OFD packet to send [09:05:28]OFD Sender: No OFD packet to send [09:05:33]OFD Sender: No OFD packet to send [09:05:38]OFD Sender: No OFD packet to send [09:05:43]OFD Sender: No OFD packet to send [09:05:48]OFD Sender: No OFD packet to send [09:05:53]OFD Sender: No OFD packet to send [09:05:58]OFD Sender: No OFD packet to send [09:06:03]OFD Sender: No OFD packet to send [09:06:08]OFD Sender: No OFD packet to send [09:06:13]OFD Sender: No OFD packet to send [09:06:18]OFD Sender: No OFD packet to send [09:06:20]accept exits with 10 [09:06:20]New connection [09:06:20]New thread 3067460964 created [09:06:20]Thread 3067604324 joined [09:06:20]Waiting for new connection... [09:06:20] Sock 10.Parse request [09:06:20]Sock 10.Check first char [09:06:20]Sock 10.First char is OK [09:06:20]request: POST /json_proto HTTP/1.0 [09:06:20]Method: POST [09:06:20]URL: /json_proto [09:06:20]Method is POST - this is cgi request [09:06:20]url: /json_proto [09:06:20]query_string will be loaded in cgi processing [09:06:20]execute_cgi json_proto POST (null) [09:06:20]execute_cgi path=json_proto method=POST [09:06:20]POST find Content-Length [09:06:20]Host: 172.17.41.195:8080 [09:06:20]Content-Length: 1208 [09:06:20]Content-Type: application/json [09:06:20] [09:06:20]POST finish read [09:06:20]Found Content-Length = 1208 [09:06:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507438\u000A16.05.2024 08:48\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 971.10\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:20]execute_script... [09:06:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507438\u000A16.05.2024 08:48\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 971.10\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:20]POST & json_proto [09:06:20]process_json_proto [09:06:20]json parsed OK: [09:06:20]protocol is kg_v1.0 [09:06:20]action value=print_text [09:06:20]process_action print_text [09:06:20]cmd_print_text [09:06:20]ExternCall_PrintAddStr [09:06:20]wPrintStart [09:06:20]Write to MH i2c: 01 00 00 90 02 92 [09:06:20]Write i2c OK [09:06:20]MH_I2C_Read... [09:06:20]Read from MH i2c: 01 [09:06:20]MH_I2C_Read... [09:06:20]Read from MH i2c: 01 07 00 [09:06:20]MH_I2C_Read... [09:06:20]Read from MH i2c: 01 07 00 90 02 00 00 00 00 00 FF 0F A7 [09:06:20]RasterBufferAndPrint [09:06:20]line *****ТОВАРНЫЙ ЧЕК***** [09:06:20]line АЗС-91 [09:06:20]line Партнер нефть [09:06:20]line 02508201610067 [09:06:20]line Кассир : Пайзулдаева А. [09:06:20]line Счет N : (1)507438 [09:06:20]line 16.05.2024 08:48 [09:06:20]line ПРОДАЖА [09:06:20]line ТРК (МРК, ГНК): 11 [09:06:20]line Вид ГСМ : 2710194210 [09:06:20]line ДТ-К-5 [09:06:20]line 13.000 x 74.70 [09:06:20]line ИТОГ: 971.10 [09:06:20]line Тип оплаты: Талоны: Топливная Карта [09:06:20]line 02750 [09:06:20]line ______________________ [09:06:20]line (подпись) [09:06:20]written 0, free lines is 4095 [09:06:20]Write to MH i2c: 01 00 00 A4 02 A6 [09:06:20]Write i2c OK [09:06:20]MH_I2C_Read... [09:06:20]Read from MH i2c: 01 [09:06:20]MH_I2C_Read... [09:06:20]Read from MH i2c: 01 07 00 [09:06:20]MH_I2C_Read... [09:06:20]Read from MH i2c: 01 07 00 A4 02 00 00 00 00 00 0E 0E C9 [09:06:20]RasterBufferAndPrint [09:06:20]line [09:06:20]line [09:06:20]line [09:06:20]line [09:06:20]line [09:06:20]written 0, free lines is 3600 [09:06:20]MH_Cut [09:06:20]Write to MH i2c: D1 01 00 AB 02 01 7F [09:06:20]Write i2c OK [09:06:20]MH_I2C_Read... [09:06:20]Read from MH i2c: D1 [09:06:20]MH_I2C_Read... [09:06:20]Read from MH i2c: D1 01 00 [09:06:20]MH_I2C_Read... [09:06:20]Read from MH i2c: D1 01 00 AB 02 00 7E [09:06:20]Write to MH i2c: 01 00 00 AC 02 AE [09:06:20]Write i2c OK [09:06:20]MH_I2C_Read... [09:06:20]*** Cut start [09:06:20]*** Purtial cut [09:06:20]*** Stage 1: CUTSNS_PIN = 1 [09:06:21]Read from MH i2c: 01 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: 01 07 00 [09:06:21]MH_I2C_Read... [09:06:21]*** Stop cut motor [09:06:21]*** Cut end [09:06:21]Read from MH i2c: 01 07 00 AC 02 00 00 00 00 00 FF 0F C3 [09:06:21]process_action print_text done [09:06:21]requested_data is exist [09:06:21]produce_requested_data [09:06:21]requested_item fm.sn is exist - process it [09:06:21]wFMCommunicate request_size=4 [09:06:21]MH_SAM_APDU [09:06:21]CAPDU: 80 11 00 00 [09:06:21]Write to MH i2c: E2 08 00 AD 02 80 11 00 00 00 00 00 00 29 [09:06:21]Write i2c OK [09:06:21]MH_I2C_Read... [09:06:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:21]Read from MH i2c: E2 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: E2 17 00 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: E2 17 00 AD 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7F [09:06:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:06:21]wFMCommunicate OK [09:06:21]requested_item fd.num is exist - process it [09:06:21]SAM_PROTO_GetFieldsCounters [09:06:21]wFMCommunicate request_size=4 [09:06:21]MH_SAM_APDU [09:06:21]CAPDU: 80 13 00 00 [09:06:21]Write to MH i2c: E2 08 00 AE 02 80 13 00 00 00 00 00 00 2C [09:06:21]Write i2c OK [09:06:21]MH_I2C_Read... [09:06:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:06:21]Read from MH i2c: E2 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: E2 62 00 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: E2 62 00 AE 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 68 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [09:06: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 68 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:06:21]wFMCommunicate OK [09:06:21]SAM_PROTO_GetFieldsCounters done [09:06:21]requested_item shift.num is exist - process it [09:06:21]requested_item shift.opened is exist - process it [09:06:21]req_shift_opened [09:06:21]FM_GetShiftState [09:06:21]SAM_PROTO_GetShiftState [09:06:21]wFMCommunicate request_size=4 [09:06:21]MH_SAM_APDU [09:06:21]CAPDU: 80 13 01 00 [09:06:21]Write to MH i2c: E2 08 00 AF 02 80 13 01 00 00 00 00 00 2E [09:06:21]Write i2c OK [09:06:21]MH_I2C_Read... [09:06:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:21]Read from MH i2c: E2 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: E2 0E 00 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: E2 0E 00 AF 02 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 DA [09:06:21]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [09:06:21]wFMCommunicate OK [09:06:21]SAM_PROTO_GetShiftState done [09:06:21]FM_GetShiftState done [09:06:21]req_shift_opened done [09:06:21]requested_item shift.open_date is exist - process it [09:06:21]req_shift_open_date [09:06:21]req_shift_open_date done [09:06:21]produce_requested_data done [09:06:21]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67432,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [09:06:21]process_action_free print_text [09:06:21]json_value_free [09:06:21]json_value_free done [09:06:21]process_json_proto returns [09:06:21]Send response to host [09:06:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67432,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [09:06:21]free response buf [09:06:21]execute_script done [09:06:21]execute_script returns [09:06:21]free content buf [09:06:21]Sock 10.Close socket [09:06:21]Sock 10.Thread stoped [09:06:23]OFD Sender: No OFD packet to send [09:06:28]OFD Sender: No OFD packet to send [09:06:33]OFD Sender: No OFD packet to send [09:06:38]OFD Sender: No OFD packet to send [09:06:43]OFD Sender: No OFD packet to send [09:06:48]OFD Sender: No OFD packet to send [09:06:53]OFD Sender: No OFD packet to send [09:06:58]OFD Sender: No OFD packet to send [09:07:03]OFD Sender: No OFD packet to send [09:07:08]OFD Sender: No OFD packet to send [09:07:13]OFD Sender: No OFD packet to send [09:07:18]OFD Sender: No OFD packet to send [09:07:23]OFD Sender: No OFD packet to send [09:07:28]OFD Sender: No OFD packet to send [09:07:33]OFD Sender: No OFD packet to send [09:07:38]OFD Sender: No OFD packet to send [09:07:43]OFD Sender: No OFD packet to send [09:07:48]OFD Sender: No OFD packet to send [09:07:53]OFD Sender: No OFD packet to send [09:07:57]accept exits with 8 [09:07:57]New connection [09:07:57]New thread 3067604324 created [09:07:57]Thread 3067460964 joined [09:07:57]Waiting for new connection... [09:07:57] Sock 8.Parse request [09:07:57]Sock 8.Check first char [09:07:57]Sock 8.First char is OK [09:07:57]request: POST /json_proto HTTP/1.0 [09:07:57]Method: POST [09:07:57]URL: /json_proto [09:07:57]Method is POST - this is cgi request [09:07:57]url: /json_proto [09:07:57]query_string will be loaded in cgi processing [09:07:57]execute_cgi json_proto POST (null) [09:07:57]execute_cgi path=json_proto method=POST [09:07:57]POST find Content-Length [09:07:57]Host: 172.17.41.195:8080 [09:07:57]Content-Length: 1208 [09:07:57]Content-Type: application/json [09:07:57] [09:07:57]POST finish read [09:07:57]Found Content-Length = 1208 [09:07:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507440\u000A16.05.2024 08:50\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.710 x 74.70\u000A\u0418\u0422\u041E\u0413: 800.04\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:57]execute_script... [09:07:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507440\u000A16.05.2024 08:50\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.710 x 74.70\u000A\u0418\u0422\u041E\u0413: 800.04\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:57]POST & json_proto [09:07:57]process_json_proto [09:07:57]json parsed OK: [09:07:57]protocol is kg_v1.0 [09:07:57]action value=print_text [09:07:57]process_action print_text [09:07:57]cmd_print_text [09:07:57]ExternCall_PrintAddStr [09:07:57]wPrintStart [09:07:57]Write to MH i2c: 01 00 00 B0 02 B2 [09:07:57]Write i2c OK [09:07:57]MH_I2C_Read... [09:07:57]Read from MH i2c: 01 [09:07:57]MH_I2C_Read... [09:07:57]Read from MH i2c: 01 07 00 [09:07:57]MH_I2C_Read... [09:07:57]Read from MH i2c: 01 07 00 B0 02 00 00 00 00 00 FF 0F C7 [09:07:57]RasterBufferAndPrint [09:07:57]line *****ТОВАРНЫЙ ЧЕК***** [09:07:57]line АЗС-91 [09:07:57]line Партнер нефть [09:07:57]line 02508201610067 [09:07:57]line Кассир : Пайзулдаева А. [09:07:57]line Счет N : (1)507440 [09:07:57]line 16.05.2024 08:50 [09:07:57]line ПРОДАЖА [09:07:57]line ТРК (МРК, ГНК): 31 [09:07:57]line Вид ГСМ : 2710194210 [09:07:57]line ДТ-К-5 [09:07:57]line 10.710 x 74.70 [09:07:57]line ИТОГ: 800.04 [09:07:57]line Тип оплаты: Талоны: Топливная Карта [09:07:57]line 02750 [09:07:57]line ______________________ [09:07:57]line (подпись) [09:07:57]written 0, free lines is 4095 [09:07:57]Write to MH i2c: 01 00 00 C4 02 C6 [09:07:57]Write i2c OK [09:07:57]MH_I2C_Read... [09:07:57]Read from MH i2c: 01 [09:07:57]MH_I2C_Read... [09:07:57]Read from MH i2c: 01 07 00 [09:07:57]MH_I2C_Read... [09:07:57]Read from MH i2c: 01 07 00 C4 02 00 00 00 00 00 0E 0E E9 [09:07:57]RasterBufferAndPrint [09:07:57]line [09:07:57]line [09:07:57]line [09:07:57]line [09:07:57]line [09:07:57]written 0, free lines is 3600 [09:07:58]MH_Cut [09:07:58]Write to MH i2c: D1 01 00 CB 02 01 9F [09:07:58]Write i2c OK [09:07:58]MH_I2C_Read... [09:07:58]Read from MH i2c: D1 [09:07:58]MH_I2C_Read... [09:07:58]Read from MH i2c: D1 01 00 [09:07:58]MH_I2C_Read... [09:07:58]Read from MH i2c: D1 01 00 CB 02 00 9E [09:07:58]Write to MH i2c: 01 00 00 CC 02 CE [09:07:58]Write i2c OK [09:07:58]MH_I2C_Read... [09:07:58]*** Cut start [09:07:58]*** Purtial cut [09:07:58]*** CUTSNS_PIN = 0 [09:07:58]OFD Sender: No OFD packet to send [09:07:58]*** Stage 1: CUTSNS_PIN = 1 [09:08:00]Read from MH i2c: 01 [09:08:00]MH_I2C_Read... [09:08:00]Read from MH i2c: 01 07 00 [09:08:00]MH_I2C_Read... [09:08:00]*** Stop cut motor [09:08:00]*** Cut end [09:08:00]Read from MH i2c: 01 07 00 CC 02 00 00 00 00 00 FF 0F E3 [09:08:00]process_action print_text done [09:08:00]requested_data is exist [09:08:00]produce_requested_data [09:08:00]requested_item fm.sn is exist - process it [09:08:00]wFMCommunicate request_size=4 [09:08:00]MH_SAM_APDU [09:08:00]CAPDU: 80 11 00 00 [09:08:00]Write to MH i2c: E2 08 00 CD 02 80 11 00 00 00 00 00 00 49 [09:08:00]Write i2c OK [09:08:00]MH_I2C_Read... [09:08:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:00]Read from MH i2c: E2 [09:08:00]MH_I2C_Read... [09:08:00]Read from MH i2c: E2 17 00 [09:08:00]MH_I2C_Read... [09:08:00]Read from MH i2c: E2 17 00 CD 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 9F [09:08:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:08:00]wFMCommunicate OK [09:08:00]requested_item fd.num is exist - process it [09:08:00]SAM_PROTO_GetFieldsCounters [09:08:00]wFMCommunicate request_size=4 [09:08:00]MH_SAM_APDU [09:08:00]CAPDU: 80 13 00 00 [09:08:00]Write to MH i2c: E2 08 00 CE 02 80 13 00 00 00 00 00 00 4C [09:08:00]Write i2c OK [09:08:00]MH_I2C_Read... [09:08:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:00]Read from MH i2c: E2 [09:08:00]MH_I2C_Read... [09:08:00]Read from MH i2c: E2 62 00 [09:08:00]MH_I2C_Read... [09:08:00]Read from MH i2c: E2 62 00 CE 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 68 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [09:08: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 68 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:08:00]wFMCommunicate OK [09:08:00]SAM_PROTO_GetFieldsCounters done [09:08:00]requested_item shift.num is exist - process it [09:08:00]requested_item shift.opened is exist - process it [09:08:00]req_shift_opened [09:08:00]FM_GetShiftState [09:08:00]SAM_PROTO_GetShiftState [09:08:00]wFMCommunicate request_size=4 [09:08:00]MH_SAM_APDU [09:08:00]CAPDU: 80 13 01 00 [09:08:00]Write to MH i2c: E2 08 00 CF 02 80 13 01 00 00 00 00 00 4E [09:08:00]Write i2c OK [09:08:00]MH_I2C_Read... [09:08:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:00]Read from MH i2c: E2 [09:08:00]MH_I2C_Read... [09:08:00]Read from MH i2c: E2 0E 00 [09:08:00]MH_I2C_Read... [09:08:00]Read from MH i2c: E2 0E 00 CF 02 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 FA [09:08:00]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [09:08:00]wFMCommunicate OK [09:08:00]SAM_PROTO_GetShiftState done [09:08:00]FM_GetShiftState done [09:08:00]req_shift_opened done [09:08:00]requested_item shift.open_date is exist - process it [09:08:00]req_shift_open_date [09:08:00]req_shift_open_date done [09:08:00]produce_requested_data done [09:08:00]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67432,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [09:08:00]process_action_free print_text [09:08:00]json_value_free [09:08:00]json_value_free done [09:08:00]process_json_proto returns [09:08:00]Send response to host [09:08:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67432,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [09:08:00]free response buf [09:08:00]execute_script done [09:08:00]execute_script returns [09:08:00]free content buf [09:08:00]Sock 8.Close socket [09:08:00]Sock 8.Thread stoped [09:08:03]OFD Sender: No OFD packet to send [09:08:04]accept exits with 9 [09:08:04]New connection [09:08:04]New thread 3067460964 created [09:08:04]Thread 3067604324 joined [09:08:04]Waiting for new connection... [09:08:04] Sock 9.Parse request [09:08:04]Sock 9.Check first char [09:08:04]Sock 9.First char is OK [09:08:04]request: POST /json_proto HTTP/1.0 [09:08:04]Method: POST [09:08:04]URL: /json_proto [09:08:04]Method is POST - this is cgi request [09:08:04]url: /json_proto [09:08:04]query_string will be loaded in cgi processing [09:08:04]execute_cgi json_proto POST (null) [09:08:04]execute_cgi path=json_proto method=POST [09:08:04]POST find Content-Length [09:08:04]Host: 172.17.41.195:8080 [09:08:04]Content-Length: 1209 [09:08:04]Content-Type: application/json [09:08:04] [09:08:04]POST finish read [09:08:04]Found Content-Length = 1209 [09:08:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507439\u000A16.05.2024 08:50\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 29.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2166.30\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:04]execute_script... [09:08:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507439\u000A16.05.2024 08:50\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 29.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2166.30\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:04]POST & json_proto [09:08:04]process_json_proto [09:08:04]json parsed OK: [09:08:04]protocol is kg_v1.0 [09:08:04]action value=print_text [09:08:04]process_action print_text [09:08:04]cmd_print_text [09:08:04]ExternCall_PrintAddStr [09:08:04]wPrintStart [09:08:04]Write to MH i2c: 01 00 00 D0 02 D2 [09:08:04]Write i2c OK [09:08:04]MH_I2C_Read... [09:08:04]Read from MH i2c: 01 [09:08:04]MH_I2C_Read... [09:08:04]Read from MH i2c: 01 07 00 [09:08:04]MH_I2C_Read... [09:08:04]Read from MH i2c: 01 07 00 D0 02 00 00 00 00 00 FF 0F E7 [09:08:04]RasterBufferAndPrint [09:08:04]line *****ТОВАРНЫЙ ЧЕК***** [09:08:04]line АЗС-91 [09:08:04]line Партнер нефть [09:08:04]line 02508201610067 [09:08:04]line Кассир : Пайзулдаева А. [09:08:04]line Счет N : (1)507439 [09:08:04]line 16.05.2024 08:50 [09:08:04]line ПРОДАЖА [09:08:04]line ТРК (МРК, ГНК): 41 [09:08:04]line Вид ГСМ : 2710194210 [09:08:04]line ДТ-К-5 [09:08:04]line 29.000 x 74.70 [09:08:04]line ИТОГ: 2166.30 [09:08:04]line Тип оплаты: Талоны: Топливная Карта [09:08:04]line 02750 [09:08:04]line ______________________ [09:08:04]line (подпись) [09:08:04]written 0, free lines is 4095 [09:08:04]Write to MH i2c: 01 00 00 E4 02 E6 [09:08:04]Write i2c OK [09:08:04]MH_I2C_Read... [09:08:04]Read from MH i2c: 01 [09:08:04]MH_I2C_Read... [09:08:04]Read from MH i2c: 01 07 00 [09:08:04]MH_I2C_Read... [09:08:04]Read from MH i2c: 01 07 00 E4 02 00 00 00 00 00 10 0E 0B [09:08:04]RasterBufferAndPrint [09:08:04]line [09:08:04]line [09:08:04]line [09:08:04]line [09:08:04]line [09:08:04]written 0, free lines is 3602 [09:08:04]MH_Cut [09:08:04]Write to MH i2c: D1 01 00 EB 02 01 BF [09:08:04]Write i2c OK [09:08:04]MH_I2C_Read... [09:08:04]Read from MH i2c: D1 [09:08:04]MH_I2C_Read... [09:08:04]Read from MH i2c: D1 01 00 [09:08:04]MH_I2C_Read... [09:08:04]Read from MH i2c: D1 01 00 EB 02 00 BE [09:08:04]Write to MH i2c: 01 00 00 EC 02 EE [09:08:04]Write i2c OK [09:08:04]MH_I2C_Read... [09:08:04]*** Cut start [09:08:04]*** Purtial cut [09:08:04]*** Stage 1: CUTSNS_PIN = 1 [09:08:05]Read from MH i2c: 01 [09:08:05]MH_I2C_Read... [09:08:05]Read from MH i2c: 01 07 00 [09:08:05]MH_I2C_Read... [09:08:05]*** Stop cut motor [09:08:05]*** Cut end [09:08:05]Read from MH i2c: 01 07 00 EC 02 00 00 00 00 00 FF 0F 03 [09:08:05]process_action print_text done [09:08:05]requested_data is exist [09:08:05]produce_requested_data [09:08:05]requested_item fm.sn is exist - process it [09:08:05]wFMCommunicate request_size=4 [09:08:05]MH_SAM_APDU [09:08:05]CAPDU: 80 11 00 00 [09:08:05]Write to MH i2c: E2 08 00 ED 02 80 11 00 00 00 00 00 00 69 [09:08:05]Write i2c OK [09:08:05]MH_I2C_Read... [09:08:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:05]Read from MH i2c: E2 [09:08:05]MH_I2C_Read... [09:08:05]Read from MH i2c: E2 17 00 [09:08:05]MH_I2C_Read... [09:08:05]Read from MH i2c: E2 17 00 ED 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BF [09:08:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:08:05]wFMCommunicate OK [09:08:05]requested_item fd.num is exist - process it [09:08:05]SAM_PROTO_GetFieldsCounters [09:08:05]wFMCommunicate request_size=4 [09:08:05]MH_SAM_APDU [09:08:05]CAPDU: 80 13 00 00 [09:08:05]Write to MH i2c: E2 08 00 EE 02 80 13 00 00 00 00 00 00 6C [09:08:05]Write i2c OK [09:08:05]MH_I2C_Read... [09:08:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:05]Read from MH i2c: E2 [09:08:05]MH_I2C_Read... [09:08:05]Read from MH i2c: E2 62 00 [09:08:05]MH_I2C_Read... [09:08:05]Read from MH i2c: E2 62 00 EE 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 68 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [09:08: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 68 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:08:05]wFMCommunicate OK [09:08:05]SAM_PROTO_GetFieldsCounters done [09:08:05]requested_item shift.num is exist - process it [09:08:05]requested_item shift.opened is exist - process it [09:08:05]req_shift_opened [09:08:05]FM_GetShiftState [09:08:05]SAM_PROTO_GetShiftState [09:08:05]wFMCommunicate request_size=4 [09:08:05]MH_SAM_APDU [09:08:05]CAPDU: 80 13 01 00 [09:08:05]Write to MH i2c: E2 08 00 EF 02 80 13 01 00 00 00 00 00 6E [09:08:05]Write i2c OK [09:08:05]MH_I2C_Read... [09:08:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:05]Read from MH i2c: E2 [09:08:05]MH_I2C_Read... [09:08:05]Read from MH i2c: E2 0E 00 [09:08:05]MH_I2C_Read... [09:08:05]Read from MH i2c: E2 0E 00 EF 02 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 1A [09:08:05]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [09:08:05]wFMCommunicate OK [09:08:05]SAM_PROTO_GetShiftState done [09:08:05]FM_GetShiftState done [09:08:05]req_shift_opened done [09:08:05]requested_item shift.open_date is exist - process it [09:08:05]req_shift_open_date [09:08:05]req_shift_open_date done [09:08:05]produce_requested_data done [09:08:05]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67432,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [09:08:05]process_action_free print_text [09:08:05]json_value_free [09:08:05]json_value_free done [09:08:05]process_json_proto returns [09:08:05]Send response to host [09:08:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67432,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [09:08:05]free response buf [09:08:05]execute_script done [09:08:05]execute_script returns [09:08:05]free content buf [09:08:05]Sock 9.Close socket [09:08:05]Sock 9.Thread stoped [09:08:08]OFD Sender: No OFD packet to send [09:08:13]OFD Sender: No OFD packet to send [09:08:18]OFD Sender: No OFD packet to send [09:08:23]OFD Sender: No OFD packet to send [09:08:28]OFD Sender: No OFD packet to send [09:08:33]OFD Sender: No OFD packet to send [09:08:38]OFD Sender: No OFD packet to send [09:08:43]OFD Sender: No OFD packet to send [09:08:48]OFD Sender: No OFD packet to send [09:08:53]OFD Sender: No OFD packet to send [09:08:58]OFD Sender: No OFD packet to send [09:09:00]int [09:09:00]Write to MH i2c: 01 00 00 F0 02 F2 [09:09:00]*** FLAG_PRN_PAP1 set [09:09:00]Write i2c OK [09:09:00]MH_I2C_Read... [09:09:00]Read from MH i2c: 01 [09:09:00]MH_I2C_Read... [09:09:00]Read from MH i2c: 01 07 00 [09:09:00]MH_I2C_Read... [09:09:00]Read from MH i2c: 01 07 00 F0 02 00 01 00 00 00 FF 0F 08 [09:09:00]state=0 [09:09:00]No paper [09:09:00]int [09:09:00]Write to MH i2c: 01 00 00 F1 02 F3 [09:09:00]*** FLAG_PRN_PAP2 set [09:09:00]Write i2c OK [09:09:00]MH_I2C_Read... [09:09:00]Read from MH i2c: 01 [09:09:00]MH_I2C_Read... [09:09:00]Read from MH i2c: 01 07 00 [09:09:00]MH_I2C_Read... [09:09:00]Read from MH i2c: 01 07 00 F1 02 00 03 00 00 00 FF 0F 0B [09:09:00]state=0 [09:09:00]No paper [09:09:00]Cover opened [09:09:03]OFD Sender: No OFD packet to send [09:09:05]Write to MH i2c: 01 00 00 F2 02 F4 [09:09:05]Write i2c OK [09:09:05]MH_I2C_Read... [09:09:05]Read from MH i2c: 01 [09:09:05]MH_I2C_Read... [09:09:05]Read from MH i2c: 01 07 00 [09:09:05]MH_I2C_Read... [09:09:05]Read from MH i2c: 01 07 00 F2 02 00 03 00 00 00 FF 0F 0C [09:09:05]state=3 [09:09:05]No paper [09:09:05]Cover opened [09:09:08]OFD Sender: No OFD packet to send [09:09:10]Write to MH i2c: 01 00 00 F3 02 F5 [09:09:10]Write i2c OK [09:09:10]MH_I2C_Read... [09:09:10]Read from MH i2c: 01 [09:09:10]MH_I2C_Read... [09:09:10]Read from MH i2c: 01 07 00 [09:09:10]MH_I2C_Read... [09:09:10]Read from MH i2c: 01 07 00 F3 02 00 03 00 00 00 FF 0F 0D [09:09:10]state=3 [09:09:10]No paper [09:09:10]Cover opened [09:09:13]OFD Sender: No OFD packet to send [09:09:15]Write to MH i2c: 01 00 00 F4 02 F6 [09:09:15]Write i2c OK [09:09:15]MH_I2C_Read... [09:09:15]Read from MH i2c: 01 [09:09:15]MH_I2C_Read... [09:09:15]Read from MH i2c: 01 07 00 [09:09:15]MH_I2C_Read... [09:09:15]Read from MH i2c: 01 07 00 F4 02 00 03 00 00 00 FF 0F 0E [09:09:15]state=3 [09:09:15]No paper [09:09:15]Cover opened [09:09:17]int [09:09:17]Write to MH i2c: 01 00 00 F5 02 F7 [09:09:17]*** FLAG_PRN_PAP1 reset [09:09:17]*** FLAG_PRN_PAP2 reset [09:09:17]Write i2c OK [09:09:17]MH_I2C_Read... [09:09:17]Read from MH i2c: 01 [09:09:17]MH_I2C_Read... [09:09:17]Read from MH i2c: 01 07 00 [09:09:17]MH_I2C_Read... [09:09:17]Read from MH i2c: 01 07 00 F5 02 00 00 00 00 00 FF 0F 0C [09:09:17]state=3 [09:09:17]Cover closed [09:09:18]OFD Sender: No OFD packet to send [09:09:21]int [09:09:21]Write to MH i2c: 01 00 00 F6 02 F8 [09:09:21]*** FLAG_PRN_KEY set [09:09:21]Write i2c OK [09:09:21]MH_I2C_Read... [09:09:21]Read from MH i2c: 01 [09:09:21]MH_I2C_Read... [09:09:21]Read from MH i2c: 01 07 00 [09:09:21]MH_I2C_Read... [09:09:21]Read from MH i2c: 01 07 00 F6 02 00 08 00 00 00 FF 0F 15 [09:09:21]state=0 [09:09:21]Key pressed [09:09:21]Feed [09:09:21]Write to MH i2c: D8 00 00 F7 02 D0 [09:09:21]Write i2c OK [09:09:21]MH_I2C_Read... [09:09:21]Read from MH i2c: D8 [09:09:21]MH_I2C_Read... [09:09:21]Read from MH i2c: D8 01 00 [09:09:21]MH_I2C_Read... [09:09:21]Read from MH i2c: D8 01 00 F7 02 00 D1 [09:09:21]int [09:09:21]Write to MH i2c: 01 00 00 F8 02 FA [09:09:21]Write i2c OK [09:09:21]MH_I2C_Read... [09:09:21]Read from MH i2c: 01 [09:09:21]MH_I2C_Read... [09:09:21]Read from MH i2c: 01 07 00 [09:09:21]MH_I2C_Read... [09:09:21]Read from MH i2c: 01 07 00 F8 02 00 48 00 00 00 3C 00 85 [09:09:21]state=2 [09:09:21]Key pressed [09:09:21]int [09:09:21]Write to MH i2c: 01 00 00 F9 02 FB [09:09:21]*** FLAG_PRN_KEY reset [09:09:21]Write i2c OK [09:09:21]MH_I2C_Read... [09:09:21]Read from MH i2c: 01 [09:09:21]MH_I2C_Read... [09:09:21]Read from MH i2c: 01 07 00 [09:09:21]MH_I2C_Read... [09:09:21]Read from MH i2c: 01 07 00 F9 02 00 00 00 00 00 F6 0F 07 [09:09:21]state=2 [09:09:21]Stop feed [09:09:21]int [09:09:21]Write to MH i2c: 01 00 00 FA 02 FC [09:09:21]*** FLAG_PRN_KEY set [09:09:21]Write i2c OK [09:09:21]MH_I2C_Read... [09:09:21]Read from MH i2c: 01 [09:09:21]MH_I2C_Read... [09:09:21]Read from MH i2c: 01 07 00 [09:09:21]MH_I2C_Read... [09:09:21]Read from MH i2c: 01 07 00 FA 02 00 08 00 00 00 FF 0F 19 [09:09:21]state=0 [09:09:21]Key pressed [09:09:21]Feed [09:09:21]Write to MH i2c: D8 00 00 FB 02 D4 [09:09:21]Write i2c OK [09:09:21]MH_I2C_Read... [09:09:21]Read from MH i2c: D8 [09:09:21]MH_I2C_Read... [09:09:21]Read from MH i2c: D8 01 00 [09:09:21]MH_I2C_Read... [09:09:21]Read from MH i2c: D8 01 00 FB 02 00 D5 [09:09:21]int [09:09:21]Write to MH i2c: 01 00 00 FC 02 FE [09:09:21]Write i2c OK [09:09:21]MH_I2C_Read... [09:09:21]Read from MH i2c: 01 [09:09:21]MH_I2C_Read... [09:09:21]Read from MH i2c: 01 07 00 [09:09:21]MH_I2C_Read... [09:09:21]Read from MH i2c: 01 07 00 FC 02 00 48 00 00 00 3C 00 89 [09:09:21]state=2 [09:09:21]Key pressed [09:09:22]int [09:09:22]Write to MH i2c: 01 00 00 FD 02 FF [09:09:22]*** FLAG_PRN_KEY reset [09:09:22]Write i2c OK [09:09:22]MH_I2C_Read... [09:09:22]Read from MH i2c: 01 [09:09:22]MH_I2C_Read... [09:09:22]Read from MH i2c: 01 07 00 [09:09:22]MH_I2C_Read... [09:09:22]Read from MH i2c: 01 07 00 FD 02 00 00 00 00 00 F5 0F 0A [09:09:22]state=2 [09:09:22]Stop feed [09:09:23]OFD Sender: No OFD packet to send [09:09:26]accept exits with 8 [09:09:26]New connection [09:09:26]New thread 3067604324 created [09:09:26]Thread 3067460964 joined [09:09:26]Waiting for new connection... [09:09:26] Sock 8.Parse request [09:09:26]Sock 8.Check first char [09:09:26]Sock 8.First char is OK [09:09:26]request: POST /json_proto HTTP/1.0 [09:09:26]Method: POST [09:09:26]URL: /json_proto [09:09:26]Method is POST - this is cgi request [09:09:26]url: /json_proto [09:09:26]query_string will be loaded in cgi processing [09:09:26]execute_cgi json_proto POST (null) [09:09:26]execute_cgi path=json_proto method=POST [09:09:26]POST find Content-Length [09:09:26]Host: 172.17.41.195:8080 [09:09:26]Content-Length: 215 [09:09:26]Content-Type: application/json [09:09:26] [09:09:26]POST finish read [09:09:26]Found Content-Length = 215 [09:09:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:26]execute_script... [09:09:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:26]POST & json_proto [09:09:26]process_json_proto [09:09:26]json parsed OK: [09:09:26]protocol is kg_v1.0 [09:09:26]action value=get_value [09:09:26]process_action get_value [09:09:26]cmd_get_value [09:09:26]process_action get_value done [09:09:26]requested_data is exist [09:09:26]produce_requested_data [09:09:26]requested_item kkm.sn is exist - process it [09:09:26]requested_item kkm.ver is exist - process it [09:09:26]requested_item fm.sn is exist - process it [09:09:26]wFMCommunicate request_size=4 [09:09:26]MH_SAM_APDU [09:09:26]CAPDU: 80 11 00 00 [09:09:26]Write to MH i2c: E2 08 00 FE 02 80 11 00 00 00 00 00 00 7A [09:09:26]Write i2c OK [09:09:26]MH_I2C_Read... [09:09:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:26]Read from MH i2c: E2 [09:09:26]MH_I2C_Read... [09:09:26]Read from MH i2c: E2 17 00 [09:09:26]MH_I2C_Read... [09:09:26]Read from MH i2c: E2 17 00 FE 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D0 [09:09:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:09:26]wFMCommunicate OK [09:09:26]requested_item fd.num is exist - process it [09:09:26]SAM_PROTO_GetFieldsCounters [09:09:26]wFMCommunicate request_size=4 [09:09:26]MH_SAM_APDU [09:09:26]CAPDU: 80 13 00 00 [09:09:26]Write to MH i2c: E2 08 00 FF 02 80 13 00 00 00 00 00 00 7D [09:09:26]Write i2c OK [09:09:26]MH_I2C_Read... [09:09:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:09:26]Read from MH i2c: E2 [09:09:26]MH_I2C_Read... [09:09:26]Read from MH i2c: E2 62 00 [09:09:26]MH_I2C_Read... [09:09:26]Read from MH i2c: E2 62 00 FF 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 68 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [09:09: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 68 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:09:26]wFMCommunicate OK [09:09:26]SAM_PROTO_GetFieldsCounters done [09:09:26]requested_item shift.num is exist - process it [09:09:26]requested_item shift.opened is exist - process it [09:09:26]req_shift_opened [09:09:26]FM_GetShiftState [09:09:26]SAM_PROTO_GetShiftState [09:09:26]wFMCommunicate request_size=4 [09:09:26]MH_SAM_APDU [09:09:26]CAPDU: 80 13 01 00 [09:09:26]Write to MH i2c: E2 08 00 00 03 80 13 01 00 00 00 00 00 80 [09:09:26]Write i2c OK [09:09:26]MH_I2C_Read... [09:09:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:26]Read from MH i2c: E2 [09:09:26]MH_I2C_Read... [09:09:26]Read from MH i2c: E2 0E 00 [09:09:26]MH_I2C_Read... [09:09:26]Read from MH i2c: E2 0E 00 00 03 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 2C [09:09:26]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [09:09:26]wFMCommunicate OK [09:09:26]SAM_PROTO_GetShiftState done [09:09:26]FM_GetShiftState done [09:09:26]req_shift_opened done [09:09:26]requested_item shift.open_date is exist - process it [09:09:26]req_shift_open_date [09:09:26]req_shift_open_date done [09:09:26]produce_requested_data done [09:09:26]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67432,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [09:09:26]process_action_free get_value [09:09:26]json_value_free [09:09:26]json_value_free done [09:09:26]process_json_proto returns [09:09:26]Send response to host [09:09:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67432,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [09:09:26]free response buf [09:09:26]execute_script done [09:09:26]execute_script returns [09:09:26]free content buf [09:09:26]Sock 8.Close socket [09:09:26]Sock 8.Thread stoped [09:09:26]accept exits with 9 [09:09:26]New connection [09:09:26]New thread 3067460964 created [09:09:26]Thread 3067604324 joined [09:09:26]Waiting for new connection... [09:09:26] Sock 9.Parse request [09:09:26]Sock 9.Check first char [09:09:26]Sock 9.First char is OK [09:09:26]request: POST /json_proto HTTP/1.0 [09:09:26]Method: POST [09:09:26]URL: /json_proto [09:09:26]Method is POST - this is cgi request [09:09:26]url: /json_proto [09:09:26]query_string will be loaded in cgi processing [09:09:26]execute_cgi json_proto POST (null) [09:09:26]execute_cgi path=json_proto method=POST [09:09:26]POST find Content-Length [09:09:26]Host: 172.17.41.195:8080 [09:09:26]Content-Length: 331 [09:09:26]Content-Type: application/json [09:09:26] [09:09:26]POST finish read [09:09:26]Found Content-Length = 331 [09:09:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:09:26]execute_script... [09:09: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" ] } } [09:09:27]POST & json_proto [09:09:27]process_json_proto [09:09:27]json parsed OK: [09:09:27]protocol is kg_v1.0 [09:09:27]action value=get_value [09:09:27]process_action get_value [09:09:27]cmd_get_value [09:09:27]process_action get_value done [09:09:27]requested_data is exist [09:09:27]produce_requested_data [09:09:27]requested_item fm.sale.total is exist - process it [09:09:27]SAM_PROTO_GetFMData [09:09:27]wFMCommunicate request_size=4 [09:09:27]MH_SAM_APDU [09:09:27]CAPDU: 80 13 03 00 [09:09:27]Write to MH i2c: E2 08 00 01 03 80 13 03 00 00 00 00 00 83 [09:09:27]Write i2c OK [09:09:27]MH_I2C_Read... [09:09:27]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [09:09:27]Read from MH i2c: E2 [09:09:27]MH_I2C_Read... [09:09:27]Read from MH i2c: E2 FD 00 [09:09:27]MH_I2C_Read... [09:09:27]Read from MH i2c: E2 FD 00 01 03 00 C6 04 85 04 C2 04 6E 04 04 00 9E 04 01 00 69 04 A3 00 6F 04 04 00 F6 03 01 00 B1 04 05 00 D5 1E 05 1B 03 70 04 05 00 40 39 A1 BF 02 72 04 04 00 95 E5 63 5B 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 67 40 70 54 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 33 46 09 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 A8 00 00 00 B1 04 04 00 90 BE BA DC 70 04 04 00 90 BE BA DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AB B9 70 17 EF 03 09 90 00 C0 [09:09:27]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 9E 04 01 00 69 04 A3 00 6F 04 04 00 F6 03 01 00 B1 04 05 00 D5 1E 05 1B 03 70 04 05 00 40 39 A1 BF 02 72 04 04 00 95 E5 63 5B 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 67 40 70 54 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 33 46 09 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 A8 00 00 00 B1 04 04 00 90 BE BA DC 70 04 04 00 90 BE BA DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AB B9 70 17 EF 03 09 90 00 [09:09:27]wFMCommunicate OK [09:09:27]wFMCommunicate request_size=4 [09:09:27]MH_SAM_APDU [09:09:27]CAPDU: 80 17 00 00 [09:09:27]Write to MH i2c: E2 08 00 02 03 80 17 00 00 00 00 00 00 85 [09:09:27]Write i2c OK [09:09:27]MH_I2C_Read... [09:09:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:09:27]Read from MH i2c: E2 [09:09:27]MH_I2C_Read... [09:09:27]Read from MH i2c: E2 FD 00 [09:09:27]MH_I2C_Read... [09:09:27]Read from MH i2c: E2 FD 00 02 03 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6C 0F F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 A9 [09:09:27]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6C 0F F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [09:09:27]wFMCommunicate OK [09:09:27]wFMCommunicate request_size=4 [09:09:27]MH_SAM_APDU [09:09:27]CAPDU: 80 17 00 00 [09:09:27]Write to MH i2c: E2 08 00 03 03 80 17 00 00 00 00 00 00 86 [09:09:27]Write i2c OK [09:09:27]MH_I2C_Read... [09:09:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:09:28]Read from MH i2c: E2 [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: E2 FD 00 [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: E2 FD 00 03 03 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 AD [09:09:28]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [09:09:28]wFMCommunicate OK [09:09:28]wFMCommunicate request_size=4 [09:09:28]MH_SAM_APDU [09:09:28]CAPDU: 80 17 00 00 [09:09:28]Write to MH i2c: E2 08 00 04 03 80 17 00 00 00 00 00 00 87 [09:09:28]Write i2c OK [09:09:28]MH_I2C_Read... [09:09:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:09:28]Read from MH i2c: E2 [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: E2 FD 00 [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: E2 FD 00 04 03 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 02 [09:09:28]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [09:09:28]wFMCommunicate OK [09:09:28]wFMCommunicate request_size=4 [09:09:28]MH_SAM_APDU [09:09:28]CAPDU: 80 17 00 00 [09:09:28]Write to MH i2c: E2 08 00 05 03 80 17 00 00 00 00 00 00 88 [09:09:28]Write i2c OK [09:09:28]MH_I2C_Read... [09:09:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [09:09:28]Read from MH i2c: E2 [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: E2 E3 00 [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: E2 E3 00 05 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 67 [09:09:28]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:09:28]wFMCommunicate OK [09:09:28]SAM_PROTO_GetFMData done [09:09:28]requested_item fm.sale_refund.total is exist - process it [09:09:28]requested_item fm.buy.total is exist - process it [09:09:28]requested_item shift.sale.total is exist - process it [09:09:28]SAM_PROTO_GetShiftData [09:09:28]wFMCommunicate request_size=4 [09:09:28]MH_SAM_APDU [09:09:28]CAPDU: 80 13 02 00 [09:09:28]Write to MH i2c: E2 08 00 06 03 80 13 02 00 00 00 00 00 87 [09:09:28]Write i2c OK [09:09:28]MH_I2C_Read... [09:09:28]OFD Sender: No OFD packet to send [09:09:29]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [09:09:29]Read from MH i2c: E2 [09:09:29]MH_I2C_Read... [09:09:29]Read from MH i2c: E2 FD 00 [09:09:29]MH_I2C_Read... [09:09:29]Read from MH i2c: E2 FD 00 06 03 00 AE 04 AA 04 AA 04 6E 04 04 00 1E 00 00 00 69 04 9B 00 6F 04 04 00 1E 00 00 00 B1 04 03 00 7F 40 29 70 04 03 00 98 8D 20 72 04 03 00 E7 B2 08 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D6 61 04 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 7A 5D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 64 [09:09:29]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 1E 00 00 00 69 04 9B 00 6F 04 04 00 1E 00 00 00 B1 04 03 00 7F 40 29 70 04 03 00 98 8D 20 72 04 03 00 E7 B2 08 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D6 61 04 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 7A 5D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [09:09:29]wFMCommunicate OK [09:09:29]wFMCommunicate request_size=4 [09:09:29]MH_SAM_APDU [09:09:29]CAPDU: 80 17 00 00 [09:09:29]Write to MH i2c: E2 08 00 07 03 80 17 00 00 00 00 00 00 8A [09:09:29]Write i2c OK [09:09:29]MH_I2C_Read... [09:09:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:09:29]Read from MH i2c: E2 [09:09:29]MH_I2C_Read... [09:09:29]Read from MH i2c: E2 FD 00 [09:09:29]MH_I2C_Read... [09:09:29]Read from MH i2c: E2 FD 00 07 03 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 AC [09:09: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 [09:09:29]wFMCommunicate OK [09:09:29]wFMCommunicate request_size=4 [09:09:29]MH_SAM_APDU [09:09:29]CAPDU: 80 17 00 00 [09:09:29]Write to MH i2c: E2 08 00 08 03 80 17 00 00 00 00 00 00 8B [09:09:29]Write i2c OK [09:09:29]MH_I2C_Read... [09:09:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:09:29]Read from MH i2c: E2 [09:09:29]MH_I2C_Read... [09:09:29]Read from MH i2c: E2 FD 00 [09:09:29]MH_I2C_Read... [09:09:29]Read from MH i2c: E2 FD 00 08 03 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 42 [09:09:29]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [09:09:29]wFMCommunicate OK [09:09:29]wFMCommunicate request_size=4 [09:09:29]MH_SAM_APDU [09:09:29]CAPDU: 80 17 00 00 [09:09:29]Write to MH i2c: E2 08 00 09 03 80 17 00 00 00 00 00 00 8C [09:09:29]Write i2c OK [09:09:29]MH_I2C_Read... [09:09:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:09:29]Read from MH i2c: E2 [09:09:29]MH_I2C_Read... [09:09:29]Read from MH i2c: E2 FD 00 [09:09:29]MH_I2C_Read... [09:09:29]Read from MH i2c: E2 FD 00 09 03 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 FE [09:09:29]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [09:09:29]wFMCommunicate OK [09:09:29]wFMCommunicate request_size=4 [09:09:29]MH_SAM_APDU [09:09:29]CAPDU: 80 17 00 00 [09:09:29]Write to MH i2c: E2 08 00 0A 03 80 17 00 00 00 00 00 00 8D [09:09:29]Write i2c OK [09:09:29]MH_I2C_Read... [09:09:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [09:09:30]Read from MH i2c: E2 [09:09:30]MH_I2C_Read... [09:09:30]Read from MH i2c: E2 CB 00 [09:09:30]MH_I2C_Read... [09:09:30]Read from MH i2c: E2 CB 00 0A 03 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 76 [09:09: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 [09:09:30]wFMCommunicate OK [09:09:30]SAM_PROTO_GetShiftData done [09:09:30]requested_item shift.sale.total_cash is exist - process it [09:09:30]requested_item shift.sale_refund.total is exist - process it [09:09:30]requested_item shift.sale_refund.total_cash is exist - process it [09:09:30]requested_item shift.buy.total is exist - process it [09:09:30]requested_item shift.buy.total_cash is exist - process it [09:09:30]produce_requested_data done [09:09:30]produce_requested_data return {"fm.sale.total":133382222.93,"fm.sale_refund.total":37032260.00,"fm.buy.total":0.00,"shift.sale.total":27034.87,"shift.sale.total_cash":21334.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} [09:09:30]process_action_free get_value [09:09:30]json_value_free [09:09:30]json_value_free done [09:09:30]process_json_proto returns [09:09:30]Send response to host [09:09:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133382222.93,"fm.sale_refund.total":37032260.00,"fm.buy.total":0.00,"shift.sale.total":27034.87,"shift.sale.total_cash":21334.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}}} [09:09:30]free response buf [09:09:30]execute_script done [09:09:30]execute_script returns [09:09:30]free content buf [09:09:30]Sock 9.Close socket [09:09:30]Sock 9.Thread stoped [09:09:33]OFD Sender: No OFD packet to send [09:09:38]OFD Sender: No OFD packet to send [09:09:43]OFD Sender: No OFD packet to send [09:09:48]OFD Sender: No OFD packet to send [09:09:53]OFD Sender: No OFD packet to send [09:09:58]OFD Sender: No OFD packet to send [09:10:03]OFD Sender: No OFD packet to send [09:10:08]OFD Sender: No OFD packet to send [09:10:13]OFD Sender: No OFD packet to send [09:10:18]OFD Sender: No OFD packet to send [09:10:23]OFD Sender: No OFD packet to send [09:10:28]OFD Sender: No OFD packet to send [09:10:33]OFD Sender: No OFD packet to send [09:10:37]accept exits with 8 [09:10:37]New connection [09:10:37]New thread 3067604324 created [09:10:37]Thread 3067460964 joined [09:10:37]Waiting for new connection... [09:10:37] Sock 8.Parse request [09:10:37]Sock 8.Check first char [09:10:37]Sock 8.First char is OK [09:10:37]request: POST /json_proto HTTP/1.0 [09:10:37]Method: POST [09:10:37]URL: /json_proto [09:10:37]Method is POST - this is cgi request [09:10:37]url: /json_proto [09:10:37]query_string will be loaded in cgi processing [09:10:37]execute_cgi json_proto POST (null) [09:10:37]execute_cgi path=json_proto method=POST [09:10:37]POST find Content-Length [09:10:37]Host: 172.17.41.195:8080 [09:10:37]Content-Length: 1207 [09:10:37]Content-Type: application/json [09:10:37] [09:10:37]POST finish read [09:10:37]Found Content-Length = 1207 [09:10:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507442\u000A16.05.2024 08:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 5.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 373.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:37]execute_script... [09:10:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507442\u000A16.05.2024 08:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 5.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 373.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:37]POST & json_proto [09:10:37]process_json_proto [09:10:37]json parsed OK: [09:10:37]protocol is kg_v1.0 [09:10:37]action value=print_text [09:10:37]process_action print_text [09:10:37]cmd_print_text [09:10:37]ExternCall_PrintAddStr [09:10:37]wPrintStart [09:10:37]Write to MH i2c: 01 00 00 0B 03 0E [09:10:37]Write i2c OK [09:10:37]MH_I2C_Read... [09:10:37]Read from MH i2c: 01 [09:10:37]MH_I2C_Read... [09:10:37]Read from MH i2c: 01 07 00 [09:10:37]MH_I2C_Read... [09:10:37]Read from MH i2c: 01 07 00 0B 03 00 00 00 00 00 FF 0F 23 [09:10:37]RasterBufferAndPrint [09:10:37]line *****ТОВАРНЫЙ ЧЕК***** [09:10:37]line АЗС-91 [09:10:37]line Партнер нефть [09:10:37]line 02508201610067 [09:10:37]line Кассир : Пайзулдаева А. [09:10:37]line Счет N : (1)507442 [09:10:37]line 16.05.2024 08:53 [09:10:37]line ПРОДАЖА [09:10:37]line ТРК (МРК, ГНК): 11 [09:10:37]line Вид ГСМ : 2710194210 [09:10:37]line ДТ-К-5 [09:10:37]line 5.000 x 74.70 [09:10:37]line ИТОГ: 373.50 [09:10:37]line Тип оплаты: Талоны: Топливная Карта [09:10:37]line 02750 [09:10:37]line ______________________ [09:10:37]line (подпись) [09:10:37]written 0, free lines is 4095 [09:10:38]Write to MH i2c: 01 00 00 1F 03 22 [09:10:38]Write i2c OK [09:10:38]MH_I2C_Read... [09:10:38]Read from MH i2c: 01 [09:10:38]MH_I2C_Read... [09:10:38]Read from MH i2c: 01 07 00 [09:10:38]MH_I2C_Read... [09:10:38]Read from MH i2c: 01 07 00 1F 03 00 00 00 00 00 10 0E 47 [09:10:38]RasterBufferAndPrint [09:10:38]line [09:10:38]line [09:10:38]line [09:10:38]line [09:10:38]line [09:10:38]written 0, free lines is 3602 [09:10:38]MH_Cut [09:10:38]Write to MH i2c: D1 01 00 26 03 01 FB [09:10:38]Write i2c OK [09:10:38]MH_I2C_Read... [09:10:38]Read from MH i2c: D1 [09:10:38]MH_I2C_Read... [09:10:38]Read from MH i2c: D1 01 00 [09:10:38]MH_I2C_Read... [09:10:38]Read from MH i2c: D1 01 00 26 03 00 FA [09:10:38]Write to MH i2c: 01 00 00 27 03 2A [09:10:38]Write i2c OK [09:10:38]MH_I2C_Read... [09:10:38]*** Cut start [09:10:38]*** Purtial cut [09:10:38]*** CUTSNS_PIN = 0 [09:10:38]OFD Sender: No OFD packet to send [09:10:38]*** Stage 1: CUTSNS_PIN = 1 [09:10:40]Read from MH i2c: 01 [09:10:40]MH_I2C_Read... [09:10:40]Read from MH i2c: 01 07 00 [09:10:40]MH_I2C_Read... [09:10:40]*** Stop cut motor [09:10:40]*** Cut end [09:10:40]Read from MH i2c: 01 07 00 27 03 00 00 00 00 00 FF 0F 3F [09:10:40]process_action print_text done [09:10:40]requested_data is exist [09:10:40]produce_requested_data [09:10:40]requested_item fm.sn is exist - process it [09:10:40]wFMCommunicate request_size=4 [09:10:40]MH_SAM_APDU [09:10:40]CAPDU: 80 11 00 00 [09:10:40]Write to MH i2c: E2 08 00 28 03 80 11 00 00 00 00 00 00 A5 [09:10:40]Write i2c OK [09:10:40]MH_I2C_Read... [09:10:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:40]Read from MH i2c: E2 [09:10:40]MH_I2C_Read... [09:10:40]Read from MH i2c: E2 17 00 [09:10:40]MH_I2C_Read... [09:10:40]Read from MH i2c: E2 17 00 28 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 FB [09:10:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:10:40]wFMCommunicate OK [09:10:40]requested_item fd.num is exist - process it [09:10:40]SAM_PROTO_GetFieldsCounters [09:10:40]wFMCommunicate request_size=4 [09:10:40]MH_SAM_APDU [09:10:40]CAPDU: 80 13 00 00 [09:10:40]Write to MH i2c: E2 08 00 29 03 80 13 00 00 00 00 00 00 A8 [09:10:40]Write i2c OK [09:10:40]MH_I2C_Read... [09:10:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:10:40]Read from MH i2c: E2 [09:10:40]MH_I2C_Read... [09:10:40]Read from MH i2c: E2 62 00 [09:10:40]MH_I2C_Read... [09:10:40]Read from MH i2c: E2 62 00 29 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 68 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [09:10: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 68 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:10:40]wFMCommunicate OK [09:10:40]SAM_PROTO_GetFieldsCounters done [09:10:40]requested_item shift.num is exist - process it [09:10:40]requested_item shift.opened is exist - process it [09:10:40]req_shift_opened [09:10:40]FM_GetShiftState [09:10:40]SAM_PROTO_GetShiftState [09:10:40]wFMCommunicate request_size=4 [09:10:40]MH_SAM_APDU [09:10:40]CAPDU: 80 13 01 00 [09:10:40]Write to MH i2c: E2 08 00 2A 03 80 13 01 00 00 00 00 00 AA [09:10:40]Write i2c OK [09:10:40]MH_I2C_Read... [09:10:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:40]Read from MH i2c: E2 [09:10:40]MH_I2C_Read... [09:10:40]Read from MH i2c: E2 0E 00 [09:10:40]MH_I2C_Read... [09:10:40]Read from MH i2c: E2 0E 00 2A 03 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 56 [09:10:40]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [09:10:40]wFMCommunicate OK [09:10:40]SAM_PROTO_GetShiftState done [09:10:40]FM_GetShiftState done [09:10:40]req_shift_opened done [09:10:40]requested_item shift.open_date is exist - process it [09:10:40]req_shift_open_date [09:10:40]req_shift_open_date done [09:10:40]produce_requested_data done [09:10:40]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67432,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [09:10:40]process_action_free print_text [09:10:40]json_value_free [09:10:40]json_value_free done [09:10:40]process_json_proto returns [09:10:40]Send response to host [09:10:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67432,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [09:10:40]free response buf [09:10:40]execute_script done [09:10:40]execute_script returns [09:10:40]free content buf [09:10:40]Sock 8.Close socket [09:10:40]Sock 8.Thread stoped [09:10:43]OFD Sender: No OFD packet to send [09:10:48]OFD Sender: No OFD packet to send [09:10:53]OFD Sender: No OFD packet to send [09:10:58]OFD Sender: No OFD packet to send [09:11:03]accept exits with 9 [09:11:03]New connection [09:11:03]New thread 3067460964 created [09:11:03]Thread 3067604324 joined [09:11:03]Waiting for new connection... [09:11:03] Sock 9.Parse request [09:11:03]Sock 9.Check first char [09:11:03]Sock 9.First char is OK [09:11:03]request: POST /json_proto HTTP/1.0 [09:11:03]Method: POST [09:11:03]URL: /json_proto [09:11:03]Method is POST - this is cgi request [09:11:03]url: /json_proto [09:11:03]query_string will be loaded in cgi processing [09:11:03]execute_cgi json_proto POST (null) [09:11:03]execute_cgi path=json_proto method=POST [09:11:03]POST find Content-Length [09:11:03]Host: 172.17.41.195:8080 [09:11:03]Content-Length: 1174 [09:11:03]Content-Type: application/json [09:11:03] [09:11:03]POST finish read [09:11:03]Found Content-Length = 1174 [09:11:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507441\u000A16.05.2024 08:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 2004.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30015483\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:03]execute_script... [09:11:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507441\u000A16.05.2024 08:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 2004.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30015483\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:03]POST & json_proto [09:11:03]process_json_proto [09:11:03]json parsed OK: [09:11:03]protocol is kg_v1.0 [09:11:03]action value=print_text [09:11:03]process_action print_text [09:11:03]cmd_print_text [09:11:03]ExternCall_PrintAddStr [09:11:03]wPrintStart [09:11:03]Write to MH i2c: 01 00 00 2B 03 2E [09:11:03]Write i2c OK [09:11:03]MH_I2C_Read... [09:11:03]Read from MH i2c: 01 [09:11:03]MH_I2C_Read... [09:11:03]Read from MH i2c: 01 07 00 [09:11:03]MH_I2C_Read... [09:11:03]Read from MH i2c: 01 07 00 2B 03 00 00 00 00 00 FF 0F 43 [09:11:03]RasterBufferAndPrint [09:11:03]line *****ТОВАРНЫЙ ЧЕК***** [09:11:03]line АЗС-91 [09:11:03]line Партнер нефть [09:11:03]line 02508201610067 [09:11:03]line Кассир : Пайзулдаева А. [09:11:03]line Счет N : (1)507441 [09:11:03]line 16.05.2024 08:53 [09:11:03]line ПРОДАЖА [09:11:03]line ТРК (МРК, ГНК): 23 [09:11:03]line Вид ГСМ : 2710124130 [09:11:03]line Аи-92-К-5 [09:11:03]line 30.000 x 66.80 [09:11:03]line ИТОГ: 2004.00 [09:11:03]line Тип оплаты: Талоны: ТК ГПНА Online [09:11:03]line 30015483 [09:11:03]line ______________________ [09:11:03]line (подпись) [09:11:03]written 0, free lines is 4095 [09:11:03]Write to MH i2c: 01 00 00 3F 03 42 [09:11:03]Write i2c OK [09:11:03]MH_I2C_Read... [09:11:03]Read from MH i2c: 01 [09:11:03]MH_I2C_Read... [09:11:03]Read from MH i2c: 01 07 00 [09:11:03]MH_I2C_Read... [09:11:03]Read from MH i2c: 01 07 00 3F 03 00 00 00 00 00 12 0E 69 [09:11:03]RasterBufferAndPrint [09:11:03]line [09:11:03]line [09:11:03]line [09:11:03]line [09:11:03]line [09:11:03]written 0, free lines is 3603 [09:11:03]MH_Cut [09:11:03]Write to MH i2c: D1 01 00 46 03 01 1B [09:11:03]Write i2c OK [09:11:03]MH_I2C_Read... [09:11:03]Read from MH i2c: D1 [09:11:03]MH_I2C_Read... [09:11:03]Read from MH i2c: D1 01 00 [09:11:03]MH_I2C_Read... [09:11:03]Read from MH i2c: D1 01 00 46 03 00 1A [09:11:03]Write to MH i2c: 01 00 00 47 03 4A [09:11:03]Write i2c OK [09:11:03]MH_I2C_Read... [09:11:03]OFD Sender: No OFD packet to send [09:11:04]*** Cut start [09:11:04]*** Purtial cut [09:11:04]*** Stage 1: CUTSNS_PIN = 1 [09:11:04]Read from MH i2c: 01 [09:11:04]MH_I2C_Read... [09:11:04]Read from MH i2c: 01 07 00 [09:11:04]MH_I2C_Read... [09:11:04]*** Stop cut motor [09:11:04]*** Cut end [09:11:04]Read from MH i2c: 01 07 00 47 03 00 00 00 00 00 FF 0F 5F [09:11:04]process_action print_text done [09:11:04]requested_data is exist [09:11:04]produce_requested_data [09:11:04]requested_item fm.sn is exist - process it [09:11:04]wFMCommunicate request_size=4 [09:11:04]MH_SAM_APDU [09:11:04]CAPDU: 80 11 00 00 [09:11:04]Write to MH i2c: E2 08 00 48 03 80 11 00 00 00 00 00 00 C5 [09:11:04]Write i2c OK [09:11:04]MH_I2C_Read... [09:11:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:04]Read from MH i2c: E2 [09:11:04]MH_I2C_Read... [09:11:04]Read from MH i2c: E2 17 00 [09:11:04]MH_I2C_Read... [09:11:04]Read from MH i2c: E2 17 00 48 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 1B [09:11:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:11:04]wFMCommunicate OK [09:11:04]requested_item fd.num is exist - process it [09:11:04]SAM_PROTO_GetFieldsCounters [09:11:04]wFMCommunicate request_size=4 [09:11:04]MH_SAM_APDU [09:11:04]CAPDU: 80 13 00 00 [09:11:04]Write to MH i2c: E2 08 00 49 03 80 13 00 00 00 00 00 00 C8 [09:11:04]Write i2c OK [09:11:04]MH_I2C_Read... [09:11:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:04]Read from MH i2c: E2 [09:11:04]MH_I2C_Read... [09:11:04]Read from MH i2c: E2 62 00 [09:11:04]MH_I2C_Read... [09:11:04]Read from MH i2c: E2 62 00 49 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 68 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [09:11: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 68 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:11:04]wFMCommunicate OK [09:11:04]SAM_PROTO_GetFieldsCounters done [09:11:04]requested_item shift.num is exist - process it [09:11:04]requested_item shift.opened is exist - process it [09:11:04]req_shift_opened [09:11:04]FM_GetShiftState [09:11:04]SAM_PROTO_GetShiftState [09:11:04]wFMCommunicate request_size=4 [09:11:04]MH_SAM_APDU [09:11:04]CAPDU: 80 13 01 00 [09:11:04]Write to MH i2c: E2 08 00 4A 03 80 13 01 00 00 00 00 00 CA [09:11:04]Write i2c OK [09:11:04]MH_I2C_Read... [09:11:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:04]Read from MH i2c: E2 [09:11:04]MH_I2C_Read... [09:11:04]Read from MH i2c: E2 0E 00 [09:11:04]MH_I2C_Read... [09:11:04]Read from MH i2c: E2 0E 00 4A 03 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 76 [09:11:04]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [09:11:04]wFMCommunicate OK [09:11:04]SAM_PROTO_GetShiftState done [09:11:04]FM_GetShiftState done [09:11:04]req_shift_opened done [09:11:04]requested_item shift.open_date is exist - process it [09:11:04]req_shift_open_date [09:11:04]req_shift_open_date done [09:11:04]produce_requested_data done [09:11:04]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67432,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [09:11:04]process_action_free print_text [09:11:04]json_value_free [09:11:04]json_value_free done [09:11:04]process_json_proto returns [09:11:04]Send response to host [09:11:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67432,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [09:11:04]free response buf [09:11:04]execute_script done [09:11:04]execute_script returns [09:11:04]free content buf [09:11:04]Sock 9.Close socket [09:11:04]Sock 9.Thread stoped [09:11:08]OFD Sender: No OFD packet to send [09:11:13]OFD Sender: No OFD packet to send [09:11:18]OFD Sender: No OFD packet to send [09:11:23]OFD Sender: No OFD packet to send [09:11:28]OFD Sender: No OFD packet to send [09:11:33]OFD Sender: No OFD packet to send [09:11:38]OFD Sender: No OFD packet to send [09:11:43]OFD Sender: No OFD packet to send [09:11:48]OFD Sender: No OFD packet to send [09:11:53]OFD Sender: No OFD packet to send [09:11:58]OFD Sender: No OFD packet to send [09:12:03]OFD Sender: No OFD packet to send [09:12:08]OFD Sender: No OFD packet to send [09:12:13]OFD Sender: No OFD packet to send [09:12:18]OFD Sender: No OFD packet to send [09:12:23]OFD Sender: No OFD packet to send [09:12:28]OFD Sender: No OFD packet to send [09:12:32]accept exits with 8 [09:12:32]New connection [09:12:32]New thread 3067604324 created [09:12:32]Thread 3067460964 joined [09:12:32]Waiting for new connection... [09:12:32] Sock 8.Parse request [09:12:32]Sock 8.Check first char [09:12:32]Sock 8.First char is OK [09:12:32]request: POST /json_proto HTTP/1.0 [09:12:32]Method: POST [09:12:32]URL: /json_proto [09:12:32]Method is POST - this is cgi request [09:12:32]url: /json_proto [09:12:32]query_string will be loaded in cgi processing [09:12:32]execute_cgi json_proto POST (null) [09:12:32]execute_cgi path=json_proto method=POST [09:12:32]POST find Content-Length [09:12:32]Host: 172.17.41.195:8080 [09:12:32]Content-Length: 682 [09:12:32]Content-Type: application/json [09:12:32] [09:12:32]POST finish read [09:12:32]Found Content-Length = 682 [09:12:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507444", "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.80, "quantity" : 37.430, "sum" : 2500.32, "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:12:32]execute_script... [09:12: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)507444", "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.80, "quantity" : 37.430, "sum" : 2500.32, "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:12:32]POST & json_proto [09:12:32]process_json_proto [09:12:32]json parsed OK: [09:12:32]protocol is kg_v1.0 [09:12:32]action value=close_receipt [09:12:32]process_action close_receipt [09:12:32]cmd_close_receipt [09:12:32]MH_GetDate [09:12:32]Write to MH i2c: F0 00 00 4B 03 3D [09:12:32]Write i2c OK [09:12:32]MH_I2C_Read... [09:12:32]Read from MH i2c: F0 [09:12:32]MH_I2C_Read... [09:12:32]Read from MH i2c: F0 09 00 [09:12:32]MH_I2C_Read... [09:12:32]Read from MH i2c: F0 09 00 4B 03 00 01 CE 45 66 FC 21 6F 64 B0 [09:12:32]GetLastDocTimeStamp 1715850231 [09:12:32]current date 1715850753 [09:12:32]FM_GetShiftState [09:12:32]SAM_PROTO_GetShiftState [09:12:32]wFMCommunicate request_size=4 [09:12:32]MH_SAM_APDU [09:12:32]CAPDU: 80 13 01 00 [09:12:32]Write to MH i2c: E2 08 00 4C 03 80 13 01 00 00 00 00 00 CC [09:12:32]Write i2c OK [09:12:32]MH_I2C_Read... [09:12:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:32]Read from MH i2c: E2 [09:12:32]MH_I2C_Read... [09:12:32]Read from MH i2c: E2 0E 00 [09:12:32]MH_I2C_Read... [09:12:32]Read from MH i2c: E2 0E 00 4C 03 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 78 [09:12:32]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [09:12:32]wFMCommunicate OK [09:12:32]SAM_PROTO_GetShiftState done [09:12:32]FM_GetShiftState done [09:12:32]opened in 1715818916 [09:12:32]opened+sec_in_day 1715905316 [09:12:32]quantity*price = 250032 [09:12:32]sum+1 = 250033 [09:12:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.52 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 31 16.05.2024 09:12 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67433 ФПД: 40188249856621 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T091233&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67433&fm=40188249856621&tin=02508201610067®Number=0000000000091845&sum=250000 [09:12:33]StoreToDocumentArchive [09:12:33]shift 357 fd 67433 [09:12:33]save to /storage/0357/doc_00067433 [09:12:33]save last doc name /storage/0357/doc_00067433 to /storage/kkm_last_doc_name [09:12:33]save OK [09:12:33]Clear old archive folders... [09:12:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:12:33]tlvbuf is 00CC6870 [09:12:33]SAM_PROTO_ClearQueue [09:12:33]wFMCommunicate request_size=4 [09:12:33]MH_SAM_APDU [09:12:33]CAPDU: 80 09 00 00 [09:12:33]Write to MH i2c: E2 08 00 59 03 80 09 00 00 00 00 00 00 CE [09:12:33]Write i2c OK [09:12:33]MH_I2C_Read... [09:12:33]Read from MH i2c: E2 [09:12:33]MH_I2C_Read... [09:12:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:12:33]Read from MH i2c: E2 03 00 [09:12:33]MH_I2C_Read... [09:12:33]Read from MH i2c: E2 03 00 59 03 00 90 00 D0 [09:12:33]RAPDU: 90 00 [09:12:33]wFMCommunicate OK [09:12:33]SAM_PROTO_ClearQueue done [09:12:33]KKMCreateOFDPacket [09:12:33]OFDProtocolAddRootSTLVToBuf [09:12:33]FM_MakeSignedData [09:12:33]FM_MakeSignedData [09:12:33]SAM_PROTO_SignData [09:12:33]wFMCommunicate request_size=4 [09:12:33]MH_SAM_APDU [09:12:33]CAPDU: 80 0D 01 02 [09:12:33]Write to MH i2c: E2 08 00 5A 03 80 0D 01 02 00 00 00 00 D6 [09:12:33]Write i2c OK [09:12:33]MH_I2C_Read... [09:12:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:12:33]Read from MH i2c: E2 [09:12:33]MH_I2C_Read... [09:12:33]Read from MH i2c: E2 03 00 [09:12:33]MH_I2C_Read... [09:12:33]Read from MH i2c: E2 03 00 5A 03 00 90 00 D1 [09:12:33]RAPDU: 90 00 [09:12:33]wFMCommunicate OK [09:12:33]wFMCommunicate request_size=255 [09:12:33]MH_SAM_APDU [09:12: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 36 92 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 B0 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 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 1F 00 00 00 F4 03 04 00 01 CE 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 69 07 01 00 35 04 06 00 24 [09:12:33]Write to MH i2c: E2 02 01 5B 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 36 92 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 B0 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 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 1F 00 00 00 F4 03 04 00 01 CE 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 69 07 01 00 35 04 06 00 24 00 00 88 [09:12:33]Write i2c OK [09:12:33]MH_I2C_Read... [09:12:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:33]Read from MH i2c: E2 [09:12:33]MH_I2C_Read... [09:12:33]Read from MH i2c: E2 03 00 [09:12:33]MH_I2C_Read... [09:12:33]Read from MH i2c: E2 03 00 5B 03 00 90 00 D2 [09:12:33]RAPDU: 90 00 [09:12:33]wFMCommunicate OK [09:12:33]wFMCommunicate request_size=10 [09:12:33]MH_SAM_APDU [09:12:33]CAPDU: 80 0D 02 02 05 8D 0E 5B 5A 6D [09:12:33]Write to MH i2c: E2 0D 00 5C 03 80 0D 02 02 05 00 8D 0E 5B 5A 6D 00 00 A0 [09:12:33]Write i2c OK [09:12:33]MH_I2C_Read... [09:12:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:33]Read from MH i2c: E2 [09:12:33]MH_I2C_Read... [09:12:33]Read from MH i2c: E2 03 00 [09:12:33]MH_I2C_Read... [09:12:33]Read from MH i2c: E2 03 00 5C 03 00 90 00 D3 [09:12:33]RAPDU: 90 00 [09:12:33]wFMCommunicate OK [09:12:33]wFMCommunicate request_size=4 [09:12:33]MH_SAM_APDU [09:12:33]CAPDU: 80 0D 03 02 [09:12:33]Write to MH i2c: E2 08 00 5D 03 80 0D 03 02 00 00 00 00 DB [09:12:33]Write i2c OK [09:12:33]MH_I2C_Read... [09:12:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:12:33]Read from MH i2c: E2 [09:12:33]MH_I2C_Read... [09:12:33]Read from MH i2c: E2 0B 00 [09:12:33]MH_I2C_Read... [09:12:33]Read from MH i2c: E2 0B 00 5D 03 00 D9 19 19 69 B1 CE 79 4D 90 00 95 [09:12:33]RAPDU: D9 19 19 69 B1 CE 79 4D 90 00 [09:12:33]wFMCommunicate OK [09:12:33]SAM_PROTO_SignData done [09:12:33]FM_MakeSignedData done [09:12:33]CreateOFDProtocolMessage [09:12:33]wFMCommunicate request_size=4 [09:12:33]MH_SAM_APDU [09:12:33]CAPDU: 80 11 00 00 [09:12:33]Write to MH i2c: E2 08 00 5E 03 80 11 00 00 00 00 00 00 DB [09:12:33]Write i2c OK [09:12:33]MH_I2C_Read... [09:12:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:33]Read from MH i2c: E2 [09:12:33]MH_I2C_Read... [09:12:33]Read from MH i2c: E2 17 00 [09:12:33]MH_I2C_Read... [09:12:33]Read from MH i2c: E2 17 00 5E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 31 [09:12:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:12:33]wFMCommunicate OK [09:12:33]CreateOFDProtocolMessage done [09:12:33]OFDSenderStorePacket 67433 [09:12:33]StoreOFDPacket docnum=67433 [09:12:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 08 B8 07 01 08 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 36 92 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 B0 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 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 1F 00 00 00 F4 03 04 00 01 CE 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 69 07 01 00 35 04 06 00 24 8D 0E 5B 5A 6D D9 19 19 69 B1 CE 79 4D [09:12:33]CheckFolder [09:12:33]dirname=/storage/ofd_packets [09:12:33]CheckFolder done [09:12:33]ProducePacketName [09:12:33]name=ofd_packets/00067433 [09:12:33]NVStorageSaveData ofd_packets/00067433 [09:12:33]File name is /storage/ofd_packets/00067433 [09:12:33]Write 301 bytes [09:12:33]NVStorageSaveData done [09:12:33]OFDSenderStorePacket done [09:12:33]KKMCreateOFDPacket done [09:12:33]NVStorageSaveData kkm_last_timestamp [09:12:33]File name is /storage/kkm_last_timestamp [09:12:33]Write 4 bytes [09:12:33]NVStorageSaveData done [09:12:33]ExternCall_PrintAddStr [09:12:33]wPrintStart [09:12:33]Write to MH i2c: 01 00 00 5F 03 62 [09:12:33]Write i2c OK [09:12:33]MH_I2C_Read... [09:12:33]Read from MH i2c: 01 [09:12:33]MH_I2C_Read... [09:12:33]Read from MH i2c: 01 07 00 [09:12:33]MH_I2C_Read... [09:12:33]Read from MH i2c: 01 07 00 5F 03 00 00 00 00 00 FF 0F 77 [09:12:33]RasterBufferAndPrint [09:12:33]line Счет N : (1)507444 [09:12:33]line ИНН: 02508201610067 [09:12:33]line Контрольно-Кассовый Чек [09:12:33]line ПРОДАЖА [09:12:33]line ТРК (МРК, ГНК) : 43 [09:12:33]line Товар: 2710124130 [09:12:33]line Аи-92-К-5 [09:12:33]line 37.430 * 66.80 [09:12:33]line = 2500.32 [09:12:33]line НДС 12% НСП 1% [09:12:33]line > о реализуемом товаре [09:12:33]line ОКРУГЛЕНИЕ: -0.32 [09:12:33]line ИТОГО: 2500.00 [09:12:33]line Внесено: 2500.00 [09:12:33]line СДАЧА: 0.00 [09:12:33]line НСП 1% : 22.13 [09:12:33]line НДС 12% : 265.52 [09:12:33]line Наличными: 2500.00 [09:12:33]line Безнал.: 0.00 [09:12:33]line Место: АЗС № 91 "Партнер Нефть" [09:12:33]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [09:12:33]line СНО: Общий режим [09:12:33]line Чек 31 16.05.2024 09:12 [09:12:33]line Смена: 357 ФФД: 1.0 [09:12:33]line ЗНМ: 0300000119 [09:12:33]line РНМ: 0000000000091845 [09:12:33]line Версия ККМ: 001 [09:12:33]line ФМ: 0000000000871829 [09:12:33]line ФД: 67433 [09:12:33]line ФПД: 40188249856621 [09:12:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T091233&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67433&fm=40188249856621&tin=02508201610067®Number=0000000000091845&sum=250000 [09:12:34]OFD Sender: Processing packet 67433 [packets to send 35, broken 34] [09:12:34]ProducePacketName [09:12:34]name=ofd_packets/00067433 [09:12:34]OFD Sender: To server: pG, [09:12:34]CommunicateWithHost lk.salyk.kg:30040 [09:12:34]ConnectInit lk.salyk.kg [09:12:34]written 0, free lines is 4095 [09:12:34]Connected sock=10 [09:12: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 38 32 39 0F 01 00 00 08 B8 07 01 08 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 36 92 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 B0 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 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 1F 00 00 00 F4 03 04 00 01 CE 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 69 07 01 00 35 04 06 00 24 8D 0E 5B 5A 6D D9 19 19 69 B1 CE 79 4D [09:12:34]Write to MH i2c: 01 00 00 89 03 8C [09:12:34]Write i2c OK [09:12:34]MH_I2C_Read... [09:12:34]Read from MH i2c: 01 [09:12:34]MH_I2C_Read... [09:12:34]Read from MH i2c: 01 07 00 [09:12:34]MH_I2C_Read... [09:12:34]Read from MH i2c: 01 07 00 89 03 00 00 00 00 00 CC 0C 6B [09:12:34]RasterBufferAndPrint [09:12:34]line [09:12:34]line [09:12:34]line [09:12:34]line [09:12:34]line [09:12:34]written 0, free lines is 3282 [09:12:34]MH_Cut [09:12:34]Write to MH i2c: D1 01 00 90 03 01 65 [09:12:34]Write i2c OK [09:12:34]MH_I2C_Read... [09:12:34]Read from MH i2c: D1 [09:12:34]MH_I2C_Read... [09:12:34]Read from MH i2c: D1 01 00 [09:12:34]MH_I2C_Read... [09:12:34]Read from MH i2c: D1 01 00 90 03 00 64 [09:12:34]Write to MH i2c: 01 00 00 91 03 94 [09:12:34]Write i2c OK [09:12:34]MH_I2C_Read... [09:12:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 9E 6F 47 00 AC 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 38 32 39 10 04 04 00 69 07 01 00 F4 03 04 00 DC 75 45 66 B6 04 01 00 00 4E 73 68 AD 9A 70 66 C4 [09:12:34]CommunicateWithHost err = 0 [09:12:34]CheckOFDResponse [09:12:34]1017 (14) - 77093643461234 [09:12:34]1041 (16) - 0000000000871829 [09:12:34]1040 (4) - 67433 [09:12:34]1012 (4) - 16.05.2024 02:56 [09:12:34]1206 (1) - 0 [09:12:34]OFD Sender: Remove packet 67433 [09:12:34]ProducePacketName [09:12:34]name=ofd_packets/00067433 [09:12:34]NVStorageDeleteData [09:12:35]OFD Sender: No OFD packet to send [09:12:35]*** Cut start [09:12:35]*** Purtial cut [09:12:35]*** CUTSNS_PIN = 0 [09:12:35]*** Stage 1: CUTSNS_PIN = 1 [09:12:37]Read from MH i2c: 01 [09:12:37]MH_I2C_Read... [09:12:37]*** Stop cut motor [09:12:37]*** Cut end [09:12:37]Read from MH i2c: 01 07 00 [09:12:37]MH_I2C_Read... [09:12:37]Read from MH i2c: 01 07 00 91 03 00 00 00 00 00 FF 0F A9 [09:12:37]process_action close_receipt done [09:12:37]requested_data is exist [09:12:37]produce_requested_data [09:12:37]requested_item fm.sn is exist - process it [09:12:37]wFMCommunicate request_size=4 [09:12:37]MH_SAM_APDU [09:12:37]CAPDU: 80 11 00 00 [09:12:37]Write to MH i2c: E2 08 00 92 03 80 11 00 00 00 00 00 00 0F [09:12:37]Write i2c OK [09:12:37]MH_I2C_Read... [09:12:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:37]Read from MH i2c: E2 [09:12:37]MH_I2C_Read... [09:12:37]Read from MH i2c: E2 17 00 [09:12:37]MH_I2C_Read... [09:12:37]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 38 32 39 90 00 65 [09:12:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:12:37]wFMCommunicate OK [09:12:37]requested_item fd.num is exist - process it [09:12:37]SAM_PROTO_GetFieldsCounters [09:12:37]wFMCommunicate request_size=4 [09:12:37]MH_SAM_APDU [09:12:37]CAPDU: 80 13 00 00 [09:12:37]Write to MH i2c: E2 08 00 93 03 80 13 00 00 00 00 00 00 12 [09:12:37]Write i2c OK [09:12:37]MH_I2C_Read... [09:12:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:12:37]Read from MH i2c: E2 [09:12:37]MH_I2C_Read... [09:12:37]Read from MH i2c: E2 62 00 [09:12:37]MH_I2C_Read... [09:12:37]Read from MH i2c: E2 62 00 93 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 69 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [09:12: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 69 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:12:37]wFMCommunicate OK [09:12:37]SAM_PROTO_GetFieldsCounters done [09:12:37]requested_item shift.num is exist - process it [09:12:37]requested_item shift.opened is exist - process it [09:12:37]req_shift_opened [09:12:37]FM_GetShiftState [09:12:37]SAM_PROTO_GetShiftState [09:12:37]wFMCommunicate request_size=4 [09:12:37]MH_SAM_APDU [09:12:37]CAPDU: 80 13 01 00 [09:12:37]Write to MH i2c: E2 08 00 94 03 80 13 01 00 00 00 00 00 14 [09:12:37]Write i2c OK [09:12:37]MH_I2C_Read... [09:12:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:37]Read from MH i2c: E2 [09:12:37]MH_I2C_Read... [09:12:37]Read from MH i2c: E2 0E 00 [09:12:37]MH_I2C_Read... [09:12:37]Read from MH i2c: E2 0E 00 94 03 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 C0 [09:12:37]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [09:12:37]wFMCommunicate OK [09:12:37]SAM_PROTO_GetShiftState done [09:12:37]FM_GetShiftState done [09:12:37]req_shift_opened done [09:12:37]requested_item shift.open_date is exist - process it [09:12:37]req_shift_open_date [09:12:37]req_shift_open_date done [09:12:37]produce_requested_data done [09:12:37]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67433,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [09:12:37]process_action_free close_receipt [09:12:37]json_value_free [09:12:37]json_value_free done [09:12:37]process_json_proto returns [09:12:37]Send response to host [09:12:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67433,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [09:12:37]free response buf [09:12:37]execute_script done [09:12:37]execute_script returns [09:12:37]free content buf [09:12:37]Sock 8.Close socket [09:12:37]Sock 8.Thread stoped [09:12:40]OFD Sender: No OFD packet to send [09:12:45]OFD Sender: No OFD packet to send [09:12:50]OFD Sender: No OFD packet to send [09:12:55]OFD Sender: No OFD packet to send [09:13:00]OFD Sender: No OFD packet to send [09:13:05]OFD Sender: No OFD packet to send [09:13:10]OFD Sender: No OFD packet to send [09:13:15]OFD Sender: No OFD packet to send [09:13:20]OFD Sender: No OFD packet to send [09:13:25]OFD Sender: No OFD packet to send [09:13:30]OFD Sender: No OFD packet to send [09:13:35]OFD Sender: No OFD packet to send [09:13:40]OFD Sender: No OFD packet to send [09:13:44]accept exits with 9 [09:13:44]New connection [09:13:44]New thread 3067460964 created [09:13:44]Thread 3067604324 joined [09:13:44]Waiting for new connection... [09:13:44] Sock 9.Parse request [09:13:44]Sock 9.Check first char [09:13:44]Sock 9.First char is OK [09:13:44]request: POST /json_proto HTTP/1.0 [09:13:44]Method: POST [09:13:44]URL: /json_proto [09:13:44]Method is POST - this is cgi request [09:13:44]url: /json_proto [09:13:44]query_string will be loaded in cgi processing [09:13:44]execute_cgi json_proto POST (null) [09:13:44]execute_cgi path=json_proto method=POST [09:13:44]POST find Content-Length [09:13:44]Host: 172.17.41.195:8080 [09:13:44]Content-Length: 682 [09:13:44]Content-Type: application/json [09:13:44] [09:13:44]POST finish read [09:13:44]Found Content-Length = 682 [09:13:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507443", "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.80, "quantity" : 14.980, "sum" : 1000.66, "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:13:44]execute_script... [09:13: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)507443", "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.80, "quantity" : 14.980, "sum" : 1000.66, "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:13:44]POST & json_proto [09:13:44]process_json_proto [09:13:44]json parsed OK: [09:13:44]protocol is kg_v1.0 [09:13:44]action value=close_receipt [09:13:44]process_action close_receipt [09:13:44]cmd_close_receipt [09:13:44]MH_GetDate [09:13:44]Write to MH i2c: F0 00 00 95 03 87 [09:13:44]Write i2c OK [09:13:44]MH_I2C_Read... [09:13:44]Read from MH i2c: F0 [09:13:44]MH_I2C_Read... [09:13:44]Read from MH i2c: F0 09 00 [09:13:44]MH_I2C_Read... [09:13:44]Read from MH i2c: F0 09 00 95 03 00 49 CE 45 66 FC 21 6F 64 42 [09:13:44]GetLastDocTimeStamp 1715850753 [09:13:44]current date 1715850825 [09:13:44]FM_GetShiftState [09:13:44]SAM_PROTO_GetShiftState [09:13:44]wFMCommunicate request_size=4 [09:13:44]MH_SAM_APDU [09:13:44]CAPDU: 80 13 01 00 [09:13:44]Write to MH i2c: E2 08 00 96 03 80 13 01 00 00 00 00 00 16 [09:13:44]Write i2c OK [09:13:44]MH_I2C_Read... [09:13:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:44]Read from MH i2c: E2 [09:13:44]MH_I2C_Read... [09:13:44]Read from MH i2c: E2 0E 00 [09:13:44]MH_I2C_Read... [09:13:44]Read from MH i2c: E2 0E 00 96 03 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 C2 [09:13:44]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [09:13:44]wFMCommunicate OK [09:13:44]SAM_PROTO_GetShiftState done [09:13:44]FM_GetShiftState done [09:13:44]opened in 1715818916 [09:13:44]opened+sec_in_day 1715905316 [09:13:44]quantity*price = 100066 [09:13:44]sum+1 = 100067 [09:13:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 32 16.05.2024 09:13 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67434 ФПД: 225419372581317 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T091345&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67434&fm=225419372581317&tin=02508201610067®Number=0000000000091845&sum=100000 [09:13:45]StoreToDocumentArchive [09:13:45]shift 357 fd 67434 [09:13:45]save to /storage/0357/doc_00067434 [09:13:45]save last doc name /storage/0357/doc_00067434 to /storage/kkm_last_doc_name [09:13:45]save OK [09:13:45]Clear old archive folders... [09:13:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:13:45]tlvbuf is 00C94900 [09:13:45]SAM_PROTO_ClearQueue [09:13:45]wFMCommunicate request_size=4 [09:13:45]MH_SAM_APDU [09:13:45]CAPDU: 80 09 00 00 [09:13:45]Write to MH i2c: E2 08 00 A3 03 80 09 00 00 00 00 00 00 18 [09:13:45]Write i2c OK [09:13:45]MH_I2C_Read... [09:13:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:13:45]Read from MH i2c: E2 [09:13:45]MH_I2C_Read... [09:13:45]Read from MH i2c: E2 03 00 [09:13:45]MH_I2C_Read... [09:13:45]Read from MH i2c: E2 03 00 A3 03 00 90 00 1A [09:13:45]RAPDU: 90 00 [09:13:45]wFMCommunicate OK [09:13:45]SAM_PROTO_ClearQueue done [09:13:45]KKMCreateOFDPacket [09:13:45]OFDProtocolAddRootSTLVToBuf [09:13:45]FM_MakeSignedData [09:13:45]FM_MakeSignedData [09:13:45]SAM_PROTO_SignData [09:13:45]wFMCommunicate request_size=4 [09:13:45]MH_SAM_APDU [09:13:45]CAPDU: 80 0D 01 02 [09:13:45]Write to MH i2c: E2 08 00 A4 03 80 0D 01 02 00 00 00 00 20 [09:13:45]Write i2c OK [09:13:45]MH_I2C_Read... [09:13:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:13:45]Read from MH i2c: E2 [09:13:45]MH_I2C_Read... [09:13:45]Read from MH i2c: E2 03 00 [09:13:45]MH_I2C_Read... [09:13:45]Read from MH i2c: E2 03 00 A4 03 00 90 00 1B [09:13:45]RAPDU: 90 00 [09:13:45]wFMCommunicate OK [09:13:45]wFMCommunicate request_size=255 [09:13:45]MH_SAM_APDU [09:13: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 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 49 CE 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6A 07 01 00 35 04 06 00 CD [09:13:45]Write to MH i2c: E2 02 01 A5 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 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 49 CE 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6A 07 01 00 35 04 06 00 CD 00 00 80 [09:13:45]Write i2c OK [09:13:45]MH_I2C_Read... [09:13:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:46]Read from MH i2c: E2 [09:13:46]MH_I2C_Read... [09:13:46]Read from MH i2c: E2 03 00 [09:13:46]MH_I2C_Read... [09:13:46]Read from MH i2c: E2 03 00 A5 03 00 90 00 1C [09:13:46]RAPDU: 90 00 [09:13:46]wFMCommunicate OK [09:13:46]wFMCommunicate request_size=10 [09:13:46]MH_SAM_APDU [09:13:46]CAPDU: 80 0D 02 02 05 04 89 A0 D1 C5 [09:13:46]Write to MH i2c: E2 0D 00 A6 03 80 0D 02 02 05 00 04 89 A0 D1 C5 00 00 F0 [09:13:46]Write i2c OK [09:13:46]MH_I2C_Read... [09:13:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:46]Read from MH i2c: E2 [09:13:46]MH_I2C_Read... [09:13:46]Read from MH i2c: E2 03 00 [09:13:46]MH_I2C_Read... [09:13:46]Read from MH i2c: E2 03 00 A6 03 00 90 00 1D [09:13:46]RAPDU: 90 00 [09:13:46]wFMCommunicate OK [09:13:46]wFMCommunicate request_size=4 [09:13:46]MH_SAM_APDU [09:13:46]CAPDU: 80 0D 03 02 [09:13:46]Write to MH i2c: E2 08 00 A7 03 80 0D 03 02 00 00 00 00 25 [09:13:46]Write i2c OK [09:13:46]MH_I2C_Read... [09:13:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:13:46]Read from MH i2c: E2 [09:13:46]MH_I2C_Read... [09:13:46]Read from MH i2c: E2 0B 00 [09:13:46]MH_I2C_Read... [09:13:46]Read from MH i2c: E2 0B 00 A7 03 00 9D 1C 12 18 C3 F8 C5 5D 90 00 E6 [09:13:46]RAPDU: 9D 1C 12 18 C3 F8 C5 5D 90 00 [09:13:46]wFMCommunicate OK [09:13:46]SAM_PROTO_SignData done [09:13:46]FM_MakeSignedData done [09:13:46]CreateOFDProtocolMessage [09:13:46]wFMCommunicate request_size=4 [09:13:46]MH_SAM_APDU [09:13:46]CAPDU: 80 11 00 00 [09:13:46]Write to MH i2c: E2 08 00 A8 03 80 11 00 00 00 00 00 00 25 [09:13:46]Write i2c OK [09:13:46]MH_I2C_Read... [09:13:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:46]Read from MH i2c: E2 [09:13:46]MH_I2C_Read... [09:13:46]Read from MH i2c: E2 17 00 [09:13:46]MH_I2C_Read... [09:13:46]Read from MH i2c: E2 17 00 A8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7B [09:13:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:13:46]wFMCommunicate OK [09:13:46]CreateOFDProtocolMessage done [09:13:46]OFDSenderStorePacket 67434 [09:13:46]StoreOFDPacket docnum=67434 [09:13:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 0A 0B 07 01 73 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 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 49 CE 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6A 07 01 00 35 04 06 00 CD 04 89 A0 D1 C5 9D 1C 12 18 C3 F8 C5 5D [09:13:46]CheckFolder [09:13:46]dirname=/storage/ofd_packets [09:13:46]CheckFolder done [09:13:46]ProducePacketName [09:13:46]name=ofd_packets/00067434 [09:13:46]NVStorageSaveData ofd_packets/00067434 [09:13:46]File name is /storage/ofd_packets/00067434 [09:13:46]Write 301 bytes [09:13:46]NVStorageSaveData done [09:13:46]OFDSenderStorePacket done [09:13:46]KKMCreateOFDPacket done [09:13:46]NVStorageSaveData kkm_last_timestamp [09:13:46]File name is /storage/kkm_last_timestamp [09:13:46]Write 4 bytes [09:13:46]NVStorageSaveData done [09:13:46]ExternCall_PrintAddStr [09:13:46]wPrintStart [09:13:46]Write to MH i2c: 01 00 00 A9 03 AC [09:13:46]Write i2c OK [09:13:46]MH_I2C_Read... [09:13:46]Read from MH i2c: 01 [09:13:46]MH_I2C_Read... [09:13:46]Read from MH i2c: 01 07 00 [09:13:46]MH_I2C_Read... [09:13:46]Read from MH i2c: 01 07 00 A9 03 00 00 00 00 00 FF 0F C1 [09:13:46]RasterBufferAndPrint [09:13:46]line Счет N : (1)507443 [09:13:46]line ИНН: 02508201610067 [09:13:46]line Контрольно-Кассовый Чек [09:13:46]line ПРОДАЖА [09:13:46]line ТРК (МРК, ГНК) : 33 [09:13:46]line Товар: 2710124130 [09:13:46]line Аи-92-К-5 [09:13:46]line 14.980 * 66.80 [09:13:46]line = 1000.66 [09:13:46]line НДС 12% НСП 1% [09:13:46]line > о реализуемом товаре [09:13:46]line ОКРУГЛЕНИЕ: -0.66 [09:13:46]line ИТОГО: 1000.00 [09:13:46]line Внесено: 1000.00 [09:13:46]line СДАЧА: 0.00 [09:13:46]line НСП 1% : 8.85 [09:13:46]line НДС 12% : 106.26 [09:13:46]line Наличными: 1000.00 [09:13:46]line Безнал.: 0.00 [09:13:46]line Место: АЗС № 91 "Партнер Нефть" [09:13:46]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [09:13:46]line СНО: Общий режим [09:13:46]line Чек 32 16.05.2024 09:13 [09:13:46]line Смена: 357 ФФД: 1.0 [09:13:46]line ЗНМ: 0300000119 [09:13:46]line РНМ: 0000000000091845 [09:13:46]line Версия ККМ: 001 [09:13:46]line ФМ: 0000000000871829 [09:13:46]line ФД: 67434 [09:13:46]line ФПД: 225419372581317 [09:13:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T091345&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67434&fm=225419372581317&tin=02508201610067®Number=0000000000091845&sum=100000 [09:13:46]OFD Sender: Processing packet 67434 [packets to send 35, broken 34] [09:13:46]ProducePacketName [09:13:46]name=ofd_packets/00067434 [09:13:46]OFD Sender: To server: pG, [09:13:46]CommunicateWithHost lk.salyk.kg:30040 [09:13:46]ConnectInit lk.salyk.kg [09:13:46]written 0, free lines is 4095 [09:13:46]Connected sock=10 [09:13: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 38 32 39 0F 01 00 00 0A 0B 07 01 73 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 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 49 CE 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6A 07 01 00 35 04 06 00 CD 04 89 A0 D1 C5 9D 1C 12 18 C3 F8 C5 5D [09:13:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 13 36 47 00 E7 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 38 32 39 10 04 04 00 6A 07 01 00 F4 03 04 00 24 76 45 66 B6 04 01 00 00 78 F3 46 50 3A 66 AD 96 [09:13:47]CommunicateWithHost err = 0 [09:13:47]CheckOFDResponse [09:13:47]1017 (14) - 77093643461234 [09:13:47]1041 (16) - 0000000000871829 [09:13:47]1040 (4) - 67434 [09:13:47]1012 (4) - 16.05.2024 02:57 [09:13:47]1206 (1) - 0 [09:13:47]OFD Sender: Remove packet 67434 [09:13:47]ProducePacketName [09:13:47]name=ofd_packets/00067434 [09:13:47]NVStorageDeleteData [09:13:47]Write to MH i2c: 01 00 00 D3 03 D6 [09:13:47]Write i2c OK [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: 01 [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: 01 07 00 [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: 01 07 00 D3 03 00 00 00 00 00 C9 0C B2 [09:13:47]RasterBufferAndPrint [09:13:47]line [09:13:47]line [09:13:47]line [09:13:47]line [09:13:47]line [09:13:47]written 0, free lines is 3278 [09:13:47]MH_Cut [09:13:47]Write to MH i2c: D1 01 00 DA 03 01 AF [09:13:47]Write i2c OK [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: D1 [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: D1 01 00 [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: D1 01 00 DA 03 00 AE [09:13:47]Write to MH i2c: 01 00 00 DB 03 DE [09:13:47]Write i2c OK [09:13:47]MH_I2C_Read... [09:13:47]OFD Sender: No OFD packet to send [09:13:48]*** Cut start [09:13:48]*** Purtial cut [09:13:48]*** Stage 1: CUTSNS_PIN = 1 [09:13:48]Read from MH i2c: 01 [09:13:48]MH_I2C_Read... [09:13:48]*** Stop cut motor [09:13:48]*** Cut end [09:13:48]Read from MH i2c: 01 07 00 [09:13:48]MH_I2C_Read... [09:13:48]Read from MH i2c: 01 07 00 DB 03 00 00 00 00 00 FF 0F F3 [09:13:48]process_action close_receipt done [09:13:48]requested_data is exist [09:13:48]produce_requested_data [09:13:48]requested_item fm.sn is exist - process it [09:13:48]wFMCommunicate request_size=4 [09:13:48]MH_SAM_APDU [09:13:48]CAPDU: 80 11 00 00 [09:13:48]Write to MH i2c: E2 08 00 DC 03 80 11 00 00 00 00 00 00 59 [09:13:48]Write i2c OK [09:13:48]MH_I2C_Read... [09:13:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:48]Read from MH i2c: E2 [09:13:48]MH_I2C_Read... [09:13:48]Read from MH i2c: E2 17 00 [09:13:48]MH_I2C_Read... [09:13:48]Read from MH i2c: E2 17 00 DC 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AF [09:13:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:13:48]wFMCommunicate OK [09:13:48]requested_item fd.num is exist - process it [09:13:48]SAM_PROTO_GetFieldsCounters [09:13:48]wFMCommunicate request_size=4 [09:13:48]MH_SAM_APDU [09:13:48]CAPDU: 80 13 00 00 [09:13:48]Write to MH i2c: E2 08 00 DD 03 80 13 00 00 00 00 00 00 5C [09:13:48]Write i2c OK [09:13:48]MH_I2C_Read... [09:13:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:13:48]Read from MH i2c: E2 [09:13:48]MH_I2C_Read... [09:13:48]Read from MH i2c: E2 62 00 [09:13:48]MH_I2C_Read... [09:13:48]Read from MH i2c: E2 62 00 DD 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 6A 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [09:13: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 6A 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:13:48]wFMCommunicate OK [09:13:48]SAM_PROTO_GetFieldsCounters done [09:13:48]requested_item shift.num is exist - process it [09:13:48]requested_item shift.opened is exist - process it [09:13:48]req_shift_opened [09:13:48]FM_GetShiftState [09:13:48]SAM_PROTO_GetShiftState [09:13:48]wFMCommunicate request_size=4 [09:13:48]MH_SAM_APDU [09:13:48]CAPDU: 80 13 01 00 [09:13:48]Write to MH i2c: E2 08 00 DE 03 80 13 01 00 00 00 00 00 5E [09:13:48]Write i2c OK [09:13:48]MH_I2C_Read... [09:13:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:48]Read from MH i2c: E2 [09:13:48]MH_I2C_Read... [09:13:48]Read from MH i2c: E2 0E 00 [09:13:48]MH_I2C_Read... [09:13:48]Read from MH i2c: E2 0E 00 DE 03 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 0A [09:13:48]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [09:13:48]wFMCommunicate OK [09:13:48]SAM_PROTO_GetShiftState done [09:13:48]FM_GetShiftState done [09:13:48]req_shift_opened done [09:13:48]requested_item shift.open_date is exist - process it [09:13:48]req_shift_open_date [09:13:48]req_shift_open_date done [09:13:48]produce_requested_data done [09:13:48]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67434,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [09:13:48]process_action_free close_receipt [09:13:48]json_value_free [09:13:48]json_value_free done [09:13:48]process_json_proto returns [09:13:48]Send response to host [09:13:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67434,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [09:13:48]free response buf [09:13:48]execute_script done [09:13:48]execute_script returns [09:13:48]free content buf [09:13:48]Sock 9.Close socket [09:13:48]Sock 9.Thread stoped [09:13:52]OFD Sender: No OFD packet to send [09:13:57]OFD Sender: No OFD packet to send [09:14:02]OFD Sender: No OFD packet to send [09:14:04]accept exits with 8 [09:14:04]New connection [09:14:04]New thread 3067604324 created [09:14:04]Thread 3067460964 joined [09:14:04]Waiting for new connection... [09:14:04] Sock 8.Parse request [09:14:04]Sock 8.Check first char [09:14:04]Sock 8.First char is OK [09:14:04]request: POST /json_proto HTTP/1.0 [09:14:04]Method: POST [09:14:04]URL: /json_proto [09:14:04]Method is POST - this is cgi request [09:14:04]url: /json_proto [09:14:04]query_string will be loaded in cgi processing [09:14:04]execute_cgi json_proto POST (null) [09:14:04]execute_cgi path=json_proto method=POST [09:14:04]POST find Content-Length [09:14:04]Host: 172.17.41.195:8080 [09:14:04]Content-Length: 738 [09:14:04]Content-Type: application/json [09:14:04] [09:14:04]POST finish read [09:14:04]Found Content-Length = 738 [09:14:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 67433, "base_FM": "0000000000871829", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507444", "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.80, "quantity" : 37.430, "sum" : 2500.32, "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:14:04]execute_script... [09:14:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 67433, "base_FM": "0000000000871829", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507444", "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.80, "quantity" : 37.430, "sum" : 2500.32, "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:14:04]POST & json_proto [09:14:04]process_json_proto [09:14:04]json parsed OK: [09:14:04]protocol is kg_v1.0 [09:14:04]action value=close_receipt [09:14:04]process_action close_receipt [09:14:04]cmd_close_receipt [09:14:04]MH_GetDate [09:14:04]Write to MH i2c: F0 00 00 DF 03 D1 [09:14:04]Write i2c OK [09:14:04]MH_I2C_Read... [09:14:04]Read from MH i2c: F0 [09:14:04]MH_I2C_Read... [09:14:04]Read from MH i2c: F0 09 00 [09:14:04]MH_I2C_Read... [09:14:04]Read from MH i2c: F0 09 00 DF 03 00 5D CE 45 66 FC 21 6F 64 A0 [09:14:04]GetLastDocTimeStamp 1715850825 [09:14:04]current date 1715850845 [09:14:04]FM_GetShiftState [09:14:04]SAM_PROTO_GetShiftState [09:14:04]wFMCommunicate request_size=4 [09:14:04]MH_SAM_APDU [09:14:04]CAPDU: 80 13 01 00 [09:14:04]Write to MH i2c: E2 08 00 E0 03 80 13 01 00 00 00 00 00 60 [09:14:04]Write i2c OK [09:14:04]MH_I2C_Read... [09:14:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:04]Read from MH i2c: E2 [09:14:04]MH_I2C_Read... [09:14:04]Read from MH i2c: E2 0E 00 [09:14:04]MH_I2C_Read... [09:14:04]Read from MH i2c: E2 0E 00 E0 03 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 0C [09:14:04]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [09:14:04]wFMCommunicate OK [09:14:04]SAM_PROTO_GetShiftState done [09:14:04]FM_GetShiftState done [09:14:04]opened in 1715818916 [09:14:04]opened+sec_in_day 1715905316 [09:14:04]quantity*price = 250032 [09:14:04]sum+1 = 250033 [09:14:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 2500.00 НСП 1% : 22.13 НДС 12% : 265.52 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 33 16.05.2024 09:14 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФД осн.: 67433 ФМ осн.: 0000000000871829 ФМ: 0000000000871829 ФД: 67435 ФПД: 231960136106153 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T091405&type=2&operation_type=1&fn_number=0000000000871829&fd_number=67435&fm=231960136106153&tin=02508201610067®Number=0000000000091845&sum=250000 [09:14:05]StoreToDocumentArchive [09:14:05]shift 357 fd 67435 [09:14:05]save to /storage/0357/doc_00067435 [09:14:05]save last doc name /storage/0357/doc_00067435 to /storage/kkm_last_doc_name [09:14:05]save OK [09:14:05]Clear old archive folders... [09:14:05]ProcessDocumentItem done err = 0, tmpTLVsize=279 [09:14:05]tlvbuf is 00C96510 [09:14:05]SAM_PROTO_ClearQueue [09:14:05]wFMCommunicate request_size=4 [09:14:05]MH_SAM_APDU [09:14:05]CAPDU: 80 09 00 00 [09:14:05]Write to MH i2c: E2 08 00 EF 03 80 09 00 00 00 00 00 00 64 [09:14:05]Write i2c OK [09:14:05]MH_I2C_Read... [09:14:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:14:05]Read from MH i2c: E2 [09:14:05]MH_I2C_Read... [09:14:05]Read from MH i2c: E2 03 00 [09:14:05]MH_I2C_Read... [09:14:05]Read from MH i2c: E2 03 00 EF 03 00 90 00 66 [09:14:05]RAPDU: 90 00 [09:14:05]wFMCommunicate OK [09:14:05]SAM_PROTO_ClearQueue done [09:14:05]KKMCreateOFDPacket [09:14:05]OFDProtocolAddRootSTLVToBuf [09:14:05]FM_MakeSignedData [09:14:05]FM_MakeSignedData [09:14:05]SAM_PROTO_SignData [09:14:05]wFMCommunicate request_size=4 [09:14:05]MH_SAM_APDU [09:14:05]CAPDU: 80 0D 01 02 [09:14:05]Write to MH i2c: E2 08 00 F0 03 80 0D 01 02 00 00 00 00 6C [09:14:05]Write i2c OK [09:14:05]MH_I2C_Read... [09:14:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:14:05]Read from MH i2c: E2 [09:14:05]MH_I2C_Read... [09:14:05]Read from MH i2c: E2 03 00 [09:14:05]MH_I2C_Read... [09:14:05]Read from MH i2c: E2 03 00 F0 03 00 90 00 67 [09:14:05]RAPDU: 90 00 [09:14:05]wFMCommunicate OK [09:14:05]wFMCommunicate request_size=255 [09:14:05]MH_SAM_APDU [09:14:05]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 92 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 B0 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 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 21 00 00 00 F4 03 04 00 5D CE 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 27 04 04 00 69 07 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 11 04 10 00 30 [09:14:05]Write to MH i2c: E2 02 01 F1 03 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 92 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 B0 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 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 21 00 00 00 F4 03 04 00 5D CE 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 27 04 04 00 69 07 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 11 04 10 00 30 00 00 BA [09:14:05]Write i2c OK [09:14:05]MH_I2C_Read... [09:14:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:05]Read from MH i2c: E2 [09:14:05]MH_I2C_Read... [09:14:05]Read from MH i2c: E2 03 00 [09:14:05]MH_I2C_Read... [09:14:05]Read from MH i2c: E2 03 00 F1 03 00 90 00 68 [09:14:05]RAPDU: 90 00 [09:14:05]wFMCommunicate OK [09:14:05]wFMCommunicate request_size=38 [09:14:05]MH_SAM_APDU [09:14:05]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6B 07 01 00 35 04 06 00 D2 F7 6D 83 C0 A9 [09:14:05]Write to MH i2c: E2 29 00 F2 03 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6B 07 01 00 35 04 06 00 D2 F7 6D 83 C0 A9 00 00 90 [09:14:05]Write i2c OK [09:14:05]MH_I2C_Read... [09:14:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:05]Read from MH i2c: E2 [09:14:05]MH_I2C_Read... [09:14:05]Read from MH i2c: E2 03 00 [09:14:05]MH_I2C_Read... [09:14:05]Read from MH i2c: E2 03 00 F2 03 00 90 00 69 [09:14:05]RAPDU: 90 00 [09:14:05]wFMCommunicate OK [09:14:05]wFMCommunicate request_size=4 [09:14:05]MH_SAM_APDU [09:14:05]CAPDU: 80 0D 03 02 [09:14:05]Write to MH i2c: E2 08 00 F3 03 80 0D 03 02 00 00 00 00 71 [09:14:05]Write i2c OK [09:14:05]MH_I2C_Read... [09:14:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:14:06]Read from MH i2c: E2 [09:14:06]MH_I2C_Read... [09:14:06]Read from MH i2c: E2 0B 00 [09:14:06]MH_I2C_Read... [09:14:06]Read from MH i2c: E2 0B 00 F3 03 00 80 1A 81 05 1D F7 49 43 90 00 32 [09:14:06]RAPDU: 80 1A 81 05 1D F7 49 43 90 00 [09:14:06]wFMCommunicate OK [09:14:06]SAM_PROTO_SignData done [09:14:06]FM_MakeSignedData done [09:14:06]CreateOFDProtocolMessage [09:14:06]wFMCommunicate request_size=4 [09:14:06]MH_SAM_APDU [09:14:06]CAPDU: 80 11 00 00 [09:14:06]Write to MH i2c: E2 08 00 F4 03 80 11 00 00 00 00 00 00 71 [09:14:06]Write i2c OK [09:14:06]MH_I2C_Read... [09:14:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:06]Read from MH i2c: E2 [09:14:06]MH_I2C_Read... [09:14:06]Read from MH i2c: E2 17 00 [09:14:06]MH_I2C_Read... [09:14:06]Read from MH i2c: E2 17 00 F4 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C7 [09:14:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:14:06]wFMCommunicate OK [09:14:06]CreateOFDProtocolMessage done [09:14:06]OFDSenderStorePacket 67435 [09:14:06]StoreOFDPacket docnum=67435 [09:14:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 2B 01 00 00 83 BD 23 01 01 02 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 92 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 B0 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 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 21 00 00 00 F4 03 04 00 5D CE 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 27 04 04 00 69 07 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6B 07 01 00 35 04 06 00 D2 F7 6D 83 C0 A9 80 1A 81 05 1D F7 49 43 [09:14:06]CheckFolder [09:14:06]dirname=/storage/ofd_packets [09:14:06]CheckFolder done [09:14:06]ProducePacketName [09:14:06]name=ofd_packets/00067435 [09:14:06]NVStorageSaveData ofd_packets/00067435 [09:14:06]File name is /storage/ofd_packets/00067435 [09:14:06]Write 329 bytes [09:14:06]NVStorageSaveData done [09:14:06]OFDSenderStorePacket done [09:14:06]KKMCreateOFDPacket done [09:14:06]NVStorageSaveData kkm_last_timestamp [09:14:06]File name is /storage/kkm_last_timestamp [09:14:06]Write 4 bytes [09:14:06]NVStorageSaveData done [09:14:06]ExternCall_PrintAddStr [09:14:06]wPrintStart [09:14:06]Write to MH i2c: 01 00 00 F5 03 F8 [09:14:06]Write i2c OK [09:14:06]MH_I2C_Read... [09:14:06]Read from MH i2c: 01 [09:14:06]MH_I2C_Read... [09:14:06]Read from MH i2c: 01 07 00 [09:14:06]MH_I2C_Read... [09:14:06]Read from MH i2c: 01 07 00 F5 03 00 00 00 00 00 FF 0F 0D [09:14:06]RasterBufferAndPrint [09:14:06]line Счет N : (1)507444 [09:14:06]line ИНН: 02508201610067 [09:14:06]line Контрольно-Кассовый Чек [09:14:06]line ВОЗВРАТ ПРОДАЖИ [09:14:06]line ТРК (МРК, ГНК) : 43 [09:14:06]line Товар: 2710124130 [09:14:06]line Аи-92-К-5 [09:14:06]line 37.430 * 66.80 [09:14:06]line = 2500.32 [09:14:06]line НДС 12% НСП 1% [09:14:06]line > о реализуемом товаре [09:14:06]line ОКРУГЛЕНИЕ: -0.32 [09:14:06]line ИТОГО: 2500.00 [09:14:06]line НСП 1% : 22.13 [09:14:06]line НДС 12% : 265.52 [09:14:06]line Наличными: 2500.00 [09:14:06]line Безнал.: 0.00 [09:14:06]line Место: АЗС № 91 "Партнер Нефть" [09:14:06]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [09:14:06]line СНО: Общий режим [09:14:06]line Чек 33 16.05.2024 09:14 [09:14:06]line Смена: 357 ФФД: 1.0 [09:14:06]line ЗНМ: 0300000119 [09:14:06]line РНМ: 0000000000091845 [09:14:06]line Версия ККМ: 001 [09:14:06]line ФД осн.: 67433 [09:14:06]line ФМ осн.: 0000000000871829 [09:14:06]line ФМ: 0000000000871829 [09:14:06]line ФД: 67435 [09:14:06]line ФПД: 231960136106153 [09:14:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T091405&type=2&operation_type=1&fn_number=0000000000871829&fd_number=67435&fm=231960136106153&tin=02508201610067®Number=0000000000091845&sum=250000 [09:14:06]OFD Sender: Processing packet 67435 [packets to send 35, broken 34] [09:14:06]ProducePacketName [09:14:06]name=ofd_packets/00067435 [09:14:06]OFD Sender: To server: pG, [09:14:06]CommunicateWithHost lk.salyk.kg:30040 [09:14:06]ConnectInit lk.salyk.kg [09:14:06]written 0, free lines is 4095 [09:14:06]Connected sock=10 [09:14: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 38 32 39 2B 01 00 00 83 BD 23 01 01 02 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 92 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 B0 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 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 21 00 00 00 F4 03 04 00 5D CE 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 27 04 04 00 69 07 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6B 07 01 00 35 04 06 00 D2 F7 6D 83 C0 A9 80 1A 81 05 1D F7 49 43 [09:14:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 B6 59 47 00 9F 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 38 32 39 10 04 04 00 6B 07 01 00 F4 03 04 00 38 76 45 66 B6 04 01 00 00 A6 BC F3 2B 5C CA 71 9A [09:14:06]CommunicateWithHost err = 0 [09:14:06]CheckOFDResponse [09:14:06]1017 (14) - 77093643461234 [09:14:06]1041 (16) - 0000000000871829 [09:14:06]1040 (4) - 67435 [09:14:06]1012 (4) - 16.05.2024 02:58 [09:14:06]1206 (1) - 0 [09:14:06]OFD Sender: Remove packet 67435 [09:14:06]ProducePacketName [09:14:06]name=ofd_packets/00067435 [09:14:06]NVStorageDeleteData [09:14:06]Write to MH i2c: 01 00 00 1F 04 23 [09:14:06]Write i2c OK [09:14:06]MH_I2C_Read... [09:14:06]Read from MH i2c: 01 [09:14:06]MH_I2C_Read... [09:14:06]Read from MH i2c: 01 07 00 [09:14:06]MH_I2C_Read... [09:14:06]Read from MH i2c: 01 07 00 1F 04 00 00 00 00 00 E4 0C 1A [09:14:06]RasterBufferAndPrint [09:14:06]line [09:14:06]line [09:14:06]line [09:14:06]line [09:14:06]line [09:14:06]written 0, free lines is 3305 [09:14:06]MH_Cut [09:14:06]Write to MH i2c: D1 01 00 26 04 01 FC [09:14:06]Write i2c OK [09:14:06]MH_I2C_Read... [09:14:06]Read from MH i2c: D1 [09:14:06]MH_I2C_Read... [09:14:06]Read from MH i2c: D1 01 00 [09:14:06]MH_I2C_Read... [09:14:06]Read from MH i2c: D1 01 00 26 04 00 FB [09:14:06]Write to MH i2c: 01 00 00 27 04 2B [09:14:06]Write i2c OK [09:14:06]MH_I2C_Read... [09:14:07]OFD Sender: No OFD packet to send [09:14:07]*** Cut start [09:14:07]*** Purtial cut [09:14:07]*** CUTSNS_PIN = 0 [09:14:07]*** Stage 1: CUTSNS_PIN = 1 [09:14:09]Read from MH i2c: 01 [09:14:09]MH_I2C_Read... [09:14:09]*** Stop cut motor [09:14:09]*** Cut end [09:14:09]Read from MH i2c: 01 07 00 [09:14:09]MH_I2C_Read... [09:14:09]Read from MH i2c: 01 07 00 27 04 00 00 00 00 00 FF 0F 40 [09:14:09]process_action close_receipt done [09:14:09]requested_data is exist [09:14:09]produce_requested_data [09:14:09]requested_item fm.sn is exist - process it [09:14:09]wFMCommunicate request_size=4 [09:14:09]MH_SAM_APDU [09:14:09]CAPDU: 80 11 00 00 [09:14:09]Write to MH i2c: E2 08 00 28 04 80 11 00 00 00 00 00 00 A6 [09:14:09]Write i2c OK [09:14:09]MH_I2C_Read... [09:14:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:09]Read from MH i2c: E2 [09:14:09]MH_I2C_Read... [09:14:09]Read from MH i2c: E2 17 00 [09:14:09]MH_I2C_Read... [09:14:09]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 38 32 39 90 00 FC [09:14:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:14:09]wFMCommunicate OK [09:14:09]requested_item fd.num is exist - process it [09:14:09]SAM_PROTO_GetFieldsCounters [09:14:09]wFMCommunicate request_size=4 [09:14:09]MH_SAM_APDU [09:14:09]CAPDU: 80 13 00 00 [09:14:09]Write to MH i2c: E2 08 00 29 04 80 13 00 00 00 00 00 00 A9 [09:14:09]Write i2c OK [09:14:09]MH_I2C_Read... [09:14:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:14:09]Read from MH i2c: E2 [09:14:09]MH_I2C_Read... [09:14:09]Read from MH i2c: E2 62 00 [09:14:09]MH_I2C_Read... [09:14:09]Read from MH i2c: E2 62 00 29 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 6B 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [09:14: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 6B 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:14:09]wFMCommunicate OK [09:14:09]SAM_PROTO_GetFieldsCounters done [09:14:09]requested_item shift.num is exist - process it [09:14:09]requested_item shift.opened is exist - process it [09:14:09]req_shift_opened [09:14:09]FM_GetShiftState [09:14:09]SAM_PROTO_GetShiftState [09:14:09]wFMCommunicate request_size=4 [09:14:09]MH_SAM_APDU [09:14:09]CAPDU: 80 13 01 00 [09:14:09]Write to MH i2c: E2 08 00 2A 04 80 13 01 00 00 00 00 00 AB [09:14:09]Write i2c OK [09:14:09]MH_I2C_Read... [09:14:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:09]Read from MH i2c: E2 [09:14:09]MH_I2C_Read... [09:14:09]Read from MH i2c: E2 0E 00 [09:14:09]MH_I2C_Read... [09:14:09]Read from MH i2c: E2 0E 00 2A 04 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 57 [09:14:09]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [09:14:09]wFMCommunicate OK [09:14:09]SAM_PROTO_GetShiftState done [09:14:09]FM_GetShiftState done [09:14:09]req_shift_opened done [09:14:09]requested_item shift.open_date is exist - process it [09:14:09]req_shift_open_date [09:14:09]req_shift_open_date done [09:14:09]produce_requested_data done [09:14:09]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67435,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [09:14:09]process_action_free close_receipt [09:14:09]json_value_free [09:14:09]json_value_free done [09:14:09]process_json_proto returns [09:14:09]Send response to host [09:14:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67435,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [09:14:09]free response buf [09:14:09]execute_script done [09:14:09]execute_script returns [09:14:09]free content buf [09:14:09]Sock 8.Close socket [09:14:09]Sock 8.Thread stoped [09:14:12]OFD Sender: No OFD packet to send [09:14:17]OFD Sender: No OFD packet to send [09:14:22]OFD Sender: No OFD packet to send [09:14:27]OFD Sender: No OFD packet to send [09:14:32]OFD Sender: No OFD packet to send [09:14:36]accept exits with 9 [09:14:36]New connection [09:14:36]New thread 3067460964 created [09:14:36]Thread 3067604324 joined [09:14:36]Waiting for new connection... [09:14:36] Sock 9.Parse request [09:14:36]Sock 9.Check first char [09:14:36]Sock 9.First char is OK [09:14:36]request: POST /json_proto HTTP/1.0 [09:14:36]Method: POST [09:14:36]URL: /json_proto [09:14:36]Method is POST - this is cgi request [09:14:36]url: /json_proto [09:14:36]query_string will be loaded in cgi processing [09:14:36]execute_cgi json_proto POST (null) [09:14:36]execute_cgi path=json_proto method=POST [09:14:36]POST find Content-Length [09:14:36]Host: 172.17.41.195:8080 [09:14:36]Content-Length: 1208 [09:14:36]Content-Type: application/json [09:14:36] [09:14:36]POST finish read [09:14:36]Found Content-Length = 1208 [09:14:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507445\u000A16.05.2024 08:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 747.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:36]execute_script... [09:14:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507445\u000A16.05.2024 08:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 747.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:36]POST & json_proto [09:14:36]process_json_proto [09:14:36]json parsed OK: [09:14:36]protocol is kg_v1.0 [09:14:36]action value=print_text [09:14:36]process_action print_text [09:14:36]cmd_print_text [09:14:36]ExternCall_PrintAddStr [09:14:36]wPrintStart [09:14:36]Write to MH i2c: 01 00 00 2B 04 2F [09:14:36]Write i2c OK [09:14:36]MH_I2C_Read... [09:14:36]Read from MH i2c: 01 [09:14:36]MH_I2C_Read... [09:14:36]Read from MH i2c: 01 07 00 [09:14:36]MH_I2C_Read... [09:14:36]Read from MH i2c: 01 07 00 2B 04 00 00 00 00 00 FF 0F 44 [09:14:36]RasterBufferAndPrint [09:14:36]line *****ТОВАРНЫЙ ЧЕК***** [09:14:36]line АЗС-91 [09:14:36]line Партнер нефть [09:14:36]line 02508201610067 [09:14:36]line Кассир : Пайзулдаева А. [09:14:36]line Счет N : (1)507445 [09:14:36]line 16.05.2024 08:57 [09:14:36]line ПРОДАЖА [09:14:36]line ТРК (МРК, ГНК): 11 [09:14:36]line Вид ГСМ : 2710194210 [09:14:36]line ДТ-К-5 [09:14:36]line 10.000 x 74.70 [09:14:36]line ИТОГ: 747.00 [09:14:36]line Тип оплаты: Талоны: Топливная Карта [09:14:36]line 02750 [09:14:36]line ______________________ [09:14:36]line (подпись) [09:14:36]written 0, free lines is 4095 [09:14:36]Write to MH i2c: 01 00 00 3F 04 43 [09:14:36]Write i2c OK [09:14:36]MH_I2C_Read... [09:14:36]Read from MH i2c: 01 [09:14:36]MH_I2C_Read... [09:14:36]Read from MH i2c: 01 07 00 [09:14:36]MH_I2C_Read... [09:14:36]Read from MH i2c: 01 07 00 3F 04 00 00 00 00 00 0E 0E 66 [09:14:36]RasterBufferAndPrint [09:14:36]line [09:14:36]line [09:14:36]line [09:14:36]line [09:14:36]line [09:14:36]written 0, free lines is 3599 [09:14:36]MH_Cut [09:14:36]Write to MH i2c: D1 01 00 46 04 01 1C [09:14:36]Write i2c OK [09:14:36]MH_I2C_Read... [09:14:36]Read from MH i2c: D1 [09:14:36]MH_I2C_Read... [09:14:36]Read from MH i2c: D1 01 00 [09:14:36]MH_I2C_Read... [09:14:36]Read from MH i2c: D1 01 00 46 04 00 1B [09:14:36]Write to MH i2c: 01 00 00 47 04 4B [09:14:36]Write i2c OK [09:14:36]MH_I2C_Read... [09:14:37]*** Cut start [09:14:37]*** Purtial cut [09:14:37]*** Stage 1: CUTSNS_PIN = 1 [09:14:37]OFD Sender: No OFD packet to send [09:14:37]Read from MH i2c: 01 [09:14:37]MH_I2C_Read... [09:14:37]*** Stop cut motor [09:14:37]*** Cut end [09:14:37]Read from MH i2c: 01 07 00 [09:14:37]MH_I2C_Read... [09:14:37]Read from MH i2c: 01 07 00 47 04 00 00 00 00 00 FF 0F 60 [09:14:37]process_action print_text done [09:14:37]requested_data is exist [09:14:37]produce_requested_data [09:14:37]requested_item fm.sn is exist - process it [09:14:37]wFMCommunicate request_size=4 [09:14:37]MH_SAM_APDU [09:14:37]CAPDU: 80 11 00 00 [09:14:37]Write to MH i2c: E2 08 00 48 04 80 11 00 00 00 00 00 00 C6 [09:14:37]Write i2c OK [09:14:37]MH_I2C_Read... [09:14:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:37]Read from MH i2c: E2 [09:14:37]MH_I2C_Read... [09:14:37]Read from MH i2c: E2 17 00 [09:14:37]MH_I2C_Read... [09:14:37]Read from MH i2c: E2 17 00 48 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 1C [09:14:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:14:37]wFMCommunicate OK [09:14:37]requested_item fd.num is exist - process it [09:14:37]SAM_PROTO_GetFieldsCounters [09:14:37]wFMCommunicate request_size=4 [09:14:37]MH_SAM_APDU [09:14:37]CAPDU: 80 13 00 00 [09:14:37]Write to MH i2c: E2 08 00 49 04 80 13 00 00 00 00 00 00 C9 [09:14:37]Write i2c OK [09:14:37]MH_I2C_Read... [09:14:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:14:37]Read from MH i2c: E2 [09:14:37]MH_I2C_Read... [09:14:37]Read from MH i2c: E2 62 00 [09:14:37]MH_I2C_Read... [09:14:37]Read from MH i2c: E2 62 00 49 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 6B 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [09:14: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 6B 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:14:37]wFMCommunicate OK [09:14:37]SAM_PROTO_GetFieldsCounters done [09:14:37]requested_item shift.num is exist - process it [09:14:37]requested_item shift.opened is exist - process it [09:14:37]req_shift_opened [09:14:37]FM_GetShiftState [09:14:37]SAM_PROTO_GetShiftState [09:14:37]wFMCommunicate request_size=4 [09:14:37]MH_SAM_APDU [09:14:37]CAPDU: 80 13 01 00 [09:14:37]Write to MH i2c: E2 08 00 4A 04 80 13 01 00 00 00 00 00 CB [09:14:37]Write i2c OK [09:14:37]MH_I2C_Read... [09:14:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:37]Read from MH i2c: E2 [09:14:37]MH_I2C_Read... [09:14:37]Read from MH i2c: E2 0E 00 [09:14:37]MH_I2C_Read... [09:14:37]Read from MH i2c: E2 0E 00 4A 04 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 77 [09:14:37]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [09:14:37]wFMCommunicate OK [09:14:37]SAM_PROTO_GetShiftState done [09:14:37]FM_GetShiftState done [09:14:37]req_shift_opened done [09:14:37]requested_item shift.open_date is exist - process it [09:14:37]req_shift_open_date [09:14:37]req_shift_open_date done [09:14:37]produce_requested_data done [09:14:37]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67435,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [09:14:37]process_action_free print_text [09:14:37]json_value_free [09:14:37]json_value_free done [09:14:37]process_json_proto returns [09:14:37]Send response to host [09:14:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67435,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [09:14:37]free response buf [09:14:37]execute_script done [09:14:37]execute_script returns [09:14:37]free content buf [09:14:37]Sock 9.Close socket [09:14:37]Sock 9.Thread stoped [09:14:42]OFD Sender: No OFD packet to send [09:14:47]OFD Sender: No OFD packet to send [09:14:52]OFD Sender: No OFD packet to send [09:14:57]OFD Sender: No OFD packet to send [09:15:02]OFD Sender: No OFD packet to send [09:15:07]OFD Sender: No OFD packet to send [09:15:12]OFD Sender: No OFD packet to send [09:15:17]OFD Sender: No OFD packet to send [09:15:22]OFD Sender: No OFD packet to send [09:15:27]OFD Sender: No OFD packet to send [09:15:32]OFD Sender: No OFD packet to send [09:15:37]OFD Sender: No OFD packet to send [09:15:42]OFD Sender: No OFD packet to send [09:15:47]OFD Sender: No OFD packet to send [09:15:52]OFD Sender: No OFD packet to send [09:15:57]OFD Sender: No OFD packet to send [09:16:02]OFD Sender: No OFD packet to send [09:16:07]OFD Sender: No OFD packet to send [09:16:12]OFD Sender: No OFD packet to send [09:16:17]OFD Sender: No OFD packet to send [09:16:22]OFD Sender: No OFD packet to send [09:16:27]OFD Sender: No OFD packet to send [09:16:27]accept exits with 8 [09:16:27]New connection [09:16:27]New thread 3067604324 created [09:16:27]Thread 3067460964 joined [09:16:27]Waiting for new connection... [09:16:27] Sock 8.Parse request [09:16:27]Sock 8.Check first char [09:16:27]Sock 8.First char is OK [09:16:27]request: POST /json_proto HTTP/1.0 [09:16:27]Method: POST [09:16:27]URL: /json_proto [09:16:27]Method is POST - this is cgi request [09:16:27]url: /json_proto [09:16:27]query_string will be loaded in cgi processing [09:16:27]execute_cgi json_proto POST (null) [09:16:27]execute_cgi path=json_proto method=POST [09:16:27]POST find Content-Length [09:16:27]Host: 172.17.41.195:8080 [09:16:27]Content-Length: 1209 [09:16:27]Content-Type: application/json [09:16:27] [09:16:27]POST finish read [09:16:27]Found Content-Length = 1209 [09:16:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507446\u000A16.05.2024 08:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 25.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1867.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:27]execute_script... [09:16:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507446\u000A16.05.2024 08:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 25.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1867.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:27]POST & json_proto [09:16:27]process_json_proto [09:16:27]json parsed OK: [09:16:27]protocol is kg_v1.0 [09:16:27]action value=print_text [09:16:27]process_action print_text [09:16:27]cmd_print_text [09:16:27]ExternCall_PrintAddStr [09:16:27]wPrintStart [09:16:27]Write to MH i2c: 01 00 00 4B 04 4F [09:16:27]Write i2c OK [09:16:27]MH_I2C_Read... [09:16:27]Read from MH i2c: 01 [09:16:27]MH_I2C_Read... [09:16:27]Read from MH i2c: 01 07 00 [09:16:27]MH_I2C_Read... [09:16:27]Read from MH i2c: 01 07 00 4B 04 00 00 00 00 00 FF 0F 64 [09:16:27]RasterBufferAndPrint [09:16:27]line *****ТОВАРНЫЙ ЧЕК***** [09:16:27]line АЗС-91 [09:16:27]line Партнер нефть [09:16:27]line 02508201610067 [09:16:27]line Кассир : Пайзулдаева А. [09:16:27]line Счет N : (1)507446 [09:16:27]line 16.05.2024 08:59 [09:16:27]line ПРОДАЖА [09:16:27]line ТРК (МРК, ГНК): 41 [09:16:27]line Вид ГСМ : 2710194210 [09:16:27]line ДТ-К-5 [09:16:27]line 25.000 x 74.70 [09:16:27]line ИТОГ: 1867.50 [09:16:27]line Тип оплаты: Талоны: Топливная Карта [09:16:27]line 02750 [09:16:27]line ______________________ [09:16:27]line (подпись) [09:16:27]written 0, free lines is 4095 [09:16:27]Write to MH i2c: 01 00 00 5F 04 63 [09:16:27]Write i2c OK [09:16:27]MH_I2C_Read... [09:16:27]Read from MH i2c: 01 [09:16:27]MH_I2C_Read... [09:16:27]Read from MH i2c: 01 07 00 [09:16:27]MH_I2C_Read... [09:16:27]Read from MH i2c: 01 07 00 5F 04 00 00 00 00 00 10 0E 88 [09:16:27]RasterBufferAndPrint [09:16:27]line [09:16:27]line [09:16:27]line [09:16:27]line [09:16:27]line [09:16:27]written 0, free lines is 3601 [09:16:27]MH_Cut [09:16:27]Write to MH i2c: D1 01 00 66 04 01 3C [09:16:27]Write i2c OK [09:16:27]MH_I2C_Read... [09:16:27]Read from MH i2c: D1 [09:16:27]MH_I2C_Read... [09:16:27]Read from MH i2c: D1 01 00 [09:16:27]MH_I2C_Read... [09:16:27]Read from MH i2c: D1 01 00 66 04 00 3B [09:16:27]Write to MH i2c: 01 00 00 67 04 6B [09:16:27]Write i2c OK [09:16:27]MH_I2C_Read... [09:16:28]*** Cut start [09:16:28]*** Purtial cut [09:16:28]*** CUTSNS_PIN = 0 [09:16:28]*** Stage 1: CUTSNS_PIN = 1 [09:16:30]Read from MH i2c: 01 [09:16:30]MH_I2C_Read... [09:16:30]*** Stop cut motor [09:16:30]*** Cut end [09:16:30]Read from MH i2c: 01 07 00 [09:16:30]MH_I2C_Read... [09:16:30]Read from MH i2c: 01 07 00 67 04 00 00 00 00 00 FF 0F 80 [09:16:30]process_action print_text done [09:16:30]requested_data is exist [09:16:30]produce_requested_data [09:16:30]requested_item fm.sn is exist - process it [09:16:30]wFMCommunicate request_size=4 [09:16:30]MH_SAM_APDU [09:16:30]CAPDU: 80 11 00 00 [09:16:30]Write to MH i2c: E2 08 00 68 04 80 11 00 00 00 00 00 00 E6 [09:16:30]Write i2c OK [09:16:30]MH_I2C_Read... [09:16:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:30]Read from MH i2c: E2 [09:16:30]MH_I2C_Read... [09:16:30]Read from MH i2c: E2 17 00 [09:16:30]MH_I2C_Read... [09:16:30]Read from MH i2c: E2 17 00 68 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3C [09:16:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:16:30]wFMCommunicate OK [09:16:30]requested_item fd.num is exist - process it [09:16:30]SAM_PROTO_GetFieldsCounters [09:16:30]wFMCommunicate request_size=4 [09:16:30]MH_SAM_APDU [09:16:30]CAPDU: 80 13 00 00 [09:16:30]Write to MH i2c: E2 08 00 69 04 80 13 00 00 00 00 00 00 E9 [09:16:30]Write i2c OK [09:16:30]MH_I2C_Read... [09:16:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:16:30]Read from MH i2c: E2 [09:16:30]MH_I2C_Read... [09:16:30]Read from MH i2c: E2 62 00 [09:16:30]MH_I2C_Read... [09:16:30]Read from MH i2c: E2 62 00 69 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 6B 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [09:16: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 6B 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:16:30]wFMCommunicate OK [09:16:30]SAM_PROTO_GetFieldsCounters done [09:16:30]requested_item shift.num is exist - process it [09:16:30]requested_item shift.opened is exist - process it [09:16:30]req_shift_opened [09:16:30]FM_GetShiftState [09:16:30]SAM_PROTO_GetShiftState [09:16:30]wFMCommunicate request_size=4 [09:16:30]MH_SAM_APDU [09:16:30]CAPDU: 80 13 01 00 [09:16:30]Write to MH i2c: E2 08 00 6A 04 80 13 01 00 00 00 00 00 EB [09:16:30]Write i2c OK [09:16:30]MH_I2C_Read... [09:16:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:30]Read from MH i2c: E2 [09:16:30]MH_I2C_Read... [09:16:30]Read from MH i2c: E2 0E 00 [09:16:30]MH_I2C_Read... [09:16:30]Read from MH i2c: E2 0E 00 6A 04 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 97 [09:16:30]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [09:16:30]wFMCommunicate OK [09:16:30]SAM_PROTO_GetShiftState done [09:16:30]FM_GetShiftState done [09:16:30]req_shift_opened done [09:16:30]requested_item shift.open_date is exist - process it [09:16:30]req_shift_open_date [09:16:30]req_shift_open_date done [09:16:30]produce_requested_data done [09:16:30]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67435,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [09:16:30]process_action_free print_text [09:16:30]json_value_free [09:16:30]json_value_free done [09:16:30]process_json_proto returns [09:16:30]Send response to host [09:16:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67435,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [09:16:30]free response buf [09:16:30]execute_script done [09:16:30]execute_script returns [09:16:30]free content buf [09:16:30]Sock 8.Close socket [09:16:30]Sock 8.Thread stoped [09:16:32]OFD Sender: No OFD packet to send [09:16:37]OFD Sender: No OFD packet to send [09:16:42]OFD Sender: No OFD packet to send [09:16:47]OFD Sender: No OFD packet to send [09:16:52]OFD Sender: No OFD packet to send [09:16:57]OFD Sender: No OFD packet to send [09:17:02]OFD Sender: No OFD packet to send [09:17:07]OFD Sender: No OFD packet to send [09:17:12]OFD Sender: No OFD packet to send [09:17:17]OFD Sender: No OFD packet to send [09:17:22]OFD Sender: No OFD packet to send [09:17:27]OFD Sender: No OFD packet to send [09:17:32]OFD Sender: No OFD packet to send [09:17:37]OFD Sender: No OFD packet to send [09:17:42]OFD Sender: No OFD packet to send [09:17:47]OFD Sender: No OFD packet to send [09:17:52]OFD Sender: No OFD packet to send [09:17:57]OFD Sender: No OFD packet to send [09:18:01]accept exits with 9 [09:18:01]New connection [09:18:01]New thread 3067460964 created [09:18:01]Thread 3067604324 joined [09:18:01]Waiting for new connection... [09:18:01] Sock 9.Parse request [09:18:01]Sock 9.Check first char [09:18:01]Sock 9.First char is OK [09:18:01]request: POST /json_proto HTTP/1.0 [09:18:01]Method: POST [09:18:01]URL: /json_proto [09:18:01]Method is POST - this is cgi request [09:18:01]url: /json_proto [09:18:01]query_string will be loaded in cgi processing [09:18:01]execute_cgi json_proto POST (null) [09:18:01]execute_cgi path=json_proto method=POST [09:18:01]POST find Content-Length [09:18:01]Host: 172.17.41.195:8080 [09:18:01]Content-Length: 1209 [09:18:01]Content-Type: application/json [09:18:01] [09:18:01]POST finish read [09:18:01]Found Content-Length = 1209 [09:18:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507447\u000A16.05.2024 09:00\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 30.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2241.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:01]execute_script... [09:18:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507447\u000A16.05.2024 09:00\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 30.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2241.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:01]POST & json_proto [09:18:01]process_json_proto [09:18:01]json parsed OK: [09:18:01]protocol is kg_v1.0 [09:18:01]action value=print_text [09:18:01]process_action print_text [09:18:01]cmd_print_text [09:18:01]ExternCall_PrintAddStr [09:18:01]wPrintStart [09:18:01]Write to MH i2c: 01 00 00 6B 04 6F [09:18:01]Write i2c OK [09:18:01]MH_I2C_Read... [09:18:01]Read from MH i2c: 01 [09:18:01]MH_I2C_Read... [09:18:01]Read from MH i2c: 01 07 00 [09:18:01]MH_I2C_Read... [09:18:01]Read from MH i2c: 01 07 00 6B 04 00 00 00 00 00 FF 0F 84 [09:18:01]RasterBufferAndPrint [09:18:01]line *****ТОВАРНЫЙ ЧЕК***** [09:18:01]line АЗС-91 [09:18:01]line Партнер нефть [09:18:01]line 02508201610067 [09:18:01]line Кассир : Пайзулдаева А. [09:18:01]line Счет N : (1)507447 [09:18:01]line 16.05.2024 09:00 [09:18:01]line ПРОДАЖА [09:18:01]line ТРК (МРК, ГНК): 31 [09:18:01]line Вид ГСМ : 2710194210 [09:18:01]line ДТ-К-5 [09:18:01]line 30.000 x 74.70 [09:18:01]line ИТОГ: 2241.00 [09:18:01]line Тип оплаты: Талоны: Топливная Карта [09:18:01]line 02750 [09:18:01]line ______________________ [09:18:01]line (подпись) [09:18:01]written 0, free lines is 4095 [09:18:01]Write to MH i2c: 01 00 00 7F 04 83 [09:18:01]Write i2c OK [09:18:01]MH_I2C_Read... [09:18:01]Read from MH i2c: 01 [09:18:01]MH_I2C_Read... [09:18:01]Read from MH i2c: 01 07 00 [09:18:01]MH_I2C_Read... [09:18:01]Read from MH i2c: 01 07 00 7F 04 00 00 00 00 00 0F 0E A7 [09:18:01]RasterBufferAndPrint [09:18:01]line [09:18:01]line [09:18:01]line [09:18:01]line [09:18:01]line [09:18:01]written 0, free lines is 3600 [09:18:01]MH_Cut [09:18:01]Write to MH i2c: D1 01 00 86 04 01 5C [09:18:01]Write i2c OK [09:18:01]MH_I2C_Read... [09:18:01]Read from MH i2c: D1 [09:18:01]MH_I2C_Read... [09:18:01]Read from MH i2c: D1 01 00 [09:18:01]MH_I2C_Read... [09:18:01]Read from MH i2c: D1 01 00 86 04 00 5B [09:18:01]Write to MH i2c: 01 00 00 87 04 8B [09:18:01]Write i2c OK [09:18:01]MH_I2C_Read... [09:18:02]OFD Sender: No OFD packet to send [09:18:02]*** Cut start [09:18:02]*** Purtial cut [09:18:02]*** Stage 1: CUTSNS_PIN = 1 [09:18:02]Read from MH i2c: 01 [09:18:02]MH_I2C_Read... [09:18:02]*** Stop cut motor [09:18:02]*** Cut end [09:18:02]Read from MH i2c: 01 07 00 [09:18:02]MH_I2C_Read... [09:18:02]Read from MH i2c: 01 07 00 87 04 00 00 00 00 00 FF 0F A0 [09:18:02]process_action print_text done [09:18:02]requested_data is exist [09:18:02]produce_requested_data [09:18:02]requested_item fm.sn is exist - process it [09:18:02]wFMCommunicate request_size=4 [09:18:02]MH_SAM_APDU [09:18:02]CAPDU: 80 11 00 00 [09:18:02]Write to MH i2c: E2 08 00 88 04 80 11 00 00 00 00 00 00 06 [09:18:02]Write i2c OK [09:18:02]MH_I2C_Read... [09:18:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:02]Read from MH i2c: E2 [09:18:02]MH_I2C_Read... [09:18:02]Read from MH i2c: E2 17 00 [09:18:02]MH_I2C_Read... [09:18:02]Read from MH i2c: E2 17 00 88 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 5C [09:18:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:18:02]wFMCommunicate OK [09:18:02]requested_item fd.num is exist - process it [09:18:02]SAM_PROTO_GetFieldsCounters [09:18:02]wFMCommunicate request_size=4 [09:18:02]MH_SAM_APDU [09:18:02]CAPDU: 80 13 00 00 [09:18:02]Write to MH i2c: E2 08 00 89 04 80 13 00 00 00 00 00 00 09 [09:18:02]Write i2c OK [09:18:02]MH_I2C_Read... [09:18:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:18:02]Read from MH i2c: E2 [09:18:02]MH_I2C_Read... [09:18:02]Read from MH i2c: E2 62 00 [09:18:02]MH_I2C_Read... [09:18:02]Read from MH i2c: E2 62 00 89 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 6B 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [09:18: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 6B 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:18:02]wFMCommunicate OK [09:18:02]SAM_PROTO_GetFieldsCounters done [09:18:02]requested_item shift.num is exist - process it [09:18:02]requested_item shift.opened is exist - process it [09:18:02]req_shift_opened [09:18:02]FM_GetShiftState [09:18:02]SAM_PROTO_GetShiftState [09:18:02]wFMCommunicate request_size=4 [09:18:02]MH_SAM_APDU [09:18:02]CAPDU: 80 13 01 00 [09:18:02]Write to MH i2c: E2 08 00 8A 04 80 13 01 00 00 00 00 00 0B [09:18:02]Write i2c OK [09:18:02]MH_I2C_Read... [09:18:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:03]Read from MH i2c: E2 [09:18:03]MH_I2C_Read... [09:18:03]Read from MH i2c: E2 0E 00 [09:18:03]MH_I2C_Read... [09:18:03]Read from MH i2c: E2 0E 00 8A 04 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 B7 [09:18:03]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [09:18:03]wFMCommunicate OK [09:18:03]SAM_PROTO_GetShiftState done [09:18:03]FM_GetShiftState done [09:18:03]req_shift_opened done [09:18:03]requested_item shift.open_date is exist - process it [09:18:03]req_shift_open_date [09:18:03]req_shift_open_date done [09:18:03]produce_requested_data done [09:18:03]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67435,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [09:18:03]process_action_free print_text [09:18:03]json_value_free [09:18:03]json_value_free done [09:18:03]process_json_proto returns [09:18:03]Send response to host [09:18:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67435,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [09:18:03]free response buf [09:18:03]execute_script done [09:18:03]execute_script returns [09:18:03]free content buf [09:18:03]Sock 9.Close socket [09:18:03]Sock 9.Thread stoped [09:18:07]OFD Sender: No OFD packet to send [09:18:12]OFD Sender: No OFD packet to send [09:18:17]OFD Sender: No OFD packet to send [09:18:22]OFD Sender: No OFD packet to send [09:18:27]OFD Sender: No OFD packet to send [09:18:32]OFD Sender: No OFD packet to send [09:18:37]OFD Sender: No OFD packet to send [09:18:42]OFD Sender: No OFD packet to send [09:18:47]OFD Sender: No OFD packet to send [09:18:52]OFD Sender: No OFD packet to send [09:18:57]OFD Sender: No OFD packet to send [09:19:02]OFD Sender: No OFD packet to send [09:19:07]OFD Sender: No OFD packet to send [09:19:12]OFD Sender: No OFD packet to send [09:19:17]OFD Sender: No OFD packet to send [09:19:22]OFD Sender: No OFD packet to send [09:19:27]OFD Sender: No OFD packet to send [09:19:32]OFD Sender: No OFD packet to send [09:19:37]OFD Sender: No OFD packet to send [09:19:42]OFD Sender: No OFD packet to send [09:19:47]OFD Sender: No OFD packet to send [09:19:52]OFD Sender: No OFD packet to send [09:19:57]OFD Sender: No OFD packet to send [09:20:02]OFD Sender: No OFD packet to send [09:20:07]OFD Sender: No OFD packet to send [09:20:12]OFD Sender: No OFD packet to send [09:20:17]OFD Sender: No OFD packet to send [09:20:22]OFD Sender: No OFD packet to send [09:20:27]OFD Sender: No OFD packet to send [09:20:32]OFD Sender: No OFD packet to send [09:20:37]OFD Sender: No OFD packet to send [09:20:42]OFD Sender: No OFD packet to send [09:20:47]OFD Sender: No OFD packet to send [09:20:52]OFD Sender: No OFD packet to send [09:20:57]OFD Sender: No OFD packet to send [09:21:02]OFD Sender: No OFD packet to send [09:21:07]OFD Sender: No OFD packet to send [09:21:12]OFD Sender: No OFD packet to send [09:21:17]accept exits with 8 [09:21:17]New connection [09:21:17]New thread 3067604324 created [09:21:17]Thread 3067460964 joined [09:21:17]Waiting for new connection... [09:21:17] Sock 8.Parse request [09:21:17]Sock 8.Check first char [09:21:17]Sock 8.First char is OK [09:21:17]request: POST /json_proto HTTP/1.0 [09:21:17]Method: POST [09:21:17]URL: /json_proto [09:21:17]Method is POST - this is cgi request [09:21:17]url: /json_proto [09:21:17]query_string will be loaded in cgi processing [09:21:17]execute_cgi json_proto POST (null) [09:21:17]execute_cgi path=json_proto method=POST [09:21:17]POST find Content-Length [09:21:17]Host: 172.17.41.195:8080 [09:21:17]Content-Length: 1209 [09:21:17]Content-Type: application/json [09:21:17] [09:21:17]POST finish read [09:21:17]Found Content-Length = 1209 [09:21:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507448\u000A16.05.2024 09:03\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 34.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2539.80\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:17]execute_script... [09:21:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507448\u000A16.05.2024 09:03\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 34.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2539.80\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:17]POST & json_proto [09:21:17]process_json_proto [09:21:17]json parsed OK: [09:21:17]protocol is kg_v1.0 [09:21:17]action value=print_text [09:21:17]process_action print_text [09:21:17]cmd_print_text [09:21:17]ExternCall_PrintAddStr [09:21:17]wPrintStart [09:21:17]Write to MH i2c: 01 00 00 8B 04 8F [09:21:17]Write i2c OK [09:21:17]MH_I2C_Read... [09:21:17]Read from MH i2c: 01 [09:21:17]MH_I2C_Read... [09:21:17]Read from MH i2c: 01 07 00 [09:21:17]MH_I2C_Read... [09:21:17]Read from MH i2c: 01 07 00 8B 04 00 00 00 00 00 FF 0F A4 [09:21:17]RasterBufferAndPrint [09:21:17]line *****ТОВАРНЫЙ ЧЕК***** [09:21:17]line АЗС-91 [09:21:17]line Партнер нефть [09:21:17]line 02508201610067 [09:21:17]line Кассир : Пайзулдаева А. [09:21:17]line Счет N : (1)507448 [09:21:17]line 16.05.2024 09:03 [09:21:17]line ПРОДАЖА [09:21:17]line ТРК (МРК, ГНК): 11 [09:21:17]line Вид ГСМ : 2710194210 [09:21:17]line ДТ-К-5 [09:21:17]line 34.000 x 74.70 [09:21:17]line ИТОГ: 2539.80 [09:21:17]line Тип оплаты: Талоны: Топливная Карта [09:21:17]line 02750 [09:21:17]line ______________________ [09:21:17]line (подпись) [09:21:17]written 0, free lines is 4095 [09:21:17]Write to MH i2c: 01 00 00 9F 04 A3 [09:21:17]Write i2c OK [09:21:17]MH_I2C_Read... [09:21:17]Read from MH i2c: 01 [09:21:17]MH_I2C_Read... [09:21:17]Read from MH i2c: 01 07 00 [09:21:17]MH_I2C_Read... [09:21:17]Read from MH i2c: 01 07 00 9F 04 00 00 00 00 00 10 0E C8 [09:21:17]RasterBufferAndPrint [09:21:17]line [09:21:17]line [09:21:17]line [09:21:17]line [09:21:17]line [09:21:17]written 0, free lines is 3601 [09:21:17]MH_Cut [09:21:17]Write to MH i2c: D1 01 00 A6 04 01 7C [09:21:17]Write i2c OK [09:21:17]MH_I2C_Read... [09:21:17]Read from MH i2c: D1 [09:21:17]MH_I2C_Read... [09:21:17]Read from MH i2c: D1 01 00 [09:21:17]MH_I2C_Read... [09:21:17]Read from MH i2c: D1 01 00 A6 04 00 7B [09:21:17]Write to MH i2c: 01 00 00 A7 04 AB [09:21:17]Write i2c OK [09:21:17]MH_I2C_Read... [09:21:17]OFD Sender: No OFD packet to send [09:21:17]*** Cut start [09:21:17]*** Purtial cut [09:21:17]*** CUTSNS_PIN = 0 [09:21:18]*** Stage 1: CUTSNS_PIN = 1 [09:21:19]Read from MH i2c: 01 [09:21:19]MH_I2C_Read... [09:21:19]Read from MH i2c: 01 07 00 [09:21:19]MH_I2C_Read... [09:21:19]*** Stop cut motor [09:21:19]*** Cut end [09:21:19]Read from MH i2c: 01 07 00 A7 04 00 00 00 00 00 FF 0F C0 [09:21:19]process_action print_text done [09:21:19]requested_data is exist [09:21:19]produce_requested_data [09:21:19]requested_item fm.sn is exist - process it [09:21:19]wFMCommunicate request_size=4 [09:21:19]MH_SAM_APDU [09:21:19]CAPDU: 80 11 00 00 [09:21:19]Write to MH i2c: E2 08 00 A8 04 80 11 00 00 00 00 00 00 26 [09:21:19]Write i2c OK [09:21:19]MH_I2C_Read... [09:21:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:19]Read from MH i2c: E2 [09:21:19]MH_I2C_Read... [09:21:19]Read from MH i2c: E2 17 00 [09:21:19]MH_I2C_Read... [09:21:19]Read from MH i2c: E2 17 00 A8 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7C [09:21:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:21:19]wFMCommunicate OK [09:21:19]requested_item fd.num is exist - process it [09:21:19]SAM_PROTO_GetFieldsCounters [09:21:19]wFMCommunicate request_size=4 [09:21:19]MH_SAM_APDU [09:21:19]CAPDU: 80 13 00 00 [09:21:19]Write to MH i2c: E2 08 00 A9 04 80 13 00 00 00 00 00 00 29 [09:21:19]Write i2c OK [09:21:19]MH_I2C_Read... [09:21:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:21:20]Read from MH i2c: E2 [09:21:20]MH_I2C_Read... [09:21:20]Read from MH i2c: E2 62 00 [09:21:20]MH_I2C_Read... [09:21:20]Read from MH i2c: E2 62 00 A9 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 6B 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [09: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 6B 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:21:20]wFMCommunicate OK [09:21:20]SAM_PROTO_GetFieldsCounters done [09:21:20]requested_item shift.num is exist - process it [09:21:20]requested_item shift.opened is exist - process it [09:21:20]req_shift_opened [09:21:20]FM_GetShiftState [09:21:20]SAM_PROTO_GetShiftState [09:21:20]wFMCommunicate request_size=4 [09:21:20]MH_SAM_APDU [09:21:20]CAPDU: 80 13 01 00 [09:21:20]Write to MH i2c: E2 08 00 AA 04 80 13 01 00 00 00 00 00 2B [09:21:20]Write i2c OK [09:21:20]MH_I2C_Read... [09:21:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:20]Read from MH i2c: E2 [09:21:20]MH_I2C_Read... [09:21:20]Read from MH i2c: E2 0E 00 [09:21:20]MH_I2C_Read... [09:21:20]Read from MH i2c: E2 0E 00 AA 04 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 D7 [09:21:20]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [09:21:20]wFMCommunicate OK [09:21:20]SAM_PROTO_GetShiftState done [09:21:20]FM_GetShiftState done [09:21:20]req_shift_opened done [09:21:20]requested_item shift.open_date is exist - process it [09:21:20]req_shift_open_date [09:21:20]req_shift_open_date done [09:21:20]produce_requested_data done [09:21:20]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67435,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [09:21:20]process_action_free print_text [09:21:20]json_value_free [09:21:20]json_value_free done [09:21:20]process_json_proto returns [09:21:20]Send response to host [09:21:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67435,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [09:21:20]free response buf [09:21:20]execute_script done [09:21:20]execute_script returns [09:21:20]free content buf [09:21:20]Sock 8.Close socket [09:21:20]Sock 8.Thread stoped [09:21:21]accept exits with 9 [09:21:21]New connection [09:21:21]New thread 3067460964 created [09:21:21]Thread 3067604324 joined [09:21:21]Waiting for new connection... [09:21:21] Sock 9.Parse request [09:21:21]Sock 9.Check first char [09:21:21]Sock 9.First char is OK [09:21:21]request: POST /json_proto HTTP/1.0 [09:21:21]Method: POST [09:21:21]URL: /json_proto [09:21:21]Method is POST - this is cgi request [09:21:21]url: /json_proto [09:21:21]query_string will be loaded in cgi processing [09:21:21]execute_cgi json_proto POST (null) [09:21:21]execute_cgi path=json_proto method=POST [09:21:21]POST find Content-Length [09:21:21]Host: 172.17.41.195:8080 [09:21:21]Content-Length: 1209 [09:21:21]Content-Type: application/json [09:21:21] [09:21:21]POST finish read [09:21:21]Found Content-Length = 1209 [09:21:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507449\u000A16.05.2024 09:03\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 40.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2988.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:21]execute_script... [09:21:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507449\u000A16.05.2024 09:03\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 40.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2988.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:21]POST & json_proto [09:21:21]process_json_proto [09:21:21]json parsed OK: [09:21:21]protocol is kg_v1.0 [09:21:21]action value=print_text [09:21:21]process_action print_text [09:21:21]cmd_print_text [09:21:21]ExternCall_PrintAddStr [09:21:21]wPrintStart [09:21:21]Write to MH i2c: 01 00 00 AB 04 AF [09:21:21]Write i2c OK [09:21:21]MH_I2C_Read... [09:21:21]Read from MH i2c: 01 [09:21:21]MH_I2C_Read... [09:21:21]Read from MH i2c: 01 07 00 [09:21:21]MH_I2C_Read... [09:21:21]Read from MH i2c: 01 07 00 AB 04 00 00 00 00 00 FF 0F C4 [09:21:21]RasterBufferAndPrint [09:21:21]line *****ТОВАРНЫЙ ЧЕК***** [09:21:21]line АЗС-91 [09:21:21]line Партнер нефть [09:21:21]line 02508201610067 [09:21:21]line Кассир : Пайзулдаева А. [09:21:21]line Счет N : (1)507449 [09:21:21]line 16.05.2024 09:03 [09:21:21]line ПРОДАЖА [09:21:21]line ТРК (МРК, ГНК): 41 [09:21:21]line Вид ГСМ : 2710194210 [09:21:21]line ДТ-К-5 [09:21:21]line 40.000 x 74.70 [09:21:21]line ИТОГ: 2988.00 [09:21:21]line Тип оплаты: Талоны: Топливная Карта [09:21:21]line 02750 [09:21:21]line ______________________ [09:21:21]line (подпись) [09:21:21]written 0, free lines is 4095 [09:21:21]Write to MH i2c: 01 00 00 BF 04 C3 [09:21:21]Write i2c OK [09:21:21]MH_I2C_Read... [09:21:21]Read from MH i2c: 01 [09:21:21]MH_I2C_Read... [09:21:21]Read from MH i2c: 01 07 00 [09:21:21]MH_I2C_Read... [09:21:21]Read from MH i2c: 01 07 00 BF 04 00 00 00 00 00 10 0E E8 [09:21:21]RasterBufferAndPrint [09:21:21]line [09:21:21]line [09:21:21]line [09:21:21]line [09:21:21]line [09:21:21]written 0, free lines is 3602 [09:21:21]MH_Cut [09:21:21]Write to MH i2c: D1 01 00 C6 04 01 9C [09:21:21]Write i2c OK [09:21:21]MH_I2C_Read... [09:21:21]Read from MH i2c: D1 [09:21:21]MH_I2C_Read... [09:21:21]Read from MH i2c: D1 01 00 [09:21:21]MH_I2C_Read... [09:21:21]Read from MH i2c: D1 01 00 C6 04 00 9B [09:21:21]Write to MH i2c: 01 00 00 C7 04 CB [09:21:21]Write i2c OK [09:21:21]MH_I2C_Read... [09:21:21]*** Cut start [09:21:21]*** Purtial cut [09:21:21]*** Stage 1: CUTSNS_PIN = 1 [09:21:22]Read from MH i2c: 01 [09:21:22]MH_I2C_Read... [09:21:22]*** Stop cut motor [09:21:22]*** Cut end [09:21:22]Read from MH i2c: 01 07 00 [09:21:22]MH_I2C_Read... [09:21:22]Read from MH i2c: 01 07 00 C7 04 00 00 00 00 00 FF 0F E0 [09:21:22]process_action print_text done [09:21:22]requested_data is exist [09:21:22]produce_requested_data [09:21:22]requested_item fm.sn is exist - process it [09:21:22]wFMCommunicate request_size=4 [09:21:22]MH_SAM_APDU [09:21:22]CAPDU: 80 11 00 00 [09:21:22]Write to MH i2c: E2 08 00 C8 04 80 11 00 00 00 00 00 00 46 [09:21:22]Write i2c OK [09:21:22]MH_I2C_Read... [09:21:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:22]Read from MH i2c: E2 [09:21:22]MH_I2C_Read... [09:21:22]Read from MH i2c: E2 17 00 [09:21:22]MH_I2C_Read... [09:21:22]Read from MH i2c: E2 17 00 C8 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 9C [09:21:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:21:22]wFMCommunicate OK [09:21:22]requested_item fd.num is exist - process it [09:21:22]SAM_PROTO_GetFieldsCounters [09:21:22]wFMCommunicate request_size=4 [09:21:22]MH_SAM_APDU [09:21:22]CAPDU: 80 13 00 00 [09:21:22]Write to MH i2c: E2 08 00 C9 04 80 13 00 00 00 00 00 00 49 [09:21:22]Write i2c OK [09:21:22]MH_I2C_Read... [09:21:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:21:22]Read from MH i2c: E2 [09:21:22]MH_I2C_Read... [09:21:22]Read from MH i2c: E2 62 00 [09:21:22]MH_I2C_Read... [09:21:22]Read from MH i2c: E2 62 00 C9 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 6B 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [09:21:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 6B 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:21:22]wFMCommunicate OK [09:21:22]SAM_PROTO_GetFieldsCounters done [09:21:22]requested_item shift.num is exist - process it [09:21:22]requested_item shift.opened is exist - process it [09:21:22]req_shift_opened [09:21:22]FM_GetShiftState [09:21:22]SAM_PROTO_GetShiftState [09:21:22]wFMCommunicate request_size=4 [09:21:22]MH_SAM_APDU [09:21:22]CAPDU: 80 13 01 00 [09:21:22]Write to MH i2c: E2 08 00 CA 04 80 13 01 00 00 00 00 00 4B [09:21:22]Write i2c OK [09:21:22]MH_I2C_Read... [09:21:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:22]Read from MH i2c: E2 [09:21:22]MH_I2C_Read... [09:21:22]Read from MH i2c: E2 0E 00 [09:21:22]MH_I2C_Read... [09:21:22]Read from MH i2c: E2 0E 00 CA 04 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 F7 [09:21:22]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [09:21:22]wFMCommunicate OK [09:21:22]SAM_PROTO_GetShiftState done [09:21:22]FM_GetShiftState done [09:21:22]req_shift_opened done [09:21:22]requested_item shift.open_date is exist - process it [09:21:22]req_shift_open_date [09:21:22]req_shift_open_date done [09:21:22]produce_requested_data done [09:21:22]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67435,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [09:21:22]process_action_free print_text [09:21:22]json_value_free [09:21:22]json_value_free done [09:21:22]process_json_proto returns [09:21:22]Send response to host [09:21:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67435,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [09:21:22]free response buf [09:21:22]execute_script done [09:21:22]execute_script returns [09:21:22]free content buf [09:21:22]Sock 9.Close socket [09:21:22]Sock 9.Thread stoped [09:21:22]OFD Sender: No OFD packet to send [09:21:27]OFD Sender: No OFD packet to send [09:21:32]OFD Sender: No OFD packet to send [09:21:37]OFD Sender: No OFD packet to send [09:21:42]OFD Sender: No OFD packet to send [09:21:47]OFD Sender: No OFD packet to send [09:21:52]OFD Sender: No OFD packet to send [09:21:57]OFD Sender: No OFD packet to send [09:22:02]OFD Sender: No OFD packet to send [09:22:07]OFD Sender: No OFD packet to send [09:22:12]OFD Sender: No OFD packet to send [09:22:17]OFD Sender: No OFD packet to send [09:22:22]OFD Sender: No OFD packet to send [09:22:27]OFD Sender: No OFD packet to send [09:22:32]OFD Sender: No OFD packet to send [09:22:37]OFD Sender: No OFD packet to send [09:22:42]OFD Sender: No OFD packet to send [09:22:47]OFD Sender: No OFD packet to send [09:22:52]OFD Sender: No OFD packet to send [09:22:57]OFD Sender: No OFD packet to send [09:23:02]OFD Sender: No OFD packet to send [09:23:07]OFD Sender: No OFD packet to send [09:23:12]OFD Sender: No OFD packet to send [09:23:17]OFD Sender: No OFD packet to send [09:23:22]OFD Sender: No OFD packet to send [09:23:27]OFD Sender: No OFD packet to send [09:23:32]OFD Sender: No OFD packet to send [09:23:37]OFD Sender: No OFD packet to send [09:23:42]OFD Sender: No OFD packet to send [09:23:47]OFD Sender: No OFD packet to send [09:23:52]OFD Sender: No OFD packet to send [09:23:57]OFD Sender: No OFD packet to send [09:24:02]OFD Sender: No OFD packet to send [09:24:07]OFD Sender: No OFD packet to send [09:24:12]OFD Sender: No OFD packet to send [09:24:17]OFD Sender: No OFD packet to send [09:24:22]OFD Sender: No OFD packet to send [09:24:27]OFD Sender: No OFD packet to send [09:24:32]OFD Sender: No OFD packet to send [09:24:37]OFD Sender: No OFD packet to send [09:24:42]OFD Sender: No OFD packet to send [09:24:47]OFD Sender: No OFD packet to send [09:24:52]OFD Sender: No OFD packet to send [09:24:57]OFD Sender: No OFD packet to send [09:25:02]OFD Sender: No OFD packet to send [09:25:07]OFD Sender: No OFD packet to send [09:25:12]OFD Sender: No OFD packet to send [09:25:16]accept exits with 10 [09:25:16]New connection [09:25:16]New thread 3067604324 created [09:25:16]Thread 3067460964 joined [09:25:16]Waiting for new connection... [09:25:16] Sock 10.Parse request [09:25:16]Sock 10.Check first char [09:25:16]Sock 10.First char is OK [09:25:16]request: POST /json_proto HTTP/1.0 [09:25:16]Method: POST [09:25:16]URL: /json_proto [09:25:16]Method is POST - this is cgi request [09:25:16]url: /json_proto [09:25:16]query_string will be loaded in cgi processing [09:25:16]execute_cgi json_proto POST (null) [09:25:16]execute_cgi path=json_proto method=POST [09:25:16]POST find Content-Length [09:25:16]Host: 172.17.41.195:8080 [09:25:16]Content-Length: 1209 [09:25:16]Content-Type: application/json [09:25:16] [09:25:16]POST finish read [09:25:16]Found Content-Length = 1209 [09:25:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507451\u000A16.05.2024 09:07\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1494.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:16]execute_script... [09:25:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507451\u000A16.05.2024 09:07\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1494.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:16]POST & json_proto [09:25:16]process_json_proto [09:25:16]json parsed OK: [09:25:16]protocol is kg_v1.0 [09:25:16]action value=print_text [09:25:16]process_action print_text [09:25:16]cmd_print_text [09:25:16]ExternCall_PrintAddStr [09:25:16]wPrintStart [09:25:16]Write to MH i2c: 01 00 00 CB 04 CF [09:25:16]Write i2c OK [09:25:16]MH_I2C_Read... [09:25:16]Read from MH i2c: 01 [09:25:16]MH_I2C_Read... [09:25:16]Read from MH i2c: 01 07 00 [09:25:16]MH_I2C_Read... [09:25:16]Read from MH i2c: 01 07 00 CB 04 00 00 00 00 00 FF 0F E4 [09:25:16]RasterBufferAndPrint [09:25:16]line *****ТОВАРНЫЙ ЧЕК***** [09:25:16]line АЗС-91 [09:25:16]line Партнер нефть [09:25:16]line 02508201610067 [09:25:16]line Кассир : Пайзулдаева А. [09:25:16]line Счет N : (1)507451 [09:25:16]line 16.05.2024 09:07 [09:25:16]line ПРОДАЖА [09:25:16]line ТРК (МРК, ГНК): 21 [09:25:16]line Вид ГСМ : 2710194210 [09:25:16]line ДТ-К-5 [09:25:16]line 20.000 x 74.70 [09:25:16]line ИТОГ: 1494.00 [09:25:16]line Тип оплаты: Талоны: Топливная Карта [09:25:16]line 02750 [09:25:16]line ______________________ [09:25:16]line (подпись) [09:25:16]written 0, free lines is 4095 [09:25:16]Write to MH i2c: 01 00 00 DF 04 E3 [09:25:16]Write i2c OK [09:25:16]MH_I2C_Read... [09:25:16]Read from MH i2c: 01 [09:25:16]MH_I2C_Read... [09:25:16]Read from MH i2c: 01 07 00 [09:25:16]MH_I2C_Read... [09:25:16]Read from MH i2c: 01 07 00 DF 04 00 00 00 00 00 0F 0E 07 [09:25:16]RasterBufferAndPrint [09:25:16]line [09:25:16]line [09:25:16]line [09:25:16]line [09:25:16]line [09:25:16]written 0, free lines is 3601 [09:25:16]MH_Cut [09:25:16]Write to MH i2c: D1 01 00 E6 04 01 BC [09:25:16]Write i2c OK [09:25:16]MH_I2C_Read... [09:25:16]Read from MH i2c: D1 [09:25:16]MH_I2C_Read... [09:25:16]Read from MH i2c: D1 01 00 [09:25:16]MH_I2C_Read... [09:25:16]Read from MH i2c: D1 01 00 E6 04 00 BB [09:25:16]Write to MH i2c: 01 00 00 E7 04 EB [09:25:16]Write i2c OK [09:25:16]MH_I2C_Read... [09:25:17]*** Cut start [09:25:17]*** Purtial cut [09:25:17]*** CUTSNS_PIN = 0 [09:25:17]*** Stage 1: CUTSNS_PIN = 1 [09:25:17]OFD Sender: No OFD packet to send [09:25:19]Read from MH i2c: 01 [09:25:19]MH_I2C_Read... [09:25:19]Read from MH i2c: 01 07 00 [09:25:19]MH_I2C_Read... [09:25:19]*** Stop cut motor [09:25:19]*** Cut end [09:25:19]Read from MH i2c: 01 07 00 E7 04 00 00 00 00 00 FF 0F 00 [09:25:19]process_action print_text done [09:25:19]requested_data is exist [09:25:19]produce_requested_data [09:25:19]requested_item fm.sn is exist - process it [09:25:19]wFMCommunicate request_size=4 [09:25:19]MH_SAM_APDU [09:25:19]CAPDU: 80 11 00 00 [09:25:19]Write to MH i2c: E2 08 00 E8 04 80 11 00 00 00 00 00 00 66 [09:25:19]Write i2c OK [09:25:19]MH_I2C_Read... [09:25:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:19]Read from MH i2c: E2 [09:25:19]MH_I2C_Read... [09:25:19]Read from MH i2c: E2 17 00 [09:25:19]MH_I2C_Read... [09:25:19]Read from MH i2c: E2 17 00 E8 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BC [09:25:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:25:19]wFMCommunicate OK [09:25:19]requested_item fd.num is exist - process it [09:25:19]SAM_PROTO_GetFieldsCounters [09:25:19]wFMCommunicate request_size=4 [09:25:19]MH_SAM_APDU [09:25:19]CAPDU: 80 13 00 00 [09:25:19]Write to MH i2c: E2 08 00 E9 04 80 13 00 00 00 00 00 00 69 [09:25:19]Write i2c OK [09:25:19]MH_I2C_Read... [09:25:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:25:19]Read from MH i2c: E2 [09:25:19]MH_I2C_Read... [09:25:19]Read from MH i2c: E2 62 00 [09:25:19]MH_I2C_Read... [09:25:19]Read from MH i2c: E2 62 00 E9 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 6B 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [09: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 6B 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:25:19]wFMCommunicate OK [09:25:19]SAM_PROTO_GetFieldsCounters done [09:25:19]requested_item shift.num is exist - process it [09:25:19]requested_item shift.opened is exist - process it [09:25:19]req_shift_opened [09:25:19]FM_GetShiftState [09:25:19]SAM_PROTO_GetShiftState [09:25:19]wFMCommunicate request_size=4 [09:25:19]MH_SAM_APDU [09:25:19]CAPDU: 80 13 01 00 [09:25:19]Write to MH i2c: E2 08 00 EA 04 80 13 01 00 00 00 00 00 6B [09:25:19]Write i2c OK [09:25:19]MH_I2C_Read... [09:25:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:19]Read from MH i2c: E2 [09:25:19]MH_I2C_Read... [09:25:19]Read from MH i2c: E2 0E 00 [09:25:19]MH_I2C_Read... [09:25:19]Read from MH i2c: E2 0E 00 EA 04 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 17 [09:25:19]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [09:25:19]wFMCommunicate OK [09:25:19]SAM_PROTO_GetShiftState done [09:25:19]FM_GetShiftState done [09:25:19]req_shift_opened done [09:25:19]requested_item shift.open_date is exist - process it [09:25:19]req_shift_open_date [09:25:19]req_shift_open_date done [09:25:19]produce_requested_data done [09:25:19]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67435,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [09:25:19]process_action_free print_text [09:25:19]json_value_free [09:25:19]json_value_free done [09:25:19]process_json_proto returns [09:25:19]Send response to host [09:25:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67435,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [09:25:19]free response buf [09:25:19]execute_script done [09:25:19]execute_script returns [09:25:19]free content buf [09:25:19]Sock 10.Close socket [09:25:19]Sock 10.Thread stoped [09:25:22]OFD Sender: No OFD packet to send [09:25:27]OFD Sender: No OFD packet to send [09:25:32]OFD Sender: No OFD packet to send [09:25:37]OFD Sender: No OFD packet to send [09:25:42]OFD Sender: No OFD packet to send [09:25:47]OFD Sender: No OFD packet to send [09:25:52]OFD Sender: No OFD packet to send [09:25:57]OFD Sender: No OFD packet to send [09:26:02]OFD Sender: No OFD packet to send [09:26:04]accept exits with 8 [09:26:04]New connection [09:26:04]New thread 3067460964 created [09:26:04]Thread 3067604324 joined [09:26:04]Waiting for new connection... [09:26:04] Sock 8.Parse request [09:26:04]Sock 8.Check first char [09:26:04]Sock 8.First char is OK [09:26:04]request: POST /json_proto HTTP/1.0 [09:26:04]Method: POST [09:26:04]URL: /json_proto [09:26:04]Method is POST - this is cgi request [09:26:04]url: /json_proto [09:26:04]query_string will be loaded in cgi processing [09:26:04]execute_cgi json_proto POST (null) [09:26:04]execute_cgi path=json_proto method=POST [09:26:04]POST find Content-Length [09:26:04]Host: 172.17.41.195:8080 [09:26:04]Content-Length: 1217 [09:26:04]Content-Type: application/json [09:26:04] [09:26:04]POST finish read [09:26:04]Found Content-Length = 1217 [09:26:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507450\u000A16.05.2024 09:08\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 50.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 3735.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3972806\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:04]execute_script... [09:26:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507450\u000A16.05.2024 09:08\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 50.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 3735.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3972806\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:04]POST & json_proto [09:26:04]process_json_proto [09:26:04]json parsed OK: [09:26:04]protocol is kg_v1.0 [09:26:04]action value=print_text [09:26:04]process_action print_text [09:26:04]cmd_print_text [09:26:04]ExternCall_PrintAddStr [09:26:04]wPrintStart [09:26:04]Write to MH i2c: 01 00 00 EB 04 EF [09:26:04]Write i2c OK [09:26:04]MH_I2C_Read... [09:26:04]Read from MH i2c: 01 [09:26:04]MH_I2C_Read... [09:26:04]Read from MH i2c: 01 07 00 [09:26:04]MH_I2C_Read... [09:26:04]Read from MH i2c: 01 07 00 EB 04 00 00 00 00 00 FF 0F 04 [09:26:04]RasterBufferAndPrint [09:26:04]line *****ТОВАРНЫЙ ЧЕК***** [09:26:04]line АЗС-91 [09:26:04]line Партнер нефть [09:26:04]line 02508201610067 [09:26:04]line Кассир : Пайзулдаева А. [09:26:04]line Счет N : (1)507450 [09:26:04]line 16.05.2024 09:08 [09:26:04]line ПРОДАЖА [09:26:04]line ТРК (МРК, ГНК): 11 [09:26:04]line Вид ГСМ : 2710194210 [09:26:04]line ДТ-К-5 [09:26:04]line 50.000 x 74.70 [09:26:04]line ИТОГ: 3735.00 [09:26:04]line Тип оплаты: Талоны: Топливные Талоны [09:26:04]line 3972806 [09:26:04]line ______________________ [09:26:04]line (подпись) [09:26:04]written 0, free lines is 4095 [09:26:04]Write to MH i2c: 01 00 00 FF 04 03 [09:26:04]Write i2c OK [09:26:04]MH_I2C_Read... [09:26:04]Read from MH i2c: 01 [09:26:04]MH_I2C_Read... [09:26:04]Read from MH i2c: 01 07 00 [09:26:04]MH_I2C_Read... [09:26:04]Read from MH i2c: 01 07 00 FF 04 00 00 00 00 00 10 0E 28 [09:26:04]RasterBufferAndPrint [09:26:04]line [09:26:04]line [09:26:04]line [09:26:04]line [09:26:04]line [09:26:04]written 0, free lines is 3601 [09:26:04]MH_Cut [09:26:04]Write to MH i2c: D1 01 00 06 05 01 DD [09:26:04]Write i2c OK [09:26:04]MH_I2C_Read... [09:26:04]Read from MH i2c: D1 [09:26:04]MH_I2C_Read... [09:26:04]Read from MH i2c: D1 01 00 [09:26:04]MH_I2C_Read... [09:26:04]Read from MH i2c: D1 01 00 06 05 00 DC [09:26:04]Write to MH i2c: 01 00 00 07 05 0C [09:26:04]Write i2c OK [09:26:04]MH_I2C_Read... [09:26:05]*** Cut start [09:26:05]*** Purtial cut [09:26:05]*** Stage 1: CUTSNS_PIN = 1 [09:26:05]Read from MH i2c: 01 [09:26:05]MH_I2C_Read... [09:26:05]Read from MH i2c: 01 07 00 [09:26:05]MH_I2C_Read... [09:26:05]*** Stop cut motor [09:26:05]*** Cut end [09:26:05]Read from MH i2c: 01 07 00 07 05 00 00 00 00 00 FF 0F 21 [09:26:05]process_action print_text done [09:26:05]requested_data is exist [09:26:05]produce_requested_data [09:26:05]requested_item fm.sn is exist - process it [09:26:05]wFMCommunicate request_size=4 [09:26:05]MH_SAM_APDU [09:26:05]CAPDU: 80 11 00 00 [09:26:05]Write to MH i2c: E2 08 00 08 05 80 11 00 00 00 00 00 00 87 [09:26:05]Write i2c OK [09:26:05]MH_I2C_Read... [09:26:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:05]Read from MH i2c: E2 [09:26:05]MH_I2C_Read... [09:26:05]Read from MH i2c: E2 17 00 [09:26:05]MH_I2C_Read... [09:26:05]Read from MH i2c: E2 17 00 08 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DD [09:26:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:26:05]wFMCommunicate OK [09:26:05]requested_item fd.num is exist - process it [09:26:05]SAM_PROTO_GetFieldsCounters [09:26:05]wFMCommunicate request_size=4 [09:26:05]MH_SAM_APDU [09:26:05]CAPDU: 80 13 00 00 [09:26:05]Write to MH i2c: E2 08 00 09 05 80 13 00 00 00 00 00 00 8A [09:26:05]Write i2c OK [09:26:05]MH_I2C_Read... [09:26:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:05]Read from MH i2c: E2 [09:26:05]MH_I2C_Read... [09:26:05]Read from MH i2c: E2 62 00 [09:26:05]MH_I2C_Read... [09:26:05]Read from MH i2c: E2 62 00 09 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 6B 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [09:26: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 6B 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:26:05]wFMCommunicate OK [09:26:05]SAM_PROTO_GetFieldsCounters done [09:26:05]requested_item shift.num is exist - process it [09:26:05]requested_item shift.opened is exist - process it [09:26:05]req_shift_opened [09:26:05]FM_GetShiftState [09:26:05]SAM_PROTO_GetShiftState [09:26:05]wFMCommunicate request_size=4 [09:26:05]MH_SAM_APDU [09:26:05]CAPDU: 80 13 01 00 [09:26:05]Write to MH i2c: E2 08 00 0A 05 80 13 01 00 00 00 00 00 8C [09:26:05]Write i2c OK [09:26:05]MH_I2C_Read... [09:26:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:05]Read from MH i2c: E2 [09:26:05]MH_I2C_Read... [09:26:05]Read from MH i2c: E2 0E 00 [09:26:05]MH_I2C_Read... [09:26:05]Read from MH i2c: E2 0E 00 0A 05 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 38 [09:26:05]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [09:26:05]wFMCommunicate OK [09:26:05]SAM_PROTO_GetShiftState done [09:26:05]FM_GetShiftState done [09:26:05]req_shift_opened done [09:26:05]requested_item shift.open_date is exist - process it [09:26:05]req_shift_open_date [09:26:05]req_shift_open_date done [09:26:05]produce_requested_data done [09:26:05]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67435,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [09:26:05]process_action_free print_text [09:26:05]json_value_free [09:26:05]json_value_free done [09:26:05]process_json_proto returns [09:26:05]Send response to host [09:26:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67435,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [09:26:05]free response buf [09:26:05]execute_script done [09:26:05]execute_script returns [09:26:05]free content buf [09:26:05]Sock 8.Close socket [09:26:05]Sock 8.Thread stoped [09:26:07]OFD Sender: No OFD packet to send [09:26:12]OFD Sender: No OFD packet to send [09:26:17]OFD Sender: No OFD packet to send [09:26:22]OFD Sender: No OFD packet to send [09:26:27]OFD Sender: No OFD packet to send [09:26:32]OFD Sender: No OFD packet to send [09:26:37]OFD Sender: No OFD packet to send [09:26:42]OFD Sender: No OFD packet to send [09:26:47]OFD Sender: No OFD packet to send [09:26:52]OFD Sender: No OFD packet to send [09:26:57]OFD Sender: No OFD packet to send [09:27:02]OFD Sender: No OFD packet to send [09:27:07]OFD Sender: No OFD packet to send [09:27:12]OFD Sender: No OFD packet to send [09:27:17]OFD Sender: No OFD packet to send [09:27:22]OFD Sender: No OFD packet to send [09:27:27]OFD Sender: No OFD packet to send [09:27:32]OFD Sender: No OFD packet to send [09:27:37]OFD Sender: No OFD packet to send [09:27:42]OFD Sender: No OFD packet to send [09:27:47]OFD Sender: No OFD packet to send [09:27:52]OFD Sender: No OFD packet to send [09:27:57]OFD Sender: No OFD packet to send [09:28:03]OFD Sender: No OFD packet to send [09:28:08]OFD Sender: No OFD packet to send [09:28:13]OFD Sender: No OFD packet to send [09:28:18]OFD Sender: No OFD packet to send [09:28:23]OFD Sender: No OFD packet to send [09:28:28]OFD Sender: No OFD packet to send [09:28:33]OFD Sender: No OFD packet to send [09:28:38]OFD Sender: No OFD packet to send [09:28:43]OFD Sender: No OFD packet to send [09:28:48]OFD Sender: No OFD packet to send [09:28:53]OFD Sender: No OFD packet to send [09:28:57]accept exits with 9 [09:28:57]New connection [09:28:57]New thread 3067604324 created [09:28:57]Thread 3067460964 joined [09:28:57]Waiting for new connection... [09:28:57] Sock 9.Parse request [09:28:57]Sock 9.Check first char [09:28:57]Sock 9.First char is OK [09:28:57]request: POST /json_proto HTTP/1.0 [09:28:57]Method: POST [09:28:57]URL: /json_proto [09:28:57]Method is POST - this is cgi request [09:28:57]url: /json_proto [09:28:57]query_string will be loaded in cgi processing [09:28:57]execute_cgi json_proto POST (null) [09:28:57]execute_cgi path=json_proto method=POST [09:28:57]POST find Content-Length [09:28:57]Host: 172.17.41.195:8080 [09:28:57]Content-Length: 1209 [09:28:57]Content-Type: application/json [09:28:57] [09:28:57]POST finish read [09:28:57]Found Content-Length = 1209 [09:28:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507452\u000A16.05.2024 09:11\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1494.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:57]execute_script... [09:28:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507452\u000A16.05.2024 09:11\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1494.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:57]POST & json_proto [09:28:57]process_json_proto [09:28:57]json parsed OK: [09:28:57]protocol is kg_v1.0 [09:28:57]action value=print_text [09:28:57]process_action print_text [09:28:57]cmd_print_text [09:28:57]ExternCall_PrintAddStr [09:28:57]wPrintStart [09:28:57]Write to MH i2c: 01 00 00 0B 05 10 [09:28:57]Write i2c OK [09:28:57]MH_I2C_Read... [09:28:57]Read from MH i2c: 01 [09:28:57]MH_I2C_Read... [09:28:57]Read from MH i2c: 01 07 00 [09:28:57]MH_I2C_Read... [09:28:57]Read from MH i2c: 01 07 00 0B 05 00 00 00 00 00 FF 0F 25 [09:28:57]RasterBufferAndPrint [09:28:57]line *****ТОВАРНЫЙ ЧЕК***** [09:28:57]line АЗС-91 [09:28:57]line Партнер нефть [09:28:57]line 02508201610067 [09:28:57]line Кассир : Пайзулдаева А. [09:28:57]line Счет N : (1)507452 [09:28:57]line 16.05.2024 09:11 [09:28:57]line ПРОДАЖА [09:28:57]line ТРК (МРК, ГНК): 41 [09:28:57]line Вид ГСМ : 2710194210 [09:28:57]line ДТ-К-5 [09:28:57]line 20.000 x 74.70 [09:28:57]line ИТОГ: 1494.00 [09:28:57]line Тип оплаты: Талоны: Топливная Карта [09:28:57]line 02750 [09:28:57]line ______________________ [09:28:57]line (подпись) [09:28:57]written 0, free lines is 4095 [09:28:58]OFD Sender: No OFD packet to send [09:28:58]Write to MH i2c: 01 00 00 1F 05 24 [09:28:58]Write i2c OK [09:28:58]MH_I2C_Read... [09:28:58]Read from MH i2c: 01 [09:28:58]MH_I2C_Read... [09:28:58]Read from MH i2c: 01 07 00 [09:28:58]MH_I2C_Read... [09:28:58]Read from MH i2c: 01 07 00 1F 05 00 00 00 00 00 0F 0E 48 [09:28:58]RasterBufferAndPrint [09:28:58]line [09:28:58]line [09:28:58]line [09:28:58]line [09:28:58]line [09:28:58]written 0, free lines is 3600 [09:28:58]MH_Cut [09:28:58]Write to MH i2c: D1 01 00 26 05 01 FD [09:28:58]Write i2c OK [09:28:58]MH_I2C_Read... [09:28:58]Read from MH i2c: D1 [09:28:58]MH_I2C_Read... [09:28:58]Read from MH i2c: D1 01 00 [09:28:58]MH_I2C_Read... [09:28:58]Read from MH i2c: D1 01 00 26 05 00 FC [09:28:58]Write to MH i2c: 01 00 00 27 05 2C [09:28:58]Write i2c OK [09:28:58]MH_I2C_Read... [09:28:58]*** Cut start [09:28:58]*** Purtial cut [09:28:58]*** CUTSNS_PIN = 0 [09:28:58]*** Stage 1: CUTSNS_PIN = 1 [09:29:00]Read from MH i2c: 01 [09:29:00]MH_I2C_Read... [09:29:00]*** Stop cut motor [09:29:00]*** Cut end [09:29:00]Read from MH i2c: 01 07 00 [09:29:00]MH_I2C_Read... [09:29:00]Read from MH i2c: 01 07 00 27 05 00 00 00 00 00 FF 0F 41 [09:29:00]process_action print_text done [09:29:00]requested_data is exist [09:29:00]produce_requested_data [09:29:00]requested_item fm.sn is exist - process it [09:29:00]wFMCommunicate request_size=4 [09:29:00]MH_SAM_APDU [09:29:00]CAPDU: 80 11 00 00 [09:29:00]Write to MH i2c: E2 08 00 28 05 80 11 00 00 00 00 00 00 A7 [09:29:00]Write i2c OK [09:29:00]MH_I2C_Read... [09:29:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:00]Read from MH i2c: E2 [09:29:00]MH_I2C_Read... [09:29:00]Read from MH i2c: E2 17 00 [09:29:00]MH_I2C_Read... [09:29:00]Read from MH i2c: E2 17 00 28 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 FD [09:29:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:29:00]wFMCommunicate OK [09:29:00]requested_item fd.num is exist - process it [09:29:00]SAM_PROTO_GetFieldsCounters [09:29:00]wFMCommunicate request_size=4 [09:29:00]MH_SAM_APDU [09:29:00]CAPDU: 80 13 00 00 [09:29:00]Write to MH i2c: E2 08 00 29 05 80 13 00 00 00 00 00 00 AA [09:29:00]Write i2c OK [09:29:00]MH_I2C_Read... [09:29:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:29:00]Read from MH i2c: E2 [09:29:00]MH_I2C_Read... [09:29:00]Read from MH i2c: E2 62 00 [09:29:00]MH_I2C_Read... [09:29:00]Read from MH i2c: E2 62 00 29 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 6B 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [09:29: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 6B 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:29:00]wFMCommunicate OK [09:29:00]SAM_PROTO_GetFieldsCounters done [09:29:00]requested_item shift.num is exist - process it [09:29:00]requested_item shift.opened is exist - process it [09:29:00]req_shift_opened [09:29:00]FM_GetShiftState [09:29:00]SAM_PROTO_GetShiftState [09:29:00]wFMCommunicate request_size=4 [09:29:00]MH_SAM_APDU [09:29:00]CAPDU: 80 13 01 00 [09:29:00]Write to MH i2c: E2 08 00 2A 05 80 13 01 00 00 00 00 00 AC [09:29:00]Write i2c OK [09:29:00]MH_I2C_Read... [09:29:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:00]Read from MH i2c: E2 [09:29:00]MH_I2C_Read... [09:29:00]Read from MH i2c: E2 0E 00 [09:29:00]MH_I2C_Read... [09:29:00]Read from MH i2c: E2 0E 00 2A 05 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 58 [09:29:00]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [09:29:00]wFMCommunicate OK [09:29:00]SAM_PROTO_GetShiftState done [09:29:00]FM_GetShiftState done [09:29:00]req_shift_opened done [09:29:00]requested_item shift.open_date is exist - process it [09:29:00]req_shift_open_date [09:29:00]req_shift_open_date done [09:29:00]produce_requested_data done [09:29:00]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67435,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [09:29:00]process_action_free print_text [09:29:00]json_value_free [09:29:00]json_value_free done [09:29:00]process_json_proto returns [09:29:00]Send response to host [09:29:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67435,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [09:29:00]free response buf [09:29:00]execute_script done [09:29:00]execute_script returns [09:29:00]free content buf [09:29:00]Sock 9.Close socket [09:29:00]Sock 9.Thread stoped [09:29:03]OFD Sender: No OFD packet to send [09:29:08]OFD Sender: No OFD packet to send [09:29:13]OFD Sender: No OFD packet to send [09:29:18]OFD Sender: No OFD packet to send [09:29:23]OFD Sender: No OFD packet to send [09:29:28]OFD Sender: No OFD packet to send [09:29:33]OFD Sender: No OFD packet to send [09:29:38]OFD Sender: No OFD packet to send [09:29:43]OFD Sender: No OFD packet to send [09:29:48]OFD Sender: No OFD packet to send [09:29:53]OFD Sender: No OFD packet to send [09:29:58]OFD Sender: No OFD packet to send [09:30:03]OFD Sender: No OFD packet to send [09:30:08]OFD Sender: No OFD packet to send [09:30:13]OFD Sender: No OFD packet to send [09:30:18]OFD Sender: No OFD packet to send [09:30:23]OFD Sender: No OFD packet to send [09:30:28]OFD Sender: No OFD packet to send [09:30:33]OFD Sender: No OFD packet to send [09:30:38]OFD Sender: No OFD packet to send [09:30:43]OFD Sender: No OFD packet to send [09:30:48]OFD Sender: No OFD packet to send [09:30:53]OFD Sender: No OFD packet to send [09:30:58]OFD Sender: No OFD packet to send [09:31:03]OFD Sender: No OFD packet to send [09:31:08]OFD Sender: No OFD packet to send [09:31:13]OFD Sender: No OFD packet to send [09:31:18]OFD Sender: No OFD packet to send [09:31:23]OFD Sender: No OFD packet to send [09:31:28]OFD Sender: No OFD packet to send [09:31:33]OFD Sender: No OFD packet to send [09:31:38]OFD Sender: No OFD packet to send [09:31:38]accept exits with 8 [09:31:38]New connection [09:31:38]New thread 3067460964 created [09:31:38]Thread 3067604324 joined [09:31:38]Waiting for new connection... [09:31:38] Sock 8.Parse request [09:31:38]Sock 8.Check first char [09:31:38]Sock 8.First char is OK [09:31:38]request: POST /json_proto HTTP/1.0 [09:31:38]Method: POST [09:31:38]URL: /json_proto [09:31:38]Method is POST - this is cgi request [09:31:38]url: /json_proto [09:31:38]query_string will be loaded in cgi processing [09:31:38]execute_cgi json_proto POST (null) [09:31:38]execute_cgi path=json_proto method=POST [09:31:38]POST find Content-Length [09:31:38]Host: 172.17.41.195:8080 [09:31:38]Content-Length: 677 [09:31:38]Content-Type: application/json [09:31:38] [09:31:38]POST finish read [09:31:38]Found Content-Length = 677 [09:31:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507453", "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.80, "quantity" : 7.490, "sum" : 500.33, "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:31:38]execute_script... [09:31: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)507453", "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.80, "quantity" : 7.490, "sum" : 500.33, "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:31:38]POST & json_proto [09:31:38]process_json_proto [09:31:38]json parsed OK: [09:31:38]protocol is kg_v1.0 [09:31:38]action value=close_receipt [09:31:38]process_action close_receipt [09:31:38]cmd_close_receipt [09:31:38]MH_GetDate [09:31:38]Write to MH i2c: F0 00 00 2B 05 1F [09:31:38]Write i2c OK [09:31:38]MH_I2C_Read... [09:31:38]Read from MH i2c: F0 [09:31:38]MH_I2C_Read... [09:31:38]Read from MH i2c: F0 09 00 [09:31:38]MH_I2C_Read... [09:31:38]Read from MH i2c: F0 09 00 2B 05 00 7B D2 45 66 FC 21 6F 64 10 [09:31:38]GetLastDocTimeStamp 1715850845 [09:31:38]current date 1715851899 [09:31:38]FM_GetShiftState [09:31:38]SAM_PROTO_GetShiftState [09:31:38]wFMCommunicate request_size=4 [09:31:38]MH_SAM_APDU [09:31:38]CAPDU: 80 13 01 00 [09:31:38]Write to MH i2c: E2 08 00 2C 05 80 13 01 00 00 00 00 00 AE [09:31:38]Write i2c OK [09:31:38]MH_I2C_Read... [09:31:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:38]Read from MH i2c: E2 [09:31:38]MH_I2C_Read... [09:31:38]Read from MH i2c: E2 0E 00 [09:31:38]MH_I2C_Read... [09:31:38]Read from MH i2c: E2 0E 00 2C 05 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 5A [09:31:38]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [09:31:38]wFMCommunicate OK [09:31:38]SAM_PROTO_GetShiftState done [09:31:38]FM_GetShiftState done [09:31:38]opened in 1715818916 [09:31:38]opened+sec_in_day 1715905316 [09:31:38]quantity*price = 50033 [09:31:38]sum+1 = 50034 [09:31:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 34 16.05.2024 09:31 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67436 ФПД: 36158652155767 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T093139&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67436&fm=36158652155767&tin=02508201610067®Number=0000000000091845&sum=50000 [09:31:39]StoreToDocumentArchive [09:31:39]shift 357 fd 67436 [09:31:39]save to /storage/0357/doc_00067436 [09:31:39]save last doc name /storage/0357/doc_00067436 to /storage/kkm_last_doc_name [09:31:39]save OK [09:31:39]Clear old archive folders... [09:31:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:31:39]tlvbuf is 00C80D30 [09:31:39]SAM_PROTO_ClearQueue [09:31:39]wFMCommunicate request_size=4 [09:31:39]MH_SAM_APDU [09:31:39]CAPDU: 80 09 00 00 [09:31:39]Write to MH i2c: E2 08 00 39 05 80 09 00 00 00 00 00 00 B0 [09:31:39]Write i2c OK [09:31:39]MH_I2C_Read... [09:31:39]Read from MH i2c: E2 [09:31:39]MH_I2C_Read... [09:31:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:31:39]Read from MH i2c: E2 03 00 [09:31:39]MH_I2C_Read... [09:31:39]Read from MH i2c: E2 03 00 39 05 00 90 00 B2 [09:31:39]RAPDU: 90 00 [09:31:39]wFMCommunicate OK [09:31:39]SAM_PROTO_ClearQueue done [09:31:39]KKMCreateOFDPacket [09:31:39]OFDProtocolAddRootSTLVToBuf [09:31:39]FM_MakeSignedData [09:31:39]FM_MakeSignedData [09:31:39]SAM_PROTO_SignData [09:31:39]wFMCommunicate request_size=4 [09:31:39]MH_SAM_APDU [09:31:39]CAPDU: 80 0D 01 02 [09:31:39]Write to MH i2c: E2 08 00 3A 05 80 0D 01 02 00 00 00 00 B8 [09:31:39]Write i2c OK [09:31:39]MH_I2C_Read... [09:31:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:31:39]Read from MH i2c: E2 [09:31:39]MH_I2C_Read... [09:31:39]Read from MH i2c: E2 03 00 [09:31:39]MH_I2C_Read... [09:31:39]Read from MH i2c: E2 03 00 3A 05 00 90 00 B3 [09:31:39]RAPDU: 90 00 [09:31:39]wFMCommunicate OK [09:31:39]wFMCommunicate request_size=255 [09:31:39]MH_SAM_APDU [09:31: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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 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 7B D2 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6C 07 01 00 35 04 06 00 20 [09:31:39]Write to MH i2c: E2 02 01 3B 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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 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 7B D2 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6C 07 01 00 35 04 06 00 20 00 00 57 [09:31:39]Write i2c OK [09:31:39]MH_I2C_Read... [09:31:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:39]Read from MH i2c: E2 [09:31:39]MH_I2C_Read... [09:31:39]Read from MH i2c: E2 03 00 [09:31:39]MH_I2C_Read... [09:31:39]Read from MH i2c: E2 03 00 3B 05 00 90 00 B4 [09:31:39]RAPDU: 90 00 [09:31:39]wFMCommunicate OK [09:31:39]wFMCommunicate request_size=10 [09:31:39]MH_SAM_APDU [09:31:39]CAPDU: 80 0D 02 02 05 E2 D7 9E 07 77 [09:31:39]Write to MH i2c: E2 0D 00 3C 05 80 0D 02 02 05 00 E2 D7 9E 07 77 00 00 9A [09:31:39]Write i2c OK [09:31:39]MH_I2C_Read... [09:31:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:39]Read from MH i2c: E2 [09:31:39]MH_I2C_Read... [09:31:39]Read from MH i2c: E2 03 00 [09:31:39]MH_I2C_Read... [09:31:39]Read from MH i2c: E2 03 00 3C 05 00 90 00 B5 [09:31:39]RAPDU: 90 00 [09:31:39]wFMCommunicate OK [09:31:39]wFMCommunicate request_size=4 [09:31:39]MH_SAM_APDU [09:31:39]CAPDU: 80 0D 03 02 [09:31:39]Write to MH i2c: E2 08 00 3D 05 80 0D 03 02 00 00 00 00 BD [09:31:39]Write i2c OK [09:31:39]MH_I2C_Read... [09:31:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:31:40]Read from MH i2c: E2 [09:31:40]MH_I2C_Read... [09:31:40]Read from MH i2c: E2 0B 00 [09:31:40]MH_I2C_Read... [09:31:40]Read from MH i2c: E2 0B 00 3D 05 00 97 4E 72 EE 30 A7 3B 27 90 00 3C [09:31:40]RAPDU: 97 4E 72 EE 30 A7 3B 27 90 00 [09:31:40]wFMCommunicate OK [09:31:40]SAM_PROTO_SignData done [09:31:40]FM_MakeSignedData done [09:31:40]CreateOFDProtocolMessage [09:31:40]wFMCommunicate request_size=4 [09:31:40]MH_SAM_APDU [09:31:40]CAPDU: 80 11 00 00 [09:31:40]Write to MH i2c: E2 08 00 3E 05 80 11 00 00 00 00 00 00 BD [09:31:40]Write i2c OK [09:31:40]MH_I2C_Read... [09:31:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:40]Read from MH i2c: E2 [09:31:40]MH_I2C_Read... [09:31:40]Read from MH i2c: E2 17 00 [09:31:40]MH_I2C_Read... [09:31:40]Read from MH i2c: E2 17 00 3E 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 13 [09:31:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:31:40]wFMCommunicate OK [09:31:40]CreateOFDProtocolMessage done [09:31:40]OFDSenderStorePacket 67436 [09:31:40]StoreOFDPacket docnum=67436 [09:31:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 71 37 07 01 75 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 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 7B D2 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6C 07 01 00 35 04 06 00 20 E2 D7 9E 07 77 97 4E 72 EE 30 A7 3B 27 [09:31:40]CheckFolder [09:31:40]dirname=/storage/ofd_packets [09:31:40]CheckFolder done [09:31:40]ProducePacketName [09:31:40]name=ofd_packets/00067436 [09:31:40]NVStorageSaveData ofd_packets/00067436 [09:31:40]File name is /storage/ofd_packets/00067436 [09:31:40]Write 301 bytes [09:31:40]NVStorageSaveData done [09:31:40]OFDSenderStorePacket done [09:31:40]KKMCreateOFDPacket done [09:31:40]NVStorageSaveData kkm_last_timestamp [09:31:40]File name is /storage/kkm_last_timestamp [09:31:40]Write 4 bytes [09:31:40]NVStorageSaveData done [09:31:40]ExternCall_PrintAddStr [09:31:40]wPrintStart [09:31:40]Write to MH i2c: 01 00 00 3F 05 44 [09:31:40]Write i2c OK [09:31:40]MH_I2C_Read... [09:31:40]Read from MH i2c: 01 [09:31:40]MH_I2C_Read... [09:31:40]Read from MH i2c: 01 07 00 [09:31:40]MH_I2C_Read... [09:31:40]Read from MH i2c: 01 07 00 3F 05 00 00 00 00 00 FF 0F 59 [09:31:40]RasterBufferAndPrint [09:31:40]line Счет N : (1)507453 [09:31:40]line ИНН: 02508201610067 [09:31:40]line Контрольно-Кассовый Чек [09:31:40]line ПРОДАЖА [09:31:40]line ТРК (МРК, ГНК) : 33 [09:31:40]line Товар: 2710124130 [09:31:40]line Аи-92-К-5 [09:31:40]line 7.490 * 66.80 [09:31:40]line = 500.33 [09:31:40]line НДС 12% НСП 1% [09:31:40]line > о реализуемом товаре [09:31:40]line ОКРУГЛЕНИЕ: -0.33 [09:31:40]line ИТОГО: 500.00 [09:31:40]line Внесено: 500.00 [09:31:40]line СДАЧА: 0.00 [09:31:40]line НСП 1% : 4.43 [09:31:40]line НДС 12% : 53.13 [09:31:40]line Наличными: 500.00 [09:31:40]line Безнал.: 0.00 [09:31:40]line Место: АЗС № 91 "Партнер Нефть" [09:31:40]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [09:31:40]line СНО: Общий режим [09:31:40]line Чек 34 16.05.2024 09:31 [09:31:40]line Смена: 357 ФФД: 1.0 [09:31:40]line ЗНМ: 0300000119 [09:31:40]line РНМ: 0000000000091845 [09:31:40]line Версия ККМ: 001 [09:31:40]line ФМ: 0000000000871829 [09:31:40]line ФД: 67436 [09:31:40]line ФПД: 36158652155767 [09:31:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T093139&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67436&fm=36158652155767&tin=02508201610067®Number=0000000000091845&sum=50000 [09:31:40]written 0, free lines is 4095 [09:31:40]OFD Sender: Processing packet 67436 [packets to send 35, broken 34] [09:31:40]ProducePacketName [09:31:40]name=ofd_packets/00067436 [09:31:40]OFD Sender: To server: pG, [09:31:40]CommunicateWithHost lk.salyk.kg:30040 [09:31:40]ConnectInit lk.salyk.kg [09:31:40]Connected sock=9 [09:31: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 38 32 39 0F 01 00 00 71 37 07 01 75 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 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 7B D2 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6C 07 01 00 35 04 06 00 20 E2 D7 9E 07 77 97 4E 72 EE 30 A7 3B 27 [09:31:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 C9 08 47 00 07 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6C 07 01 00 F4 03 04 00 56 7A 45 66 B6 04 01 00 00 EA 3B 09 7D 33 F7 F4 94 [09:31:40]CommunicateWithHost err = 0 [09:31:40]CheckOFDResponse [09:31:40]1017 (14) - 77093643461234 [09:31:40]1041 (16) - 0000000000871829 [09:31:40]1040 (4) - 67436 [09:31:40]1012 (4) - 16.05.2024 03:15 [09:31:40]1206 (1) - 0 [09:31:40]OFD Sender: Remove packet 67436 [09:31:40]ProducePacketName [09:31:40]name=ofd_packets/00067436 [09:31:40]NVStorageDeleteData [09:31:40]Write to MH i2c: 01 00 00 69 05 6E [09:31:40]Write i2c OK [09:31:40]MH_I2C_Read... [09:31:40]Read from MH i2c: 01 [09:31:40]MH_I2C_Read... [09:31:40]Read from MH i2c: 01 07 00 [09:31:40]MH_I2C_Read... [09:31:40]Read from MH i2c: 01 07 00 69 05 00 00 00 00 00 C8 0C 49 [09:31:40]RasterBufferAndPrint [09:31:40]line [09:31:40]line [09:31:40]line [09:31:40]line [09:31:40]line [09:31:40]written 0, free lines is 3278 [09:31:40]MH_Cut [09:31:40]Write to MH i2c: D1 01 00 70 05 01 47 [09:31:40]Write i2c OK [09:31:40]MH_I2C_Read... [09:31:40]Read from MH i2c: D1 [09:31:40]MH_I2C_Read... [09:31:40]Read from MH i2c: D1 01 00 [09:31:40]MH_I2C_Read... [09:31:40]Read from MH i2c: D1 01 00 70 05 00 46 [09:31:40]Write to MH i2c: 01 00 00 71 05 76 [09:31:40]Write i2c OK [09:31:40]MH_I2C_Read... [09:31:41]OFD Sender: No OFD packet to send [09:31:41]*** Cut start [09:31:41]*** Purtial cut [09:31:41]*** Stage 1: CUTSNS_PIN = 1 [09:31:41]Read from MH i2c: 01 [09:31:41]MH_I2C_Read... [09:31:41]*** Stop cut motor [09:31:41]*** Cut end [09:31:41]Read from MH i2c: 01 07 00 [09:31:41]MH_I2C_Read... [09:31:41]Read from MH i2c: 01 07 00 71 05 00 00 00 00 00 FF 0F 8B [09:31:41]process_action close_receipt done [09:31:41]requested_data is exist [09:31:41]produce_requested_data [09:31:41]requested_item fm.sn is exist - process it [09:31:41]wFMCommunicate request_size=4 [09:31:41]MH_SAM_APDU [09:31:41]CAPDU: 80 11 00 00 [09:31:41]Write to MH i2c: E2 08 00 72 05 80 11 00 00 00 00 00 00 F1 [09:31:41]Write i2c OK [09:31:41]MH_I2C_Read... [09:31:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:42]Read from MH i2c: E2 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: E2 17 00 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: E2 17 00 72 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 47 [09:31:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:31:42]wFMCommunicate OK [09:31:42]requested_item fd.num is exist - process it [09:31:42]SAM_PROTO_GetFieldsCounters [09:31:42]wFMCommunicate request_size=4 [09:31:42]MH_SAM_APDU [09:31:42]CAPDU: 80 13 00 00 [09:31:42]Write to MH i2c: E2 08 00 73 05 80 13 00 00 00 00 00 00 F4 [09:31:42]Write i2c OK [09:31:42]MH_I2C_Read... [09:31:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:31:42]Read from MH i2c: E2 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: E2 62 00 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: E2 62 00 73 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 6C 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [09:31: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 6C 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:31:42]wFMCommunicate OK [09:31:42]SAM_PROTO_GetFieldsCounters done [09:31:42]requested_item shift.num is exist - process it [09:31:42]requested_item shift.opened is exist - process it [09:31:42]req_shift_opened [09:31:42]FM_GetShiftState [09:31:42]SAM_PROTO_GetShiftState [09:31:42]wFMCommunicate request_size=4 [09:31:42]MH_SAM_APDU [09:31:42]CAPDU: 80 13 01 00 [09:31:42]Write to MH i2c: E2 08 00 74 05 80 13 01 00 00 00 00 00 F6 [09:31:42]Write i2c OK [09:31:42]MH_I2C_Read... [09:31:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:42]Read from MH i2c: E2 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: E2 0E 00 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: E2 0E 00 74 05 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 A2 [09:31:42]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [09:31:42]wFMCommunicate OK [09:31:42]SAM_PROTO_GetShiftState done [09:31:42]FM_GetShiftState done [09:31:42]req_shift_opened done [09:31:42]requested_item shift.open_date is exist - process it [09:31:42]req_shift_open_date [09:31:42]req_shift_open_date done [09:31:42]produce_requested_data done [09:31:42]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67436,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [09:31:42]process_action_free close_receipt [09:31:42]json_value_free [09:31:42]json_value_free done [09:31:42]process_json_proto returns [09:31:42]Send response to host [09:31:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67436,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [09:31:42]free response buf [09:31:42]execute_script done [09:31:42]execute_script returns [09:31:42]free content buf [09:31:42]Sock 8.Close socket [09:31:42]Sock 8.Thread stoped [09:31:46]OFD Sender: No OFD packet to send [09:31:51]OFD Sender: No OFD packet to send [09:31:56]OFD Sender: No OFD packet to send [09:32:01]OFD Sender: No OFD packet to send [09:32:06]OFD Sender: No OFD packet to send [09:32:11]OFD Sender: No OFD packet to send [09:32:16]OFD Sender: No OFD packet to send [09:32:21]OFD Sender: No OFD packet to send [09:32:26]OFD Sender: No OFD packet to send [09:32:31]OFD Sender: No OFD packet to send [09:32:36]OFD Sender: No OFD packet to send [09:32:41]OFD Sender: No OFD packet to send [09:32:46]OFD Sender: No OFD packet to send [09:32:51]OFD Sender: No OFD packet to send [09:32:56]OFD Sender: No OFD packet to send [09:33:01]OFD Sender: No OFD packet to send [09:33:06]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:31]OFD Sender: No OFD packet to send [09:33:36]OFD Sender: No OFD packet to send [09:33:41]OFD Sender: No OFD packet to send [09:33:46]OFD Sender: No OFD packet to send [09:33:51]OFD Sender: No OFD packet to send [09:33:56]OFD Sender: No OFD packet to send [09:34:01]OFD Sender: No OFD packet to send [09:34:06]OFD Sender: No OFD packet to send [09:34:11]OFD Sender: No OFD packet to send [09:34:16]OFD Sender: No OFD packet to send [09:34:21]OFD Sender: No OFD packet to send [09:34:26]OFD Sender: No OFD packet to send [09:34:31]OFD Sender: No OFD packet to send [09:34:36]OFD Sender: No OFD packet to send [09:34:41]OFD Sender: No OFD packet to send [09:34:46]OFD Sender: No OFD packet to send [09:34:51]OFD Sender: No OFD packet to send [09:34:56]OFD Sender: No OFD packet to send [09:35:01]OFD Sender: No OFD packet to send [09:35:06]OFD Sender: No OFD packet to send [09:35:11]OFD Sender: No OFD packet to send [09:35:16]OFD Sender: No OFD packet to send [09:35:21]OFD Sender: No OFD packet to send [09:35:26]OFD Sender: No OFD packet to send [09:35:31]OFD Sender: No OFD packet to send [09:35:36]OFD Sender: No OFD packet to send [09:35:41]OFD Sender: No OFD packet to send [09:35:46]OFD Sender: No OFD packet to send [09:35:51]OFD Sender: No OFD packet to send [09:35:56]OFD Sender: No OFD packet to send [09:36:01]OFD Sender: No OFD packet to send [09:36:06]OFD Sender: No OFD packet to send [09:36:11]OFD Sender: No OFD packet to send [09:36:16]OFD Sender: No OFD packet to send [09:36:21]OFD Sender: No OFD packet to send [09:36:26]OFD Sender: No OFD packet to send [09:36:31]OFD Sender: No OFD packet to send [09:36:36]OFD Sender: No OFD packet to send [09:36:41]OFD Sender: No OFD packet to send [09:36:46]OFD Sender: No OFD packet to send [09:36:51]OFD Sender: No OFD packet to send [09:36:56]OFD Sender: No OFD packet to send [09:37:01]OFD Sender: No OFD packet to send [09:37:06]OFD Sender: No OFD packet to send [09:37:11]OFD Sender: No OFD packet to send [09:37:16]OFD Sender: No OFD packet to send [09:37:21]OFD Sender: No OFD packet to send [09:37:26]OFD Sender: No OFD packet to send [09:37:31]OFD Sender: No OFD packet to send [09:37:36]OFD Sender: No OFD packet to send [09:37:41]OFD Sender: No OFD packet to send [09:37:46]OFD Sender: No OFD packet to send [09:37:51]OFD Sender: No OFD packet to send [09:37:56]OFD Sender: No OFD packet to send [09:38:01]OFD Sender: No OFD packet to send [09:38:06]OFD Sender: No OFD packet to send [09:38:11]OFD Sender: No OFD packet to send [09:38:16]OFD Sender: No OFD packet to send [09:38:21]OFD Sender: No OFD packet to send [09:38:26]OFD Sender: No OFD packet to send [09:38:31]OFD Sender: No OFD packet to send [09:38:36]OFD Sender: No OFD packet to send [09:38:41]OFD Sender: No OFD packet to send [09:38:46]OFD Sender: No OFD packet to send [09:38:51]OFD Sender: No OFD packet to send [09:38:56]OFD Sender: No OFD packet to send [09:39:01]OFD Sender: No OFD packet to send [09:39:06]OFD Sender: No OFD packet to send [09:39:11]OFD Sender: No OFD packet to send [09:39:16]OFD Sender: No OFD packet to send [09:39:21]OFD Sender: No OFD packet to send [09:39:26]OFD Sender: No OFD packet to send [09:39:31]OFD Sender: No OFD packet to send [09:39:36]OFD Sender: No OFD packet to send [09:39:41]OFD Sender: No OFD packet to send [09:39:46]OFD Sender: No OFD packet to send [09:39:51]OFD Sender: No OFD packet to send [09:39:53]accept exits with 10 [09:39:53]New connection [09:39:53]New thread 3067604324 created [09:39:53]Thread 3067460964 joined [09:39:53]Waiting for new connection... [09:39:53] Sock 10.Parse request [09:39:53]Sock 10.Check first char [09:39:53]Sock 10.First char is OK [09:39:53]request: POST /json_proto HTTP/1.0 [09:39:53]Method: POST [09:39:53]URL: /json_proto [09:39:53]Method is POST - this is cgi request [09:39:53]url: /json_proto [09:39:53]query_string will be loaded in cgi processing [09:39:53]execute_cgi json_proto POST (null) [09:39:53]execute_cgi path=json_proto method=POST [09:39:53]POST find Content-Length [09:39:53]Host: 172.17.41.195:8080 [09:39:53]Content-Length: 1209 [09:39:53]Content-Type: application/json [09:39:53] [09:39:53]POST finish read [09:39:53]Found Content-Length = 1209 [09:39:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507454\u000A16.05.2024 09:22\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 15.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1120.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:53]execute_script... [09:39:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507454\u000A16.05.2024 09:22\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 15.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1120.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:53]POST & json_proto [09:39:53]process_json_proto [09:39:53]json parsed OK: [09:39:53]protocol is kg_v1.0 [09:39:53]action value=print_text [09:39:53]process_action print_text [09:39:53]cmd_print_text [09:39:53]ExternCall_PrintAddStr [09:39:53]wPrintStart [09:39:53]Write to MH i2c: 01 00 00 75 05 7A [09:39:53]Write i2c OK [09:39:53]MH_I2C_Read... [09:39:53]Read from MH i2c: 01 [09:39:53]MH_I2C_Read... [09:39:53]Read from MH i2c: 01 07 00 [09:39:53]MH_I2C_Read... [09:39:53]Read from MH i2c: 01 07 00 75 05 00 00 00 00 00 FF 0F 8F [09:39:53]RasterBufferAndPrint [09:39:53]line *****ТОВАРНЫЙ ЧЕК***** [09:39:53]line АЗС-91 [09:39:53]line Партнер нефть [09:39:53]line 02508201610067 [09:39:53]line Кассир : Пайзулдаева А. [09:39:53]line Счет N : (1)507454 [09:39:53]line 16.05.2024 09:22 [09:39:53]line ПРОДАЖА [09:39:53]line ТРК (МРК, ГНК): 31 [09:39:53]line Вид ГСМ : 2710194210 [09:39:53]line ДТ-К-5 [09:39:53]line 15.000 x 74.70 [09:39:53]line ИТОГ: 1120.50 [09:39:53]line Тип оплаты: Талоны: Топливная Карта [09:39:53]line 02750 [09:39:53]line ______________________ [09:39:53]line (подпись) [09:39:53]written 0, free lines is 4095 [09:39:54]Write to MH i2c: 01 00 00 89 05 8E [09:39:54]Write i2c OK [09:39:54]MH_I2C_Read... [09:39:54]Read from MH i2c: 01 [09:39:54]MH_I2C_Read... [09:39:54]Read from MH i2c: 01 07 00 [09:39:54]MH_I2C_Read... [09:39:54]Read from MH i2c: 01 07 00 89 05 00 00 00 00 00 10 0E B3 [09:39:54]RasterBufferAndPrint [09:39:54]line [09:39:54]line [09:39:54]line [09:39:54]line [09:39:54]line [09:39:54]written 0, free lines is 3601 [09:39:54]MH_Cut [09:39:54]Write to MH i2c: D1 01 00 90 05 01 67 [09:39:54]Write i2c OK [09:39:54]MH_I2C_Read... [09:39:54]Read from MH i2c: D1 [09:39:54]MH_I2C_Read... [09:39:54]Read from MH i2c: D1 01 00 [09:39:54]MH_I2C_Read... [09:39:54]Read from MH i2c: D1 01 00 90 05 00 66 [09:39:54]Write to MH i2c: 01 00 00 91 05 96 [09:39:54]Write i2c OK [09:39:54]MH_I2C_Read... [09:39:54]*** Cut start [09:39:54]*** Purtial cut [09:39:54]*** CUTSNS_PIN = 0 [09:39:54]*** Stage 1: CUTSNS_PIN = 1 [09:39:56]OFD Sender: No OFD packet to send [09:39:56]Read from MH i2c: 01 [09:39:56]MH_I2C_Read... [09:39:56]*** Stop cut motor [09:39:56]*** Cut end [09:39:56]Read from MH i2c: 01 07 00 [09:39:56]MH_I2C_Read... [09:39:56]Read from MH i2c: 01 07 00 91 05 00 00 00 00 00 FF 0F AB [09:39:56]process_action print_text done [09:39:56]requested_data is exist [09:39:56]produce_requested_data [09:39:56]requested_item fm.sn is exist - process it [09:39:56]wFMCommunicate request_size=4 [09:39:56]MH_SAM_APDU [09:39:56]CAPDU: 80 11 00 00 [09:39:56]Write to MH i2c: E2 08 00 92 05 80 11 00 00 00 00 00 00 11 [09:39:56]Write i2c OK [09:39:56]MH_I2C_Read... [09:39:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:56]Read from MH i2c: E2 [09:39:56]MH_I2C_Read... [09:39:56]Read from MH i2c: E2 17 00 [09:39:56]MH_I2C_Read... [09:39:56]Read from MH i2c: E2 17 00 92 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 67 [09:39:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:39:56]wFMCommunicate OK [09:39:56]requested_item fd.num is exist - process it [09:39:56]SAM_PROTO_GetFieldsCounters [09:39:56]wFMCommunicate request_size=4 [09:39:56]MH_SAM_APDU [09:39:56]CAPDU: 80 13 00 00 [09:39:56]Write to MH i2c: E2 08 00 93 05 80 13 00 00 00 00 00 00 14 [09:39:56]Write i2c OK [09:39:56]MH_I2C_Read... [09:39:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:39:56]Read from MH i2c: E2 [09:39:56]MH_I2C_Read... [09:39:56]Read from MH i2c: E2 62 00 [09:39:56]MH_I2C_Read... [09:39:56]Read from MH i2c: E2 62 00 93 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 6C 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [09:39: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 6C 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:39:56]wFMCommunicate OK [09:39:56]SAM_PROTO_GetFieldsCounters done [09:39:56]requested_item shift.num is exist - process it [09:39:56]requested_item shift.opened is exist - process it [09:39:56]req_shift_opened [09:39:56]FM_GetShiftState [09:39:56]SAM_PROTO_GetShiftState [09:39:56]wFMCommunicate request_size=4 [09:39:56]MH_SAM_APDU [09:39:56]CAPDU: 80 13 01 00 [09:39:56]Write to MH i2c: E2 08 00 94 05 80 13 01 00 00 00 00 00 16 [09:39:56]Write i2c OK [09:39:56]MH_I2C_Read... [09:39:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:56]Read from MH i2c: E2 [09:39:56]MH_I2C_Read... [09:39:56]Read from MH i2c: E2 0E 00 [09:39:56]MH_I2C_Read... [09:39:56]Read from MH i2c: E2 0E 00 94 05 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 C2 [09:39:56]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [09:39:56]wFMCommunicate OK [09:39:56]SAM_PROTO_GetShiftState done [09:39:56]FM_GetShiftState done [09:39:56]req_shift_opened done [09:39:56]requested_item shift.open_date is exist - process it [09:39:56]req_shift_open_date [09:39:56]req_shift_open_date done [09:39:56]produce_requested_data done [09:39:56]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67436,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [09:39:56]process_action_free print_text [09:39:56]json_value_free [09:39:56]json_value_free done [09:39:56]process_json_proto returns [09:39:56]Send response to host [09:39:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67436,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [09:39:56]free response buf [09:39:56]execute_script done [09:39:56]execute_script returns [09:39:56]free content buf [09:39:56]Sock 10.Close socket [09:39:56]Sock 10.Thread stoped [09:40:01]OFD Sender: No OFD packet to send [09:40:06]OFD Sender: No OFD packet to send [09:40:11]OFD Sender: No OFD packet to send [09:40:16]OFD Sender: No OFD packet to send [09:40:21]OFD Sender: No OFD packet to send [09:40:26]OFD Sender: No OFD packet to send [09:40:31]OFD Sender: No OFD packet to send [09:40:36]OFD Sender: No OFD packet to send [09:40:41]OFD Sender: No OFD packet to send [09:40:46]OFD Sender: No OFD packet to send [09:40:51]OFD Sender: No OFD packet to send [09:40:56]OFD Sender: No OFD packet to send [09:41:01]OFD Sender: No OFD packet to send [09:41:06]OFD Sender: No OFD packet to send [09:41:11]OFD Sender: No OFD packet to send [09:41:16]OFD Sender: No OFD packet to send [09:41:21]OFD Sender: No OFD packet to send [09:41:26]OFD Sender: No OFD packet to send [09:41:31]OFD Sender: No OFD packet to send [09:41:36]OFD Sender: No OFD packet to send [09:41:41]OFD Sender: No OFD packet to send [09:41:46]OFD Sender: No OFD packet to send [09:41:51]OFD Sender: No OFD packet to send [09:41:56]OFD Sender: No OFD packet to send [09:42:01]OFD Sender: No OFD packet to send [09:42:06]OFD Sender: No OFD packet to send [09:42:11]OFD Sender: No OFD packet to send [09:42:14]recv_with_timeout no data received [09:42:16]OFD Sender: No OFD packet to send [09:42:21]OFD Sender: No OFD packet to send [09:42:26]OFD Sender: No OFD packet to send [09:42:31]OFD Sender: No OFD packet to send [09:42:35]accept exits with 8 [09:42:35]New connection [09:42:35]New thread 3067460964 created [09:42:35]Thread 3067604324 joined [09:42:35]Waiting for new connection... [09:42:35] Sock 8.Parse request [09:42:35]Sock 8.Check first char [09:42:35]Sock 8.First char is OK [09:42:35]request: POST /json_proto HTTP/1.0 [09:42:35]Method: POST [09:42:35]URL: /json_proto [09:42:35]Method is POST - this is cgi request [09:42:35]url: /json_proto [09:42:35]query_string will be loaded in cgi processing [09:42:35]execute_cgi json_proto POST (null) [09:42:35]execute_cgi path=json_proto method=POST [09:42:35]POST find Content-Length [09:42:35]Host: 172.17.41.195:8080 [09:42:35]Content-Length: 1209 [09:42:35]Content-Type: application/json [09:42:35] [09:42:35]POST finish read [09:42:35]Found Content-Length = 1209 [09:42:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507455\u000A16.05.2024 09:25\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1494.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:35]execute_script... [09:42:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507455\u000A16.05.2024 09:25\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1494.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:35]POST & json_proto [09:42:35]process_json_proto [09:42:35]json parsed OK: [09:42:35]protocol is kg_v1.0 [09:42:35]action value=print_text [09:42:35]process_action print_text [09:42:35]cmd_print_text [09:42:35]ExternCall_PrintAddStr [09:42:35]wPrintStart [09:42:35]Write to MH i2c: 01 00 00 95 05 9A [09:42:35]Write i2c OK [09:42:35]MH_I2C_Read... [09:42:35]Read from MH i2c: 01 [09:42:35]MH_I2C_Read... [09:42:35]Read from MH i2c: 01 07 00 [09:42:35]MH_I2C_Read... [09:42:35]Read from MH i2c: 01 07 00 95 05 00 00 00 00 00 FF 0F AF [09:42:35]RasterBufferAndPrint [09:42:35]line *****ТОВАРНЫЙ ЧЕК***** [09:42:35]line АЗС-91 [09:42:35]line Партнер нефть [09:42:35]line 02508201610067 [09:42:35]line Кассир : Пайзулдаева А. [09:42:35]line Счет N : (1)507455 [09:42:35]line 16.05.2024 09:25 [09:42:35]line ПРОДАЖА [09:42:35]line ТРК (МРК, ГНК): 41 [09:42:35]line Вид ГСМ : 2710194210 [09:42:35]line ДТ-К-5 [09:42:35]line 20.000 x 74.70 [09:42:35]line ИТОГ: 1494.00 [09:42:35]line Тип оплаты: Талоны: Топливная Карта [09:42:35]line 02750 [09:42:35]line ______________________ [09:42:35]line (подпись) [09:42:35]written 0, free lines is 4095 [09:42:35]Write to MH i2c: 01 00 00 A9 05 AE [09:42:35]Write i2c OK [09:42:35]MH_I2C_Read... [09:42:35]Read from MH i2c: 01 [09:42:35]MH_I2C_Read... [09:42:35]Read from MH i2c: 01 07 00 [09:42:35]MH_I2C_Read... [09:42:35]Read from MH i2c: 01 07 00 A9 05 00 00 00 00 00 10 0E D3 [09:42:35]RasterBufferAndPrint [09:42:35]line [09:42:35]line [09:42:35]line [09:42:35]line [09:42:35]line [09:42:35]written 0, free lines is 3602 [09:42:35]MH_Cut [09:42:35]Write to MH i2c: D1 01 00 B0 05 01 87 [09:42:35]Write i2c OK [09:42:35]MH_I2C_Read... [09:42:35]Read from MH i2c: D1 [09:42:35]MH_I2C_Read... [09:42:35]Read from MH i2c: D1 01 00 [09:42:35]MH_I2C_Read... [09:42:35]Read from MH i2c: D1 01 00 B0 05 00 86 [09:42:35]Write to MH i2c: 01 00 00 B1 05 B6 [09:42:35]Write i2c OK [09:42:35]MH_I2C_Read... [09:42:36]*** Cut start [09:42:36]*** Purtial cut [09:42:36]*** Stage 1: CUTSNS_PIN = 1 [09:42:36]Read from MH i2c: 01 [09:42:36]MH_I2C_Read... [09:42:36]*** Stop cut motor [09:42:36]*** Cut end [09:42:36]Read from MH i2c: 01 07 00 [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: 01 07 00 B1 05 00 00 00 00 00 FF 0F CB [09:42:36]process_action print_text done [09:42:36]requested_data is exist [09:42:36]produce_requested_data [09:42:36]requested_item fm.sn is exist - process it [09:42:36]wFMCommunicate request_size=4 [09:42:36]MH_SAM_APDU [09:42:36]CAPDU: 80 11 00 00 [09:42:36]Write to MH i2c: E2 08 00 B2 05 80 11 00 00 00 00 00 00 31 [09:42:36]Write i2c OK [09:42:36]MH_I2C_Read... [09:42:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:36]Read from MH i2c: E2 [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: E2 17 00 [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: E2 17 00 B2 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 87 [09:42:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:42:36]wFMCommunicate OK [09:42:36]requested_item fd.num is exist - process it [09:42:36]SAM_PROTO_GetFieldsCounters [09:42:36]wFMCommunicate request_size=4 [09:42:36]MH_SAM_APDU [09:42:36]CAPDU: 80 13 00 00 [09:42:36]Write to MH i2c: E2 08 00 B3 05 80 13 00 00 00 00 00 00 34 [09:42:36]Write i2c OK [09:42:36]MH_I2C_Read... [09:42:36]OFD Sender: No OFD packet to send [09:42:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:36]Read from MH i2c: E2 [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: E2 62 00 [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: E2 62 00 B3 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 6C 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [09:42: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 6C 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:42:36]wFMCommunicate OK [09:42:36]SAM_PROTO_GetFieldsCounters done [09:42:36]requested_item shift.num is exist - process it [09:42:36]requested_item shift.opened is exist - process it [09:42:36]req_shift_opened [09:42:36]FM_GetShiftState [09:42:36]SAM_PROTO_GetShiftState [09:42:36]wFMCommunicate request_size=4 [09:42:36]MH_SAM_APDU [09:42:36]CAPDU: 80 13 01 00 [09:42:36]Write to MH i2c: E2 08 00 B4 05 80 13 01 00 00 00 00 00 36 [09:42:36]Write i2c OK [09:42:36]MH_I2C_Read... [09:42:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:36]Read from MH i2c: E2 [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: E2 0E 00 [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: E2 0E 00 B4 05 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 E2 [09:42:36]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [09:42:36]wFMCommunicate OK [09:42:36]SAM_PROTO_GetShiftState done [09:42:36]FM_GetShiftState done [09:42:36]req_shift_opened done [09:42:36]requested_item shift.open_date is exist - process it [09:42:36]req_shift_open_date [09:42:36]req_shift_open_date done [09:42:36]produce_requested_data done [09:42:36]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67436,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [09:42:36]process_action_free print_text [09:42:36]json_value_free [09:42:36]json_value_free done [09:42:36]process_json_proto returns [09:42:36]Send response to host [09:42:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67436,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [09:42:36]free response buf [09:42:36]execute_script done [09:42:36]execute_script returns [09:42:36]free content buf [09:42:36]Sock 8.Close socket [09:42:36]Sock 8.Thread stoped [09:42:41]OFD Sender: No OFD packet to send [09:42:46]OFD Sender: No OFD packet to send [09:42:51]OFD Sender: No OFD packet to send [09:42:56]OFD Sender: No OFD packet to send [09:43:01]OFD Sender: No OFD packet to send [09:43:06]OFD Sender: No OFD packet to send [09:43:11]OFD Sender: No OFD packet to send [09:43:16]OFD Sender: No OFD packet to send [09:43:21]OFD Sender: No OFD packet to send [09:43:26]OFD Sender: No OFD packet to send [09:43:31]OFD Sender: No OFD packet to send [09:43:36]OFD Sender: No OFD packet to send [09:43:41]OFD Sender: No OFD packet to send [09:43:46]OFD Sender: No OFD packet to send [09:43:51]OFD Sender: No OFD packet to send [09:43:56]OFD Sender: No OFD packet to send [09:44:01]OFD Sender: No OFD packet to send [09:44:06]OFD Sender: No OFD packet to send [09:44:11]OFD Sender: No OFD packet to send [09:44:16]OFD Sender: No OFD packet to send [09:44:21]OFD Sender: No OFD packet to send [09:44:26]OFD Sender: No OFD packet to send [09:44:31]OFD Sender: No OFD packet to send [09:44:36]OFD Sender: No OFD packet to send [09:44:41]OFD Sender: No OFD packet to send [09:44:46]OFD Sender: No OFD packet to send [09:44:51]OFD Sender: No OFD packet to send [09:44:56]OFD Sender: No OFD packet to send [09:45:01]OFD Sender: No OFD packet to send [09:45:06]OFD Sender: No OFD packet to send [09:45:11]OFD Sender: No OFD packet to send [09:45:16]OFD Sender: No OFD packet to send [09:45:21]OFD Sender: No OFD packet to send [09:45:26]OFD Sender: No OFD packet to send [09:45:31]OFD Sender: No OFD packet to send [09:45:36]OFD Sender: No OFD packet to send [09:45:41]OFD Sender: No OFD packet to send [09:45:46]OFD Sender: No OFD packet to send [09:45:51]OFD Sender: No OFD packet to send [09:45:56]OFD Sender: No OFD packet to send [09:46:02]OFD Sender: No OFD packet to send [09:46:05]accept exits with 9 [09:46:05]New connection [09:46:05]New thread 3067604324 created [09:46:05]Thread 3067460964 joined [09:46:05]Waiting for new connection... [09:46:05] Sock 9.Parse request [09:46:05]Sock 9.Check first char [09:46:05]Sock 9.First char is OK [09:46:05]request: POST /json_proto HTTP/1.0 [09:46:05]Method: POST [09:46:05]URL: /json_proto [09:46:05]Method is POST - this is cgi request [09:46:05]url: /json_proto [09:46:05]query_string will be loaded in cgi processing [09:46:05]execute_cgi json_proto POST (null) [09:46:05]execute_cgi path=json_proto method=POST [09:46:05]POST find Content-Length [09:46:05]Host: 172.17.41.195:8080 [09:46:05]Content-Length: 1173 [09:46:05]Content-Type: application/json [09:46:05] [09:46:05]POST finish read [09:46:05]Found Content-Length = 1173 [09:46:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507456\u000A16.05.2024 09:28\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 668.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30039368\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:05]execute_script... [09:46:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507456\u000A16.05.2024 09:28\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 668.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30039368\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:05]POST & json_proto [09:46:05]process_json_proto [09:46:05]json parsed OK: [09:46:05]protocol is kg_v1.0 [09:46:05]action value=print_text [09:46:05]process_action print_text [09:46:05]cmd_print_text [09:46:05]ExternCall_PrintAddStr [09:46:05]wPrintStart [09:46:05]Write to MH i2c: 01 00 00 B5 05 BA [09:46:05]Write i2c OK [09:46:05]MH_I2C_Read... [09:46:05]Read from MH i2c: 01 [09:46:05]MH_I2C_Read... [09:46:05]Read from MH i2c: 01 07 00 [09:46:05]MH_I2C_Read... [09:46:05]Read from MH i2c: 01 07 00 B5 05 00 00 00 00 00 FF 0F CF [09:46:05]RasterBufferAndPrint [09:46:05]line *****ТОВАРНЫЙ ЧЕК***** [09:46:05]line АЗС-91 [09:46:05]line Партнер нефть [09:46:05]line 02508201610067 [09:46:05]line Кассир : Пайзулдаева А. [09:46:05]line Счет N : (1)507456 [09:46:05]line 16.05.2024 09:28 [09:46:05]line ПРОДАЖА [09:46:05]line ТРК (МРК, ГНК): 33 [09:46:05]line Вид ГСМ : 2710124130 [09:46:05]line Аи-92-К-5 [09:46:05]line 10.000 x 66.80 [09:46:05]line ИТОГ: 668.00 [09:46:05]line Тип оплаты: Талоны: ТК ГПНА Online [09:46:05]line 30039368 [09:46:05]line ______________________ [09:46:05]line (подпись) [09:46:05]written 0, free lines is 4095 [09:46:05]Write to MH i2c: 01 00 00 C9 05 CE [09:46:05]Write i2c OK [09:46:05]MH_I2C_Read... [09:46:05]Read from MH i2c: 01 [09:46:05]MH_I2C_Read... [09:46:05]Read from MH i2c: 01 07 00 [09:46:05]MH_I2C_Read... [09:46:05]Read from MH i2c: 01 07 00 C9 05 00 00 00 00 00 13 0E F6 [09:46:05]RasterBufferAndPrint [09:46:05]line [09:46:05]line [09:46:05]line [09:46:05]line [09:46:05]line [09:46:05]written 0, free lines is 3605 [09:46:05]MH_Cut [09:46:05]Write to MH i2c: D1 01 00 D0 05 01 A7 [09:46:05]Write i2c OK [09:46:05]MH_I2C_Read... [09:46:05]Read from MH i2c: D1 [09:46:05]MH_I2C_Read... [09:46:05]Read from MH i2c: D1 01 00 [09:46:05]MH_I2C_Read... [09:46:05]Read from MH i2c: D1 01 00 D0 05 00 A6 [09:46:05]Write to MH i2c: 01 00 00 D1 05 D6 [09:46:05]Write i2c OK [09:46:05]MH_I2C_Read... [09:46:06]*** Cut start [09:46:06]*** Purtial cut [09:46:06]*** CUTSNS_PIN = 0 [09:46:06]*** Stage 1: CUTSNS_PIN = 1 [09:46:07]OFD Sender: No OFD packet to send [09:46:08]Read from MH i2c: 01 [09:46:08]MH_I2C_Read... [09:46:08]*** Stop cut motor [09:46:08]*** Cut end [09:46:08]Read from MH i2c: 01 07 00 [09:46:08]MH_I2C_Read... [09:46:08]Read from MH i2c: 01 07 00 D1 05 00 00 00 00 00 FF 0F EB [09:46:08]process_action print_text done [09:46:08]requested_data is exist [09:46:08]produce_requested_data [09:46:08]requested_item fm.sn is exist - process it [09:46:08]wFMCommunicate request_size=4 [09:46:08]MH_SAM_APDU [09:46:08]CAPDU: 80 11 00 00 [09:46:08]Write to MH i2c: E2 08 00 D2 05 80 11 00 00 00 00 00 00 51 [09:46:08]Write i2c OK [09:46:08]MH_I2C_Read... [09:46:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:08]Read from MH i2c: E2 [09:46:08]MH_I2C_Read... [09:46:08]Read from MH i2c: E2 17 00 [09:46:08]MH_I2C_Read... [09:46:08]Read from MH i2c: E2 17 00 D2 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A7 [09:46:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:46:08]wFMCommunicate OK [09:46:08]requested_item fd.num is exist - process it [09:46:08]SAM_PROTO_GetFieldsCounters [09:46:08]wFMCommunicate request_size=4 [09:46:08]MH_SAM_APDU [09:46:08]CAPDU: 80 13 00 00 [09:46:08]Write to MH i2c: E2 08 00 D3 05 80 13 00 00 00 00 00 00 54 [09:46:08]Write i2c OK [09:46:08]MH_I2C_Read... [09:46:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:46:08]Read from MH i2c: E2 [09:46:08]MH_I2C_Read... [09:46:08]Read from MH i2c: E2 62 00 [09:46:08]MH_I2C_Read... [09:46:08]Read from MH i2c: E2 62 00 D3 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 6C 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [09:46:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 6C 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:46:08]wFMCommunicate OK [09:46:08]SAM_PROTO_GetFieldsCounters done [09:46:08]requested_item shift.num is exist - process it [09:46:08]requested_item shift.opened is exist - process it [09:46:08]req_shift_opened [09:46:08]FM_GetShiftState [09:46:08]SAM_PROTO_GetShiftState [09:46:08]wFMCommunicate request_size=4 [09:46:08]MH_SAM_APDU [09:46:08]CAPDU: 80 13 01 00 [09:46:08]Write to MH i2c: E2 08 00 D4 05 80 13 01 00 00 00 00 00 56 [09:46:08]Write i2c OK [09:46:08]MH_I2C_Read... [09:46:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:08]Read from MH i2c: E2 [09:46:08]MH_I2C_Read... [09:46:08]Read from MH i2c: E2 0E 00 [09:46:08]MH_I2C_Read... [09:46:08]Read from MH i2c: E2 0E 00 D4 05 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 02 [09:46:08]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [09:46:08]wFMCommunicate OK [09:46:08]SAM_PROTO_GetShiftState done [09:46:08]FM_GetShiftState done [09:46:08]req_shift_opened done [09:46:08]requested_item shift.open_date is exist - process it [09:46:08]req_shift_open_date [09:46:08]req_shift_open_date done [09:46:08]produce_requested_data done [09:46:08]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67436,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [09:46:08]process_action_free print_text [09:46:08]json_value_free [09:46:08]json_value_free done [09:46:08]process_json_proto returns [09:46:08]Send response to host [09:46:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67436,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [09:46:08]free response buf [09:46:08]execute_script done [09:46:08]execute_script returns [09:46:08]free content buf [09:46:08]Sock 9.Close socket [09:46:08]Sock 9.Thread stoped [09:46:12]OFD Sender: No OFD packet to send [09:46:17]OFD Sender: No OFD packet to send [09:46:22]OFD Sender: No OFD packet to send [09:46:23]accept exits with 8 [09:46:23]New connection [09:46:23]New thread 3067460964 created [09:46:23]Thread 3067604324 joined [09:46:23]Waiting for new connection... [09:46:23] Sock 8.Parse request [09:46:23]Sock 8.Check first char [09:46:23]Sock 8.First char is OK [09:46:23]request: POST /json_proto HTTP/1.0 [09:46:23]Method: POST [09:46:23]URL: /json_proto [09:46:23]Method is POST - this is cgi request [09:46:23]url: /json_proto [09:46:23]query_string will be loaded in cgi processing [09:46:23]execute_cgi json_proto POST (null) [09:46:23]execute_cgi path=json_proto method=POST [09:46:23]POST find Content-Length [09:46:23]Host: 172.17.41.195:8080 [09:46:23]Content-Length: 1209 [09:46:23]Content-Type: application/json [09:46:23] [09:46:23]POST finish read [09:46:23]Found Content-Length = 1209 [09:46:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507457\u000A16.05.2024 09:28\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 25.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1867.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:23]execute_script... [09:46:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507457\u000A16.05.2024 09:28\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 25.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1867.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:23]POST & json_proto [09:46:23]process_json_proto [09:46:23]json parsed OK: [09:46:23]protocol is kg_v1.0 [09:46:23]action value=print_text [09:46:23]process_action print_text [09:46:23]cmd_print_text [09:46:23]ExternCall_PrintAddStr [09:46:23]wPrintStart [09:46:23]Write to MH i2c: 01 00 00 D5 05 DA [09:46:23]Write i2c OK [09:46:23]MH_I2C_Read... [09:46:23]Read from MH i2c: 01 [09:46:23]MH_I2C_Read... [09:46:23]Read from MH i2c: 01 07 00 [09:46:23]MH_I2C_Read... [09:46:23]Read from MH i2c: 01 07 00 D5 05 00 00 00 00 00 FF 0F EF [09:46:23]RasterBufferAndPrint [09:46:23]line *****ТОВАРНЫЙ ЧЕК***** [09:46:23]line АЗС-91 [09:46:23]line Партнер нефть [09:46:23]line 02508201610067 [09:46:23]line Кассир : Пайзулдаева А. [09:46:23]line Счет N : (1)507457 [09:46:23]line 16.05.2024 09:28 [09:46:23]line ПРОДАЖА [09:46:23]line ТРК (МРК, ГНК): 11 [09:46:23]line Вид ГСМ : 2710194210 [09:46:23]line ДТ-К-5 [09:46:23]line 25.000 x 74.70 [09:46:23]line ИТОГ: 1867.50 [09:46:23]line Тип оплаты: Талоны: Топливная Карта [09:46:23]line 02750 [09:46:23]line ______________________ [09:46:23]line (подпись) [09:46:23]written 0, free lines is 4095 [09:46:24]Write to MH i2c: 01 00 00 E9 05 EE [09:46:24]Write i2c OK [09:46:24]MH_I2C_Read... [09:46:24]Read from MH i2c: 01 [09:46:24]MH_I2C_Read... [09:46:24]Read from MH i2c: 01 07 00 [09:46:24]MH_I2C_Read... [09:46:24]Read from MH i2c: 01 07 00 E9 05 00 00 00 00 00 11 0E 14 [09:46:24]RasterBufferAndPrint [09:46:24]line [09:46:24]line [09:46:24]line [09:46:24]line [09:46:24]line [09:46:24]written 0, free lines is 3602 [09:46:24]MH_Cut [09:46:24]Write to MH i2c: D1 01 00 F0 05 01 C7 [09:46:24]Write i2c OK [09:46:24]MH_I2C_Read... [09:46:24]Read from MH i2c: D1 [09:46:24]MH_I2C_Read... [09:46:24]Read from MH i2c: D1 01 00 [09:46:24]MH_I2C_Read... [09:46:24]Read from MH i2c: D1 01 00 F0 05 00 C6 [09:46:24]Write to MH i2c: 01 00 00 F1 05 F6 [09:46:24]Write i2c OK [09:46:24]MH_I2C_Read... [09:46:24]*** Cut start [09:46:24]*** Purtial cut [09:46:24]*** Stage 1: CUTSNS_PIN = 1 [09:46:24]Read from MH i2c: 01 [09:46:24]MH_I2C_Read... [09:46:24]*** Stop cut motor [09:46:24]*** Cut end [09:46:24]Read from MH i2c: 01 07 00 [09:46:24]MH_I2C_Read... [09:46:24]Read from MH i2c: 01 07 00 F1 05 00 00 00 00 00 FF 0F 0B [09:46:24]process_action print_text done [09:46:24]requested_data is exist [09:46:24]produce_requested_data [09:46:24]requested_item fm.sn is exist - process it [09:46:24]wFMCommunicate request_size=4 [09:46:24]MH_SAM_APDU [09:46:24]CAPDU: 80 11 00 00 [09:46:24]Write to MH i2c: E2 08 00 F2 05 80 11 00 00 00 00 00 00 71 [09:46:24]Write i2c OK [09:46:24]MH_I2C_Read... [09:46:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:25]Read from MH i2c: E2 [09:46:25]MH_I2C_Read... [09:46:25]Read from MH i2c: E2 17 00 [09:46:25]MH_I2C_Read... [09:46:25]Read from MH i2c: E2 17 00 F2 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C7 [09:46:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:46:25]wFMCommunicate OK [09:46:25]requested_item fd.num is exist - process it [09:46:25]SAM_PROTO_GetFieldsCounters [09:46:25]wFMCommunicate request_size=4 [09:46:25]MH_SAM_APDU [09:46:25]CAPDU: 80 13 00 00 [09:46:25]Write to MH i2c: E2 08 00 F3 05 80 13 00 00 00 00 00 00 74 [09:46:25]Write i2c OK [09:46:25]MH_I2C_Read... [09:46:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:46:25]Read from MH i2c: E2 [09:46:25]MH_I2C_Read... [09:46:25]Read from MH i2c: E2 62 00 [09:46:25]MH_I2C_Read... [09:46:25]Read from MH i2c: E2 62 00 F3 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 6C 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [09:46: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 6C 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:46:25]wFMCommunicate OK [09:46:25]SAM_PROTO_GetFieldsCounters done [09:46:25]requested_item shift.num is exist - process it [09:46:25]requested_item shift.opened is exist - process it [09:46:25]req_shift_opened [09:46:25]FM_GetShiftState [09:46:25]SAM_PROTO_GetShiftState [09:46:25]wFMCommunicate request_size=4 [09:46:25]MH_SAM_APDU [09:46:25]CAPDU: 80 13 01 00 [09:46:25]Write to MH i2c: E2 08 00 F4 05 80 13 01 00 00 00 00 00 76 [09:46:25]Write i2c OK [09:46:25]MH_I2C_Read... [09:46:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:25]Read from MH i2c: E2 [09:46:25]MH_I2C_Read... [09:46:25]Read from MH i2c: E2 0E 00 [09:46:25]MH_I2C_Read... [09:46:25]Read from MH i2c: E2 0E 00 F4 05 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 22 [09:46:25]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [09:46:25]wFMCommunicate OK [09:46:25]SAM_PROTO_GetShiftState done [09:46:25]FM_GetShiftState done [09:46:25]req_shift_opened done [09:46:25]requested_item shift.open_date is exist - process it [09:46:25]req_shift_open_date [09:46:25]req_shift_open_date done [09:46:25]produce_requested_data done [09:46:25]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67436,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [09:46:25]process_action_free print_text [09:46:25]json_value_free [09:46:25]json_value_free done [09:46:25]process_json_proto returns [09:46:25]Send response to host [09:46:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67436,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [09:46:25]free response buf [09:46:25]execute_script done [09:46:25]execute_script returns [09:46:25]free content buf [09:46:25]Sock 8.Close socket [09:46:25]Sock 8.Thread stoped [09:46:27]OFD Sender: No OFD packet to send [09:46:32]OFD Sender: No OFD packet to send [09:46:37]OFD Sender: No OFD packet to send [09:46:42]OFD Sender: No OFD packet to send [09:46:47]OFD Sender: No OFD packet to send [09:46:52]OFD Sender: No OFD packet to send [09:46:57]OFD Sender: No OFD packet to send [09:47:02]OFD Sender: No OFD packet to send [09:47:07]OFD Sender: No OFD packet to send [09:47:12]OFD Sender: No OFD packet to send [09:47:17]OFD Sender: No OFD packet to send [09:47:22]OFD Sender: No OFD packet to send [09:47:27]OFD Sender: No OFD packet to send [09:47:32]OFD Sender: No OFD packet to send [09:47:37]OFD Sender: No OFD packet to send [09:47:42]OFD Sender: No OFD packet to send [09:47:47]OFD Sender: No OFD packet to send [09:47:52]OFD Sender: No OFD packet to send [09:47:57]OFD Sender: No OFD packet to send [09:48:02]OFD Sender: No OFD packet to send [09:48:07]OFD Sender: No OFD packet to send [09:48:12]OFD Sender: No OFD packet to send [09:48:17]OFD Sender: No OFD packet to send [09:48:22]OFD Sender: No OFD packet to send [09:48:27]OFD Sender: No OFD packet to send [09:48:32]OFD Sender: No OFD packet to send [09:48:37]OFD Sender: No OFD packet to send [09:48:42]OFD Sender: No OFD packet to send [09:48:47]OFD Sender: No OFD packet to send [09:48:52]OFD Sender: No OFD packet to send [09:48:57]OFD Sender: No OFD packet to send [09:49:02]OFD Sender: No OFD packet to send [09:49:07]OFD Sender: No OFD packet to send [09:49:12]OFD Sender: No OFD packet to send [09:49:17]OFD Sender: No OFD packet to send [09:49:22]OFD Sender: No OFD packet to send [09:49:27]OFD Sender: No OFD packet to send [09:49:32]OFD Sender: No OFD packet to send [09:49:37]OFD Sender: No OFD packet to send [09:49:42]OFD Sender: No OFD packet to send [09:49:47]OFD Sender: No OFD packet to send [09:49:52]OFD Sender: No OFD packet to send [09:49:57]OFD Sender: No OFD packet to send [09:50:02]OFD Sender: No OFD packet to send [09:50:07]OFD Sender: No OFD packet to send [09:50:12]OFD Sender: No OFD packet to send [09:50:17]OFD Sender: No OFD packet to send [09:50:22]OFD Sender: No OFD packet to send [09:50:27]OFD Sender: No OFD packet to send [09:50:32]OFD Sender: No OFD packet to send [09:50:37]OFD Sender: No OFD packet to send [09:50:42]OFD Sender: No OFD packet to send [09:50:47]OFD Sender: No OFD packet to send [09:50:52]OFD Sender: No OFD packet to send [09:50:57]OFD Sender: No OFD packet to send [09:51:02]OFD Sender: No OFD packet to send [09:51:07]OFD Sender: No OFD packet to send [09:51:12]OFD Sender: No OFD packet to send [09:51:15]accept exits with 9 [09:51:15]New connection [09:51:15]New thread 3067604324 created [09:51:15]Thread 3067460964 joined [09:51:15]Waiting for new connection... [09:51:15] Sock 9.Parse request [09:51:15]Sock 9.Check first char [09:51:15]Sock 9.First char is OK [09:51:15]request: POST /json_proto HTTP/1.0 [09:51:15]Method: POST [09:51:15]URL: /json_proto [09:51:15]Method is POST - this is cgi request [09:51:15]url: /json_proto [09:51:15]query_string will be loaded in cgi processing [09:51:15]execute_cgi json_proto POST (null) [09:51:15]execute_cgi path=json_proto method=POST [09:51:15]POST find Content-Length [09:51:15]Host: 172.17.41.195:8080 [09:51:15]Content-Length: 1212 [09:51:15]Content-Type: application/json [09:51:15] [09:51:15]POST finish read [09:51:15]Found Content-Length = 1212 [09:51:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507458\u000A16.05.2024 09:33\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 1336.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02707\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:15]execute_script... [09:51:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507458\u000A16.05.2024 09:33\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 1336.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02707\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:15]POST & json_proto [09:51:15]process_json_proto [09:51:15]json parsed OK: [09:51:15]protocol is kg_v1.0 [09:51:15]action value=print_text [09:51:15]process_action print_text [09:51:15]cmd_print_text [09:51:15]ExternCall_PrintAddStr [09:51:15]wPrintStart [09:51:15]Write to MH i2c: 01 00 00 F5 05 FA [09:51:15]Write i2c OK [09:51:15]MH_I2C_Read... [09:51:15]Read from MH i2c: 01 [09:51:15]MH_I2C_Read... [09:51:15]Read from MH i2c: 01 07 00 [09:51:15]MH_I2C_Read... [09:51:15]Read from MH i2c: 01 07 00 F5 05 00 00 00 00 00 FF 0F 0F [09:51:15]RasterBufferAndPrint [09:51:15]line *****ТОВАРНЫЙ ЧЕК***** [09:51:15]line АЗС-91 [09:51:15]line Партнер нефть [09:51:15]line 02508201610067 [09:51:15]line Кассир : Пайзулдаева А. [09:51:15]line Счет N : (1)507458 [09:51:15]line 16.05.2024 09:33 [09:51:15]line ПРОДАЖА [09:51:15]line ТРК (МРК, ГНК): 33 [09:51:15]line Вид ГСМ : 2710124130 [09:51:15]line Аи-92-К-5 [09:51:15]line 20.000 x 66.80 [09:51:15]line ИТОГ: 1336.00 [09:51:15]line Тип оплаты: Талоны: Топливная Карта [09:51:15]line 02707 [09:51:15]line ______________________ [09:51:15]line (подпись) [09:51:15]written 0, free lines is 4095 [09:51:15]Write to MH i2c: 01 00 00 09 06 0F [09:51:15]Write i2c OK [09:51:15]MH_I2C_Read... [09:51:15]Read from MH i2c: 01 [09:51:15]MH_I2C_Read... [09:51:15]Read from MH i2c: 01 07 00 [09:51:15]MH_I2C_Read... [09:51:15]Read from MH i2c: 01 07 00 09 06 00 00 00 00 00 12 0E 36 [09:51:15]RasterBufferAndPrint [09:51:15]line [09:51:15]line [09:51:15]line [09:51:15]line [09:51:15]line [09:51:15]written 0, free lines is 3604 [09:51:15]MH_Cut [09:51:15]Write to MH i2c: D1 01 00 10 06 01 E8 [09:51:15]Write i2c OK [09:51:15]MH_I2C_Read... [09:51:15]Read from MH i2c: D1 [09:51:15]MH_I2C_Read... [09:51:15]Read from MH i2c: D1 01 00 [09:51:15]MH_I2C_Read... [09:51:15]Read from MH i2c: D1 01 00 10 06 00 E7 [09:51:15]Write to MH i2c: 01 00 00 11 06 17 [09:51:15]Write i2c OK [09:51:15]MH_I2C_Read... [09:51:16]*** Cut start [09:51:16]*** Purtial cut [09:51:16]*** CUTSNS_PIN = 0 [09:51:16]*** Stage 1: CUTSNS_PIN = 1 [09:51:17]OFD Sender: No OFD packet to send [09:51:18]Read from MH i2c: 01 [09:51:18]MH_I2C_Read... [09:51:18]Read from MH i2c: 01 07 00 [09:51:18]MH_I2C_Read... [09:51:18]*** Stop cut motor [09:51:18]*** Cut end [09:51:18]Read from MH i2c: 01 07 00 11 06 00 00 00 00 00 FF 0F 2C [09:51:18]process_action print_text done [09:51:18]requested_data is exist [09:51:18]produce_requested_data [09:51:18]requested_item fm.sn is exist - process it [09:51:18]wFMCommunicate request_size=4 [09:51:18]MH_SAM_APDU [09:51:18]CAPDU: 80 11 00 00 [09:51:18]Write to MH i2c: E2 08 00 12 06 80 11 00 00 00 00 00 00 92 [09:51:18]Write i2c OK [09:51:18]MH_I2C_Read... [09:51:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:18]Read from MH i2c: E2 [09:51:18]MH_I2C_Read... [09:51:18]Read from MH i2c: E2 17 00 [09:51:18]MH_I2C_Read... [09:51:18]Read from MH i2c: E2 17 00 12 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E8 [09:51:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:51:18]wFMCommunicate OK [09:51:18]requested_item fd.num is exist - process it [09:51:18]SAM_PROTO_GetFieldsCounters [09:51:18]wFMCommunicate request_size=4 [09:51:18]MH_SAM_APDU [09:51:18]CAPDU: 80 13 00 00 [09:51:18]Write to MH i2c: E2 08 00 13 06 80 13 00 00 00 00 00 00 95 [09:51:18]Write i2c OK [09:51:18]MH_I2C_Read... [09:51:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:51:18]Read from MH i2c: E2 [09:51:18]MH_I2C_Read... [09:51:18]Read from MH i2c: E2 62 00 [09:51:18]MH_I2C_Read... [09:51:18]Read from MH i2c: E2 62 00 13 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 6C 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [09:51: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 6C 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:51:18]wFMCommunicate OK [09:51:18]SAM_PROTO_GetFieldsCounters done [09:51:18]requested_item shift.num is exist - process it [09:51:18]requested_item shift.opened is exist - process it [09:51:18]req_shift_opened [09:51:18]FM_GetShiftState [09:51:18]SAM_PROTO_GetShiftState [09:51:18]wFMCommunicate request_size=4 [09:51:18]MH_SAM_APDU [09:51:18]CAPDU: 80 13 01 00 [09:51:18]Write to MH i2c: E2 08 00 14 06 80 13 01 00 00 00 00 00 97 [09:51:18]Write i2c OK [09:51:18]MH_I2C_Read... [09:51:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:18]Read from MH i2c: E2 [09:51:18]MH_I2C_Read... [09:51:18]Read from MH i2c: E2 0E 00 [09:51:18]MH_I2C_Read... [09:51:18]Read from MH i2c: E2 0E 00 14 06 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 43 [09:51:18]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [09:51:18]wFMCommunicate OK [09:51:18]SAM_PROTO_GetShiftState done [09:51:18]FM_GetShiftState done [09:51:18]req_shift_opened done [09:51:18]requested_item shift.open_date is exist - process it [09:51:18]req_shift_open_date [09:51:18]req_shift_open_date done [09:51:18]produce_requested_data done [09:51:18]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67436,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [09:51:18]process_action_free print_text [09:51:18]json_value_free [09:51:18]json_value_free done [09:51:18]process_json_proto returns [09:51:18]Send response to host [09:51:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67436,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [09:51:18]free response buf [09:51:18]execute_script done [09:51:18]execute_script returns [09:51:18]free content buf [09:51:18]Sock 9.Close socket [09:51:18]Sock 9.Thread stoped [09:51:22]OFD Sender: No OFD packet to send [09:51:27]OFD Sender: No OFD packet to send [09:51:32]OFD Sender: No OFD packet to send [09:51:37]OFD Sender: No OFD packet to send [09:51:42]OFD Sender: No OFD packet to send [09:51:47]OFD Sender: No OFD packet to send [09:51:52]OFD Sender: No OFD packet to send [09:51:57]OFD Sender: No OFD packet to send [09:52:02]OFD Sender: No OFD packet to send [09:52:07]OFD Sender: No OFD packet to send [09:52:12]OFD Sender: No OFD packet to send [09:52:17]OFD Sender: No OFD packet to send [09:52:22]OFD Sender: No OFD packet to send [09:52:27]OFD Sender: No OFD packet to send [09:52:32]OFD Sender: No OFD packet to send [09:52:37]OFD Sender: No OFD packet to send [09:52:42]OFD Sender: No OFD packet to send [09:52:47]OFD Sender: No OFD packet to send [09:52:52]OFD Sender: No OFD packet to send [09:52:57]OFD Sender: No OFD packet to send [09:53:02]OFD Sender: No OFD packet to send [09:53:07]OFD Sender: No OFD packet to send [09:53:12]OFD Sender: No OFD packet to send [09:53:17]OFD Sender: No OFD packet to send [09:53:22]OFD Sender: No OFD packet to send [09:53:27]OFD Sender: No OFD packet to send [09:53:32]OFD Sender: No OFD packet to send [09:53:37]OFD Sender: No OFD packet to send [09:53:42]OFD Sender: No OFD packet to send [09:53:47]OFD Sender: No OFD packet to send [09:53:52]OFD Sender: No OFD packet to send [09:53:57]OFD Sender: No OFD packet to send [09:54:02]OFD Sender: No OFD packet to send [09:54:07]OFD Sender: No OFD packet to send [09:54:12]OFD Sender: No OFD packet to send [09:54:17]OFD Sender: No OFD packet to send [09:54:22]OFD Sender: No OFD packet to send [09:54:27]OFD Sender: No OFD packet to send [09:54:32]OFD Sender: No OFD packet to send [09:54:37]OFD Sender: No OFD packet to send [09:54:42]OFD Sender: No OFD packet to send [09:54:47]OFD Sender: No OFD packet to send [09:54:52]OFD Sender: No OFD packet to send [09:54:57]OFD Sender: No OFD packet to send [09:55:02]OFD Sender: No OFD packet to send [09:55:07]OFD Sender: No OFD packet to send [09:55:12]OFD Sender: No OFD packet to send [09:55:17]OFD Sender: No OFD packet to send [09:55:22]OFD Sender: No OFD packet to send [09:55:27]OFD Sender: No OFD packet to send [09:55:32]OFD Sender: No OFD packet to send [09:55:37]OFD Sender: No OFD packet to send [09:55:42]OFD Sender: No OFD packet to send [09:55:47]OFD Sender: No OFD packet to send [09:55:52]OFD Sender: No OFD packet to send [09:55:57]OFD Sender: No OFD packet to send [09:56:02]OFD Sender: No OFD packet to send [09:56:07]OFD Sender: No OFD packet to send [09:56:12]OFD Sender: No OFD packet to send [09:56:17]OFD Sender: No OFD packet to send [09:56:22]OFD Sender: No OFD packet to send [09:56:27]OFD Sender: No OFD packet to send [09:56:32]OFD Sender: No OFD packet to send [09:56:37]OFD Sender: No OFD packet to send [09:56:42]OFD Sender: No OFD packet to send [09:56:47]OFD Sender: No OFD packet to send [09:56:52]OFD Sender: No OFD packet to send [09:56:57]OFD Sender: No OFD packet to send [09:57:02]OFD Sender: No OFD packet to send [09:57:07]OFD Sender: No OFD packet to send [09:57:12]OFD Sender: No OFD packet to send [09:57:17]OFD Sender: No OFD packet to send [09:57:22]OFD Sender: No OFD packet to send [09:57:27]OFD Sender: No OFD packet to send [09:57:32]OFD Sender: No OFD packet to send [09:57:37]OFD Sender: No OFD packet to send [09:57:42]OFD Sender: No OFD packet to send [09:57:47]OFD Sender: No OFD packet to send [09:57:52]OFD Sender: No OFD packet to send [09:57:57]OFD Sender: No OFD packet to send [09: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:49]accept exits with 8 [09:58:49]New connection [09:58:49]New thread 3067460964 created [09:58:49]Thread 3067604324 joined [09:58:49]Waiting for new connection... [09:58:49] Sock 8.Parse request [09:58:49]Sock 8.Check first char [09:58:49]Sock 8.First char is OK [09:58:49]request: POST /json_proto HTTP/1.0 [09:58:49]Method: POST [09:58:49]URL: /json_proto [09:58:49]Method is POST - this is cgi request [09:58:49]url: /json_proto [09:58:49]query_string will be loaded in cgi processing [09:58:49]execute_cgi json_proto POST (null) [09:58:49]execute_cgi path=json_proto method=POST [09:58:49]POST find Content-Length [09:58:49]Host: 172.17.41.195:8080 [09:58:49]Content-Length: 677 [09:58:49]Content-Type: application/json [09:58:49] [09:58:49]POST finish read [09:58:49]Found Content-Length = 677 [09:58:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507459", "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.80, "quantity" : 7.490, "sum" : 500.33, "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:58:49]execute_script... [09:58: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)507459", "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.80, "quantity" : 7.490, "sum" : 500.33, "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:58:49]POST & json_proto [09:58:49]process_json_proto [09:58:49]json parsed OK: [09:58:49]protocol is kg_v1.0 [09:58:49]action value=close_receipt [09:58:49]process_action close_receipt [09:58:49]cmd_close_receipt [09:58:49]MH_GetDate [09:58:49]Write to MH i2c: F0 00 00 15 06 0A [09:58:49]Write i2c OK [09:58:49]MH_I2C_Read... [09:58:49]Read from MH i2c: F0 [09:58:49]MH_I2C_Read... [09:58:49]Read from MH i2c: F0 09 00 [09:58:49]MH_I2C_Read... [09:58:49]Read from MH i2c: F0 09 00 15 06 00 DA D8 45 66 FC 21 6F 64 60 [09:58:49]GetLastDocTimeStamp 1715851899 [09:58:49]current date 1715853530 [09:58:49]FM_GetShiftState [09:58:49]SAM_PROTO_GetShiftState [09:58:49]wFMCommunicate request_size=4 [09:58:49]MH_SAM_APDU [09:58:49]CAPDU: 80 13 01 00 [09:58:49]Write to MH i2c: E2 08 00 16 06 80 13 01 00 00 00 00 00 99 [09:58:49]Write i2c OK [09:58:49]MH_I2C_Read... [09:58:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:49]Read from MH i2c: E2 [09:58:49]MH_I2C_Read... [09:58:49]Read from MH i2c: E2 0E 00 [09:58:49]MH_I2C_Read... [09:58:49]Read from MH i2c: E2 0E 00 16 06 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 45 [09:58:49]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [09:58:49]wFMCommunicate OK [09:58:49]SAM_PROTO_GetShiftState done [09:58:49]FM_GetShiftState done [09:58:49]opened in 1715818916 [09:58:49]opened+sec_in_day 1715905316 [09:58:49]quantity*price = 50033 [09:58:49]sum+1 = 50034 [09:58:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 35 16.05.2024 09:58 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67437 ФПД: 208600683537975 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T095850&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67437&fm=208600683537975&tin=02508201610067®Number=0000000000091845&sum=50000 [09:58:50]StoreToDocumentArchive [09:58:50]shift 357 fd 67437 [09:58:50]save to /storage/0357/doc_00067437 [09:58:50]save last doc name /storage/0357/doc_00067437 to /storage/kkm_last_doc_name [09:58:50]save OK [09:58:50]Clear old archive folders... [09:58:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:58:50]tlvbuf is 00C94320 [09:58:50]SAM_PROTO_ClearQueue [09:58:50]wFMCommunicate request_size=4 [09:58:50]MH_SAM_APDU [09:58:50]CAPDU: 80 09 00 00 [09:58:50]Write to MH i2c: E2 08 00 23 06 80 09 00 00 00 00 00 00 9B [09:58:50]Write i2c OK [09:58:50]MH_I2C_Read... [09:58:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:58:50]Read from MH i2c: E2 [09:58:50]MH_I2C_Read... [09:58:50]Read from MH i2c: E2 03 00 [09:58:50]MH_I2C_Read... [09:58:50]Read from MH i2c: E2 03 00 23 06 00 90 00 9D [09:58:50]RAPDU: 90 00 [09:58:50]wFMCommunicate OK [09:58:50]SAM_PROTO_ClearQueue done [09:58:50]KKMCreateOFDPacket [09:58:50]OFDProtocolAddRootSTLVToBuf [09:58:50]FM_MakeSignedData [09:58:50]FM_MakeSignedData [09:58:50]SAM_PROTO_SignData [09:58:50]wFMCommunicate request_size=4 [09:58:50]MH_SAM_APDU [09:58:50]CAPDU: 80 0D 01 02 [09:58:50]Write to MH i2c: E2 08 00 24 06 80 0D 01 02 00 00 00 00 A3 [09:58:50]Write i2c OK [09:58:50]MH_I2C_Read... [09:58:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:58:50]Read from MH i2c: E2 [09:58:50]MH_I2C_Read... [09:58:50]Read from MH i2c: E2 03 00 [09:58:50]MH_I2C_Read... [09:58:50]Read from MH i2c: E2 03 00 24 06 00 90 00 9E [09:58:50]RAPDU: 90 00 [09:58:50]wFMCommunicate OK [09:58:50]wFMCommunicate request_size=255 [09:58:50]MH_SAM_APDU [09:58:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 DA D8 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6D 07 01 00 35 04 06 00 BD [09:58:50]Write to MH i2c: E2 02 01 25 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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 DA D8 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6D 07 01 00 35 04 06 00 BD 00 00 46 [09:58:50]Write i2c OK [09:58:50]MH_I2C_Read... [09:58:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:50]Read from MH i2c: E2 [09:58:50]MH_I2C_Read... [09:58:50]Read from MH i2c: E2 03 00 [09:58:50]MH_I2C_Read... [09:58:50]Read from MH i2c: E2 03 00 25 06 00 90 00 9F [09:58:50]RAPDU: 90 00 [09:58:50]wFMCommunicate OK [09:58:50]wFMCommunicate request_size=10 [09:58:50]MH_SAM_APDU [09:58:50]CAPDU: 80 0D 02 02 05 B8 A1 A4 66 37 [09:58:50]Write to MH i2c: E2 0D 00 26 06 80 0D 02 02 05 00 B8 A1 A4 66 37 00 00 4A [09:58:50]Write i2c OK [09:58:50]MH_I2C_Read... [09:58:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:50]Read from MH i2c: E2 [09:58:50]MH_I2C_Read... [09:58:50]Read from MH i2c: E2 03 00 [09:58:50]MH_I2C_Read... [09:58:50]Read from MH i2c: E2 03 00 26 06 00 90 00 A0 [09:58:50]RAPDU: 90 00 [09:58:50]wFMCommunicate OK [09:58:50]wFMCommunicate request_size=4 [09:58:50]MH_SAM_APDU [09:58:50]CAPDU: 80 0D 03 02 [09:58:50]Write to MH i2c: E2 08 00 27 06 80 0D 03 02 00 00 00 00 A8 [09:58:50]Write i2c OK [09:58:50]MH_I2C_Read... [09:58:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:58:50]Read from MH i2c: E2 [09:58:50]MH_I2C_Read... [09:58:50]Read from MH i2c: E2 0B 00 [09:58:50]MH_I2C_Read... [09:58:50]Read from MH i2c: E2 0B 00 27 06 00 31 FB 02 AE 34 71 58 01 90 00 83 [09:58:50]RAPDU: 31 FB 02 AE 34 71 58 01 90 00 [09:58:50]wFMCommunicate OK [09:58:50]SAM_PROTO_SignData done [09:58:50]FM_MakeSignedData done [09:58:50]CreateOFDProtocolMessage [09:58:50]wFMCommunicate request_size=4 [09:58:50]MH_SAM_APDU [09:58:50]CAPDU: 80 11 00 00 [09:58:50]Write to MH i2c: E2 08 00 28 06 80 11 00 00 00 00 00 00 A8 [09:58:50]Write i2c OK [09:58:50]MH_I2C_Read... [09:58:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:50]Read from MH i2c: E2 [09:58:50]MH_I2C_Read... [09:58:50]Read from MH i2c: E2 17 00 [09:58:50]MH_I2C_Read... [09:58:50]Read from MH i2c: E2 17 00 28 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 FE [09:58:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:58:50]wFMCommunicate OK [09:58:50]CreateOFDProtocolMessage done [09:58:50]OFDSenderStorePacket 67437 [09:58:50]StoreOFDPacket docnum=67437 [09:58:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 BC 4D 07 01 1A 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 DA D8 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6D 07 01 00 35 04 06 00 BD B8 A1 A4 66 37 31 FB 02 AE 34 71 58 01 [09:58:50]CheckFolder [09:58:50]dirname=/storage/ofd_packets [09:58:50]CheckFolder done [09:58:50]ProducePacketName [09:58:50]name=ofd_packets/00067437 [09:58:50]NVStorageSaveData ofd_packets/00067437 [09:58:50]File name is /storage/ofd_packets/00067437 [09:58:50]Write 301 bytes [09:58:50]NVStorageSaveData done [09:58:50]OFDSenderStorePacket done [09:58:50]KKMCreateOFDPacket done [09:58:50]NVStorageSaveData kkm_last_timestamp [09:58:50]File name is /storage/kkm_last_timestamp [09:58:50]Write 4 bytes [09:58:50]NVStorageSaveData done [09:58:50]ExternCall_PrintAddStr [09:58:50]wPrintStart [09:58:50]Write to MH i2c: 01 00 00 29 06 2F [09:58:50]Write i2c OK [09:58:50]MH_I2C_Read... [09:58:50]Read from MH i2c: 01 [09:58:50]MH_I2C_Read... [09:58:50]Read from MH i2c: 01 07 00 [09:58:50]MH_I2C_Read... [09:58:50]Read from MH i2c: 01 07 00 29 06 00 00 00 00 00 FF 0F 44 [09:58:50]RasterBufferAndPrint [09:58:50]line Счет N : (1)507459 [09:58:50]line ИНН: 02508201610067 [09:58:50]line Контрольно-Кассовый Чек [09:58:50]line ПРОДАЖА [09:58:50]line ТРК (МРК, ГНК) : 43 [09:58:50]line Товар: 2710124130 [09:58:50]line Аи-92-К-5 [09:58:50]line 7.490 * 66.80 [09:58:50]line = 500.33 [09:58:50]line НДС 12% НСП 1% [09:58:50]line > о реализуемом товаре [09:58:50]line ОКРУГЛЕНИЕ: -0.33 [09:58:50]line ИТОГО: 500.00 [09:58:50]line Внесено: 500.00 [09:58:50]line СДАЧА: 0.00 [09:58:50]line НСП 1% : 4.43 [09:58:50]line НДС 12% : 53.13 [09:58:50]line Наличными: 500.00 [09:58:50]line Безнал.: 0.00 [09:58:50]line Место: АЗС № 91 "Партнер Нефть" [09:58:50]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [09:58:50]line СНО: Общий режим [09:58:50]line Чек 35 16.05.2024 09:58 [09:58:50]line Смена: 357 ФФД: 1.0 [09:58:50]line ЗНМ: 0300000119 [09:58:50]line РНМ: 0000000000091845 [09:58:50]line Версия ККМ: 001 [09:58:50]line ФМ: 0000000000871829 [09:58:50]line ФД: 67437 [09:58:50]line ФПД: 208600683537975 [09:58:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T095850&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67437&fm=208600683537975&tin=02508201610067®Number=0000000000091845&sum=50000 [09:58:51]written 0, free lines is 4095 [09:58:51]OFD Sender: Processing packet 67437 [packets to send 35, broken 34] [09:58:51]ProducePacketName [09:58:51]name=ofd_packets/00067437 [09:58:51]OFD Sender: To server: pG, [09:58:51]CommunicateWithHost lk.salyk.kg:30040 [09:58:51]ConnectInit lk.salyk.kg [09:58:51]Connected sock=10 [09:58: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 38 32 39 0F 01 00 00 BC 4D 07 01 1A 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 DA D8 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6D 07 01 00 35 04 06 00 BD B8 A1 A4 66 37 31 FB 02 AE 34 71 58 01 [09:58:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 D8 85 47 00 D8 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 38 32 39 10 04 04 00 6D 07 01 00 F4 03 04 00 B5 80 45 66 B6 04 01 00 00 0F 90 55 70 56 5F CB B5 [09:58:51]CommunicateWithHost err = 0 [09:58:51]CheckOFDResponse [09:58:51]1017 (14) - 77093643461234 [09:58:51]1041 (16) - 0000000000871829 [09:58:51]1040 (4) - 67437 [09:58:51]1012 (4) - 16.05.2024 03:42 [09:58:51]1206 (1) - 0 [09:58:51]OFD Sender: Remove packet 67437 [09:58:51]ProducePacketName [09:58:51]name=ofd_packets/00067437 [09:58:51]NVStorageDeleteData [09:58:51]Write to MH i2c: 01 00 00 53 06 59 [09:58:51]Write i2c OK [09:58:51]MH_I2C_Read... [09:58:51]Read from MH i2c: 01 [09:58:51]MH_I2C_Read... [09:58:51]Read from MH i2c: 01 07 00 [09:58:51]MH_I2C_Read... [09:58:51]Read from MH i2c: 01 07 00 53 06 00 00 00 00 00 C5 0C 31 [09:58:51]RasterBufferAndPrint [09:58:51]line [09:58:51]line [09:58:51]line [09:58:51]line [09:58:51]line [09:58:51]written 0, free lines is 3276 [09:58:51]MH_Cut [09:58:51]Write to MH i2c: D1 01 00 5A 06 01 32 [09:58:51]Write i2c OK [09:58:51]MH_I2C_Read... [09:58:51]Read from MH i2c: D1 [09:58:51]MH_I2C_Read... [09:58:51]Read from MH i2c: D1 01 00 [09:58:51]MH_I2C_Read... [09:58:51]Read from MH i2c: D1 01 00 5A 06 00 31 [09:58:51]Write to MH i2c: 01 00 00 5B 06 61 [09:58:51]Write i2c OK [09:58:51]MH_I2C_Read... [09:58:51]OFD Sender: No OFD packet to send [09:58:52]*** Cut start [09:58:52]*** Purtial cut [09:58:52]*** Stage 1: CUTSNS_PIN = 1 [09:58:52]Read from MH i2c: 01 [09:58:52]MH_I2C_Read... [09:58:52]*** Stop cut motor [09:58:52]*** Cut end [09:58:52]Read from MH i2c: 01 07 00 [09:58:52]MH_I2C_Read... [09:58:52]Read from MH i2c: 01 07 00 5B 06 00 00 00 00 00 FF 0F 76 [09:58:52]process_action close_receipt done [09:58:52]requested_data is exist [09:58:52]produce_requested_data [09:58:52]requested_item fm.sn is exist - process it [09:58:52]wFMCommunicate request_size=4 [09:58:52]MH_SAM_APDU [09:58:52]CAPDU: 80 11 00 00 [09:58:52]Write to MH i2c: E2 08 00 5C 06 80 11 00 00 00 00 00 00 DC [09:58:52]Write i2c OK [09:58:52]MH_I2C_Read... [09:58:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:52]Read from MH i2c: E2 [09:58:52]MH_I2C_Read... [09:58:52]Read from MH i2c: E2 17 00 [09:58:52]MH_I2C_Read... [09:58:52]Read from MH i2c: E2 17 00 5C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 32 [09:58:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:58:52]wFMCommunicate OK [09:58:52]requested_item fd.num is exist - process it [09:58:52]SAM_PROTO_GetFieldsCounters [09:58:52]wFMCommunicate request_size=4 [09:58:52]MH_SAM_APDU [09:58:52]CAPDU: 80 13 00 00 [09:58:52]Write to MH i2c: E2 08 00 5D 06 80 13 00 00 00 00 00 00 DF [09:58:52]Write i2c OK [09:58:52]MH_I2C_Read... [09:58:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:58:52]Read from MH i2c: E2 [09:58:52]MH_I2C_Read... [09:58:52]Read from MH i2c: E2 62 00 [09:58:52]MH_I2C_Read... [09:58:52]Read from MH i2c: E2 62 00 5D 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 6D 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [09:58: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 6D 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:58:52]wFMCommunicate OK [09:58:52]SAM_PROTO_GetFieldsCounters done [09:58:52]requested_item shift.num is exist - process it [09:58:52]requested_item shift.opened is exist - process it [09:58:52]req_shift_opened [09:58:52]FM_GetShiftState [09:58:52]SAM_PROTO_GetShiftState [09:58:52]wFMCommunicate request_size=4 [09:58:52]MH_SAM_APDU [09:58:52]CAPDU: 80 13 01 00 [09:58:52]Write to MH i2c: E2 08 00 5E 06 80 13 01 00 00 00 00 00 E1 [09:58:52]Write i2c OK [09:58:52]MH_I2C_Read... [09:58:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:53]Read from MH i2c: E2 [09:58:53]MH_I2C_Read... [09:58:53]Read from MH i2c: E2 0E 00 [09:58:53]MH_I2C_Read... [09:58:53]Read from MH i2c: E2 0E 00 5E 06 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 8D [09:58:53]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [09:58:53]wFMCommunicate OK [09:58:53]SAM_PROTO_GetShiftState done [09:58:53]FM_GetShiftState done [09:58:53]req_shift_opened done [09:58:53]requested_item shift.open_date is exist - process it [09:58:53]req_shift_open_date [09:58:53]req_shift_open_date done [09:58:53]produce_requested_data done [09:58:53]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67437,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [09:58:53]process_action_free close_receipt [09:58:53]json_value_free [09:58:53]json_value_free done [09:58:53]process_json_proto returns [09:58:53]Send response to host [09:58:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67437,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [09:58:53]free response buf [09:58:53]execute_script done [09:58:53]execute_script returns [09:58:53]free content buf [09:58:53]Sock 8.Close socket [09:58:53]Sock 8.Thread stoped [09:58:56]OFD Sender: No OFD packet to send [09:59:01]OFD Sender: No OFD packet to send [09:59:06]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:51]accept exits with 9 [09:59:51]New connection [09:59:51]New thread 3067604324 created [09:59:51]Thread 3067460964 joined [09:59:51]Waiting for new connection... [09:59:51] Sock 9.Parse request [09:59:51]Sock 9.Check first char [09:59:51]Sock 9.First char is OK [09:59:51]request: POST /json_proto HTTP/1.0 [09:59:51]Method: POST [09:59:51]URL: /json_proto [09:59:51]Method is POST - this is cgi request [09:59:51]url: /json_proto [09:59:51]query_string will be loaded in cgi processing [09:59:51]execute_cgi json_proto POST (null) [09:59:51]execute_cgi path=json_proto method=POST [09:59:51]POST find Content-Length [09:59:51]Host: 172.17.41.195:8080 [09:59:51]Content-Length: 677 [09:59:51]Content-Type: application/json [09:59:51] [09:59:51]POST finish read [09:59:51]Found Content-Length = 677 [09:59:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507460", "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.80, "quantity" : 8.990, "sum" : 600.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:51]execute_script... [09:59: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)507460", "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.80, "quantity" : 8.990, "sum" : 600.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:51]POST & json_proto [09:59:51]process_json_proto [09:59:51]json parsed OK: [09:59:51]protocol is kg_v1.0 [09:59:51]action value=close_receipt [09:59:51]process_action close_receipt [09:59:51]cmd_close_receipt [09:59:51]MH_GetDate [09:59:51]Write to MH i2c: F0 00 00 5F 06 54 [09:59:51]Write i2c OK [09:59:51]MH_I2C_Read... [09:59:51]Read from MH i2c: F0 [09:59:51]MH_I2C_Read... [09:59:51]Read from MH i2c: F0 09 00 [09:59:51]MH_I2C_Read... [09:59:51]Read from MH i2c: F0 09 00 5F 06 00 18 D9 45 66 FC 21 6F 64 E9 [09:59:51]GetLastDocTimeStamp 1715853530 [09:59:51]current date 1715853592 [09:59:51]FM_GetShiftState [09:59:51]SAM_PROTO_GetShiftState [09:59:51]wFMCommunicate request_size=4 [09:59:51]MH_SAM_APDU [09:59:51]CAPDU: 80 13 01 00 [09:59:51]Write to MH i2c: E2 08 00 60 06 80 13 01 00 00 00 00 00 E3 [09:59:51]Write i2c OK [09:59:51]MH_I2C_Read... [09:59:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:51]Read from MH i2c: E2 [09:59:51]MH_I2C_Read... [09:59:51]Read from MH i2c: E2 0E 00 [09:59:51]MH_I2C_Read... [09:59:51]Read from MH i2c: E2 0E 00 60 06 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 8F [09:59:51]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [09:59:51]wFMCommunicate OK [09:59:51]SAM_PROTO_GetShiftState done [09:59:51]FM_GetShiftState done [09:59:51]opened in 1715818916 [09:59:51]opened+sec_in_day 1715905316 [09:59:51]quantity*price = 60053 [09:59:51]sum+1 = 60054 [09:59:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 36 16.05.2024 09:59 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67438 ФПД: 38686749694916 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T095952&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67438&fm=38686749694916&tin=02508201610067®Number=0000000000091845&sum=60000 [09:59:52]StoreToDocumentArchive [09:59:52]shift 357 fd 67438 [09:59:52]save to /storage/0357/doc_00067438 [09:59:52]save last doc name /storage/0357/doc_00067438 to /storage/kkm_last_doc_name [09:59:52]save OK [09:59:52]Clear old archive folders... [09:59:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:59:52]tlvbuf is 00CC0DB0 [09:59:52]SAM_PROTO_ClearQueue [09:59:52]wFMCommunicate request_size=4 [09:59:52]MH_SAM_APDU [09:59:52]CAPDU: 80 09 00 00 [09:59:52]Write to MH i2c: E2 08 00 6D 06 80 09 00 00 00 00 00 00 E5 [09:59:52]Write i2c OK [09:59:52]MH_I2C_Read... [09:59:52]Read from MH i2c: E2 [09:59:52]MH_I2C_Read... [09:59:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:59:52]Read from MH i2c: E2 03 00 [09:59:52]MH_I2C_Read... [09:59:52]Read from MH i2c: E2 03 00 6D 06 00 90 00 E7 [09:59:52]RAPDU: 90 00 [09:59:52]wFMCommunicate OK [09:59:52]SAM_PROTO_ClearQueue done [09:59:52]KKMCreateOFDPacket [09:59:52]OFDProtocolAddRootSTLVToBuf [09:59:52]FM_MakeSignedData [09:59:52]FM_MakeSignedData [09:59:52]SAM_PROTO_SignData [09:59:52]wFMCommunicate request_size=4 [09:59:52]MH_SAM_APDU [09:59:52]CAPDU: 80 0D 01 02 [09:59:52]Write to MH i2c: E2 08 00 6E 06 80 0D 01 02 00 00 00 00 ED [09:59:52]Write i2c OK [09:59:52]MH_I2C_Read... [09:59:52]Read from MH i2c: E2 [09:59:52]MH_I2C_Read... [09:59:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:59:52]Read from MH i2c: E2 03 00 [09:59:52]MH_I2C_Read... [09:59:52]Read from MH i2c: E2 03 00 6E 06 00 90 00 E8 [09:59:52]RAPDU: 90 00 [09:59:52]wFMCommunicate OK [09:59:52]wFMCommunicate request_size=255 [09:59:52]MH_SAM_APDU [09:59: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 1E 23 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 95 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 24 00 00 00 F4 03 04 00 18 D9 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6E 07 01 00 35 04 06 00 23 [09:59:52]Write to MH i2c: E2 02 01 6F 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 1E 23 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 95 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 24 00 00 00 F4 03 04 00 18 D9 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6E 07 01 00 35 04 06 00 23 00 00 57 [09:59:52]Write i2c OK [09:59:52]MH_I2C_Read... [09:59:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:52]Read from MH i2c: E2 [09:59:52]MH_I2C_Read... [09:59:52]Read from MH i2c: E2 03 00 [09:59:52]MH_I2C_Read... [09:59:52]Read from MH i2c: E2 03 00 6F 06 00 90 00 E9 [09:59:52]RAPDU: 90 00 [09:59:52]wFMCommunicate OK [09:59:52]wFMCommunicate request_size=10 [09:59:52]MH_SAM_APDU [09:59:52]CAPDU: 80 0D 02 02 05 2F 75 F9 1B C4 [09:59:52]Write to MH i2c: E2 0D 00 70 06 80 0D 02 02 05 00 2F 75 F9 1B C4 00 00 76 [09:59:52]Write i2c OK [09:59:52]MH_I2C_Read... [09:59:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:52]Read from MH i2c: E2 [09:59:52]MH_I2C_Read... [09:59:52]Read from MH i2c: E2 03 00 [09:59:52]MH_I2C_Read... [09:59:52]Read from MH i2c: E2 03 00 70 06 00 90 00 EA [09:59:52]RAPDU: 90 00 [09:59:52]wFMCommunicate OK [09:59:52]wFMCommunicate request_size=4 [09:59:52]MH_SAM_APDU [09:59:52]CAPDU: 80 0D 03 02 [09:59:52]Write to MH i2c: E2 08 00 71 06 80 0D 03 02 00 00 00 00 F2 [09:59:52]Write i2c OK [09:59:52]MH_I2C_Read... [09:59:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:59:52]Read from MH i2c: E2 [09:59:52]MH_I2C_Read... [09:59:52]Read from MH i2c: E2 0B 00 [09:59:52]MH_I2C_Read... [09:59:52]Read from MH i2c: E2 0B 00 71 06 00 CA A7 3A 6B D7 3F BF 92 90 00 70 [09:59:52]RAPDU: CA A7 3A 6B D7 3F BF 92 90 00 [09:59:52]wFMCommunicate OK [09:59:52]SAM_PROTO_SignData done [09:59:52]FM_MakeSignedData done [09:59:52]CreateOFDProtocolMessage [09:59:52]wFMCommunicate request_size=4 [09:59:52]MH_SAM_APDU [09:59:52]CAPDU: 80 11 00 00 [09:59:52]Write to MH i2c: E2 08 00 72 06 80 11 00 00 00 00 00 00 F2 [09:59:52]Write i2c OK [09:59:52]MH_I2C_Read... [09:59:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:52]Read from MH i2c: E2 [09:59:52]MH_I2C_Read... [09:59:52]Read from MH i2c: E2 17 00 [09:59:52]MH_I2C_Read... [09:59:52]Read from MH i2c: E2 17 00 72 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 48 [09:59:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:59:52]wFMCommunicate OK [09:59:52]CreateOFDProtocolMessage done [09:59:52]OFDSenderStorePacket 67438 [09:59:52]StoreOFDPacket docnum=67438 [09:59:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 DE C1 07 01 70 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 23 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 95 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 24 00 00 00 F4 03 04 00 18 D9 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6E 07 01 00 35 04 06 00 23 2F 75 F9 1B C4 CA A7 3A 6B D7 3F BF 92 [09:59:52]CheckFolder [09:59:52]dirname=/storage/ofd_packets [09:59:52]CheckFolder done [09:59:52]ProducePacketName [09:59:52]name=ofd_packets/00067438 [09:59:52]NVStorageSaveData ofd_packets/00067438 [09:59:52]File name is /storage/ofd_packets/00067438 [09:59:52]Write 301 bytes [09:59:52]NVStorageSaveData done [09:59:52]OFDSenderStorePacket done [09:59:52]KKMCreateOFDPacket done [09:59:52]NVStorageSaveData kkm_last_timestamp [09:59:52]File name is /storage/kkm_last_timestamp [09:59:52]Write 4 bytes [09:59:52]NVStorageSaveData done [09:59:52]ExternCall_PrintAddStr [09:59:52]wPrintStart [09:59:52]Write to MH i2c: 01 00 00 73 06 79 [09:59:52]Write i2c OK [09:59:52]MH_I2C_Read... [09:59:52]Read from MH i2c: 01 [09:59:52]MH_I2C_Read... [09:59:52]Read from MH i2c: 01 07 00 [09:59:52]MH_I2C_Read... [09:59:52]Read from MH i2c: 01 07 00 73 06 00 00 00 00 00 FF 0F 8E [09:59:52]RasterBufferAndPrint [09:59:52]line Счет N : (1)507460 [09:59:52]line ИНН: 02508201610067 [09:59:52]line Контрольно-Кассовый Чек [09:59:52]line ПРОДАЖА [09:59:52]line ТРК (МРК, ГНК) : 33 [09:59:52]line Товар: 2710124130 [09:59:52]line Аи-92-К-5 [09:59:52]line 8.990 * 66.80 [09:59:52]line = 600.53 [09:59:52]line НДС 12% НСП 1% [09:59:52]line > о реализуемом товаре [09:59:52]line ОКРУГЛЕНИЕ: -0.53 [09:59:52]line ИТОГО: 600.00 [09:59:52]line Внесено: 600.00 [09:59:52]line СДАЧА: 0.00 [09:59:52]line НСП 1% : 5.31 [09:59:52]line НДС 12% : 63.77 [09:59:52]line Наличными: 600.00 [09:59:52]line Безнал.: 0.00 [09:59:52]line Место: АЗС № 91 "Партнер Нефть" [09:59:52]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [09:59:52]line СНО: Общий режим [09:59:52]line Чек 36 16.05.2024 09:59 [09:59:52]line Смена: 357 ФФД: 1.0 [09:59:52]line ЗНМ: 0300000119 [09:59:53]line РНМ: 0000000000091845 [09:59:53]line Версия ККМ: 001 [09:59:53]line ФМ: 0000000000871829 [09:59:53]line ФД: 67438 [09:59:53]line ФПД: 38686749694916 [09:59:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T095952&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67438&fm=38686749694916&tin=02508201610067®Number=0000000000091845&sum=60000 [09:59:53]OFD Sender: Processing packet 67438 [packets to send 35, broken 34] [09:59:53]ProducePacketName [09:59:53]name=ofd_packets/00067438 [09:59:53]OFD Sender: To server: pG, [09:59:53]CommunicateWithHost lk.salyk.kg:30040 [09:59:53]ConnectInit lk.salyk.kg [09:59:53]written 0, free lines is 4095 [09:59:53]Connected sock=10 [09:59: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 38 32 39 0F 01 00 00 DE C1 07 01 70 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 23 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 95 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 24 00 00 00 F4 03 04 00 18 D9 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6E 07 01 00 35 04 06 00 23 2F 75 F9 1B C4 CA A7 3A 6B D7 3F BF 92 [09:59:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 1D 46 47 00 28 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 38 32 39 10 04 04 00 6E 07 01 00 F4 03 04 00 F3 80 45 66 B6 04 01 00 00 64 70 BB 24 B2 60 D9 3C [09:59:53]CommunicateWithHost err = 0 [09:59:53]CheckOFDResponse [09:59:53]1017 (14) - 77093643461234 [09:59:53]1041 (16) - 0000000000871829 [09:59:53]1040 (4) - 67438 [09:59:53]1012 (4) - 16.05.2024 03:43 [09:59:53]1206 (1) - 0 [09:59:53]OFD Sender: Remove packet 67438 [09:59:53]ProducePacketName [09:59:53]name=ofd_packets/00067438 [09:59:53]NVStorageDeleteData [09:59:53]Write to MH i2c: 01 00 00 9D 06 A3 [09:59:53]Write i2c OK [09:59:53]MH_I2C_Read... [09:59:53]Read from MH i2c: 01 [09:59:53]MH_I2C_Read... [09:59:53]Read from MH i2c: 01 07 00 [09:59:53]MH_I2C_Read... [09:59:53]Read from MH i2c: 01 07 00 9D 06 00 00 00 00 00 DC 0C 92 [09:59:53]RasterBufferAndPrint [09:59:53]line [09:59:53]line [09:59:53]line [09:59:53]line [09:59:53]line [09:59:53]written 0, free lines is 3298 [09:59:53]MH_Cut [09:59:53]Write to MH i2c: D1 01 00 A4 06 01 7C [09:59:53]Write i2c OK [09:59:53]MH_I2C_Read... [09:59:53]Read from MH i2c: D1 [09:59:53]MH_I2C_Read... [09:59:53]Read from MH i2c: D1 01 00 [09:59:53]MH_I2C_Read... [09:59:53]Read from MH i2c: D1 01 00 A4 06 00 7B [09:59:53]Write to MH i2c: 01 00 00 A5 06 AB [09:59:53]Write i2c OK [09:59:53]MH_I2C_Read... [09:59:53]OFD Sender: No OFD packet to send [09:59:54]*** Cut start [09:59:54]*** Purtial cut [09:59:54]*** CUTSNS_PIN = 0 [09:59:54]*** Stage 1: CUTSNS_PIN = 1 [09:59:56]Read from MH i2c: 01 [09:59:56]MH_I2C_Read... [09:59:56]*** Stop cut motor [09:59:56]*** Cut end [09:59:56]Read from MH i2c: 01 07 00 [09:59:56]MH_I2C_Read... [09:59:56]Read from MH i2c: 01 07 00 A5 06 00 00 00 00 00 FF 0F C0 [09:59:56]process_action close_receipt done [09:59:56]requested_data is exist [09:59:56]produce_requested_data [09:59:56]requested_item fm.sn is exist - process it [09:59:56]wFMCommunicate request_size=4 [09:59:56]MH_SAM_APDU [09:59:56]CAPDU: 80 11 00 00 [09:59:56]Write to MH i2c: E2 08 00 A6 06 80 11 00 00 00 00 00 00 26 [09:59:56]Write i2c OK [09:59:56]MH_I2C_Read... [09:59:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:56]Read from MH i2c: E2 [09:59:56]MH_I2C_Read... [09:59:56]Read from MH i2c: E2 17 00 [09:59:56]MH_I2C_Read... [09:59:56]Read from MH i2c: E2 17 00 A6 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7C [09:59:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:59:56]wFMCommunicate OK [09:59:56]requested_item fd.num is exist - process it [09:59:56]SAM_PROTO_GetFieldsCounters [09:59:56]wFMCommunicate request_size=4 [09:59:56]MH_SAM_APDU [09:59:56]CAPDU: 80 13 00 00 [09:59:56]Write to MH i2c: E2 08 00 A7 06 80 13 00 00 00 00 00 00 29 [09:59:56]Write i2c OK [09:59:56]MH_I2C_Read... [09:59:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:59:56]Read from MH i2c: E2 [09:59:56]MH_I2C_Read... [09:59:56]Read from MH i2c: E2 62 00 [09:59:56]MH_I2C_Read... [09:59:56]Read from MH i2c: E2 62 00 A7 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 6E 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [09:59: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 6E 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:59:56]wFMCommunicate OK [09:59:56]SAM_PROTO_GetFieldsCounters done [09:59:56]requested_item shift.num is exist - process it [09:59:56]requested_item shift.opened is exist - process it [09:59:56]req_shift_opened [09:59:56]FM_GetShiftState [09:59:56]SAM_PROTO_GetShiftState [09:59:56]wFMCommunicate request_size=4 [09:59:56]MH_SAM_APDU [09:59:56]CAPDU: 80 13 01 00 [09:59:56]Write to MH i2c: E2 08 00 A8 06 80 13 01 00 00 00 00 00 2B [09:59:56]Write i2c OK [09:59:56]MH_I2C_Read... [09:59:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:56]Read from MH i2c: E2 [09:59:56]MH_I2C_Read... [09:59:56]Read from MH i2c: E2 0E 00 [09:59:56]MH_I2C_Read... [09:59:56]Read from MH i2c: E2 0E 00 A8 06 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 D7 [09:59:56]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [09:59:56]wFMCommunicate OK [09:59:56]SAM_PROTO_GetShiftState done [09:59:56]FM_GetShiftState done [09:59:56]req_shift_opened done [09:59:56]requested_item shift.open_date is exist - process it [09:59:56]req_shift_open_date [09:59:56]req_shift_open_date done [09:59:56]produce_requested_data done [09:59:56]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67438,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [09:59:56]process_action_free close_receipt [09:59:56]json_value_free [09:59:56]json_value_free done [09:59:56]process_json_proto returns [09:59:56]Send response to host [09:59:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67438,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [09:59:56]free response buf [09:59:56]execute_script done [09:59:56]execute_script returns [09:59:56]free content buf [09:59:56]Sock 9.Close socket [09:59:56]Sock 9.Thread stoped [09:59:58]OFD Sender: No OFD packet to send [10:00:03]OFD Sender: No OFD packet to send [10:00:08]OFD Sender: No OFD packet to send [10:00:13]OFD Sender: No OFD packet to send [10:00:18]OFD Sender: No OFD packet to send [10:00:23]OFD Sender: No OFD packet to send [10:00:28]OFD Sender: No OFD packet to send [10:00:33]OFD Sender: No OFD packet to send [10:00:38]OFD Sender: No OFD packet to send [10:00:43]OFD Sender: No OFD packet to send [10:00:48]OFD Sender: No OFD packet to send [10:00:53]OFD Sender: No OFD packet to send [10:00:58]OFD Sender: No OFD packet to send [10:01:03]OFD Sender: No OFD packet to send [10:01:08]OFD Sender: No OFD packet to send [10:01:13]OFD Sender: No OFD packet to send [10:01:18]OFD Sender: No OFD packet to send [10:01:23]OFD Sender: No OFD packet to send [10:01:28]OFD Sender: No OFD packet to send [10:01:33]OFD Sender: No OFD packet to send [10:01:38]OFD Sender: No OFD packet to send [10:01:43]OFD Sender: No OFD packet to send [10:01:48]OFD Sender: No OFD packet to send [10:01:53]OFD Sender: No OFD packet to send [10:01:58]OFD Sender: No OFD packet to send [10:02:03]OFD Sender: No OFD packet to send [10:02:08]OFD Sender: No OFD packet to send [10:02:13]OFD Sender: No OFD packet to send [10:02:18]OFD Sender: No OFD packet to send [10:02:23]OFD Sender: No OFD packet to send [10:02:24]accept exits with 8 [10:02:24]New connection [10:02:24]New thread 3067460964 created [10:02:24]Thread 3067604324 joined [10:02:24]Waiting for new connection... [10:02:24] Sock 8.Parse request [10:02:24]Sock 8.Check first char [10:02:24]Sock 8.First char is OK [10:02:24]request: POST /json_proto HTTP/1.0 [10:02:24]Method: POST [10:02:24]URL: /json_proto [10:02:24]Method is POST - this is cgi request [10:02:24]url: /json_proto [10:02:24]query_string will be loaded in cgi processing [10:02:24]execute_cgi json_proto POST (null) [10:02:24]execute_cgi path=json_proto method=POST [10:02:24]POST find Content-Length [10:02:24]Host: 172.17.41.195:8080 [10:02:24]Content-Length: 682 [10:02:24]Content-Type: application/json [10:02:24] [10:02:24]POST finish read [10:02:24]Found Content-Length = 682 [10:02:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507462", "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.80, "quantity" : 14.980, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:24]execute_script... [10:02: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)507462", "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.80, "quantity" : 14.980, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:24]POST & json_proto [10:02:24]process_json_proto [10:02:24]json parsed OK: [10:02:24]protocol is kg_v1.0 [10:02:24]action value=close_receipt [10:02:24]process_action close_receipt [10:02:24]cmd_close_receipt [10:02:24]MH_GetDate [10:02:24]Write to MH i2c: F0 00 00 A9 06 9E [10:02:24]Write i2c OK [10:02:24]MH_I2C_Read... [10:02:24]Read from MH i2c: F0 [10:02:24]MH_I2C_Read... [10:02:24]Read from MH i2c: F0 09 00 [10:02:24]MH_I2C_Read... [10:02:24]Read from MH i2c: F0 09 00 A9 06 00 B1 D9 45 66 FC 21 6F 64 CC [10:02:24]GetLastDocTimeStamp 1715853592 [10:02:24]current date 1715853745 [10:02:24]FM_GetShiftState [10:02:24]SAM_PROTO_GetShiftState [10:02:24]wFMCommunicate request_size=4 [10:02:24]MH_SAM_APDU [10:02:24]CAPDU: 80 13 01 00 [10:02:24]Write to MH i2c: E2 08 00 AA 06 80 13 01 00 00 00 00 00 2D [10:02:24]Write i2c OK [10:02:24]MH_I2C_Read... [10:02:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:24]Read from MH i2c: E2 [10:02:24]MH_I2C_Read... [10:02:24]Read from MH i2c: E2 0E 00 [10:02:24]MH_I2C_Read... [10:02:24]Read from MH i2c: E2 0E 00 AA 06 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 D9 [10:02:24]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [10:02:24]wFMCommunicate OK [10:02:24]SAM_PROTO_GetShiftState done [10:02:24]FM_GetShiftState done [10:02:24]opened in 1715818916 [10:02:24]opened+sec_in_day 1715905316 [10:02:24]quantity*price = 100066 [10:02:24]sum+1 = 100067 [10:02:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 37 16.05.2024 10:02 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67439 ФПД: 201595983803198 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T100225&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67439&fm=201595983803198&tin=02508201610067®Number=0000000000091845&sum=100000 [10:02:25]StoreToDocumentArchive [10:02:25]shift 357 fd 67439 [10:02:25]save to /storage/0357/doc_00067439 [10:02:25]save last doc name /storage/0357/doc_00067439 to /storage/kkm_last_doc_name [10:02:25]save OK [10:02:25]Clear old archive folders... [10:02:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:02:25]tlvbuf is 00CC0F90 [10:02:25]SAM_PROTO_ClearQueue [10:02:25]wFMCommunicate request_size=4 [10:02:25]MH_SAM_APDU [10:02:25]CAPDU: 80 09 00 00 [10:02:25]Write to MH i2c: E2 08 00 B7 06 80 09 00 00 00 00 00 00 2F [10:02:25]Write i2c OK [10:02:25]MH_I2C_Read... [10:02:25]Read from MH i2c: E2 [10:02:25]MH_I2C_Read... [10:02:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:02:25]Read from MH i2c: E2 03 00 [10:02:25]MH_I2C_Read... [10:02:25]Read from MH i2c: E2 03 00 B7 06 00 90 00 31 [10:02:25]RAPDU: 90 00 [10:02:25]wFMCommunicate OK [10:02:25]SAM_PROTO_ClearQueue done [10:02:25]KKMCreateOFDPacket [10:02:25]OFDProtocolAddRootSTLVToBuf [10:02:25]FM_MakeSignedData [10:02:25]FM_MakeSignedData [10:02:25]SAM_PROTO_SignData [10:02:25]wFMCommunicate request_size=4 [10:02:25]MH_SAM_APDU [10:02:25]CAPDU: 80 0D 01 02 [10:02:25]Write to MH i2c: E2 08 00 B8 06 80 0D 01 02 00 00 00 00 37 [10:02:25]Write i2c OK [10:02:25]MH_I2C_Read... [10:02:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:02:25]Read from MH i2c: E2 [10:02:25]MH_I2C_Read... [10:02:25]Read from MH i2c: E2 03 00 [10:02:25]MH_I2C_Read... [10:02:25]Read from MH i2c: E2 03 00 B8 06 00 90 00 32 [10:02:25]RAPDU: 90 00 [10:02:25]wFMCommunicate OK [10:02:25]wFMCommunicate request_size=255 [10:02:25]MH_SAM_APDU [10:02: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 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 B1 D9 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6F 07 01 00 35 04 06 00 B7 [10:02:25]Write to MH i2c: E2 02 01 B9 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 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 B1 D9 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6F 07 01 00 35 04 06 00 B7 00 00 FE [10:02:25]Write i2c OK [10:02:25]MH_I2C_Read... [10:02:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:25]Read from MH i2c: E2 [10:02:25]MH_I2C_Read... [10:02:25]Read from MH i2c: E2 03 00 [10:02:25]MH_I2C_Read... [10:02:25]Read from MH i2c: E2 03 00 B9 06 00 90 00 33 [10:02:25]RAPDU: 90 00 [10:02:25]wFMCommunicate OK [10:02:25]wFMCommunicate request_size=10 [10:02:25]MH_SAM_APDU [10:02:25]CAPDU: 80 0D 02 02 05 59 B9 00 B3 3E [10:02:25]Write to MH i2c: E2 0D 00 BA 06 80 0D 02 02 05 00 59 B9 00 B3 3E 00 00 47 [10:02:25]Write i2c OK [10:02:25]MH_I2C_Read... [10:02:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:25]Read from MH i2c: E2 [10:02:25]MH_I2C_Read... [10:02:25]Read from MH i2c: E2 03 00 [10:02:25]MH_I2C_Read... [10:02:25]Read from MH i2c: E2 03 00 BA 06 00 90 00 34 [10:02:25]RAPDU: 90 00 [10:02:25]wFMCommunicate OK [10:02:25]wFMCommunicate request_size=4 [10:02:25]MH_SAM_APDU [10:02:25]CAPDU: 80 0D 03 02 [10:02:25]Write to MH i2c: E2 08 00 BB 06 80 0D 03 02 00 00 00 00 3C [10:02:25]Write i2c OK [10:02:25]MH_I2C_Read... [10:02:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:02:25]Read from MH i2c: E2 [10:02:25]MH_I2C_Read... [10:02:25]Read from MH i2c: E2 0B 00 [10:02:25]MH_I2C_Read... [10:02:25]Read from MH i2c: E2 0B 00 BB 06 00 DA 99 02 D4 98 F9 73 C0 90 00 4A [10:02:26]RAPDU: DA 99 02 D4 98 F9 73 C0 90 00 [10:02:26]wFMCommunicate OK [10:02:26]SAM_PROTO_SignData done [10:02:26]FM_MakeSignedData done [10:02:26]CreateOFDProtocolMessage [10:02:26]wFMCommunicate request_size=4 [10:02:26]MH_SAM_APDU [10:02:26]CAPDU: 80 11 00 00 [10:02:26]Write to MH i2c: E2 08 00 BC 06 80 11 00 00 00 00 00 00 3C [10:02:26]Write i2c OK [10:02:26]MH_I2C_Read... [10:02:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:26]Read from MH i2c: E2 [10:02:26]MH_I2C_Read... [10:02:26]Read from MH i2c: E2 17 00 [10:02:26]MH_I2C_Read... [10:02:26]Read from MH i2c: E2 17 00 BC 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 92 [10:02:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:02:26]wFMCommunicate OK [10:02:26]CreateOFDProtocolMessage done [10:02:26]OFDSenderStorePacket 67439 [10:02:26]StoreOFDPacket docnum=67439 [10:02:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 27 D3 07 01 D9 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 B1 D9 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6F 07 01 00 35 04 06 00 B7 59 B9 00 B3 3E DA 99 02 D4 98 F9 73 C0 [10:02:26]CheckFolder [10:02:26]dirname=/storage/ofd_packets [10:02:26]CheckFolder done [10:02:26]ProducePacketName [10:02:26]name=ofd_packets/00067439 [10:02:26]NVStorageSaveData ofd_packets/00067439 [10:02:26]File name is /storage/ofd_packets/00067439 [10:02:26]Write 301 bytes [10:02:26]NVStorageSaveData done [10:02:26]OFDSenderStorePacket done [10:02:26]KKMCreateOFDPacket done [10:02:26]NVStorageSaveData kkm_last_timestamp [10:02:26]File name is /storage/kkm_last_timestamp [10:02:26]Write 4 bytes [10:02:26]NVStorageSaveData done [10:02:26]ExternCall_PrintAddStr [10:02:26]wPrintStart [10:02:26]Write to MH i2c: 01 00 00 BD 06 C3 [10:02:26]Write i2c OK [10:02:26]MH_I2C_Read... [10:02:26]Read from MH i2c: 01 [10:02:26]MH_I2C_Read... [10:02:26]Read from MH i2c: 01 07 00 [10:02:26]MH_I2C_Read... [10:02:26]Read from MH i2c: 01 07 00 BD 06 00 00 00 00 00 FF 0F D8 [10:02:26]RasterBufferAndPrint [10:02:26]line Счет N : (1)507462 [10:02:26]line ИНН: 02508201610067 [10:02:26]line Контрольно-Кассовый Чек [10:02:26]line ПРОДАЖА [10:02:26]line ТРК (МРК, ГНК) : 43 [10:02:26]line Товар: 2710124130 [10:02:26]line Аи-92-К-5 [10:02:26]line 14.980 * 66.80 [10:02:26]line = 1000.66 [10:02:26]line НДС 12% НСП 1% [10:02:26]line > о реализуемом товаре [10:02:26]line ОКРУГЛЕНИЕ: -0.66 [10:02:26]line ИТОГО: 1000.00 [10:02:26]line Внесено: 1000.00 [10:02:26]line СДАЧА: 0.00 [10:02:26]line НСП 1% : 8.85 [10:02:26]line НДС 12% : 106.26 [10:02:26]line Наличными: 1000.00 [10:02:26]line Безнал.: 0.00 [10:02:26]line Место: АЗС № 91 "Партнер Нефть" [10:02:26]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [10:02:26]line СНО: Общий режим [10:02:26]line Чек 37 16.05.2024 10:02 [10:02:26]line Смена: 357 ФФД: 1.0 [10:02:26]line ЗНМ: 0300000119 [10:02:26]line РНМ: 0000000000091845 [10:02:26]line Версия ККМ: 001 [10:02:26]line ФМ: 0000000000871829 [10:02:26]line ФД: 67439 [10:02:26]line ФПД: 201595983803198 [10:02:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T100225&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67439&fm=201595983803198&tin=02508201610067®Number=0000000000091845&sum=100000 [10:02:26]written 0, free lines is 4095 [10:02:26]OFD Sender: Processing packet 67439 [packets to send 35, broken 34] [10:02:26]ProducePacketName [10:02:26]name=ofd_packets/00067439 [10:02:26]OFD Sender: To server: pG, [10:02:26]CommunicateWithHost lk.salyk.kg:30040 [10:02:26]ConnectInit lk.salyk.kg [10:02:26]Write to MH i2c: 01 00 00 E7 06 ED [10:02:26]Write i2c OK [10:02:26]MH_I2C_Read... [10:02:26]Read from MH i2c: 01 [10:02:26]MH_I2C_Read... [10:02:26]Read from MH i2c: 01 07 00 [10:02:26]MH_I2C_Read... [10:02:26]Read from MH i2c: 01 07 00 E7 06 00 00 00 00 00 CE 0C CE [10:02:26]RasterBufferAndPrint [10:02:26]line [10:02:26]line [10:02:26]line [10:02:26]line [10:02:26]line [10:02:26]written 0, free lines is 3284 [10:02:26]MH_Cut [10:02:26]Write to MH i2c: D1 01 00 EE 06 01 C6 [10:02:26]Write i2c OK [10:02:26]MH_I2C_Read... [10:02:26]Read from MH i2c: D1 [10:02:26]MH_I2C_Read... [10:02:26]Read from MH i2c: D1 01 00 [10:02:26]MH_I2C_Read... [10:02:26]Read from MH i2c: D1 01 00 EE 06 00 C5 [10:02:26]Write to MH i2c: 01 00 00 EF 06 F5 [10:02:26]Write i2c OK [10:02:26]MH_I2C_Read... [10:02:27]*** Cut start [10:02:27]*** Purtial cut [10:02:27]*** Stage 1: CUTSNS_PIN = 1 [10:02:27]Read from MH i2c: 01 [10:02:27]MH_I2C_Read... [10:02:27]*** Stop cut motor [10:02:27]*** Cut end [10:02:27]Read from MH i2c: 01 07 00 [10:02:27]MH_I2C_Read... [10:02:27]Read from MH i2c: 01 07 00 EF 06 00 00 00 00 00 FF 0F 0A [10:02:27]process_action close_receipt done [10:02:27]requested_data is exist [10:02:27]produce_requested_data [10:02:27]requested_item fm.sn is exist - process it [10:02:27]wFMCommunicate request_size=4 [10:02:27]MH_SAM_APDU [10:02:27]CAPDU: 80 11 00 00 [10:02:27]Write to MH i2c: E2 08 00 F0 06 80 11 00 00 00 00 00 00 70 [10:02:27]Write i2c OK [10:02:27]MH_I2C_Read... [10:02:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:28]Read from MH i2c: E2 [10:02:28]MH_I2C_Read... [10:02:28]Read from MH i2c: E2 17 00 [10:02:28]MH_I2C_Read... [10:02:28]Read from MH i2c: E2 17 00 F0 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C6 [10:02:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:02:28]wFMCommunicate OK [10:02:28]requested_item fd.num is exist - process it [10:02:28]SAM_PROTO_GetFieldsCounters [10:02:28]wFMCommunicate request_size=4 [10:02:28]MH_SAM_APDU [10:02:28]CAPDU: 80 13 00 00 [10:02:28]Write to MH i2c: E2 08 00 F1 06 80 13 00 00 00 00 00 00 73 [10:02:28]Write i2c OK [10:02:28]MH_I2C_Read... [10:02:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:28]Read from MH i2c: E2 [10:02:28]MH_I2C_Read... [10:02:28]Read from MH i2c: E2 62 00 [10:02:28]MH_I2C_Read... [10:02:28]Read from MH i2c: E2 62 00 F1 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 6F 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [10:02: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 6F 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:02:28]wFMCommunicate OK [10:02:28]SAM_PROTO_GetFieldsCounters done [10:02:28]requested_item shift.num is exist - process it [10:02:28]requested_item shift.opened is exist - process it [10:02:28]req_shift_opened [10:02:28]FM_GetShiftState [10:02:28]SAM_PROTO_GetShiftState [10:02:28]wFMCommunicate request_size=4 [10:02:28]MH_SAM_APDU [10:02:28]CAPDU: 80 13 01 00 [10:02:28]Write to MH i2c: E2 08 00 F2 06 80 13 01 00 00 00 00 00 75 [10:02:28]Write i2c OK [10:02:28]MH_I2C_Read... [10:02:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:28]Read from MH i2c: E2 [10:02:28]MH_I2C_Read... [10:02:28]Read from MH i2c: E2 0E 00 [10:02:28]MH_I2C_Read... [10:02:28]Read from MH i2c: E2 0E 00 F2 06 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 21 [10:02:28]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [10:02:28]wFMCommunicate OK [10:02:28]SAM_PROTO_GetShiftState done [10:02:28]FM_GetShiftState done [10:02:28]req_shift_opened done [10:02:28]requested_item shift.open_date is exist - process it [10:02:28]req_shift_open_date [10:02:28]req_shift_open_date done [10:02:28]produce_requested_data done [10:02:28]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67439,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [10:02:28]process_action_free close_receipt [10:02:28]json_value_free [10:02:28]json_value_free done [10:02:28]process_json_proto returns [10:02:28]Send response to host [10:02:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67439,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [10:02:28]free response buf [10:02:28]execute_script done [10:02:28]execute_script returns [10:02:28]free content buf [10:02:28]Sock 8.Close socket [10:02:28]Sock 8.Thread stoped [10:04:20]accept exits with 9 [10:04:20]New connection [10:04:20]New thread 3067604324 created [10:04:20]Thread 3067460964 joined [10:04:20]Waiting for new connection... [10:04:20] Sock 9.Parse request [10:04:20]Sock 9.Check first char [10:04:20]Sock 9.First char is OK [10:04:20]request: POST /json_proto HTTP/1.0 [10:04:20]Method: POST [10:04:20]URL: /json_proto [10:04:20]Method is POST - this is cgi request [10:04:20]url: /json_proto [10:04:20]query_string will be loaded in cgi processing [10:04:20]execute_cgi json_proto POST (null) [10:04:20]execute_cgi path=json_proto method=POST [10:04:20]POST find Content-Length [10:04:20]Host: 172.17.41.195:8080 [10:04:20]Content-Length: 1209 [10:04:20]Content-Type: application/json [10:04:20] [10:04:20]POST finish read [10:04:20]Found Content-Length = 1209 [10:04:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507461\u000A16.05.2024 09:46\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 44.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 3286.80\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:20]execute_script... [10:04:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507461\u000A16.05.2024 09:46\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 44.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 3286.80\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:20]POST & json_proto [10:04:20]process_json_proto [10:04:20]json parsed OK: [10:04:20]protocol is kg_v1.0 [10:04:20]action value=print_text [10:04:20]process_action print_text [10:04:20]cmd_print_text [10:04:20]ExternCall_PrintAddStr [10:04:20]wPrintStart [10:04:20]Write to MH i2c: 01 00 00 F3 06 F9 [10:04:20]Write i2c OK [10:04:20]MH_I2C_Read... [10:04:20]Read from MH i2c: 01 [10:04:20]MH_I2C_Read... [10:04:20]Read from MH i2c: 01 07 00 [10:04:20]MH_I2C_Read... [10:04:20]Read from MH i2c: 01 07 00 F3 06 00 00 00 00 00 FF 0F 0E [10:04:20]RasterBufferAndPrint [10:04:20]line *****ТОВАРНЫЙ ЧЕК***** [10:04:20]line АЗС-91 [10:04:20]line Партнер нефть [10:04:20]line 02508201610067 [10:04:20]line Кассир : Пайзулдаева А. [10:04:20]line Счет N : (1)507461 [10:04:20]line 16.05.2024 09:46 [10:04:20]line ПРОДАЖА [10:04:20]line ТРК (МРК, ГНК): 11 [10:04:20]line Вид ГСМ : 2710194210 [10:04:20]line ДТ-К-5 [10:04:20]line 44.000 x 74.70 [10:04:20]line ИТОГ: 3286.80 [10:04:20]line Тип оплаты: Талоны: Топливная Карта [10:04:20]line 02750 [10:04:20]line ______________________ [10:04:20]line (подпись) [10:04:20]written 0, free lines is 4095 [10:04:20]Write to MH i2c: 01 00 00 07 07 0E [10:04:20]Write i2c OK [10:04:20]MH_I2C_Read... [10:04:20]Read from MH i2c: 01 [10:04:20]MH_I2C_Read... [10:04:20]Read from MH i2c: 01 07 00 [10:04:20]MH_I2C_Read... [10:04:20]Read from MH i2c: 01 07 00 07 07 00 00 00 00 00 11 0E 34 [10:04:20]RasterBufferAndPrint [10:04:20]line [10:04:20]line [10:04:20]line [10:04:20]line [10:04:20]line [10:04:20]written 0, free lines is 3602 [10:04:20]MH_Cut [10:04:20]Write to MH i2c: D1 01 00 0E 07 01 E7 [10:04:20]Write i2c OK [10:04:20]MH_I2C_Read... [10:04:20]Read from MH i2c: D1 [10:04:20]MH_I2C_Read... [10:04:20]Read from MH i2c: D1 01 00 [10:04:20]MH_I2C_Read... [10:04:20]Read from MH i2c: D1 01 00 0E 07 00 E6 [10:04:20]Write to MH i2c: 01 00 00 0F 07 16 [10:04:20]Write i2c OK [10:04:20]MH_I2C_Read... [10:04:21]*** Cut start [10:04:21]*** Purtial cut [10:04:21]*** CUTSNS_PIN = 0 [10:04:21]*** Stage 1: CUTSNS_PIN = 1 [10:04:23]Read from MH i2c: 01 [10:04:23]MH_I2C_Read... [10:04:23]*** Stop cut motor [10:04:23]*** Cut end [10:04:23]Read from MH i2c: 01 07 00 [10:04:23]MH_I2C_Read... [10:04:23]Read from MH i2c: 01 07 00 0F 07 00 00 00 00 00 FF 0F 2B [10:04:23]process_action print_text done [10:04:23]requested_data is exist [10:04:23]produce_requested_data [10:04:23]requested_item fm.sn is exist - process it [10:04:23]wFMCommunicate request_size=4 [10:04:23]MH_SAM_APDU [10:04:23]CAPDU: 80 11 00 00 [10:04:23]Write to MH i2c: E2 08 00 10 07 80 11 00 00 00 00 00 00 91 [10:04:23]Write i2c OK [10:04:23]MH_I2C_Read... [10:04:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:23]Read from MH i2c: E2 [10:04:23]MH_I2C_Read... [10:04:23]Read from MH i2c: E2 17 00 [10:04:23]MH_I2C_Read... [10:04:23]Read from MH i2c: E2 17 00 10 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E7 [10:04:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:04:23]wFMCommunicate OK [10:04:23]requested_item fd.num is exist - process it [10:04:23]SAM_PROTO_GetFieldsCounters [10:04:23]wFMCommunicate request_size=4 [10:04:23]MH_SAM_APDU [10:04:23]CAPDU: 80 13 00 00 [10:04:23]Write to MH i2c: E2 08 00 11 07 80 13 00 00 00 00 00 00 94 [10:04:23]Write i2c OK [10:04:23]MH_I2C_Read... [10:04:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:23]Read from MH i2c: E2 [10:04:23]MH_I2C_Read... [10:04:23]Read from MH i2c: E2 62 00 [10:04:23]MH_I2C_Read... [10:04:23]Read from MH i2c: E2 62 00 11 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 6F 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [10:04: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 6F 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:04:23]wFMCommunicate OK [10:04:23]SAM_PROTO_GetFieldsCounters done [10:04:23]requested_item shift.num is exist - process it [10:04:23]requested_item shift.opened is exist - process it [10:04:23]req_shift_opened [10:04:23]FM_GetShiftState [10:04:23]SAM_PROTO_GetShiftState [10:04:23]wFMCommunicate request_size=4 [10:04:23]MH_SAM_APDU [10:04:23]CAPDU: 80 13 01 00 [10:04:23]Write to MH i2c: E2 08 00 12 07 80 13 01 00 00 00 00 00 96 [10:04:23]Write i2c OK [10:04:23]MH_I2C_Read... [10:04:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:23]Read from MH i2c: E2 [10:04:23]MH_I2C_Read... [10:04:23]Read from MH i2c: E2 0E 00 [10:04:23]MH_I2C_Read... [10:04:23]Read from MH i2c: E2 0E 00 12 07 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 42 [10:04:23]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [10:04:23]wFMCommunicate OK [10:04:23]SAM_PROTO_GetShiftState done [10:04:23]FM_GetShiftState done [10:04:23]req_shift_opened done [10:04:23]requested_item shift.open_date is exist - process it [10:04:23]req_shift_open_date [10:04:23]req_shift_open_date done [10:04:23]produce_requested_data done [10:04:23]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67439,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [10:04:23]process_action_free print_text [10:04:23]json_value_free [10:04:23]json_value_free done [10:04:23]process_json_proto returns [10:04:23]Send response to host [10:04:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67439,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [10:04:23]free response buf [10:04:23]execute_script done [10:04:23]execute_script returns [10:04:23]free content buf [10:04:23]Sock 9.Close socket [10:04:23]Sock 9.Thread stoped [10:04:38]ConnectInit Can't connect to host [10:04:38]CommunicateWithHost connect error [10:04:38]CommunicateWithHost err = -1 [10:04:38]OFD Sender: Server communicate error [10:04:43]OFD Sender: Processing packet 67439 [packets to send 35, broken 34] [10:04:43]ProducePacketName [10:04:43]name=ofd_packets/00067439 [10:04:43]OFD Sender: To server: pG, [10:04:43]CommunicateWithHost lk.salyk.kg:30040 [10:04:43]ConnectInit lk.salyk.kg [10:04:43]Connected sock=9 [10:04: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 38 32 39 0F 01 00 00 27 D3 07 01 D9 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 B1 D9 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6F 07 01 00 35 04 06 00 B7 59 B9 00 B3 3E DA 99 02 D4 98 F9 73 C0 [10: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 38 32 39 4F 00 00 00 61 C6 47 00 95 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 38 32 39 10 04 04 00 6F 07 01 00 F4 03 04 00 15 82 45 66 B6 04 01 00 00 AF 50 7E 76 65 70 D9 3B [10:04:43]CommunicateWithHost err = 0 [10:04:43]CheckOFDResponse [10:04:43]1017 (14) - 77093643461234 [10:04:43]1041 (16) - 0000000000871829 [10:04:43]1040 (4) - 67439 [10:04:43]1012 (4) - 16.05.2024 03:48 [10:04:43]1206 (1) - 0 [10:04:43]OFD Sender: Remove packet 67439 [10:04:43]ProducePacketName [10:04:43]name=ofd_packets/00067439 [10:04:43]NVStorageDeleteData [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:57]accept exits with 8 [10:10:57]New connection [10:10:57]New thread 3067460964 created [10:10:57]Thread 3067604324 joined [10:10:57]Waiting for new connection... [10:10:57] Sock 8.Parse request [10:10:57]Sock 8.Check first char [10:10:57]Sock 8.First char is OK [10:10:57]request: POST /json_proto HTTP/1.0 [10:10:57]Method: POST [10:10:57]URL: /json_proto [10:10:57]Method is POST - this is cgi request [10:10:57]url: /json_proto [10:10:57]query_string will be loaded in cgi processing [10:10:57]execute_cgi json_proto POST (null) [10:10:57]execute_cgi path=json_proto method=POST [10:10:57]POST find Content-Length [10:10:57]Host: 172.17.41.195:8080 [10:10:57]Content-Length: 1209 [10:10:57]Content-Type: application/json [10:10:57] [10:10:57]POST finish read [10:10:57]Found Content-Length = 1209 [10:10:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507463\u000A16.05.2024 09:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 25.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1867.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:57]execute_script... [10:10:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507463\u000A16.05.2024 09:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 25.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1867.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:57]POST & json_proto [10:10:57]process_json_proto [10:10:57]json parsed OK: [10:10:57]protocol is kg_v1.0 [10:10:57]action value=print_text [10:10:57]process_action print_text [10:10:57]cmd_print_text [10:10:57]ExternCall_PrintAddStr [10:10:57]wPrintStart [10:10:57]Write to MH i2c: 01 00 00 13 07 1A [10:10:57]Write i2c OK [10:10:57]MH_I2C_Read... [10:10:57]Read from MH i2c: 01 [10:10:57]MH_I2C_Read... [10:10:57]Read from MH i2c: 01 07 00 [10:10:57]MH_I2C_Read... [10:10:57]Read from MH i2c: 01 07 00 13 07 00 00 00 00 00 FF 0F 2F [10:10:57]RasterBufferAndPrint [10:10:57]line *****ТОВАРНЫЙ ЧЕК***** [10:10:57]line АЗС-91 [10:10:57]line Партнер нефть [10:10:57]line 02508201610067 [10:10:57]line Кассир : Пайзулдаева А. [10:10:57]line Счет N : (1)507463 [10:10:57]line 16.05.2024 09:53 [10:10:57]line ПРОДАЖА [10:10:57]line ТРК (МРК, ГНК): 11 [10:10:57]line Вид ГСМ : 2710194210 [10:10:57]line ДТ-К-5 [10:10:57]line 25.000 x 74.70 [10:10:57]line ИТОГ: 1867.50 [10:10:57]line Тип оплаты: Талоны: Топливная Карта [10:10:57]line 02750 [10:10:57]line ______________________ [10:10:57]line (подпись) [10:10:57]written 0, free lines is 4095 [10:10:57]Write to MH i2c: 01 00 00 27 07 2E [10:10:57]Write i2c OK [10:10:57]MH_I2C_Read... [10:10:57]Read from MH i2c: 01 [10:10:57]MH_I2C_Read... [10:10:57]Read from MH i2c: 01 07 00 [10:10:57]MH_I2C_Read... [10:10:57]Read from MH i2c: 01 07 00 27 07 00 00 00 00 00 10 0E 53 [10:10:57]RasterBufferAndPrint [10:10:57]line [10:10:57]line [10:10:57]line [10:10:57]line [10:10:57]line [10:10:57]written 0, free lines is 3602 [10:10:57]MH_Cut [10:10:57]Write to MH i2c: D1 01 00 2E 07 01 07 [10:10:57]Write i2c OK [10:10:57]MH_I2C_Read... [10:10:57]Read from MH i2c: D1 [10:10:57]MH_I2C_Read... [10:10:57]Read from MH i2c: D1 01 00 [10:10:57]MH_I2C_Read... [10:10:57]Read from MH i2c: D1 01 00 2E 07 00 06 [10:10:57]Write to MH i2c: 01 00 00 2F 07 36 [10:10:57]Write i2c OK [10:10:57]MH_I2C_Read... [10:10:58]*** Cut start [10:10:58]*** Purtial cut [10:10:58]*** Stage 1: CUTSNS_PIN = 1 [10:10:58]Read from MH i2c: 01 [10:10:58]MH_I2C_Read... [10:10:58]*** Stop cut motor [10:10:58]*** Cut end [10:10:58]Read from MH i2c: 01 07 00 [10:10:58]MH_I2C_Read... [10:10:58]Read from MH i2c: 01 07 00 2F 07 00 00 00 00 00 FF 0F 4B [10:10:58]process_action print_text done [10:10:58]requested_data is exist [10:10:58]produce_requested_data [10:10:58]requested_item fm.sn is exist - process it [10:10:58]wFMCommunicate request_size=4 [10:10:58]MH_SAM_APDU [10:10:58]CAPDU: 80 11 00 00 [10:10:58]Write to MH i2c: E2 08 00 30 07 80 11 00 00 00 00 00 00 B1 [10:10:58]Write i2c OK [10:10:58]MH_I2C_Read... [10:10:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:58]Read from MH i2c: E2 [10:10:58]MH_I2C_Read... [10:10:58]Read from MH i2c: E2 17 00 [10:10:58]MH_I2C_Read... [10:10:58]Read from MH i2c: E2 17 00 30 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 07 [10:10:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:10:58]wFMCommunicate OK [10:10:58]requested_item fd.num is exist - process it [10:10:58]SAM_PROTO_GetFieldsCounters [10:10:58]wFMCommunicate request_size=4 [10:10:58]MH_SAM_APDU [10:10:58]CAPDU: 80 13 00 00 [10:10:58]Write to MH i2c: E2 08 00 31 07 80 13 00 00 00 00 00 00 B4 [10:10:58]Write i2c OK [10:10:58]MH_I2C_Read... [10:10:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:10:58]Read from MH i2c: E2 [10:10:58]MH_I2C_Read... [10:10:58]Read from MH i2c: E2 62 00 [10:10:58]MH_I2C_Read... [10:10:58]Read from MH i2c: E2 62 00 31 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 6F 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [10:10: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 6F 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:10:58]wFMCommunicate OK [10:10:58]SAM_PROTO_GetFieldsCounters done [10:10:58]requested_item shift.num is exist - process it [10:10:58]requested_item shift.opened is exist - process it [10:10:58]req_shift_opened [10:10:58]FM_GetShiftState [10:10:58]SAM_PROTO_GetShiftState [10:10:58]wFMCommunicate request_size=4 [10:10:58]MH_SAM_APDU [10:10:58]CAPDU: 80 13 01 00 [10:10:58]Write to MH i2c: E2 08 00 32 07 80 13 01 00 00 00 00 00 B6 [10:10:58]Write i2c OK [10:10:58]MH_I2C_Read... [10:10:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:58]Read from MH i2c: E2 [10:10:58]MH_I2C_Read... [10:10:58]Read from MH i2c: E2 0E 00 [10:10:58]MH_I2C_Read... [10:10:58]Read from MH i2c: E2 0E 00 32 07 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 62 [10:10:58]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [10:10:58]wFMCommunicate OK [10:10:58]SAM_PROTO_GetShiftState done [10:10:58]FM_GetShiftState done [10:10:58]req_shift_opened done [10:10:58]requested_item shift.open_date is exist - process it [10:10:58]req_shift_open_date [10:10:58]req_shift_open_date done [10:10:58]produce_requested_data done [10:10:58]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67439,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [10:10:58]process_action_free print_text [10:10:58]json_value_free [10:10:58]json_value_free done [10:10:58]process_json_proto returns [10:10:58]Send response to host [10:10:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67439,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [10:10:58]free response buf [10:10:58]execute_script done [10:10:58]execute_script returns [10:10:58]free content buf [10:10:58]Sock 8.Close socket [10:10:58]Sock 8.Thread stoped [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:24]OFD Sender: No OFD packet to send [10:13:29]OFD Sender: No OFD packet to send [10:13:34]OFD Sender: No OFD packet to send [10:13:39]OFD Sender: No OFD packet to send [10:13:44]OFD Sender: No OFD packet to send [10:13:49]OFD Sender: No OFD packet to send [10:13:54]OFD Sender: No OFD packet to send [10:13:59]OFD Sender: No OFD packet to send [10:14:04]OFD Sender: No OFD packet to send [10:14:09]OFD Sender: No OFD packet to send [10:14:14]OFD Sender: No OFD packet to send [10:14:19]OFD Sender: No OFD packet to send [10:14:24]accept exits with 9 [10:14:24]New connection [10:14:24]New thread 3067604324 created [10:14:24]Thread 3067460964 joined [10:14:24]Waiting for new connection... [10:14:24] Sock 9.Parse request [10:14:24]Sock 9.Check first char [10:14:24]Sock 9.First char is OK [10:14:24]request: POST /json_proto HTTP/1.0 [10:14:24]Method: POST [10:14:24]URL: /json_proto [10:14:24]Method is POST - this is cgi request [10:14:24]url: /json_proto [10:14:24]query_string will be loaded in cgi processing [10:14:24]execute_cgi json_proto POST (null) [10:14:24]execute_cgi path=json_proto method=POST [10:14:24]POST find Content-Length [10:14:24]Host: 172.17.41.195:8080 [10:14:24]Content-Length: 671 [10:14:24]Content-Type: application/json [10:14:24] [10:14:24]POST finish read [10:14:24]Found Content-Length = 671 [10:14:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507465", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 13.280, "sum" : 900.38, "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" ] } } [10:14:24]execute_script... [10:14: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)507465", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 13.280, "sum" : 900.38, "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" ] } } [10:14:24]POST & json_proto [10:14:24]process_json_proto [10:14:24]json parsed OK: [10:14:24]protocol is kg_v1.0 [10:14:24]action value=close_receipt [10:14:24]process_action close_receipt [10:14:24]cmd_close_receipt [10:14:24]MH_GetDate [10:14:24]Write to MH i2c: F0 00 00 33 07 29 [10:14:24]Write i2c OK [10:14:24]MH_I2C_Read... [10:14:24]Read from MH i2c: F0 [10:14:24]MH_I2C_Read... [10:14:24]Read from MH i2c: F0 09 00 [10:14:24]MH_I2C_Read... [10:14:24]Read from MH i2c: F0 09 00 33 07 00 81 DC 45 66 FC 21 6F 64 2A [10:14:24]GetLastDocTimeStamp 1715853745 [10:14:24]current date 1715854465 [10:14:24]FM_GetShiftState [10:14:24]SAM_PROTO_GetShiftState [10:14:24]wFMCommunicate request_size=4 [10:14:24]MH_SAM_APDU [10:14:24]CAPDU: 80 13 01 00 [10:14:24]Write to MH i2c: E2 08 00 34 07 80 13 01 00 00 00 00 00 B8 [10:14:24]Write i2c OK [10:14:24]MH_I2C_Read... [10:14:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:24]Read from MH i2c: E2 [10:14:24]MH_I2C_Read... [10:14:24]Read from MH i2c: E2 0E 00 [10:14:24]MH_I2C_Read... [10:14:24]Read from MH i2c: E2 0E 00 34 07 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 64 [10:14:24]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [10:14:24]wFMCommunicate OK [10:14:24]SAM_PROTO_GetShiftState done [10:14:24]FM_GetShiftState done [10:14:24]opened in 1715818916 [10:14:24]opened+sec_in_day 1715905316 [10:14:24]quantity*price = 90038 [10:14:24]sum+1 = 90039 [10:14:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 38 16.05.2024 10:14 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67440 ФПД: 33549745533822 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T101425&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67440&fm=33549745533822&tin=02508201610067®Number=0000000000091845&sum=90000 [10:14:25]StoreToDocumentArchive [10:14:25]shift 357 fd 67440 [10:14:25]save to /storage/0357/doc_00067440 [10:14:25]save last doc name /storage/0357/doc_00067440 to /storage/kkm_last_doc_name [10:14:25]save OK [10:14:25]Clear old archive folders... [10:14:25]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:14:25]tlvbuf is 00CA4B70 [10:14:25]SAM_PROTO_ClearQueue [10:14:25]wFMCommunicate request_size=4 [10:14:25]MH_SAM_APDU [10:14:25]CAPDU: 80 09 00 00 [10:14:25]Write to MH i2c: E2 08 00 41 07 80 09 00 00 00 00 00 00 BA [10:14:25]Write i2c OK [10:14:25]MH_I2C_Read... [10:14:25]Read from MH i2c: E2 [10:14:25]MH_I2C_Read... [10:14:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:14:25]Read from MH i2c: E2 03 00 [10:14:25]MH_I2C_Read... [10:14:25]Read from MH i2c: E2 03 00 41 07 00 90 00 BC [10:14:25]RAPDU: 90 00 [10:14:25]wFMCommunicate OK [10:14:25]SAM_PROTO_ClearQueue done [10:14:25]KKMCreateOFDPacket [10:14:25]OFDProtocolAddRootSTLVToBuf [10:14:25]FM_MakeSignedData [10:14:25]FM_MakeSignedData [10:14:25]SAM_PROTO_SignData [10:14:25]wFMCommunicate request_size=4 [10:14:25]MH_SAM_APDU [10:14:25]CAPDU: 80 0D 01 02 [10:14:25]Write to MH i2c: E2 08 00 42 07 80 0D 01 02 00 00 00 00 C2 [10:14:25]Write i2c OK [10:14:25]MH_I2C_Read... [10:14:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:14:25]Read from MH i2c: E2 [10:14:25]MH_I2C_Read... [10:14:25]Read from MH i2c: E2 03 00 [10:14:25]MH_I2C_Read... [10:14:25]Read from MH i2c: E2 03 00 42 07 00 90 00 BD [10:14:25]RAPDU: 90 00 [10:14:25]wFMCommunicate OK [10:14:25]wFMCommunicate request_size=255 [10:14:25]MH_SAM_APDU [10:14:25]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 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 26 00 00 00 F4 03 04 00 81 DC 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 70 07 01 00 35 04 06 00 [10:14:25]Write to MH i2c: E2 02 01 43 07 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 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 26 00 00 00 F4 03 04 00 81 DC 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 70 07 01 00 35 04 06 00 00 00 45 [10:14:25]Write i2c OK [10:14:25]MH_I2C_Read... [10:14:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:25]Read from MH i2c: E2 [10:14:25]MH_I2C_Read... [10:14:25]Read from MH i2c: E2 03 00 [10:14:25]MH_I2C_Read... [10:14:25]Read from MH i2c: E2 03 00 43 07 00 90 00 BE [10:14:25]RAPDU: 90 00 [10:14:25]wFMCommunicate OK [10:14:25]wFMCommunicate request_size=11 [10:14:25]MH_SAM_APDU [10:14:25]CAPDU: 80 0D 02 02 06 1E 83 68 AA 33 7E [10:14:25]Write to MH i2c: E2 0E 00 44 07 80 0D 02 02 06 00 1E 83 68 AA 33 7E 00 00 35 [10:14:25]Write i2c OK [10:14:25]MH_I2C_Read... [10:14:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:25]Read from MH i2c: E2 [10:14:25]MH_I2C_Read... [10:14:25]Read from MH i2c: E2 03 00 [10:14:25]MH_I2C_Read... [10:14:25]Read from MH i2c: E2 03 00 44 07 00 90 00 BF [10:14:25]RAPDU: 90 00 [10:14:25]wFMCommunicate OK [10:14:25]wFMCommunicate request_size=4 [10:14:25]MH_SAM_APDU [10:14:25]CAPDU: 80 0D 03 02 [10:14:25]Write to MH i2c: E2 08 00 45 07 80 0D 03 02 00 00 00 00 C7 [10:14:25]Write i2c OK [10:14:25]MH_I2C_Read... [10:14:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:14:26]Read from MH i2c: E2 [10:14:26]MH_I2C_Read... [10:14:26]Read from MH i2c: E2 0B 00 [10:14:26]MH_I2C_Read... [10:14:26]Read from MH i2c: E2 0B 00 45 07 00 BE 46 85 B5 11 B0 8F E9 90 00 3F [10:14:26]RAPDU: BE 46 85 B5 11 B0 8F E9 90 00 [10:14:26]wFMCommunicate OK [10:14:26]SAM_PROTO_SignData done [10:14:26]FM_MakeSignedData done [10:14:26]CreateOFDProtocolMessage [10:14:26]wFMCommunicate request_size=4 [10:14:26]MH_SAM_APDU [10:14:26]CAPDU: 80 11 00 00 [10:14:26]Write to MH i2c: E2 08 00 46 07 80 11 00 00 00 00 00 00 C7 [10:14:26]Write i2c OK [10:14:26]MH_I2C_Read... [10:14:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:26]Read from MH i2c: E2 [10:14:26]MH_I2C_Read... [10:14:26]Read from MH i2c: E2 17 00 [10:14:26]MH_I2C_Read... [10:14:26]Read from MH i2c: E2 17 00 46 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 1D [10:14:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:14:26]wFMCommunicate OK [10:14:26]CreateOFDProtocolMessage done [10:14:26]OFDSenderStorePacket 67440 [10:14:26]StoreOFDPacket docnum=67440 [10:14:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 4D 03 08 01 C8 FA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 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 26 00 00 00 F4 03 04 00 81 DC 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 70 07 01 00 35 04 06 00 1E 83 68 AA 33 7E BE 46 85 B5 11 B0 8F E9 [10:14:26]CheckFolder [10:14:26]dirname=/storage/ofd_packets [10:14:26]CheckFolder done [10:14:26]ProducePacketName [10:14:26]name=ofd_packets/00067440 [10:14:26]NVStorageSaveData ofd_packets/00067440 [10:14:26]File name is /storage/ofd_packets/00067440 [10:14:26]Write 302 bytes [10:14:26]NVStorageSaveData done [10:14:26]OFDSenderStorePacket done [10:14:26]KKMCreateOFDPacket done [10:14:26]NVStorageSaveData kkm_last_timestamp [10:14:26]File name is /storage/kkm_last_timestamp [10:14:26]Write 4 bytes [10:14:26]NVStorageSaveData done [10:14:26]ExternCall_PrintAddStr [10:14:26]wPrintStart [10:14:26]Write to MH i2c: 01 00 00 47 07 4E [10:14:26]Write i2c OK [10:14:26]MH_I2C_Read... [10:14:26]Read from MH i2c: 01 [10:14:26]MH_I2C_Read... [10:14:26]Read from MH i2c: 01 07 00 [10:14:26]MH_I2C_Read... [10:14:26]Read from MH i2c: 01 07 00 47 07 00 00 00 00 00 FF 0F 63 [10:14:26]RasterBufferAndPrint [10:14:26]line Счет N : (1)507465 [10:14:26]line ИНН: 02508201610067 [10:14:26]line Контрольно-Кассовый Чек [10:14:26]line ПРОДАЖА [10:14:26]line ТРК (МРК, ГНК) : 22 [10:14:26]line Товар: 2710124130 [10:14:26]line Super-92-К-5 [10:14:26]line 13.280 * 67.80 [10:14:26]line = 900.38 [10:14:26]line НДС 12% НСП 1% [10:14:26]line > о реализуемом товаре [10:14:26]line ОКРУГЛЕНИЕ: -0.38 [10:14:26]line ИТОГО: 900.00 [10:14:26]line Внесено: 900.00 [10:14:26]line СДАЧА: 0.00 [10:14:26]line НСП 1% : 7.97 [10:14:26]line НДС 12% : 95.62 [10:14:26]line Наличными: 900.00 [10:14:26]line Безнал.: 0.00 [10:14:26]line Место: АЗС № 91 "Партнер Нефть" [10:14:26]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [10:14:26]line СНО: Общий режим [10:14:26]line Чек 38 16.05.2024 10:14 [10:14:26]line Смена: 357 ФФД: 1.0 [10:14:26]line ЗНМ: 0300000119 [10:14:26]line РНМ: 0000000000091845 [10:14:26]line Версия ККМ: 001 [10:14:26]line ФМ: 0000000000871829 [10:14:26]line ФД: 67440 [10:14:26]line ФПД: 33549745533822 [10:14:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T101425&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67440&fm=33549745533822&tin=02508201610067®Number=0000000000091845&sum=90000 [10:14:26]OFD Sender: Processing packet 67440 [packets to send 35, broken 34] [10:14:26]ProducePacketName [10:14:26]name=ofd_packets/00067440 [10:14:26]OFD Sender: To server: pG, [10:14:26]CommunicateWithHost lk.salyk.kg:30040 [10:14:26]ConnectInit lk.salyk.kg [10:14:26]written 0, free lines is 4095 [10:14:26]Connected sock=10 [10:14: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 38 32 39 10 01 00 00 4D 03 08 01 C8 FA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 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 26 00 00 00 F4 03 04 00 81 DC 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 70 07 01 00 35 04 06 00 1E 83 68 AA 33 7E BE 46 85 B5 11 B0 8F E9 [10:14:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 1C 24 47 00 51 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 38 32 39 10 04 04 00 70 07 01 00 F4 03 04 00 5C 84 45 66 B6 04 01 00 00 20 84 C6 F9 0B 7A D9 3C [10:14:26]CommunicateWithHost err = 0 [10:14:26]CheckOFDResponse [10:14:26]1017 (14) - 77093643461234 [10:14:26]1041 (16) - 0000000000871829 [10:14:26]1040 (4) - 67440 [10:14:26]1012 (4) - 16.05.2024 03:58 [10:14:26]1206 (1) - 0 [10:14:26]OFD Sender: Remove packet 67440 [10:14:26]ProducePacketName [10:14:26]name=ofd_packets/00067440 [10:14:26]NVStorageDeleteData [10:14:26]Write to MH i2c: 01 00 00 71 07 78 [10:14:26]Write i2c OK [10:14:26]MH_I2C_Read... [10:14:26]Read from MH i2c: 01 [10:14:26]MH_I2C_Read... [10:14:26]Read from MH i2c: 01 07 00 [10:14:26]MH_I2C_Read... [10:14:26]Read from MH i2c: 01 07 00 71 07 00 00 00 00 00 C9 0C 54 [10:14:26]RasterBufferAndPrint [10:14:26]line [10:14:26]line [10:14:26]line [10:14:26]line [10:14:26]line [10:14:26]written 0, free lines is 3278 [10:14:26]MH_Cut [10:14:26]Write to MH i2c: D1 01 00 78 07 01 51 [10:14:26]Write i2c OK [10:14:26]MH_I2C_Read... [10:14:26]Read from MH i2c: D1 [10:14:26]MH_I2C_Read... [10:14:26]Read from MH i2c: D1 01 00 [10:14:26]MH_I2C_Read... [10:14:26]Read from MH i2c: D1 01 00 78 07 00 50 [10:14:26]Write to MH i2c: 01 00 00 79 07 80 [10:14:26]Write i2c OK [10:14:26]MH_I2C_Read... [10:14:27]OFD Sender: No OFD packet to send [10:14:27]*** Cut start [10:14:27]*** Purtial cut [10:14:27]*** CUTSNS_PIN = 0 [10:14:27]*** Stage 1: CUTSNS_PIN = 1 [10:14:29]Read from MH i2c: 01 [10:14:29]MH_I2C_Read... [10:14:29]*** Stop cut motor [10:14:29]*** Cut end [10:14:29]Read from MH i2c: 01 07 00 [10:14:29]MH_I2C_Read... [10:14:29]Read from MH i2c: 01 07 00 79 07 00 00 00 00 00 FF 0F 95 [10:14:29]process_action close_receipt done [10:14:29]requested_data is exist [10:14:29]produce_requested_data [10:14:29]requested_item fm.sn is exist - process it [10:14:29]wFMCommunicate request_size=4 [10:14:29]MH_SAM_APDU [10:14:29]CAPDU: 80 11 00 00 [10:14:29]Write to MH i2c: E2 08 00 7A 07 80 11 00 00 00 00 00 00 FB [10:14:29]Write i2c OK [10:14:29]MH_I2C_Read... [10:14:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:29]Read from MH i2c: E2 [10:14:29]MH_I2C_Read... [10:14:29]Read from MH i2c: E2 17 00 [10:14:29]MH_I2C_Read... [10:14:29]Read from MH i2c: E2 17 00 7A 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 51 [10:14:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:14:29]wFMCommunicate OK [10:14:29]requested_item fd.num is exist - process it [10:14:29]SAM_PROTO_GetFieldsCounters [10:14:29]wFMCommunicate request_size=4 [10:14:29]MH_SAM_APDU [10:14:29]CAPDU: 80 13 00 00 [10:14:29]Write to MH i2c: E2 08 00 7B 07 80 13 00 00 00 00 00 00 FE [10:14:29]Write i2c OK [10:14:29]MH_I2C_Read... [10:14:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:29]Read from MH i2c: E2 [10:14:29]MH_I2C_Read... [10:14:29]Read from MH i2c: E2 62 00 [10:14:29]MH_I2C_Read... [10:14:29]Read from MH i2c: E2 62 00 7B 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 70 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [10: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 70 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:14:29]wFMCommunicate OK [10:14:29]SAM_PROTO_GetFieldsCounters done [10:14:29]requested_item shift.num is exist - process it [10:14:29]requested_item shift.opened is exist - process it [10:14:29]req_shift_opened [10:14:29]FM_GetShiftState [10:14:29]SAM_PROTO_GetShiftState [10:14:29]wFMCommunicate request_size=4 [10:14:29]MH_SAM_APDU [10:14:29]CAPDU: 80 13 01 00 [10:14:29]Write to MH i2c: E2 08 00 7C 07 80 13 01 00 00 00 00 00 00 [10:14:29]Write i2c OK [10:14:29]MH_I2C_Read... [10:14:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:29]Read from MH i2c: E2 [10:14:29]MH_I2C_Read... [10:14:29]Read from MH i2c: E2 0E 00 [10:14:29]MH_I2C_Read... [10:14:29]Read from MH i2c: E2 0E 00 7C 07 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 AC [10:14:29]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [10:14:29]wFMCommunicate OK [10:14:29]SAM_PROTO_GetShiftState done [10:14:29]FM_GetShiftState done [10:14:29]req_shift_opened done [10:14:29]requested_item shift.open_date is exist - process it [10:14:29]req_shift_open_date [10:14:29]req_shift_open_date done [10:14:29]produce_requested_data done [10:14:29]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67440,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [10:14:29]process_action_free close_receipt [10:14:29]json_value_free [10:14:29]json_value_free done [10:14:29]process_json_proto returns [10:14:29]Send response to host [10:14:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67440,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [10:14:29]free response buf [10:14:29]execute_script done [10:14:29]execute_script returns [10:14:29]free content buf [10:14:29]Sock 9.Close socket [10:14:29]Sock 9.Thread stoped [10:14:32]OFD Sender: No OFD packet to send [10:14:36]accept exits with 8 [10:14:36]New connection [10:14:36]New thread 3067460964 created [10:14:36]Thread 3067604324 joined [10:14:36]Waiting for new connection... [10:14:36] Sock 8.Parse request [10:14:36]Sock 8.Check first char [10:14:36]Sock 8.First char is OK [10:14:36]request: POST /json_proto HTTP/1.0 [10:14:36]Method: POST [10:14:36]URL: /json_proto [10:14:36]Method is POST - this is cgi request [10:14:36]url: /json_proto [10:14:36]query_string will be loaded in cgi processing [10:14:36]execute_cgi json_proto POST (null) [10:14:36]execute_cgi path=json_proto method=POST [10:14:36]POST find Content-Length [10:14:36]Host: 172.17.41.195:8080 [10:14:36]Content-Length: 1209 [10:14:36]Content-Type: application/json [10:14:36] [10:14:36]POST finish read [10:14:36]Found Content-Length = 1209 [10:14:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507464\u000A16.05.2024 09:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 35.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2614.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:36]execute_script... [10:14:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507464\u000A16.05.2024 09:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 35.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2614.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:36]POST & json_proto [10:14:36]process_json_proto [10:14:36]json parsed OK: [10:14:36]protocol is kg_v1.0 [10:14:36]action value=print_text [10:14:36]process_action print_text [10:14:36]cmd_print_text [10:14:36]ExternCall_PrintAddStr [10:14:36]wPrintStart [10:14:36]Write to MH i2c: 01 00 00 7D 07 84 [10:14:36]Write i2c OK [10:14:36]MH_I2C_Read... [10:14:36]Read from MH i2c: 01 [10:14:36]MH_I2C_Read... [10:14:36]Read from MH i2c: 01 07 00 [10:14:36]MH_I2C_Read... [10:14:36]Read from MH i2c: 01 07 00 7D 07 00 00 00 00 00 FF 0F 99 [10:14:36]RasterBufferAndPrint [10:14:36]line *****ТОВАРНЫЙ ЧЕК***** [10:14:36]line АЗС-91 [10:14:36]line Партнер нефть [10:14:36]line 02508201610067 [10:14:36]line Кассир : Пайзулдаева А. [10:14:36]line Счет N : (1)507464 [10:14:36]line 16.05.2024 09:57 [10:14:36]line ПРОДАЖА [10:14:36]line ТРК (МРК, ГНК): 41 [10:14:36]line Вид ГСМ : 2710194210 [10:14:36]line ДТ-К-5 [10:14:36]line 35.000 x 74.70 [10:14:36]line ИТОГ: 2614.50 [10:14:36]line Тип оплаты: Талоны: Топливная Карта [10:14:36]line 02750 [10:14:36]line ______________________ [10:14:36]line (подпись) [10:14:36]written 0, free lines is 4095 [10:14:36]Write to MH i2c: 01 00 00 91 07 98 [10:14:36]Write i2c OK [10:14:36]MH_I2C_Read... [10:14:36]Read from MH i2c: 01 [10:14:36]MH_I2C_Read... [10:14:36]Read from MH i2c: 01 07 00 [10:14:36]MH_I2C_Read... [10:14:36]Read from MH i2c: 01 07 00 91 07 00 00 00 00 00 11 0E BE [10:14:36]RasterBufferAndPrint [10:14:36]line [10:14:36]line [10:14:36]line [10:14:36]line [10:14:36]line [10:14:36]written 0, free lines is 3602 [10:14:36]MH_Cut [10:14:36]Write to MH i2c: D1 01 00 98 07 01 71 [10:14:36]Write i2c OK [10:14:36]MH_I2C_Read... [10:14:36]Read from MH i2c: D1 [10:14:36]MH_I2C_Read... [10:14:36]Read from MH i2c: D1 01 00 [10:14:36]MH_I2C_Read... [10:14:36]Read from MH i2c: D1 01 00 98 07 00 70 [10:14:36]Write to MH i2c: 01 00 00 99 07 A0 [10:14:36]Write i2c OK [10:14:36]MH_I2C_Read... [10:14:37]OFD Sender: No OFD packet to send [10:14:37]*** Cut start [10:14:37]*** Purtial cut [10:14:37]*** Stage 1: CUTSNS_PIN = 1 [10:14:37]Read from MH i2c: 01 [10:14:37]MH_I2C_Read... [10:14:37]*** Stop cut motor [10:14:37]*** Cut end [10:14:37]Read from MH i2c: 01 07 00 [10:14:37]MH_I2C_Read... [10:14:37]Read from MH i2c: 01 07 00 99 07 00 00 00 00 00 FF 0F B5 [10:14:37]process_action print_text done [10:14:37]requested_data is exist [10:14:37]produce_requested_data [10:14:37]requested_item fm.sn is exist - process it [10:14:37]wFMCommunicate request_size=4 [10:14:37]MH_SAM_APDU [10:14:37]CAPDU: 80 11 00 00 [10:14:37]Write to MH i2c: E2 08 00 9A 07 80 11 00 00 00 00 00 00 1B [10:14:37]Write i2c OK [10:14:37]MH_I2C_Read... [10:14:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:37]Read from MH i2c: E2 [10:14:37]MH_I2C_Read... [10:14:37]Read from MH i2c: E2 17 00 [10:14:37]MH_I2C_Read... [10:14:37]Read from MH i2c: E2 17 00 9A 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 71 [10:14:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:14:37]wFMCommunicate OK [10:14:37]requested_item fd.num is exist - process it [10:14:37]SAM_PROTO_GetFieldsCounters [10:14:37]wFMCommunicate request_size=4 [10:14:37]MH_SAM_APDU [10:14:37]CAPDU: 80 13 00 00 [10:14:37]Write to MH i2c: E2 08 00 9B 07 80 13 00 00 00 00 00 00 1E [10:14:37]Write i2c OK [10:14:37]MH_I2C_Read... [10:14:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:38]Read from MH i2c: E2 [10:14:38]MH_I2C_Read... [10:14:38]Read from MH i2c: E2 62 00 [10:14:38]MH_I2C_Read... [10:14:38]Read from MH i2c: E2 62 00 9B 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 70 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [10:14: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 70 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:14:38]wFMCommunicate OK [10:14:38]SAM_PROTO_GetFieldsCounters done [10:14:38]requested_item shift.num is exist - process it [10:14:38]requested_item shift.opened is exist - process it [10:14:38]req_shift_opened [10:14:38]FM_GetShiftState [10:14:38]SAM_PROTO_GetShiftState [10:14:38]wFMCommunicate request_size=4 [10:14:38]MH_SAM_APDU [10:14:38]CAPDU: 80 13 01 00 [10:14:38]Write to MH i2c: E2 08 00 9C 07 80 13 01 00 00 00 00 00 20 [10:14:38]Write i2c OK [10:14:38]MH_I2C_Read... [10:14:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:38]Read from MH i2c: E2 [10:14:38]MH_I2C_Read... [10:14:38]Read from MH i2c: E2 0E 00 [10:14:38]MH_I2C_Read... [10:14:38]Read from MH i2c: E2 0E 00 9C 07 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 CC [10:14:38]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [10:14:38]wFMCommunicate OK [10:14:38]SAM_PROTO_GetShiftState done [10:14:38]FM_GetShiftState done [10:14:38]req_shift_opened done [10:14:38]requested_item shift.open_date is exist - process it [10:14:38]req_shift_open_date [10:14:38]req_shift_open_date done [10:14:38]produce_requested_data done [10:14:38]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67440,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [10:14:38]process_action_free print_text [10:14:38]json_value_free [10:14:38]json_value_free done [10:14:38]process_json_proto returns [10:14:38]Send response to host [10:14:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67440,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [10:14:38]free response buf [10:14:38]execute_script done [10:14:38]execute_script returns [10:14:38]free content buf [10:14:38]Sock 8.Close socket [10:14:38]Sock 8.Thread stoped [10:14:42]OFD Sender: No OFD packet to send [10:14:47]OFD Sender: No OFD packet to send [10:14:52]OFD Sender: No OFD packet to send [10:14:57]OFD Sender: No OFD packet to send [10:15:02]OFD Sender: No OFD packet to send [10:15:07]OFD Sender: No OFD packet to send [10:15:12]OFD Sender: No OFD packet to send [10:15:17]OFD Sender: No OFD packet to send [10:15:22]OFD Sender: No OFD packet to send [10:15:27]OFD Sender: No OFD packet to send [10:15:32]OFD Sender: No OFD packet to send [10:15:37]OFD Sender: No OFD packet to send [10:15:42]OFD Sender: No OFD packet to send [10:15:47]OFD Sender: No OFD packet to send [10:15:51]accept exits with 10 [10:15:51]New connection [10:15:51]New thread 3067604324 created [10:15:51]Thread 3067460964 joined [10:15:51]Waiting for new connection... [10:15:51] Sock 10.Parse request [10:15:51]Sock 10.Check first char [10:15:51]Sock 10.First char is OK [10:15:51]request: POST /json_proto HTTP/1.0 [10:15:51]Method: POST [10:15:51]URL: /json_proto [10:15:51]Method is POST - this is cgi request [10:15:51]url: /json_proto [10:15:51]query_string will be loaded in cgi processing [10:15:51]execute_cgi json_proto POST (null) [10:15:51]execute_cgi path=json_proto method=POST [10:15:51]POST find Content-Length [10:15:51]Host: 172.17.41.195:8080 [10:15:51]Content-Length: 677 [10:15:51]Content-Type: application/json [10:15:51] [10:15:51]POST finish read [10:15:51]Found Content-Length = 677 [10:15:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507466", "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.80, "quantity" : 7.490, "sum" : 500.33, "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:15:51]execute_script... [10:15:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507466", "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.80, "quantity" : 7.490, "sum" : 500.33, "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:15:51]POST & json_proto [10:15:51]process_json_proto [10:15:51]json parsed OK: [10:15:51]protocol is kg_v1.0 [10:15:51]action value=close_receipt [10:15:51]process_action close_receipt [10:15:51]cmd_close_receipt [10:15:51]MH_GetDate [10:15:51]Write to MH i2c: F0 00 00 9D 07 93 [10:15:51]Write i2c OK [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: F0 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: F0 09 00 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: F0 09 00 9D 07 00 D8 DC 45 66 FC 21 6F 64 EB [10:15:51]GetLastDocTimeStamp 1715854465 [10:15:51]current date 1715854552 [10:15:51]FM_GetShiftState [10:15:51]SAM_PROTO_GetShiftState [10:15:51]wFMCommunicate request_size=4 [10:15:51]MH_SAM_APDU [10:15:51]CAPDU: 80 13 01 00 [10:15:51]Write to MH i2c: E2 08 00 9E 07 80 13 01 00 00 00 00 00 22 [10:15:51]Write i2c OK [10:15:51]MH_I2C_Read... [10:15:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:51]Read from MH i2c: E2 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: E2 0E 00 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: E2 0E 00 9E 07 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 CE [10:15:51]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [10:15:51]wFMCommunicate OK [10:15:51]SAM_PROTO_GetShiftState done [10:15:51]FM_GetShiftState done [10:15:51]opened in 1715818916 [10:15:51]opened+sec_in_day 1715905316 [10:15:51]quantity*price = 50033 [10:15:51]sum+1 = 50034 [10:15:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 39 16.05.2024 10:15 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67441 ФПД: 163535713488447 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T101552&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67441&fm=163535713488447&tin=02508201610067®Number=0000000000091845&sum=50000 [10:15:52]StoreToDocumentArchive [10:15:52]shift 357 fd 67441 [10:15:52]save to /storage/0357/doc_00067441 [10:15:52]save last doc name /storage/0357/doc_00067441 to /storage/kkm_last_doc_name [10:15:52]save OK [10:15:52]Clear old archive folders... [10:15:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:15:52]tlvbuf is 00C95C60 [10:15:52]SAM_PROTO_ClearQueue [10:15:52]wFMCommunicate request_size=4 [10:15:52]MH_SAM_APDU [10:15:52]CAPDU: 80 09 00 00 [10:15:52]Write to MH i2c: E2 08 00 AB 07 80 09 00 00 00 00 00 00 24 [10:15:52]Write i2c OK [10:15:52]MH_I2C_Read... [10:15:52]Read from MH i2c: E2 [10:15:52]MH_I2C_Read... [10:15:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:15:52]Read from MH i2c: E2 03 00 [10:15:52]MH_I2C_Read... [10:15:52]Read from MH i2c: E2 03 00 AB 07 00 90 00 26 [10:15:52]RAPDU: 90 00 [10:15:52]wFMCommunicate OK [10:15:52]SAM_PROTO_ClearQueue done [10:15:52]KKMCreateOFDPacket [10:15:52]OFDProtocolAddRootSTLVToBuf [10:15:52]FM_MakeSignedData [10:15:52]FM_MakeSignedData [10:15:52]SAM_PROTO_SignData [10:15:52]wFMCommunicate request_size=4 [10:15:52]MH_SAM_APDU [10:15:52]CAPDU: 80 0D 01 02 [10:15:52]Write to MH i2c: E2 08 00 AC 07 80 0D 01 02 00 00 00 00 2C [10:15:52]Write i2c OK [10:15:52]MH_I2C_Read... [10:15:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:15:52]Read from MH i2c: E2 [10:15:52]MH_I2C_Read... [10:15:52]Read from MH i2c: E2 03 00 [10:15:52]MH_I2C_Read... [10:15:52]Read from MH i2c: E2 03 00 AC 07 00 90 00 27 [10:15:52]RAPDU: 90 00 [10:15:52]wFMCommunicate OK [10:15:52]wFMCommunicate request_size=255 [10:15:52]MH_SAM_APDU [10:15:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 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 D8 DC 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 71 07 01 00 35 04 06 00 94 [10:15:52]Write to MH i2c: E2 02 01 AD 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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 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 D8 DC 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 71 07 01 00 35 04 06 00 94 00 00 B0 [10:15:52]Write i2c OK [10:15:52]MH_I2C_Read... [10:15:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:52]Read from MH i2c: E2 [10:15:52]MH_I2C_Read... [10:15:52]Read from MH i2c: E2 03 00 [10:15:52]MH_I2C_Read... [10:15:52]Read from MH i2c: E2 03 00 AD 07 00 90 00 28 [10:15:52]RAPDU: 90 00 [10:15:52]wFMCommunicate OK [10:15:52]wFMCommunicate request_size=10 [10:15:52]MH_SAM_APDU [10:15:52]CAPDU: 80 0D 02 02 05 BC 20 1C 4E 3F [10:15:52]Write to MH i2c: E2 0D 00 AE 07 80 0D 02 02 05 00 BC 20 1C 4E 3F 00 00 BE [10:15:52]Write i2c OK [10:15:52]MH_I2C_Read... [10:15:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:52]Read from MH i2c: E2 [10:15:52]MH_I2C_Read... [10:15:52]Read from MH i2c: E2 03 00 [10:15:52]MH_I2C_Read... [10:15:52]Read from MH i2c: E2 03 00 AE 07 00 90 00 29 [10:15:52]RAPDU: 90 00 [10:15:52]wFMCommunicate OK [10:15:52]wFMCommunicate request_size=4 [10:15:52]MH_SAM_APDU [10:15:52]CAPDU: 80 0D 03 02 [10:15:52]Write to MH i2c: E2 08 00 AF 07 80 0D 03 02 00 00 00 00 31 [10:15:52]Write i2c OK [10:15:52]MH_I2C_Read... [10:15:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:15:52]Read from MH i2c: E2 [10:15:52]MH_I2C_Read... [10:15:52]Read from MH i2c: E2 0B 00 [10:15:52]MH_I2C_Read... [10:15:52]Read from MH i2c: E2 0B 00 AF 07 00 71 E9 66 7C 9B 0A 94 E5 90 00 8C [10:15:52]RAPDU: 71 E9 66 7C 9B 0A 94 E5 90 00 [10:15:52]wFMCommunicate OK [10:15:52]SAM_PROTO_SignData done [10:15:52]FM_MakeSignedData done [10:15:52]CreateOFDProtocolMessage [10:15:52]wFMCommunicate request_size=4 [10:15:52]MH_SAM_APDU [10:15:52]CAPDU: 80 11 00 00 [10:15:52]Write to MH i2c: E2 08 00 B0 07 80 11 00 00 00 00 00 00 31 [10:15:52]Write i2c OK [10:15:52]MH_I2C_Read... [10:15:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:53]Read from MH i2c: E2 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: E2 17 00 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: E2 17 00 B0 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 87 [10:15:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:15:53]wFMCommunicate OK [10:15:53]CreateOFDProtocolMessage done [10:15:53]OFDSenderStorePacket 67441 [10:15:53]StoreOFDPacket docnum=67441 [10:15:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 CC 0E 07 01 7C 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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 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 D8 DC 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 71 07 01 00 35 04 06 00 94 BC 20 1C 4E 3F 71 E9 66 7C 9B 0A 94 E5 [10:15:53]CheckFolder [10:15:53]dirname=/storage/ofd_packets [10:15:53]CheckFolder done [10:15:53]ProducePacketName [10:15:53]name=ofd_packets/00067441 [10:15:53]NVStorageSaveData ofd_packets/00067441 [10:15:53]File name is /storage/ofd_packets/00067441 [10:15:53]Write 301 bytes [10:15:53]NVStorageSaveData done [10:15:53]OFDSenderStorePacket done [10:15:53]KKMCreateOFDPacket done [10:15:53]NVStorageSaveData kkm_last_timestamp [10:15:53]File name is /storage/kkm_last_timestamp [10:15:53]Write 4 bytes [10:15:53]NVStorageSaveData done [10:15:53]ExternCall_PrintAddStr [10:15:53]wPrintStart [10:15:53]Write to MH i2c: 01 00 00 B1 07 B8 [10:15:53]Write i2c OK [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: 01 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: 01 07 00 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: 01 07 00 B1 07 00 00 00 00 00 FF 0F CD [10:15:53]RasterBufferAndPrint [10:15:53]line Счет N : (1)507466 [10:15:53]line ИНН: 02508201610067 [10:15:53]line Контрольно-Кассовый Чек [10:15:53]line ПРОДАЖА [10:15:53]line ТРК (МРК, ГНК) : 13 [10:15:53]line Товар: 2710124130 [10:15:53]line Аи-92-К-5 [10:15:53]line 7.490 * 66.80 [10:15:53]line = 500.33 [10:15:53]line НДС 12% НСП 1% [10:15:53]line > о реализуемом товаре [10:15:53]line ОКРУГЛЕНИЕ: -0.33 [10:15:53]line ИТОГО: 500.00 [10:15:53]line Внесено: 500.00 [10:15:53]line СДАЧА: 0.00 [10:15:53]line НСП 1% : 4.43 [10:15:53]line НДС 12% : 53.13 [10:15:53]line Наличными: 500.00 [10:15:53]line Безнал.: 0.00 [10:15:53]line Место: АЗС № 91 "Партнер Нефть" [10:15:53]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [10:15:53]line СНО: Общий режим [10:15:53]line Чек 39 16.05.2024 10:15 [10:15:53]line Смена: 357 ФФД: 1.0 [10:15:53]line ЗНМ: 0300000119 [10:15:53]line РНМ: 0000000000091845 [10:15:53]line Версия ККМ: 001 [10:15:53]line ФМ: 0000000000871829 [10:15:53]line ФД: 67441 [10:15:53]line ФПД: 163535713488447 [10:15:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T101552&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67441&fm=163535713488447&tin=02508201610067®Number=0000000000091845&sum=50000 [10:15:53]written 0, free lines is 4095 [10:15:53]OFD Sender: Processing packet 67441 [packets to send 35, broken 34] [10:15:53]ProducePacketName [10:15:53]name=ofd_packets/00067441 [10:15:53]OFD Sender: To server: pG, [10:15:53]CommunicateWithHost lk.salyk.kg:30040 [10:15:53]ConnectInit lk.salyk.kg [10:15:53]Connected sock=9 [10:15:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 CC 0E 07 01 7C 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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 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 D8 DC 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 71 07 01 00 35 04 06 00 94 BC 20 1C 4E 3F 71 E9 66 7C 9B 0A 94 E5 [10:15:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 FC 67 47 00 A1 D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 71 07 01 00 F4 03 04 00 B3 84 45 66 B6 04 01 00 00 B9 EF 37 9B CE 18 26 FB [10:15:53]CommunicateWithHost err = 0 [10:15:53]CheckOFDResponse [10:15:53]1017 (14) - 77093643461234 [10:15:53]1041 (16) - 0000000000871829 [10:15:53]1040 (4) - 67441 [10:15:53]1012 (4) - 16.05.2024 03:59 [10:15:53]1206 (1) - 0 [10:15:53]OFD Sender: Remove packet 67441 [10:15:53]ProducePacketName [10:15:53]name=ofd_packets/00067441 [10:15:53]NVStorageDeleteData [10:15:53]Write to MH i2c: 01 00 00 DB 07 E2 [10:15:53]Write i2c OK [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: 01 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: 01 07 00 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: 01 07 00 DB 07 00 00 00 00 00 D1 0C C6 [10:15:53]RasterBufferAndPrint [10:15:53]line [10:15:53]line [10:15:53]line [10:15:53]line [10:15:53]line [10:15:53]written 0, free lines is 3287 [10:15:53]MH_Cut [10:15:53]Write to MH i2c: D1 01 00 E2 07 01 BB [10:15:53]Write i2c OK [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: D1 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: D1 01 00 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: D1 01 00 E2 07 00 BA [10:15:53]Write to MH i2c: 01 00 00 E3 07 EA [10:15:53]Write i2c OK [10:15:53]MH_I2C_Read... [10:15:54]OFD Sender: No OFD packet to send [10:15:54]*** Cut start [10:15:54]*** Purtial cut [10:15:54]*** CUTSNS_PIN = 0 [10:15:54]*** Stage 1: CUTSNS_PIN = 1 [10:15:56]Read from MH i2c: 01 [10:15:56]MH_I2C_Read... [10:15:56]*** Stop cut motor [10:15:56]*** Cut end [10:15:56]Read from MH i2c: 01 07 00 [10:15:56]MH_I2C_Read... [10:15:56]Read from MH i2c: 01 07 00 E3 07 00 00 00 00 00 FF 0F FF [10:15:56]process_action close_receipt done [10:15:56]requested_data is exist [10:15:56]produce_requested_data [10:15:56]requested_item fm.sn is exist - process it [10:15:56]wFMCommunicate request_size=4 [10:15:56]MH_SAM_APDU [10:15:56]CAPDU: 80 11 00 00 [10:15:56]Write to MH i2c: E2 08 00 E4 07 80 11 00 00 00 00 00 00 65 [10:15:56]Write i2c OK [10:15:56]MH_I2C_Read... [10:15:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:56]Read from MH i2c: E2 [10:15:56]MH_I2C_Read... [10:15:56]Read from MH i2c: E2 17 00 [10:15:56]MH_I2C_Read... [10:15:56]Read from MH i2c: E2 17 00 E4 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BB [10:15:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:15:56]wFMCommunicate OK [10:15:56]requested_item fd.num is exist - process it [10:15:56]SAM_PROTO_GetFieldsCounters [10:15:56]wFMCommunicate request_size=4 [10:15:56]MH_SAM_APDU [10:15:56]CAPDU: 80 13 00 00 [10:15:56]Write to MH i2c: E2 08 00 E5 07 80 13 00 00 00 00 00 00 68 [10:15:56]Write i2c OK [10:15:56]MH_I2C_Read... [10:15:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:15:56]Read from MH i2c: E2 [10:15:56]MH_I2C_Read... [10:15:56]Read from MH i2c: E2 62 00 [10:15:56]MH_I2C_Read... [10:15:56]Read from MH i2c: E2 62 00 E5 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 71 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [10:15: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 71 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:15:56]wFMCommunicate OK [10:15:56]SAM_PROTO_GetFieldsCounters done [10:15:56]requested_item shift.num is exist - process it [10:15:56]requested_item shift.opened is exist - process it [10:15:56]req_shift_opened [10:15:56]FM_GetShiftState [10:15:56]SAM_PROTO_GetShiftState [10:15:56]wFMCommunicate request_size=4 [10:15:56]MH_SAM_APDU [10:15:56]CAPDU: 80 13 01 00 [10:15:56]Write to MH i2c: E2 08 00 E6 07 80 13 01 00 00 00 00 00 6A [10:15:56]Write i2c OK [10:15:56]MH_I2C_Read... [10:15:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:56]Read from MH i2c: E2 [10:15:56]MH_I2C_Read... [10:15:56]Read from MH i2c: E2 0E 00 [10:15:56]MH_I2C_Read... [10:15:56]Read from MH i2c: E2 0E 00 E6 07 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 16 [10:15:56]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [10:15:56]wFMCommunicate OK [10:15:56]SAM_PROTO_GetShiftState done [10:15:56]FM_GetShiftState done [10:15:56]req_shift_opened done [10:15:56]requested_item shift.open_date is exist - process it [10:15:56]req_shift_open_date [10:15:56]req_shift_open_date done [10:15:56]produce_requested_data done [10:15:56]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67441,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [10:15:56]process_action_free close_receipt [10:15:56]json_value_free [10:15:56]json_value_free done [10:15:56]process_json_proto returns [10:15:56]Send response to host [10:15:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67441,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [10:15:56]free response buf [10:15:56]execute_script done [10:15:56]execute_script returns [10:15:56]free content buf [10:15:56]Sock 10.Close socket [10:15:56]Sock 10.Thread stoped [10:15:59]OFD Sender: No OFD packet to send [10:16:04]OFD Sender: No OFD packet to send [10:16:09]OFD Sender: No OFD packet to send [10:16:14]OFD Sender: No OFD packet to send [10:16:19]OFD Sender: No OFD packet to send [10:16:24]OFD Sender: No OFD packet to send [10:16:29]OFD Sender: No OFD packet to send [10:16:34]OFD Sender: No OFD packet to send [10:16:39]OFD Sender: No OFD packet to send [10:16:44]OFD Sender: No OFD packet to send [10:16:49]OFD Sender: No OFD packet to send [10:16:54]OFD Sender: No OFD packet to send [10:16:59]OFD Sender: No OFD packet to send [10:17:04]OFD Sender: No OFD packet to send [10:17:09]OFD Sender: No OFD packet to send [10:17:14]OFD Sender: No OFD packet to send [10:17:19]OFD Sender: No OFD packet to send [10:17:24]OFD Sender: No OFD packet to send [10:17:29]OFD Sender: No OFD packet to send [10:17:34]OFD Sender: No OFD packet to send [10:17:39]OFD Sender: No OFD packet to send [10:17:44]OFD Sender: No OFD packet to send [10:17:49]OFD Sender: No OFD packet to send [10:17:54]OFD Sender: No OFD packet to send [10:17:59]OFD Sender: No OFD packet to send [10:18:04]OFD Sender: No OFD packet to send [10:18:09]OFD Sender: No OFD packet to send [10:18:14]OFD Sender: No OFD packet to send [10:18:19]OFD Sender: No OFD packet to send [10:18:24]OFD Sender: No OFD packet to send [10:18:29]OFD Sender: No OFD packet to send [10:18:34]OFD Sender: No OFD packet to send [10:18:39]OFD Sender: No OFD packet to send [10:18:44]OFD Sender: No OFD packet to send [10:18:45]accept exits with 8 [10:18:45]New connection [10:18:45]New thread 3067460964 created [10:18:45]Thread 3067604324 joined [10:18:45]Waiting for new connection... [10:18:45] Sock 8.Parse request [10:18:45]Sock 8.Check first char [10:18:45]Sock 8.First char is OK [10:18:45]request: POST /json_proto HTTP/1.0 [10:18:45]Method: POST [10:18:45]URL: /json_proto [10:18:45]Method is POST - this is cgi request [10:18:45]url: /json_proto [10:18:45]query_string will be loaded in cgi processing [10:18:45]execute_cgi json_proto POST (null) [10:18:45]execute_cgi path=json_proto method=POST [10:18:45]POST find Content-Length [10:18:45]Host: 172.17.41.195:8080 [10:18:45]Content-Length: 682 [10:18:45]Content-Type: application/json [10:18:45] [10:18:45]POST finish read [10:18:45]Found Content-Length = 682 [10:18:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507467", "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.80, "quantity" : 14.980, "sum" : 1000.66, "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:18:45]execute_script... [10:18: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)507467", "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.80, "quantity" : 14.980, "sum" : 1000.66, "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:18:45]POST & json_proto [10:18:45]process_json_proto [10:18:45]json parsed OK: [10:18:45]protocol is kg_v1.0 [10:18:45]action value=close_receipt [10:18:45]process_action close_receipt [10:18:45]cmd_close_receipt [10:18:45]MH_GetDate [10:18:45]Write to MH i2c: F0 00 00 E7 07 DD [10:18:45]Write i2c OK [10:18:45]MH_I2C_Read... [10:18:45]Read from MH i2c: F0 [10:18:45]MH_I2C_Read... [10:18:45]Read from MH i2c: F0 09 00 [10:18:45]MH_I2C_Read... [10:18:45]Read from MH i2c: F0 09 00 E7 07 00 86 DD 45 66 FC 21 6F 64 E4 [10:18:45]GetLastDocTimeStamp 1715854552 [10:18:45]current date 1715854726 [10:18:45]FM_GetShiftState [10:18:45]SAM_PROTO_GetShiftState [10:18:45]wFMCommunicate request_size=4 [10:18:45]MH_SAM_APDU [10:18:45]CAPDU: 80 13 01 00 [10:18:45]Write to MH i2c: E2 08 00 E8 07 80 13 01 00 00 00 00 00 6C [10:18:45]Write i2c OK [10:18:45]MH_I2C_Read... [10:18:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:45]Read from MH i2c: E2 [10:18:45]MH_I2C_Read... [10:18:45]Read from MH i2c: E2 0E 00 [10:18:45]MH_I2C_Read... [10:18:45]Read from MH i2c: E2 0E 00 E8 07 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 18 [10:18:45]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [10:18:45]wFMCommunicate OK [10:18:45]SAM_PROTO_GetShiftState done [10:18:45]FM_GetShiftState done [10:18:45]opened in 1715818916 [10:18:45]opened+sec_in_day 1715905316 [10:18:45]quantity*price = 100066 [10:18:45]sum+1 = 100067 [10:18:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 40 16.05.2024 10:18 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67442 ФПД: 24480646019045 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T101846&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67442&fm=24480646019045&tin=02508201610067®Number=0000000000091845&sum=100000 [10:18:46]StoreToDocumentArchive [10:18:46]shift 357 fd 67442 [10:18:46]save to /storage/0357/doc_00067442 [10:18:46]save last doc name /storage/0357/doc_00067442 to /storage/kkm_last_doc_name [10:18:46]save OK [10:18:46]Clear old archive folders... [10:18:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:18:46]tlvbuf is 00CBF9A0 [10:18:46]SAM_PROTO_ClearQueue [10:18:46]wFMCommunicate request_size=4 [10:18:46]MH_SAM_APDU [10:18:46]CAPDU: 80 09 00 00 [10:18:46]Write to MH i2c: E2 08 00 F5 07 80 09 00 00 00 00 00 00 6E [10:18:46]Write i2c OK [10:18:46]MH_I2C_Read... [10:18:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:18:46]Read from MH i2c: E2 [10:18:46]MH_I2C_Read... [10:18:46]Read from MH i2c: E2 03 00 [10:18:46]MH_I2C_Read... [10:18:46]Read from MH i2c: E2 03 00 F5 07 00 90 00 70 [10:18:46]RAPDU: 90 00 [10:18:46]wFMCommunicate OK [10:18:46]SAM_PROTO_ClearQueue done [10:18:46]KKMCreateOFDPacket [10:18:46]OFDProtocolAddRootSTLVToBuf [10:18:46]FM_MakeSignedData [10:18:46]FM_MakeSignedData [10:18:46]SAM_PROTO_SignData [10:18:46]wFMCommunicate request_size=4 [10:18:46]MH_SAM_APDU [10:18:46]CAPDU: 80 0D 01 02 [10:18:46]Write to MH i2c: E2 08 00 F6 07 80 0D 01 02 00 00 00 00 76 [10:18:46]Write i2c OK [10:18:46]MH_I2C_Read... [10:18:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:18:46]Read from MH i2c: E2 [10:18:46]MH_I2C_Read... [10:18:46]Read from MH i2c: E2 03 00 [10:18:46]MH_I2C_Read... [10:18:46]Read from MH i2c: E2 03 00 F6 07 00 90 00 71 [10:18:46]RAPDU: 90 00 [10:18:46]wFMCommunicate OK [10:18:46]wFMCommunicate request_size=255 [10:18:46]MH_SAM_APDU [10:18: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 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 86 DD 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 72 07 01 00 35 04 06 00 16 [10:18:46]Write to MH i2c: E2 02 01 F7 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 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 86 DD 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 72 07 01 00 35 04 06 00 16 00 00 7B [10:18:46]Write i2c OK [10:18:46]MH_I2C_Read... [10:18:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:46]Read from MH i2c: E2 [10:18:46]MH_I2C_Read... [10:18:46]Read from MH i2c: E2 03 00 [10:18:46]MH_I2C_Read... [10:18:46]Read from MH i2c: E2 03 00 F7 07 00 90 00 72 [10:18:46]RAPDU: 90 00 [10:18:46]wFMCommunicate OK [10:18:46]wFMCommunicate request_size=10 [10:18:46]MH_SAM_APDU [10:18:46]CAPDU: 80 0D 02 02 05 43 D8 35 B7 E5 [10:18:46]Write to MH i2c: E2 0D 00 F8 07 80 0D 02 02 05 00 43 D8 35 B7 E5 00 00 6F [10:18:46]Write i2c OK [10:18:46]MH_I2C_Read... [10:18:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:46]Read from MH i2c: E2 [10:18:46]MH_I2C_Read... [10:18:46]Read from MH i2c: E2 03 00 [10:18:46]MH_I2C_Read... [10:18:46]Read from MH i2c: E2 03 00 F8 07 00 90 00 73 [10:18:46]RAPDU: 90 00 [10:18:46]wFMCommunicate OK [10:18:46]wFMCommunicate request_size=4 [10:18:46]MH_SAM_APDU [10:18:46]CAPDU: 80 0D 03 02 [10:18:46]Write to MH i2c: E2 08 00 F9 07 80 0D 03 02 00 00 00 00 7B [10:18:46]Write i2c OK [10:18:46]MH_I2C_Read... [10:18:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:18:46]Read from MH i2c: E2 [10:18:46]MH_I2C_Read... [10:18:46]Read from MH i2c: E2 0B 00 [10:18:46]MH_I2C_Read... [10:18:46]Read from MH i2c: E2 0B 00 F9 07 00 EA C0 A7 4B EC 95 4A BD 90 00 A0 [10:18:46]RAPDU: EA C0 A7 4B EC 95 4A BD 90 00 [10:18:46]wFMCommunicate OK [10:18:46]SAM_PROTO_SignData done [10:18:46]FM_MakeSignedData done [10:18:46]CreateOFDProtocolMessage [10:18:46]wFMCommunicate request_size=4 [10:18:46]MH_SAM_APDU [10:18:46]CAPDU: 80 11 00 00 [10:18:46]Write to MH i2c: E2 08 00 FA 07 80 11 00 00 00 00 00 00 7B [10:18:46]Write i2c OK [10:18:46]MH_I2C_Read... [10:18:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:46]Read from MH i2c: E2 [10:18:46]MH_I2C_Read... [10:18:46]Read from MH i2c: E2 17 00 [10:18:46]MH_I2C_Read... [10:18:46]Read from MH i2c: E2 17 00 FA 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D1 [10:18:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:18:46]wFMCommunicate OK [10:18:46]CreateOFDProtocolMessage done [10:18:46]OFDSenderStorePacket 67442 [10:18:46]StoreOFDPacket docnum=67442 [10:18:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 8E 92 07 01 3B 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 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 86 DD 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 72 07 01 00 35 04 06 00 16 43 D8 35 B7 E5 EA C0 A7 4B EC 95 4A BD [10:18:46]CheckFolder [10:18:46]dirname=/storage/ofd_packets [10:18:46]CheckFolder done [10:18:46]ProducePacketName [10:18:46]name=ofd_packets/00067442 [10:18:46]NVStorageSaveData ofd_packets/00067442 [10:18:46]File name is /storage/ofd_packets/00067442 [10:18:46]Write 301 bytes [10:18:46]NVStorageSaveData done [10:18:46]OFDSenderStorePacket done [10:18:46]KKMCreateOFDPacket done [10:18:46]NVStorageSaveData kkm_last_timestamp [10:18:46]File name is /storage/kkm_last_timestamp [10:18:46]Write 4 bytes [10:18:46]NVStorageSaveData done [10:18:46]ExternCall_PrintAddStr [10:18:46]wPrintStart [10:18:46]Write to MH i2c: 01 00 00 FB 07 02 [10:18:46]OFD Sender: Processing packet 67442 [packets to send 35, broken 34] [10:18:46]ProducePacketName [10:18:46]name=ofd_packets/00067442 [10:18:46]OFD Sender: To server: pG, [10:18:46]CommunicateWithHost lk.salyk.kg:30040 [10:18:46]ConnectInit lk.salyk.kg [10:18:46]Write i2c OK [10:18:46]MH_I2C_Read... [10:18:46]Read from MH i2c: 01 [10:18:46]MH_I2C_Read... [10:18:46]Read from MH i2c: 01 07 00 [10:18:46]MH_I2C_Read... [10:18:46]Read from MH i2c: 01 07 00 FB 07 00 00 00 00 00 FF 0F 17 [10:18:46]RasterBufferAndPrint [10:18:46]line Счет N : (1)507467 [10:18:46]line ИНН: 02508201610067 [10:18:46]line Контрольно-Кассовый Чек [10:18:46]line ПРОДАЖА [10:18:46]line ТРК (МРК, ГНК) : 33 [10:18:46]line Товар: 2710124130 [10:18:46]line Аи-92-К-5 [10:18:46]line 14.980 * 66.80 [10:18:46]line = 1000.66 [10:18:46]line НДС 12% НСП 1% [10:18:46]line > о реализуемом товаре [10:18:46]line ОКРУГЛЕНИЕ: -0.66 [10:18:46]line ИТОГО: 1000.00 [10:18:46]line Внесено: 1000.00 [10:18:46]line СДАЧА: 0.00 [10:18:46]line НСП 1% : 8.85 [10:18:46]line НДС 12% : 106.26 [10:18:46]line Наличными: 1000.00 [10:18:46]line Безнал.: 0.00 [10:18:46]line Место: АЗС № 91 "Партнер Нефть" [10:18:46]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [10:18:46]line СНО: Общий режим [10:18:46]line Чек 40 16.05.2024 10:18 [10:18:46]line Смена: 357 ФФД: 1.0 [10:18:46]line ЗНМ: 0300000119 [10:18:46]line РНМ: 0000000000091845 [10:18:46]line Версия ККМ: 001 [10:18:46]line ФМ: 0000000000871829 [10:18:46]line ФД: 67442 [10:18:46]line ФПД: 24480646019045 [10:18:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T101846&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67442&fm=24480646019045&tin=02508201610067®Number=0000000000091845&sum=100000 [10:18:47]Connected sock=10 [10:18:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 8E 92 07 01 3B 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 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 86 DD 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 72 07 01 00 35 04 06 00 16 43 D8 35 B7 E5 EA C0 A7 4B EC 95 4A BD [10:18:47]written 0, free lines is 4095 [10:18:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 B4 AD 47 00 8D CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 72 07 01 00 F4 03 04 00 61 85 45 66 B6 04 01 00 00 DC EA C4 FF A9 C6 03 DA [10:18:47]CommunicateWithHost err = 0 [10:18:47]CheckOFDResponse [10:18:47]1017 (14) - 77093643461234 [10:18:47]1041 (16) - 0000000000871829 [10:18:47]1040 (4) - 67442 [10:18:47]1012 (4) - 16.05.2024 04:02 [10:18:47]1206 (1) - 0 [10:18:47]OFD Sender: Remove packet 67442 [10:18:47]ProducePacketName [10:18:47]name=ofd_packets/00067442 [10:18:47]NVStorageDeleteData [10:18:47]Write to MH i2c: 01 00 00 25 08 2D [10:18:47]Write i2c OK [10:18:47]MH_I2C_Read... [10:18:47]Read from MH i2c: 01 [10:18:47]MH_I2C_Read... [10:18:47]Read from MH i2c: 01 07 00 [10:18:47]MH_I2C_Read... [10:18:47]Read from MH i2c: 01 07 00 25 08 00 00 00 00 00 CF 0C 0F [10:18:47]RasterBufferAndPrint [10:18:47]line [10:18:47]line [10:18:47]line [10:18:47]line [10:18:47]line [10:18:47]written 0, free lines is 3285 [10:18:47]MH_Cut [10:18:47]Write to MH i2c: D1 01 00 2C 08 01 06 [10:18:47]Write i2c OK [10:18:47]MH_I2C_Read... [10:18:47]Read from MH i2c: D1 [10:18:47]MH_I2C_Read... [10:18:47]Read from MH i2c: D1 01 00 [10:18:47]MH_I2C_Read... [10:18:47]Read from MH i2c: D1 01 00 2C 08 00 05 [10:18:47]Write to MH i2c: 01 00 00 2D 08 35 [10:18:47]Write i2c OK [10:18:47]MH_I2C_Read... [10:18:47]OFD Sender: No OFD packet to send [10:18:48]*** Cut start [10:18:48]*** Purtial cut [10:18:48]*** Stage 1: CUTSNS_PIN = 1 [10:18:48]Read from MH i2c: 01 [10:18:48]MH_I2C_Read... [10:18:48]Read from MH i2c: 01 07 00 [10:18:48]MH_I2C_Read... [10:18:48]*** Stop cut motor [10:18:48]*** Cut end [10:18:48]Read from MH i2c: 01 07 00 2D 08 00 00 00 00 00 FF 0F 4A [10:18:48]process_action close_receipt done [10:18:48]requested_data is exist [10:18:48]produce_requested_data [10:18:48]requested_item fm.sn is exist - process it [10:18:48]wFMCommunicate request_size=4 [10:18:48]MH_SAM_APDU [10:18:48]CAPDU: 80 11 00 00 [10:18:48]Write to MH i2c: E2 08 00 2E 08 80 11 00 00 00 00 00 00 B0 [10:18:48]Write i2c OK [10:18:48]MH_I2C_Read... [10:18:48]Read from MH i2c: E2 [10:18:48]MH_I2C_Read... [10:18:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:48]Read from MH i2c: E2 17 00 [10:18:48]MH_I2C_Read... [10:18:48]Read from MH i2c: E2 17 00 2E 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 06 [10:18:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:18:48]wFMCommunicate OK [10:18:48]requested_item fd.num is exist - process it [10:18:48]SAM_PROTO_GetFieldsCounters [10:18:48]wFMCommunicate request_size=4 [10:18:48]MH_SAM_APDU [10:18:48]CAPDU: 80 13 00 00 [10:18:48]Write to MH i2c: E2 08 00 2F 08 80 13 00 00 00 00 00 00 B3 [10:18:48]Write i2c OK [10:18:48]MH_I2C_Read... [10:18:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:18:49]Read from MH i2c: E2 [10:18:49]MH_I2C_Read... [10:18:49]Read from MH i2c: E2 62 00 [10:18:49]MH_I2C_Read... [10:18:49]Read from MH i2c: E2 62 00 2F 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 72 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [10:18:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 72 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:18:49]wFMCommunicate OK [10:18:49]SAM_PROTO_GetFieldsCounters done [10:18:49]requested_item shift.num is exist - process it [10:18:49]requested_item shift.opened is exist - process it [10:18:49]req_shift_opened [10:18:49]FM_GetShiftState [10:18:49]SAM_PROTO_GetShiftState [10:18:49]wFMCommunicate request_size=4 [10:18:49]MH_SAM_APDU [10:18:49]CAPDU: 80 13 01 00 [10:18:49]Write to MH i2c: E2 08 00 30 08 80 13 01 00 00 00 00 00 B5 [10:18:49]Write i2c OK [10:18:49]MH_I2C_Read... [10:18:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:49]Read from MH i2c: E2 [10:18:49]MH_I2C_Read... [10:18:49]Read from MH i2c: E2 0E 00 [10:18:49]MH_I2C_Read... [10:18:49]Read from MH i2c: E2 0E 00 30 08 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 61 [10:18:49]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [10:18:49]wFMCommunicate OK [10:18:49]SAM_PROTO_GetShiftState done [10:18:49]FM_GetShiftState done [10:18:49]req_shift_opened done [10:18:49]requested_item shift.open_date is exist - process it [10:18:49]req_shift_open_date [10:18:49]req_shift_open_date done [10:18:49]produce_requested_data done [10:18:49]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67442,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [10:18:49]process_action_free close_receipt [10:18:49]json_value_free [10:18:49]json_value_free done [10:18:49]process_json_proto returns [10:18:49]Send response to host [10:18:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67442,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [10:18:49]free response buf [10:18:49]execute_script done [10:18:49]execute_script returns [10:18:49]free content buf [10:18:49]Sock 8.Close socket [10:18:49]Sock 8.Thread stoped [10:18:52]OFD Sender: No OFD packet to send [10:18:57]OFD Sender: No OFD packet to send [10:19:02]OFD Sender: No OFD packet to send [10:19:07]OFD Sender: No OFD packet to send [10:19:12]OFD Sender: No OFD packet to send [10:19:17]OFD Sender: No OFD packet to send [10:19:22]OFD Sender: No OFD packet to send [10:19:27]OFD Sender: No OFD packet to send [10:19:32]OFD Sender: No OFD packet to send [10:19:37]OFD Sender: No OFD packet to send [10:19:42]OFD Sender: No OFD packet to send [10:19:47]OFD Sender: No OFD packet to send [10:19:52]OFD Sender: No OFD packet to send [10:19:57]OFD Sender: No OFD packet to send [10:20:02]OFD Sender: No OFD packet to send [10:20:07]OFD Sender: No OFD packet to send [10:20:13]OFD Sender: No OFD packet to send [10:20:18]OFD Sender: No OFD packet to send [10:20:23]OFD Sender: No OFD packet to send [10:20:28]OFD Sender: No OFD packet to send [10:20:33]OFD Sender: No OFD packet to send [10:20:38]OFD Sender: No OFD packet to send [10:20:43]OFD Sender: No OFD packet to send [10:20:48]OFD Sender: No OFD packet to send [10:20:53]OFD Sender: No OFD packet to send [10:20:58]OFD Sender: No OFD packet to send [10:21:03]OFD Sender: No OFD packet to send [10:21:08]OFD Sender: No OFD packet to send [10:21:13]OFD Sender: No OFD packet to send [10:21:18]OFD Sender: No OFD packet to send [10:21:23]OFD Sender: No OFD packet to send [10:21:28]OFD Sender: No OFD packet to send [10:21:33]OFD Sender: No OFD packet to send [10:21:38]OFD Sender: No OFD packet to send [10:21:43]OFD Sender: No OFD packet to send [10:21:47]accept exits with 9 [10:21:47]New connection [10:21:47]New thread 3067604324 created [10:21:47]Thread 3067460964 joined [10:21:47]Waiting for new connection... [10:21:47] Sock 9.Parse request [10:21:47]Sock 9.Check first char [10:21:47]Sock 9.First char is OK [10:21:47]request: POST /json_proto HTTP/1.0 [10:21:47]Method: POST [10:21:47]URL: /json_proto [10:21:47]Method is POST - this is cgi request [10:21:47]url: /json_proto [10:21:47]query_string will be loaded in cgi processing [10:21:47]execute_cgi json_proto POST (null) [10:21:47]execute_cgi path=json_proto method=POST [10:21:47]POST find Content-Length [10:21:47]Host: 172.17.41.195:8080 [10:21:47]Content-Length: 1212 [10:21:47]Content-Type: application/json [10:21:47] [10:21:47]POST finish read [10:21:47]Found Content-Length = 1212 [10:21:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507468\u000A16.05.2024 10:04\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 34.240 x 66.80\u000A\u0418\u0422\u041E\u0413: 2287.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A90816\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:47]execute_script... [10:21:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507468\u000A16.05.2024 10:04\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 34.240 x 66.80\u000A\u0418\u0422\u041E\u0413: 2287.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A90816\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:47]POST & json_proto [10:21:47]process_json_proto [10:21:47]json parsed OK: [10:21:47]protocol is kg_v1.0 [10:21:47]action value=print_text [10:21:47]process_action print_text [10:21:47]cmd_print_text [10:21:47]ExternCall_PrintAddStr [10:21:47]wPrintStart [10:21:47]Write to MH i2c: 01 00 00 31 08 39 [10:21:47]Write i2c OK [10:21:47]MH_I2C_Read... [10:21:47]Read from MH i2c: 01 [10:21:47]MH_I2C_Read... [10:21:47]Read from MH i2c: 01 07 00 [10:21:47]MH_I2C_Read... [10:21:47]Read from MH i2c: 01 07 00 31 08 00 00 00 00 00 FF 0F 4E [10:21:47]RasterBufferAndPrint [10:21:47]line *****ТОВАРНЫЙ ЧЕК***** [10:21:47]line АЗС-91 [10:21:47]line Партнер нефть [10:21:47]line 02508201610067 [10:21:47]line Кассир : Пайзулдаева А. [10:21:47]line Счет N : (1)507468 [10:21:47]line 16.05.2024 10:04 [10:21:47]line ПРОДАЖА [10:21:47]line ТРК (МРК, ГНК): 23 [10:21:47]line Вид ГСМ : 2710124130 [10:21:47]line Аи-92-К-5 [10:21:47]line 34.240 x 66.80 [10:21:47]line ИТОГ: 2287.23 [10:21:47]line Тип оплаты: Талоны: Топливная Карта [10:21:47]line 90816 [10:21:47]line ______________________ [10:21:47]line (подпись) [10:21:47]written 0, free lines is 4095 [10:21:47]Write to MH i2c: 01 00 00 45 08 4D [10:21:47]Write i2c OK [10:21:47]MH_I2C_Read... [10:21:47]Read from MH i2c: 01 [10:21:47]MH_I2C_Read... [10:21:47]Read from MH i2c: 01 07 00 [10:21:47]MH_I2C_Read... [10:21:47]Read from MH i2c: 01 07 00 45 08 00 00 00 00 00 14 0E 76 [10:21:47]RasterBufferAndPrint [10:21:47]line [10:21:47]line [10:21:47]line [10:21:47]line [10:21:47]line [10:21:47]written 0, free lines is 3606 [10:21:47]MH_Cut [10:21:47]Write to MH i2c: D1 01 00 4C 08 01 26 [10:21:47]Write i2c OK [10:21:47]MH_I2C_Read... [10:21:47]Read from MH i2c: D1 [10:21:47]MH_I2C_Read... [10:21:47]Read from MH i2c: D1 01 00 [10:21:47]MH_I2C_Read... [10:21:47]Read from MH i2c: D1 01 00 4C 08 00 25 [10:21:47]Write to MH i2c: 01 00 00 4D 08 55 [10:21:47]Write i2c OK [10:21:47]MH_I2C_Read... [10:21:47]*** Cut start [10:21:47]*** Purtial cut [10:21:47]*** CUTSNS_PIN = 0 [10:21:48]*** Stage 1: CUTSNS_PIN = 1 [10:21:48]OFD Sender: No OFD packet to send [10:21:49]Read from MH i2c: 01 [10:21:49]MH_I2C_Read... [10:21:49]*** Stop cut motor [10:21:49]*** Cut end [10:21:49]Read from MH i2c: 01 07 00 [10:21:49]MH_I2C_Read... [10:21:49]Read from MH i2c: 01 07 00 4D 08 00 00 00 00 00 FF 0F 6A [10:21:49]process_action print_text done [10:21:49]requested_data is exist [10:21:49]produce_requested_data [10:21:49]requested_item fm.sn is exist - process it [10:21:49]wFMCommunicate request_size=4 [10:21:49]MH_SAM_APDU [10:21:49]CAPDU: 80 11 00 00 [10:21:49]Write to MH i2c: E2 08 00 4E 08 80 11 00 00 00 00 00 00 D0 [10:21:49]Write i2c OK [10:21:49]MH_I2C_Read... [10:21:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:49]Read from MH i2c: E2 [10:21:49]MH_I2C_Read... [10:21:49]Read from MH i2c: E2 17 00 [10:21:49]MH_I2C_Read... [10:21:49]Read from MH i2c: E2 17 00 4E 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 26 [10:21:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:21:49]wFMCommunicate OK [10:21:49]requested_item fd.num is exist - process it [10:21:49]SAM_PROTO_GetFieldsCounters [10:21:49]wFMCommunicate request_size=4 [10:21:49]MH_SAM_APDU [10:21:49]CAPDU: 80 13 00 00 [10:21:49]Write to MH i2c: E2 08 00 4F 08 80 13 00 00 00 00 00 00 D3 [10:21:49]Write i2c OK [10:21:49]MH_I2C_Read... [10:21:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:21:49]Read from MH i2c: E2 [10:21:49]MH_I2C_Read... [10:21:49]Read from MH i2c: E2 62 00 [10:21:49]MH_I2C_Read... [10:21:49]Read from MH i2c: E2 62 00 4F 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 72 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [10:21: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 72 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:21:49]wFMCommunicate OK [10:21:49]SAM_PROTO_GetFieldsCounters done [10:21:49]requested_item shift.num is exist - process it [10:21:49]requested_item shift.opened is exist - process it [10:21:49]req_shift_opened [10:21:49]FM_GetShiftState [10:21:49]SAM_PROTO_GetShiftState [10:21:49]wFMCommunicate request_size=4 [10:21:49]MH_SAM_APDU [10:21:49]CAPDU: 80 13 01 00 [10:21:49]Write to MH i2c: E2 08 00 50 08 80 13 01 00 00 00 00 00 D5 [10:21:49]Write i2c OK [10:21:49]MH_I2C_Read... [10:21:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:50]Read from MH i2c: E2 [10:21:50]MH_I2C_Read... [10:21:50]Read from MH i2c: E2 0E 00 [10:21:50]MH_I2C_Read... [10:21:50]Read from MH i2c: E2 0E 00 50 08 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 81 [10:21:50]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [10:21:50]wFMCommunicate OK [10:21:50]SAM_PROTO_GetShiftState done [10:21:50]FM_GetShiftState done [10:21:50]req_shift_opened done [10:21:50]requested_item shift.open_date is exist - process it [10:21:50]req_shift_open_date [10:21:50]req_shift_open_date done [10:21:50]produce_requested_data done [10:21:50]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67442,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [10:21:50]process_action_free print_text [10:21:50]json_value_free [10:21:50]json_value_free done [10:21:50]process_json_proto returns [10:21:50]Send response to host [10:21:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67442,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [10:21:50]free response buf [10:21:50]execute_script done [10:21:50]execute_script returns [10:21:50]free content buf [10:21:50]Sock 9.Close socket [10:21:50]Sock 9.Thread stoped [10:21:53]OFD Sender: No OFD packet to send [10:21:58]OFD Sender: No OFD packet to send [10:22:03]OFD Sender: No OFD packet to send [10:22:08]OFD Sender: No OFD packet to send [10:22:13]OFD Sender: No OFD packet to send [10:22:18]OFD Sender: No OFD packet to send [10:22:23]OFD Sender: No OFD packet to send [10:22:25]accept exits with 8 [10:22:25]New connection [10:22:25]New thread 3067460964 created [10:22:25]Thread 3067604324 joined [10:22:25]Waiting for new connection... [10:22:25] Sock 8.Parse request [10:22:25]Sock 8.Check first char [10:22:25]Sock 8.First char is OK [10:22:25]request: POST /json_proto HTTP/1.0 [10:22:25]Method: POST [10:22:25]URL: /json_proto [10:22:25]Method is POST - this is cgi request [10:22:25]url: /json_proto [10:22:25]query_string will be loaded in cgi processing [10:22:25]execute_cgi json_proto POST (null) [10:22:25]execute_cgi path=json_proto method=POST [10:22:25]POST find Content-Length [10:22:25]Host: 172.17.41.195:8080 [10:22:25]Content-Length: 675 [10:22:25]Content-Type: application/json [10:22:25] [10:22:25]POST finish read [10:22:25]Found Content-Length = 675 [10:22:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 19.180, "sum" : 1300.40, "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" ] } } [10:22:25]execute_script... [10:22: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)507469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 19.180, "sum" : 1300.40, "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" ] } } [10:22:25]POST & json_proto [10:22:25]process_json_proto [10:22:25]json parsed OK: [10:22:25]protocol is kg_v1.0 [10:22:25]action value=close_receipt [10:22:25]process_action close_receipt [10:22:25]cmd_close_receipt [10:22:25]MH_GetDate [10:22:25]Write to MH i2c: F0 00 00 51 08 48 [10:22:25]Write i2c OK [10:22:25]MH_I2C_Read... [10:22:25]Read from MH i2c: F0 [10:22:25]MH_I2C_Read... [10:22:25]Read from MH i2c: F0 09 00 [10:22:25]MH_I2C_Read... [10:22:25]Read from MH i2c: F0 09 00 51 08 00 62 DE 45 66 FC 21 6F 64 2C [10:22:25]GetLastDocTimeStamp 1715854726 [10:22:25]current date 1715854946 [10:22:25]FM_GetShiftState [10:22:25]SAM_PROTO_GetShiftState [10:22:25]wFMCommunicate request_size=4 [10:22:25]MH_SAM_APDU [10:22:25]CAPDU: 80 13 01 00 [10:22:25]Write to MH i2c: E2 08 00 52 08 80 13 01 00 00 00 00 00 D7 [10:22:25]Write i2c OK [10:22:25]MH_I2C_Read... [10:22:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:25]Read from MH i2c: E2 [10:22:25]MH_I2C_Read... [10:22:25]Read from MH i2c: E2 0E 00 [10:22:25]MH_I2C_Read... [10:22:25]Read from MH i2c: E2 0E 00 52 08 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 83 [10:22:25]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [10:22:25]wFMCommunicate OK [10:22:25]SAM_PROTO_GetShiftState done [10:22:25]FM_GetShiftState done [10:22:25]opened in 1715818916 [10:22:25]opened+sec_in_day 1715905316 [10:22:25]quantity*price = 130040 [10:22:25]sum+1 = 130041 [10:22:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.10 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 41 16.05.2024 10:22 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67443 ФПД: 224093511061706 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T102226&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67443&fm=224093511061706&tin=02508201610067®Number=0000000000091845&sum=130000 [10:22:26]StoreToDocumentArchive [10:22:26]shift 357 fd 67443 [10:22:26]save to /storage/0357/doc_00067443 [10:22:26]save last doc name /storage/0357/doc_00067443 to /storage/kkm_last_doc_name [10:22:26]save OK [10:22:26]Clear old archive folders... [10:22:26]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:22:26]tlvbuf is 00C7E900 [10:22:26]SAM_PROTO_ClearQueue [10:22:26]wFMCommunicate request_size=4 [10:22:26]MH_SAM_APDU [10:22:26]CAPDU: 80 09 00 00 [10:22:26]Write to MH i2c: E2 08 00 5F 08 80 09 00 00 00 00 00 00 D9 [10:22:26]Write i2c OK [10:22:26]MH_I2C_Read... [10:22:26]Read from MH i2c: E2 [10:22:26]MH_I2C_Read... [10:22:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:22:26]Read from MH i2c: E2 03 00 [10:22:26]MH_I2C_Read... [10:22:26]Read from MH i2c: E2 03 00 5F 08 00 90 00 DB [10:22:26]RAPDU: 90 00 [10:22:26]wFMCommunicate OK [10:22:26]SAM_PROTO_ClearQueue done [10:22:26]KKMCreateOFDPacket [10:22:26]OFDProtocolAddRootSTLVToBuf [10:22:26]FM_MakeSignedData [10:22:26]FM_MakeSignedData [10:22:26]SAM_PROTO_SignData [10:22:26]wFMCommunicate request_size=4 [10:22:26]MH_SAM_APDU [10:22:26]CAPDU: 80 0D 01 02 [10:22:26]Write to MH i2c: E2 08 00 60 08 80 0D 01 02 00 00 00 00 E1 [10:22:26]Write i2c OK [10:22:26]MH_I2C_Read... [10:22:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:22:26]Read from MH i2c: E2 [10:22:26]MH_I2C_Read... [10:22:26]Read from MH i2c: E2 03 00 [10:22:26]MH_I2C_Read... [10:22:26]Read from MH i2c: E2 03 00 60 08 00 90 00 DC [10:22:26]RAPDU: 90 00 [10:22:26]wFMCommunicate OK [10:22:26]wFMCommunicate request_size=255 [10:22:26]MH_SAM_APDU [10:22:26]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 4A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F8 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 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 29 00 00 00 F4 03 04 00 62 DE 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 73 07 01 00 35 04 06 00 [10:22:26]Write to MH i2c: E2 02 01 61 08 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 4A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F8 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 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 29 00 00 00 F4 03 04 00 62 DE 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 73 07 01 00 35 04 06 00 00 00 11 [10:22:26]Write i2c OK [10:22:26]MH_I2C_Read... [10:22:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:26]Read from MH i2c: E2 [10:22:26]MH_I2C_Read... [10:22:26]Read from MH i2c: E2 03 00 [10:22:26]MH_I2C_Read... [10:22:26]Read from MH i2c: E2 03 00 61 08 00 90 00 DD [10:22:26]RAPDU: 90 00 [10:22:26]wFMCommunicate OK [10:22:26]wFMCommunicate request_size=11 [10:22:26]MH_SAM_APDU [10:22:26]CAPDU: 80 0D 02 02 06 CB CF D6 1F 90 CA [10:22:26]Write to MH i2c: E2 0E 00 62 08 80 0D 02 02 06 00 CB CF D6 1F 90 CA 00 00 D9 [10:22:26]Write i2c OK [10:22:26]MH_I2C_Read... [10:22:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:26]Read from MH i2c: E2 [10:22:26]MH_I2C_Read... [10:22:26]Read from MH i2c: E2 03 00 [10:22:26]MH_I2C_Read... [10:22:26]Read from MH i2c: E2 03 00 62 08 00 90 00 DE [10:22:26]RAPDU: 90 00 [10:22:26]wFMCommunicate OK [10:22:26]wFMCommunicate request_size=4 [10:22:26]MH_SAM_APDU [10:22:26]CAPDU: 80 0D 03 02 [10:22:26]Write to MH i2c: E2 08 00 63 08 80 0D 03 02 00 00 00 00 E6 [10:22:26]Write i2c OK [10:22:26]MH_I2C_Read... [10:22:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:22:26]Read from MH i2c: E2 [10:22:26]MH_I2C_Read... [10:22:26]Read from MH i2c: E2 0B 00 [10:22:26]MH_I2C_Read... [10:22:26]Read from MH i2c: E2 0B 00 63 08 00 74 2B 88 CB 22 88 D1 73 90 00 C7 [10:22:26]RAPDU: 74 2B 88 CB 22 88 D1 73 90 00 [10:22:26]wFMCommunicate OK [10:22:26]SAM_PROTO_SignData done [10:22:26]FM_MakeSignedData done [10:22:26]CreateOFDProtocolMessage [10:22:26]wFMCommunicate request_size=4 [10:22:26]MH_SAM_APDU [10:22:26]CAPDU: 80 11 00 00 [10:22:26]Write to MH i2c: E2 08 00 64 08 80 11 00 00 00 00 00 00 E6 [10:22:26]Write i2c OK [10:22:26]MH_I2C_Read... [10:22:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:26]Read from MH i2c: E2 [10:22:26]MH_I2C_Read... [10:22:26]Read from MH i2c: E2 17 00 [10:22:26]MH_I2C_Read... [10:22:26]Read from MH i2c: E2 17 00 64 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3C [10:22:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:22:26]wFMCommunicate OK [10:22:26]CreateOFDProtocolMessage done [10:22:26]OFDSenderStorePacket 67443 [10:22:26]StoreOFDPacket docnum=67443 [10:22:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 50 2E 08 01 97 AB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 4A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F8 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 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 29 00 00 00 F4 03 04 00 62 DE 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 73 07 01 00 35 04 06 00 CB CF D6 1F 90 CA 74 2B 88 CB 22 88 D1 73 [10:22:26]CheckFolder [10:22:26]dirname=/storage/ofd_packets [10:22:26]CheckFolder done [10:22:26]ProducePacketName [10:22:26]name=ofd_packets/00067443 [10:22:26]NVStorageSaveData ofd_packets/00067443 [10:22:26]File name is /storage/ofd_packets/00067443 [10:22:26]Write 302 bytes [10:22:26]NVStorageSaveData done [10:22:26]OFDSenderStorePacket done [10:22:26]KKMCreateOFDPacket done [10:22:26]NVStorageSaveData kkm_last_timestamp [10:22:26]File name is /storage/kkm_last_timestamp [10:22:26]Write 4 bytes [10:22:26]NVStorageSaveData done [10:22:26]ExternCall_PrintAddStr [10:22:26]wPrintStart [10:22:26]Write to MH i2c: 01 00 00 65 08 6D [10:22:26]Write i2c OK [10:22:26]MH_I2C_Read... [10:22:26]Read from MH i2c: 01 [10:22:26]MH_I2C_Read... [10:22:26]Read from MH i2c: 01 07 00 [10:22:26]MH_I2C_Read... [10:22:26]Read from MH i2c: 01 07 00 65 08 00 00 00 00 00 FF 0F 82 [10:22:26]RasterBufferAndPrint [10:22:26]line Счет N : (1)507469 [10:22:26]line ИНН: 02508201610067 [10:22:26]line Контрольно-Кассовый Чек [10:22:26]line ПРОДАЖА [10:22:26]line ТРК (МРК, ГНК) : 42 [10:22:26]line Товар: 2710124130 [10:22:26]line Super-92-К-5 [10:22:26]line 19.180 * 67.80 [10:22:26]line = 1300.40 [10:22:26]line НДС 12% НСП 1% [10:22:26]line > о реализуемом товаре [10:22:26]line ОКРУГЛЕНИЕ: -0.40 [10:22:26]line ИТОГО: 1300.00 [10:22:26]line Внесено: 1300.00 [10:22:26]line СДАЧА: 0.00 [10:22:26]line НСП 1% : 11.51 [10:22:26]line НДС 12% : 138.10 [10:22:26]line Наличными: 1300.00 [10:22:26]line Безнал.: 0.00 [10:22:26]line Место: АЗС № 91 "Партнер Нефть" [10:22:26]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [10:22:26]line СНО: Общий режим [10:22:26]line Чек 41 16.05.2024 10:22 [10:22:26]line Смена: 357 ФФД: 1.0 [10:22:26]line ЗНМ: 0300000119 [10:22:26]line РНМ: 0000000000091845 [10:22:26]line Версия ККМ: 001 [10:22:26]line ФМ: 0000000000871829 [10:22:26]line ФД: 67443 [10:22:26]line ФПД: 224093511061706 [10:22:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T102226&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67443&fm=224093511061706&tin=02508201610067®Number=0000000000091845&sum=130000 [10:22:27]OFD Sender: Processing packet 67443 [packets to send 35, broken 34] [10:22:27]ProducePacketName [10:22:27]name=ofd_packets/00067443 [10:22:27]OFD Sender: To server: pG, [10:22:27]CommunicateWithHost lk.salyk.kg:30040 [10:22:27]ConnectInit lk.salyk.kg [10:22:27]written 0, free lines is 4095 [10:22:27]Connected sock=10 [10:22: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 38 32 39 10 01 00 00 50 2E 08 01 97 AB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 4A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F8 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 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 29 00 00 00 F4 03 04 00 62 DE 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 73 07 01 00 35 04 06 00 CB CF D6 1F 90 CA 74 2B 88 CB 22 88 D1 73 [10:22:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 4A B8 47 00 C6 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 38 32 39 10 04 04 00 73 07 01 00 F4 03 04 00 3D 86 45 66 B6 04 01 00 00 44 0B D0 4E D5 93 6A 73 [10:22:27]CommunicateWithHost err = 0 [10:22:27]CheckOFDResponse [10:22:27]1017 (14) - 77093643461234 [10:22:27]1041 (16) - 0000000000871829 [10:22:27]1040 (4) - 67443 [10:22:27]1012 (4) - 16.05.2024 04:06 [10:22:27]1206 (1) - 0 [10:22:27]OFD Sender: Remove packet 67443 [10:22:27]ProducePacketName [10:22:27]name=ofd_packets/00067443 [10:22:27]NVStorageDeleteData [10:22:27]Write to MH i2c: 01 00 00 8F 08 97 [10:22:27]Write i2c OK [10:22:27]MH_I2C_Read... [10:22:27]Read from MH i2c: 01 [10:22:27]MH_I2C_Read... [10:22:27]Read from MH i2c: 01 07 00 [10:22:27]MH_I2C_Read... [10:22:27]Read from MH i2c: 01 07 00 8F 08 00 00 00 00 00 CD 0C 77 [10:22:27]RasterBufferAndPrint [10:22:27]line [10:22:27]line [10:22:27]line [10:22:27]line [10:22:27]line [10:22:27]written 0, free lines is 3283 [10:22:27]MH_Cut [10:22:27]Write to MH i2c: D1 01 00 96 08 01 70 [10:22:27]Write i2c OK [10:22:27]MH_I2C_Read... [10:22:27]Read from MH i2c: D1 [10:22:27]MH_I2C_Read... [10:22:27]Read from MH i2c: D1 01 00 [10:22:27]MH_I2C_Read... [10:22:27]Read from MH i2c: D1 01 00 96 08 00 6F [10:22:27]Write to MH i2c: 01 00 00 97 08 9F [10:22:27]Write i2c OK [10:22:27]MH_I2C_Read... [10:22:28]OFD Sender: No OFD packet to send [10:22:28]*** Cut start [10:22:28]*** Purtial cut [10:22:28]*** Stage 1: CUTSNS_PIN = 1 [10:22:28]Read from MH i2c: 01 [10:22:28]MH_I2C_Read... [10:22:28]*** Stop cut motor [10:22:28]*** Cut end [10:22:28]Read from MH i2c: 01 07 00 [10:22:28]MH_I2C_Read... [10:22:28]Read from MH i2c: 01 07 00 97 08 00 00 00 00 00 FF 0F B4 [10:22:28]process_action close_receipt done [10:22:28]requested_data is exist [10:22:28]produce_requested_data [10:22:28]requested_item fm.sn is exist - process it [10:22:28]wFMCommunicate request_size=4 [10:22:28]MH_SAM_APDU [10:22:28]CAPDU: 80 11 00 00 [10:22:28]Write to MH i2c: E2 08 00 98 08 80 11 00 00 00 00 00 00 1A [10:22:28]Write i2c OK [10:22:28]MH_I2C_Read... [10:22:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:28]Read from MH i2c: E2 [10:22:28]MH_I2C_Read... [10:22:28]Read from MH i2c: E2 17 00 [10:22:28]MH_I2C_Read... [10:22:28]Read from MH i2c: E2 17 00 98 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 70 [10:22:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:22:28]wFMCommunicate OK [10:22:28]requested_item fd.num is exist - process it [10:22:28]SAM_PROTO_GetFieldsCounters [10:22:28]wFMCommunicate request_size=4 [10:22:28]MH_SAM_APDU [10:22:28]CAPDU: 80 13 00 00 [10:22:28]Write to MH i2c: E2 08 00 99 08 80 13 00 00 00 00 00 00 1D [10:22:28]Write i2c OK [10:22:28]MH_I2C_Read... [10:22:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:29]Read from MH i2c: E2 [10:22:29]MH_I2C_Read... [10:22:29]Read from MH i2c: E2 62 00 [10:22:29]MH_I2C_Read... [10:22:29]Read from MH i2c: E2 62 00 99 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 73 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [10:22: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 73 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:22:29]wFMCommunicate OK [10:22:29]SAM_PROTO_GetFieldsCounters done [10:22:29]requested_item shift.num is exist - process it [10:22:29]requested_item shift.opened is exist - process it [10:22:29]req_shift_opened [10:22:29]FM_GetShiftState [10:22:29]SAM_PROTO_GetShiftState [10:22:29]wFMCommunicate request_size=4 [10:22:29]MH_SAM_APDU [10:22:29]CAPDU: 80 13 01 00 [10:22:29]Write to MH i2c: E2 08 00 9A 08 80 13 01 00 00 00 00 00 1F [10:22:29]Write i2c OK [10:22:29]MH_I2C_Read... [10:22:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:29]Read from MH i2c: E2 [10:22:29]MH_I2C_Read... [10:22:29]Read from MH i2c: E2 0E 00 [10:22:29]MH_I2C_Read... [10:22:29]Read from MH i2c: E2 0E 00 9A 08 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 CB [10:22:29]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [10:22:29]wFMCommunicate OK [10:22:29]SAM_PROTO_GetShiftState done [10:22:29]FM_GetShiftState done [10:22:29]req_shift_opened done [10:22:29]requested_item shift.open_date is exist - process it [10:22:29]req_shift_open_date [10:22:29]req_shift_open_date done [10:22:29]produce_requested_data done [10:22:29]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67443,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [10:22:29]process_action_free close_receipt [10:22:29]json_value_free [10:22:29]json_value_free done [10:22:29]process_json_proto returns [10:22:29]Send response to host [10:22:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67443,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [10:22:29]free response buf [10:22:29]execute_script done [10:22:29]execute_script returns [10:22:29]free content buf [10:22:29]Sock 8.Close socket [10:22:29]Sock 8.Thread stoped [10:22:33]OFD Sender: No OFD packet to send [10:22:38]OFD Sender: No OFD packet to send [10:22:43]OFD Sender: No OFD packet to send [10:22:48]OFD Sender: No OFD packet to send [10:22:53]OFD Sender: No OFD packet to send [10:22:58]OFD Sender: No OFD packet to send [10:23:03]OFD Sender: No OFD packet to send [10:23:08]OFD Sender: No OFD packet to send [10:23:13]OFD Sender: No OFD packet to send [10:23:18]OFD Sender: No OFD packet to send [10:23:23]OFD Sender: No OFD packet to send [10:23:28]OFD Sender: No OFD packet to send [10:23:33]OFD Sender: No OFD packet to send [10:23:38]OFD Sender: No OFD packet to send [10:23:43]OFD Sender: No OFD packet to send [10:23:48]OFD Sender: No OFD packet to send [10:23:53]OFD Sender: No OFD packet to send [10:23:58]OFD Sender: No OFD packet to send [10:24:03]OFD Sender: No OFD packet to send [10:24:08]OFD Sender: No OFD packet to send [10:24:13]OFD Sender: No OFD packet to send [10:24:18]OFD Sender: No OFD packet to send [10:24:23]OFD Sender: No OFD packet to send [10:24:28]OFD Sender: No OFD packet to send [10:24:33]OFD Sender: No OFD packet to send [10:24:38]OFD Sender: No OFD packet to send [10:24:43]OFD Sender: No OFD packet to send [10:24:48]OFD Sender: No OFD packet to send [10:24:53]OFD Sender: No OFD packet to send [10:24:58]OFD Sender: No OFD packet to send [10:25:03]OFD Sender: No OFD packet to send [10:25:08]OFD Sender: No OFD packet to send [10:25:13]OFD Sender: No OFD packet to send [10:25:18]OFD Sender: No OFD packet to send [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:40]accept exits with 9 [10:25:40]New connection [10:25:40]New thread 3067604324 created [10:25:40]Thread 3067460964 joined [10:25:40]Waiting for new connection... [10:25:40] Sock 9.Parse request [10:25:40]Sock 9.Check first char [10:25:40]Sock 9.First char is OK [10:25:40]request: POST /json_proto HTTP/1.0 [10:25:40]Method: POST [10:25:40]URL: /json_proto [10:25:40]Method is POST - this is cgi request [10:25:40]url: /json_proto [10:25:40]query_string will be loaded in cgi processing [10:25:40]execute_cgi json_proto POST (null) [10:25:40]execute_cgi path=json_proto method=POST [10:25:40]POST find Content-Length [10:25:40]Host: 172.17.41.195:8080 [10:25:40]Content-Length: 800 [10:25:40]Content-Type: application/json [10:25:40] [10:25:40]POST finish read [10:25:40]Found Content-Length = 800 [10:25:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507470", "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" : 74.70, "quantity" : 26.780, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:40]execute_script... [10:25: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)507470", "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" : 74.70, "quantity" : 26.780, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:40]POST & json_proto [10:25:40]process_json_proto [10:25:40]json parsed OK: [10:25:40]protocol is kg_v1.0 [10:25:40]action value=close_receipt [10:25:40]process_action close_receipt [10:25:40]cmd_close_receipt [10:25:40]MH_GetDate [10:25:40]Write to MH i2c: F0 00 00 9B 08 92 [10:25:40]Write i2c OK [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: F0 [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: F0 09 00 [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: F0 09 00 9B 08 00 26 DF 45 66 FC 21 6F 64 3B [10:25:40]GetLastDocTimeStamp 1715854946 [10:25:40]current date 1715855142 [10:25:40]FM_GetShiftState [10:25:40]SAM_PROTO_GetShiftState [10:25:40]wFMCommunicate request_size=4 [10:25:40]MH_SAM_APDU [10:25:40]CAPDU: 80 13 01 00 [10:25:40]Write to MH i2c: E2 08 00 9C 08 80 13 01 00 00 00 00 00 21 [10:25:40]Write i2c OK [10:25:40]MH_I2C_Read... [10:25:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:40]Read from MH i2c: E2 [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: E2 0E 00 [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: E2 0E 00 9C 08 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 CD [10:25:40]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [10:25:40]wFMCommunicate OK [10:25:40]SAM_PROTO_GetShiftState done [10:25:40]FM_GetShiftState done [10:25:40]opened in 1715818916 [10:25:40]opened+sec_in_day 1715905316 [10:25:40]quantity*price = 200046 [10:25:40]sum+1 = 200048 [10:25:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.47 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 0.00 Безнал.: 2000.47 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 42 16.05.2024 10:25 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67444 ФПД: 199056610955844 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T102542&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67444&fm=199056610955844&tin=02508201610067®Number=0000000000091845&sum=200047 [10:25:41]StoreToDocumentArchive [10:25:41]shift 357 fd 67444 [10:25:41]save to /storage/0357/doc_00067444 [10:25:41]save last doc name /storage/0357/doc_00067444 to /storage/kkm_last_doc_name [10:25:41]save OK [10:25:41]Clear old archive folders... [10:25:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:25:41]tlvbuf is 00C80510 [10:25:41]SAM_PROTO_ClearQueue [10:25:41]wFMCommunicate request_size=4 [10:25:41]MH_SAM_APDU [10:25:41]CAPDU: 80 09 00 00 [10:25:41]Write to MH i2c: E2 08 00 A9 08 80 09 00 00 00 00 00 00 23 [10:25:41]Write i2c OK [10:25:41]MH_I2C_Read... [10:25:41]Read from MH i2c: E2 [10:25:41]MH_I2C_Read... [10:25:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:25:41]Read from MH i2c: E2 03 00 [10:25:41]MH_I2C_Read... [10:25:41]Read from MH i2c: E2 03 00 A9 08 00 90 00 25 [10:25:41]RAPDU: 90 00 [10:25:41]wFMCommunicate OK [10:25:41]SAM_PROTO_ClearQueue done [10:25:41]KKMCreateOFDPacket [10:25:41]OFDProtocolAddRootSTLVToBuf [10:25:41]FM_MakeSignedData [10:25:41]FM_MakeSignedData [10:25:41]SAM_PROTO_SignData [10:25:41]wFMCommunicate request_size=4 [10:25:41]MH_SAM_APDU [10:25:41]CAPDU: 80 0D 01 02 [10:25:41]Write to MH i2c: E2 08 00 AA 08 80 0D 01 02 00 00 00 00 2B [10:25:41]Write i2c OK [10:25:41]MH_I2C_Read... [10:25:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:25:41]Read from MH i2c: E2 [10:25:41]MH_I2C_Read... [10:25:41]Read from MH i2c: E2 03 00 [10:25:41]MH_I2C_Read... [10:25:41]Read from MH i2c: E2 03 00 AA 08 00 90 00 26 [10:25:41]RAPDU: 90 00 [10:25:41]wFMCommunicate OK [10:25:41]wFMCommunicate request_size=255 [10:25:41]MH_SAM_APDU [10:25: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 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 26 DF 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 74 07 01 00 35 04 06 00 B5 0A 7A 96 [10:25:41]Write to MH i2c: E2 02 01 AB 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 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 26 DF 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 74 07 01 00 35 04 06 00 B5 0A 7A 96 00 00 22 [10:25:42]Write i2c OK [10:25:42]MH_I2C_Read... [10:25:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:42]Read from MH i2c: E2 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: E2 03 00 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: E2 03 00 AB 08 00 90 00 27 [10:25:42]RAPDU: 90 00 [10:25:42]wFMCommunicate OK [10:25:42]wFMCommunicate request_size=7 [10:25:42]MH_SAM_APDU [10:25:42]CAPDU: 80 0D 02 02 02 12 44 [10:25:42]Write to MH i2c: E2 0A 00 AC 08 80 0D 02 02 02 00 12 44 00 00 88 [10:25:42]Write i2c OK [10:25:42]MH_I2C_Read... [10:25:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:42]Read from MH i2c: E2 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: E2 03 00 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: E2 03 00 AC 08 00 90 00 28 [10:25:42]RAPDU: 90 00 [10:25:42]wFMCommunicate OK [10:25:42]wFMCommunicate request_size=4 [10:25:42]MH_SAM_APDU [10:25:42]CAPDU: 80 0D 03 02 [10:25:42]Write to MH i2c: E2 08 00 AD 08 80 0D 03 02 00 00 00 00 30 [10:25:42]Write i2c OK [10:25:42]MH_I2C_Read... [10:25:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:25:42]Read from MH i2c: E2 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: E2 0B 00 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: E2 0B 00 AD 08 00 1C 11 D9 1A EF 32 36 F8 90 00 A0 [10:25:42]RAPDU: 1C 11 D9 1A EF 32 36 F8 90 00 [10:25:42]wFMCommunicate OK [10:25:42]SAM_PROTO_SignData done [10:25:42]FM_MakeSignedData done [10:25:42]CreateOFDProtocolMessage [10:25:42]wFMCommunicate request_size=4 [10:25:42]MH_SAM_APDU [10:25:42]CAPDU: 80 11 00 00 [10:25:42]Write to MH i2c: E2 08 00 AE 08 80 11 00 00 00 00 00 00 30 [10:25:42]Write i2c OK [10:25:42]MH_I2C_Read... [10:25:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:42]Read from MH i2c: E2 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: E2 17 00 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: E2 17 00 AE 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 86 [10:25:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:25:42]wFMCommunicate OK [10:25:42]CreateOFDProtocolMessage done [10:25:42]OFDSenderStorePacket 67444 [10:25:42]StoreOFDPacket docnum=67444 [10:25:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 CE C3 04 01 A1 65 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 26 DF 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 74 07 01 00 35 04 06 00 B5 0A 7A 96 12 44 1C 11 D9 1A EF 32 36 F8 [10:25:42]CheckFolder [10:25:42]dirname=/storage/ofd_packets [10:25:42]CheckFolder done [10:25:42]ProducePacketName [10:25:42]name=ofd_packets/00067444 [10:25:42]NVStorageSaveData ofd_packets/00067444 [10:25:42]File name is /storage/ofd_packets/00067444 [10:25:42]Write 298 bytes [10:25:42]NVStorageSaveData done [10:25:42]OFDSenderStorePacket done [10:25:42]KKMCreateOFDPacket done [10:25:42]NVStorageSaveData kkm_last_timestamp [10:25:42]File name is /storage/kkm_last_timestamp [10:25:42]Write 4 bytes [10:25:42]NVStorageSaveData done [10:25:42]ExternCall_PrintAddStr [10:25:42]wPrintStart [10:25:42]Write to MH i2c: 01 00 00 AF 08 B7 [10:25:42]Write i2c OK [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: 01 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: 01 07 00 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: 01 07 00 AF 08 00 00 00 00 00 FF 0F CC [10:25:42]RasterBufferAndPrint [10:25:42]line Счет N : (1)507470 [10:25:42]line ИНН: 02508201610067 [10:25:42]line Контрольно-Кассовый Чек [10:25:42]line ПРОДАЖА [10:25:42]line ТРК (МРК, ГНК) : 41 [10:25:42]line Товар: 2710194210 [10:25:42]line ДТ-К-5 [10:25:42]line 26.780 * 74.70 [10:25:42]line = 2000.47 [10:25:42]line НДС 12% НСП 1% [10:25:42]line > о реализуемом товаре [10:25:42]line ИТОГО: 2000.47 [10:25:42]line НСП 1% : 17.70 [10:25:42]line НДС 12% : 212.44 [10:25:42]line Наличными: 0.00 [10:25:42]line Безнал.: 2000.47 [10:25:42]line Место: АЗС № 91 "Партнер Нефть" [10:25:42]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [10:25:42]line СНО: Общий режим [10:25:42]line Чек 42 16.05.2024 10:25 [10:25:42]line Смена: 357 ФФД: 1.0 [10:25:42]line ЗНМ: 0300000119 [10:25:42]line РНМ: 0000000000091845 [10:25:42]line Версия ККМ: 001 [10:25:42]line Платежная система: O! деньги [10:25:42]line ФМ: 0000000000871829 [10:25:42]line ФД: 67444 [10:25:42]line ФПД: 199056610955844 [10:25:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T102542&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67444&fm=199056610955844&tin=02508201610067®Number=0000000000091845&sum=200047 [10:25:42]OFD Sender: Processing packet 67444 [packets to send 35, broken 34] [10:25:42]ProducePacketName [10:25:42]name=ofd_packets/00067444 [10:25:42]OFD Sender: To server: pG, [10:25:42]CommunicateWithHost lk.salyk.kg:30040 [10:25:42]ConnectInit lk.salyk.kg [10:25:42]written 0, free lines is 4095 [10:25:42]Connected sock=10 [10:25: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 38 32 39 0C 01 00 00 CE C3 04 01 A1 65 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 26 DF 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 74 07 01 00 35 04 06 00 B5 0A 7A 96 12 44 1C 11 D9 1A EF 32 36 F8 [10:25:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 A7 72 47 00 A5 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 74 07 01 00 F4 03 04 00 01 87 45 66 B6 04 01 00 00 C4 EF 24 54 79 C8 A9 BF [10:25:43]CommunicateWithHost err = 0 [10:25:43]CheckOFDResponse [10:25:43]1017 (14) - 77093643461234 [10:25:43]1041 (16) - 0000000000871829 [10:25:43]1040 (4) - 67444 [10:25:43]1012 (4) - 16.05.2024 04:09 [10:25:43]1206 (1) - 0 [10:25:43]OFD Sender: Remove packet 67444 [10:25:43]ProducePacketName [10:25:43]name=ofd_packets/00067444 [10:25:43]NVStorageDeleteData [10:25:43]Write to MH i2c: 01 00 00 D8 08 E0 [10:25:43]Write i2c OK [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: 01 [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: 01 07 00 [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: 01 07 00 D8 08 00 00 00 00 00 E7 0C DA [10:25:43]RasterBufferAndPrint [10:25:43]line [10:25:43]line [10:25:43]line [10:25:43]line [10:25:43]line [10:25:43]written 0, free lines is 3312 [10:25:43]MH_Cut [10:25:43]Write to MH i2c: D1 01 00 DF 08 01 B9 [10:25:43]Write i2c OK [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: D1 [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: D1 01 00 [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: D1 01 00 DF 08 00 B8 [10:25:43]Write to MH i2c: 01 00 00 E0 08 E8 [10:25:43]Write i2c OK [10:25:43]MH_I2C_Read... [10:25:43]OFD Sender: No OFD packet to send [10:25:43]*** Cut start [10:25:43]*** Purtial cut [10:25:43]*** CUTSNS_PIN = 0 [10:25:44]*** Stage 1: CUTSNS_PIN = 1 [10:25:45]Read from MH i2c: 01 [10:25:46]MH_I2C_Read... [10:25:46]*** Stop cut motor [10:25:46]*** Cut end [10:25:46]Read from MH i2c: 01 07 00 [10:25:46]MH_I2C_Read... [10:25:46]Read from MH i2c: 01 07 00 E0 08 00 00 00 00 00 FF 0F FD [10:25:46]process_action close_receipt done [10:25:46]requested_data is exist [10:25:46]produce_requested_data [10:25:46]requested_item fm.sn is exist - process it [10:25:46]wFMCommunicate request_size=4 [10:25:46]MH_SAM_APDU [10:25:46]CAPDU: 80 11 00 00 [10:25:46]Write to MH i2c: E2 08 00 E1 08 80 11 00 00 00 00 00 00 63 [10:25:46]Write i2c OK [10:25:46]MH_I2C_Read... [10:25:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:46]Read from MH i2c: E2 [10:25:46]MH_I2C_Read... [10:25:46]Read from MH i2c: E2 17 00 [10:25:46]MH_I2C_Read... [10:25:46]Read from MH i2c: E2 17 00 E1 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B9 [10:25:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:25:46]wFMCommunicate OK [10:25:46]requested_item fd.num is exist - process it [10:25:46]SAM_PROTO_GetFieldsCounters [10:25:46]wFMCommunicate request_size=4 [10:25:46]MH_SAM_APDU [10:25:46]CAPDU: 80 13 00 00 [10:25:46]Write to MH i2c: E2 08 00 E2 08 80 13 00 00 00 00 00 00 66 [10:25:46]Write i2c OK [10:25:46]MH_I2C_Read... [10:25:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:25:46]Read from MH i2c: E2 [10:25:46]MH_I2C_Read... [10:25:46]Read from MH i2c: E2 62 00 [10:25:46]MH_I2C_Read... [10:25:46]Read from MH i2c: E2 62 00 E2 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 74 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [10:25: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 74 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:25:46]wFMCommunicate OK [10:25:46]SAM_PROTO_GetFieldsCounters done [10:25:46]requested_item shift.num is exist - process it [10:25:46]requested_item shift.opened is exist - process it [10:25:46]req_shift_opened [10:25:46]FM_GetShiftState [10:25:46]SAM_PROTO_GetShiftState [10:25:46]wFMCommunicate request_size=4 [10:25:46]MH_SAM_APDU [10:25:46]CAPDU: 80 13 01 00 [10:25:46]Write to MH i2c: E2 08 00 E3 08 80 13 01 00 00 00 00 00 68 [10:25:46]Write i2c OK [10:25:46]MH_I2C_Read... [10:25:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:46]Read from MH i2c: E2 [10:25:46]MH_I2C_Read... [10:25:46]Read from MH i2c: E2 0E 00 [10:25:46]MH_I2C_Read... [10:25:46]Read from MH i2c: E2 0E 00 E3 08 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 14 [10:25:46]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [10:25:46]wFMCommunicate OK [10:25:46]SAM_PROTO_GetShiftState done [10:25:46]FM_GetShiftState done [10:25:46]req_shift_opened done [10:25:46]requested_item shift.open_date is exist - process it [10:25:46]req_shift_open_date [10:25:46]req_shift_open_date done [10:25:46]produce_requested_data done [10:25:46]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67444,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [10:25:46]process_action_free close_receipt [10:25:46]json_value_free [10:25:46]json_value_free done [10:25:46]process_json_proto returns [10:25:46]Send response to host [10:25:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67444,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [10:25:46]free response buf [10:25:46]execute_script done [10:25:46]execute_script returns [10:25:46]free content buf [10:25:46]Sock 9.Close socket [10:25:46]Sock 9.Thread stoped [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:45]accept exits with 8 [10:27:45]New connection [10:27:45]New thread 3067460964 created [10:27:45]Thread 3067604324 joined [10:27:45]Waiting for new connection... [10:27:45] Sock 8.Parse request [10:27:45]Sock 8.Check first char [10:27:45]Sock 8.First char is OK [10:27:45]request: POST /json_proto HTTP/1.0 [10:27:45]Method: POST [10:27:45]URL: /json_proto [10:27:45]Method is POST - this is cgi request [10:27:45]url: /json_proto [10:27:45]query_string will be loaded in cgi processing [10:27:45]execute_cgi json_proto POST (null) [10:27:45]execute_cgi path=json_proto method=POST [10:27:45]POST find Content-Length [10:27:45]Host: 172.17.41.195:8080 [10:27:45]Content-Length: 679 [10:27:45]Content-Type: application/json [10:27:45] [10:27:45]POST finish read [10:27:45]Found Content-Length = 679 [10:27:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507471", "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" : 74.70, "quantity" : 30.790, "sum" : 2300.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2300.00, "total" : 2300.00, "payments": [ { "type": 0, "sum" : 2300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:45]execute_script... [10:27: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)507471", "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" : 74.70, "quantity" : 30.790, "sum" : 2300.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2300.00, "total" : 2300.00, "payments": [ { "type": 0, "sum" : 2300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:45]POST & json_proto [10:27:45]process_json_proto [10:27:45]json parsed OK: [10:27:45]protocol is kg_v1.0 [10:27:45]action value=close_receipt [10:27:45]process_action close_receipt [10:27:45]cmd_close_receipt [10:27:45]MH_GetDate [10:27:45]Write to MH i2c: F0 00 00 E4 08 DB [10:27:45]Write i2c OK [10:27:45]MH_I2C_Read... [10:27:45]Read from MH i2c: F0 [10:27:45]MH_I2C_Read... [10:27:45]Read from MH i2c: F0 09 00 [10:27:45]MH_I2C_Read... [10:27:45]Read from MH i2c: F0 09 00 E4 08 00 A2 DF 45 66 FC 21 6F 64 00 [10:27:45]GetLastDocTimeStamp 1715855142 [10:27:45]current date 1715855266 [10:27:45]FM_GetShiftState [10:27:45]SAM_PROTO_GetShiftState [10:27:45]wFMCommunicate request_size=4 [10:27:45]MH_SAM_APDU [10:27:45]CAPDU: 80 13 01 00 [10:27:45]Write to MH i2c: E2 08 00 E5 08 80 13 01 00 00 00 00 00 6A [10:27:45]Write i2c OK [10:27:45]MH_I2C_Read... [10:27:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:45]Read from MH i2c: E2 [10:27:45]MH_I2C_Read... [10:27:45]Read from MH i2c: E2 0E 00 [10:27:45]MH_I2C_Read... [10:27:45]Read from MH i2c: E2 0E 00 E5 08 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 16 [10:27:45]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [10:27:45]wFMCommunicate OK [10:27:45]SAM_PROTO_GetShiftState done [10:27:45]FM_GetShiftState done [10:27:45]opened in 1715818916 [10:27:45]opened+sec_in_day 1715905316 [10:27:45]quantity*price = 230001 [10:27:45]sum+1 = 230002 [10:27:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 2300.00 Внесено: 2300.00 СДАЧА: 0.00 НСП 1% : 20.35 НДС 12% : 244.25 Наличными: 2300.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 43 16.05.2024 10:27 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67445 ФПД: 124318372959442 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T102746&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67445&fm=124318372959442&tin=02508201610067®Number=0000000000091845&sum=230000 [10:27:46]StoreToDocumentArchive [10:27:46]shift 357 fd 67445 [10:27:46]save to /storage/0357/doc_00067445 [10:27:46]save last doc name /storage/0357/doc_00067445 to /storage/kkm_last_doc_name [10:27:46]save OK [10:27:46]Clear old archive folders... [10:27:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:27:46]tlvbuf is B6F47230 [10:27:46]SAM_PROTO_ClearQueue [10:27:46]wFMCommunicate request_size=4 [10:27:46]MH_SAM_APDU [10:27:46]CAPDU: 80 09 00 00 [10:27:46]Write to MH i2c: E2 08 00 F2 08 80 09 00 00 00 00 00 00 6C [10:27:46]Write i2c OK [10:27:46]MH_I2C_Read... [10:27:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:27:46]Read from MH i2c: E2 [10:27:46]MH_I2C_Read... [10:27:46]Read from MH i2c: E2 03 00 [10:27:46]MH_I2C_Read... [10:27:46]Read from MH i2c: E2 03 00 F2 08 00 90 00 6E [10:27:46]RAPDU: 90 00 [10:27:46]wFMCommunicate OK [10:27:46]SAM_PROTO_ClearQueue done [10:27:46]KKMCreateOFDPacket [10:27:46]OFDProtocolAddRootSTLVToBuf [10:27:46]FM_MakeSignedData [10:27:46]FM_MakeSignedData [10:27:46]SAM_PROTO_SignData [10:27:46]wFMCommunicate request_size=4 [10:27:46]MH_SAM_APDU [10:27:46]CAPDU: 80 0D 01 02 [10:27:46]Write to MH i2c: E2 08 00 F3 08 80 0D 01 02 00 00 00 00 74 [10:27:46]Write i2c OK [10:27:46]MH_I2C_Read... [10:27:46]Read from MH i2c: E2 [10:27:46]MH_I2C_Read... [10:27:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:27:46]Read from MH i2c: E2 03 00 [10:27:46]MH_I2C_Read... [10:27:46]Read from MH i2c: E2 03 00 F3 08 00 90 00 6F [10:27:46]RAPDU: 90 00 [10:27:46]wFMCommunicate OK [10:27:46]wFMCommunicate request_size=255 [10:27:46]MH_SAM_APDU [10:27:46]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 78 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 71 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 5F 00 00 00 00 07 04 06 00 70 82 03 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 A2 DF 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 75 07 01 00 35 04 06 00 71 11 20 75 [10:27:46]Write to MH i2c: E2 02 01 F4 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 46 78 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 71 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 5F 00 00 00 00 07 04 06 00 70 82 03 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 A2 DF 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 75 07 01 00 35 04 06 00 71 11 20 75 00 00 D2 [10:27:46]Write i2c OK [10:27:46]MH_I2C_Read... [10:27:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:46]Read from MH i2c: E2 [10:27:46]MH_I2C_Read... [10:27:46]Read from MH i2c: E2 03 00 [10:27:46]MH_I2C_Read... [10:27:46]Read from MH i2c: E2 03 00 F4 08 00 90 00 70 [10:27:46]RAPDU: 90 00 [10:27:46]wFMCommunicate OK [10:27:46]wFMCommunicate request_size=7 [10:27:46]MH_SAM_APDU [10:27:46]CAPDU: 80 0D 02 02 02 94 D2 [10:27:46]Write to MH i2c: E2 0A 00 F5 08 80 0D 02 02 02 00 94 D2 00 00 E1 [10:27:46]Write i2c OK [10:27:46]MH_I2C_Read... [10:27:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:47]Read from MH i2c: E2 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: E2 03 00 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: E2 03 00 F5 08 00 90 00 71 [10:27:47]RAPDU: 90 00 [10:27:47]wFMCommunicate OK [10:27:47]wFMCommunicate request_size=4 [10:27:47]MH_SAM_APDU [10:27:47]CAPDU: 80 0D 03 02 [10:27:47]Write to MH i2c: E2 08 00 F6 08 80 0D 03 02 00 00 00 00 79 [10:27:47]Write i2c OK [10:27:47]MH_I2C_Read... [10:27:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:27:47]Read from MH i2c: E2 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: E2 0B 00 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: E2 0B 00 F6 08 00 44 07 EE 28 D1 39 D0 98 90 00 4D [10:27:47]RAPDU: 44 07 EE 28 D1 39 D0 98 90 00 [10:27:47]wFMCommunicate OK [10:27:47]SAM_PROTO_SignData done [10:27:47]FM_MakeSignedData done [10:27:47]CreateOFDProtocolMessage [10:27:47]wFMCommunicate request_size=4 [10:27:47]MH_SAM_APDU [10:27:47]CAPDU: 80 11 00 00 [10:27:47]Write to MH i2c: E2 08 00 F7 08 80 11 00 00 00 00 00 00 79 [10:27:47]Write i2c OK [10:27:47]MH_I2C_Read... [10:27:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:47]Read from MH i2c: E2 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: E2 17 00 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: E2 17 00 F7 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 CF [10:27:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:27:47]wFMCommunicate OK [10:27:47]CreateOFDProtocolMessage done [10:27:47]OFDSenderStorePacket 67445 [10:27:47]StoreOFDPacket docnum=67445 [10:27:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 29 C9 04 01 FB 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 46 78 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 71 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 5F 00 00 00 00 07 04 06 00 70 82 03 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 A2 DF 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 75 07 01 00 35 04 06 00 71 11 20 75 94 D2 44 07 EE 28 D1 39 D0 98 [10:27:47]CheckFolder [10:27:47]dirname=/storage/ofd_packets [10:27:47]CheckFolder done [10:27:47]ProducePacketName [10:27:47]name=ofd_packets/00067445 [10:27:47]NVStorageSaveData ofd_packets/00067445 [10:27:47]File name is /storage/ofd_packets/00067445 [10:27:47]Write 298 bytes [10:27:47]NVStorageSaveData done [10:27:47]OFDSenderStorePacket done [10:27:47]KKMCreateOFDPacket done [10:27:47]NVStorageSaveData kkm_last_timestamp [10:27:47]File name is /storage/kkm_last_timestamp [10:27:47]Write 4 bytes [10:27:47]NVStorageSaveData done [10:27:47]ExternCall_PrintAddStr [10:27:47]wPrintStart [10:27:47]Write to MH i2c: 01 00 00 F8 08 00 [10:27:47]Write i2c OK [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: 01 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: 01 07 00 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: 01 07 00 F8 08 00 00 00 00 00 FF 0F 15 [10:27:47]RasterBufferAndPrint [10:27:47]line Счет N : (1)507471 [10:27:47]line ИНН: 02508201610067 [10:27:47]line Контрольно-Кассовый Чек [10:27:47]line ПРОДАЖА [10:27:47]line ТРК (МРК, ГНК) : 21 [10:27:47]line Товар: 2710194210 [10:27:47]line ДТ-К-5 [10:27:47]line 30.790 * 74.70 [10:27:47]line = 2300.01 [10:27:47]line НДС 12% НСП 1% [10:27:47]line > о реализуемом товаре [10:27:47]line ОКРУГЛЕНИЕ: -0.01 [10:27:47]line ИТОГО: 2300.00 [10:27:47]line Внесено: 2300.00 [10:27:47]line СДАЧА: 0.00 [10:27:47]line НСП 1% : 20.35 [10:27:47]line НДС 12% : 244.25 [10:27:47]line Наличными: 2300.00 [10:27:47]line Безнал.: 0.00 [10:27:47]line Место: АЗС № 91 "Партнер Нефть" [10:27:47]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [10:27:47]line СНО: Общий режим [10:27:47]line Чек 43 16.05.2024 10:27 [10:27:47]line Смена: 357 ФФД: 1.0 [10:27:47]line ЗНМ: 0300000119 [10:27:47]line РНМ: 0000000000091845 [10:27:47]line Версия ККМ: 001 [10:27:47]line ФМ: 0000000000871829 [10:27:47]line ФД: 67445 [10:27:47]line ФПД: 124318372959442 [10:27:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T102746&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67445&fm=124318372959442&tin=02508201610067®Number=0000000000091845&sum=230000 [10:27:47]OFD Sender: Processing packet 67445 [packets to send 35, broken 34] [10:27:47]ProducePacketName [10:27:47]name=ofd_packets/00067445 [10:27:47]OFD Sender: To server: pG, [10:27:47]CommunicateWithHost lk.salyk.kg:30040 [10:27:47]ConnectInit lk.salyk.kg [10:27:47]written 0, free lines is 4095 [10:27:47]Connected sock=10 [10:27: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 38 32 39 0C 01 00 00 29 C9 04 01 FB 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 46 78 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 71 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 5F 00 00 00 00 07 04 06 00 70 82 03 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 A2 DF 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 75 07 01 00 35 04 06 00 71 11 20 75 94 D2 44 07 EE 28 D1 39 D0 98 [10:27:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 73 C6 47 00 A5 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 38 32 39 10 04 04 00 75 07 01 00 F4 03 04 00 7D 87 45 66 B6 04 01 00 00 EE 93 F1 4E E3 84 19 14 [10:27:47]CommunicateWithHost err = 0 [10:27:47]CheckOFDResponse [10:27:47]1017 (14) - 77093643461234 [10:27:47]1041 (16) - 0000000000871829 [10:27:47]1040 (4) - 67445 [10:27:47]1012 (4) - 16.05.2024 04:11 [10:27:47]1206 (1) - 0 [10:27:47]OFD Sender: Remove packet 67445 [10:27:47]ProducePacketName [10:27:47]name=ofd_packets/00067445 [10:27:47]NVStorageDeleteData [10:27:47]Write to MH i2c: 01 00 00 22 09 2B [10:27:47]Write i2c OK [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: 01 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: 01 07 00 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: 01 07 00 22 09 00 00 00 00 00 D9 0C 17 [10:27:47]RasterBufferAndPrint [10:27:47]line [10:27:47]line [10:27:47]line [10:27:47]line [10:27:47]line [10:27:47]written 0, free lines is 3295 [10:27:47]MH_Cut [10:27:47]Write to MH i2c: D1 01 00 29 09 01 04 [10:27:47]Write i2c OK [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: D1 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: D1 01 00 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: D1 01 00 29 09 00 03 [10:27:47]Write to MH i2c: 01 00 00 2A 09 33 [10:27:47]Write i2c OK [10:27:47]MH_I2C_Read... [10:27:48]OFD Sender: No OFD packet to send [10:27:48]*** Cut start [10:27:48]*** Purtial cut [10:27:48]*** Stage 1: CUTSNS_PIN = 1 [10:27:49]Read from MH i2c: 01 [10:27:49]MH_I2C_Read... [10:27:49]*** Stop cut motor [10:27:49]*** Cut end [10:27:49]Read from MH i2c: 01 07 00 [10:27:49]MH_I2C_Read... [10:27:49]Read from MH i2c: 01 07 00 2A 09 00 00 00 00 00 FF 0F 48 [10:27:49]process_action close_receipt done [10:27:49]requested_data is exist [10:27:49]produce_requested_data [10:27:49]requested_item fm.sn is exist - process it [10:27:49]wFMCommunicate request_size=4 [10:27:49]MH_SAM_APDU [10:27:49]CAPDU: 80 11 00 00 [10:27:49]Write to MH i2c: E2 08 00 2B 09 80 11 00 00 00 00 00 00 AE [10:27:49]Write i2c OK [10:27:49]MH_I2C_Read... [10:27:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:49]Read from MH i2c: E2 [10:27:49]MH_I2C_Read... [10:27:49]Read from MH i2c: E2 17 00 [10:27:49]MH_I2C_Read... [10:27:49]Read from MH i2c: E2 17 00 2B 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 04 [10:27:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:27:49]wFMCommunicate OK [10:27:49]requested_item fd.num is exist - process it [10:27:49]SAM_PROTO_GetFieldsCounters [10:27:49]wFMCommunicate request_size=4 [10:27:49]MH_SAM_APDU [10:27:49]CAPDU: 80 13 00 00 [10:27:49]Write to MH i2c: E2 08 00 2C 09 80 13 00 00 00 00 00 00 B1 [10:27:49]Write i2c OK [10:27:49]MH_I2C_Read... [10:27:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:27:49]Read from MH i2c: E2 [10:27:49]MH_I2C_Read... [10:27:49]Read from MH i2c: E2 62 00 [10:27:49]MH_I2C_Read... [10:27:49]Read from MH i2c: E2 62 00 2C 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 75 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [10:27: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 75 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:27:49]wFMCommunicate OK [10:27:49]SAM_PROTO_GetFieldsCounters done [10:27:49]requested_item shift.num is exist - process it [10:27:49]requested_item shift.opened is exist - process it [10:27:49]req_shift_opened [10:27:49]FM_GetShiftState [10:27:49]SAM_PROTO_GetShiftState [10:27:49]wFMCommunicate request_size=4 [10:27:49]MH_SAM_APDU [10:27:49]CAPDU: 80 13 01 00 [10:27:49]Write to MH i2c: E2 08 00 2D 09 80 13 01 00 00 00 00 00 B3 [10:27:49]Write i2c OK [10:27:49]MH_I2C_Read... [10:27:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:49]Read from MH i2c: E2 [10:27:49]MH_I2C_Read... [10:27:49]Read from MH i2c: E2 0E 00 [10:27:49]MH_I2C_Read... [10:27:49]Read from MH i2c: E2 0E 00 2D 09 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 5F [10:27:49]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [10:27:49]wFMCommunicate OK [10:27:49]SAM_PROTO_GetShiftState done [10:27:49]FM_GetShiftState done [10:27:49]req_shift_opened done [10:27:49]requested_item shift.open_date is exist - process it [10:27:49]req_shift_open_date [10:27:49]req_shift_open_date done [10:27:49]produce_requested_data done [10:27:49]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67445,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [10:27:49]process_action_free close_receipt [10:27:49]json_value_free [10:27:49]json_value_free done [10:27:49]process_json_proto returns [10:27:49]Send response to host [10:27:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67445,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [10:27:49]free response buf [10:27:49]execute_script done [10:27:49]execute_script returns [10:27:49]free content buf [10:27:49]Sock 8.Close socket [10:27:49]Sock 8.Thread stoped [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:33]OFD Sender: No OFD packet to send [10:28:38]OFD Sender: No OFD packet to send [10:28:43]OFD Sender: No OFD packet to send [10:28:48]OFD Sender: No OFD packet to send [10:28:53]OFD Sender: No OFD packet to send [10:28:58]OFD Sender: No OFD packet to send [10:29:03]OFD Sender: No OFD packet to send [10:29:08]OFD Sender: No OFD packet to send [10:29:13]OFD Sender: No OFD packet to send [10:29:18]OFD Sender: No OFD packet to send [10:29:23]OFD Sender: No OFD packet to send [10:29:28]OFD Sender: No OFD packet to send [10:29:33]OFD Sender: No OFD packet to send [10:29:38]OFD Sender: No OFD packet to send [10:29:43]OFD Sender: No OFD packet to send [10:29:48]OFD Sender: No OFD packet to send [10:29:53]OFD Sender: No OFD packet to send [10:29:58]OFD Sender: No OFD packet to send [10:30:03]OFD Sender: No OFD packet to send [10:30:08]OFD Sender: No OFD packet to send [10:30:13]OFD Sender: No OFD packet to send [10:30:18]OFD Sender: No OFD packet to send [10:30:23]OFD Sender: No OFD packet to send [10:30:28]OFD Sender: No OFD packet to send [10:30:33]OFD Sender: No OFD packet to send [10:30:38]OFD Sender: No OFD packet to send [10:30:43]OFD Sender: No OFD packet to send [10:30:48]OFD Sender: No OFD packet to send [10:30:53]OFD Sender: No OFD packet to send [10:30:58]OFD Sender: No OFD packet to send [10:31:03]OFD Sender: No OFD packet to send [10:31:08]OFD Sender: No OFD packet to send [10:31:13]OFD Sender: No OFD packet to send [10:31:18]OFD Sender: No OFD packet to send [10:31:23]OFD Sender: No OFD packet to send [10:31:28]OFD Sender: No OFD packet to send [10:31:33]OFD Sender: No OFD packet to send [10:31:38]OFD Sender: No OFD packet to send [10:31:43]OFD Sender: No OFD packet to send [10:31:48]OFD Sender: No OFD packet to send [10:31:53]OFD Sender: No OFD packet to send [10:31:58]OFD Sender: No OFD packet to send [10:32:03]OFD Sender: No OFD packet to send [10:32:08]OFD Sender: No OFD packet to send [10:32:13]OFD Sender: No OFD packet to send [10:32:18]OFD Sender: No OFD packet to send [10:32:23]OFD Sender: No OFD packet to send [10:32:28]OFD Sender: No OFD packet to send [10:32:33]OFD Sender: No OFD packet to send [10:32:38]OFD Sender: No OFD packet to send [10:32:43]OFD Sender: No OFD packet to send [10:32:48]OFD Sender: No OFD packet to send [10:32:53]OFD Sender: No OFD packet to send [10:32:58]OFD Sender: No OFD packet to send [10:33:03]OFD Sender: No OFD packet to send [10:33:08]OFD Sender: No OFD packet to send [10:33:13]OFD Sender: No OFD packet to send [10:33:18]OFD Sender: No OFD packet to send [10:33:23]OFD Sender: No OFD packet to send [10:33:28]OFD Sender: No OFD packet to send [10:33:33]OFD Sender: No OFD packet to send [10:33:38]OFD Sender: No OFD packet to send [10:33:43]OFD Sender: No OFD packet to send [10:33:46]accept exits with 9 [10:33:46]New connection [10:33:46]New thread 3067604324 created [10:33:46]Thread 3067460964 joined [10:33:46]Waiting for new connection... [10:33:46] Sock 9.Parse request [10:33:46]Sock 9.Check first char [10:33:46]Sock 9.First char is OK [10:33:46]request: POST /json_proto HTTP/1.0 [10:33:46]Method: POST [10:33:46]URL: /json_proto [10:33:46]Method is POST - this is cgi request [10:33:46]url: /json_proto [10:33:46]query_string will be loaded in cgi processing [10:33:46]execute_cgi json_proto POST (null) [10:33:46]execute_cgi path=json_proto method=POST [10:33:46]POST find Content-Length [10:33:46]Host: 172.17.41.195:8080 [10:33:46]Content-Length: 1209 [10:33:46]Content-Type: application/json [10:33:46] [10:33:46]POST finish read [10:33:46]Found Content-Length = 1209 [10:33:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507472\u000A16.05.2024 10:16\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.390 x 74.70\u000A\u0418\u0422\u041E\u0413: 1000.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:46]execute_script... [10:33:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507472\u000A16.05.2024 10:16\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.390 x 74.70\u000A\u0418\u0422\u041E\u0413: 1000.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:46]POST & json_proto [10:33:46]process_json_proto [10:33:46]json parsed OK: [10:33:46]protocol is kg_v1.0 [10:33:46]action value=print_text [10:33:46]process_action print_text [10:33:46]cmd_print_text [10:33:46]ExternCall_PrintAddStr [10:33:46]wPrintStart [10:33:46]Write to MH i2c: 01 00 00 2E 09 37 [10:33:46]Write i2c OK [10:33:46]MH_I2C_Read... [10:33:46]Read from MH i2c: 01 [10:33:46]MH_I2C_Read... [10:33:46]Read from MH i2c: 01 07 00 [10:33:46]MH_I2C_Read... [10:33:46]Read from MH i2c: 01 07 00 2E 09 00 00 00 00 00 FF 0F 4C [10:33:46]RasterBufferAndPrint [10:33:46]line *****ТОВАРНЫЙ ЧЕК***** [10:33:46]line АЗС-91 [10:33:46]line Партнер нефть [10:33:46]line 02508201610067 [10:33:46]line Кассир : Пайзулдаева А. [10:33:46]line Счет N : (1)507472 [10:33:46]line 16.05.2024 10:16 [10:33:46]line ПРОДАЖА [10:33:46]line ТРК (МРК, ГНК): 31 [10:33:46]line Вид ГСМ : 2710194210 [10:33:46]line ДТ-К-5 [10:33:46]line 13.390 x 74.70 [10:33:46]line ИТОГ: 1000.23 [10:33:46]line Тип оплаты: Талоны: Топливная Карта [10:33:46]line 02750 [10:33:46]line ______________________ [10:33:46]line (подпись) [10:33:46]written 0, free lines is 4095 [10:33:46]Write to MH i2c: 01 00 00 42 09 4B [10:33:46]Write i2c OK [10:33:46]MH_I2C_Read... [10:33:46]Read from MH i2c: 01 [10:33:46]MH_I2C_Read... [10:33:46]Read from MH i2c: 01 07 00 [10:33:46]MH_I2C_Read... [10:33:46]Read from MH i2c: 01 07 00 42 09 00 00 00 00 00 10 0E 70 [10:33:46]RasterBufferAndPrint [10:33:46]line [10:33:46]line [10:33:46]line [10:33:46]line [10:33:46]line [10:33:46]written 0, free lines is 3601 [10:33:46]MH_Cut [10:33:46]Write to MH i2c: D1 01 00 49 09 01 24 [10:33:46]Write i2c OK [10:33:46]MH_I2C_Read... [10:33:46]Read from MH i2c: D1 [10:33:46]MH_I2C_Read... [10:33:46]Read from MH i2c: D1 01 00 [10:33:46]MH_I2C_Read... [10:33:46]Read from MH i2c: D1 01 00 49 09 00 23 [10:33:46]Write to MH i2c: 01 00 00 4A 09 53 [10:33:46]Write i2c OK [10:33:46]MH_I2C_Read... [10:33:47]*** Cut start [10:33:47]*** Purtial cut [10:33:47]*** CUTSNS_PIN = 0 [10:33:47]*** Stage 1: CUTSNS_PIN = 1 [10:33:48]OFD Sender: No OFD packet to send [10:33:49]Read from MH i2c: 01 [10:33:49]MH_I2C_Read... [10:33:49]*** Stop cut motor [10:33:49]*** Cut end [10:33:49]Read from MH i2c: 01 07 00 [10:33:49]MH_I2C_Read... [10:33:49]Read from MH i2c: 01 07 00 4A 09 00 00 00 00 00 FF 0F 68 [10:33:49]process_action print_text done [10:33:49]requested_data is exist [10:33:49]produce_requested_data [10:33:49]requested_item fm.sn is exist - process it [10:33:49]wFMCommunicate request_size=4 [10:33:49]MH_SAM_APDU [10:33:49]CAPDU: 80 11 00 00 [10:33:49]Write to MH i2c: E2 08 00 4B 09 80 11 00 00 00 00 00 00 CE [10:33:49]Write i2c OK [10:33:49]MH_I2C_Read... [10:33:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:49]Read from MH i2c: E2 [10:33:49]MH_I2C_Read... [10:33:49]Read from MH i2c: E2 17 00 [10:33:49]MH_I2C_Read... [10:33:49]Read from MH i2c: E2 17 00 4B 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 24 [10:33:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:33:49]wFMCommunicate OK [10:33:49]requested_item fd.num is exist - process it [10:33:49]SAM_PROTO_GetFieldsCounters [10:33:49]wFMCommunicate request_size=4 [10:33:49]MH_SAM_APDU [10:33:49]CAPDU: 80 13 00 00 [10:33:49]Write to MH i2c: E2 08 00 4C 09 80 13 00 00 00 00 00 00 D1 [10:33:49]Write i2c OK [10:33:49]MH_I2C_Read... [10:33:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:33:49]Read from MH i2c: E2 [10:33:49]MH_I2C_Read... [10:33:49]Read from MH i2c: E2 62 00 [10:33:49]MH_I2C_Read... [10:33:49]Read from MH i2c: E2 62 00 4C 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 75 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [10:33: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 75 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:33:49]wFMCommunicate OK [10:33:49]SAM_PROTO_GetFieldsCounters done [10:33:49]requested_item shift.num is exist - process it [10:33:49]requested_item shift.opened is exist - process it [10:33:49]req_shift_opened [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 4D 09 80 13 01 00 00 00 00 00 D3 [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 4D 09 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 7F [10:33:49]RAPDU: 09 00 01 A4 51 45 66 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]req_shift_opened done [10:33:49]requested_item shift.open_date is exist - process it [10:33:49]req_shift_open_date [10:33:49]req_shift_open_date done [10:33:49]produce_requested_data done [10:33:49]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67445,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [10:33:49]process_action_free print_text [10:33:49]json_value_free [10:33:49]json_value_free done [10:33:49]process_json_proto returns [10:33:49]Send response to host [10:33:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67445,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [10:33:49]free response buf [10:33:49]execute_script done [10:33:49]execute_script returns [10:33:49]free content buf [10:33:49]Sock 9.Close socket [10:33:49]Sock 9.Thread stoped [10:33:53]OFD Sender: No OFD packet to send [10:33:58]OFD Sender: No OFD packet to send [10:34:03]OFD Sender: No OFD packet to send [10:34:08]OFD Sender: No OFD packet to send [10:34:13]OFD Sender: No OFD packet to send [10:34:18]OFD Sender: No OFD packet to send [10:34:23]OFD Sender: No OFD packet to send [10:34:28]OFD Sender: No OFD packet to send [10:34:33]OFD Sender: No OFD packet to send [10:34:38]OFD Sender: No OFD packet to send [10:34:43]OFD Sender: No OFD packet to send [10:34:48]OFD Sender: No OFD packet to send [10:34:53]OFD Sender: No OFD packet to send [10:34:58]OFD Sender: No OFD packet to send [10:35:03]OFD Sender: No OFD packet to send [10:35:08]OFD Sender: No OFD packet to send [10:35:13]OFD Sender: No OFD packet to send [10:35:18]OFD Sender: No OFD packet to send [10:35:23]OFD Sender: No OFD packet to send [10:35:28]OFD Sender: No OFD packet to send [10:35:33]OFD Sender: No OFD packet to send [10:35:38]OFD Sender: No OFD packet to send [10:35:43]OFD Sender: No OFD packet to send [10:35:48]OFD Sender: No OFD packet to send [10:35:53]OFD Sender: No OFD packet to send [10:35:58]OFD Sender: No OFD packet to send [10:36:03]OFD Sender: No OFD packet to send [10:36:08]OFD Sender: No OFD packet to send [10:36:13]OFD Sender: No OFD packet to send [10:36:18]OFD Sender: No OFD packet to send [10:36:23]OFD Sender: No OFD packet to send [10:36:28]OFD Sender: No OFD packet to send [10:36:29]accept exits with 8 [10:36:29]New connection [10:36:29]New thread 3067460964 created [10:36:29]Thread 3067604324 joined [10:36:29]Waiting for new connection... [10:36:29] Sock 8.Parse request [10:36:29]Sock 8.Check first char [10:36:29]Sock 8.First char is OK [10:36:29]request: POST /json_proto HTTP/1.0 [10:36:29]Method: POST [10:36:29]URL: /json_proto [10:36:29]Method is POST - this is cgi request [10:36:29]url: /json_proto [10:36:29]query_string will be loaded in cgi processing [10:36:29]execute_cgi json_proto POST (null) [10:36:29]execute_cgi path=json_proto method=POST [10:36:29]POST find Content-Length [10:36:29]Host: 172.17.41.195:8080 [10:36:29]Content-Length: 682 [10:36:29]Content-Type: application/json [10:36:29] [10:36:29]POST finish read [10:36:29]Found Content-Length = 682 [10:36:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507473", "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.80, "quantity" : 14.980, "sum" : 1000.66, "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:36:29]execute_script... [10:36: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)507473", "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.80, "quantity" : 14.980, "sum" : 1000.66, "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:36:29]POST & json_proto [10:36:29]process_json_proto [10:36:29]json parsed OK: [10:36:29]protocol is kg_v1.0 [10:36:29]action value=close_receipt [10:36:29]process_action close_receipt [10:36:29]cmd_close_receipt [10:36:29]MH_GetDate [10:36:29]Write to MH i2c: F0 00 00 4E 09 46 [10:36:29]Write i2c OK [10:36:29]MH_I2C_Read... [10:36:29]Read from MH i2c: F0 [10:36:29]MH_I2C_Read... [10:36:29]Read from MH i2c: F0 09 00 [10:36:29]MH_I2C_Read... [10:36:29]Read from MH i2c: F0 09 00 4E 09 00 AE E1 45 66 FC 21 6F 64 79 [10:36:29]GetLastDocTimeStamp 1715855266 [10:36:29]current date 1715855790 [10:36:29]FM_GetShiftState [10:36:29]SAM_PROTO_GetShiftState [10:36:29]wFMCommunicate request_size=4 [10:36:29]MH_SAM_APDU [10:36:29]CAPDU: 80 13 01 00 [10:36:29]Write to MH i2c: E2 08 00 4F 09 80 13 01 00 00 00 00 00 D5 [10:36:29]Write i2c OK [10:36:29]MH_I2C_Read... [10:36:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:29]Read from MH i2c: E2 [10:36:29]MH_I2C_Read... [10:36:29]Read from MH i2c: E2 0E 00 [10:36:29]MH_I2C_Read... [10:36:29]Read from MH i2c: E2 0E 00 4F 09 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 81 [10:36:29]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [10:36:29]wFMCommunicate OK [10:36:29]SAM_PROTO_GetShiftState done [10:36:29]FM_GetShiftState done [10:36:29]opened in 1715818916 [10:36:29]opened+sec_in_day 1715905316 [10:36:29]quantity*price = 100066 [10:36:29]sum+1 = 100067 [10:36:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 44 16.05.2024 10:36 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67446 ФПД: 166264265148564 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T103630&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67446&fm=166264265148564&tin=02508201610067®Number=0000000000091845&sum=100000 [10:36:30]StoreToDocumentArchive [10:36:30]shift 357 fd 67446 [10:36:30]save to /storage/0357/doc_00067446 [10:36:30]save last doc name /storage/0357/doc_00067446 to /storage/kkm_last_doc_name [10:36:30]save OK [10:36:30]Clear old archive folders... [10:36:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:36:30]tlvbuf is 00C9C790 [10:36:30]SAM_PROTO_ClearQueue [10:36:30]wFMCommunicate request_size=4 [10:36:30]MH_SAM_APDU [10:36:30]CAPDU: 80 09 00 00 [10:36:30]Write to MH i2c: E2 08 00 5C 09 80 09 00 00 00 00 00 00 D7 [10:36:30]Write i2c OK [10:36:30]MH_I2C_Read... [10:36:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:36:30]Read from MH i2c: E2 [10:36:30]MH_I2C_Read... [10:36:30]Read from MH i2c: E2 03 00 [10:36:30]MH_I2C_Read... [10:36:30]Read from MH i2c: E2 03 00 5C 09 00 90 00 D9 [10:36:30]RAPDU: 90 00 [10:36:30]wFMCommunicate OK [10:36:30]SAM_PROTO_ClearQueue done [10:36:30]KKMCreateOFDPacket [10:36:30]OFDProtocolAddRootSTLVToBuf [10:36:30]FM_MakeSignedData [10:36:30]FM_MakeSignedData [10:36:30]SAM_PROTO_SignData [10:36:30]wFMCommunicate request_size=4 [10:36:30]MH_SAM_APDU [10:36:30]CAPDU: 80 0D 01 02 [10:36:30]Write to MH i2c: E2 08 00 5D 09 80 0D 01 02 00 00 00 00 DF [10:36:30]Write i2c OK [10:36:30]MH_I2C_Read... [10:36:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:36:30]Read from MH i2c: E2 [10:36:30]MH_I2C_Read... [10:36:30]Read from MH i2c: E2 03 00 [10:36:30]MH_I2C_Read... [10:36:30]Read from MH i2c: E2 03 00 5D 09 00 90 00 DA [10:36:30]RAPDU: 90 00 [10:36:30]wFMCommunicate OK [10:36:30]wFMCommunicate request_size=255 [10:36:30]MH_SAM_APDU [10:36: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 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 AE E1 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 76 07 01 00 35 04 06 00 97 [10:36:30]Write to MH i2c: E2 02 01 5E 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 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 AE E1 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 76 07 01 00 35 04 06 00 97 00 00 99 [10:36:30]Write i2c OK [10:36:30]MH_I2C_Read... [10:36:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:30]Read from MH i2c: E2 [10:36:30]MH_I2C_Read... [10:36:30]Read from MH i2c: E2 03 00 [10:36:30]MH_I2C_Read... [10:36:30]Read from MH i2c: E2 03 00 5E 09 00 90 00 DB [10:36:30]RAPDU: 90 00 [10:36:30]wFMCommunicate OK [10:36:30]wFMCommunicate request_size=10 [10:36:30]MH_SAM_APDU [10:36:30]CAPDU: 80 0D 02 02 05 37 6A 76 88 94 [10:36:30]Write to MH i2c: E2 0D 00 5F 09 80 0D 02 02 05 00 37 6A 76 88 94 00 00 1F [10:36:30]Write i2c OK [10:36:30]MH_I2C_Read... [10:36:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:30]Read from MH i2c: E2 [10:36:30]MH_I2C_Read... [10:36:30]Read from MH i2c: E2 03 00 [10:36:30]MH_I2C_Read... [10:36:30]Read from MH i2c: E2 03 00 5F 09 00 90 00 DC [10:36:30]RAPDU: 90 00 [10:36:30]wFMCommunicate OK [10:36:30]wFMCommunicate request_size=4 [10:36:30]MH_SAM_APDU [10:36:30]CAPDU: 80 0D 03 02 [10:36:30]Write to MH i2c: E2 08 00 60 09 80 0D 03 02 00 00 00 00 E4 [10:36:30]Write i2c OK [10:36:30]MH_I2C_Read... [10:36:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:36:31]Read from MH i2c: E2 [10:36:31]MH_I2C_Read... [10:36:31]Read from MH i2c: E2 0B 00 [10:36:31]MH_I2C_Read... [10:36:31]Read from MH i2c: E2 0B 00 60 09 00 B0 16 70 6D F0 0F 26 B5 90 00 62 [10:36:31]RAPDU: B0 16 70 6D F0 0F 26 B5 90 00 [10:36:31]wFMCommunicate OK [10:36:31]SAM_PROTO_SignData done [10:36:31]FM_MakeSignedData done [10:36:31]CreateOFDProtocolMessage [10:36:31]wFMCommunicate request_size=4 [10:36:31]MH_SAM_APDU [10:36:31]CAPDU: 80 11 00 00 [10:36:31]Write to MH i2c: E2 08 00 61 09 80 11 00 00 00 00 00 00 E4 [10:36:31]Write i2c OK [10:36:31]MH_I2C_Read... [10:36:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:31]Read from MH i2c: E2 [10:36:31]MH_I2C_Read... [10:36:31]Read from MH i2c: E2 17 00 [10:36:31]MH_I2C_Read... [10:36:31]Read from MH i2c: E2 17 00 61 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3A [10:36:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:36:31]wFMCommunicate OK [10:36:31]CreateOFDProtocolMessage done [10:36:31]OFDSenderStorePacket 67446 [10:36:31]StoreOFDPacket docnum=67446 [10:36:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 4E C1 07 01 CD 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 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 AE E1 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 76 07 01 00 35 04 06 00 97 37 6A 76 88 94 B0 16 70 6D F0 0F 26 B5 [10:36:31]CheckFolder [10:36:31]dirname=/storage/ofd_packets [10:36:31]CheckFolder done [10:36:31]ProducePacketName [10:36:31]name=ofd_packets/00067446 [10:36:31]NVStorageSaveData ofd_packets/00067446 [10:36:31]File name is /storage/ofd_packets/00067446 [10:36:31]Write 301 bytes [10:36:31]NVStorageSaveData done [10:36:31]OFDSenderStorePacket done [10:36:31]KKMCreateOFDPacket done [10:36:31]NVStorageSaveData kkm_last_timestamp [10:36:31]File name is /storage/kkm_last_timestamp [10:36:31]Write 4 bytes [10:36:31]NVStorageSaveData done [10:36:31]ExternCall_PrintAddStr [10:36:31]wPrintStart [10:36:31]Write to MH i2c: 01 00 00 62 09 6B [10:36:31]Write i2c OK [10:36:31]MH_I2C_Read... [10:36:31]Read from MH i2c: 01 [10:36:31]MH_I2C_Read... [10:36:31]Read from MH i2c: 01 07 00 [10:36:31]MH_I2C_Read... [10:36:31]Read from MH i2c: 01 07 00 62 09 00 00 00 00 00 FF 0F 80 [10:36:31]RasterBufferAndPrint [10:36:31]line Счет N : (1)507473 [10:36:31]line ИНН: 02508201610067 [10:36:31]line Контрольно-Кассовый Чек [10:36:31]line ПРОДАЖА [10:36:31]line ТРК (МРК, ГНК) : 43 [10:36:31]line Товар: 2710124130 [10:36:31]line Аи-92-К-5 [10:36:31]line 14.980 * 66.80 [10:36:31]line = 1000.66 [10:36:31]line НДС 12% НСП 1% [10:36:31]line > о реализуемом товаре [10:36:31]line ОКРУГЛЕНИЕ: -0.66 [10:36:31]line ИТОГО: 1000.00 [10:36:31]line Внесено: 1000.00 [10:36:31]line СДАЧА: 0.00 [10:36:31]line НСП 1% : 8.85 [10:36:31]line НДС 12% : 106.26 [10:36:31]line Наличными: 1000.00 [10:36:31]line Безнал.: 0.00 [10:36:31]line Место: АЗС № 91 "Партнер Нефть" [10:36:31]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [10:36:31]line СНО: Общий режим [10:36:31]line Чек 44 16.05.2024 10:36 [10:36:31]line Смена: 357 ФФД: 1.0 [10:36:31]line ЗНМ: 0300000119 [10:36:31]line РНМ: 0000000000091845 [10:36:31]line Версия ККМ: 001 [10:36:31]line ФМ: 0000000000871829 [10:36:31]line ФД: 67446 [10:36:31]line ФПД: 166264265148564 [10:36:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T103630&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67446&fm=166264265148564&tin=02508201610067®Number=0000000000091845&sum=100000 [10:36:31]written 0, free lines is 4095 [10:36:31]OFD Sender: Processing packet 67446 [packets to send 35, broken 34] [10:36:31]ProducePacketName [10:36:31]name=ofd_packets/00067446 [10:36:31]OFD Sender: To server: pG, [10:36:31]CommunicateWithHost lk.salyk.kg:30040 [10:36:31]ConnectInit lk.salyk.kg [10:36:31]Connected sock=11 [10:36: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 38 32 39 0F 01 00 00 4E C1 07 01 CD 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 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 AE E1 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 76 07 01 00 35 04 06 00 97 37 6A 76 88 94 B0 16 70 6D F0 0F 26 B5 [10:36:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 68 7B 47 00 89 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 38 32 39 10 04 04 00 76 07 01 00 F4 03 04 00 89 89 45 66 B6 04 01 00 00 B2 75 30 C3 C7 17 E3 E1 [10:36:31]CommunicateWithHost err = 0 [10:36:31]CheckOFDResponse [10:36:31]1017 (14) - 77093643461234 [10:36:31]1041 (16) - 0000000000871829 [10:36:31]1040 (4) - 67446 [10:36:31]1012 (4) - 16.05.2024 04:20 [10:36:31]1206 (1) - 0 [10:36:31]OFD Sender: Remove packet 67446 [10:36:31]ProducePacketName [10:36:31]name=ofd_packets/00067446 [10:36:31]NVStorageDeleteData [10:36:31]Write to MH i2c: 01 00 00 8C 09 95 [10:36:31]Write i2c OK [10:36:31]MH_I2C_Read... [10:36:31]Read from MH i2c: 01 [10:36:31]MH_I2C_Read... [10:36:31]Read from MH i2c: 01 07 00 [10:36:31]MH_I2C_Read... [10:36:31]Read from MH i2c: 01 07 00 8C 09 00 00 00 00 00 D8 0C 80 [10:36:31]RasterBufferAndPrint [10:36:31]line [10:36:31]line [10:36:31]line [10:36:31]line [10:36:31]line [10:36:31]written 0, free lines is 3293 [10:36:31]MH_Cut [10:36:31]Write to MH i2c: D1 01 00 93 09 01 6E [10:36:31]Write i2c OK [10:36:31]MH_I2C_Read... [10:36:31]Read from MH i2c: D1 [10:36:31]MH_I2C_Read... [10:36:31]Read from MH i2c: D1 01 00 [10:36:31]MH_I2C_Read... [10:36:31]Read from MH i2c: D1 01 00 93 09 00 6D [10:36:31]Write to MH i2c: 01 00 00 94 09 9D [10:36:31]Write i2c OK [10:36:31]MH_I2C_Read... [10:36:32]OFD Sender: No OFD packet to send [10:36:32]*** Cut start [10:36:32]*** Purtial cut [10:36:32]*** Stage 1: CUTSNS_PIN = 1 [10:36:32]Read from MH i2c: 01 [10:36:32]MH_I2C_Read... [10:36:32]*** Stop cut motor [10:36:33]*** Cut end [10:36:33]Read from MH i2c: 01 07 00 [10:36:33]MH_I2C_Read... [10:36:33]Read from MH i2c: 01 07 00 94 09 00 00 00 00 00 FF 0F B2 [10:36:33]process_action close_receipt done [10:36:33]requested_data is exist [10:36:33]produce_requested_data [10:36:33]requested_item fm.sn is exist - process it [10:36:33]wFMCommunicate request_size=4 [10:36:33]MH_SAM_APDU [10:36:33]CAPDU: 80 11 00 00 [10:36:33]Write to MH i2c: E2 08 00 95 09 80 11 00 00 00 00 00 00 18 [10:36:33]Write i2c OK [10:36:33]MH_I2C_Read... [10:36:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:33]Read from MH i2c: E2 [10:36:33]MH_I2C_Read... [10:36:33]Read from MH i2c: E2 17 00 [10:36:33]MH_I2C_Read... [10:36:33]Read from MH i2c: E2 17 00 95 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 6E [10:36:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:36:33]wFMCommunicate OK [10:36:33]requested_item fd.num is exist - process it [10:36:33]SAM_PROTO_GetFieldsCounters [10:36:33]wFMCommunicate request_size=4 [10:36:33]MH_SAM_APDU [10:36:33]CAPDU: 80 13 00 00 [10:36:33]Write to MH i2c: E2 08 00 96 09 80 13 00 00 00 00 00 00 1B [10:36:33]Write i2c OK [10:36:33]MH_I2C_Read... [10:36:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:33]Read from MH i2c: E2 [10:36:33]MH_I2C_Read... [10:36:33]Read from MH i2c: E2 62 00 [10:36:33]MH_I2C_Read... [10:36:33]Read from MH i2c: E2 62 00 96 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 76 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [10:36: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 76 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:36:33]wFMCommunicate OK [10:36:33]SAM_PROTO_GetFieldsCounters done [10:36:33]requested_item shift.num is exist - process it [10:36:33]requested_item shift.opened is exist - process it [10:36:33]req_shift_opened [10:36:33]FM_GetShiftState [10:36:33]SAM_PROTO_GetShiftState [10:36:33]wFMCommunicate request_size=4 [10:36:33]MH_SAM_APDU [10:36:33]CAPDU: 80 13 01 00 [10:36:33]Write to MH i2c: E2 08 00 97 09 80 13 01 00 00 00 00 00 1D [10:36:33]Write i2c OK [10:36:33]MH_I2C_Read... [10:36:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:33]Read from MH i2c: E2 [10:36:33]MH_I2C_Read... [10:36:33]Read from MH i2c: E2 0E 00 [10:36:33]MH_I2C_Read... [10:36:33]Read from MH i2c: E2 0E 00 97 09 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 C9 [10:36:33]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [10:36:33]wFMCommunicate OK [10:36:33]SAM_PROTO_GetShiftState done [10:36:33]FM_GetShiftState done [10:36:33]req_shift_opened done [10:36:33]requested_item shift.open_date is exist - process it [10:36:33]req_shift_open_date [10:36:33]req_shift_open_date done [10:36:33]produce_requested_data done [10:36:33]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67446,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [10:36:33]process_action_free close_receipt [10:36:33]json_value_free [10:36:33]json_value_free done [10:36:33]process_json_proto returns [10:36:33]Send response to host [10:36:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67446,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [10:36:33]free response buf [10:36:33]execute_script done [10:36:33]execute_script returns [10:36:33]free content buf [10:36:33]Sock 8.Close socket [10:36:33]Sock 8.Thread stoped [10:36:37]OFD Sender: No OFD packet to send [10:36:42]OFD Sender: No OFD packet to send [10:36:47]OFD Sender: No OFD packet to send [10:36:52]OFD Sender: No OFD packet to send [10:36:57]OFD Sender: No OFD packet to send [10:37:02]OFD Sender: No OFD packet to send [10:37:07]OFD Sender: No OFD packet to send [10:37:12]OFD Sender: No OFD packet to send [10:37:17]OFD Sender: No OFD packet to send [10:37:22]OFD Sender: No OFD packet to send [10:37:27]OFD Sender: No OFD packet to send [10:37:32]OFD Sender: No OFD packet to send [10:37:37]OFD Sender: No OFD packet to send [10:37:42]OFD Sender: No OFD packet to send [10:37:47]OFD Sender: No OFD packet to send [10:37:52]OFD Sender: No OFD packet to send [10:37:57]OFD Sender: No OFD packet to send [10:38:02]OFD Sender: No OFD packet to send [10:38:07]OFD Sender: No OFD packet to send [10:38:08]accept exits with 9 [10:38:08]New connection [10:38:08]New thread 3067604324 created [10:38:08]Thread 3067460964 joined [10:38:08]Waiting for new connection... [10:38:08] Sock 9.Parse request [10:38:08]Sock 9.Check first char [10:38:08]Sock 9.First char is OK [10:38:08]request: POST /json_proto HTTP/1.0 [10:38:08]Method: POST [10:38:08]URL: /json_proto [10:38:08]Method is POST - this is cgi request [10:38:08]url: /json_proto [10:38:08]query_string will be loaded in cgi processing [10:38:08]execute_cgi json_proto POST (null) [10:38:08]execute_cgi path=json_proto method=POST [10:38:08]POST find Content-Length [10:38:08]Host: 172.17.41.195:8080 [10:38:08]Content-Length: 675 [10:38:08]Content-Type: application/json [10:38:08] [10:38:08]POST finish read [10:38:08]Found Content-Length = 675 [10:38:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507474", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:38:08]execute_script... [10:38:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507474", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:38:08]POST & json_proto [10:38:08]process_json_proto [10:38:08]json parsed OK: [10:38:08]protocol is kg_v1.0 [10:38:08]action value=close_receipt [10:38:08]process_action close_receipt [10:38:08]cmd_close_receipt [10:38:08]MH_GetDate [10:38:08]Write to MH i2c: F0 00 00 98 09 90 [10:38:08]Write i2c OK [10:38:08]MH_I2C_Read... [10:38:08]Read from MH i2c: F0 [10:38:08]MH_I2C_Read... [10:38:08]Read from MH i2c: F0 09 00 [10:38:08]MH_I2C_Read... [10:38:08]Read from MH i2c: F0 09 00 98 09 00 11 E2 45 66 FC 21 6F 64 27 [10:38:08]GetLastDocTimeStamp 1715855790 [10:38:08]current date 1715855889 [10:38:08]FM_GetShiftState [10:38:08]SAM_PROTO_GetShiftState [10:38:08]wFMCommunicate request_size=4 [10:38:08]MH_SAM_APDU [10:38:08]CAPDU: 80 13 01 00 [10:38:08]Write to MH i2c: E2 08 00 99 09 80 13 01 00 00 00 00 00 1F [10:38:08]Write i2c OK [10:38:08]MH_I2C_Read... [10:38:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:08]Read from MH i2c: E2 [10:38:08]MH_I2C_Read... [10:38:08]Read from MH i2c: E2 0E 00 [10:38:08]MH_I2C_Read... [10:38:08]Read from MH i2c: E2 0E 00 99 09 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 CB [10:38:08]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [10:38:08]wFMCommunicate OK [10:38:08]SAM_PROTO_GetShiftState done [10:38:08]FM_GetShiftState done [10:38:08]opened in 1715818916 [10:38:08]opened+sec_in_day 1715905316 [10:38:08]quantity*price = 100005 [10:38:08]sum+1 = 100006 [10:38:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 45 16.05.2024 10:38 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67447 ФПД: 100716016970734 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T103809&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67447&fm=100716016970734&tin=02508201610067®Number=0000000000091845&sum=100000 [10:38:09]StoreToDocumentArchive [10:38:09]shift 357 fd 67447 [10:38:09]save to /storage/0357/doc_00067447 [10:38:09]save last doc name /storage/0357/doc_00067447 to /storage/kkm_last_doc_name [10:38:09]save OK [10:38:09]Clear old archive folders... [10:38:09]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:38:09]tlvbuf is 00C84BB0 [10:38:09]SAM_PROTO_ClearQueue [10:38:09]wFMCommunicate request_size=4 [10:38:09]MH_SAM_APDU [10:38:09]CAPDU: 80 09 00 00 [10:38:09]Write to MH i2c: E2 08 00 A6 09 80 09 00 00 00 00 00 00 21 [10:38:09]Write i2c OK [10:38:09]MH_I2C_Read... [10:38:09]Read from MH i2c: E2 [10:38:09]MH_I2C_Read... [10:38:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:38:09]Read from MH i2c: E2 03 00 [10:38:09]MH_I2C_Read... [10:38:09]Read from MH i2c: E2 03 00 A6 09 00 90 00 23 [10:38:09]RAPDU: 90 00 [10:38:09]wFMCommunicate OK [10:38:09]SAM_PROTO_ClearQueue done [10:38:09]KKMCreateOFDPacket [10:38:09]OFDProtocolAddRootSTLVToBuf [10:38:09]FM_MakeSignedData [10:38:09]FM_MakeSignedData [10:38:09]SAM_PROTO_SignData [10:38:09]wFMCommunicate request_size=4 [10:38:09]MH_SAM_APDU [10:38:09]CAPDU: 80 0D 01 02 [10:38:09]Write to MH i2c: E2 08 00 A7 09 80 0D 01 02 00 00 00 00 29 [10:38:09]Write i2c OK [10:38:09]MH_I2C_Read... [10:38:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:38:09]Read from MH i2c: E2 [10:38:09]MH_I2C_Read... [10:38:09]Read from MH i2c: E2 03 00 [10:38:09]MH_I2C_Read... [10:38:09]Read from MH i2c: E2 03 00 A7 09 00 90 00 24 [10:38:09]RAPDU: 90 00 [10:38:09]wFMCommunicate OK [10:38:09]wFMCommunicate request_size=255 [10:38:09]MH_SAM_APDU [10:38:09]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 11 E2 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 77 07 01 00 35 04 06 00 [10:38:09]Write to MH i2c: E2 02 01 A8 09 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 11 E2 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 77 07 01 00 35 04 06 00 00 00 16 [10:38:09]Write i2c OK [10:38:09]MH_I2C_Read... [10:38:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:10]Read from MH i2c: E2 [10:38:10]MH_I2C_Read... [10:38:10]Read from MH i2c: E2 03 00 [10:38:10]MH_I2C_Read... [10:38:10]Read from MH i2c: E2 03 00 A8 09 00 90 00 25 [10:38:10]RAPDU: 90 00 [10:38:10]wFMCommunicate OK [10:38:10]wFMCommunicate request_size=11 [10:38:10]MH_SAM_APDU [10:38:10]CAPDU: 80 0D 02 02 06 5B 99 C6 6A 2B EE [10:38:10]Write to MH i2c: E2 0E 00 A9 09 80 0D 02 02 06 00 5B 99 C6 6A 2B EE 00 00 75 [10:38:10]Write i2c OK [10:38:10]MH_I2C_Read... [10:38:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:10]Read from MH i2c: E2 [10:38:10]MH_I2C_Read... [10:38:10]Read from MH i2c: E2 03 00 [10:38:10]MH_I2C_Read... [10:38:10]Read from MH i2c: E2 03 00 A9 09 00 90 00 26 [10:38:10]RAPDU: 90 00 [10:38:10]wFMCommunicate OK [10:38:10]wFMCommunicate request_size=4 [10:38:10]MH_SAM_APDU [10:38:10]CAPDU: 80 0D 03 02 [10:38:10]Write to MH i2c: E2 08 00 AA 09 80 0D 03 02 00 00 00 00 2E [10:38:10]Write i2c OK [10:38:10]MH_I2C_Read... [10:38:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:38:10]Read from MH i2c: E2 [10:38:10]MH_I2C_Read... [10:38:10]Read from MH i2c: E2 0B 00 [10:38:10]MH_I2C_Read... [10:38:10]Read from MH i2c: E2 0B 00 AA 09 00 53 69 FA 9D 57 97 2F AB 90 00 4A [10:38:10]RAPDU: 53 69 FA 9D 57 97 2F AB 90 00 [10:38:10]wFMCommunicate OK [10:38:10]SAM_PROTO_SignData done [10:38:10]FM_MakeSignedData done [10:38:10]CreateOFDProtocolMessage [10:38:10]wFMCommunicate request_size=4 [10:38:10]MH_SAM_APDU [10:38:10]CAPDU: 80 11 00 00 [10:38:10]Write to MH i2c: E2 08 00 AB 09 80 11 00 00 00 00 00 00 2E [10:38:10]Write i2c OK [10:38:10]MH_I2C_Read... [10:38:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:10]Read from MH i2c: E2 [10:38:10]MH_I2C_Read... [10:38:10]Read from MH i2c: E2 17 00 [10:38:10]MH_I2C_Read... [10:38:10]Read from MH i2c: E2 17 00 AB 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 84 [10:38:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:38:10]wFMCommunicate OK [10:38:10]CreateOFDProtocolMessage done [10:38:10]OFDSenderStorePacket 67447 [10:38:10]StoreOFDPacket docnum=67447 [10:38:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 F0 B8 08 01 8B AA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 11 E2 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 77 07 01 00 35 04 06 00 5B 99 C6 6A 2B EE 53 69 FA 9D 57 97 2F AB [10:38:10]CheckFolder [10:38:10]dirname=/storage/ofd_packets [10:38:10]CheckFolder done [10:38:10]ProducePacketName [10:38:10]name=ofd_packets/00067447 [10:38:10]NVStorageSaveData ofd_packets/00067447 [10:38:10]File name is /storage/ofd_packets/00067447 [10:38:10]Write 302 bytes [10:38:10]NVStorageSaveData done [10:38:10]OFDSenderStorePacket done [10:38:10]KKMCreateOFDPacket done [10:38:10]NVStorageSaveData kkm_last_timestamp [10:38:10]File name is /storage/kkm_last_timestamp [10:38:10]Write 4 bytes [10:38:10]NVStorageSaveData done [10:38:10]ExternCall_PrintAddStr [10:38:10]wPrintStart [10:38:10]Write to MH i2c: 01 00 00 AC 09 B5 [10:38:10]Write i2c OK [10:38:10]MH_I2C_Read... [10:38:10]Read from MH i2c: 01 [10:38:10]MH_I2C_Read... [10:38:10]Read from MH i2c: 01 07 00 [10:38:10]MH_I2C_Read... [10:38:10]Read from MH i2c: 01 07 00 AC 09 00 00 00 00 00 FF 0F CA [10:38:10]RasterBufferAndPrint [10:38:10]line Счет N : (1)507474 [10:38:10]line ИНН: 02508201610067 [10:38:10]line Контрольно-Кассовый Чек [10:38:10]line ПРОДАЖА [10:38:10]line ТРК (МРК, ГНК) : 32 [10:38:10]line Товар: 2710124130 [10:38:10]line Super-92-К-5 [10:38:10]line 14.750 * 67.80 [10:38:10]line = 1000.05 [10:38:10]line НДС 12% НСП 1% [10:38:10]line > о реализуемом товаре [10:38:10]line ОКРУГЛЕНИЕ: -0.05 [10:38:10]line ИТОГО: 1000.00 [10:38:10]line Внесено: 1000.00 [10:38:10]line СДАЧА: 0.00 [10:38:10]line НСП 1% : 8.85 [10:38:10]line НДС 12% : 106.20 [10:38:10]line Наличными: 1000.00 [10:38:10]line Безнал.: 0.00 [10:38:10]line Место: АЗС № 91 "Партнер Нефть" [10:38:10]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [10:38:10]line СНО: Общий режим [10:38:10]line Чек 45 16.05.2024 10:38 [10:38:10]line Смена: 357 ФФД: 1.0 [10:38:10]line ЗНМ: 0300000119 [10:38:10]line РНМ: 0000000000091845 [10:38:10]line Версия ККМ: 001 [10:38:10]line ФМ: 0000000000871829 [10:38:10]line ФД: 67447 [10:38:10]line ФПД: 100716016970734 [10:38:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T103809&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67447&fm=100716016970734&tin=02508201610067®Number=0000000000091845&sum=100000 [10:38:10]OFD Sender: Processing packet 67447 [packets to send 35, broken 34] [10:38:10]ProducePacketName [10:38:10]name=ofd_packets/00067447 [10:38:10]OFD Sender: To server: pG, [10:38:10]CommunicateWithHost lk.salyk.kg:30040 [10:38:10]ConnectInit lk.salyk.kg [10:38:10]written 0, free lines is 4095 [10:38:10]Connected sock=10 [10:38:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 F0 B8 08 01 8B AA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 11 E2 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 77 07 01 00 35 04 06 00 5B 99 C6 6A 2B EE 53 69 FA 9D 57 97 2F AB [10:38:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 97 96 47 00 6F C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 77 07 01 00 F4 03 04 00 EC 89 45 66 B6 04 01 00 00 4D B2 11 25 7A A0 63 68 [10:38:10]CommunicateWithHost err = 0 [10:38:10]CheckOFDResponse [10:38:10]1017 (14) - 77093643461234 [10:38:10]1041 (16) - 0000000000871829 [10:38:10]1040 (4) - 67447 [10:38:10]1012 (4) - 16.05.2024 04:22 [10:38:10]1206 (1) - 0 [10:38:10]OFD Sender: Remove packet 67447 [10:38:10]ProducePacketName [10:38:10]name=ofd_packets/00067447 [10:38:10]NVStorageDeleteData [10:38:10]Write to MH i2c: 01 00 00 D6 09 DF [10:38:10]Write i2c OK [10:38:10]MH_I2C_Read... [10:38:10]Read from MH i2c: 01 [10:38:10]MH_I2C_Read... [10:38:10]Read from MH i2c: 01 07 00 [10:38:10]MH_I2C_Read... [10:38:10]Read from MH i2c: 01 07 00 D6 09 00 00 00 00 00 D1 0C C3 [10:38:10]RasterBufferAndPrint [10:38:10]line [10:38:10]line [10:38:10]line [10:38:10]line [10:38:10]line [10:38:10]written 0, free lines is 3288 [10:38:10]MH_Cut [10:38:10]Write to MH i2c: D1 01 00 DD 09 01 B8 [10:38:10]Write i2c OK [10:38:10]MH_I2C_Read... [10:38:10]Read from MH i2c: D1 [10:38:10]MH_I2C_Read... [10:38:10]Read from MH i2c: D1 01 00 [10:38:10]MH_I2C_Read... [10:38:10]Read from MH i2c: D1 01 00 DD 09 00 B7 [10:38:10]Write to MH i2c: 01 00 00 DE 09 E7 [10:38:10]Write i2c OK [10:38:10]MH_I2C_Read... [10:38:11]OFD Sender: No OFD packet to send [10:38:11]*** Cut start [10:38:11]*** Purtial cut [10:38:11]*** CUTSNS_PIN = 0 [10:38:12]*** Stage 1: CUTSNS_PIN = 1 [10:38:13]Read from MH i2c: 01 [10:38:13]MH_I2C_Read... [10:38:13]*** Stop cut motor [10:38:13]*** Cut end [10:38:13]Read from MH i2c: 01 07 00 [10:38:13]MH_I2C_Read... [10:38:13]Read from MH i2c: 01 07 00 DE 09 00 00 00 00 00 FF 0F FC [10:38:13]process_action close_receipt done [10:38:13]requested_data is exist [10:38:13]produce_requested_data [10:38:13]requested_item fm.sn is exist - process it [10:38:13]wFMCommunicate request_size=4 [10:38:13]MH_SAM_APDU [10:38:13]CAPDU: 80 11 00 00 [10:38:13]Write to MH i2c: E2 08 00 DF 09 80 11 00 00 00 00 00 00 62 [10:38:13]Write i2c OK [10:38:13]MH_I2C_Read... [10:38:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:13]Read from MH i2c: E2 [10:38:13]MH_I2C_Read... [10:38:13]Read from MH i2c: E2 17 00 [10:38:13]MH_I2C_Read... [10:38:13]Read from MH i2c: E2 17 00 DF 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B8 [10:38:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:38:13]wFMCommunicate OK [10:38:13]requested_item fd.num is exist - process it [10:38:13]SAM_PROTO_GetFieldsCounters [10:38:13]wFMCommunicate request_size=4 [10:38:13]MH_SAM_APDU [10:38:13]CAPDU: 80 13 00 00 [10:38:13]Write to MH i2c: E2 08 00 E0 09 80 13 00 00 00 00 00 00 65 [10:38:13]Write i2c OK [10:38:13]MH_I2C_Read... [10:38:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:13]Read from MH i2c: E2 [10:38:13]MH_I2C_Read... [10:38:13]Read from MH i2c: E2 62 00 [10:38:13]MH_I2C_Read... [10:38:14]Read from MH i2c: E2 62 00 E0 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 77 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [10:38: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 77 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:38:14]wFMCommunicate OK [10:38:14]SAM_PROTO_GetFieldsCounters done [10:38:14]requested_item shift.num is exist - process it [10:38:14]requested_item shift.opened is exist - process it [10:38:14]req_shift_opened [10:38:14]FM_GetShiftState [10:38:14]SAM_PROTO_GetShiftState [10:38:14]wFMCommunicate request_size=4 [10:38:14]MH_SAM_APDU [10:38:14]CAPDU: 80 13 01 00 [10:38:14]Write to MH i2c: E2 08 00 E1 09 80 13 01 00 00 00 00 00 67 [10:38:14]Write i2c OK [10:38:14]MH_I2C_Read... [10:38:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:14]Read from MH i2c: E2 [10:38:14]MH_I2C_Read... [10:38:14]Read from MH i2c: E2 0E 00 [10:38:14]MH_I2C_Read... [10:38:14]Read from MH i2c: E2 0E 00 E1 09 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 13 [10:38:14]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [10:38:14]wFMCommunicate OK [10:38:14]SAM_PROTO_GetShiftState done [10:38:14]FM_GetShiftState done [10:38:14]req_shift_opened done [10:38:14]requested_item shift.open_date is exist - process it [10:38:14]req_shift_open_date [10:38:14]req_shift_open_date done [10:38:14]produce_requested_data done [10:38:14]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67447,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [10:38:14]process_action_free close_receipt [10:38:14]json_value_free [10:38:14]json_value_free done [10:38:14]process_json_proto returns [10:38:14]Send response to host [10:38:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67447,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [10:38:14]free response buf [10:38:14]execute_script done [10:38:14]execute_script returns [10:38:14]free content buf [10:38:14]Sock 9.Close socket [10:38:14]Sock 9.Thread stoped [10:38:16]OFD Sender: No OFD packet to send [10:38:21]OFD Sender: No OFD packet to send [10:38:26]OFD Sender: No OFD packet to send [10:38:31]OFD Sender: No OFD packet to send [10:38:36]OFD Sender: No OFD packet to send [10:38:41]OFD Sender: No OFD packet to send [10:38:46]OFD Sender: No OFD packet to send [10:38:51]OFD Sender: No OFD packet to send [10:38:56]OFD Sender: No OFD packet to send [10:39:01]OFD Sender: No OFD packet to send [10:39:06]OFD Sender: No OFD packet to send [10:39:11]OFD Sender: No OFD packet to send [10:39:16]OFD Sender: No OFD packet to send [10:39:21]OFD Sender: No OFD packet to send [10:39:26]OFD Sender: No OFD packet to send [10:39:31]OFD Sender: No OFD packet to send [10:39:36]OFD Sender: No OFD packet to send [10:39:41]OFD Sender: No OFD packet to send [10:39:46]OFD Sender: No OFD packet to send [10:39:51]OFD Sender: No OFD packet to send [10:39:56]OFD Sender: No OFD packet to send [10:40:01]OFD Sender: No OFD packet to send [10:40:06]OFD Sender: No OFD packet to send [10:40:11]OFD Sender: No OFD packet to send [10:40:16]OFD Sender: No OFD packet to send [10:40:21]OFD Sender: No OFD packet to send [10:40:26]OFD Sender: No OFD packet to send [10:40:31]OFD Sender: No OFD packet to send [10:40:36]OFD Sender: No OFD packet to send [10:40:41]OFD Sender: No OFD packet to send [10:40:46]OFD Sender: No OFD packet to send [10:40:51]OFD Sender: No OFD packet to send [10:40:56]OFD Sender: No OFD packet to send [10:41:01]OFD Sender: No OFD packet to send [10:41:06]OFD Sender: No OFD packet to send [10:41:11]OFD Sender: No OFD packet to send [10:41:16]accept exits with 8 [10:41:16]New connection [10:41:16]New thread 3067460964 created [10:41:16]Thread 3067604324 joined [10:41:16]Waiting for new connection... [10:41:16] Sock 8.Parse request [10:41:16]Sock 8.Check first char [10:41:16]Sock 8.First char is OK [10:41:16]request: POST /json_proto HTTP/1.0 [10:41:16]Method: POST [10:41:16]URL: /json_proto [10:41:16]Method is POST - this is cgi request [10:41:16]url: /json_proto [10:41:16]query_string will be loaded in cgi processing [10:41:16]execute_cgi json_proto POST (null) [10:41:16]execute_cgi path=json_proto method=POST [10:41:16]POST find Content-Length [10:41:16]Host: 172.17.41.195:8080 [10:41:16]Content-Length: 1173 [10:41:16]Content-Type: application/json [10:41:16] [10:41:16]POST finish read [10:41:16]Found Content-Length = 1173 [10:41:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507475\u000A16.05.2024 10:23\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 50.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 3340.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A3005961\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:16]execute_script... [10:41:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507475\u000A16.05.2024 10:23\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 50.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 3340.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A3005961\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:16]POST & json_proto [10:41:16]process_json_proto [10:41:16]json parsed OK: [10:41:16]protocol is kg_v1.0 [10:41:16]action value=print_text [10:41:16]process_action print_text [10:41:16]cmd_print_text [10:41:16]ExternCall_PrintAddStr [10:41:16]wPrintStart [10:41:16]Write to MH i2c: 01 00 00 E2 09 EB [10:41:16]Write i2c OK [10:41:16]MH_I2C_Read... [10:41:16]Read from MH i2c: 01 [10:41:16]MH_I2C_Read... [10:41:16]Read from MH i2c: 01 07 00 [10:41:16]MH_I2C_Read... [10:41:16]Read from MH i2c: 01 07 00 E2 09 00 00 00 00 00 FF 0F 00 [10:41:16]RasterBufferAndPrint [10:41:16]line *****ТОВАРНЫЙ ЧЕК***** [10:41:16]line АЗС-91 [10:41:16]line Партнер нефть [10:41:16]line 02508201610067 [10:41:16]line Кассир : Пайзулдаева А. [10:41:16]line Счет N : (1)507475 [10:41:16]line 16.05.2024 10:23 [10:41:16]line ПРОДАЖА [10:41:16]line ТРК (МРК, ГНК): 23 [10:41:16]line Вид ГСМ : 2710124130 [10:41:16]line Аи-92-К-5 [10:41:16]line 50.000 x 66.80 [10:41:16]line ИТОГ: 3340.00 [10:41:16]line Тип оплаты: Талоны: ТК ГПНА Online [10:41:16]line 3005961 [10:41:16]line ______________________ [10:41:16]line (подпись) [10:41:16]written 0, free lines is 4095 [10:41:16]OFD Sender: No OFD packet to send [10:41:16]Write to MH i2c: 01 00 00 F6 09 FF [10:41:16]Write i2c OK [10:41:16]MH_I2C_Read... [10:41:16]Read from MH i2c: 01 [10:41:16]MH_I2C_Read... [10:41:16]Read from MH i2c: 01 07 00 [10:41:16]MH_I2C_Read... [10:41:16]Read from MH i2c: 01 07 00 F6 09 00 00 00 00 00 12 0E 26 [10:41:16]RasterBufferAndPrint [10:41:16]line [10:41:16]line [10:41:16]line [10:41:16]line [10:41:16]line [10:41:16]written 0, free lines is 3603 [10:41:16]MH_Cut [10:41:16]Write to MH i2c: D1 01 00 FD 09 01 D8 [10:41:16]Write i2c OK [10:41:16]MH_I2C_Read... [10:41:16]Read from MH i2c: D1 [10:41:16]MH_I2C_Read... [10:41:16]Read from MH i2c: D1 01 00 [10:41:16]MH_I2C_Read... [10:41:16]Read from MH i2c: D1 01 00 FD 09 00 D7 [10:41:16]Write to MH i2c: 01 00 00 FE 09 07 [10:41:16]Write i2c OK [10:41:16]MH_I2C_Read... [10:41:17]*** Cut start [10:41:17]*** Purtial cut [10:41:17]*** Stage 1: CUTSNS_PIN = 1 [10:41:17]Read from MH i2c: 01 [10:41:17]MH_I2C_Read... [10:41:17]*** Stop cut motor [10:41:17]*** Cut end [10:41:17]Read from MH i2c: 01 07 00 [10:41:17]MH_I2C_Read... [10:41:17]Read from MH i2c: 01 07 00 FE 09 00 00 00 00 00 FF 0F 1C [10:41:17]process_action print_text done [10:41:17]requested_data is exist [10:41:17]produce_requested_data [10:41:17]requested_item fm.sn is exist - process it [10:41:17]wFMCommunicate request_size=4 [10:41:17]MH_SAM_APDU [10:41:17]CAPDU: 80 11 00 00 [10:41:17]Write to MH i2c: E2 08 00 FF 09 80 11 00 00 00 00 00 00 82 [10:41:17]Write i2c OK [10:41:17]MH_I2C_Read... [10:41:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:17]Read from MH i2c: E2 [10:41:17]MH_I2C_Read... [10:41:17]Read from MH i2c: E2 17 00 [10:41:17]MH_I2C_Read... [10:41:17]Read from MH i2c: E2 17 00 FF 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D8 [10:41:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:41:17]wFMCommunicate OK [10:41:17]requested_item fd.num is exist - process it [10:41:17]SAM_PROTO_GetFieldsCounters [10:41:17]wFMCommunicate request_size=4 [10:41:17]MH_SAM_APDU [10:41:17]CAPDU: 80 13 00 00 [10:41:17]Write to MH i2c: E2 08 00 00 0A 80 13 00 00 00 00 00 00 86 [10:41:17]Write i2c OK [10:41:17]MH_I2C_Read... [10:41:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:41:17]Read from MH i2c: E2 [10:41:17]MH_I2C_Read... [10:41:17]Read from MH i2c: E2 62 00 [10:41:17]MH_I2C_Read... [10:41:17]Read from MH i2c: E2 62 00 00 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 77 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [10:41: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 77 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:41:17]wFMCommunicate OK [10:41:17]SAM_PROTO_GetFieldsCounters done [10:41:17]requested_item shift.num is exist - process it [10:41:17]requested_item shift.opened is exist - process it [10:41:17]req_shift_opened [10:41:17]FM_GetShiftState [10:41:17]SAM_PROTO_GetShiftState [10:41:17]wFMCommunicate request_size=4 [10:41:17]MH_SAM_APDU [10:41:17]CAPDU: 80 13 01 00 [10:41:17]Write to MH i2c: E2 08 00 01 0A 80 13 01 00 00 00 00 00 88 [10:41:17]Write i2c OK [10:41:17]MH_I2C_Read... [10:41:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:17]Read from MH i2c: E2 [10:41:17]MH_I2C_Read... [10:41:17]Read from MH i2c: E2 0E 00 [10:41:17]MH_I2C_Read... [10:41:17]Read from MH i2c: E2 0E 00 01 0A 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 34 [10:41:17]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [10:41:17]wFMCommunicate OK [10:41:17]SAM_PROTO_GetShiftState done [10:41:17]FM_GetShiftState done [10:41:17]req_shift_opened done [10:41:17]requested_item shift.open_date is exist - process it [10:41:17]req_shift_open_date [10:41:17]req_shift_open_date done [10:41:17]produce_requested_data done [10:41:17]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67447,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [10:41:17]process_action_free print_text [10:41:17]json_value_free [10:41:17]json_value_free done [10:41:17]process_json_proto returns [10:41:17]Send response to host [10:41:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67447,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [10:41:17]free response buf [10:41:17]execute_script done [10:41:17]execute_script returns [10:41:17]free content buf [10:41:17]Sock 8.Close socket [10:41:17]Sock 8.Thread stoped [10:41:21]OFD Sender: No OFD packet to send [10:41:26]OFD Sender: No OFD packet to send [10:41:31]OFD Sender: No OFD packet to send [10:41:36]OFD Sender: No OFD packet to send [10:41:41]OFD Sender: No OFD packet to send [10:41:46]OFD Sender: No OFD packet to send [10:41:51]OFD Sender: No OFD packet to send [10:41:56]OFD Sender: No OFD packet to send [10:42:01]OFD Sender: No OFD packet to send [10:42:06]OFD Sender: No OFD packet to send [10:42:11]OFD Sender: No OFD packet to send [10:42:16]OFD Sender: No OFD packet to send [10:42:21]OFD Sender: No OFD packet to send [10:42:26]OFD Sender: No OFD packet to send [10:42:31]OFD Sender: No OFD packet to send [10:42:36]OFD Sender: No OFD packet to send [10:42:41]OFD Sender: No OFD packet to send [10:42:46]OFD Sender: No OFD packet to send [10:42:51]OFD Sender: No OFD packet to send [10:42:56]OFD Sender: No OFD packet to send [10:43:01]OFD Sender: No OFD packet to send [10:43:06]OFD Sender: No OFD packet to send [10:43:11]OFD Sender: No OFD packet to send [10:43:16]OFD Sender: No OFD packet to send [10:43:21]OFD Sender: No OFD packet to send [10:43:26]OFD Sender: No OFD packet to send [10:43:31]OFD Sender: No OFD packet to send [10:43:36]OFD Sender: No OFD packet to send [10:43:41]OFD Sender: No OFD packet to send [10:43:46]OFD Sender: No OFD packet to send [10:43:51]OFD Sender: No OFD packet to send [10:43:56]OFD Sender: No OFD packet to send [10:44:01]OFD Sender: No OFD packet to send [10:44:06]OFD Sender: No OFD packet to send [10:44:11]OFD Sender: No OFD packet to send [10:44:16]OFD Sender: No OFD packet to send [10:44:21]OFD Sender: No OFD packet to send [10:44:26]OFD Sender: No OFD packet to send [10:44:31]OFD Sender: No OFD packet to send [10:44:36]OFD Sender: No OFD packet to send [10:44:37]accept exits with 9 [10:44:37]New connection [10:44:37]New thread 3067604324 created [10:44:37]Thread 3067460964 joined [10:44:37]Waiting for new connection... [10:44:37] Sock 9.Parse request [10:44:37]Sock 9.Check first char [10:44:37]Sock 9.First char is OK [10:44:37]request: POST /json_proto HTTP/1.0 [10:44:37]Method: POST [10:44:37]URL: /json_proto [10:44:37]Method is POST - this is cgi request [10:44:37]url: /json_proto [10:44:37]query_string will be loaded in cgi processing [10:44:37]execute_cgi json_proto POST (null) [10:44:37]execute_cgi path=json_proto method=POST [10:44:37]POST find Content-Length [10:44:37]Host: 172.17.41.195:8080 [10:44:37]Content-Length: 1209 [10:44:37]Content-Type: application/json [10:44:37] [10:44:37]POST finish read [10:44:37]Found Content-Length = 1209 [10:44:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507476\u000A16.05.2024 10:27\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.390 x 74.70\u000A\u0418\u0422\u041E\u0413: 1000.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:37]execute_script... [10:44:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507476\u000A16.05.2024 10:27\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.390 x 74.70\u000A\u0418\u0422\u041E\u0413: 1000.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:37]POST & json_proto [10:44:37]process_json_proto [10:44:37]json parsed OK: [10:44:37]protocol is kg_v1.0 [10:44:37]action value=print_text [10:44:37]process_action print_text [10:44:37]cmd_print_text [10:44:37]ExternCall_PrintAddStr [10:44:37]wPrintStart [10:44:37]Write to MH i2c: 01 00 00 02 0A 0C [10:44:37]Write i2c OK [10:44:37]MH_I2C_Read... [10:44:37]Read from MH i2c: 01 [10:44:37]MH_I2C_Read... [10:44:37]Read from MH i2c: 01 07 00 [10:44:37]MH_I2C_Read... [10:44:37]Read from MH i2c: 01 07 00 02 0A 00 00 00 00 00 FF 0F 21 [10:44:37]RasterBufferAndPrint [10:44:37]line *****ТОВАРНЫЙ ЧЕК***** [10:44:37]line АЗС-91 [10:44:37]line Партнер нефть [10:44:37]line 02508201610067 [10:44:37]line Кассир : Пайзулдаева А. [10:44:37]line Счет N : (1)507476 [10:44:37]line 16.05.2024 10:27 [10:44:37]line ПРОДАЖА [10:44:37]line ТРК (МРК, ГНК): 41 [10:44:37]line Вид ГСМ : 2710194210 [10:44:37]line ДТ-К-5 [10:44:37]line 13.390 x 74.70 [10:44:37]line ИТОГ: 1000.23 [10:44:37]line Тип оплаты: Талоны: Топливная Карта [10:44:37]line 02750 [10:44:37]line ______________________ [10:44:37]line (подпись) [10:44:37]written 0, free lines is 4095 [10:44:37]Write to MH i2c: 01 00 00 16 0A 20 [10:44:37]Write i2c OK [10:44:37]MH_I2C_Read... [10:44:37]Read from MH i2c: 01 [10:44:37]MH_I2C_Read... [10:44:37]Read from MH i2c: 01 07 00 [10:44:37]MH_I2C_Read... [10:44:37]Read from MH i2c: 01 07 00 16 0A 00 00 00 00 00 10 0E 45 [10:44:37]RasterBufferAndPrint [10:44:37]line [10:44:37]line [10:44:37]line [10:44:37]line [10:44:37]line [10:44:37]written 0, free lines is 3602 [10:44:37]MH_Cut [10:44:37]Write to MH i2c: D1 01 00 1D 0A 01 F9 [10:44:37]Write i2c OK [10:44:37]MH_I2C_Read... [10:44:37]Read from MH i2c: D1 [10:44:37]MH_I2C_Read... [10:44:37]Read from MH i2c: D1 01 00 [10:44:37]MH_I2C_Read... [10:44:37]Read from MH i2c: D1 01 00 1D 0A 00 F8 [10:44:37]Write to MH i2c: 01 00 00 1E 0A 28 [10:44:37]Write i2c OK [10:44:37]MH_I2C_Read... [10:44:37]*** Cut start [10:44:37]*** Purtial cut [10:44:37]*** CUTSNS_PIN = 0 [10:44:38]*** Stage 1: CUTSNS_PIN = 1 [10:44:39]Read from MH i2c: 01 [10:44:39]MH_I2C_Read... [10:44:39]*** Stop cut motor [10:44:39]*** Cut end [10:44:39]Read from MH i2c: 01 07 00 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: 01 07 00 1E 0A 00 00 00 00 00 FF 0F 3D [10:44:39]process_action print_text done [10:44:39]requested_data is exist [10:44:39]produce_requested_data [10:44:39]requested_item fm.sn is exist - process it [10:44:39]wFMCommunicate request_size=4 [10:44:39]MH_SAM_APDU [10:44:39]CAPDU: 80 11 00 00 [10:44:39]Write to MH i2c: E2 08 00 1F 0A 80 11 00 00 00 00 00 00 A3 [10:44:39]Write i2c OK [10:44:39]MH_I2C_Read... [10:44:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:40]Read from MH i2c: E2 [10:44:40]MH_I2C_Read... [10:44:40]Read from MH i2c: E2 17 00 [10:44:40]MH_I2C_Read... [10:44:40]Read from MH i2c: E2 17 00 1F 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F9 [10:44:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:44:40]wFMCommunicate OK [10:44:40]requested_item fd.num is exist - process it [10:44:40]SAM_PROTO_GetFieldsCounters [10:44:40]wFMCommunicate request_size=4 [10:44:40]MH_SAM_APDU [10:44:40]CAPDU: 80 13 00 00 [10:44:40]Write to MH i2c: E2 08 00 20 0A 80 13 00 00 00 00 00 00 A6 [10:44:40]Write i2c OK [10:44:40]MH_I2C_Read... [10:44:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:44:40]Read from MH i2c: E2 [10:44:40]MH_I2C_Read... [10:44:40]Read from MH i2c: E2 62 00 [10:44:40]MH_I2C_Read... [10:44:40]Read from MH i2c: E2 62 00 20 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 77 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [10:44: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 77 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:44:40]wFMCommunicate OK [10:44:40]SAM_PROTO_GetFieldsCounters done [10:44:40]requested_item shift.num is exist - process it [10:44:40]requested_item shift.opened is exist - process it [10:44:40]req_shift_opened [10:44:40]FM_GetShiftState [10:44:40]SAM_PROTO_GetShiftState [10:44:40]wFMCommunicate request_size=4 [10:44:40]MH_SAM_APDU [10:44:40]CAPDU: 80 13 01 00 [10:44:40]Write to MH i2c: E2 08 00 21 0A 80 13 01 00 00 00 00 00 A8 [10:44:40]Write i2c OK [10:44:40]MH_I2C_Read... [10:44:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:40]Read from MH i2c: E2 [10:44:40]MH_I2C_Read... [10:44:40]Read from MH i2c: E2 0E 00 [10:44:40]MH_I2C_Read... [10:44:40]Read from MH i2c: E2 0E 00 21 0A 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 54 [10:44:40]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [10:44:40]wFMCommunicate OK [10:44:40]SAM_PROTO_GetShiftState done [10:44:40]FM_GetShiftState done [10:44:40]req_shift_opened done [10:44:40]requested_item shift.open_date is exist - process it [10:44:40]req_shift_open_date [10:44:40]req_shift_open_date done [10:44:40]produce_requested_data done [10:44:40]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67447,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [10:44:40]process_action_free print_text [10:44:40]json_value_free [10:44:40]json_value_free done [10:44:40]process_json_proto returns [10:44:40]Send response to host [10:44:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67447,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [10:44:40]free response buf [10:44:40]execute_script done [10:44:40]execute_script returns [10:44:40]free content buf [10:44:40]Sock 9.Close socket [10:44:40]Sock 9.Thread stoped [10:44:41]OFD Sender: No OFD packet to send [10:44:46]OFD Sender: No OFD packet to send [10:44:51]OFD Sender: No OFD packet to send [10:44:56]OFD Sender: No OFD packet to send [10:45:01]OFD Sender: No OFD packet to send [10:45:06]OFD Sender: No OFD packet to send [10:45:11]OFD Sender: No OFD packet to send [10:45:16]OFD Sender: No OFD packet to send [10:45:21]OFD Sender: No OFD packet to send [10:45:26]OFD Sender: No OFD packet to send [10:45:31]OFD Sender: No OFD packet to send [10:45:36]OFD Sender: No OFD packet to send [10:45:41]OFD Sender: No OFD packet to send [10:45:46]OFD Sender: No OFD packet to send [10:45:51]OFD Sender: No OFD packet to send [10:45:56]OFD Sender: No OFD packet to send [10:46:01]OFD Sender: No OFD packet to send [10:46:06]OFD Sender: No OFD packet to send [10:46:11]OFD Sender: No OFD packet to send [10:46:16]OFD Sender: No OFD packet to send [10:46:21]OFD Sender: No OFD packet to send [10:46:26]OFD Sender: No OFD packet to send [10:46:31]OFD Sender: No OFD packet to send [10:46:36]OFD Sender: No OFD packet to send [10:46:41]OFD Sender: No OFD packet to send [10:46:46]OFD Sender: No OFD packet to send [10:46:51]OFD Sender: No OFD packet to send [10:46:56]OFD Sender: No OFD packet to send [10:47:01]OFD Sender: No OFD packet to send [10:47:06]OFD Sender: No OFD packet to send [10:47:11]OFD Sender: No OFD packet to send [10:47:16]OFD Sender: No OFD packet to send [10:47:21]OFD Sender: No OFD packet to send [10:47:26]OFD Sender: No OFD packet to send [10:47:31]OFD Sender: No OFD packet to send [10:47:36]OFD Sender: No OFD packet to send [10:47:41]OFD Sender: No OFD packet to send [10:47:46]OFD Sender: No OFD packet to send [10:47:51]OFD Sender: No OFD packet to send [10:47:56]OFD Sender: No OFD packet to send [10:48:01]OFD Sender: No OFD packet to send [10:48:06]OFD Sender: No OFD packet to send [10:48:11]OFD Sender: No OFD packet to send [10:48:16]OFD Sender: No OFD packet to send [10:48:21]OFD Sender: No OFD packet to send [10:48:26]OFD Sender: No OFD packet to send [10:48:31]OFD Sender: No OFD packet to send [10:48:36]OFD Sender: No OFD packet to send [10:48:41]OFD Sender: No OFD packet to send [10:48:46]OFD Sender: No OFD packet to send [10:48:51]OFD Sender: No OFD packet to send [10:48:56]OFD Sender: No OFD packet to send [10:49:01]OFD Sender: No OFD packet to send [10:49:06]OFD Sender: No OFD packet to send [10:49:11]OFD Sender: No OFD packet to send [10:49:16]OFD Sender: No OFD packet to send [10:49:21]OFD Sender: No OFD packet to send [10:49:26]OFD Sender: No OFD packet to send [10:49:31]OFD Sender: No OFD packet to send [10:49:35]accept exits with 8 [10:49:35]New connection [10:49:35]New thread 3067460964 created [10:49:35]Thread 3067604324 joined [10:49:35]Waiting for new connection... [10:49:35] Sock 8.Parse request [10:49:35]Sock 8.Check first char [10:49:35]Sock 8.First char is OK [10:49:35]request: POST /json_proto HTTP/1.0 [10:49:35]Method: POST [10:49:35]URL: /json_proto [10:49:35]Method is POST - this is cgi request [10:49:35]url: /json_proto [10:49:35]query_string will be loaded in cgi processing [10:49:35]execute_cgi json_proto POST (null) [10:49:35]execute_cgi path=json_proto method=POST [10:49:35]POST find Content-Length [10:49:35]Host: 172.17.41.195:8080 [10:49:35]Content-Length: 670 [10:49:35]Content-Type: application/json [10:49:35] [10:49:35]POST finish read [10:49:35]Found Content-Length = 670 [10:49:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507477", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:49:35]execute_script... [10:49: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)507477", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:49:35]POST & json_proto [10:49:35]process_json_proto [10:49:35]json parsed OK: [10:49:35]protocol is kg_v1.0 [10:49:35]action value=close_receipt [10:49:35]process_action close_receipt [10:49:35]cmd_close_receipt [10:49:35]MH_GetDate [10:49:35]Write to MH i2c: F0 00 00 22 0A 1B [10:49:35]Write i2c OK [10:49:35]MH_I2C_Read... [10:49:35]Read from MH i2c: F0 [10:49:35]MH_I2C_Read... [10:49:35]Read from MH i2c: F0 09 00 [10:49:35]MH_I2C_Read... [10:49:35]Read from MH i2c: F0 09 00 22 0A 00 C0 E4 45 66 FC 21 6F 64 63 [10:49:35]GetLastDocTimeStamp 1715855889 [10:49:35]current date 1715856576 [10:49:35]FM_GetShiftState [10:49:35]SAM_PROTO_GetShiftState [10:49:35]wFMCommunicate request_size=4 [10:49:35]MH_SAM_APDU [10:49:35]CAPDU: 80 13 01 00 [10:49:35]Write to MH i2c: E2 08 00 23 0A 80 13 01 00 00 00 00 00 AA [10:49:35]Write i2c OK [10:49:35]MH_I2C_Read... [10:49:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:35]Read from MH i2c: E2 [10:49:35]MH_I2C_Read... [10:49:35]Read from MH i2c: E2 0E 00 [10:49:35]MH_I2C_Read... [10:49:35]Read from MH i2c: E2 0E 00 23 0A 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 56 [10:49:35]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [10:49:35]wFMCommunicate OK [10:49:35]SAM_PROTO_GetShiftState done [10:49:35]FM_GetShiftState done [10:49:35]opened in 1715818916 [10:49:35]opened+sec_in_day 1715905316 [10:49:35]quantity*price = 50036 [10:49:35]sum+1 = 50037 [10:49:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 46 16.05.2024 10:49 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67448 ФПД: 68899338609382 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T104936&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67448&fm=68899338609382&tin=02508201610067®Number=0000000000091845&sum=50000 [10:49:36]StoreToDocumentArchive [10:49:36]shift 357 fd 67448 [10:49:36]save to /storage/0357/doc_00067448 [10:49:36]save last doc name /storage/0357/doc_00067448 to /storage/kkm_last_doc_name [10:49:36]save OK [10:49:36]Clear old archive folders... [10:49:36]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:49:36]tlvbuf is 00CA2C10 [10:49:36]SAM_PROTO_ClearQueue [10:49:36]wFMCommunicate request_size=4 [10:49:36]MH_SAM_APDU [10:49:36]CAPDU: 80 09 00 00 [10:49:36]Write to MH i2c: E2 08 00 30 0A 80 09 00 00 00 00 00 00 AC [10:49:36]Write i2c OK [10:49:36]MH_I2C_Read... [10:49:36]Read from MH i2c: E2 [10:49:36]MH_I2C_Read... [10:49:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:49:36]Read from MH i2c: E2 03 00 [10:49:36]MH_I2C_Read... [10:49:36]Read from MH i2c: E2 03 00 30 0A 00 90 00 AE [10:49:36]RAPDU: 90 00 [10:49:36]wFMCommunicate OK [10:49:36]SAM_PROTO_ClearQueue done [10:49:36]KKMCreateOFDPacket [10:49:36]OFDProtocolAddRootSTLVToBuf [10:49:36]FM_MakeSignedData [10:49:36]FM_MakeSignedData [10:49:36]SAM_PROTO_SignData [10:49:36]wFMCommunicate request_size=4 [10:49:36]MH_SAM_APDU [10:49:36]CAPDU: 80 0D 01 02 [10:49:36]Write to MH i2c: E2 08 00 31 0A 80 0D 01 02 00 00 00 00 B4 [10:49:36]Write i2c OK [10:49:36]MH_I2C_Read... [10:49:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:49:36]Read from MH i2c: E2 [10:49:36]MH_I2C_Read... [10:49:36]Read from MH i2c: E2 03 00 [10:49:36]MH_I2C_Read... [10:49:36]Read from MH i2c: E2 03 00 31 0A 00 90 00 AF [10:49:36]RAPDU: 90 00 [10:49:36]wFMCommunicate OK [10:49:36]wFMCommunicate request_size=255 [10:49:36]MH_SAM_APDU [10:49:36]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 2E 00 00 00 F4 03 04 00 C0 E4 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 78 07 01 00 35 04 06 00 [10:49:36]Write to MH i2c: E2 02 01 32 0A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 2E 00 00 00 F4 03 04 00 C0 E4 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 78 07 01 00 35 04 06 00 00 00 C5 [10:49:36]Write i2c OK [10:49:36]MH_I2C_Read... [10:49:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:36]Read from MH i2c: E2 [10:49:36]MH_I2C_Read... [10:49:36]Read from MH i2c: E2 03 00 [10:49:36]MH_I2C_Read... [10:49:36]Read from MH i2c: E2 03 00 32 0A 00 90 00 B0 [10:49:36]RAPDU: 90 00 [10:49:36]wFMCommunicate OK [10:49:36]wFMCommunicate request_size=11 [10:49:36]MH_SAM_APDU [10:49:36]CAPDU: 80 0D 02 02 06 3E A9 E0 9A 62 E6 [10:49:36]Write to MH i2c: E2 0E 00 33 0A 80 0D 02 02 06 00 3E A9 E0 9A 62 E6 00 00 6C [10:49:36]Write i2c OK [10:49:36]MH_I2C_Read... [10:49:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:36]Read from MH i2c: E2 [10:49:36]MH_I2C_Read... [10:49:36]Read from MH i2c: E2 03 00 [10:49:36]MH_I2C_Read... [10:49:36]Read from MH i2c: E2 03 00 33 0A 00 90 00 B1 [10:49:36]RAPDU: 90 00 [10:49:36]wFMCommunicate OK [10:49:36]wFMCommunicate request_size=4 [10:49:36]MH_SAM_APDU [10:49:36]CAPDU: 80 0D 03 02 [10:49:36]Write to MH i2c: E2 08 00 34 0A 80 0D 03 02 00 00 00 00 B9 [10:49:36]Write i2c OK [10:49:36]MH_I2C_Read... [10:49:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:49:36]OFD Sender: No OFD packet to send [10:49:36]Read from MH i2c: E2 [10:49:36]MH_I2C_Read... [10:49:36]Read from MH i2c: E2 0B 00 [10:49:36]MH_I2C_Read... [10:49:36]Read from MH i2c: E2 0B 00 34 0A 00 85 67 A8 15 17 B5 E1 9A 90 00 AA [10:49:36]RAPDU: 85 67 A8 15 17 B5 E1 9A 90 00 [10:49:36]wFMCommunicate OK [10:49:36]SAM_PROTO_SignData done [10:49:36]FM_MakeSignedData done [10:49:36]CreateOFDProtocolMessage [10:49:36]wFMCommunicate request_size=4 [10:49:36]MH_SAM_APDU [10:49:36]CAPDU: 80 11 00 00 [10:49:36]Write to MH i2c: E2 08 00 35 0A 80 11 00 00 00 00 00 00 B9 [10:49:36]Write i2c OK [10:49:36]MH_I2C_Read... [10:49:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:37]Read from MH i2c: E2 [10:49:37]MH_I2C_Read... [10:49:37]Read from MH i2c: E2 17 00 [10:49:37]MH_I2C_Read... [10:49:37]Read from MH i2c: E2 17 00 35 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0F [10:49:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:49:37]wFMCommunicate OK [10:49:37]CreateOFDProtocolMessage done [10:49:37]OFDSenderStorePacket 67448 [10:49:37]StoreOFDPacket docnum=67448 [10:49:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 6C D7 08 01 1D 1B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 2E 00 00 00 F4 03 04 00 C0 E4 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 78 07 01 00 35 04 06 00 3E A9 E0 9A 62 E6 85 67 A8 15 17 B5 E1 9A [10:49:37]CheckFolder [10:49:37]dirname=/storage/ofd_packets [10:49:37]CheckFolder done [10:49:37]ProducePacketName [10:49:37]name=ofd_packets/00067448 [10:49:37]NVStorageSaveData ofd_packets/00067448 [10:49:37]File name is /storage/ofd_packets/00067448 [10:49:37]Write 302 bytes [10:49:37]NVStorageSaveData done [10:49:37]OFDSenderStorePacket done [10:49:37]KKMCreateOFDPacket done [10:49:37]NVStorageSaveData kkm_last_timestamp [10:49:37]File name is /storage/kkm_last_timestamp [10:49:37]Write 4 bytes [10:49:37]NVStorageSaveData done [10:49:37]ExternCall_PrintAddStr [10:49:37]wPrintStart [10:49:37]Write to MH i2c: 01 00 00 36 0A 40 [10:49:37]Write i2c OK [10:49:37]MH_I2C_Read... [10:49:37]Read from MH i2c: 01 [10:49:37]MH_I2C_Read... [10:49:37]Read from MH i2c: 01 07 00 [10:49:37]MH_I2C_Read... [10:49:37]Read from MH i2c: 01 07 00 36 0A 00 00 00 00 00 FF 0F 55 [10:49:37]RasterBufferAndPrint [10:49:37]line Счет N : (1)507477 [10:49:37]line ИНН: 02508201610067 [10:49:37]line Контрольно-Кассовый Чек [10:49:37]line ПРОДАЖА [10:49:37]line ТРК (МРК, ГНК) : 32 [10:49:37]line Товар: 2710124130 [10:49:37]line Super-92-К-5 [10:49:37]line 7.380 * 67.80 [10:49:37]line = 500.36 [10:49:37]line НДС 12% НСП 1% [10:49:37]line > о реализуемом товаре [10:49:37]line ОКРУГЛЕНИЕ: -0.36 [10:49:37]line ИТОГО: 500.00 [10:49:37]line Внесено: 500.00 [10:49:37]line СДАЧА: 0.00 [10:49:37]line НСП 1% : 4.43 [10:49:37]line НДС 12% : 53.14 [10:49:37]line Наличными: 500.00 [10:49:37]line Безнал.: 0.00 [10:49:37]line Место: АЗС № 91 "Партнер Нефть" [10:49:37]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [10:49:37]line СНО: Общий режим [10:49:37]line Чек 46 16.05.2024 10:49 [10:49:37]line Смена: 357 ФФД: 1.0 [10:49:37]line ЗНМ: 0300000119 [10:49:37]line РНМ: 0000000000091845 [10:49:37]line Версия ККМ: 001 [10:49:37]line ФМ: 0000000000871829 [10:49:37]line ФД: 67448 [10:49:37]line ФПД: 68899338609382 [10:49:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T104936&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67448&fm=68899338609382&tin=02508201610067®Number=0000000000091845&sum=50000 [10:49:37]OFD Sender: Processing packet 67448 [packets to send 35, broken 34] [10:49:37]ProducePacketName [10:49:37]name=ofd_packets/00067448 [10:49:37]OFD Sender: To server: pG, [10:49:37]CommunicateWithHost lk.salyk.kg:30040 [10:49:37]ConnectInit lk.salyk.kg [10:49:37]written 0, free lines is 4095 [10:49:37]Connected sock=10 [10:49: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 38 32 39 10 01 00 00 6C D7 08 01 1D 1B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 2E 00 00 00 F4 03 04 00 C0 E4 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 78 07 01 00 35 04 06 00 3E A9 E0 9A 62 E6 85 67 A8 15 17 B5 E1 9A [10:49:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 38 82 47 00 D4 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 38 32 39 10 04 04 00 78 07 01 00 F4 03 04 00 9B 8C 45 66 B6 04 01 00 00 CF C7 B1 4E 46 95 18 02 [10:49:37]CommunicateWithHost err = 0 [10:49:37]CheckOFDResponse [10:49:37]1017 (14) - 77093643461234 [10:49:37]1041 (16) - 0000000000871829 [10:49:37]1040 (4) - 67448 [10:49:37]1012 (4) - 16.05.2024 04:33 [10:49:37]1206 (1) - 0 [10:49:37]OFD Sender: Remove packet 67448 [10:49:37]ProducePacketName [10:49:37]name=ofd_packets/00067448 [10:49:37]NVStorageDeleteData [10:49:37]Write to MH i2c: 01 00 00 60 0A 6A [10:49:37]Write i2c OK [10:49:37]MH_I2C_Read... [10:49:37]Read from MH i2c: 01 [10:49:37]MH_I2C_Read... [10:49:37]Read from MH i2c: 01 07 00 [10:49:37]MH_I2C_Read... [10:49:37]Read from MH i2c: 01 07 00 60 0A 00 00 00 00 00 CE 0C 4B [10:49:37]RasterBufferAndPrint [10:49:37]line [10:49:37]line [10:49:37]line [10:49:37]line [10:49:37]line [10:49:37]written 0, free lines is 3285 [10:49:37]MH_Cut [10:49:37]Write to MH i2c: D1 01 00 67 0A 01 43 [10:49:37]Write i2c OK [10:49:37]MH_I2C_Read... [10:49:37]Read from MH i2c: D1 [10:49:37]MH_I2C_Read... [10:49:37]Read from MH i2c: D1 01 00 [10:49:37]MH_I2C_Read... [10:49:37]Read from MH i2c: D1 01 00 67 0A 00 42 [10:49:37]Write to MH i2c: 01 00 00 68 0A 72 [10:49:37]Write i2c OK [10:49:37]MH_I2C_Read... [10:49:38]OFD Sender: No OFD packet to send [10:49:38]*** Cut start [10:49:38]*** Purtial cut [10:49:38]*** Stage 1: CUTSNS_PIN = 1 [10:49:38]Read from MH i2c: 01 [10:49:38]MH_I2C_Read... [10:49:38]*** Stop cut motor [10:49:38]*** Cut end [10:49:38]Read from MH i2c: 01 07 00 [10:49:38]MH_I2C_Read... [10:49:38]Read from MH i2c: 01 07 00 68 0A 00 00 00 00 00 FF 0F 87 [10:49:38]process_action close_receipt done [10:49:38]requested_data is exist [10:49:38]produce_requested_data [10:49:38]requested_item fm.sn is exist - process it [10:49:38]wFMCommunicate request_size=4 [10:49:38]MH_SAM_APDU [10:49:38]CAPDU: 80 11 00 00 [10:49:38]Write to MH i2c: E2 08 00 69 0A 80 11 00 00 00 00 00 00 ED [10:49:38]Write i2c OK [10:49:38]MH_I2C_Read... [10:49:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:39]Read from MH i2c: E2 [10:49:39]MH_I2C_Read... [10:49:39]Read from MH i2c: E2 17 00 [10:49:39]MH_I2C_Read... [10:49:39]Read from MH i2c: E2 17 00 69 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 43 [10:49:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:49:39]wFMCommunicate OK [10:49:39]requested_item fd.num is exist - process it [10:49:39]SAM_PROTO_GetFieldsCounters [10:49:39]wFMCommunicate request_size=4 [10:49:39]MH_SAM_APDU [10:49:39]CAPDU: 80 13 00 00 [10:49:39]Write to MH i2c: E2 08 00 6A 0A 80 13 00 00 00 00 00 00 F0 [10:49:39]Write i2c OK [10:49:39]MH_I2C_Read... [10:49:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:39]Read from MH i2c: E2 [10:49:39]MH_I2C_Read... [10:49:39]Read from MH i2c: E2 62 00 [10:49:39]MH_I2C_Read... [10:49:39]Read from MH i2c: E2 62 00 6A 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 78 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [10:49: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 78 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:49:39]wFMCommunicate OK [10:49:39]SAM_PROTO_GetFieldsCounters done [10:49:39]requested_item shift.num is exist - process it [10:49:39]requested_item shift.opened is exist - process it [10:49:39]req_shift_opened [10:49:39]FM_GetShiftState [10:49:39]SAM_PROTO_GetShiftState [10:49:39]wFMCommunicate request_size=4 [10:49:39]MH_SAM_APDU [10:49:39]CAPDU: 80 13 01 00 [10:49:39]Write to MH i2c: E2 08 00 6B 0A 80 13 01 00 00 00 00 00 F2 [10:49:39]Write i2c OK [10:49:39]MH_I2C_Read... [10:49:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:39]Read from MH i2c: E2 [10:49:39]MH_I2C_Read... [10:49:39]Read from MH i2c: E2 0E 00 [10:49:39]MH_I2C_Read... [10:49:39]Read from MH i2c: E2 0E 00 6B 0A 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 9E [10:49:39]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [10:49:39]wFMCommunicate OK [10:49:39]SAM_PROTO_GetShiftState done [10:49:39]FM_GetShiftState done [10:49:39]req_shift_opened done [10:49:39]requested_item shift.open_date is exist - process it [10:49:39]req_shift_open_date [10:49:39]req_shift_open_date done [10:49:39]produce_requested_data done [10:49:39]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67448,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [10:49:39]process_action_free close_receipt [10:49:39]json_value_free [10:49:39]json_value_free done [10:49:39]process_json_proto returns [10:49:39]Send response to host [10:49:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67448,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [10:49:39]free response buf [10:49:39]execute_script done [10:49:39]execute_script returns [10:49:39]free content buf [10:49:39]Sock 8.Close socket [10:49:39]Sock 8.Thread stoped [10:49:43]OFD Sender: No OFD packet to send [10:49:48]OFD Sender: No OFD packet to send [10:49:53]OFD Sender: No OFD packet to send [10:49:58]OFD Sender: No OFD packet to send [10:50:03]OFD Sender: No OFD packet to send [10:50:08]OFD Sender: No OFD packet to send [10:50:13]OFD Sender: No OFD packet to send [10:50:18]OFD Sender: No OFD packet to send [10:50:23]OFD Sender: No OFD packet to send [10:50:28]OFD Sender: No OFD packet to send [10:50:33]OFD Sender: No OFD packet to send [10:50:38]OFD Sender: No OFD packet to send [10:50:43]OFD Sender: No OFD packet to send [10:50:48]OFD Sender: No OFD packet to send [10:50:53]OFD Sender: No OFD packet to send [10:50:58]OFD Sender: No OFD packet to send [10:51:03]OFD Sender: No OFD packet to send [10:51:08]OFD Sender: No OFD packet to send [10:51:13]OFD Sender: No OFD packet to send [10:51:18]OFD Sender: No OFD packet to send [10:51:23]OFD Sender: No OFD packet to send [10:51:28]OFD Sender: No OFD packet to send [10:51:33]OFD Sender: No OFD packet to send [10:51:38]OFD Sender: No OFD packet to send [10:51:43]OFD Sender: No OFD packet to send [10:51:48]OFD Sender: No OFD packet to send [10:51:53]OFD Sender: No OFD packet to send [10:51:58]OFD Sender: No OFD packet to send [10:52:03]OFD Sender: No OFD packet to send [10:52:08]OFD Sender: No OFD packet to send [10:52:13]OFD Sender: No OFD packet to send [10:52:18]OFD Sender: No OFD packet to send [10:52:23]OFD Sender: No OFD packet to send [10:52:28]OFD Sender: No OFD packet to send [10:52:33]OFD Sender: No OFD packet to send [10:52:38]OFD Sender: No OFD packet to send [10:52:43]OFD Sender: No OFD packet to send [10:52:48]OFD Sender: No OFD packet to send [10:52:53]OFD Sender: No OFD packet to send [10:52:58]OFD Sender: No OFD packet to send [10:53:03]OFD Sender: No OFD packet to send [10:53:08]OFD Sender: No OFD packet to send [10:53:13]OFD Sender: No OFD packet to send [10:53:18]OFD Sender: No OFD packet to send [10:53:23]OFD Sender: No OFD packet to send [10:53:28]OFD Sender: No OFD packet to send [10:53:33]OFD Sender: No OFD packet to send [10:53:38]OFD Sender: No OFD packet to send [10:53:43]OFD Sender: No OFD packet to send [10:53:48]OFD Sender: No OFD packet to send [10:53:53]OFD Sender: No OFD packet to send [10:53:58]OFD Sender: No OFD packet to send [10:54:03]OFD Sender: No OFD packet to send [10:54:03]accept exits with 9 [10:54:03]New connection [10:54:03]New thread 3067604324 created [10:54:03]Thread 3067460964 joined [10:54:03]Waiting for new connection... [10:54:03] Sock 9.Parse request [10:54:03]Sock 9.Check first char [10:54:03]Sock 9.First char is OK [10:54:03]request: POST /json_proto HTTP/1.0 [10:54:03]Method: POST [10:54:03]URL: /json_proto [10:54:03]Method is POST - this is cgi request [10:54:03]url: /json_proto [10:54:03]query_string will be loaded in cgi processing [10:54:03]execute_cgi json_proto POST (null) [10:54:03]execute_cgi path=json_proto method=POST [10:54:03]POST find Content-Length [10:54:03]Host: 172.17.41.195:8080 [10:54:03]Content-Length: 677 [10:54:03]Content-Type: application/json [10:54:03] [10:54:03]POST finish read [10:54:03]Found Content-Length = 677 [10:54:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507478", "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.80, "quantity" : 7.490, "sum" : 500.33, "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:54:03]execute_script... [10:54: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)507478", "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.80, "quantity" : 7.490, "sum" : 500.33, "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:54:03]POST & json_proto [10:54:03]process_json_proto [10:54:03]json parsed OK: [10:54:03]protocol is kg_v1.0 [10:54:03]action value=close_receipt [10:54:03]process_action close_receipt [10:54:03]cmd_close_receipt [10:54:03]MH_GetDate [10:54:03]Write to MH i2c: F0 00 00 6C 0A 65 [10:54:03]Write i2c OK [10:54:03]MH_I2C_Read... [10:54:03]Read from MH i2c: F0 [10:54:03]MH_I2C_Read... [10:54:03]Read from MH i2c: F0 09 00 [10:54:03]MH_I2C_Read... [10:54:03]Read from MH i2c: F0 09 00 6C 0A 00 CD E5 45 66 FC 21 6F 64 BB [10:54:03]GetLastDocTimeStamp 1715856576 [10:54:03]current date 1715856845 [10:54:03]FM_GetShiftState [10:54:03]SAM_PROTO_GetShiftState [10:54:03]wFMCommunicate request_size=4 [10:54:03]MH_SAM_APDU [10:54:03]CAPDU: 80 13 01 00 [10:54:03]Write to MH i2c: E2 08 00 6D 0A 80 13 01 00 00 00 00 00 F4 [10:54:03]Write i2c OK [10:54:03]MH_I2C_Read... [10:54:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:03]Read from MH i2c: E2 [10:54:03]MH_I2C_Read... [10:54:03]Read from MH i2c: E2 0E 00 [10:54:03]MH_I2C_Read... [10:54:03]Read from MH i2c: E2 0E 00 6D 0A 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 A0 [10:54:03]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [10:54:03]wFMCommunicate OK [10:54:03]SAM_PROTO_GetShiftState done [10:54:03]FM_GetShiftState done [10:54:03]opened in 1715818916 [10:54:03]opened+sec_in_day 1715905316 [10:54:03]quantity*price = 50033 [10:54:03]sum+1 = 50034 [10:54:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 47 16.05.2024 10:54 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67449 ФПД: 45992431861714 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T105405&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67449&fm=45992431861714&tin=02508201610067®Number=0000000000091845&sum=50000 [10:54:04]StoreToDocumentArchive [10:54:04]shift 357 fd 67449 [10:54:04]save to /storage/0357/doc_00067449 [10:54:04]save last doc name /storage/0357/doc_00067449 to /storage/kkm_last_doc_name [10:54:04]save OK [10:54:04]Clear old archive folders... [10:54:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:54:04]tlvbuf is 00C85950 [10:54:04]SAM_PROTO_ClearQueue [10:54:04]wFMCommunicate request_size=4 [10:54:04]MH_SAM_APDU [10:54:04]CAPDU: 80 09 00 00 [10:54:04]Write to MH i2c: E2 08 00 7A 0A 80 09 00 00 00 00 00 00 F6 [10:54:04]Write i2c OK [10:54:04]MH_I2C_Read... [10:54:04]Read from MH i2c: E2 [10:54:04]MH_I2C_Read... [10:54:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:04]Read from MH i2c: E2 03 00 [10:54:04]MH_I2C_Read... [10:54:04]Read from MH i2c: E2 03 00 7A 0A 00 90 00 F8 [10:54:04]RAPDU: 90 00 [10:54:04]wFMCommunicate OK [10:54:04]SAM_PROTO_ClearQueue done [10:54:04]KKMCreateOFDPacket [10:54:04]OFDProtocolAddRootSTLVToBuf [10:54:04]FM_MakeSignedData [10:54:04]FM_MakeSignedData [10:54:04]SAM_PROTO_SignData [10:54:04]wFMCommunicate request_size=4 [10:54:04]MH_SAM_APDU [10:54:04]CAPDU: 80 0D 01 02 [10:54:04]Write to MH i2c: E2 08 00 7B 0A 80 0D 01 02 00 00 00 00 FE [10:54:04]Write i2c OK [10:54:04]MH_I2C_Read... [10:54:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:04]Read from MH i2c: E2 [10:54:04]MH_I2C_Read... [10:54:04]Read from MH i2c: E2 03 00 [10:54:04]MH_I2C_Read... [10:54:04]Read from MH i2c: E2 03 00 7B 0A 00 90 00 F9 [10:54:04]RAPDU: 90 00 [10:54:04]wFMCommunicate OK [10:54:04]wFMCommunicate request_size=255 [10:54:04]MH_SAM_APDU [10:54: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 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 CD E5 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 79 07 01 00 35 04 06 00 29 [10:54:04]Write to MH i2c: E2 02 01 7C 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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 CD E5 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 79 07 01 00 35 04 06 00 29 00 00 25 [10:54:04]Write i2c OK [10:54:04]MH_I2C_Read... [10:54:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:05]Read from MH i2c: E2 [10:54:05]MH_I2C_Read... [10:54:05]Read from MH i2c: E2 03 00 [10:54:05]MH_I2C_Read... [10:54:05]Read from MH i2c: E2 03 00 7C 0A 00 90 00 FA [10:54:05]RAPDU: 90 00 [10:54:05]wFMCommunicate OK [10:54:05]wFMCommunicate request_size=10 [10:54:05]MH_SAM_APDU [10:54:05]CAPDU: 80 0D 02 02 05 D4 72 90 3F D2 [10:54:05]Write to MH i2c: E2 0D 00 7D 0A 80 0D 02 02 05 00 D4 72 90 3F D2 00 00 F2 [10:54:05]Write i2c OK [10:54:05]MH_I2C_Read... [10:54:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:05]Read from MH i2c: E2 [10:54:05]MH_I2C_Read... [10:54:05]Read from MH i2c: E2 03 00 [10:54:05]MH_I2C_Read... [10:54:05]Read from MH i2c: E2 03 00 7D 0A 00 90 00 FB [10:54:05]RAPDU: 90 00 [10:54:05]wFMCommunicate OK [10:54:05]wFMCommunicate request_size=4 [10:54:05]MH_SAM_APDU [10:54:05]CAPDU: 80 0D 03 02 [10:54:05]Write to MH i2c: E2 08 00 7E 0A 80 0D 03 02 00 00 00 00 03 [10:54:05]Write i2c OK [10:54:05]MH_I2C_Read... [10:54:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:05]Read from MH i2c: E2 [10:54:05]MH_I2C_Read... [10:54:05]Read from MH i2c: E2 0B 00 [10:54:05]MH_I2C_Read... [10:54:05]Read from MH i2c: E2 0B 00 7E 0A 00 52 74 3A E3 C6 05 5A 90 90 00 9C [10:54:05]RAPDU: 52 74 3A E3 C6 05 5A 90 90 00 [10:54:05]wFMCommunicate OK [10:54:05]SAM_PROTO_SignData done [10:54:05]FM_MakeSignedData done [10:54:05]CreateOFDProtocolMessage [10:54:05]wFMCommunicate request_size=4 [10:54:05]MH_SAM_APDU [10:54:05]CAPDU: 80 11 00 00 [10:54:05]Write to MH i2c: E2 08 00 7F 0A 80 11 00 00 00 00 00 00 03 [10:54:05]Write i2c OK [10:54:05]MH_I2C_Read... [10:54:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:05]Read from MH i2c: E2 [10:54:05]MH_I2C_Read... [10:54:05]Read from MH i2c: E2 17 00 [10:54:05]MH_I2C_Read... [10:54:05]Read from MH i2c: E2 17 00 7F 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 59 [10:54:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:54:05]wFMCommunicate OK [10:54:05]CreateOFDProtocolMessage done [10:54:05]OFDSenderStorePacket 67449 [10:54:05]StoreOFDPacket docnum=67449 [10:54:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 36 E0 07 01 3D 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 CD E5 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 79 07 01 00 35 04 06 00 29 D4 72 90 3F D2 52 74 3A E3 C6 05 5A 90 [10:54:05]CheckFolder [10:54:05]dirname=/storage/ofd_packets [10:54:05]CheckFolder done [10:54:05]ProducePacketName [10:54:05]name=ofd_packets/00067449 [10:54:05]NVStorageSaveData ofd_packets/00067449 [10:54:05]File name is /storage/ofd_packets/00067449 [10:54:05]Write 301 bytes [10:54:05]NVStorageSaveData done [10:54:05]OFDSenderStorePacket done [10:54:05]KKMCreateOFDPacket done [10:54:05]NVStorageSaveData kkm_last_timestamp [10:54:05]File name is /storage/kkm_last_timestamp [10:54:05]Write 4 bytes [10:54:05]NVStorageSaveData done [10:54:05]ExternCall_PrintAddStr [10:54:05]wPrintStart [10:54:05]Write to MH i2c: 01 00 00 80 0A 8A [10:54:05]Write i2c OK [10:54:05]MH_I2C_Read... [10:54:05]Read from MH i2c: 01 [10:54:05]MH_I2C_Read... [10:54:05]Read from MH i2c: 01 07 00 [10:54:05]MH_I2C_Read... [10:54:05]Read from MH i2c: 01 07 00 80 0A 00 00 00 00 00 FF 0F 9F [10:54:05]RasterBufferAndPrint [10:54:05]line Счет N : (1)507478 [10:54:05]line ИНН: 02508201610067 [10:54:05]line Контрольно-Кассовый Чек [10:54:05]line ПРОДАЖА [10:54:05]line ТРК (МРК, ГНК) : 43 [10:54:05]line Товар: 2710124130 [10:54:05]line Аи-92-К-5 [10:54:05]line 7.490 * 66.80 [10:54:05]line = 500.33 [10:54:05]line НДС 12% НСП 1% [10:54:05]line > о реализуемом товаре [10:54:05]line ОКРУГЛЕНИЕ: -0.33 [10:54:05]line ИТОГО: 500.00 [10:54:05]line Внесено: 500.00 [10:54:05]line СДАЧА: 0.00 [10:54:05]line НСП 1% : 4.43 [10:54:05]line НДС 12% : 53.13 [10:54:05]line Наличными: 500.00 [10:54:05]line Безнал.: 0.00 [10:54:05]line Место: АЗС № 91 "Партнер Нефть" [10:54:05]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [10:54:05]line СНО: Общий режим [10:54:05]line Чек 47 16.05.2024 10:54 [10:54:05]line Смена: 357 ФФД: 1.0 [10:54:05]line ЗНМ: 0300000119 [10:54:05]line РНМ: 0000000000091845 [10:54:05]line Версия ККМ: 001 [10:54:05]line ФМ: 0000000000871829 [10:54:05]line ФД: 67449 [10:54:05]line ФПД: 45992431861714 [10:54:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T105405&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67449&fm=45992431861714&tin=02508201610067®Number=0000000000091845&sum=50000 [10:54:05]OFD Sender: Processing packet 67449 [packets to send 35, broken 34] [10:54:05]ProducePacketName [10:54:05]name=ofd_packets/00067449 [10:54:05]OFD Sender: To server: pG, [10:54:05]CommunicateWithHost lk.salyk.kg:30040 [10:54:05]ConnectInit lk.salyk.kg [10:54:05]written 0, free lines is 4095 [10:54:05]Connected sock=10 [10:54: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 38 32 39 0F 01 00 00 36 E0 07 01 3D 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 CD E5 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 79 07 01 00 35 04 06 00 29 D4 72 90 3F D2 52 74 3A E3 C6 05 5A 90 [10:54:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 0B AC 47 00 F9 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 38 32 39 10 04 04 00 79 07 01 00 F4 03 04 00 A8 8D 45 66 B6 04 01 00 00 F6 CD 1E FF F2 5C 95 61 [10:54:06]CommunicateWithHost err = 0 [10:54:06]CheckOFDResponse [10:54:06]1017 (14) - 77093643461234 [10:54:06]1041 (16) - 0000000000871829 [10:54:06]1040 (4) - 67449 [10:54:06]1012 (4) - 16.05.2024 04:38 [10:54:06]1206 (1) - 0 [10:54:06]OFD Sender: Remove packet 67449 [10:54:06]ProducePacketName [10:54:06]name=ofd_packets/00067449 [10:54:06]NVStorageDeleteData [10:54:06]Write to MH i2c: 01 00 00 AA 0A B4 [10:54:06]Write i2c OK [10:54:06]MH_I2C_Read... [10:54:06]Read from MH i2c: 01 [10:54:06]MH_I2C_Read... [10:54:06]Read from MH i2c: 01 07 00 [10:54:06]MH_I2C_Read... [10:54:06]Read from MH i2c: 01 07 00 AA 0A 00 00 00 00 00 D8 0C 9F [10:54:06]RasterBufferAndPrint [10:54:06]line [10:54:06]line [10:54:06]line [10:54:06]line [10:54:06]line [10:54:06]written 0, free lines is 3295 [10:54:06]MH_Cut [10:54:06]Write to MH i2c: D1 01 00 B1 0A 01 8D [10:54:06]Write i2c OK [10:54:06]MH_I2C_Read... [10:54:06]Read from MH i2c: D1 [10:54:06]MH_I2C_Read... [10:54:06]Read from MH i2c: D1 01 00 [10:54:06]MH_I2C_Read... [10:54:06]Read from MH i2c: D1 01 00 B1 0A 00 8C [10:54:06]Write to MH i2c: 01 00 00 B2 0A BC [10:54:06]Write i2c OK [10:54:06]MH_I2C_Read... [10:54:06]OFD Sender: No OFD packet to send [10:54:06]*** Cut start [10:54:06]*** Purtial cut [10:54:06]*** CUTSNS_PIN = 0 [10:54:07]*** Stage 1: CUTSNS_PIN = 1 [10:54:08]Read from MH i2c: 01 [10:54:09]MH_I2C_Read... [10:54:09]*** Stop cut motor [10:54:09]*** Cut end [10:54:09]Read from MH i2c: 01 07 00 [10:54:09]MH_I2C_Read... [10:54:09]Read from MH i2c: 01 07 00 B2 0A 00 00 00 00 00 FF 0F D1 [10:54:09]process_action close_receipt done [10:54:09]requested_data is exist [10:54:09]produce_requested_data [10:54:09]requested_item fm.sn is exist - process it [10:54:09]wFMCommunicate request_size=4 [10:54:09]MH_SAM_APDU [10:54:09]CAPDU: 80 11 00 00 [10:54:09]Write to MH i2c: E2 08 00 B3 0A 80 11 00 00 00 00 00 00 37 [10:54:09]Write i2c OK [10:54:09]MH_I2C_Read... [10:54:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:09]Read from MH i2c: E2 [10:54:09]MH_I2C_Read... [10:54:09]Read from MH i2c: E2 17 00 [10:54:09]MH_I2C_Read... [10:54:09]Read from MH i2c: E2 17 00 B3 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 8D [10:54:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:54:09]wFMCommunicate OK [10:54:09]requested_item fd.num is exist - process it [10:54:09]SAM_PROTO_GetFieldsCounters [10:54:09]wFMCommunicate request_size=4 [10:54:09]MH_SAM_APDU [10:54:09]CAPDU: 80 13 00 00 [10:54:09]Write to MH i2c: E2 08 00 B4 0A 80 13 00 00 00 00 00 00 3A [10:54:09]Write i2c OK [10:54:09]MH_I2C_Read... [10:54:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:09]Read from MH i2c: E2 [10:54:09]MH_I2C_Read... [10:54:09]Read from MH i2c: E2 62 00 [10:54:09]MH_I2C_Read... [10:54:09]Read from MH i2c: E2 62 00 B4 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 79 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [10:54: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 79 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:54:09]wFMCommunicate OK [10:54:09]SAM_PROTO_GetFieldsCounters done [10:54:09]requested_item shift.num is exist - process it [10:54:09]requested_item shift.opened is exist - process it [10:54:09]req_shift_opened [10:54:09]FM_GetShiftState [10:54:09]SAM_PROTO_GetShiftState [10:54:09]wFMCommunicate request_size=4 [10:54:09]MH_SAM_APDU [10:54:09]CAPDU: 80 13 01 00 [10:54:09]Write to MH i2c: E2 08 00 B5 0A 80 13 01 00 00 00 00 00 3C [10:54:09]Write i2c OK [10:54:09]MH_I2C_Read... [10:54:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:09]Read from MH i2c: E2 [10:54:09]MH_I2C_Read... [10:54:09]Read from MH i2c: E2 0E 00 [10:54:09]MH_I2C_Read... [10:54:09]Read from MH i2c: E2 0E 00 B5 0A 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 E8 [10:54:09]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [10:54:09]wFMCommunicate OK [10:54:09]SAM_PROTO_GetShiftState done [10:54:09]FM_GetShiftState done [10:54:09]req_shift_opened done [10:54:09]requested_item shift.open_date is exist - process it [10:54:09]req_shift_open_date [10:54:09]req_shift_open_date done [10:54:09]produce_requested_data done [10:54:09]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67449,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [10:54:09]process_action_free close_receipt [10:54:09]json_value_free [10:54:09]json_value_free done [10:54:09]process_json_proto returns [10:54:09]Send response to host [10:54:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67449,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [10:54:09]free response buf [10:54:09]execute_script done [10:54:09]execute_script returns [10:54:09]free content buf [10:54:09]Sock 9.Close socket [10:54:09]Sock 9.Thread stoped [10:54:11]OFD Sender: No OFD packet to send [10:54:16]OFD Sender: No OFD packet to send [10:54:21]OFD Sender: No OFD packet to send [10:54:26]OFD Sender: No OFD packet to send [10:54:31]OFD Sender: No OFD packet to send [10:54:36]OFD Sender: No OFD packet to send [10:54:41]OFD Sender: No OFD packet to send [10:54:46]OFD Sender: No OFD packet to send [10:54:51]OFD Sender: No OFD packet to send [10:54:56]OFD Sender: No OFD packet to send [10:55:01]OFD Sender: No OFD packet to send [10:55:06]OFD Sender: No OFD packet to send [10:55:11]OFD Sender: No OFD packet to send [10:55:16]OFD Sender: No OFD packet to send [10:55:21]OFD Sender: No OFD packet to send [10:55:26]OFD Sender: No OFD packet to send [10:55:31]OFD Sender: No OFD packet to send [10:55:36]OFD Sender: No OFD packet to send [10:55:41]OFD Sender: No OFD packet to send [10:55:46]OFD Sender: No OFD packet to send [10:55:51]OFD Sender: No OFD packet to send [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:26]OFD Sender: No OFD packet to send [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]accept exits with 8 [10:58:41]New connection [10:58:41]New thread 3067460964 created [10:58:41]Thread 3067604324 joined [10:58:41]Waiting for new connection... [10:58:41] Sock 8.Parse request [10:58:41]Sock 8.Check first char [10:58:41]Sock 8.First char is OK [10:58:41]request: POST /json_proto HTTP/1.0 [10:58:41]Method: POST [10:58:41]URL: /json_proto [10:58:41]Method is POST - this is cgi request [10:58:41]url: /json_proto [10:58:41]query_string will be loaded in cgi processing [10:58:41]execute_cgi json_proto POST (null) [10:58:41]execute_cgi path=json_proto method=POST [10:58:41]POST find Content-Length [10:58:41]Host: 172.17.41.195:8080 [10:58:41]Content-Length: 1209 [10:58:41]Content-Type: application/json [10:58:41] [10:58:41]POST finish read [10:58:41]Found Content-Length = 1209 [10:58:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507479\u000A16.05.2024 10:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 23.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1718.10\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:41]execute_script... [10:58:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507479\u000A16.05.2024 10:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 23.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1718.10\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:41]POST & json_proto [10:58:41]process_json_proto [10:58:41]json parsed OK: [10:58:41]protocol is kg_v1.0 [10:58:41]action value=print_text [10:58:41]process_action print_text [10:58:41]cmd_print_text [10:58:41]ExternCall_PrintAddStr [10:58:41]wPrintStart [10:58:41]Write to MH i2c: 01 00 00 B6 0A C0 [10:58:41]Write i2c OK [10:58:41]MH_I2C_Read... [10:58:41]Read from MH i2c: 01 [10:58:41]MH_I2C_Read... [10:58:41]Read from MH i2c: 01 07 00 [10:58:41]MH_I2C_Read... [10:58:41]Read from MH i2c: 01 07 00 B6 0A 00 00 00 00 00 FF 0F D5 [10:58:41]RasterBufferAndPrint [10:58:41]line *****ТОВАРНЫЙ ЧЕК***** [10:58:41]line АЗС-91 [10:58:41]line Партнер нефть [10:58:41]line 02508201610067 [10:58:41]line Кассир : Пайзулдаева А. [10:58:41]line Счет N : (1)507479 [10:58:41]line 16.05.2024 10:41 [10:58:41]line ПРОДАЖА [10:58:41]line ТРК (МРК, ГНК): 21 [10:58:41]line Вид ГСМ : 2710194210 [10:58:41]line ДТ-К-5 [10:58:41]line 23.000 x 74.70 [10:58:41]line ИТОГ: 1718.10 [10:58:41]line Тип оплаты: Талоны: Топливная Карта [10:58:41]line 02750 [10:58:41]line ______________________ [10:58:41]line (подпись) [10:58:41]written 0, free lines is 4095 [10:58:41]Write to MH i2c: 01 00 00 CA 0A D4 [10:58:41]Write i2c OK [10:58:41]MH_I2C_Read... [10:58:41]Read from MH i2c: 01 [10:58:41]MH_I2C_Read... [10:58:41]Read from MH i2c: 01 07 00 [10:58:41]MH_I2C_Read... [10:58:41]Read from MH i2c: 01 07 00 CA 0A 00 00 00 00 00 10 0E F9 [10:58:41]RasterBufferAndPrint [10:58:41]line [10:58:41]line [10:58:41]line [10:58:41]line [10:58:41]line [10:58:41]written 0, free lines is 3601 [10:58:41]MH_Cut [10:58:41]Write to MH i2c: D1 01 00 D1 0A 01 AD [10:58:41]Write i2c OK [10:58:41]MH_I2C_Read... [10:58:41]Read from MH i2c: D1 [10:58:41]MH_I2C_Read... [10:58:41]Read from MH i2c: D1 01 00 [10:58:41]MH_I2C_Read... [10:58:41]Read from MH i2c: D1 01 00 D1 0A 00 AC [10:58:41]Write to MH i2c: 01 00 00 D2 0A DC [10:58:41]Write i2c OK [10:58:41]MH_I2C_Read... [10:58:41]OFD Sender: No OFD packet to send [10:58:42]*** Cut start [10:58:42]*** Purtial cut [10:58:42]*** Stage 1: CUTSNS_PIN = 1 [10:58:42]Read from MH i2c: 01 [10:58:42]MH_I2C_Read... [10:58:42]*** Stop cut motor [10:58:42]*** Cut end [10:58:42]Read from MH i2c: 01 07 00 [10:58:42]MH_I2C_Read... [10:58:42]Read from MH i2c: 01 07 00 D2 0A 00 00 00 00 00 FF 0F F1 [10:58:42]process_action print_text done [10:58:42]requested_data is exist [10:58:42]produce_requested_data [10:58:42]requested_item fm.sn is exist - process it [10:58:42]wFMCommunicate request_size=4 [10:58:42]MH_SAM_APDU [10:58:42]CAPDU: 80 11 00 00 [10:58:42]Write to MH i2c: E2 08 00 D3 0A 80 11 00 00 00 00 00 00 57 [10:58:42]Write i2c OK [10:58:42]MH_I2C_Read... [10:58:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:42]Read from MH i2c: E2 [10:58:42]MH_I2C_Read... [10:58:42]Read from MH i2c: E2 17 00 [10:58:42]MH_I2C_Read... [10:58:42]Read from MH i2c: E2 17 00 D3 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AD [10:58:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:58:42]wFMCommunicate OK [10:58:42]requested_item fd.num is exist - process it [10:58:42]SAM_PROTO_GetFieldsCounters [10:58:42]wFMCommunicate request_size=4 [10:58:42]MH_SAM_APDU [10:58:42]CAPDU: 80 13 00 00 [10:58:42]Write to MH i2c: E2 08 00 D4 0A 80 13 00 00 00 00 00 00 5A [10:58:42]Write i2c OK [10:58:42]MH_I2C_Read... [10:58:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:58:42]Read from MH i2c: E2 [10:58:42]MH_I2C_Read... [10:58:42]Read from MH i2c: E2 62 00 [10:58:42]MH_I2C_Read... [10:58:42]Read from MH i2c: E2 62 00 D4 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 79 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [10:58: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 79 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:58:42]wFMCommunicate OK [10:58:42]SAM_PROTO_GetFieldsCounters done [10:58:42]requested_item shift.num is exist - process it [10:58:42]requested_item shift.opened is exist - process it [10:58:42]req_shift_opened [10:58:42]FM_GetShiftState [10:58:42]SAM_PROTO_GetShiftState [10:58:42]wFMCommunicate request_size=4 [10:58:42]MH_SAM_APDU [10:58:42]CAPDU: 80 13 01 00 [10:58:42]Write to MH i2c: E2 08 00 D5 0A 80 13 01 00 00 00 00 00 5C [10:58:42]Write i2c OK [10:58:42]MH_I2C_Read... [10:58:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:42]Read from MH i2c: E2 [10:58:42]MH_I2C_Read... [10:58:42]Read from MH i2c: E2 0E 00 [10:58:42]MH_I2C_Read... [10:58:42]Read from MH i2c: E2 0E 00 D5 0A 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 08 [10:58:42]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [10:58:42]wFMCommunicate OK [10:58:42]SAM_PROTO_GetShiftState done [10:58:42]FM_GetShiftState done [10:58:42]req_shift_opened done [10:58:42]requested_item shift.open_date is exist - process it [10:58:42]req_shift_open_date [10:58:42]req_shift_open_date done [10:58:42]produce_requested_data done [10:58:42]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67449,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [10:58:42]process_action_free print_text [10:58:42]json_value_free [10:58:42]json_value_free done [10:58:42]process_json_proto returns [10:58:42]Send response to host [10:58:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67449,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [10:58:42]free response buf [10:58:42]execute_script done [10:58:42]execute_script returns [10:58:42]free content buf [10:58:42]Sock 8.Close socket [10:58:42]Sock 8.Thread stoped [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]accept exits with 9 [10:59:46]New connection [10:59:46]New thread 3067604324 created [10:59:46]Thread 3067460964 joined [10:59:46]Waiting for new connection... [10:59:46] Sock 9.Parse request [10:59:46]Sock 9.Check first char [10:59:46]Sock 9.First char is OK [10:59:46]request: POST /json_proto HTTP/1.0 [10:59:46]Method: POST [10:59:46]URL: /json_proto [10:59:46]Method is POST - this is cgi request [10:59:46]url: /json_proto [10:59:46]query_string will be loaded in cgi processing [10:59:46]execute_cgi json_proto POST (null) [10:59:46]execute_cgi path=json_proto method=POST [10:59:46]POST find Content-Length [10:59:46]Host: 172.17.41.195:8080 [10:59:46]Content-Length: 677 [10:59:46]Content-Type: application/json [10:59:46] [10:59:46]POST finish read [10:59:46]Found Content-Length = 677 [10:59:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507480", "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.80, "quantity" : 3.000, "sum" : 200.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:46]execute_script... [10:59: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)507480", "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.80, "quantity" : 3.000, "sum" : 200.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:46]POST & json_proto [10:59:46]process_json_proto [10:59:46]json parsed OK: [10:59:46]protocol is kg_v1.0 [10:59:46]action value=close_receipt [10:59:46]process_action close_receipt [10:59:46]cmd_close_receipt [10:59:46]MH_GetDate [10:59:46]Write to MH i2c: F0 00 00 D6 0A CF [10:59:46]Write i2c OK [10:59:46]MH_I2C_Read... [10:59:46]Read from MH i2c: F0 [10:59:46]MH_I2C_Read... [10:59:46]Read from MH i2c: F0 09 00 [10:59:46]MH_I2C_Read... [10:59:46]Read from MH i2c: F0 09 00 D6 0A 00 24 E7 45 66 FC 21 6F 64 7E [10:59:46]GetLastDocTimeStamp 1715856845 [10:59:46]current date 1715857188 [10:59:46]FM_GetShiftState [10:59:46]SAM_PROTO_GetShiftState [10:59:46]wFMCommunicate request_size=4 [10:59:46]MH_SAM_APDU [10:59:46]CAPDU: 80 13 01 00 [10:59:46]Write to MH i2c: E2 08 00 D7 0A 80 13 01 00 00 00 00 00 5E [10:59:46]Write i2c OK [10:59:46]MH_I2C_Read... [10:59:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:46]Read from MH i2c: E2 [10:59:46]MH_I2C_Read... [10:59:46]Read from MH i2c: E2 0E 00 [10:59:46]MH_I2C_Read... [10:59:46]Read from MH i2c: E2 0E 00 D7 0A 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 0A [10:59:46]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [10:59:46]wFMCommunicate OK [10:59:46]SAM_PROTO_GetShiftState done [10:59:46]FM_GetShiftState done [10:59:46]opened in 1715818916 [10:59:46]opened+sec_in_day 1715905316 [10:59:46]quantity*price = 20040 [10:59:46]sum+1 = 20041 [10:59:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.28 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 48 16.05.2024 10:59 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67450 ФПД: 258245838459062 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T105948&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67450&fm=258245838459062&tin=02508201610067®Number=0000000000091845&sum=20000 [10:59:47]StoreToDocumentArchive [10:59:47]shift 357 fd 67450 [10:59:47]save to /storage/0357/doc_00067450 [10:59:47]save last doc name /storage/0357/doc_00067450 to /storage/kkm_last_doc_name [10:59:47]save OK [10:59:47]Clear old archive folders... [10:59:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:59:47]tlvbuf is 00C85240 [10:59:47]SAM_PROTO_ClearQueue [10:59:47]wFMCommunicate request_size=4 [10:59:47]MH_SAM_APDU [10:59:47]CAPDU: 80 09 00 00 [10:59:47]Write to MH i2c: E2 08 00 E4 0A 80 09 00 00 00 00 00 00 60 [10:59:47]Write i2c OK [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: E2 [10:59:47]MH_I2C_Read... [10:59:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:59:47]Read from MH i2c: E2 03 00 [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: E2 03 00 E4 0A 00 90 00 62 [10:59:47]RAPDU: 90 00 [10:59:47]wFMCommunicate OK [10:59:47]SAM_PROTO_ClearQueue done [10:59:47]KKMCreateOFDPacket [10:59:47]OFDProtocolAddRootSTLVToBuf [10:59:47]FM_MakeSignedData [10:59:47]FM_MakeSignedData [10:59:47]SAM_PROTO_SignData [10:59:47]wFMCommunicate request_size=4 [10:59:47]MH_SAM_APDU [10:59:47]CAPDU: 80 0D 01 02 [10:59:47]Write to MH i2c: E2 08 00 E5 0A 80 0D 01 02 00 00 00 00 68 [10:59:47]Write i2c OK [10:59:47]MH_I2C_Read... [10:59:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:59:47]Read from MH i2c: E2 [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: E2 03 00 [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: E2 03 00 E5 0A 00 90 00 63 [10:59:47]RAPDU: 90 00 [10:59:47]wFMCommunicate OK [10:59:47]wFMCommunicate request_size=255 [10:59:47]MH_SAM_APDU [10:59: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 B8 0B 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 48 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 50 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 24 E7 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 7A 07 01 00 35 04 06 00 EA [10:59:47]Write to MH i2c: E2 02 01 E6 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 B8 0B 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 48 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 50 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 24 E7 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 7A 07 01 00 35 04 06 00 EA 00 00 9F [10:59:47]Write i2c OK [10:59:47]MH_I2C_Read... [10:59:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:48]Read from MH i2c: E2 [10:59:48]MH_I2C_Read... [10:59:48]Read from MH i2c: E2 03 00 [10:59:48]MH_I2C_Read... [10:59:48]Read from MH i2c: E2 03 00 E6 0A 00 90 00 64 [10:59:48]RAPDU: 90 00 [10:59:48]wFMCommunicate OK [10:59:48]wFMCommunicate request_size=10 [10:59:48]MH_SAM_APDU [10:59:48]CAPDU: 80 0D 02 02 05 DF 8B 77 50 B6 [10:59:48]Write to MH i2c: E2 0D 00 E7 0A 80 0D 02 02 05 00 DF 8B 77 50 B6 00 00 5C [10:59:48]Write i2c OK [10:59:48]MH_I2C_Read... [10:59:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:48]Read from MH i2c: E2 [10:59:48]MH_I2C_Read... [10:59:48]Read from MH i2c: E2 03 00 [10:59:48]MH_I2C_Read... [10:59:48]Read from MH i2c: E2 03 00 E7 0A 00 90 00 65 [10:59:48]RAPDU: 90 00 [10:59:48]wFMCommunicate OK [10:59:48]wFMCommunicate request_size=4 [10:59:48]MH_SAM_APDU [10:59:48]CAPDU: 80 0D 03 02 [10:59:48]Write to MH i2c: E2 08 00 E8 0A 80 0D 03 02 00 00 00 00 6D [10:59:48]Write i2c OK [10:59:48]MH_I2C_Read... [10:59:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:59:48]Read from MH i2c: E2 [10:59:48]MH_I2C_Read... [10:59:48]Read from MH i2c: E2 0B 00 [10:59:48]MH_I2C_Read... [10:59:48]Read from MH i2c: E2 0B 00 E8 0A 00 35 02 4C 5C A1 8C 54 5F 90 00 2D [10:59:48]RAPDU: 35 02 4C 5C A1 8C 54 5F 90 00 [10:59:48]wFMCommunicate OK [10:59:48]SAM_PROTO_SignData done [10:59:48]FM_MakeSignedData done [10:59:48]CreateOFDProtocolMessage [10:59:48]wFMCommunicate request_size=4 [10:59:48]MH_SAM_APDU [10:59:48]CAPDU: 80 11 00 00 [10:59:48]Write to MH i2c: E2 08 00 E9 0A 80 11 00 00 00 00 00 00 6D [10:59:48]Write i2c OK [10:59:48]MH_I2C_Read... [10:59:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:48]Read from MH i2c: E2 [10:59:48]MH_I2C_Read... [10:59:48]Read from MH i2c: E2 17 00 [10:59:48]MH_I2C_Read... [10:59:48]Read from MH i2c: E2 17 00 E9 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C3 [10:59:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:59:48]wFMCommunicate OK [10:59:48]CreateOFDProtocolMessage done [10:59:48]OFDSenderStorePacket 67450 [10:59:48]StoreOFDPacket docnum=67450 [10:59:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 68 C3 07 01 D8 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 B8 0B 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 48 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 50 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 24 E7 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 7A 07 01 00 35 04 06 00 EA DF 8B 77 50 B6 35 02 4C 5C A1 8C 54 5F [10:59:48]CheckFolder [10:59:48]dirname=/storage/ofd_packets [10:59:48]CheckFolder done [10:59:48]ProducePacketName [10:59:48]name=ofd_packets/00067450 [10:59:48]NVStorageSaveData ofd_packets/00067450 [10:59:48]File name is /storage/ofd_packets/00067450 [10:59:48]Write 301 bytes [10:59:48]NVStorageSaveData done [10:59:48]OFDSenderStorePacket done [10:59:48]KKMCreateOFDPacket done [10:59:48]NVStorageSaveData kkm_last_timestamp [10:59:48]File name is /storage/kkm_last_timestamp [10:59:48]Write 4 bytes [10:59:48]NVStorageSaveData done [10:59:48]ExternCall_PrintAddStr [10:59:48]wPrintStart [10:59:48]Write to MH i2c: 01 00 00 EA 0A F4 [10:59:48]Write i2c OK [10:59:48]MH_I2C_Read... [10:59:48]Read from MH i2c: 01 [10:59:48]MH_I2C_Read... [10:59:48]Read from MH i2c: 01 07 00 [10:59:48]MH_I2C_Read... [10:59:48]Read from MH i2c: 01 07 00 EA 0A 00 00 00 00 00 FF 0F 09 [10:59:48]RasterBufferAndPrint [10:59:48]line Счет N : (1)507480 [10:59:48]line ИНН: 02508201610067 [10:59:48]line Контрольно-Кассовый Чек [10:59:48]line ПРОДАЖА [10:59:48]line ТРК (МРК, ГНК) : 33 [10:59:48]line Товар: 2710124130 [10:59:48]line Аи-92-К-5 [10:59:48]line 3.000 * 66.80 [10:59:48]line = 200.40 [10:59:48]line НДС 12% НСП 1% [10:59:48]line > о реализуемом товаре [10:59:48]line ОКРУГЛЕНИЕ: -0.40 [10:59:48]line ИТОГО: 200.00 [10:59:48]line Внесено: 200.00 [10:59:48]line СДАЧА: 0.00 [10:59:48]line НСП 1% : 1.77 [10:59:48]line НДС 12% : 21.28 [10:59:48]line Наличными: 200.00 [10:59:48]line Безнал.: 0.00 [10:59:48]line Место: АЗС № 91 "Партнер Нефть" [10:59:48]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [10:59:48]line СНО: Общий режим [10:59:48]line Чек 48 16.05.2024 10:59 [10:59:48]line Смена: 357 ФФД: 1.0 [10:59:48]line ЗНМ: 0300000119 [10:59:48]line РНМ: 0000000000091845 [10:59:48]line Версия ККМ: 001 [10:59:48]line ФМ: 0000000000871829 [10:59:48]line ФД: 67450 [10:59:48]line ФПД: 258245838459062 [10:59:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T105948&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67450&fm=258245838459062&tin=02508201610067®Number=0000000000091845&sum=20000 [10:59:48]OFD Sender: Processing packet 67450 [packets to send 35, broken 34] [10:59:48]ProducePacketName [10:59:48]name=ofd_packets/00067450 [10:59:48]OFD Sender: To server: pG, [10:59:48]CommunicateWithHost lk.salyk.kg:30040 [10:59:48]ConnectInit lk.salyk.kg [10:59:48]written 0, free lines is 4095 [10:59:48]Connected sock=10 [10:59: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 38 32 39 0F 01 00 00 68 C3 07 01 D8 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 B8 0B 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 48 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 50 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 24 E7 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 7A 07 01 00 35 04 06 00 EA DF 8B 77 50 B6 35 02 4C 5C A1 8C 54 5F [10:59:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 B1 3D 47 00 46 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 7A 07 01 00 F4 03 04 00 FE 8E 45 66 B6 04 01 00 00 1E D5 62 78 3F EB 22 5C [10:59:48]CommunicateWithHost err = 0 [10:59:48]CheckOFDResponse [10:59:48]1017 (14) - 77093643461234 [10:59:48]1041 (16) - 0000000000871829 [10:59:48]1040 (4) - 67450 [10:59:48]1012 (4) - 16.05.2024 04:43 [10:59:48]1206 (1) - 0 [10:59:48]OFD Sender: Remove packet 67450 [10:59:48]ProducePacketName [10:59:48]name=ofd_packets/00067450 [10:59:48]NVStorageDeleteData [10:59:49]Write to MH i2c: 01 00 00 14 0B 1F [10:59:49]Write i2c OK [10:59:49]MH_I2C_Read... [10:59:49]Read from MH i2c: 01 [10:59:49]MH_I2C_Read... [10:59:49]Read from MH i2c: 01 07 00 [10:59:49]MH_I2C_Read... [10:59:49]Read from MH i2c: 01 07 00 14 0B 00 00 00 00 00 CB 0C FD [10:59:49]RasterBufferAndPrint [10:59:49]line [10:59:49]line [10:59:49]line [10:59:49]line [10:59:49]line [10:59:49]written 0, free lines is 3282 [10:59:49]MH_Cut [10:59:49]Write to MH i2c: D1 01 00 1B 0B 01 F8 [10:59:49]Write i2c OK [10:59:49]MH_I2C_Read... [10:59:49]Read from MH i2c: D1 [10:59:49]MH_I2C_Read... [10:59:49]Read from MH i2c: D1 01 00 [10:59:49]MH_I2C_Read... [10:59:49]Read from MH i2c: D1 01 00 1B 0B 00 F7 [10:59:49]Write to MH i2c: 01 00 00 1C 0B 27 [10:59:49]Write i2c OK [10:59:49]MH_I2C_Read... [10:59:49]OFD Sender: No OFD packet to send [10:59:49]*** Cut start [10:59:49]*** Purtial cut [10:59:49]*** CUTSNS_PIN = 0 [10:59:50]*** Stage 1: CUTSNS_PIN = 1 [10:59:51]Read from MH i2c: 01 [10:59:51]MH_I2C_Read... [10:59:51]*** Stop cut motor [10:59:51]*** Cut end [10:59:51]Read from MH i2c: 01 07 00 [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: 01 07 00 1C 0B 00 00 00 00 00 FF 0F 3C [10:59:51]process_action close_receipt done [10:59:51]requested_data is exist [10:59:51]produce_requested_data [10:59:51]requested_item fm.sn is exist - process it [10:59:51]wFMCommunicate request_size=4 [10:59:51]MH_SAM_APDU [10:59:51]CAPDU: 80 11 00 00 [10:59:51]Write to MH i2c: E2 08 00 1D 0B 80 11 00 00 00 00 00 00 A2 [10:59:51]Write i2c OK [10:59:51]MH_I2C_Read... [10:59:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:51]Read from MH i2c: E2 [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: E2 17 00 [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: E2 17 00 1D 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F8 [10:59:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:59:51]wFMCommunicate OK [10:59:51]requested_item fd.num is exist - process it [10:59:51]SAM_PROTO_GetFieldsCounters [10:59:51]wFMCommunicate request_size=4 [10:59:51]MH_SAM_APDU [10:59:51]CAPDU: 80 13 00 00 [10:59:51]Write to MH i2c: E2 08 00 1E 0B 80 13 00 00 00 00 00 00 A5 [10:59:51]Write i2c OK [10:59:51]MH_I2C_Read... [10:59:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:59:52]Read from MH i2c: E2 [10:59:52]MH_I2C_Read... [10:59:52]Read from MH i2c: E2 62 00 [10:59:52]MH_I2C_Read... [10:59:52]Read from MH i2c: E2 62 00 1E 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 7A 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [10:59: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 7A 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:59:52]wFMCommunicate OK [10:59:52]SAM_PROTO_GetFieldsCounters done [10:59:52]requested_item shift.num is exist - process it [10:59:52]requested_item shift.opened is exist - process it [10:59:52]req_shift_opened [10:59:52]FM_GetShiftState [10:59:52]SAM_PROTO_GetShiftState [10:59:52]wFMCommunicate request_size=4 [10:59:52]MH_SAM_APDU [10:59:52]CAPDU: 80 13 01 00 [10:59:52]Write to MH i2c: E2 08 00 1F 0B 80 13 01 00 00 00 00 00 A7 [10:59:52]Write i2c OK [10:59:52]MH_I2C_Read... [10:59:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:52]Read from MH i2c: E2 [10:59:52]MH_I2C_Read... [10:59:52]Read from MH i2c: E2 0E 00 [10:59:52]MH_I2C_Read... [10:59:52]Read from MH i2c: E2 0E 00 1F 0B 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 53 [10:59:52]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [10:59:52]wFMCommunicate OK [10:59:52]SAM_PROTO_GetShiftState done [10:59:52]FM_GetShiftState done [10:59:52]req_shift_opened done [10:59:52]requested_item shift.open_date is exist - process it [10:59:52]req_shift_open_date [10:59:52]req_shift_open_date done [10:59:52]produce_requested_data done [10:59:52]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67450,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [10:59:52]process_action_free close_receipt [10:59:52]json_value_free [10:59:52]json_value_free done [10:59:52]process_json_proto returns [10:59:52]Send response to host [10:59:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67450,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [10:59:52]free response buf [10:59:52]execute_script done [10:59:52]execute_script returns [10:59:52]free content buf [10:59:52]Sock 9.Close socket [10:59:52]Sock 9.Thread stoped [10:59:54]OFD Sender: No OFD packet to send [10:59:59]OFD Sender: No OFD packet to send [11:00:04]OFD Sender: No OFD packet to send [11:00:09]OFD Sender: No OFD packet to send [11:00:14]OFD Sender: No OFD packet to send [11:00:19]OFD Sender: No OFD packet to send [11:00:24]OFD Sender: No OFD packet to send [11:00:29]OFD Sender: No OFD packet to send [11:00:34]OFD Sender: No OFD packet to send [11:00:39]OFD Sender: No OFD packet to send [11:00:44]OFD Sender: No OFD packet to send [11:00:49]OFD Sender: No OFD packet to send [11:00:54]OFD Sender: No OFD packet to send [11:00:59]OFD Sender: No OFD packet to send [11:01:04]OFD Sender: No OFD packet to send [11:01:09]OFD Sender: No OFD packet to send [11:01:14]OFD Sender: No OFD packet to send [11:01:19]OFD Sender: No OFD packet to send [11:01:24]OFD Sender: No OFD packet to send [11:01:29]OFD Sender: No OFD packet to send [11:01:34]OFD Sender: No OFD packet to send [11:01:39]OFD Sender: No OFD packet to send [11:01:44]OFD Sender: No OFD packet to send [11:01:49]OFD Sender: No OFD packet to send [11:01:54]OFD Sender: No OFD packet to send [11:01:59]OFD Sender: No OFD packet to send [11:02:04]OFD Sender: No OFD packet to send [11:02:09]OFD Sender: No OFD packet to send [11:02:14]OFD Sender: No OFD packet to send [11:02:19]OFD Sender: No OFD packet to send [11:02:24]OFD Sender: No OFD packet to send [11:02:29]OFD Sender: No OFD packet to send [11:02:34]OFD Sender: No OFD packet to send [11:02:39]OFD Sender: No OFD packet to send [11:02:44]OFD Sender: No OFD packet to send [11:02:49]OFD Sender: No OFD packet to send [11:02:54]OFD Sender: No OFD packet to send [11:02:59]OFD Sender: No OFD packet to send [11:03:04]OFD Sender: No OFD packet to send [11:03:09]OFD Sender: No OFD packet to send [11:03:14]OFD Sender: No OFD packet to send [11:03:19]OFD Sender: No OFD packet to send [11:03:24]OFD Sender: No OFD packet to send [11:03:29]OFD Sender: No OFD packet to send [11:03:34]OFD Sender: No OFD packet to send [11:03:39]OFD Sender: No OFD packet to send [11:03:44]OFD Sender: No OFD packet to send [11:03:49]OFD Sender: No OFD packet to send [11:03:54]OFD Sender: No OFD packet to send [11:03:59]OFD Sender: No OFD packet to send [11:04:04]OFD Sender: No OFD packet to send [11:04:09]OFD Sender: No OFD packet to send [11:04:14]OFD Sender: No OFD packet to send [11:04:19]OFD Sender: No OFD packet to send [11:04:24]OFD Sender: No OFD packet to send [11:04:29]OFD Sender: No OFD packet to send [11:04:34]OFD Sender: No OFD packet to send [11:04:39]OFD Sender: No OFD packet to send [11:04:44]OFD Sender: No OFD packet to send [11:04:49]OFD Sender: No OFD packet to send [11:04:54]OFD Sender: No OFD packet to send [11:04:59]OFD Sender: No OFD packet to send [11:05:04]OFD Sender: No OFD packet to send [11:05:09]OFD Sender: No OFD packet to send [11:05:14]OFD Sender: No OFD packet to send [11:05:19]OFD Sender: No OFD packet to send [11:05:24]OFD Sender: No OFD packet to send [11:05:29]OFD Sender: No OFD packet to send [11:05:34]OFD Sender: No OFD packet to send [11:05:39]OFD Sender: No OFD packet to send [11:05:44]OFD Sender: No OFD packet to send [11:05:49]OFD Sender: No OFD packet to send [11:05:54]OFD Sender: No OFD packet to send [11:05:59]OFD Sender: No OFD packet to send [11:06:04]OFD Sender: No OFD packet to send [11:06:09]OFD Sender: No OFD packet to send [11:06:14]OFD Sender: No OFD packet to send [11:06:19]OFD Sender: No OFD packet to send [11:06:24]OFD Sender: No OFD packet to send [11:06:29]OFD Sender: No OFD packet to send [11:06:34]OFD Sender: No OFD packet to send [11:06:39]OFD Sender: No OFD packet to send [11:06:44]OFD Sender: No OFD packet to send [11:06:49]OFD Sender: No OFD packet to send [11:06:54]OFD Sender: No OFD packet to send [11:06:59]OFD Sender: No OFD packet to send [11:07:04]OFD Sender: No OFD packet to send [11:07:09]OFD Sender: No OFD packet to send [11:07:14]OFD Sender: No OFD packet to send [11:07:19]OFD Sender: No OFD packet to send [11:07:24]OFD Sender: No OFD packet to send [11:07:29]OFD Sender: No OFD packet to send [11:07:34]OFD Sender: No OFD packet to send [11:07:39]OFD Sender: No OFD packet to send [11:07:44]OFD Sender: No OFD packet to send [11:07:49]OFD Sender: No OFD packet to send [11:07:54]OFD Sender: No OFD packet to send [11:07:59]OFD Sender: No OFD packet to send [11:08:04]OFD Sender: No OFD packet to send [11:08:09]OFD Sender: No OFD packet to send [11:08:14]OFD Sender: No OFD packet to send [11:08:19]OFD Sender: No OFD packet to send [11:08:24]OFD Sender: No OFD packet to send [11:08:29]OFD Sender: No OFD packet to send [11:08:34]OFD Sender: No OFD packet to send [11:08:39]OFD Sender: No OFD packet to send [11:08:44]OFD Sender: No OFD packet to send [11:08:49]OFD Sender: No OFD packet to send [11:08:54]OFD Sender: No OFD packet to send [11:08:59]OFD Sender: No OFD packet to send [11:09:04]OFD Sender: No OFD packet to send [11:09:09]OFD Sender: No OFD packet to send [11:09:14]OFD Sender: No OFD packet to send [11:09:19]OFD Sender: No OFD packet to send [11:09:24]OFD Sender: No OFD packet to send [11:09:29]OFD Sender: No OFD packet to send [11:09:34]OFD Sender: No OFD packet to send [11:09:39]OFD Sender: No OFD packet to send [11:09:44]OFD Sender: No OFD packet to send [11:09:49]OFD Sender: No OFD packet to send [11:09:54]OFD Sender: No OFD packet to send [11:09:59]OFD Sender: No OFD packet to send [11:10:04]OFD Sender: No OFD packet to send [11:10:09]OFD Sender: No OFD packet to send [11:10:14]OFD Sender: No OFD packet to send [11:10:20]OFD Sender: No OFD packet to send [11:10:25]OFD Sender: No OFD packet to send [11:10:30]OFD Sender: No OFD packet to send [11:10:35]OFD Sender: No OFD packet to send [11:10:40]OFD Sender: No OFD packet to send [11:10:45]OFD Sender: No OFD packet to send [11:10:50]OFD Sender: No OFD packet to send [11:10:55]OFD Sender: No OFD packet to send [11:11:00]OFD Sender: No OFD packet to send [11:11:05]OFD Sender: No OFD packet to send [11:11:10]OFD Sender: No OFD packet to send [11:11:15]OFD Sender: No OFD packet to send [11:11:20]OFD Sender: No OFD packet to send [11:11:25]OFD Sender: No OFD packet to send [11:11:30]OFD Sender: No OFD packet to send [11:11:35]OFD Sender: No OFD packet to send [11:11:40]OFD Sender: No OFD packet to send [11:11:45]OFD Sender: No OFD packet to send [11:11:50]OFD Sender: No OFD packet to send [11:11:55]OFD Sender: No OFD packet to send [11:12:00]OFD Sender: No OFD packet to send [11:12:05]OFD Sender: No OFD packet to send [11:12:10]OFD Sender: No OFD packet to send [11:12:15]OFD Sender: No OFD packet to send [11:12:20]OFD Sender: No OFD packet to send [11:12:25]OFD Sender: No OFD packet to send [11:12:30]OFD Sender: No OFD packet to send [11:12:35]OFD Sender: No OFD packet to send [11:12:40]OFD Sender: No OFD packet to send [11:12:45]OFD Sender: No OFD packet to send [11:12:50]OFD Sender: No OFD packet to send [11:12:55]OFD Sender: No OFD packet to send [11:13:00]OFD Sender: No OFD packet to send [11:13:05]OFD Sender: No OFD packet to send [11:13:10]OFD Sender: No OFD packet to send [11:13:15]OFD Sender: No OFD packet to send [11:13:20]OFD Sender: No OFD packet to send [11:13:25]OFD Sender: No OFD packet to send [11:13:30]OFD Sender: No OFD packet to send [11:13:35]OFD Sender: No OFD packet to send [11:13:40]OFD Sender: No OFD packet to send [11:13:45]OFD Sender: No OFD packet to send [11:13:50]OFD Sender: No OFD packet to send [11:13:55]OFD Sender: No OFD packet to send [11:13:58]accept exits with 8 [11:13:58]New connection [11:13:58]New thread 3067460964 created [11:13:58]Thread 3067604324 joined [11:13:58]Waiting for new connection... [11:13:58] Sock 8.Parse request [11:13:58]Sock 8.Check first char [11:13:58]Sock 8.First char is OK [11:13:58]request: POST /json_proto HTTP/1.0 [11:13:58]Method: POST [11:13:58]URL: /json_proto [11:13:58]Method is POST - this is cgi request [11:13:58]url: /json_proto [11:13:58]query_string will be loaded in cgi processing [11:13:58]execute_cgi json_proto POST (null) [11:13:58]execute_cgi path=json_proto method=POST [11:13:58]POST find Content-Length [11:13:58]Host: 172.17.41.195:8080 [11:13:58]Content-Length: 1209 [11:13:58]Content-Type: application/json [11:13:58] [11:13:58]POST finish read [11:13:58]Found Content-Length = 1209 [11:13:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507482\u000A16.05.2024 10:56\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.390 x 74.70\u000A\u0418\u0422\u041E\u0413: 1000.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:58]execute_script... [11:13:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507482\u000A16.05.2024 10:56\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.390 x 74.70\u000A\u0418\u0422\u041E\u0413: 1000.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:58]POST & json_proto [11:13:58]process_json_proto [11:13:58]json parsed OK: [11:13:58]protocol is kg_v1.0 [11:13:58]action value=print_text [11:13:58]process_action print_text [11:13:58]cmd_print_text [11:13:58]ExternCall_PrintAddStr [11:13:58]wPrintStart [11:13:58]Write to MH i2c: 01 00 00 20 0B 2B [11:13:58]Write i2c OK [11:13:58]MH_I2C_Read... [11:13:58]Read from MH i2c: 01 [11:13:58]MH_I2C_Read... [11:13:58]Read from MH i2c: 01 07 00 [11:13:58]MH_I2C_Read... [11:13:58]Read from MH i2c: 01 07 00 20 0B 00 00 00 00 00 FF 0F 40 [11:13:58]RasterBufferAndPrint [11:13:58]line *****ТОВАРНЫЙ ЧЕК***** [11:13:58]line АЗС-91 [11:13:58]line Партнер нефть [11:13:58]line 02508201610067 [11:13:58]line Кассир : Пайзулдаева А. [11:13:58]line Счет N : (1)507482 [11:13:58]line 16.05.2024 10:56 [11:13:58]line ПРОДАЖА [11:13:58]line ТРК (МРК, ГНК): 41 [11:13:58]line Вид ГСМ : 2710194210 [11:13:58]line ДТ-К-5 [11:13:58]line 13.390 x 74.70 [11:13:58]line ИТОГ: 1000.23 [11:13:58]line Тип оплаты: Талоны: Топливная Карта [11:13:58]line 02750 [11:13:58]line ______________________ [11:13:58]line (подпись) [11:13:58]written 0, free lines is 4095 [11:13:58]Write to MH i2c: 01 00 00 34 0B 3F [11:13:58]Write i2c OK [11:13:58]MH_I2C_Read... [11:13:58]Read from MH i2c: 01 [11:13:58]MH_I2C_Read... [11:13:58]Read from MH i2c: 01 07 00 [11:13:58]MH_I2C_Read... [11:13:58]Read from MH i2c: 01 07 00 34 0B 00 00 00 00 00 10 0E 64 [11:13:58]RasterBufferAndPrint [11:13:58]line [11:13:58]line [11:13:58]line [11:13:58]line [11:13:58]line [11:13:58]written 0, free lines is 3602 [11:13:58]MH_Cut [11:13:58]Write to MH i2c: D1 01 00 3B 0B 01 18 [11:13:58]Write i2c OK [11:13:58]MH_I2C_Read... [11:13:58]Read from MH i2c: D1 [11:13:58]MH_I2C_Read... [11:13:58]Read from MH i2c: D1 01 00 [11:13:58]MH_I2C_Read... [11:13:58]Read from MH i2c: D1 01 00 3B 0B 00 17 [11:13:58]Write to MH i2c: 01 00 00 3C 0B 47 [11:13:58]Write i2c OK [11:13:58]MH_I2C_Read... [11:13:59]*** Cut start [11:13:59]*** Purtial cut [11:13:59]*** Stage 1: CUTSNS_PIN = 1 [11:13:59]Read from MH i2c: 01 [11:13:59]MH_I2C_Read... [11:13:59]*** Stop cut motor [11:13:59]*** Cut end [11:13:59]Read from MH i2c: 01 07 00 [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: 01 07 00 3C 0B 00 00 00 00 00 FF 0F 5C [11:13:59]process_action print_text done [11:13:59]requested_data is exist [11:13:59]produce_requested_data [11:13:59]requested_item fm.sn is exist - process it [11:13:59]wFMCommunicate request_size=4 [11:13:59]MH_SAM_APDU [11:13:59]CAPDU: 80 11 00 00 [11:13:59]Write to MH i2c: E2 08 00 3D 0B 80 11 00 00 00 00 00 00 C2 [11:13:59]Write i2c OK [11:13:59]MH_I2C_Read... [11:13:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:59]Read from MH i2c: E2 [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: E2 17 00 [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: E2 17 00 3D 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 18 [11:13:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:13:59]wFMCommunicate OK [11:13:59]requested_item fd.num is exist - process it [11:13:59]SAM_PROTO_GetFieldsCounters [11:13:59]wFMCommunicate request_size=4 [11:13:59]MH_SAM_APDU [11:13:59]CAPDU: 80 13 00 00 [11:13:59]Write to MH i2c: E2 08 00 3E 0B 80 13 00 00 00 00 00 00 C5 [11:13:59]Write i2c OK [11:13:59]MH_I2C_Read... [11:13:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:59]Read from MH i2c: E2 [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: E2 62 00 [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: E2 62 00 3E 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 7A 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [11:13: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 7A 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:13:59]wFMCommunicate OK [11:13:59]SAM_PROTO_GetFieldsCounters done [11:13:59]requested_item shift.num is exist - process it [11:13:59]requested_item shift.opened is exist - process it [11:13:59]req_shift_opened [11:13:59]FM_GetShiftState [11:13:59]SAM_PROTO_GetShiftState [11:13:59]wFMCommunicate request_size=4 [11:13:59]MH_SAM_APDU [11:13:59]CAPDU: 80 13 01 00 [11:13:59]Write to MH i2c: E2 08 00 3F 0B 80 13 01 00 00 00 00 00 C7 [11:13:59]Write i2c OK [11:13:59]MH_I2C_Read... [11:14:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:00]Read from MH i2c: E2 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: E2 0E 00 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: E2 0E 00 3F 0B 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 73 [11:14:00]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [11:14:00]wFMCommunicate OK [11:14:00]SAM_PROTO_GetShiftState done [11:14:00]FM_GetShiftState done [11:14:00]req_shift_opened done [11:14:00]requested_item shift.open_date is exist - process it [11:14:00]req_shift_open_date [11:14:00]req_shift_open_date done [11:14:00]produce_requested_data done [11:14:00]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67450,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [11:14:00]process_action_free print_text [11:14:00]json_value_free [11:14:00]json_value_free done [11:14:00]process_json_proto returns [11:14:00]Send response to host [11:14:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67450,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [11:14:00]free response buf [11:14:00]execute_script done [11:14:00]execute_script returns [11:14:00]free content buf [11:14:00]Sock 8.Close socket [11:14:00]Sock 8.Thread stoped [11:14:00]OFD Sender: No OFD packet to send [11:14:05]OFD Sender: No OFD packet to send [11:14:09]accept exits with 9 [11:14:09]New connection [11:14:09]New thread 3067604324 created [11:14:09]Thread 3067460964 joined [11:14:09]Waiting for new connection... [11:14:09] Sock 9.Parse request [11:14:09]Sock 9.Check first char [11:14:09]Sock 9.First char is OK [11:14:09]request: POST /json_proto HTTP/1.0 [11:14:09]Method: POST [11:14:09]URL: /json_proto [11:14:09]Method is POST - this is cgi request [11:14:09]url: /json_proto [11:14:09]query_string will be loaded in cgi processing [11:14:09]execute_cgi json_proto POST (null) [11:14:09]execute_cgi path=json_proto method=POST [11:14:09]POST find Content-Length [11:14:09]Host: 172.17.41.195:8080 [11:14:09]Content-Length: 1217 [11:14:09]Content-Type: application/json [11:14:09] [11:14:09]POST finish read [11:14:09]Found Content-Length = 1217 [11:14:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507483\u000A16.05.2024 10:56\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1494.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3972716\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:09]execute_script... [11:14:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507483\u000A16.05.2024 10:56\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1494.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3972716\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:09]POST & json_proto [11:14:09]process_json_proto [11:14:09]json parsed OK: [11:14:09]protocol is kg_v1.0 [11:14:09]action value=print_text [11:14:09]process_action print_text [11:14:09]cmd_print_text [11:14:09]ExternCall_PrintAddStr [11:14:09]wPrintStart [11:14:09]Write to MH i2c: 01 00 00 40 0B 4B [11:14:09]Write i2c OK [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: 01 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: 01 07 00 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: 01 07 00 40 0B 00 00 00 00 00 FF 0F 60 [11:14:09]RasterBufferAndPrint [11:14:09]line *****ТОВАРНЫЙ ЧЕК***** [11:14:09]line АЗС-91 [11:14:09]line Партнер нефть [11:14:09]line 02508201610067 [11:14:09]line Кассир : Пайзулдаева А. [11:14:09]line Счет N : (1)507483 [11:14:09]line 16.05.2024 10:56 [11:14:09]line ПРОДАЖА [11:14:09]line ТРК (МРК, ГНК): 11 [11:14:09]line Вид ГСМ : 2710194210 [11:14:09]line ДТ-К-5 [11:14:09]line 20.000 x 74.70 [11:14:09]line ИТОГ: 1494.00 [11:14:09]line Тип оплаты: Талоны: Топливные Талоны [11:14:09]line 3972716 [11:14:09]line ______________________ [11:14:09]line (подпись) [11:14:09]written 0, free lines is 4095 [11:14:10]Write to MH i2c: 01 00 00 54 0B 5F [11:14:10]Write i2c OK [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: 01 [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: 01 07 00 [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: 01 07 00 54 0B 00 00 00 00 00 10 0E 84 [11:14:10]RasterBufferAndPrint [11:14:10]line [11:14:10]line [11:14:10]line [11:14:10]line [11:14:10]line [11:14:10]written 0, free lines is 3601 [11:14:10]MH_Cut [11:14:10]Write to MH i2c: D1 01 00 5B 0B 01 38 [11:14:10]Write i2c OK [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: D1 [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: D1 01 00 [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: D1 01 00 5B 0B 00 37 [11:14:10]Write to MH i2c: 01 00 00 5C 0B 67 [11:14:10]Write i2c OK [11:14:10]MH_I2C_Read... [11:14:10]OFD Sender: No OFD packet to send [11:14:10]*** Cut start [11:14:10]*** Purtial cut [11:14:10]*** CUTSNS_PIN = 0 [11:14:10]*** Stage 1: CUTSNS_PIN = 1 [11:14:12]Read from MH i2c: 01 [11:14:12]MH_I2C_Read... [11:14:12]*** Stop cut motor [11:14:12]*** Cut end [11:14:12]Read from MH i2c: 01 07 00 [11:14:12]MH_I2C_Read... [11:14:12]Read from MH i2c: 01 07 00 5C 0B 00 00 00 00 00 FF 0F 7C [11:14:12]process_action print_text done [11:14:12]requested_data is exist [11:14:12]produce_requested_data [11:14:12]requested_item fm.sn is exist - process it [11:14:12]wFMCommunicate request_size=4 [11:14:12]MH_SAM_APDU [11:14:12]CAPDU: 80 11 00 00 [11:14:12]Write to MH i2c: E2 08 00 5D 0B 80 11 00 00 00 00 00 00 E2 [11:14:12]Write i2c OK [11:14:12]MH_I2C_Read... [11:14:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:12]Read from MH i2c: E2 [11:14:12]MH_I2C_Read... [11:14:12]Read from MH i2c: E2 17 00 [11:14:12]MH_I2C_Read... [11:14:12]Read from MH i2c: E2 17 00 5D 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 38 [11:14:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:14:12]wFMCommunicate OK [11:14:12]requested_item fd.num is exist - process it [11:14:12]SAM_PROTO_GetFieldsCounters [11:14:12]wFMCommunicate request_size=4 [11:14:12]MH_SAM_APDU [11:14:12]CAPDU: 80 13 00 00 [11:14:12]Write to MH i2c: E2 08 00 5E 0B 80 13 00 00 00 00 00 00 E5 [11:14:12]Write i2c OK [11:14:12]MH_I2C_Read... [11:14:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:12]Read from MH i2c: E2 [11:14:12]MH_I2C_Read... [11:14:12]Read from MH i2c: E2 62 00 [11:14:12]MH_I2C_Read... [11:14:12]Read from MH i2c: E2 62 00 5E 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 7A 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [11: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 7A 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:14:12]wFMCommunicate OK [11:14:12]SAM_PROTO_GetFieldsCounters done [11:14:12]requested_item shift.num is exist - process it [11:14:12]requested_item shift.opened is exist - process it [11:14:12]req_shift_opened [11:14:12]FM_GetShiftState [11:14:12]SAM_PROTO_GetShiftState [11:14:12]wFMCommunicate request_size=4 [11:14:12]MH_SAM_APDU [11:14:12]CAPDU: 80 13 01 00 [11:14:12]Write to MH i2c: E2 08 00 5F 0B 80 13 01 00 00 00 00 00 E7 [11:14:12]Write i2c OK [11:14:12]MH_I2C_Read... [11:14:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:12]Read from MH i2c: E2 [11:14:12]MH_I2C_Read... [11:14:12]Read from MH i2c: E2 0E 00 [11:14:12]MH_I2C_Read... [11:14:12]Read from MH i2c: E2 0E 00 5F 0B 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 93 [11:14:12]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [11:14:12]wFMCommunicate OK [11:14:12]SAM_PROTO_GetShiftState done [11:14:12]FM_GetShiftState done [11:14:12]req_shift_opened done [11:14:12]requested_item shift.open_date is exist - process it [11:14:12]req_shift_open_date [11:14:12]req_shift_open_date done [11:14:12]produce_requested_data done [11:14:12]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67450,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [11:14:12]process_action_free print_text [11:14:12]json_value_free [11:14:12]json_value_free done [11:14:12]process_json_proto returns [11:14:12]Send response to host [11:14:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67450,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [11:14:12]free response buf [11:14:12]execute_script done [11:14:12]execute_script returns [11:14:12]free content buf [11:14:12]Sock 9.Close socket [11:14:12]Sock 9.Thread stoped [11:14:15]OFD Sender: No OFD packet to send [11:14:20]OFD Sender: No OFD packet to send [11:14:25]OFD Sender: No OFD packet to send [11:14:30]OFD Sender: No OFD packet to send [11:14:33]accept exits with 8 [11:14:33]New connection [11:14:33]New thread 3067460964 created [11:14:33]Thread 3067604324 joined [11:14:33]Waiting for new connection... [11:14:33] Sock 8.Parse request [11:14:33]Sock 8.Check first char [11:14:33]Sock 8.First char is OK [11:14:33]request: POST /json_proto HTTP/1.0 [11:14:33]Method: POST [11:14:33]URL: /json_proto [11:14:33]Method is POST - this is cgi request [11:14:33]url: /json_proto [11:14:33]query_string will be loaded in cgi processing [11:14:33]execute_cgi json_proto POST (null) [11:14:33]execute_cgi path=json_proto method=POST [11:14:33]POST find Content-Length [11:14:33]Host: 172.17.41.195:8080 [11:14:33]Content-Length: 653 [11:14:33]Content-Type: application/json [11:14:33] [11:14:33]POST finish read [11:14:33]Found Content-Length = 653 [11:14:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12084", "tax_sys" : 0, "items" : [ { "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:33]execute_script... [11:14:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12084", "tax_sys" : 0, "items" : [ { "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:33]POST & json_proto [11:14:33]process_json_proto [11:14:33]json parsed OK: [11:14:33]protocol is kg_v1.0 [11:14:33]action value=close_receipt [11:14:33]process_action close_receipt [11:14:33]cmd_close_receipt [11:14:33]MH_GetDate [11:14:33]Write to MH i2c: F0 00 00 60 0B 5A [11:14:33]Write i2c OK [11:14:33]MH_I2C_Read... [11:14:33]Read from MH i2c: F0 [11:14:33]MH_I2C_Read... [11:14:33]Read from MH i2c: F0 09 00 [11:14:33]MH_I2C_Read... [11:14:33]Read from MH i2c: F0 09 00 60 0B 00 9A EA 45 66 FC 21 6F 64 82 [11:14:33]GetLastDocTimeStamp 1715857188 [11:14:33]current date 1715858074 [11:14:33]FM_GetShiftState [11:14:33]SAM_PROTO_GetShiftState [11:14:33]wFMCommunicate request_size=4 [11:14:33]MH_SAM_APDU [11:14:33]CAPDU: 80 13 01 00 [11:14:33]Write to MH i2c: E2 08 00 61 0B 80 13 01 00 00 00 00 00 E9 [11:14:33]Write i2c OK [11:14:33]MH_I2C_Read... [11:14:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:33]Read from MH i2c: E2 [11:14:33]MH_I2C_Read... [11:14:33]Read from MH i2c: E2 0E 00 [11:14:33]MH_I2C_Read... [11:14:33]Read from MH i2c: E2 0E 00 61 0B 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 95 [11:14:33]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [11:14:33]wFMCommunicate OK [11:14:33]SAM_PROTO_GetShiftState done [11:14:33]FM_GetShiftState done [11:14:33]opened in 1715818916 [11:14:33]opened+sec_in_day 1715905316 [11:14:33]quantity*price = 14000 [11:14:33]sum+1 = 14001 [11:14:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 49 16.05.2024 11:14 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67451 ФПД: 250500649116359 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T111434&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67451&fm=250500649116359&tin=02508201610067®Number=0000000000091845&sum=14000 0 [11:14:34]StoreToDocumentArchive [11:14:34]shift 357 fd 67451 [11:14:34]save to /storage/0357/doc_00067451 [11:14:34]save last doc name /storage/0357/doc_00067451 to /storage/kkm_last_doc_name [11:14:34]save OK [11:14:34]Clear old archive folders... [11:14:34]ProcessDocumentItem done err = 0, tmpTLVsize=275 [11:14:34]tlvbuf is 00CD39B0 [11:14:34]SAM_PROTO_ClearQueue [11:14:34]wFMCommunicate request_size=4 [11:14:34]MH_SAM_APDU [11:14:34]CAPDU: 80 09 00 00 [11:14:34]Write to MH i2c: E2 08 00 6E 0B 80 09 00 00 00 00 00 00 EB [11:14:34]Write i2c OK [11:14:34]MH_I2C_Read... [11:14:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:14:34]Read from MH i2c: E2 [11:14:34]MH_I2C_Read... [11:14:34]Read from MH i2c: E2 03 00 [11:14:34]MH_I2C_Read... [11:14:34]Read from MH i2c: E2 03 00 6E 0B 00 90 00 ED [11:14:34]RAPDU: 90 00 [11:14:34]wFMCommunicate OK [11:14:34]SAM_PROTO_ClearQueue done [11:14:34]KKMCreateOFDPacket [11:14:34]OFDProtocolAddRootSTLVToBuf [11:14:34]FM_MakeSignedData [11:14:34]FM_MakeSignedData [11:14:34]SAM_PROTO_SignData [11:14:34]wFMCommunicate request_size=4 [11:14:34]MH_SAM_APDU [11:14:34]CAPDU: 80 0D 01 02 [11:14:34]Write to MH i2c: E2 08 00 6F 0B 80 0D 01 02 00 00 00 00 F3 [11:14:34]Write i2c OK [11:14:34]MH_I2C_Read... [11:14:34]Read from MH i2c: E2 [11:14:34]MH_I2C_Read... [11:14:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:14:34]Read from MH i2c: E2 03 00 [11:14:34]MH_I2C_Read... [11:14:34]Read from MH i2c: E2 03 00 6F 0B 00 90 00 EE [11:14:34]RAPDU: 90 00 [11:14:34]wFMCommunicate OK [11:14:34]wFMCommunicate request_size=255 [11:14:34]MH_SAM_APDU [11:14:34]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 9A EA 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 [11:14:34]Write to MH i2c: E2 02 01 70 0B 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 9A EA 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 00 00 06 [11:14:34]Write i2c OK [11:14:34]MH_I2C_Read... [11:14:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:34]Read from MH i2c: E2 [11:14:34]MH_I2C_Read... [11:14:34]Read from MH i2c: E2 03 00 [11:14:34]MH_I2C_Read... [11:14:34]Read from MH i2c: E2 03 00 70 0B 00 90 00 EF [11:14:34]RAPDU: 90 00 [11:14:34]wFMCommunicate OK [11:14:34]wFMCommunicate request_size=34 [11:14:34]MH_SAM_APDU [11:14:34]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 7B 07 01 00 35 04 06 00 E3 D4 3A 34 E2 C7 [11:14:34]Write to MH i2c: E2 25 00 71 0B 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 7B 07 01 00 35 04 06 00 E3 D4 3A 34 E2 C7 00 00 0B [11:14:34]Write i2c OK [11:14:34]MH_I2C_Read... [11:14:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:34]Read from MH i2c: E2 [11:14:34]MH_I2C_Read... [11:14:34]Read from MH i2c: E2 03 00 [11:14:34]MH_I2C_Read... [11:14:34]Read from MH i2c: E2 03 00 71 0B 00 90 00 F0 [11:14:34]RAPDU: 90 00 [11:14:34]wFMCommunicate OK [11:14:34]wFMCommunicate request_size=4 [11:14:34]MH_SAM_APDU [11:14:34]CAPDU: 80 0D 03 02 [11:14:34]Write to MH i2c: E2 08 00 72 0B 80 0D 03 02 00 00 00 00 F8 [11:14:34]Write i2c OK [11:14:34]MH_I2C_Read... [11:14:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:14:34]Read from MH i2c: E2 [11:14:34]MH_I2C_Read... [11:14:34]Read from MH i2c: E2 0B 00 [11:14:34]MH_I2C_Read... [11:14:34]Read from MH i2c: E2 0B 00 72 0B 00 7B CE 65 8F 1E 09 4C 5F 90 00 08 [11:14:34]RAPDU: 7B CE 65 8F 1E 09 4C 5F 90 00 [11:14:34]wFMCommunicate OK [11:14:34]SAM_PROTO_SignData done [11:14:34]FM_MakeSignedData done [11:14:34]CreateOFDProtocolMessage [11:14:34]wFMCommunicate request_size=4 [11:14:34]MH_SAM_APDU [11:14:34]CAPDU: 80 11 00 00 [11:14:34]Write to MH i2c: E2 08 00 73 0B 80 11 00 00 00 00 00 00 F8 [11:14:34]Write i2c OK [11:14:34]MH_I2C_Read... [11:14:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:34]Read from MH i2c: E2 [11:14:34]MH_I2C_Read... [11:14:34]Read from MH i2c: E2 17 00 [11:14:34]MH_I2C_Read... [11:14:34]Read from MH i2c: E2 17 00 73 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 4E [11:14:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:14:34]wFMCommunicate OK [11:14:34]CreateOFDProtocolMessage done [11:14:34]OFDSenderStorePacket 67451 [11:14:34]StoreOFDPacket docnum=67451 [11:14:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 27 01 00 00 90 FD 1F 01 46 BA 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 9A EA 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 7B 07 01 00 35 04 06 00 E3 D4 3A 34 E2 C7 7B CE 65 8F 1E 09 4C 5F [11:14:34]CheckFolder [11:14:34]dirname=/storage/ofd_packets [11:14:34]CheckFolder done [11:14:34]ProducePacketName [11:14:34]name=ofd_packets/00067451 [11:14:34]NVStorageSaveData ofd_packets/00067451 [11:14:34]File name is /storage/ofd_packets/00067451 [11:14:34]Write 325 bytes [11:14:34]NVStorageSaveData done [11:14:34]OFDSenderStorePacket done [11:14:34]KKMCreateOFDPacket done [11:14:34]NVStorageSaveData kkm_last_timestamp [11:14:34]File name is /storage/kkm_last_timestamp [11:14:34]Write 4 bytes [11:14:34]NVStorageSaveData done [11:14:34]ExternCall_PrintAddStr [11:14:34]wPrintStart [11:14:34]Write to MH i2c: 01 00 00 74 0B 7F [11:14:34]Write i2c OK [11:14:34]MH_I2C_Read... [11:14:34]Read from MH i2c: 01 [11:14:34]MH_I2C_Read... [11:14:34]Read from MH i2c: 01 07 00 [11:14:34]MH_I2C_Read... [11:14:34]Read from MH i2c: 01 07 00 74 0B 00 00 00 00 00 FF 0F 94 [11:14:34]RasterBufferAndPrint [11:14:34]line Счет N : (3)12084 [11:14:34]line ИНН: 02508201610067 [11:14:34]line Контрольно-Кассовый Чек [11:14:34]line ПРОДАЖА [11:14:34]line Товар: 54491472 [11:14:34]line Напиток Кока-Кола 0,5л [11:14:34]line 2.000 * 70.00 [11:14:34]line = 140.00 [11:14:34]line НДС 12% НСП 1% [11:14:34]line > о реализуемом товаре [11:14:34]line ИТОГО: 140.00 [11:14:34]line НСП 1% : 1.24 [11:14:34]line НДС 12% : 14.87 [11:14:34]line Наличными: 140.00 [11:14:34]line Безнал.: 0.00 [11:14:34]line Место: АЗС № 91 "Партнер Нефть" [11:14:34]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:14:35]line СНО: Общий режим [11:14:35]line Чек 49 16.05.2024 11:14 [11:14:35]line Смена: 357 ФФД: 1.0 [11:14:35]line ЗНМ: 0300000119 [11:14:35]line РНМ: 0000000000091845 [11:14:35]line Версия ККМ: 001 [11:14:35]line ФМ: 0000000000871829 [11:14:35]line ФД: 67451 [11:14:35]line ФПД: 250500649116359 [11:14:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T111434&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67451&fm=250500649116359&tin=02508201610067®Number=0000000000091845&sum=14000 [11:14:35]line 0 [11:14:35]OFD Sender: Processing packet 67451 [packets to send 35, broken 34] [11:14:35]ProducePacketName [11:14:35]name=ofd_packets/00067451 [11:14:35]OFD Sender: To server: pG, [11:14:35]CommunicateWithHost lk.salyk.kg:30040 [11:14:35]ConnectInit lk.salyk.kg [11:14:35]written 0, free lines is 4095 [11:14:35]Connected sock=10 [11:14: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 38 32 39 27 01 00 00 90 FD 1F 01 46 BA 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 9A EA 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 7B 07 01 00 35 04 06 00 E3 D4 3A 34 E2 C7 7B CE 65 8F 1E 09 4C 5F [11:14:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 C9 07 47 00 AE 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 38 32 39 10 04 04 00 7B 07 01 00 F4 03 04 00 75 92 45 66 B6 04 01 00 00 5B 6D C2 0D 5C A5 48 29 [11:14:35]CommunicateWithHost err = 0 [11:14:35]CheckOFDResponse [11:14:35]1017 (14) - 77093643461234 [11:14:35]1041 (16) - 0000000000871829 [11:14:35]1040 (4) - 67451 [11:14:35]1012 (4) - 16.05.2024 04:58 [11:14:35]1206 (1) - 0 [11:14:35]OFD Sender: Remove packet 67451 [11:14:35]ProducePacketName [11:14:35]name=ofd_packets/00067451 [11:14:35]NVStorageDeleteData [11:14:35]Write to MH i2c: 01 00 00 9B 0B A6 [11:14:35]Write i2c OK [11:14:35]MH_I2C_Read... [11:14:35]Read from MH i2c: 01 [11:14:35]MH_I2C_Read... [11:14:35]Read from MH i2c: 01 07 00 [11:14:35]MH_I2C_Read... [11:14:35]Read from MH i2c: 01 07 00 9B 0B 00 00 00 00 00 FC 0C B5 [11:14:35]RasterBufferAndPrint [11:14:35]line [11:14:35]line [11:14:35]line [11:14:35]line [11:14:35]line [11:14:35]written 0, free lines is 3327 [11:14:35]MH_Cut [11:14:35]Write to MH i2c: D1 01 00 A2 0B 01 7F [11:14:35]Write i2c OK [11:14:35]MH_I2C_Read... [11:14:35]Read from MH i2c: D1 [11:14:35]MH_I2C_Read... [11:14:35]Read from MH i2c: D1 01 00 [11:14:35]MH_I2C_Read... [11:14:35]Read from MH i2c: D1 01 00 A2 0B 00 7E [11:14:35]Write to MH i2c: 01 00 00 A3 0B AE [11:14:35]Write i2c OK [11:14:35]MH_I2C_Read... [11:14:35]OFD Sender: No OFD packet to send [11:14:36]*** Cut start [11:14:36]*** Purtial cut [11:14:36]*** Stage 1: CUTSNS_PIN = 1 [11:14:36]Read from MH i2c: 01 [11:14:36]MH_I2C_Read... [11:14:36]*** Stop cut motor [11:14:36]*** Cut end [11:14:36]Read from MH i2c: 01 07 00 [11:14:36]MH_I2C_Read... [11:14:36]Read from MH i2c: 01 07 00 A3 0B 00 00 00 00 00 FF 0F C3 [11:14:36]process_action close_receipt done [11:14:36]requested_data is exist [11:14:36]produce_requested_data [11:14:36]requested_item fm.sn is exist - process it [11:14:36]wFMCommunicate request_size=4 [11:14:36]MH_SAM_APDU [11:14:36]CAPDU: 80 11 00 00 [11:14:36]Write to MH i2c: E2 08 00 A4 0B 80 11 00 00 00 00 00 00 29 [11:14:36]Write i2c OK [11:14:36]MH_I2C_Read... [11:14:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:36]Read from MH i2c: E2 [11:14:36]MH_I2C_Read... [11:14:36]Read from MH i2c: E2 17 00 [11:14:36]MH_I2C_Read... [11:14:36]Read from MH i2c: E2 17 00 A4 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7F [11:14:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:14:36]wFMCommunicate OK [11:14:36]requested_item fd.num is exist - process it [11:14:36]SAM_PROTO_GetFieldsCounters [11:14:36]wFMCommunicate request_size=4 [11:14:36]MH_SAM_APDU [11:14:36]CAPDU: 80 13 00 00 [11:14:36]Write to MH i2c: E2 08 00 A5 0B 80 13 00 00 00 00 00 00 2C [11:14:36]Write i2c OK [11:14:36]MH_I2C_Read... [11:14:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:36]Read from MH i2c: E2 [11:14:36]MH_I2C_Read... [11:14:36]Read from MH i2c: E2 62 00 [11:14:36]MH_I2C_Read... [11:14:36]Read from MH i2c: E2 62 00 A5 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 7B 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [11:14: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 7B 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:14:36]wFMCommunicate OK [11:14:36]SAM_PROTO_GetFieldsCounters done [11:14:36]requested_item shift.num is exist - process it [11:14:36]requested_item shift.opened is exist - process it [11:14:36]req_shift_opened [11:14:36]FM_GetShiftState [11:14:36]SAM_PROTO_GetShiftState [11:14:36]wFMCommunicate request_size=4 [11:14:36]MH_SAM_APDU [11:14:36]CAPDU: 80 13 01 00 [11:14:36]Write to MH i2c: E2 08 00 A6 0B 80 13 01 00 00 00 00 00 2E [11:14:36]Write i2c OK [11:14:36]MH_I2C_Read... [11:14:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:36]Read from MH i2c: E2 [11:14:36]MH_I2C_Read... [11:14:36]Read from MH i2c: E2 0E 00 [11:14:36]MH_I2C_Read... [11:14:36]Read from MH i2c: E2 0E 00 A6 0B 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 DA [11:14:36]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [11:14:36]wFMCommunicate OK [11:14:36]SAM_PROTO_GetShiftState done [11:14:36]FM_GetShiftState done [11:14:36]req_shift_opened done [11:14:36]requested_item shift.open_date is exist - process it [11:14:36]req_shift_open_date [11:14:36]req_shift_open_date done [11:14:36]produce_requested_data done [11:14:36]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67451,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [11:14:36]process_action_free close_receipt [11:14:36]json_value_free [11:14:36]json_value_free done [11:14:36]process_json_proto returns [11:14:36]Send response to host [11:14:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67451,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [11:14:36]free response buf [11:14:36]execute_script done [11:14:36]execute_script returns [11:14:36]free content buf [11:14:36]Sock 8.Close socket [11:14:36]Sock 8.Thread stoped [11:14:40]OFD Sender: No OFD packet to send [11:14:41]accept exits with 9 [11:14:41]New connection [11:14:41]New thread 3067604324 created [11:14:41]Thread 3067460964 joined [11:14:41]Waiting for new connection... [11:14:41] Sock 9.Parse request [11:14:41]Sock 9.Check first char [11:14:41]Sock 9.First char is OK [11:14:41]request: POST /json_proto HTTP/1.0 [11:14:41]Method: POST [11:14:41]URL: /json_proto [11:14:41]Method is POST - this is cgi request [11:14:41]url: /json_proto [11:14:41]query_string will be loaded in cgi processing [11:14:41]execute_cgi json_proto POST (null) [11:14:41]execute_cgi path=json_proto method=POST [11:14:41]POST find Content-Length [11:14:41]Host: 172.17.41.195:8080 [11:14:41]Content-Length: 1210 [11:14:41]Content-Type: application/json [11:14:41] [11:14:41]POST finish read [11:14:41]Found Content-Length = 1210 [11:14:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507481\u000A16.05.2024 10:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 7470.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01243\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:41]execute_script... [11:14:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507481\u000A16.05.2024 10:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 7470.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01243\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:41]POST & json_proto [11:14:41]process_json_proto [11:14:41]json parsed OK: [11:14:41]protocol is kg_v1.0 [11:14:41]action value=print_text [11:14:41]process_action print_text [11:14:41]cmd_print_text [11:14:41]ExternCall_PrintAddStr [11:14:41]wPrintStart [11:14:41]Write to MH i2c: 01 00 00 A7 0B B2 [11:14:41]Write i2c OK [11:14:41]MH_I2C_Read... [11:14:41]Read from MH i2c: 01 [11:14:41]MH_I2C_Read... [11:14:41]Read from MH i2c: 01 07 00 [11:14:41]MH_I2C_Read... [11:14:41]Read from MH i2c: 01 07 00 A7 0B 00 00 00 00 00 FF 0F C7 [11:14:41]RasterBufferAndPrint [11:14:41]line *****ТОВАРНЫЙ ЧЕК***** [11:14:41]line АЗС-91 [11:14:41]line Партнер нефть [11:14:41]line 02508201610067 [11:14:41]line Кассир : Пайзулдаева А. [11:14:41]line Счет N : (1)507481 [11:14:41]line 16.05.2024 10:57 [11:14:41]line ПРОДАЖА [11:14:41]line ТРК (МРК, ГНК): 31 [11:14:41]line Вид ГСМ : 2710194210 [11:14:41]line ДТ-К-5 [11:14:41]line 100.000 x 74.70 [11:14:41]line ИТОГ: 7470.00 [11:14:41]line Тип оплаты: Талоны: Топливная Карта [11:14:41]line 01243 [11:14:41]line ______________________ [11:14:41]line (подпись) [11:14:41]written 0, free lines is 4095 [11:14:42]Write to MH i2c: 01 00 00 BB 0B C6 [11:14:42]Write i2c OK [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: 01 [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: 01 07 00 [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: 01 07 00 BB 0B 00 00 00 00 00 10 0E EB [11:14:42]RasterBufferAndPrint [11:14:42]line [11:14:42]line [11:14:42]line [11:14:42]line [11:14:42]line [11:14:42]written 0, free lines is 3602 [11:14:42]MH_Cut [11:14:42]Write to MH i2c: D1 01 00 C2 0B 01 9F [11:14:42]Write i2c OK [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: D1 [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: D1 01 00 [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: D1 01 00 C2 0B 00 9E [11:14:42]Write to MH i2c: 01 00 00 C3 0B CE [11:14:42]Write i2c OK [11:14:42]MH_I2C_Read... [11:14:42]*** Cut start [11:14:42]*** Purtial cut [11:14:42]*** CUTSNS_PIN = 0 [11:14:43]*** Stage 1: CUTSNS_PIN = 1 [11:14:44]Read from MH i2c: 01 [11:14:44]MH_I2C_Read... [11:14:44]*** Stop cut motor [11:14:44]*** Cut end [11:14:44]Read from MH i2c: 01 07 00 [11:14:44]MH_I2C_Read... [11:14:44]Read from MH i2c: 01 07 00 C3 0B 00 00 00 00 00 FF 0F E3 [11:14:44]process_action print_text done [11:14:44]requested_data is exist [11:14:44]produce_requested_data [11:14:44]requested_item fm.sn is exist - process it [11:14:44]wFMCommunicate request_size=4 [11:14:44]MH_SAM_APDU [11:14:44]CAPDU: 80 11 00 00 [11:14:44]Write to MH i2c: E2 08 00 C4 0B 80 11 00 00 00 00 00 00 49 [11:14:44]Write i2c OK [11:14:44]MH_I2C_Read... [11:14:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:44]Read from MH i2c: E2 [11:14:44]MH_I2C_Read... [11:14:44]Read from MH i2c: E2 17 00 [11:14:44]MH_I2C_Read... [11:14:44]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 38 32 39 90 00 9F [11:14:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:14:44]wFMCommunicate OK [11:14:44]requested_item fd.num is exist - process it [11:14:44]SAM_PROTO_GetFieldsCounters [11:14:44]wFMCommunicate request_size=4 [11:14:44]MH_SAM_APDU [11:14:44]CAPDU: 80 13 00 00 [11:14:44]Write to MH i2c: E2 08 00 C5 0B 80 13 00 00 00 00 00 00 4C [11:14:44]Write i2c OK [11:14:44]MH_I2C_Read... [11:14:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:44]Read from MH i2c: E2 [11:14:44]MH_I2C_Read... [11:14:44]Read from MH i2c: E2 62 00 [11:14:44]MH_I2C_Read... [11:14:44]Read from MH i2c: E2 62 00 C5 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 7B 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [11:14: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 7B 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:14:44]wFMCommunicate OK [11:14:44]SAM_PROTO_GetFieldsCounters done [11:14:44]requested_item shift.num is exist - process it [11:14:44]requested_item shift.opened is exist - process it [11:14:44]req_shift_opened [11:14:44]FM_GetShiftState [11:14:44]SAM_PROTO_GetShiftState [11:14:44]wFMCommunicate request_size=4 [11:14:44]MH_SAM_APDU [11:14:44]CAPDU: 80 13 01 00 [11:14:44]Write to MH i2c: E2 08 00 C6 0B 80 13 01 00 00 00 00 00 4E [11:14:44]Write i2c OK [11:14:44]MH_I2C_Read... [11:14:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:45]Read from MH i2c: E2 [11:14:45]MH_I2C_Read... [11:14:45]Read from MH i2c: E2 0E 00 [11:14:45]MH_I2C_Read... [11:14:45]Read from MH i2c: E2 0E 00 C6 0B 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 FA [11:14:45]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [11:14:45]wFMCommunicate OK [11:14:45]SAM_PROTO_GetShiftState done [11:14:45]FM_GetShiftState done [11:14:45]req_shift_opened done [11:14:45]requested_item shift.open_date is exist - process it [11:14:45]req_shift_open_date [11:14:45]req_shift_open_date done [11:14:45]produce_requested_data done [11:14:45]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67451,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [11:14:45]process_action_free print_text [11:14:45]json_value_free [11:14:45]json_value_free done [11:14:45]process_json_proto returns [11:14:45]Send response to host [11:14:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67451,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [11:14:45]free response buf [11:14:45]execute_script done [11:14:45]execute_script returns [11:14:45]free content buf [11:14:45]Sock 9.Close socket [11:14:45]Sock 9.Thread stoped [11:14:46]OFD Sender: No OFD packet to send [11:14:51]OFD Sender: No OFD packet to send [11:14:56]OFD Sender: No OFD packet to send [11:15:01]OFD Sender: No OFD packet to send [11:15:06]OFD Sender: No OFD packet to send [11:15:11]OFD Sender: No OFD packet to send [11:15:16]OFD Sender: No OFD packet to send [11:15:21]OFD Sender: No OFD packet to send [11:15:26]OFD Sender: No OFD packet to send [11:15:31]OFD Sender: No OFD packet to send [11:15:36]OFD Sender: No OFD packet to send [11:15:41]OFD Sender: No OFD packet to send [11:15:46]OFD Sender: No OFD packet to send [11:15:51]OFD Sender: No OFD packet to send [11:15:56]OFD Sender: No OFD packet to send [11:16:01]OFD Sender: No OFD packet to send [11:16:06]OFD Sender: No OFD packet to send [11:16:11]OFD Sender: No OFD packet to send [11:16:16]OFD Sender: No OFD packet to send [11:16:21]OFD Sender: No OFD packet to send [11:16:26]OFD Sender: No OFD packet to send [11:16:31]OFD Sender: No OFD packet to send [11:16:36]OFD Sender: No OFD packet to send [11:16:41]OFD Sender: No OFD packet to send [11:16:46]OFD Sender: No OFD packet to send [11:16:51]OFD Sender: No OFD packet to send [11:16:56]OFD Sender: No OFD packet to send [11:17:01]OFD Sender: No OFD packet to send [11:17:06]OFD Sender: No OFD packet to send [11:17:11]OFD Sender: No OFD packet to send [11:17:16]OFD Sender: No OFD packet to send [11:17:21]OFD Sender: No OFD packet to send [11:17:26]OFD Sender: No OFD packet to send [11:17:31]OFD Sender: No OFD packet to send [11:17:36]OFD Sender: No OFD packet to send [11:17:38]accept exits with 8 [11:17:38]New connection [11:17:38]New thread 3067460964 created [11:17:38]Thread 3067604324 joined [11:17:38]Waiting for new connection... [11:17:38] Sock 8.Parse request [11:17:38]Sock 8.Check first char [11:17:38]Sock 8.First char is OK [11:17:38]request: POST /json_proto HTTP/1.0 [11:17:38]Method: POST [11:17:38]URL: /json_proto [11:17:38]Method is POST - this is cgi request [11:17:38]url: /json_proto [11:17:38]query_string will be loaded in cgi processing [11:17:38]execute_cgi json_proto POST (null) [11:17:38]execute_cgi path=json_proto method=POST [11:17:38]POST find Content-Length [11:17:38]Host: 172.17.41.195:8080 [11:17:38]Content-Length: 1209 [11:17:38]Content-Type: application/json [11:17:38] [11:17:38]POST finish read [11:17:38]Found Content-Length = 1209 [11:17:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507484\u000A16.05.2024 11:00\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 15.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1120.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:38]execute_script... [11:17:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507484\u000A16.05.2024 11:00\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 15.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1120.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:38]POST & json_proto [11:17:38]process_json_proto [11:17:38]json parsed OK: [11:17:38]protocol is kg_v1.0 [11:17:38]action value=print_text [11:17:38]process_action print_text [11:17:38]cmd_print_text [11:17:38]ExternCall_PrintAddStr [11:17:38]wPrintStart [11:17:38]Write to MH i2c: 01 00 00 C7 0B D2 [11:17:38]Write i2c OK [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: 01 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: 01 07 00 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: 01 07 00 C7 0B 00 00 00 00 00 FF 0F E7 [11:17:38]RasterBufferAndPrint [11:17:38]line *****ТОВАРНЫЙ ЧЕК***** [11:17:38]line АЗС-91 [11:17:38]line Партнер нефть [11:17:38]line 02508201610067 [11:17:38]line Кассир : Пайзулдаева А. [11:17:38]line Счет N : (1)507484 [11:17:38]line 16.05.2024 11:00 [11:17:38]line ПРОДАЖА [11:17:38]line ТРК (МРК, ГНК): 41 [11:17:38]line Вид ГСМ : 2710194210 [11:17:38]line ДТ-К-5 [11:17:38]line 15.000 x 74.70 [11:17:38]line ИТОГ: 1120.50 [11:17:38]line Тип оплаты: Талоны: Топливная Карта [11:17:38]line 02750 [11:17:38]line ______________________ [11:17:38]line (подпись) [11:17:38]written 0, free lines is 4095 [11:17:38]Write to MH i2c: 01 00 00 DB 0B E6 [11:17:38]Write i2c OK [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: 01 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: 01 07 00 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: 01 07 00 DB 0B 00 00 00 00 00 0F 0E 0A [11:17:38]RasterBufferAndPrint [11:17:38]line [11:17:38]line [11:17:38]line [11:17:38]line [11:17:38]line [11:17:38]written 0, free lines is 3601 [11:17:38]MH_Cut [11:17:38]Write to MH i2c: D1 01 00 E2 0B 01 BF [11:17:38]Write i2c OK [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: D1 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: D1 01 00 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: D1 01 00 E2 0B 00 BE [11:17:38]Write to MH i2c: 01 00 00 E3 0B EE [11:17:38]Write i2c OK [11:17:38]MH_I2C_Read... [11:17:39]*** Cut start [11:17:39]*** Purtial cut [11:17:39]*** Stage 1: CUTSNS_PIN = 1 [11:17:39]Read from MH i2c: 01 [11:17:39]MH_I2C_Read... [11:17:39]*** Stop cut motor [11:17:39]*** Cut end [11:17:39]Read from MH i2c: 01 07 00 [11:17:39]MH_I2C_Read... [11:17:39]Read from MH i2c: 01 07 00 E3 0B 00 00 00 00 00 FF 0F 03 [11:17:39]process_action print_text done [11:17:39]requested_data is exist [11:17:39]produce_requested_data [11:17:39]requested_item fm.sn is exist - process it [11:17:39]wFMCommunicate request_size=4 [11:17:39]MH_SAM_APDU [11:17:39]CAPDU: 80 11 00 00 [11:17:39]Write to MH i2c: E2 08 00 E4 0B 80 11 00 00 00 00 00 00 69 [11:17:39]Write i2c OK [11:17:39]MH_I2C_Read... [11:17:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:39]Read from MH i2c: E2 [11:17:39]MH_I2C_Read... [11:17:39]Read from MH i2c: E2 17 00 [11:17:39]MH_I2C_Read... [11:17:39]Read from MH i2c: E2 17 00 E4 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BF [11:17:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:17:39]wFMCommunicate OK [11:17:39]requested_item fd.num is exist - process it [11:17:39]SAM_PROTO_GetFieldsCounters [11:17:39]wFMCommunicate request_size=4 [11:17:39]MH_SAM_APDU [11:17:39]CAPDU: 80 13 00 00 [11:17:39]Write to MH i2c: E2 08 00 E5 0B 80 13 00 00 00 00 00 00 6C [11:17:39]Write i2c OK [11:17:39]MH_I2C_Read... [11:17:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:39]Read from MH i2c: E2 [11:17:39]MH_I2C_Read... [11:17:39]Read from MH i2c: E2 62 00 [11:17:39]MH_I2C_Read... [11:17:39]Read from MH i2c: E2 62 00 E5 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 7B 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 0E [11:17: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 7B 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:17:39]wFMCommunicate OK [11:17:39]SAM_PROTO_GetFieldsCounters done [11:17:39]requested_item shift.num is exist - process it [11:17:39]requested_item shift.opened is exist - process it [11:17:39]req_shift_opened [11:17:39]FM_GetShiftState [11:17:39]SAM_PROTO_GetShiftState [11:17:39]wFMCommunicate request_size=4 [11:17:39]MH_SAM_APDU [11:17:39]CAPDU: 80 13 01 00 [11:17:39]Write to MH i2c: E2 08 00 E6 0B 80 13 01 00 00 00 00 00 6E [11:17:39]Write i2c OK [11:17:39]MH_I2C_Read... [11:17:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:39]Read from MH i2c: E2 [11:17:39]MH_I2C_Read... [11:17:39]Read from MH i2c: E2 0E 00 [11:17:39]MH_I2C_Read... [11:17:39]Read from MH i2c: E2 0E 00 E6 0B 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 1A [11:17:39]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [11:17:39]wFMCommunicate OK [11:17:39]SAM_PROTO_GetShiftState done [11:17:39]FM_GetShiftState done [11:17:39]req_shift_opened done [11:17:39]requested_item shift.open_date is exist - process it [11:17:39]req_shift_open_date [11:17:39]req_shift_open_date done [11:17:39]produce_requested_data done [11:17:39]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67451,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [11:17:39]process_action_free print_text [11:17:39]json_value_free [11:17:39]json_value_free done [11:17:39]process_json_proto returns [11:17:39]Send response to host [11:17:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67451,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [11:17:39]free response buf [11:17:39]execute_script done [11:17:39]execute_script returns [11:17:39]free content buf [11:17:39]Sock 8.Close socket [11:17:39]Sock 8.Thread stoped [11:17:41]OFD Sender: No OFD packet to send [11:17:46]OFD Sender: No OFD packet to send [11:17:51]OFD Sender: No OFD packet to send [11:17:56]OFD Sender: No OFD packet to send [11:18:01]OFD Sender: No OFD packet to send [11:18:06]OFD Sender: No OFD packet to send [11:18:11]OFD Sender: No OFD packet to send [11:18:16]OFD Sender: No OFD packet to send [11:18:21]OFD Sender: No OFD packet to send [11:18:26]OFD Sender: No OFD packet to send [11:18:28]accept exits with 9 [11:18:28]New connection [11:18:28]New thread 3067604324 created [11:18:28]Thread 3067460964 joined [11:18:28]Waiting for new connection... [11:18:28] Sock 9.Parse request [11:18:28]Sock 9.Check first char [11:18:28]Sock 9.First char is OK [11:18:28]request: POST /json_proto HTTP/1.0 [11:18:28]Method: POST [11:18:28]URL: /json_proto [11:18:28]Method is POST - this is cgi request [11:18:28]url: /json_proto [11:18:28]query_string will be loaded in cgi processing [11:18:28]execute_cgi json_proto POST (null) [11:18:28]execute_cgi path=json_proto method=POST [11:18:28]POST find Content-Length [11:18:28]Host: 172.17.41.195:8080 [11:18:28]Content-Length: 800 [11:18:28]Content-Type: application/json [11:18:28] [11:18:28]POST finish read [11:18:28]Found Content-Length = 800 [11:18:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507485", "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" : 74.70, "quantity" : 26.780, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:28]execute_script... [11:18: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)507485", "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" : 74.70, "quantity" : 26.780, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:28]POST & json_proto [11:18:28]process_json_proto [11:18:28]json parsed OK: [11:18:28]protocol is kg_v1.0 [11:18:28]action value=close_receipt [11:18:28]process_action close_receipt [11:18:28]cmd_close_receipt [11:18:28]MH_GetDate [11:18:28]Write to MH i2c: F0 00 00 E7 0B E1 [11:18:28]Write i2c OK [11:18:28]MH_I2C_Read... [11:18:28]Read from MH i2c: F0 [11:18:28]MH_I2C_Read... [11:18:28]Read from MH i2c: F0 09 00 [11:18:28]MH_I2C_Read... [11:18:28]Read from MH i2c: F0 09 00 E7 0B 00 85 EB 45 66 FC 21 6F 64 F5 [11:18:28]GetLastDocTimeStamp 1715858074 [11:18:28]current date 1715858309 [11:18:28]FM_GetShiftState [11:18:28]SAM_PROTO_GetShiftState [11:18:28]wFMCommunicate request_size=4 [11:18:28]MH_SAM_APDU [11:18:28]CAPDU: 80 13 01 00 [11:18:28]Write to MH i2c: E2 08 00 E8 0B 80 13 01 00 00 00 00 00 70 [11:18:28]Write i2c OK [11:18:28]MH_I2C_Read... [11:18:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:28]Read from MH i2c: E2 [11:18:28]MH_I2C_Read... [11:18:28]Read from MH i2c: E2 0E 00 [11:18:28]MH_I2C_Read... [11:18:28]Read from MH i2c: E2 0E 00 E8 0B 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 1C [11:18:28]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [11:18:28]wFMCommunicate OK [11:18:28]SAM_PROTO_GetShiftState done [11:18:28]FM_GetShiftState done [11:18:28]opened in 1715818916 [11:18:28]opened+sec_in_day 1715905316 [11:18:28]quantity*price = 200046 [11:18:28]sum+1 = 200048 [11:18:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.47 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 0.00 Безнал.: 2000.47 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 50 16.05.2024 11:18 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67452 ФПД: 92041889406679 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T111829&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67452&fm=92041889406679&tin=02508201610067®Number=0000000000091845&sum=200047 [11:18:29]StoreToDocumentArchive [11:18:29]shift 357 fd 67452 [11:18:29]save to /storage/0357/doc_00067452 [11:18:29]save last doc name /storage/0357/doc_00067452 to /storage/kkm_last_doc_name [11:18:29]save OK [11:18:29]Clear old archive folders... [11:18:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:18:29]tlvbuf is 00C82970 [11:18:29]SAM_PROTO_ClearQueue [11:18:29]wFMCommunicate request_size=4 [11:18:29]MH_SAM_APDU [11:18:29]CAPDU: 80 09 00 00 [11:18:29]Write to MH i2c: E2 08 00 F5 0B 80 09 00 00 00 00 00 00 72 [11:18:29]Write i2c OK [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: E2 [11:18:29]MH_I2C_Read... [11:18:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:18:29]Read from MH i2c: E2 03 00 [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: E2 03 00 F5 0B 00 90 00 74 [11:18:29]RAPDU: 90 00 [11:18:29]wFMCommunicate OK [11:18:29]SAM_PROTO_ClearQueue done [11:18:29]KKMCreateOFDPacket [11:18:29]OFDProtocolAddRootSTLVToBuf [11:18:29]FM_MakeSignedData [11:18:29]FM_MakeSignedData [11:18:29]SAM_PROTO_SignData [11:18:29]wFMCommunicate request_size=4 [11:18:29]MH_SAM_APDU [11:18:29]CAPDU: 80 0D 01 02 [11:18:29]Write to MH i2c: E2 08 00 F6 0B 80 0D 01 02 00 00 00 00 7A [11:18:29]Write i2c OK [11:18:29]MH_I2C_Read... [11:18:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:18:29]Read from MH i2c: E2 [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: E2 03 00 [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: E2 03 00 F6 0B 00 90 00 75 [11:18:29]RAPDU: 90 00 [11:18:29]wFMCommunicate OK [11:18:29]wFMCommunicate request_size=255 [11:18:29]MH_SAM_APDU [11:18: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 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 85 EB 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 7C 07 01 00 35 04 06 00 53 B6 2C 1F [11:18:29]Write to MH i2c: E2 02 01 F7 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 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 85 EB 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 7C 07 01 00 35 04 06 00 53 B6 2C 1F 00 00 71 [11:18:29]Write i2c OK [11:18:29]MH_I2C_Read... [11:18:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:29]Read from MH i2c: E2 [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: E2 03 00 [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: E2 03 00 F7 0B 00 90 00 76 [11:18:29]RAPDU: 90 00 [11:18:29]wFMCommunicate OK [11:18:29]wFMCommunicate request_size=7 [11:18:29]MH_SAM_APDU [11:18:29]CAPDU: 80 0D 02 02 02 5E D7 [11:18:29]Write to MH i2c: E2 0A 00 F8 0B 80 0D 02 02 02 00 5E D7 00 00 B6 [11:18:29]Write i2c OK [11:18:29]MH_I2C_Read... [11:18:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:29]Read from MH i2c: E2 [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: E2 03 00 [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: E2 03 00 F8 0B 00 90 00 77 [11:18:29]RAPDU: 90 00 [11:18:29]wFMCommunicate OK [11:18:29]wFMCommunicate request_size=4 [11:18:29]MH_SAM_APDU [11:18:29]CAPDU: 80 0D 03 02 [11:18:29]Write to MH i2c: E2 08 00 F9 0B 80 0D 03 02 00 00 00 00 7F [11:18:29]Write i2c OK [11:18:29]MH_I2C_Read... [11:18:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:18:29]Read from MH i2c: E2 [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: E2 0B 00 [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: E2 0B 00 F9 0B 00 D9 B2 28 9A 76 31 C8 C1 90 00 FD [11:18:29]RAPDU: D9 B2 28 9A 76 31 C8 C1 90 00 [11:18:29]wFMCommunicate OK [11:18:29]SAM_PROTO_SignData done [11:18:29]FM_MakeSignedData done [11:18:29]CreateOFDProtocolMessage [11:18:29]wFMCommunicate request_size=4 [11:18:29]MH_SAM_APDU [11:18:29]CAPDU: 80 11 00 00 [11:18:29]Write to MH i2c: E2 08 00 FA 0B 80 11 00 00 00 00 00 00 7F [11:18:29]Write i2c OK [11:18:29]MH_I2C_Read... [11:18:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:30]Read from MH i2c: E2 [11:18:30]MH_I2C_Read... [11:18:30]Read from MH i2c: E2 17 00 [11:18:30]MH_I2C_Read... [11:18:30]Read from MH i2c: E2 17 00 FA 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D5 [11:18:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:18:30]wFMCommunicate OK [11:18:30]CreateOFDProtocolMessage done [11:18:30]OFDSenderStorePacket 67452 [11:18:30]StoreOFDPacket docnum=67452 [11:18:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 DF 47 04 01 5F 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 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 85 EB 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 7C 07 01 00 35 04 06 00 53 B6 2C 1F 5E D7 D9 B2 28 9A 76 31 C8 C1 [11:18:30]CheckFolder [11:18:30]dirname=/storage/ofd_packets [11:18:30]CheckFolder done [11:18:30]ProducePacketName [11:18:30]name=ofd_packets/00067452 [11:18:30]NVStorageSaveData ofd_packets/00067452 [11:18:30]File name is /storage/ofd_packets/00067452 [11:18:30]Write 298 bytes [11:18:30]NVStorageSaveData done [11:18:30]OFDSenderStorePacket done [11:18:30]KKMCreateOFDPacket done [11:18:30]NVStorageSaveData kkm_last_timestamp [11:18:30]File name is /storage/kkm_last_timestamp [11:18:30]Write 4 bytes [11:18:30]NVStorageSaveData done [11:18:30]OFD Sender: Processing packet 67452 [packets to send 35, broken 34] [11:18:30]ProducePacketName [11:18:30]name=ofd_packets/00067452 [11:18:30]OFD Sender: To server: pG, [11:18:30]CommunicateWithHost lk.salyk.kg:30040 [11:18:30]ConnectInit lk.salyk.kg [11:18:30]ExternCall_PrintAddStr [11:18:30]wPrintStart [11:18:30]Write to MH i2c: 01 00 00 FB 0B 06 [11:18:30]Write i2c OK [11:18:30]MH_I2C_Read... [11:18:30]Read from MH i2c: 01 [11:18:30]MH_I2C_Read... [11:18:30]Read from MH i2c: 01 07 00 [11:18:30]MH_I2C_Read... [11:18:30]Read from MH i2c: 01 07 00 FB 0B 00 00 00 00 00 FF 0F 1B [11:18:30]RasterBufferAndPrint [11:18:30]line Счет N : (1)507485 [11:18:30]line ИНН: 02508201610067 [11:18:30]line Контрольно-Кассовый Чек [11:18:30]line ПРОДАЖА [11:18:30]line ТРК (МРК, ГНК) : 31 [11:18:30]line Товар: 2710194210 [11:18:30]line ДТ-К-5 [11:18:30]line 26.780 * 74.70 [11:18:30]line = 2000.47 [11:18:30]line НДС 12% НСП 1% [11:18:30]line > о реализуемом товаре [11:18:30]line ИТОГО: 2000.47 [11:18:30]line НСП 1% : 17.70 [11:18:30]line НДС 12% : 212.44 [11:18:30]line Наличными: 0.00 [11:18:30]line Безнал.: 2000.47 [11:18:30]line Место: АЗС № 91 "Партнер Нефть" [11:18:30]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:18:30]line СНО: Общий режим [11:18:30]line Чек 50 16.05.2024 11:18 [11:18:30]line Смена: 357 ФФД: 1.0 [11:18:30]line ЗНМ: 0300000119 [11:18:30]line РНМ: 0000000000091845 [11:18:30]line Версия ККМ: 001 [11:18:30]line Платежная система: O! деньги [11:18:30]line ФМ: 0000000000871829 [11:18:30]line ФД: 67452 [11:18:30]line ФПД: 92041889406679 [11:18:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T111829&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67452&fm=92041889406679&tin=02508201610067®Number=0000000000091845&sum=200047 [11:18:30]Connected sock=11 [11:18: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 38 32 39 0C 01 00 00 DF 47 04 01 5F 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 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 85 EB 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 7C 07 01 00 35 04 06 00 53 B6 2C 1F 5E D7 D9 B2 28 9A 76 31 C8 C1 [11:18:30]written 0, free lines is 4095 [11:18:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 27 C1 47 00 34 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 38 32 39 10 04 04 00 7C 07 01 00 F4 03 04 00 60 93 45 66 B6 04 01 00 00 5F B8 1A 69 F0 3E 1A 28 [11:18:30]CommunicateWithHost err = 0 [11:18:30]CheckOFDResponse [11:18:30]1017 (14) - 77093643461234 [11:18:30]1041 (16) - 0000000000871829 [11:18:30]1040 (4) - 67452 [11:18:30]1012 (4) - 16.05.2024 05:02 [11:18:30]1206 (1) - 0 [11:18:30]OFD Sender: Remove packet 67452 [11:18:30]ProducePacketName [11:18:30]name=ofd_packets/00067452 [11:18:30]NVStorageDeleteData [11:18:30]Write to MH i2c: 01 00 00 24 0C 30 [11:18:30]Write i2c OK [11:18:30]MH_I2C_Read... [11:18:30]Read from MH i2c: 01 [11:18:30]MH_I2C_Read... [11:18:30]Read from MH i2c: 01 07 00 [11:18:30]MH_I2C_Read... [11:18:30]Read from MH i2c: 01 07 00 24 0C 00 00 00 00 00 D8 0C 1B [11:18:30]RasterBufferAndPrint [11:18:30]line [11:18:30]line [11:18:30]line [11:18:30]line [11:18:30]line [11:18:30]written 0, free lines is 3296 [11:18:30]MH_Cut [11:18:30]Write to MH i2c: D1 01 00 2B 0C 01 09 [11:18:30]Write i2c OK [11:18:30]MH_I2C_Read... [11:18:30]Read from MH i2c: D1 [11:18:30]MH_I2C_Read... [11:18:30]Read from MH i2c: D1 01 00 [11:18:30]MH_I2C_Read... [11:18:30]Read from MH i2c: D1 01 00 2B 0C 00 08 [11:18:30]Write to MH i2c: 01 00 00 2C 0C 38 [11:18:30]Write i2c OK [11:18:30]MH_I2C_Read... [11:18:31]OFD Sender: No OFD packet to send [11:18:31]*** Cut start [11:18:31]*** Purtial cut [11:18:31]*** CUTSNS_PIN = 0 [11:18:31]*** Stage 1: CUTSNS_PIN = 1 [11:18:33]Read from MH i2c: 01 [11:18:33]MH_I2C_Read... [11:18:33]*** Stop cut motor [11:18:33]*** Cut end [11:18:33]Read from MH i2c: 01 07 00 [11:18:33]MH_I2C_Read... [11:18:33]Read from MH i2c: 01 07 00 2C 0C 00 00 00 00 00 FF 0F 4D [11:18:33]process_action close_receipt done [11:18:33]requested_data is exist [11:18:33]produce_requested_data [11:18:33]requested_item fm.sn is exist - process it [11:18:33]wFMCommunicate request_size=4 [11:18:33]MH_SAM_APDU [11:18:33]CAPDU: 80 11 00 00 [11:18:33]Write to MH i2c: E2 08 00 2D 0C 80 11 00 00 00 00 00 00 B3 [11:18:33]Write i2c OK [11:18:33]MH_I2C_Read... [11:18:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:33]Read from MH i2c: E2 [11:18:33]MH_I2C_Read... [11:18:33]Read from MH i2c: E2 17 00 [11:18:33]MH_I2C_Read... [11:18:33]Read from MH i2c: E2 17 00 2D 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 09 [11:18:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:18:33]wFMCommunicate OK [11:18:33]requested_item fd.num is exist - process it [11:18:33]SAM_PROTO_GetFieldsCounters [11:18:33]wFMCommunicate request_size=4 [11:18:33]MH_SAM_APDU [11:18:33]CAPDU: 80 13 00 00 [11:18:33]Write to MH i2c: E2 08 00 2E 0C 80 13 00 00 00 00 00 00 B6 [11:18:33]Write i2c OK [11:18:33]MH_I2C_Read... [11:18:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:18:33]Read from MH i2c: E2 [11:18:33]MH_I2C_Read... [11:18:33]Read from MH i2c: E2 62 00 [11:18:33]MH_I2C_Read... [11:18:33]Read from MH i2c: E2 62 00 2E 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 7C 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [11:18: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 7C 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:18:33]wFMCommunicate OK [11:18:33]SAM_PROTO_GetFieldsCounters done [11:18:33]requested_item shift.num is exist - process it [11:18:33]requested_item shift.opened is exist - process it [11:18:33]req_shift_opened [11:18:33]FM_GetShiftState [11:18:33]SAM_PROTO_GetShiftState [11:18:33]wFMCommunicate request_size=4 [11:18:33]MH_SAM_APDU [11:18:33]CAPDU: 80 13 01 00 [11:18:33]Write to MH i2c: E2 08 00 2F 0C 80 13 01 00 00 00 00 00 B8 [11:18:33]Write i2c OK [11:18:33]MH_I2C_Read... [11:18:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:33]Read from MH i2c: E2 [11:18:33]MH_I2C_Read... [11:18:33]Read from MH i2c: E2 0E 00 [11:18:33]MH_I2C_Read... [11:18:33]Read from MH i2c: E2 0E 00 2F 0C 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 64 [11:18:33]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [11:18:33]wFMCommunicate OK [11:18:33]SAM_PROTO_GetShiftState done [11:18:33]FM_GetShiftState done [11:18:33]req_shift_opened done [11:18:33]requested_item shift.open_date is exist - process it [11:18:33]req_shift_open_date [11:18:33]req_shift_open_date done [11:18:33]produce_requested_data done [11:18:33]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67452,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [11:18:33]process_action_free close_receipt [11:18:33]json_value_free [11:18:33]json_value_free done [11:18:33]process_json_proto returns [11:18:33]Send response to host [11:18:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67452,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [11:18:33]free response buf [11:18:33]execute_script done [11:18:33]execute_script returns [11:18:33]free content buf [11:18:33]Sock 9.Close socket [11:18:33]Sock 9.Thread stoped [11:18:36]OFD Sender: No OFD packet to send [11:18:41]OFD Sender: No OFD packet to send [11:18:46]OFD Sender: No OFD packet to send [11:18:51]OFD Sender: No OFD packet to send [11:18:56]OFD Sender: No OFD packet to send [11:19:01]OFD Sender: No OFD packet to send [11:19:06]OFD Sender: No OFD packet to send [11:19:11]OFD Sender: No OFD packet to send [11:19:16]OFD Sender: No OFD packet to send [11:19:17]accept exits with 8 [11:19:17]New connection [11:19:17]New thread 3067460964 created [11:19:17]Thread 3067604324 joined [11:19:17]Waiting for new connection... [11:19:17] Sock 8.Parse request [11:19:17]Sock 8.Check first char [11:19:17]Sock 8.First char is OK [11:19:17]request: POST /json_proto HTTP/1.0 [11:19:17]Method: POST [11:19:17]URL: /json_proto [11:19:17]Method is POST - this is cgi request [11:19:17]url: /json_proto [11:19:17]query_string will be loaded in cgi processing [11:19:17]execute_cgi json_proto POST (null) [11:19:17]execute_cgi path=json_proto method=POST [11:19:17]POST find Content-Length [11:19:17]Host: 172.17.41.195:8080 [11:19:17]Content-Length: 1209 [11:19:17]Content-Type: application/json [11:19:17] [11:19:17]POST finish read [11:19:17]Found Content-Length = 1209 [11:19:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507486\u000A16.05.2024 11:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 14.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1045.80\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:17]execute_script... [11:19:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507486\u000A16.05.2024 11:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 14.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1045.80\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:17]POST & json_proto [11:19:17]process_json_proto [11:19:17]json parsed OK: [11:19:17]protocol is kg_v1.0 [11:19:17]action value=print_text [11:19:17]process_action print_text [11:19:17]cmd_print_text [11:19:17]ExternCall_PrintAddStr [11:19:17]wPrintStart [11:19:17]Write to MH i2c: 01 00 00 30 0C 3C [11:19:17]Write i2c OK [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: 01 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: 01 07 00 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: 01 07 00 30 0C 00 00 00 00 00 FF 0F 51 [11:19:17]RasterBufferAndPrint [11:19:17]line *****ТОВАРНЫЙ ЧЕК***** [11:19:17]line АЗС-91 [11:19:17]line Партнер нефть [11:19:17]line 02508201610067 [11:19:17]line Кассир : Пайзулдаева А. [11:19:17]line Счет N : (1)507486 [11:19:17]line 16.05.2024 11:01 [11:19:17]line ПРОДАЖА [11:19:17]line ТРК (МРК, ГНК): 41 [11:19:17]line Вид ГСМ : 2710194210 [11:19:17]line ДТ-К-5 [11:19:17]line 14.000 x 74.70 [11:19:17]line ИТОГ: 1045.80 [11:19:17]line Тип оплаты: Талоны: Топливная Карта [11:19:17]line 02750 [11:19:17]line ______________________ [11:19:17]line (подпись) [11:19:17]written 0, free lines is 4095 [11:19:18]Write to MH i2c: 01 00 00 44 0C 50 [11:19:18]Write i2c OK [11:19:18]MH_I2C_Read... [11:19:18]Read from MH i2c: 01 [11:19:18]MH_I2C_Read... [11:19:18]Read from MH i2c: 01 07 00 [11:19:18]MH_I2C_Read... [11:19:18]Read from MH i2c: 01 07 00 44 0C 00 00 00 00 00 0F 0E 74 [11:19:18]RasterBufferAndPrint [11:19:18]line [11:19:18]line [11:19:18]line [11:19:18]line [11:19:18]line [11:19:18]written 0, free lines is 3601 [11:19:18]MH_Cut [11:19:18]Write to MH i2c: D1 01 00 4B 0C 01 29 [11:19:18]Write i2c OK [11:19:18]MH_I2C_Read... [11:19:18]Read from MH i2c: D1 [11:19:18]MH_I2C_Read... [11:19:18]Read from MH i2c: D1 01 00 [11:19:18]MH_I2C_Read... [11:19:18]Read from MH i2c: D1 01 00 4B 0C 00 28 [11:19:18]Write to MH i2c: 01 00 00 4C 0C 58 [11:19:18]Write i2c OK [11:19:18]MH_I2C_Read... [11:19:18]*** Cut start [11:19:18]*** Purtial cut [11:19:18]*** Stage 1: CUTSNS_PIN = 1 [11:19:18]Read from MH i2c: 01 [11:19:18]MH_I2C_Read... [11:19:18]*** Stop cut motor [11:19:18]*** Cut end [11:19:18]Read from MH i2c: 01 07 00 [11:19:18]MH_I2C_Read... [11:19:19]Read from MH i2c: 01 07 00 4C 0C 00 00 00 00 00 FF 0F 6D [11:19:19]process_action print_text done [11:19:19]requested_data is exist [11:19:19]produce_requested_data [11:19:19]requested_item fm.sn is exist - process it [11:19:19]wFMCommunicate request_size=4 [11:19:19]MH_SAM_APDU [11:19:19]CAPDU: 80 11 00 00 [11:19:19]Write to MH i2c: E2 08 00 4D 0C 80 11 00 00 00 00 00 00 D3 [11:19:19]Write i2c OK [11:19:19]MH_I2C_Read... [11:19:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:19]Read from MH i2c: E2 [11:19:19]MH_I2C_Read... [11:19:19]Read from MH i2c: E2 17 00 [11:19:19]MH_I2C_Read... [11:19:19]Read from MH i2c: E2 17 00 4D 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 29 [11:19:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:19:19]wFMCommunicate OK [11:19:19]requested_item fd.num is exist - process it [11:19:19]SAM_PROTO_GetFieldsCounters [11:19:19]wFMCommunicate request_size=4 [11:19:19]MH_SAM_APDU [11:19:19]CAPDU: 80 13 00 00 [11:19:19]Write to MH i2c: E2 08 00 4E 0C 80 13 00 00 00 00 00 00 D6 [11:19:19]Write i2c OK [11:19:19]MH_I2C_Read... [11:19:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:19]Read from MH i2c: E2 [11:19:19]MH_I2C_Read... [11:19:19]Read from MH i2c: E2 62 00 [11:19:19]MH_I2C_Read... [11:19:19]Read from MH i2c: E2 62 00 4E 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 7C 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [11:19:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 7C 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:19:19]wFMCommunicate OK [11:19:19]SAM_PROTO_GetFieldsCounters done [11:19:19]requested_item shift.num is exist - process it [11:19:19]requested_item shift.opened is exist - process it [11:19:19]req_shift_opened [11:19:19]FM_GetShiftState [11:19:19]SAM_PROTO_GetShiftState [11:19:19]wFMCommunicate request_size=4 [11:19:19]MH_SAM_APDU [11:19:19]CAPDU: 80 13 01 00 [11:19:19]Write to MH i2c: E2 08 00 4F 0C 80 13 01 00 00 00 00 00 D8 [11:19:19]Write i2c OK [11:19:19]MH_I2C_Read... [11:19:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:19]Read from MH i2c: E2 [11:19:19]MH_I2C_Read... [11:19:19]Read from MH i2c: E2 0E 00 [11:19:19]MH_I2C_Read... [11:19:19]Read from MH i2c: E2 0E 00 4F 0C 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 84 [11:19:19]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [11:19:19]wFMCommunicate OK [11:19:19]SAM_PROTO_GetShiftState done [11:19:19]FM_GetShiftState done [11:19:19]req_shift_opened done [11:19:19]requested_item shift.open_date is exist - process it [11:19:19]req_shift_open_date [11:19:19]req_shift_open_date done [11:19:19]produce_requested_data done [11:19:19]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67452,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [11:19:19]process_action_free print_text [11:19:19]json_value_free [11:19:19]json_value_free done [11:19:19]process_json_proto returns [11:19:19]Send response to host [11:19:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67452,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [11:19:19]free response buf [11:19:19]execute_script done [11:19:19]execute_script returns [11:19:19]free content buf [11:19:19]Sock 8.Close socket [11:19:19]Sock 8.Thread stoped [11:19:21]OFD Sender: No OFD packet to send [11:19:26]OFD Sender: No OFD packet to send [11:19:31]OFD Sender: No OFD packet to send [11:19:36]OFD Sender: No OFD packet to send [11:19:41]OFD Sender: No OFD packet to send [11:19:46]OFD Sender: No OFD packet to send [11:19:49]accept exits with 9 [11:19:49]New connection [11:19:49]New thread 3067604324 created [11:19:49]Thread 3067460964 joined [11:19:49]Waiting for new connection... [11:19:49] Sock 9.Parse request [11:19:49]Sock 9.Check first char [11:19:49]Sock 9.First char is OK [11:19:49]request: POST /json_proto HTTP/1.0 [11:19:49]Method: POST [11:19:49]URL: /json_proto [11:19:49]Method is POST - this is cgi request [11:19:49]url: /json_proto [11:19:49]query_string will be loaded in cgi processing [11:19:49]execute_cgi json_proto POST (null) [11:19:49]execute_cgi path=json_proto method=POST [11:19:49]POST find Content-Length [11:19:49]Host: 172.17.41.195:8080 [11:19:49]Content-Length: 819 [11:19:49]Content-Type: application/json [11:19:49] [11:19:49]POST finish read [11:19:49]Found Content-Length = 819 [11:19:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507487", "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.80, "quantity" : 14.980, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:49]execute_script... [11:19: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)507487", "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.80, "quantity" : 14.980, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:49]POST & json_proto [11:19:49]process_json_proto [11:19:49]json parsed OK: [11:19:49]protocol is kg_v1.0 [11:19:49]action value=close_receipt [11:19:49]process_action close_receipt [11:19:49]cmd_close_receipt [11:19:49]MH_GetDate [11:19:49]Write to MH i2c: F0 00 00 50 0C 4B [11:19:49]Write i2c OK [11:19:49]MH_I2C_Read... [11:19:49]Read from MH i2c: F0 [11:19:49]MH_I2C_Read... [11:19:49]Read from MH i2c: F0 09 00 [11:19:49]MH_I2C_Read... [11:19:49]Read from MH i2c: F0 09 00 50 0C 00 D7 EB 45 66 FC 21 6F 64 B1 [11:19:49]GetLastDocTimeStamp 1715858309 [11:19:49]current date 1715858391 [11:19:49]FM_GetShiftState [11:19:49]SAM_PROTO_GetShiftState [11:19:49]wFMCommunicate request_size=4 [11:19:49]MH_SAM_APDU [11:19:49]CAPDU: 80 13 01 00 [11:19:49]Write to MH i2c: E2 08 00 51 0C 80 13 01 00 00 00 00 00 DA [11:19:49]Write i2c OK [11:19:49]MH_I2C_Read... [11:19:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:49]Read from MH i2c: E2 [11:19:49]MH_I2C_Read... [11:19:49]Read from MH i2c: E2 0E 00 [11:19:49]MH_I2C_Read... [11:19:49]Read from MH i2c: E2 0E 00 51 0C 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 86 [11:19:49]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [11:19:49]wFMCommunicate OK [11:19:49]SAM_PROTO_GetShiftState done [11:19:49]FM_GetShiftState done [11:19:49]opened in 1715818916 [11:19:49]opened+sec_in_day 1715905316 [11:19:49]quantity*price = 100066 [11:19:49]sum+1 = 100067 [11:19:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.66 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.66 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 51 16.05.2024 11:19 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67453 ФПД: 127355666154487 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T111951&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67453&fm=127355666154487&tin=02508201610067®Number=0000000000091845&sum=100066 [11:19:50]StoreToDocumentArchive [11:19:50]shift 357 fd 67453 [11:19:50]save to /storage/0357/doc_00067453 [11:19:50]save last doc name /storage/0357/doc_00067453 to /storage/kkm_last_doc_name [11:19:50]save OK [11:19:50]Clear old archive folders... [11:19:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:19:50]tlvbuf is 00C917E0 [11:19:50]SAM_PROTO_ClearQueue [11:19:50]wFMCommunicate request_size=4 [11:19:50]MH_SAM_APDU [11:19:50]CAPDU: 80 09 00 00 [11:19:50]Write to MH i2c: E2 08 00 5E 0C 80 09 00 00 00 00 00 00 DC [11:19:50]Write i2c OK [11:19:50]MH_I2C_Read... [11:19:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:50]Read from MH i2c: E2 [11:19:50]MH_I2C_Read... [11:19:50]Read from MH i2c: E2 03 00 [11:19:50]MH_I2C_Read... [11:19:50]Read from MH i2c: E2 03 00 5E 0C 00 90 00 DE [11:19:50]RAPDU: 90 00 [11:19:50]wFMCommunicate OK [11:19:50]SAM_PROTO_ClearQueue done [11:19:50]KKMCreateOFDPacket [11:19:50]OFDProtocolAddRootSTLVToBuf [11:19:50]FM_MakeSignedData [11:19:50]FM_MakeSignedData [11:19:50]SAM_PROTO_SignData [11:19:50]wFMCommunicate request_size=4 [11:19:50]MH_SAM_APDU [11:19:50]CAPDU: 80 0D 01 02 [11:19:50]Write to MH i2c: E2 08 00 5F 0C 80 0D 01 02 00 00 00 00 E4 [11:19:50]Write i2c OK [11:19:50]MH_I2C_Read... [11:19:50]Read from MH i2c: E2 [11:19:50]MH_I2C_Read... [11:19:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:50]Read from MH i2c: E2 03 00 [11:19:50]MH_I2C_Read... [11:19:50]Read from MH i2c: E2 03 00 5F 0C 00 90 00 DF [11:19:50]RAPDU: 90 00 [11:19:50]wFMCommunicate OK [11:19:50]wFMCommunicate request_size=255 [11:19:50]MH_SAM_APDU [11:19:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 D7 EB 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 7D 07 01 00 35 04 06 00 73 [11:19:50]Write to MH i2c: E2 02 01 60 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 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 D7 EB 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 7D 07 01 00 35 04 06 00 73 00 00 3F [11:19:50]Write i2c OK [11:19:50]MH_I2C_Read... [11:19:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:51]Read from MH i2c: E2 [11:19:51]MH_I2C_Read... [11:19:51]Read from MH i2c: E2 03 00 [11:19:51]MH_I2C_Read... [11:19:51]Read from MH i2c: E2 03 00 60 0C 00 90 00 E0 [11:19:51]RAPDU: 90 00 [11:19:51]wFMCommunicate OK [11:19:51]wFMCommunicate request_size=10 [11:19:51]MH_SAM_APDU [11:19:51]CAPDU: 80 0D 02 02 05 D4 4D 3D C3 F7 [11:19:51]Write to MH i2c: E2 0D 00 61 0C 80 0D 02 02 05 00 D4 4D 3D C3 F7 00 00 09 [11:19:51]OFD Sender: No OFD packet to send [11:19:51]Write i2c OK [11:19:51]MH_I2C_Read... [11:19:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:51]Read from MH i2c: E2 [11:19:51]MH_I2C_Read... [11:19:51]Read from MH i2c: E2 03 00 [11:19:51]MH_I2C_Read... [11:19:51]Read from MH i2c: E2 03 00 61 0C 00 90 00 E1 [11:19:51]RAPDU: 90 00 [11:19:51]wFMCommunicate OK [11:19:51]wFMCommunicate request_size=4 [11:19:51]MH_SAM_APDU [11:19:51]CAPDU: 80 0D 03 02 [11:19:51]Write to MH i2c: E2 08 00 62 0C 80 0D 03 02 00 00 00 00 E9 [11:19:51]Write i2c OK [11:19:51]MH_I2C_Read... [11:19:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:51]Read from MH i2c: E2 [11:19:51]MH_I2C_Read... [11:19:51]Read from MH i2c: E2 0B 00 [11:19:51]MH_I2C_Read... [11:19:51]Read from MH i2c: E2 0B 00 62 0C 00 1C DB 0D 28 48 0C 0A 32 90 00 A6 [11:19:51]RAPDU: 1C DB 0D 28 48 0C 0A 32 90 00 [11:19:51]wFMCommunicate OK [11:19:51]SAM_PROTO_SignData done [11:19:51]FM_MakeSignedData done [11:19:51]CreateOFDProtocolMessage [11:19:51]wFMCommunicate request_size=4 [11:19:51]MH_SAM_APDU [11:19:51]CAPDU: 80 11 00 00 [11:19:51]Write to MH i2c: E2 08 00 63 0C 80 11 00 00 00 00 00 00 E9 [11:19:51]Write i2c OK [11:19:51]MH_I2C_Read... [11:19:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:51]Read from MH i2c: E2 [11:19:51]MH_I2C_Read... [11:19:51]Read from MH i2c: E2 17 00 [11:19:51]MH_I2C_Read... [11:19:51]Read from MH i2c: E2 17 00 63 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3F [11:19:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:19:51]wFMCommunicate OK [11:19:51]CreateOFDProtocolMessage done [11:19:51]OFDSenderStorePacket 67453 [11:19:51]StoreOFDPacket docnum=67453 [11:19:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 B5 84 07 01 23 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 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 D7 EB 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 7D 07 01 00 35 04 06 00 73 D4 4D 3D C3 F7 1C DB 0D 28 48 0C 0A 32 [11:19:51]CheckFolder [11:19:51]dirname=/storage/ofd_packets [11:19:51]CheckFolder done [11:19:51]ProducePacketName [11:19:51]name=ofd_packets/00067453 [11:19:51]NVStorageSaveData ofd_packets/00067453 [11:19:51]File name is /storage/ofd_packets/00067453 [11:19:51]Write 301 bytes [11:19:51]NVStorageSaveData done [11:19:51]OFDSenderStorePacket done [11:19:51]KKMCreateOFDPacket done [11:19:51]NVStorageSaveData kkm_last_timestamp [11:19:51]File name is /storage/kkm_last_timestamp [11:19:51]Write 4 bytes [11:19:51]NVStorageSaveData done [11:19:51]ExternCall_PrintAddStr [11:19:51]wPrintStart [11:19:51]Write to MH i2c: 01 00 00 64 0C 70 [11:19:51]Write i2c OK [11:19:51]MH_I2C_Read... [11:19:51]Read from MH i2c: 01 [11:19:51]MH_I2C_Read... [11:19:51]Read from MH i2c: 01 07 00 [11:19:51]MH_I2C_Read... [11:19:51]Read from MH i2c: 01 07 00 64 0C 00 00 00 00 00 FF 0F 85 [11:19:51]RasterBufferAndPrint [11:19:51]line Счет N : (1)507487 [11:19:51]line ИНН: 02508201610067 [11:19:51]line Контрольно-Кассовый Чек [11:19:51]line ПРОДАЖА [11:19:51]line ТРК (МРК, ГНК) : 23 [11:19:51]line Товар: 2710124130 [11:19:51]line Аи-92-К-5 [11:19:51]line 14.980 * 66.80 [11:19:51]line = 1000.66 [11:19:51]line НДС 12% НСП 1% [11:19:51]line > о реализуемом товаре [11:19:51]line ИТОГО: 1000.66 [11:19:51]line НСП 1% : 8.85 [11:19:51]line НДС 12% : 106.26 [11:19:51]line Наличными: 0.00 [11:19:51]line Безнал.: 1000.66 [11:19:51]line Место: АЗС № 91 "Партнер Нефть" [11:19:51]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:19:51]line СНО: Общий режим [11:19:51]line Чек 51 16.05.2024 11:19 [11:19:51]line Смена: 357 ФФД: 1.0 [11:19:51]line ЗНМ: 0300000119 [11:19:51]line РНМ: 0000000000091845 [11:19:51]line Версия ККМ: 001 [11:19:51]line Платежная система: Бакай Банк [11:19:51]line ФМ: 0000000000871829 [11:19:51]line ФД: 67453 [11:19:51]line ФПД: 127355666154487 [11:19:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T111951&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67453&fm=127355666154487&tin=02508201610067®Number=0000000000091845&sum=100066 [11:19:51]OFD Sender: Processing packet 67453 [packets to send 35, broken 34] [11:19:51]ProducePacketName [11:19:51]name=ofd_packets/00067453 [11:19:51]OFD Sender: To server: pG, [11:19:51]CommunicateWithHost lk.salyk.kg:30040 [11:19:51]ConnectInit lk.salyk.kg [11:19:51]written 0, free lines is 4095 [11:19:51]Connected sock=10 [11:19: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 38 32 39 0F 01 00 00 B5 84 07 01 23 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 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 D7 EB 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 7D 07 01 00 35 04 06 00 73 D4 4D 3D C3 F7 1C DB 0D 28 48 0C 0A 32 [11:19:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 A8 C9 47 00 19 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 7D 07 01 00 F4 03 04 00 B2 93 45 66 B6 04 01 00 00 E3 36 1E A2 38 C2 71 A9 [11:19:51]CommunicateWithHost err = 0 [11:19:51]CheckOFDResponse [11:19:51]1017 (14) - 77093643461234 [11:19:51]1041 (16) - 0000000000871829 [11:19:51]1040 (4) - 67453 [11:19:51]1012 (4) - 16.05.2024 05:03 [11:19:51]1206 (1) - 0 [11:19:51]OFD Sender: Remove packet 67453 [11:19:51]ProducePacketName [11:19:51]name=ofd_packets/00067453 [11:19:51]NVStorageDeleteData [11:19:52]Write to MH i2c: 01 00 00 8D 0C 99 [11:19:52]Write i2c OK [11:19:52]MH_I2C_Read... [11:19:52]Read from MH i2c: 01 [11:19:52]MH_I2C_Read... [11:19:52]Read from MH i2c: 01 07 00 [11:19:52]MH_I2C_Read... [11:19:52]Read from MH i2c: 01 07 00 8D 0C 00 00 00 00 00 F5 0C A1 [11:19:52]RasterBufferAndPrint [11:19:52]line [11:19:52]line [11:19:52]line [11:19:52]line [11:19:52]line [11:19:52]written 0, free lines is 3322 [11:19:52]MH_Cut [11:19:52]Write to MH i2c: D1 01 00 94 0C 01 72 [11:19:52]Write i2c OK [11:19:52]MH_I2C_Read... [11:19:52]Read from MH i2c: D1 [11:19:52]MH_I2C_Read... [11:19:52]Read from MH i2c: D1 01 00 [11:19:52]MH_I2C_Read... [11:19:52]Read from MH i2c: D1 01 00 94 0C 00 71 [11:19:52]Write to MH i2c: 01 00 00 95 0C A1 [11:19:52]Write i2c OK [11:19:52]MH_I2C_Read... [11:19:52]OFD Sender: No OFD packet to send [11:19:52]*** Cut start [11:19:52]*** Purtial cut [11:19:52]*** CUTSNS_PIN = 0 [11:19:53]*** Stage 1: CUTSNS_PIN = 1 [11:19:54]Read from MH i2c: 01 [11:19:54]MH_I2C_Read... [11:19:54]*** Stop cut motor [11:19:54]*** Cut end [11:19:54]Read from MH i2c: 01 07 00 [11:19:54]MH_I2C_Read... [11:19:54]Read from MH i2c: 01 07 00 95 0C 00 00 00 00 00 FF 0F B6 [11:19:54]process_action close_receipt done [11:19:54]requested_data is exist [11:19:54]produce_requested_data [11:19:54]requested_item fm.sn is exist - process it [11:19:54]wFMCommunicate request_size=4 [11:19:54]MH_SAM_APDU [11:19:54]CAPDU: 80 11 00 00 [11:19:54]Write to MH i2c: E2 08 00 96 0C 80 11 00 00 00 00 00 00 1C [11:19:54]Write i2c OK [11:19:54]MH_I2C_Read... [11:19:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:55]Read from MH i2c: E2 [11:19:55]MH_I2C_Read... [11:19:55]Read from MH i2c: E2 17 00 [11:19:55]MH_I2C_Read... [11:19:55]Read from MH i2c: E2 17 00 96 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 72 [11:19:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:19:55]wFMCommunicate OK [11:19:55]requested_item fd.num is exist - process it [11:19:55]SAM_PROTO_GetFieldsCounters [11:19:55]wFMCommunicate request_size=4 [11:19:55]MH_SAM_APDU [11:19:55]CAPDU: 80 13 00 00 [11:19:55]Write to MH i2c: E2 08 00 97 0C 80 13 00 00 00 00 00 00 1F [11:19:55]Write i2c OK [11:19:55]MH_I2C_Read... [11:19:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:55]Read from MH i2c: E2 [11:19:55]MH_I2C_Read... [11:19:55]Read from MH i2c: E2 62 00 [11:19:55]MH_I2C_Read... [11:19:55]Read from MH i2c: E2 62 00 97 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 7D 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [11:19: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 7D 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:19:55]wFMCommunicate OK [11:19:55]SAM_PROTO_GetFieldsCounters done [11:19:55]requested_item shift.num is exist - process it [11:19:55]requested_item shift.opened is exist - process it [11:19:55]req_shift_opened [11:19:55]FM_GetShiftState [11:19:55]SAM_PROTO_GetShiftState [11:19:55]wFMCommunicate request_size=4 [11:19:55]MH_SAM_APDU [11:19:55]CAPDU: 80 13 01 00 [11:19:55]Write to MH i2c: E2 08 00 98 0C 80 13 01 00 00 00 00 00 21 [11:19:55]Write i2c OK [11:19:55]MH_I2C_Read... [11:19:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:55]Read from MH i2c: E2 [11:19:55]MH_I2C_Read... [11:19:55]Read from MH i2c: E2 0E 00 [11:19:55]MH_I2C_Read... [11:19:55]Read from MH i2c: E2 0E 00 98 0C 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 CD [11:19:55]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [11:19:55]wFMCommunicate OK [11:19:55]SAM_PROTO_GetShiftState done [11:19:55]FM_GetShiftState done [11:19:55]req_shift_opened done [11:19:55]requested_item shift.open_date is exist - process it [11:19:55]req_shift_open_date [11:19:55]req_shift_open_date done [11:19:55]produce_requested_data done [11:19:55]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67453,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [11:19:55]process_action_free close_receipt [11:19:55]json_value_free [11:19:55]json_value_free done [11:19:55]process_json_proto returns [11:19:55]Send response to host [11:19:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67453,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [11:19:55]free response buf [11:19:55]execute_script done [11:19:55]execute_script returns [11:19:55]free content buf [11:19:55]Sock 9.Close socket [11:19:55]Sock 9.Thread stoped [11:19:57]OFD Sender: No OFD packet to send [11:20:02]OFD Sender: No OFD packet to send [11:20:07]OFD Sender: No OFD packet to send [11:20:12]OFD Sender: No OFD packet to send [11:20:17]OFD Sender: No OFD packet to send [11:20:22]OFD Sender: No OFD packet to send [11:20:27]OFD Sender: No OFD packet to send [11:20:32]OFD Sender: No OFD packet to send [11:20:37]OFD Sender: No OFD packet to send [11:20:42]OFD Sender: No OFD packet to send [11:20:47]OFD Sender: No OFD packet to send [11:20:52]OFD Sender: No OFD packet to send [11:20:57]OFD Sender: No OFD packet to send [11:21:02]OFD Sender: No OFD packet to send [11:21:07]OFD Sender: No OFD packet to send [11:21:12]OFD Sender: No OFD packet to send [11:21:17]OFD Sender: No OFD packet to send [11:21:22]OFD Sender: No OFD packet to send [11:21:27]OFD Sender: No OFD packet to send [11:21:32]OFD Sender: No OFD packet to send [11:21:37]OFD Sender: No OFD packet to send [11:21:42]OFD Sender: No OFD packet to send [11:21:47]OFD Sender: No OFD packet to send [11:21:52]OFD Sender: No OFD packet to send [11:21:57]OFD Sender: No OFD packet to send [11:22:02]OFD Sender: No OFD packet to send [11:22:07]OFD Sender: No OFD packet to send [11:22:12]OFD Sender: No OFD packet to send [11:22:17]OFD Sender: No OFD packet to send [11:22:22]OFD Sender: No OFD packet to send [11:22:27]OFD Sender: No OFD packet to send [11:22:31]accept exits with 8 [11:22:31]New connection [11:22:31]New thread 3067460964 created [11:22:31]Thread 3067604324 joined [11:22:31]Waiting for new connection... [11:22:31] Sock 8.Parse request [11:22:31]Sock 8.Check first char [11:22:31]Sock 8.First char is OK [11:22:31]request: POST /json_proto HTTP/1.0 [11:22:31]Method: POST [11:22:31]URL: /json_proto [11:22:31]Method is POST - this is cgi request [11:22:31]url: /json_proto [11:22:31]query_string will be loaded in cgi processing [11:22:31]execute_cgi json_proto POST (null) [11:22:31]execute_cgi path=json_proto method=POST [11:22:31]POST find Content-Length [11:22:31]Host: 172.17.41.195:8080 [11:22:31]Content-Length: 675 [11:22:31]Content-Type: application/json [11:22:31] [11:22:31]POST finish read [11:22:31]Found Content-Length = 675 [11:22:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507488", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:31]execute_script... [11:22: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)507488", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:31]POST & json_proto [11:22:31]process_json_proto [11:22:31]json parsed OK: [11:22:31]protocol is kg_v1.0 [11:22:31]action value=close_receipt [11:22:31]process_action close_receipt [11:22:31]cmd_close_receipt [11:22:31]MH_GetDate [11:22:31]Write to MH i2c: F0 00 00 99 0C 94 [11:22:31]Write i2c OK [11:22:31]MH_I2C_Read... [11:22:31]Read from MH i2c: F0 [11:22:31]MH_I2C_Read... [11:22:31]Read from MH i2c: F0 09 00 [11:22:31]MH_I2C_Read... [11:22:31]Read from MH i2c: F0 09 00 99 0C 00 78 EC 45 66 FC 21 6F 64 9C [11:22:31]GetLastDocTimeStamp 1715858391 [11:22:31]current date 1715858552 [11:22:31]FM_GetShiftState [11:22:31]SAM_PROTO_GetShiftState [11:22:31]wFMCommunicate request_size=4 [11:22:31]MH_SAM_APDU [11:22:31]CAPDU: 80 13 01 00 [11:22:31]Write to MH i2c: E2 08 00 9A 0C 80 13 01 00 00 00 00 00 23 [11:22:31]Write i2c OK [11:22:31]MH_I2C_Read... [11:22:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:31]Read from MH i2c: E2 [11:22:31]MH_I2C_Read... [11:22:31]Read from MH i2c: E2 0E 00 [11:22:31]MH_I2C_Read... [11:22:31]Read from MH i2c: E2 0E 00 9A 0C 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 CF [11:22:31]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [11:22:31]wFMCommunicate OK [11:22:31]SAM_PROTO_GetShiftState done [11:22:31]FM_GetShiftState done [11:22:31]opened in 1715818916 [11:22:31]opened+sec_in_day 1715905316 [11:22:31]quantity*price = 100005 [11:22:31]sum+1 = 100006 [11:22:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 52 16.05.2024 11:22 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67454 ФПД: 179154810331491 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T112232&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67454&fm=179154810331491&tin=02508201610067®Number=0000000000091845&sum=100000 [11:22:32]StoreToDocumentArchive [11:22:32]shift 357 fd 67454 [11:22:32]save to /storage/0357/doc_00067454 [11:22:32]save last doc name /storage/0357/doc_00067454 to /storage/kkm_last_doc_name [11:22:32]save OK [11:22:32]Clear old archive folders... [11:22:32]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:22:32]tlvbuf is B6F79A60 [11:22:32]SAM_PROTO_ClearQueue [11:22:32]wFMCommunicate request_size=4 [11:22:32]MH_SAM_APDU [11:22:32]CAPDU: 80 09 00 00 [11:22:32]Write to MH i2c: E2 08 00 A7 0C 80 09 00 00 00 00 00 00 25 [11:22:32]Write i2c OK [11:22:32]MH_I2C_Read... [11:22:32]Read from MH i2c: E2 [11:22:32]MH_I2C_Read... [11:22:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:22:32]Read from MH i2c: E2 03 00 [11:22:32]MH_I2C_Read... [11:22:32]Read from MH i2c: E2 03 00 A7 0C 00 90 00 27 [11:22:32]RAPDU: 90 00 [11:22:32]wFMCommunicate OK [11:22:32]SAM_PROTO_ClearQueue done [11:22:32]KKMCreateOFDPacket [11:22:32]OFDProtocolAddRootSTLVToBuf [11:22:32]FM_MakeSignedData [11:22:32]FM_MakeSignedData [11:22:32]SAM_PROTO_SignData [11:22:32]wFMCommunicate request_size=4 [11:22:32]MH_SAM_APDU [11:22:32]CAPDU: 80 0D 01 02 [11:22:32]Write to MH i2c: E2 08 00 A8 0C 80 0D 01 02 00 00 00 00 2D [11:22:32]Write i2c OK [11:22:32]MH_I2C_Read... [11:22:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:22:32]Read from MH i2c: E2 [11:22:32]MH_I2C_Read... [11:22:32]Read from MH i2c: E2 03 00 [11:22:32]MH_I2C_Read... [11:22:32]Read from MH i2c: E2 03 00 A8 0C 00 90 00 28 [11:22:32]RAPDU: 90 00 [11:22:32]wFMCommunicate OK [11:22:32]wFMCommunicate request_size=255 [11:22:32]MH_SAM_APDU [11:22:32]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 78 EC 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 7E 07 01 00 35 04 06 00 [11:22:32]Write to MH i2c: E2 02 01 A9 0C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 78 EC 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 7E 07 01 00 35 04 06 00 00 00 99 [11:22:32]Write i2c OK [11:22:32]MH_I2C_Read... [11:22:32]OFD Sender: No OFD packet to send [11:22:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:32]Read from MH i2c: E2 [11:22:32]MH_I2C_Read... [11:22:32]Read from MH i2c: E2 03 00 [11:22:32]MH_I2C_Read... [11:22:32]Read from MH i2c: E2 03 00 A9 0C 00 90 00 29 [11:22:32]RAPDU: 90 00 [11:22:32]wFMCommunicate OK [11:22:32]wFMCommunicate request_size=11 [11:22:32]MH_SAM_APDU [11:22:32]CAPDU: 80 0D 02 02 06 A2 F0 BA D4 61 63 [11:22:32]Write to MH i2c: E2 0E 00 AA 0C 80 0D 02 02 06 00 A2 F0 BA D4 61 63 00 00 20 [11:22:32]Write i2c OK [11:22:32]MH_I2C_Read... [11:22:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:32]Read from MH i2c: E2 [11:22:32]MH_I2C_Read... [11:22:32]Read from MH i2c: E2 03 00 [11:22:32]MH_I2C_Read... [11:22:32]Read from MH i2c: E2 03 00 AA 0C 00 90 00 2A [11:22:32]RAPDU: 90 00 [11:22:32]wFMCommunicate OK [11:22:32]wFMCommunicate request_size=4 [11:22:32]MH_SAM_APDU [11:22:32]CAPDU: 80 0D 03 02 [11:22:32]Write to MH i2c: E2 08 00 AB 0C 80 0D 03 02 00 00 00 00 32 [11:22:32]Write i2c OK [11:22:32]MH_I2C_Read... [11:22:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:22:32]Read from MH i2c: E2 [11:22:32]MH_I2C_Read... [11:22:32]Read from MH i2c: E2 0B 00 [11:22:32]MH_I2C_Read... [11:22:32]Read from MH i2c: E2 0B 00 AB 0C 00 D2 B2 38 59 BC 25 A0 B7 90 00 80 [11:22:32]RAPDU: D2 B2 38 59 BC 25 A0 B7 90 00 [11:22:32]wFMCommunicate OK [11:22:32]SAM_PROTO_SignData done [11:22:32]FM_MakeSignedData done [11:22:32]CreateOFDProtocolMessage [11:22:32]wFMCommunicate request_size=4 [11:22:32]MH_SAM_APDU [11:22:32]CAPDU: 80 11 00 00 [11:22:32]Write to MH i2c: E2 08 00 AC 0C 80 11 00 00 00 00 00 00 32 [11:22:32]Write i2c OK [11:22:32]MH_I2C_Read... [11:22:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:32]Read from MH i2c: E2 [11:22:32]MH_I2C_Read... [11:22:32]Read from MH i2c: E2 17 00 [11:22:32]MH_I2C_Read... [11:22:32]Read from MH i2c: E2 17 00 AC 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 88 [11:22:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:22:32]wFMCommunicate OK [11:22:32]CreateOFDProtocolMessage done [11:22:32]OFDSenderStorePacket 67454 [11:22:32]StoreOFDPacket docnum=67454 [11:22:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 17 22 08 01 45 5B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 78 EC 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 7E 07 01 00 35 04 06 00 A2 F0 BA D4 61 63 D2 B2 38 59 BC 25 A0 B7 [11:22:32]CheckFolder [11:22:32]dirname=/storage/ofd_packets [11:22:32]CheckFolder done [11:22:32]ProducePacketName [11:22:32]name=ofd_packets/00067454 [11:22:32]NVStorageSaveData ofd_packets/00067454 [11:22:32]File name is /storage/ofd_packets/00067454 [11:22:32]Write 302 bytes [11:22:32]NVStorageSaveData done [11:22:32]OFDSenderStorePacket done [11:22:32]KKMCreateOFDPacket done [11:22:32]NVStorageSaveData kkm_last_timestamp [11:22:32]File name is /storage/kkm_last_timestamp [11:22:32]Write 4 bytes [11:22:32]NVStorageSaveData done [11:22:32]ExternCall_PrintAddStr [11:22:32]wPrintStart [11:22:32]Write to MH i2c: 01 00 00 AD 0C B9 [11:22:32]Write i2c OK [11:22:32]MH_I2C_Read... [11:22:32]Read from MH i2c: 01 [11:22:32]MH_I2C_Read... [11:22:32]Read from MH i2c: 01 07 00 [11:22:32]MH_I2C_Read... [11:22:32]Read from MH i2c: 01 07 00 AD 0C 00 00 00 00 00 FF 0F CE [11:22:32]RasterBufferAndPrint [11:22:32]line Счет N : (1)507488 [11:22:32]line ИНН: 02508201610067 [11:22:32]line Контрольно-Кассовый Чек [11:22:32]line ПРОДАЖА [11:22:32]line ТРК (МРК, ГНК) : 32 [11:22:32]line Товар: 2710124130 [11:22:32]line Super-92-К-5 [11:22:32]line 14.750 * 67.80 [11:22:32]line = 1000.05 [11:22:32]line НДС 12% НСП 1% [11:22:32]line > о реализуемом товаре [11:22:32]line ОКРУГЛЕНИЕ: -0.05 [11:22:32]line ИТОГО: 1000.00 [11:22:32]line Внесено: 1000.00 [11:22:32]line СДАЧА: 0.00 [11:22:32]line НСП 1% : 8.85 [11:22:32]line НДС 12% : 106.20 [11:22:32]line Наличными: 1000.00 [11:22:32]line Безнал.: 0.00 [11:22:32]line Место: АЗС № 91 "Партнер Нефть" [11:22:32]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:22:32]line СНО: Общий режим [11:22:32]line Чек 52 16.05.2024 11:22 [11:22:32]line Смена: 357 ФФД: 1.0 [11:22:32]line ЗНМ: 0300000119 [11:22:32]line РНМ: 0000000000091845 [11:22:32]line Версия ККМ: 001 [11:22:32]line ФМ: 0000000000871829 [11:22:32]line ФД: 67454 [11:22:32]line ФПД: 179154810331491 [11:22:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T112232&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67454&fm=179154810331491&tin=02508201610067®Number=0000000000091845&sum=100000 [11:22:33]OFD Sender: Processing packet 67454 [packets to send 35, broken 34] [11:22:33]ProducePacketName [11:22:33]name=ofd_packets/00067454 [11:22:33]OFD Sender: To server: pG, [11:22:33]CommunicateWithHost lk.salyk.kg:30040 [11:22:33]ConnectInit lk.salyk.kg [11:22:33]written 0, free lines is 4095 [11:22:33]Connected sock=10 [11:22: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 38 32 39 10 01 00 00 17 22 08 01 45 5B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 78 EC 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 7E 07 01 00 35 04 06 00 A2 F0 BA D4 61 63 D2 B2 38 59 BC 25 A0 B7 [11:22:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 AA 02 47 00 88 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 7E 07 01 00 F4 03 04 00 53 94 45 66 B6 04 01 00 00 45 26 4D BD 95 4A A2 84 [11:22:33]CommunicateWithHost err = 0 [11:22:33]CheckOFDResponse [11:22:33]1017 (14) - 77093643461234 [11:22:33]1041 (16) - 0000000000871829 [11:22:33]1040 (4) - 67454 [11:22:33]1012 (4) - 16.05.2024 05:06 [11:22:33]1206 (1) - 0 [11:22:33]OFD Sender: Remove packet 67454 [11:22:33]ProducePacketName [11:22:33]name=ofd_packets/00067454 [11:22:33]NVStorageDeleteData [11:22:33]Write to MH i2c: 01 00 00 D7 0C E3 [11:22:33]Write i2c OK [11:22:33]MH_I2C_Read... [11:22:33]Read from MH i2c: 01 [11:22:33]MH_I2C_Read... [11:22:33]Read from MH i2c: 01 07 00 [11:22:33]MH_I2C_Read... [11:22:33]Read from MH i2c: 01 07 00 D7 0C 00 00 00 00 00 D8 0C CE [11:22:33]RasterBufferAndPrint [11:22:33]line [11:22:33]line [11:22:33]line [11:22:33]line [11:22:33]line [11:22:33]written 0, free lines is 3295 [11:22:33]MH_Cut [11:22:33]Write to MH i2c: D1 01 00 DE 0C 01 BC [11:22:33]Write i2c OK [11:22:33]MH_I2C_Read... [11:22:33]Read from MH i2c: D1 [11:22:33]MH_I2C_Read... [11:22:33]Read from MH i2c: D1 01 00 [11:22:33]MH_I2C_Read... [11:22:33]Read from MH i2c: D1 01 00 DE 0C 00 BB [11:22:33]Write to MH i2c: 01 00 00 DF 0C EB [11:22:33]Write i2c OK [11:22:33]MH_I2C_Read... [11:22:33]OFD Sender: No OFD packet to send [11:22:34]*** Cut start [11:22:34]*** Purtial cut [11:22:34]*** Stage 1: CUTSNS_PIN = 1 [11:22:34]Read from MH i2c: 01 [11:22:34]MH_I2C_Read... [11:22:34]*** Stop cut motor [11:22:34]*** Cut end [11:22:34]Read from MH i2c: 01 07 00 [11:22:34]MH_I2C_Read... [11:22:34]Read from MH i2c: 01 07 00 DF 0C 00 00 00 00 00 FF 0F 00 [11:22:34]process_action close_receipt done [11:22:34]requested_data is exist [11:22:34]produce_requested_data [11:22:34]requested_item fm.sn is exist - process it [11:22:34]wFMCommunicate request_size=4 [11:22:34]MH_SAM_APDU [11:22:34]CAPDU: 80 11 00 00 [11:22:34]Write to MH i2c: E2 08 00 E0 0C 80 11 00 00 00 00 00 00 66 [11:22:34]Write i2c OK [11:22:34]MH_I2C_Read... [11:22:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:34]Read from MH i2c: E2 [11:22:34]MH_I2C_Read... [11:22:34]Read from MH i2c: E2 17 00 [11:22:34]MH_I2C_Read... [11:22:34]Read from MH i2c: E2 17 00 E0 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BC [11:22:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:22:34]wFMCommunicate OK [11:22:34]requested_item fd.num is exist - process it [11:22:34]SAM_PROTO_GetFieldsCounters [11:22:34]wFMCommunicate request_size=4 [11:22:34]MH_SAM_APDU [11:22:34]CAPDU: 80 13 00 00 [11:22:34]Write to MH i2c: E2 08 00 E1 0C 80 13 00 00 00 00 00 00 69 [11:22:34]Write i2c OK [11:22:34]MH_I2C_Read... [11:22:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:22:34]Read from MH i2c: E2 [11:22:34]MH_I2C_Read... [11:22:34]Read from MH i2c: E2 62 00 [11:22:34]MH_I2C_Read... [11:22:34]Read from MH i2c: E2 62 00 E1 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 7E 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [11:22:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 7E 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:22:34]wFMCommunicate OK [11:22:34]SAM_PROTO_GetFieldsCounters done [11:22:34]requested_item shift.num is exist - process it [11:22:34]requested_item shift.opened is exist - process it [11:22:34]req_shift_opened [11:22:34]FM_GetShiftState [11:22:34]SAM_PROTO_GetShiftState [11:22:34]wFMCommunicate request_size=4 [11:22:34]MH_SAM_APDU [11:22:34]CAPDU: 80 13 01 00 [11:22:34]Write to MH i2c: E2 08 00 E2 0C 80 13 01 00 00 00 00 00 6B [11:22:34]Write i2c OK [11:22:34]MH_I2C_Read... [11:22:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:34]Read from MH i2c: E2 [11:22:34]MH_I2C_Read... [11:22:34]Read from MH i2c: E2 0E 00 [11:22:34]MH_I2C_Read... [11:22:34]Read from MH i2c: E2 0E 00 E2 0C 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 17 [11:22:34]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [11:22:34]wFMCommunicate OK [11:22:34]SAM_PROTO_GetShiftState done [11:22:34]FM_GetShiftState done [11:22:34]req_shift_opened done [11:22:34]requested_item shift.open_date is exist - process it [11:22:34]req_shift_open_date [11:22:34]req_shift_open_date done [11:22:34]produce_requested_data done [11:22:34]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67454,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [11:22:34]process_action_free close_receipt [11:22:34]json_value_free [11:22:34]json_value_free done [11:22:34]process_json_proto returns [11:22:34]Send response to host [11:22:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67454,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [11:22:34]free response buf [11:22:34]execute_script done [11:22:34]execute_script returns [11:22:34]free content buf [11:22:34]Sock 8.Close socket [11:22:34]Sock 8.Thread stoped [11:22:38]OFD Sender: No OFD packet to send [11:22:43]OFD Sender: No OFD packet to send [11:22:48]OFD Sender: No OFD packet to send [11:22:54]OFD Sender: No OFD packet to send [11:22:59]OFD Sender: No OFD packet to send [11:23:04]OFD Sender: No OFD packet to send [11:23:08]accept exits with 9 [11:23:08]New connection [11:23:08]New thread 3067604324 created [11:23:08]Thread 3067460964 joined [11:23:08]Waiting for new connection... [11:23:08] Sock 9.Parse request [11:23:08]Sock 9.Check first char [11:23:08]Sock 9.First char is OK [11:23:08]request: POST /json_proto HTTP/1.0 [11:23:08]Method: POST [11:23:08]URL: /json_proto [11:23:08]Method is POST - this is cgi request [11:23:08]url: /json_proto [11:23:08]query_string will be loaded in cgi processing [11:23:08]execute_cgi json_proto POST (null) [11:23:08]execute_cgi path=json_proto method=POST [11:23:08]POST find Content-Length [11:23:08]Host: 172.17.41.195:8080 [11:23:08]Content-Length: 643 [11:23:08]Content-Type: application/json [11:23:08] [11:23:08]POST finish read [11:23:08]Found Content-Length = 643 [11:23:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12085", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:08]execute_script... [11:23:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12085", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:08]POST & json_proto [11:23:08]process_json_proto [11:23:08]json parsed OK: [11:23:08]protocol is kg_v1.0 [11:23:08]action value=close_receipt [11:23:08]process_action close_receipt [11:23:08]cmd_close_receipt [11:23:08]MH_GetDate [11:23:08]Write to MH i2c: F0 00 00 E3 0C DE [11:23:08]Write i2c OK [11:23:08]MH_I2C_Read... [11:23:08]Read from MH i2c: F0 [11:23:08]MH_I2C_Read... [11:23:08]Read from MH i2c: F0 09 00 [11:23:08]MH_I2C_Read... [11:23:08]Read from MH i2c: F0 09 00 E3 0C 00 9D EC 45 66 FC 21 6F 64 0B [11:23:08]GetLastDocTimeStamp 1715858552 [11:23:08]current date 1715858589 [11:23:08]FM_GetShiftState [11:23:08]SAM_PROTO_GetShiftState [11:23:08]wFMCommunicate request_size=4 [11:23:08]MH_SAM_APDU [11:23:08]CAPDU: 80 13 01 00 [11:23:08]Write to MH i2c: E2 08 00 E4 0C 80 13 01 00 00 00 00 00 6D [11:23:08]Write i2c OK [11:23:08]MH_I2C_Read... [11:23:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:08]Read from MH i2c: E2 [11:23:08]MH_I2C_Read... [11:23:08]Read from MH i2c: E2 0E 00 [11:23:08]MH_I2C_Read... [11:23:08]Read from MH i2c: E2 0E 00 E4 0C 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 19 [11:23:08]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [11:23:08]wFMCommunicate OK [11:23:08]SAM_PROTO_GetShiftState done [11:23:08]FM_GetShiftState done [11:23:08]opened in 1715818916 [11:23:08]opened+sec_in_day 1715905316 [11:23:08]quantity*price = 3500 [11:23:08]sum+1 = 3501 [11:23:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 35.00 НСП 1% : 0.31 НДС 12% : 3.72 Наличными: 35.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 53 16.05.2024 11:23 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67455 ФПД: 276807802843122 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T112309&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67455&fm=276807802843122&tin=02508201610067®Number=0000000000091845&sum=3500 0 [11:23:09]StoreToDocumentArchive [11:23:09]shift 357 fd 67455 [11:23:09]save to /storage/0357/doc_00067455 [11:23:09]save last doc name /storage/0357/doc_00067455 to /storage/kkm_last_doc_name [11:23:09]save OK [11:23:09]Clear old archive folders... [11:23:09]ProcessDocumentItem done err = 0, tmpTLVsize=275 [11:23:09]tlvbuf is 00CC06C0 [11:23:09]SAM_PROTO_ClearQueue [11:23:09]wFMCommunicate request_size=4 [11:23:09]MH_SAM_APDU [11:23:09]CAPDU: 80 09 00 00 [11:23:09]Write to MH i2c: E2 08 00 F1 0C 80 09 00 00 00 00 00 00 6F [11:23:09]Write i2c OK [11:23:09]MH_I2C_Read... [11:23:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:23:09]Read from MH i2c: E2 [11:23:09]MH_I2C_Read... [11:23:09]Read from MH i2c: E2 03 00 [11:23:09]MH_I2C_Read... [11:23:09]Read from MH i2c: E2 03 00 F1 0C 00 90 00 71 [11:23:09]RAPDU: 90 00 [11:23:09]wFMCommunicate OK [11:23:09]SAM_PROTO_ClearQueue done [11:23:09]KKMCreateOFDPacket [11:23:09]OFDProtocolAddRootSTLVToBuf [11:23:09]FM_MakeSignedData [11:23:09]FM_MakeSignedData [11:23:09]SAM_PROTO_SignData [11:23:09]wFMCommunicate request_size=4 [11:23:09]MH_SAM_APDU [11:23:09]CAPDU: 80 0D 01 02 [11:23:09]Write to MH i2c: E2 08 00 F2 0C 80 0D 01 02 00 00 00 00 77 [11:23:09]Write i2c OK [11:23:09]MH_I2C_Read... [11:23:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:23:09]Read from MH i2c: E2 [11:23:09]MH_I2C_Read... [11:23:09]Read from MH i2c: E2 03 00 [11:23:09]MH_I2C_Read... [11:23:09]Read from MH i2c: E2 03 00 F2 0C 00 90 00 72 [11:23:09]RAPDU: 90 00 [11:23:09]wFMCommunicate OK [11:23:09]wFMCommunicate request_size=255 [11:23:09]MH_SAM_APDU [11:23:09]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 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 9D EC 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 [11:23:09]Write to MH i2c: E2 02 01 F3 0C 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 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 9D EC 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 00 00 30 [11:23:09]Write i2c OK [11:23:09]MH_I2C_Read... [11:23:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:09]Read from MH i2c: E2 [11:23:09]MH_I2C_Read... [11:23:09]Read from MH i2c: E2 03 00 [11:23:09]MH_I2C_Read... [11:23:09]Read from MH i2c: E2 03 00 F3 0C 00 90 00 73 [11:23:09]RAPDU: 90 00 [11:23:09]wFMCommunicate OK [11:23:09]wFMCommunicate request_size=34 [11:23:09]MH_SAM_APDU [11:23:09]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 7F 07 01 00 35 04 06 00 FB C1 56 C2 6F F2 [11:23:09]Write to MH i2c: E2 25 00 F4 0C 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 7F 07 01 00 35 04 06 00 FB C1 56 C2 6F F2 00 00 FA [11:23:09]Write i2c OK [11:23:09]MH_I2C_Read... [11:23:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:09]Read from MH i2c: E2 [11:23:09]MH_I2C_Read... [11:23:09]Read from MH i2c: E2 03 00 [11:23:09]MH_I2C_Read... [11:23:09]Read from MH i2c: E2 03 00 F4 0C 00 90 00 74 [11:23:09]RAPDU: 90 00 [11:23:09]wFMCommunicate OK [11:23:09]wFMCommunicate request_size=4 [11:23:09]MH_SAM_APDU [11:23:09]CAPDU: 80 0D 03 02 [11:23:09]Write to MH i2c: E2 08 00 F5 0C 80 0D 03 02 00 00 00 00 7C [11:23:09]Write i2c OK [11:23:09]MH_I2C_Read... [11:23:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:23:09]Read from MH i2c: E2 [11:23:09]MH_I2C_Read... [11:23:09]Read from MH i2c: E2 0B 00 [11:23:09]MH_I2C_Read... [11:23:09]Read from MH i2c: E2 0B 00 F5 0C 00 06 14 7F F5 EE 88 CB 1C 90 00 68 [11:23:09]RAPDU: 06 14 7F F5 EE 88 CB 1C 90 00 [11:23:09]wFMCommunicate OK [11:23:09]SAM_PROTO_SignData done [11:23:09]FM_MakeSignedData done [11:23:09]CreateOFDProtocolMessage [11:23:09]wFMCommunicate request_size=4 [11:23:09]MH_SAM_APDU [11:23:09]CAPDU: 80 11 00 00 [11:23:09]Write to MH i2c: E2 08 00 F6 0C 80 11 00 00 00 00 00 00 7C [11:23:09]Write i2c OK [11:23:09]MH_I2C_Read... [11:23:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:09]Read from MH i2c: E2 [11:23:09]MH_I2C_Read... [11:23:09]Read from MH i2c: E2 17 00 [11:23:09]MH_I2C_Read... [11:23:09]Read from MH i2c: E2 17 00 F6 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D2 [11:23:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:23:09]wFMCommunicate OK [11:23:09]CreateOFDProtocolMessage done [11:23:09]OFDSenderStorePacket 67455 [11:23:09]StoreOFDPacket docnum=67455 [11:23:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 27 01 00 00 C7 87 1F 01 7B 3D 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 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 9D EC 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 7F 07 01 00 35 04 06 00 FB C1 56 C2 6F F2 06 14 7F F5 EE 88 CB 1C [11:23:09]CheckFolder [11:23:09]dirname=/storage/ofd_packets [11:23:09]CheckFolder done [11:23:09]ProducePacketName [11:23:09]name=ofd_packets/00067455 [11:23:09]NVStorageSaveData ofd_packets/00067455 [11:23:09]File name is /storage/ofd_packets/00067455 [11:23:09]Write 325 bytes [11:23:09]NVStorageSaveData done [11:23:09]OFDSenderStorePacket done [11:23:09]KKMCreateOFDPacket done [11:23:09]NVStorageSaveData kkm_last_timestamp [11:23:09]File name is /storage/kkm_last_timestamp [11:23:09]Write 4 bytes [11:23:09]NVStorageSaveData done [11:23:09]ExternCall_PrintAddStr [11:23:09]wPrintStart [11:23:09]Write to MH i2c: 01 00 00 F7 0C 03 [11:23:09]Write i2c OK [11:23:09]MH_I2C_Read... [11:23:09]Read from MH i2c: 01 [11:23:09]MH_I2C_Read... [11:23:09]Read from MH i2c: 01 07 00 [11:23:09]MH_I2C_Read... [11:23:09]Read from MH i2c: 01 07 00 F7 0C 00 00 00 00 00 FF 0F 18 [11:23:09]RasterBufferAndPrint [11:23:09]line Счет N : (3)12085 [11:23:09]line ИНН: 02508201610067 [11:23:09]line Контрольно-Кассовый Чек [11:23:09]line ПРОДАЖА [11:23:09]line Товар: 4700000310326 [11:23:09]line Вода Адыгене 1л б/г [11:23:09]line 1.000 * 35.00 [11:23:09]line = 35.00 [11:23:09]line НДС 12% НСП 1% [11:23:09]line > о реализуемом товаре [11:23:09]line ИТОГО: 35.00 [11:23:09]line НСП 1% : 0.31 [11:23:09]line НДС 12% : 3.72 [11:23:09]line Наличными: 35.00 [11:23:09]line Безнал.: 0.00 [11:23:09]line Место: АЗС № 91 "Партнер Нефть" [11:23:09]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:23:09]line СНО: Общий режим [11:23:09]line Чек 53 16.05.2024 11:23 [11:23:09]line Смена: 357 ФФД: 1.0 [11:23:09]line ЗНМ: 0300000119 [11:23:09]line РНМ: 0000000000091845 [11:23:09]line Версия ККМ: 001 [11:23:09]line ФМ: 0000000000871829 [11:23:09]line ФД: 67455 [11:23:09]line ФПД: 276807802843122 [11:23:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T112309&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67455&fm=276807802843122&tin=02508201610067®Number=0000000000091845&sum=3500 [11:23:09]line 0 [11:23:10]written 0, free lines is 4095 [11:23:10]OFD Sender: Processing packet 67455 [packets to send 35, broken 34] [11:23:10]ProducePacketName [11:23:10]name=ofd_packets/00067455 [11:23:10]OFD Sender: To server: pG, [11:23:10]CommunicateWithHost lk.salyk.kg:30040 [11:23:10]ConnectInit lk.salyk.kg [11:23:10]Connected sock=10 [11:23:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 27 01 00 00 C7 87 1F 01 7B 3D 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 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 9D EC 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 7F 07 01 00 35 04 06 00 FB C1 56 C2 6F F2 06 14 7F F5 EE 88 CB 1C [11:23:10]Write to MH i2c: 01 00 00 1E 0D 2B [11:23:10]Write i2c OK [11:23:10]MH_I2C_Read... [11:23:10]Read from MH i2c: 01 [11:23:10]MH_I2C_Read... [11:23:10]Read from MH i2c: 01 07 00 [11:23:10]MH_I2C_Read... [11:23:10]Read from MH i2c: 01 07 00 1E 0D 00 00 00 00 00 EE 0C 2C [11:23:10]RasterBufferAndPrint [11:23:10]line [11:23:10]line [11:23:10]line [11:23:10]line [11:23:10]line [11:23:10]written 0, free lines is 3316 [11:23:10]MH_Cut [11:23:10]Write to MH i2c: D1 01 00 25 0D 01 04 [11:23:10]Write i2c OK [11:23:10]MH_I2C_Read... [11:23:10]Read from MH i2c: D1 [11:23:10]MH_I2C_Read... [11:23:10]Read from MH i2c: D1 01 00 [11:23:10]MH_I2C_Read... [11:23:10]Read from MH i2c: D1 01 00 25 0D 00 03 [11:23:10]Write to MH i2c: 01 00 00 26 0D 33 [11:23:10]Write i2c OK [11:23:10]MH_I2C_Read... [11:23:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 D4 3D 47 00 72 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 7F 07 01 00 F4 03 04 00 78 94 45 66 B6 04 01 00 00 DE 32 3C BF C2 D3 2B 55 [11:23:10]CommunicateWithHost err = 0 [11:23:10]CheckOFDResponse [11:23:10]1017 (14) - 77093643461234 [11:23:10]1041 (16) - 0000000000871829 [11:23:10]1040 (4) - 67455 [11:23:10]1012 (4) - 16.05.2024 05:07 [11:23:10]1206 (1) - 0 [11:23:10]OFD Sender: Remove packet 67455 [11:23:10]ProducePacketName [11:23:10]name=ofd_packets/00067455 [11:23:10]NVStorageDeleteData [11:23:11]OFD Sender: No OFD packet to send [11:23:11]*** Cut start [11:23:11]*** Purtial cut [11:23:11]*** CUTSNS_PIN = 0 [11:23:11]*** Stage 1: CUTSNS_PIN = 1 [11:23:13]Read from MH i2c: 01 [11:23:13]MH_I2C_Read... [11:23:13]*** Stop cut motor [11:23:13]*** Cut end [11:23:13]Read from MH i2c: 01 07 00 [11:23:13]MH_I2C_Read... [11:23:13]Read from MH i2c: 01 07 00 26 0D 00 00 00 00 00 FF 0F 48 [11:23:13]process_action close_receipt done [11:23:13]requested_data is exist [11:23:13]produce_requested_data [11:23:13]requested_item fm.sn is exist - process it [11:23:13]wFMCommunicate request_size=4 [11:23:13]MH_SAM_APDU [11:23:13]CAPDU: 80 11 00 00 [11:23:13]Write to MH i2c: E2 08 00 27 0D 80 11 00 00 00 00 00 00 AE [11:23:13]Write i2c OK [11:23:13]MH_I2C_Read... [11:23:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:13]Read from MH i2c: E2 [11:23:13]MH_I2C_Read... [11:23:13]Read from MH i2c: E2 17 00 [11:23:13]MH_I2C_Read... [11:23:13]Read from MH i2c: E2 17 00 27 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 04 [11:23:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:23:13]wFMCommunicate OK [11:23:13]requested_item fd.num is exist - process it [11:23:13]SAM_PROTO_GetFieldsCounters [11:23:13]wFMCommunicate request_size=4 [11:23:13]MH_SAM_APDU [11:23:13]CAPDU: 80 13 00 00 [11:23:13]Write to MH i2c: E2 08 00 28 0D 80 13 00 00 00 00 00 00 B1 [11:23:13]Write i2c OK [11:23:13]MH_I2C_Read... [11:23:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:13]Read from MH i2c: E2 [11:23:13]MH_I2C_Read... [11:23:13]Read from MH i2c: E2 62 00 [11:23:13]MH_I2C_Read... [11:23:13]Read from MH i2c: E2 62 00 28 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 7F 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [11:23: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 7F 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:23:13]wFMCommunicate OK [11:23:13]SAM_PROTO_GetFieldsCounters done [11:23:13]requested_item shift.num is exist - process it [11:23:13]requested_item shift.opened is exist - process it [11:23:13]req_shift_opened [11:23:13]FM_GetShiftState [11:23:13]SAM_PROTO_GetShiftState [11:23:13]wFMCommunicate request_size=4 [11:23:13]MH_SAM_APDU [11:23:13]CAPDU: 80 13 01 00 [11:23:13]Write to MH i2c: E2 08 00 29 0D 80 13 01 00 00 00 00 00 B3 [11:23:13]Write i2c OK [11:23:13]MH_I2C_Read... [11:23:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:13]Read from MH i2c: E2 [11:23:13]MH_I2C_Read... [11:23:13]Read from MH i2c: E2 0E 00 [11:23:13]MH_I2C_Read... [11:23:13]Read from MH i2c: E2 0E 00 29 0D 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 5F [11:23:13]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [11:23:13]wFMCommunicate OK [11:23:13]SAM_PROTO_GetShiftState done [11:23:13]FM_GetShiftState done [11:23:13]req_shift_opened done [11:23:13]requested_item shift.open_date is exist - process it [11:23:13]req_shift_open_date [11:23:13]req_shift_open_date done [11:23:13]produce_requested_data done [11:23:13]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67455,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [11:23:13]process_action_free close_receipt [11:23:13]json_value_free [11:23:13]json_value_free done [11:23:13]process_json_proto returns [11:23:13]Send response to host [11:23:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67455,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [11:23:13]free response buf [11:23:13]execute_script done [11:23:13]execute_script returns [11:23:13]free content buf [11:23:13]Sock 9.Close socket [11:23:13]Sock 9.Thread stoped [11:23:16]OFD Sender: No OFD packet to send [11:23:21]OFD Sender: No OFD packet to send [11:23:26]OFD Sender: No OFD packet to send [11:23:31]OFD Sender: No OFD packet to send [11:23:36]OFD Sender: No OFD packet to send [11:23:41]OFD Sender: No OFD packet to send [11:23:46]OFD Sender: No OFD packet to send [11:23:51]OFD Sender: No OFD packet to send [11:23:56]OFD Sender: No OFD packet to send [11:24:01]OFD Sender: No OFD packet to send [11:24:06]OFD Sender: No OFD packet to send [11:24:11]OFD Sender: No OFD packet to send [11:24:16]OFD Sender: No OFD packet to send [11:24:21]OFD Sender: No OFD packet to send [11:24:26]OFD Sender: No OFD packet to send [11:24:31]OFD Sender: No OFD packet to send [11:24:36]OFD Sender: No OFD packet to send [11:24:41]OFD Sender: No OFD packet to send [11:24:46]OFD Sender: No OFD packet to send [11:24:51]OFD Sender: No OFD packet to send [11:24:56]OFD Sender: No OFD packet to send [11:25:00]accept exits with 8 [11:25:00]New connection [11:25:00]New thread 3067460964 created [11:25:00]Thread 3067604324 joined [11:25:00]Waiting for new connection... [11:25:00] Sock 8.Parse request [11:25:00]Sock 8.Check first char [11:25:00]Sock 8.First char is OK [11:25:00]request: POST /json_proto HTTP/1.0 [11:25:00]Method: POST [11:25:00]URL: /json_proto [11:25:00]Method is POST - this is cgi request [11:25:00]url: /json_proto [11:25:00]query_string will be loaded in cgi processing [11:25:00]execute_cgi json_proto POST (null) [11:25:00]execute_cgi path=json_proto method=POST [11:25:00]POST find Content-Length [11:25:00]Host: 172.17.41.195:8080 [11:25:00]Content-Length: 677 [11:25:00]Content-Type: application/json [11:25:00] [11:25:00]POST finish read [11:25:00]Found Content-Length = 677 [11:25:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507489", "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.80, "quantity" : 7.490, "sum" : 500.33, "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:25:00]execute_script... [11:25: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)507489", "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.80, "quantity" : 7.490, "sum" : 500.33, "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:25:00]POST & json_proto [11:25:00]process_json_proto [11:25:00]json parsed OK: [11:25:00]protocol is kg_v1.0 [11:25:00]action value=close_receipt [11:25:00]process_action close_receipt [11:25:00]cmd_close_receipt [11:25:00]MH_GetDate [11:25:00]Write to MH i2c: F0 00 00 2A 0D 26 [11:25:00]Write i2c OK [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: F0 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: F0 09 00 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: F0 09 00 2A 0D 00 0D ED 45 66 FC 21 6F 64 C4 [11:25:00]GetLastDocTimeStamp 1715858589 [11:25:00]current date 1715858701 [11:25:00]FM_GetShiftState [11:25:00]SAM_PROTO_GetShiftState [11:25:00]wFMCommunicate request_size=4 [11:25:00]MH_SAM_APDU [11:25:00]CAPDU: 80 13 01 00 [11:25:00]Write to MH i2c: E2 08 00 2B 0D 80 13 01 00 00 00 00 00 B5 [11:25:00]Write i2c OK [11:25:00]MH_I2C_Read... [11:25:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:00]Read from MH i2c: E2 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: E2 0E 00 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: E2 0E 00 2B 0D 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 61 [11:25:00]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [11:25:00]wFMCommunicate OK [11:25:00]SAM_PROTO_GetShiftState done [11:25:00]FM_GetShiftState done [11:25:00]opened in 1715818916 [11:25:00]opened+sec_in_day 1715905316 [11:25:00]quantity*price = 50033 [11:25:00]sum+1 = 50034 [11:25:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 54 16.05.2024 11:25 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67456 ФПД: 53691947911563 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T112501&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67456&fm=53691947911563&tin=02508201610067®Number=0000000000091845&sum=50000 [11:25:01]StoreToDocumentArchive [11:25:01]shift 357 fd 67456 [11:25:01]save to /storage/0357/doc_00067456 [11:25:01]save last doc name /storage/0357/doc_00067456 to /storage/kkm_last_doc_name [11:25:01]save OK [11:25:01]Clear old archive folders... [11:25:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:25:01]tlvbuf is 00C9B1F0 [11:25:01]SAM_PROTO_ClearQueue [11:25:01]wFMCommunicate request_size=4 [11:25:01]MH_SAM_APDU [11:25:01]CAPDU: 80 09 00 00 [11:25:01]Write to MH i2c: E2 08 00 38 0D 80 09 00 00 00 00 00 00 B7 [11:25:01]Write i2c OK [11:25:01]MH_I2C_Read... [11:25:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:25:01]Read from MH i2c: E2 [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: E2 03 00 [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: E2 03 00 38 0D 00 90 00 B9 [11:25:01]RAPDU: 90 00 [11:25:01]wFMCommunicate OK [11:25:01]SAM_PROTO_ClearQueue done [11:25:01]KKMCreateOFDPacket [11:25:01]OFDProtocolAddRootSTLVToBuf [11:25:01]FM_MakeSignedData [11:25:01]FM_MakeSignedData [11:25:01]SAM_PROTO_SignData [11:25:01]wFMCommunicate request_size=4 [11:25:01]MH_SAM_APDU [11:25:01]CAPDU: 80 0D 01 02 [11:25:01]Write to MH i2c: E2 08 00 39 0D 80 0D 01 02 00 00 00 00 BF [11:25:01]Write i2c OK [11:25:01]MH_I2C_Read... [11:25:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:25:01]Read from MH i2c: E2 [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: E2 03 00 [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: E2 03 00 39 0D 00 90 00 BA [11:25:01]RAPDU: 90 00 [11:25:01]wFMCommunicate OK [11:25:01]wFMCommunicate request_size=255 [11:25:01]MH_SAM_APDU [11:25: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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 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 00 00 00 F4 03 04 00 0D ED 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 80 07 01 00 35 04 06 00 30 [11:25:01]Write to MH i2c: E2 02 01 3A 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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 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 00 00 00 F4 03 04 00 0D ED 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 80 07 01 00 35 04 06 00 30 00 00 43 [11:25:01]Write i2c OK [11:25:01]MH_I2C_Read... [11:25:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:01]Read from MH i2c: E2 [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: E2 03 00 [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: E2 03 00 3A 0D 00 90 00 BB [11:25:01]RAPDU: 90 00 [11:25:01]wFMCommunicate OK [11:25:01]wFMCommunicate request_size=10 [11:25:01]MH_SAM_APDU [11:25:01]CAPDU: 80 0D 02 02 05 D5 21 7B 89 8B [11:25:01]Write to MH i2c: E2 0D 00 3B 0D 80 0D 02 02 05 00 D5 21 7B 89 8B 00 00 51 [11:25:01]Write i2c OK [11:25:01]MH_I2C_Read... [11:25:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:01]Read from MH i2c: E2 [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: E2 03 00 [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: E2 03 00 3B 0D 00 90 00 BC [11:25:01]RAPDU: 90 00 [11:25:01]wFMCommunicate OK [11:25:01]wFMCommunicate request_size=4 [11:25:01]MH_SAM_APDU [11:25:01]CAPDU: 80 0D 03 02 [11:25:01]Write to MH i2c: E2 08 00 3C 0D 80 0D 03 02 00 00 00 00 C4 [11:25:01]Write i2c OK [11:25:01]MH_I2C_Read... [11:25:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:25:01]Read from MH i2c: E2 [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: E2 0B 00 [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: E2 0B 00 3C 0D 00 49 39 A3 30 D7 60 77 B2 90 00 7A [11:25:01]RAPDU: 49 39 A3 30 D7 60 77 B2 90 00 [11:25:01]wFMCommunicate OK [11:25:01]SAM_PROTO_SignData done [11:25:01]FM_MakeSignedData done [11:25:01]CreateOFDProtocolMessage [11:25:01]wFMCommunicate request_size=4 [11:25:01]MH_SAM_APDU [11:25:01]CAPDU: 80 11 00 00 [11:25:01]Write to MH i2c: E2 08 00 3D 0D 80 11 00 00 00 00 00 00 C4 [11:25:01]Write i2c OK [11:25:01]MH_I2C_Read... [11:25:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:01]Read from MH i2c: E2 [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: E2 17 00 [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: E2 17 00 3D 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 1A [11:25:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:25:01]wFMCommunicate OK [11:25:01]CreateOFDProtocolMessage done [11:25:01]OFDSenderStorePacket 67456 [11:25:01]StoreOFDPacket docnum=67456 [11:25:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 66 5E 07 01 BB 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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 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 00 00 00 F4 03 04 00 0D ED 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 80 07 01 00 35 04 06 00 30 D5 21 7B 89 8B 49 39 A3 30 D7 60 77 B2 [11:25:01]CheckFolder [11:25:01]dirname=/storage/ofd_packets [11:25:01]CheckFolder done [11:25:01]ProducePacketName [11:25:01]name=ofd_packets/00067456 [11:25:01]NVStorageSaveData ofd_packets/00067456 [11:25:01]File name is /storage/ofd_packets/00067456 [11:25:01]Write 301 bytes [11:25:01]NVStorageSaveData done [11:25:01]OFDSenderStorePacket done [11:25:01]KKMCreateOFDPacket done [11:25:01]NVStorageSaveData kkm_last_timestamp [11:25:01]File name is /storage/kkm_last_timestamp [11:25:01]Write 4 bytes [11:25:01]NVStorageSaveData done [11:25:01]ExternCall_PrintAddStr [11:25:01]wPrintStart [11:25:01]Write to MH i2c: 01 00 00 3E 0D 4B [11:25:01]Write i2c OK [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: 01 [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: 01 07 00 [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: 01 07 00 3E 0D 00 00 00 00 00 FF 0F 60 [11:25:01]RasterBufferAndPrint [11:25:01]line Счет N : (1)507489 [11:25:01]line ИНН: 02508201610067 [11:25:01]line Контрольно-Кассовый Чек [11:25:01]line ПРОДАЖА [11:25:01]line ТРК (МРК, ГНК) : 43 [11:25:01]line Товар: 2710124130 [11:25:01]line Аи-92-К-5 [11:25:01]line 7.490 * 66.80 [11:25:01]line = 500.33 [11:25:01]line НДС 12% НСП 1% [11:25:01]line > о реализуемом товаре [11:25:01]line ОКРУГЛЕНИЕ: -0.33 [11:25:01]line ИТОГО: 500.00 [11:25:01]line Внесено: 500.00 [11:25:01]line СДАЧА: 0.00 [11:25:01]line НСП 1% : 4.43 [11:25:01]line НДС 12% : 53.13 [11:25:01]line Наличными: 500.00 [11:25:01]line Безнал.: 0.00 [11:25:01]line Место: АЗС № 91 "Партнер Нефть" [11:25:01]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:25:01]line СНО: Общий режим [11:25:01]line Чек 54 16.05.2024 11:25 [11:25:01]line Смена: 357 ФФД: 1.0 [11:25:01]line ЗНМ: 0300000119 [11:25:01]line РНМ: 0000000000091845 [11:25:01]line Версия ККМ: 001 [11:25:01]line ФМ: 0000000000871829 [11:25:01]line ФД: 67456 [11:25:01]line ФПД: 53691947911563 [11:25:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T112501&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67456&fm=53691947911563&tin=02508201610067®Number=0000000000091845&sum=50000 [11:25:02]OFD Sender: Processing packet 67456 [packets to send 35, broken 34] [11:25:02]ProducePacketName [11:25:02]name=ofd_packets/00067456 [11:25:02]OFD Sender: To server: pG, [11:25:02]CommunicateWithHost lk.salyk.kg:30040 [11:25:02]ConnectInit lk.salyk.kg [11:25:02]written 0, free lines is 4095 [11:25:02]Connected sock=10 [11:25: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 38 32 39 0F 01 00 00 66 5E 07 01 BB 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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 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 00 00 00 F4 03 04 00 0D ED 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 80 07 01 00 35 04 06 00 30 D5 21 7B 89 8B 49 39 A3 30 D7 60 77 B2 [11:25:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 70 24 47 00 18 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 38 32 39 10 04 04 00 80 07 01 00 F4 03 04 00 E8 94 45 66 B6 04 01 00 00 AA CE EA 54 7C 05 93 4B [11:25:02]CommunicateWithHost err = 0 [11:25:02]CheckOFDResponse [11:25:02]1017 (14) - 77093643461234 [11:25:02]1041 (16) - 0000000000871829 [11:25:02]1040 (4) - 67456 [11:25:02]1012 (4) - 16.05.2024 05:08 [11:25:02]1206 (1) - 0 [11:25:02]OFD Sender: Remove packet 67456 [11:25:02]ProducePacketName [11:25:02]name=ofd_packets/00067456 [11:25:02]NVStorageDeleteData [11:25:02]Write to MH i2c: 01 00 00 68 0D 75 [11:25:02]Write i2c OK [11:25:02]MH_I2C_Read... [11:25:02]Read from MH i2c: 01 [11:25:02]MH_I2C_Read... [11:25:02]Read from MH i2c: 01 07 00 [11:25:02]MH_I2C_Read... [11:25:02]Read from MH i2c: 01 07 00 68 0D 00 00 00 00 00 E2 0C 6A [11:25:02]RasterBufferAndPrint [11:25:02]line [11:25:02]line [11:25:02]line [11:25:02]line [11:25:02]line [11:25:02]written 0, free lines is 3304 [11:25:02]MH_Cut [11:25:02]Write to MH i2c: D1 01 00 6F 0D 01 4E [11:25:02]Write i2c OK [11:25:02]MH_I2C_Read... [11:25:02]Read from MH i2c: D1 [11:25:02]MH_I2C_Read... [11:25:02]Read from MH i2c: D1 01 00 [11:25:02]MH_I2C_Read... [11:25:02]Read from MH i2c: D1 01 00 6F 0D 00 4D [11:25:02]Write to MH i2c: 01 00 00 70 0D 7D [11:25:02]Write i2c OK [11:25:02]MH_I2C_Read... [11:25:03]OFD Sender: No OFD packet to send [11:25:03]*** Cut start [11:25:03]*** Purtial cut [11:25:03]*** Stage 1: CUTSNS_PIN = 1 [11:25:03]Read from MH i2c: 01 [11:25:03]MH_I2C_Read... [11:25:03]*** Stop cut motor [11:25:03]*** Cut end [11:25:03]Read from MH i2c: 01 07 00 [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: 01 07 00 70 0D 00 00 00 00 00 FF 0F 92 [11:25:03]process_action close_receipt done [11:25:03]requested_data is exist [11:25:03]produce_requested_data [11:25:03]requested_item fm.sn is exist - process it [11:25:03]wFMCommunicate request_size=4 [11:25:03]MH_SAM_APDU [11:25:03]CAPDU: 80 11 00 00 [11:25:03]Write to MH i2c: E2 08 00 71 0D 80 11 00 00 00 00 00 00 F8 [11:25:03]Write i2c OK [11:25:03]MH_I2C_Read... [11:25:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:03]Read from MH i2c: E2 [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: E2 17 00 [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: E2 17 00 71 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 4E [11:25:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:25:03]wFMCommunicate OK [11:25:03]requested_item fd.num is exist - process it [11:25:03]SAM_PROTO_GetFieldsCounters [11:25:03]wFMCommunicate request_size=4 [11:25:03]MH_SAM_APDU [11:25:03]CAPDU: 80 13 00 00 [11:25:03]Write to MH i2c: E2 08 00 72 0D 80 13 00 00 00 00 00 00 FB [11:25:03]Write i2c OK [11:25:03]MH_I2C_Read... [11:25:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:25:03]Read from MH i2c: E2 [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: E2 62 00 [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: E2 62 00 72 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 80 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [11:25: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 80 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:25:03]wFMCommunicate OK [11:25:03]SAM_PROTO_GetFieldsCounters done [11:25:03]requested_item shift.num is exist - process it [11:25:03]requested_item shift.opened is exist - process it [11:25:03]req_shift_opened [11:25:03]FM_GetShiftState [11:25:03]SAM_PROTO_GetShiftState [11:25:03]wFMCommunicate request_size=4 [11:25:03]MH_SAM_APDU [11:25:03]CAPDU: 80 13 01 00 [11:25:03]Write to MH i2c: E2 08 00 73 0D 80 13 01 00 00 00 00 00 FD [11:25:03]Write i2c OK [11:25:03]MH_I2C_Read... [11:25:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:04]Read from MH i2c: E2 [11:25:04]MH_I2C_Read... [11:25:04]Read from MH i2c: E2 0E 00 [11:25:04]MH_I2C_Read... [11:25:04]Read from MH i2c: E2 0E 00 73 0D 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 A9 [11:25:04]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [11:25:04]wFMCommunicate OK [11:25:04]SAM_PROTO_GetShiftState done [11:25:04]FM_GetShiftState done [11:25:04]req_shift_opened done [11:25:04]requested_item shift.open_date is exist - process it [11:25:04]req_shift_open_date [11:25:04]req_shift_open_date done [11:25:04]produce_requested_data done [11:25:04]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67456,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [11:25:04]process_action_free close_receipt [11:25:04]json_value_free [11:25:04]json_value_free done [11:25:04]process_json_proto returns [11:25:04]Send response to host [11:25:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67456,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [11:25:04]free response buf [11:25:04]execute_script done [11:25:04]execute_script returns [11:25:04]free content buf [11:25:04]Sock 8.Close socket [11:25:04]Sock 8.Thread stoped [11:25:08]OFD Sender: No OFD packet to send [11:25:13]OFD Sender: No OFD packet to send [11:25:18]OFD Sender: No OFD packet to send [11:25:23]OFD Sender: No OFD packet to send [11:25:28]OFD Sender: No OFD packet to send [11:25:33]OFD Sender: No OFD packet to send [11:25:38]OFD Sender: No OFD packet to send [11:25:43]OFD Sender: No OFD packet to send [11:25:48]OFD Sender: No OFD packet to send [11:25:53]OFD Sender: No OFD packet to send [11:25:58]OFD Sender: No OFD packet to send [11:26:03]OFD Sender: No OFD packet to send [11:26:08]OFD Sender: No OFD packet to send [11:26:13]OFD Sender: No OFD packet to send [11:26:18]OFD Sender: No OFD packet to send [11:26:23]OFD Sender: No OFD packet to send [11:26:28]OFD Sender: No OFD packet to send [11:26:33]OFD Sender: No OFD packet to send [11:26:38]OFD Sender: No OFD packet to send [11:26:43]OFD Sender: No OFD packet to send [11:26:48]OFD Sender: No OFD packet to send [11:26:53]OFD Sender: No OFD packet to send [11:26:58]OFD Sender: No OFD packet to send [11:27:03]OFD Sender: No OFD packet to send [11:27:08]OFD Sender: No OFD packet to send [11:27:13]OFD Sender: No OFD packet to send [11:27:18]OFD Sender: No OFD packet to send [11:27:23]OFD Sender: No OFD packet to send [11:27:28]OFD Sender: No OFD packet to send [11:27:33]OFD Sender: No OFD packet to send [11:27:38]OFD Sender: No OFD packet to send [11:27:43]OFD Sender: No OFD packet to send [11:27:48]OFD Sender: No OFD packet to send [11:27:53]OFD Sender: No OFD packet to send [11:27:58]OFD Sender: No OFD packet to send [11:28:03]OFD Sender: No OFD packet to send [11:28:08]OFD Sender: No OFD packet to send [11:28:13]OFD Sender: No OFD packet to send [11:28:18]OFD Sender: No OFD packet to send [11:28:23]OFD Sender: No OFD packet to send [11:28:28]OFD Sender: No OFD packet to send [11:28:33]OFD Sender: No OFD packet to send [11:28:38]OFD Sender: No OFD packet to send [11:28:43]OFD Sender: No OFD packet to send [11:28:48]OFD Sender: No OFD packet to send [11:28:53]OFD Sender: No OFD packet to send [11:28:58]OFD Sender: No OFD packet to send [11:29:03]OFD Sender: No OFD packet to send [11:29:08]OFD Sender: No OFD packet to send [11:29:13]OFD Sender: No OFD packet to send [11:29:18]OFD Sender: No OFD packet to send [11:29:23]OFD Sender: No OFD packet to send [11:29:28]OFD Sender: No OFD packet to send [11:29:33]OFD Sender: No OFD packet to send [11:29:38]OFD Sender: No OFD packet to send [11:29:39]int [11:29:39]Write to MH i2c: 01 00 00 74 0D 81 [11:29:39]*** FLAG_PRN_PAP1 set [11:29:39]Write i2c OK [11:29:39]MH_I2C_Read... [11:29:39]Read from MH i2c: 01 [11:29:39]MH_I2C_Read... [11:29:39]Read from MH i2c: 01 07 00 [11:29:39]MH_I2C_Read... [11:29:39]Read from MH i2c: 01 07 00 74 0D 00 01 00 00 00 FF 0F 97 [11:29:39]state=0 [11:29:39]No paper [11:29:39]int [11:29:39]Write to MH i2c: 01 00 00 75 0D 82 [11:29:39]*** FLAG_PRN_PAP2 set [11:29:39]Write i2c OK [11:29:39]MH_I2C_Read... [11:29:39]Read from MH i2c: 01 [11:29:39]MH_I2C_Read... [11:29:39]Read from MH i2c: 01 07 00 [11:29:39]MH_I2C_Read... [11:29:39]Read from MH i2c: 01 07 00 75 0D 00 03 00 00 00 FF 0F 9A [11:29:39]state=0 [11:29:39]No paper [11:29:39]Cover opened [11:29:42]int [11:29:42]Write to MH i2c: 01 00 00 76 0D 83 [11:29:42]*** FLAG_PRN_PAP2 reset [11:29:42]Write i2c OK [11:29:42]MH_I2C_Read... [11:29:42]Read from MH i2c: 01 [11:29:42]MH_I2C_Read... [11:29:42]Read from MH i2c: 01 07 00 [11:29:42]MH_I2C_Read... [11:29:42]Read from MH i2c: 01 07 00 76 0D 00 01 00 00 00 FF 0F 99 [11:29:42]state=3 [11:29:42]No paper [11:29:42]Cover closed [11:29:42]int [11:29:42]Write to MH i2c: 01 00 00 77 0D 84 [11:29:42]*** FLAG_PRN_PAP2 set [11:29:42]Write i2c OK [11:29:42]MH_I2C_Read... [11:29:42]Read from MH i2c: 01 [11:29:42]MH_I2C_Read... [11:29:42]Read from MH i2c: 01 07 00 [11:29:42]MH_I2C_Read... [11:29:42]Read from MH i2c: 01 07 00 77 0D 00 03 00 00 00 FF 0F 9C [11:29:42]state=0 [11:29:42]No paper [11:29:42]Cover opened [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]/dev/ttyS4 opened [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 4E FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 8A [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30515, crc_r 5823D75D, crc_c: 5823D75D, size: 52480 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E318 010246F9) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903 init start (LINUX_LIGHT) [00:00:10]*** Serial: 3139303353513838 540000000057254E (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 30854204+1685004796=1715859000 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33540623 [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 4E FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 8B [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30515 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 38 00 FF FF 57 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 39 EE 45 66 FC 21 6F 64 C1 [11:30:01]Current date/time: 16.05.2024 11:30 [11:30:01]FM_Init [11:30:01]wFMConnect [11:30:01]MH_SAM_On [11:30:01]Write to MH i2c: E0 00 00 08 00 E7 [11:30:01]Write i2c OK [11:30:01]MH_I2C_Read... [11:30:01]*** iso7816_init finished! [11:30:01]*** atr: [11:30:01]*** 0F 3B D5 18 FF 81 91 FE [11:30:01]*** 1F C3 80 73 C8 21 10 0A [11:30:01]*** 00 00 00 00 00 00 00 00 [11:30:01]*** 00 00 00 00 00 00 00 00 [11:30:01]*** 00 00 00 00 00 00 00 00 [11:30:01]*** 00 00 00 00 00 00 00 00 [11:30:01]*** 00 00 00 00 00 00 00 00 [11:30:01]*** 00 00 00 00 00 00 00 00 [11:30:01]Read from MH i2c: E0 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: E0 10 00 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [11:30:01]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [11:30:01]wFMCommunicate request_size=10 [11:30:01]MH_SAM_APDU [11:30:01]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [11:30:01]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [11:30:01]Write i2c OK [11:30:01]MH_I2C_Read... [11:30:01]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [11:30:01]Read from MH i2c: E2 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: E2 03 00 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [11:30:01]RAPDU: 90 00 [11:30:01]wFMCommunicate OK [11:30:01]wFMCommunicate request_size=4 [11:30:01]MH_SAM_APDU [11:30:01]CAPDU: 80 11 00 00 [11:30:01]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [11:30:01]Write i2c OK [11:30:01]MH_I2C_Read... [11:30:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:01]Read from MH i2c: E2 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: E2 17 00 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DA [11:30:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:30:01]wFMCommunicate OK [11:30:01]Detected FM SN is 0000000000871829 [11:30:01]Stored FM SN is 0000000000871829 [11:30:01]wFMCommunicate request_size=9 [11:30:01]MH_SAM_APDU [11:30:01]CAPDU: 80 16 00 00 04 44 DD 00 00 [11:30:01]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 44 DD 00 00 00 00 B3 [11:30:01]Write i2c OK [11:30:01]MH_I2C_Read... [11:30:01]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [11:30:01]Read from MH i2c: E2 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: E2 03 00 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [11:30:01]RAPDU: 90 00 [11:30:01]wFMCommunicate OK [11:30:01]FM PIN OK [11:30:01]wFMCommunicate request_size=8 [11:30:01]MH_SAM_APDU [11:30:01]CAPDU: 80 14 04 00 03 02 00 01 [11:30:01]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [11:30:01]Write i2c OK [11:30:01]MH_I2C_Read... [11:30:01]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [11:30:01]Read from MH i2c: E2 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: E2 03 00 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [11:30:01]RAPDU: 90 00 [11:30:01]wFMCommunicate OK [11:30:01]wFMCommunicate request_size=13 [11:30:01]MH_SAM_APDU [11:30:01]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [11:30:01]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [11:30:01]Write i2c OK [11:30:01]MH_I2C_Read... [11:30:01]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [11:30:01]Read from MH i2c: E2 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: E2 03 00 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [11:30:01]RAPDU: 90 00 [11:30:01]wFMCommunicate OK [11:30:01]wFMCommunicate request_size=4 [11:30:01]MH_SAM_APDU [11:30:01]CAPDU: 80 11 00 00 [11:30:01]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [11:30:01]Write i2c OK [11:30:01]MH_I2C_Read... [11:30:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:01]Read from MH i2c: E2 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: E2 17 00 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DE [11:30:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:30:01]wFMCommunicate OK [11:30:01]DocumentArchiveInit [11:30:01]Start Httpd... [11:30:01]Httpd thread 3067469156 created [11:30:01]Write to MH i2c: 01 00 00 0F 00 0F [11:30:01]Write i2c OK [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: 01 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: 01 07 00 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [11:30:01]MH Int Process started [11:30:01]Allocated Socket 6 [11:30:01]Bind OK [11:30:01]Listen OK [11:30:01]httpd running on port 8080 [11:30:01]Waiting for new connection... [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:12]accept exits with 8 [11:30:12]New connection [11:30:12]New thread 3067182436 created [11:30:12]Waiting for new connection... [11:30:12] Sock 8.Parse request [11:30:12]Sock 8.Check first char [11:30:12]Sock 8.First char is OK [11:30:12]request: POST /json_proto HTTP/1.0 [11:30:12]Method: POST [11:30:12]URL: /json_proto [11:30:12]Method is POST - this is cgi request [11:30:12]url: /json_proto [11:30:12]query_string will be loaded in cgi processing [11:30:12]execute_cgi json_proto POST (null) [11:30:12]execute_cgi path=json_proto method=POST [11:30:12]POST find Content-Length [11:30:12]Host: 172.17.41.195:8080 [11:30:12]Content-Length: 215 [11:30:12]Content-Type: application/json [11:30:12] [11:30:12]POST finish read [11:30:12]Found Content-Length = 215 [11:30:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:12]execute_script... [11:30:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:12]POST & json_proto [11:30:12]process_json_proto [11:30:12]json parsed OK: [11:30:12]protocol is kg_v1.0 [11:30:12]action value=get_value [11:30:12]process_action get_value [11:30:12]cmd_get_value [11:30:12]process_action get_value done [11:30:12]requested_data is exist [11:30:12]produce_requested_data [11:30:12]requested_item kkm.sn is exist - process it [11:30:12]requested_item kkm.ver is exist - process it [11:30:12]requested_item fm.sn is exist - process it [11:30:12]wFMCommunicate request_size=4 [11:30:12]MH_SAM_APDU [11:30:12]CAPDU: 80 11 00 00 [11:30:12]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [11:30:12]Write i2c OK [11:30:12]MH_I2C_Read... [11:30:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:12]Read from MH i2c: E2 [11:30:12]MH_I2C_Read... [11:30:12]Read from MH i2c: E2 17 00 [11:30:12]MH_I2C_Read... [11:30:12]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E0 [11:30:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:30:12]wFMCommunicate OK [11:30:12]requested_item fd.num is exist - process it [11:30:12]SAM_PROTO_GetFieldsCounters [11:30:12]wFMCommunicate request_size=4 [11:30:12]MH_SAM_APDU [11:30:12]CAPDU: 80 13 00 00 [11:30:12]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [11:30:12]Write i2c OK [11:30:12]MH_I2C_Read... [11:30:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:12]Read from MH i2c: E2 [11:30:12]MH_I2C_Read... [11:30:12]Read from MH i2c: E2 62 00 [11:30:12]MH_I2C_Read... [11:30:12]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 80 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [11:30: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 80 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:30:12]wFMCommunicate OK [11:30:12]SAM_PROTO_GetFieldsCounters done [11:30:12]requested_item shift.num is exist - process it [11:30:12]requested_item shift.opened is exist - process it [11:30:12]req_shift_opened [11:30:12]FM_GetShiftState [11:30:12]SAM_PROTO_GetShiftState [11:30:12]wFMCommunicate request_size=4 [11:30:12]MH_SAM_APDU [11:30:12]CAPDU: 80 13 01 00 [11:30:12]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [11:30:12]Write i2c OK [11:30:12]MH_I2C_Read... [11:30:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:12]Read from MH i2c: E2 [11:30:12]MH_I2C_Read... [11:30:12]Read from MH i2c: E2 0E 00 [11:30:12]MH_I2C_Read... [11:30:12]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 3B [11:30:12]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [11:30:12]wFMCommunicate OK [11:30:12]SAM_PROTO_GetShiftState done [11:30:12]FM_GetShiftState done [11:30:12]req_shift_opened done [11:30:12]requested_item shift.open_date is exist - process it [11:30:12]req_shift_open_date [11:30:12]req_shift_open_date done [11:30:12]produce_requested_data done [11:30:12]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67456,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [11:30:12]process_action_free get_value [11:30:12]json_value_free [11:30:12]json_value_free done [11:30:12]process_json_proto returns [11:30:12]Send response to host [11:30:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67456,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [11:30:12]free response buf [11:30:12]execute_script done [11:30:12]execute_script returns [11:30:12]free content buf [11:30:12]Sock 8.Close socket [11:30:12]Sock 8.Thread stoped [11:30:12]accept exits with 9 [11:30:12]New connection [11:30:12]New thread 3067039076 created [11:30:12]Thread 3067182436 joined [11:30:12]Waiting for new connection... [11:30:12] Sock 9.Parse request [11:30:12]Sock 9.Check first char [11:30:12]Sock 9.First char is OK [11:30:12]request: POST /json_proto HTTP/1.0 [11:30:12]Method: POST [11:30:12]URL: /json_proto [11:30:12]Method is POST - this is cgi request [11:30:12]url: /json_proto [11:30:12]query_string will be loaded in cgi processing [11:30:12]execute_cgi json_proto POST (null) [11:30:12]execute_cgi path=json_proto method=POST [11:30:12]POST find Content-Length [11:30:12]Host: 172.17.41.195:8080 [11:30:12]Content-Length: 331 [11:30:12]Content-Type: application/json [11:30:12] [11:30:12]POST finish read [11:30:12]Found Content-Length = 331 [11:30:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:30:12]execute_script... [11:30:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:30:12]POST & json_proto [11:30:12]process_json_proto [11:30:12]json parsed OK: [11:30:12]protocol is kg_v1.0 [11:30:12]action value=get_value [11:30:12]process_action get_value [11:30:12]cmd_get_value [11:30:12]process_action get_value done [11:30:12]requested_data is exist [11:30:12]produce_requested_data [11:30:12]requested_item fm.sale.total is exist - process it [11:30:12]SAM_PROTO_GetFMData [11:30:12]wFMCommunicate request_size=4 [11:30:12]MH_SAM_APDU [11:30:12]CAPDU: 80 13 03 00 [11:30:12]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [11:30:12]Write i2c OK [11:30:12]MH_I2C_Read... [11:30:13]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:30:13]Read from MH i2c: E2 [11:30:13]MH_I2C_Read... [11:30:13]Read from MH i2c: E2 FD 00 [11:30:13]MH_I2C_Read... [11:30:13]Read from MH i2c: E2 FD 00 13 00 00 C6 04 85 04 C2 04 6E 04 04 00 B6 04 01 00 69 04 A3 00 6F 04 04 00 0D 04 01 00 B1 04 05 00 71 A7 26 1B 03 70 04 05 00 1C 20 BB BF 02 72 04 04 00 55 87 6B 5B 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 51 D0 73 54 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 2F 92 09 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 A9 00 00 00 B1 04 04 00 20 8F BE DC 70 04 04 00 20 8F BE DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 63 21 71 17 EF 03 09 90 00 3D [11:30:13]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 B6 04 01 00 69 04 A3 00 6F 04 04 00 0D 04 01 00 B1 04 05 00 71 A7 26 1B 03 70 04 05 00 1C 20 BB BF 02 72 04 04 00 55 87 6B 5B 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 51 D0 73 54 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 2F 92 09 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 A9 00 00 00 B1 04 04 00 20 8F BE DC 70 04 04 00 20 8F BE DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 63 21 71 17 EF 03 09 90 00 [11:30:13]wFMCommunicate OK [11:30:13]wFMCommunicate request_size=4 [11:30:13]MH_SAM_APDU [11:30:13]CAPDU: 80 17 00 00 [11:30:13]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [11:30:13]Write i2c OK [11:30:13]MH_I2C_Read... [11:30:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:30:13]Read from MH i2c: E2 [11:30:13]MH_I2C_Read... [11:30:13]Read from MH i2c: E2 FD 00 [11:30:13]MH_I2C_Read... [11:30:13]Read from MH i2c: E2 FD 00 14 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 11 18 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 66 [11:30:13]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 11 18 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [11:30:13]wFMCommunicate OK [11:30:13]wFMCommunicate request_size=4 [11:30:13]MH_SAM_APDU [11:30:13]CAPDU: 80 17 00 00 [11:30:13]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [11:30:13]Write i2c OK [11:30:13]MH_I2C_Read... [11:30:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:30:13]Read from MH i2c: E2 [11:30:13]MH_I2C_Read... [11:30:13]Read from MH i2c: E2 FD 00 [11:30:13]MH_I2C_Read... [11:30:13]Read from MH i2c: E2 FD 00 15 00 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 BC [11:30:13]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [11:30:13]wFMCommunicate OK [11:30:13]wFMCommunicate request_size=4 [11:30:13]MH_SAM_APDU [11:30:13]CAPDU: 80 17 00 00 [11:30:13]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [11:30:13]Write i2c OK [11:30:13]MH_I2C_Read... [11:30:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:30:14]Read from MH i2c: E2 [11:30:14]MH_I2C_Read... [11:30:14]Read from MH i2c: E2 FD 00 [11:30:14]MH_I2C_Read... [11:30:14]Read from MH i2c: E2 FD 00 16 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 11 [11:30:14]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [11:30:14]wFMCommunicate OK [11:30:14]wFMCommunicate request_size=4 [11:30:14]MH_SAM_APDU [11:30:14]CAPDU: 80 17 00 00 [11:30:14]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [11:30:14]Write i2c OK [11:30:14]MH_I2C_Read... [11:30:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [11:30:14]Read from MH i2c: E2 [11:30:14]MH_I2C_Read... [11:30:14]Read from MH i2c: E2 E3 00 [11:30:14]MH_I2C_Read... [11:30:14]Read from MH i2c: E2 E3 00 17 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 76 [11:30:14]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:30:14]wFMCommunicate OK [11:30:14]SAM_PROTO_GetFMData done [11:30:14]requested_item fm.sale_refund.total is exist - process it [11:30:14]requested_item fm.buy.total is exist - process it [11:30:14]requested_item shift.sale.total is exist - process it [11:30:14]SAM_PROTO_GetShiftData [11:30:14]wFMCommunicate request_size=4 [11:30:14]MH_SAM_APDU [11:30:14]CAPDU: 80 13 02 00 [11:30:14]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [11:30:14]Write i2c OK [11:30:14]MH_I2C_Read... [11:30:14]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [11:30:14]Read from MH i2c: E2 [11:30:14]MH_I2C_Read... [11:30:14]Read from MH i2c: E2 FD 00 [11:30:14]MH_I2C_Read... [11:30:14]Read from MH i2c: E2 FD 00 18 00 00 B8 04 AA 04 B4 04 6E 04 04 00 36 00 00 00 69 04 9B 00 6F 04 04 00 35 00 00 00 B1 04 03 00 1B C9 4A 70 04 03 00 74 74 3A 72 04 03 00 A7 54 10 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 C0 F1 07 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 76 A9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 90 D0 03 70 04 03 00 90 D0 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 B8 67 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 0B [11:30:14]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 36 00 00 00 69 04 9B 00 6F 04 04 00 35 00 00 00 B1 04 03 00 1B C9 4A 70 04 03 00 74 74 3A 72 04 03 00 A7 54 10 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 C0 F1 07 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 76 A9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 90 D0 03 70 04 03 00 90 D0 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 B8 67 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [11:30:14]wFMCommunicate OK [11:30:14]wFMCommunicate request_size=4 [11:30:14]MH_SAM_APDU [11:30:14]CAPDU: 80 17 00 00 [11:30:14]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [11:30:14]Write i2c OK [11:30:14]MH_I2C_Read... [11:30:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:30:15]Read from MH i2c: E2 [11:30:15]MH_I2C_Read... [11:30:15]Read from MH i2c: E2 FD 00 [11:30:15]MH_I2C_Read... [11:30:15]Read from MH i2c: E2 FD 00 19 00 00 0B 00 F6 03 01 00 01 F7 03 02 00 A5 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 77 [11:30:15]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 A5 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [11:30:15]wFMCommunicate OK [11:30:15]wFMCommunicate request_size=4 [11:30:15]MH_SAM_APDU [11:30:15]CAPDU: 80 17 00 00 [11:30:15]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [11:30:15]Write i2c OK [11:30:15]MH_I2C_Read... [11:30:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:30:15]Read from MH i2c: E2 [11:30:15]MH_I2C_Read... [11:30:15]Read from MH i2c: E2 FD 00 [11:30:15]MH_I2C_Read... [11:30:15]Read from MH i2c: E2 FD 00 1A 00 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 3C [11:30:15]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [11:30:15]wFMCommunicate OK [11:30:15]wFMCommunicate request_size=4 [11:30:15]MH_SAM_APDU [11:30:15]CAPDU: 80 17 00 00 [11:30:15]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [11:30:15]Write i2c OK [11:30:15]MH_I2C_Read... [11:30:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:30:15]Read from MH i2c: E2 [11:30:15]MH_I2C_Read... [11:30:15]Read from MH i2c: E2 FD 00 [11:30:15]MH_I2C_Read... [11:30:15]Read from MH i2c: E2 FD 00 1B 00 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 24 [11:30:15]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [11:30:15]wFMCommunicate OK [11:30:15]wFMCommunicate request_size=4 [11:30:15]MH_SAM_APDU [11:30:15]CAPDU: 80 17 00 00 [11:30:15]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [11:30:15]Write i2c OK [11:30:15]MH_I2C_Read... [11:30:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [11:30:15]Read from MH i2c: E2 [11:30:15]MH_I2C_Read... [11:30:15]Read from MH i2c: E2 D5 00 [11:30:15]MH_I2C_Read... [11:30:15]Read from MH i2c: E2 D5 00 1C 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D [11:30:15]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:30:15]wFMCommunicate OK [11:30:15]SAM_PROTO_GetShiftData done [11:30:15]requested_item shift.sale.total_cash is exist - process it [11:30:15]requested_item shift.sale_refund.total is exist - process it [11:30:15]requested_item shift.sale_refund.total_cash is exist - process it [11:30:15]requested_item shift.buy.total is exist - process it [11:30:15]requested_item shift.buy.total_cash is exist - process it [11:30:15]produce_requested_data done [11:30:15]produce_requested_data return {"fm.sale.total":133404199.53,"fm.sale_refund.total":37034760.00,"fm.buy.total":0.00,"shift.sale.total":49011.47,"shift.sale.total_cash":38309.00,"shift.sale_refund.total":2500.00,"shift.sale_refund.total_cash":2500.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [11:30:15]process_action_free get_value [11:30:15]json_value_free [11:30:15]json_value_free done [11:30:15]process_json_proto returns [11:30:15]Send response to host [11:30:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133404199.53,"fm.sale_refund.total":37034760.00,"fm.buy.total":0.00,"shift.sale.total":49011.47,"shift.sale.total_cash":38309.00,"shift.sale_refund.total":2500.00,"shift.sale_refund.total_cash":2500.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [11:30:15]free response buf [11:30:15]execute_script done [11:30:15]execute_script returns [11:30:15]free content buf [11:30:15]Sock 9.Close socket [11:30:15]Sock 9.Thread stoped [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:31]OFD Sender: No OFD packet to send [11:30:36]OFD Sender: No OFD packet to send [11:30:41]OFD Sender: No OFD packet to send [11:30:46]OFD Sender: No OFD packet to send [11:30:51]OFD Sender: No OFD packet to send [11:30:56]OFD Sender: No OFD packet to send [11:31:01]OFD Sender: No OFD packet to send [11:31:06]OFD Sender: No OFD packet to send [11:31:11]OFD Sender: No OFD packet to send [11:31:16]OFD Sender: No OFD packet to send [11:31:21]OFD Sender: No OFD packet to send [11:31:26]OFD Sender: No OFD packet to send [11:31:31]OFD Sender: No OFD packet to send [11:31:36]OFD Sender: No OFD packet to send [11:31:39]accept exits with 8 [11:31:39]New connection [11:31:39]New thread 3067182436 created [11:31:39]Thread 3067039076 joined [11:31:39]Waiting for new connection... [11:31:39] Sock 8.Parse request [11:31:39]Sock 8.Check first char [11:31:39]Sock 8.First char is OK [11:31:39]request: POST /json_proto HTTP/1.0 [11:31:39]Method: POST [11:31:39]URL: /json_proto [11:31:39]Method is POST - this is cgi request [11:31:39]url: /json_proto [11:31:39]query_string will be loaded in cgi processing [11:31:39]execute_cgi json_proto POST (null) [11:31:39]execute_cgi path=json_proto method=POST [11:31:39]POST find Content-Length [11:31:39]Host: 172.17.41.195:8080 [11:31:39]Content-Length: 670 [11:31:39]Content-Type: application/json [11:31:39] [11:31:39]POST finish read [11:31:39]Found Content-Length = 670 [11:31:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507490", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:31:39]execute_script... [11:31:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507490", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:31:39]POST & json_proto [11:31:39]process_json_proto [11:31:39]json parsed OK: [11:31:39]protocol is kg_v1.0 [11:31:39]action value=close_receipt [11:31:39]process_action close_receipt [11:31:39]cmd_close_receipt [11:31:39]MH_GetDate [11:31:39]Write to MH i2c: F0 00 00 1D 00 0C [11:31:39]Write i2c OK [11:31:39]MH_I2C_Read... [11:31:39]Read from MH i2c: F0 [11:31:39]MH_I2C_Read... [11:31:39]Read from MH i2c: F0 09 00 [11:31:39]MH_I2C_Read... [11:31:39]Read from MH i2c: F0 09 00 1D 00 00 9C EE 45 66 FC 21 6F 64 3A [11:31:39]GetLastDocTimeStamp 1715858701 [11:31:39]current date 1715859100 [11:31:39]FM_GetShiftState [11:31:39]SAM_PROTO_GetShiftState [11:31:39]wFMCommunicate request_size=4 [11:31:39]MH_SAM_APDU [11:31:39]CAPDU: 80 13 01 00 [11:31:39]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [11:31:39]Write i2c OK [11:31:39]MH_I2C_Read... [11:31:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:39]Read from MH i2c: E2 [11:31:39]MH_I2C_Read... [11:31:39]Read from MH i2c: E2 0E 00 [11:31:39]MH_I2C_Read... [11:31:39]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 47 [11:31:39]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [11:31:39]wFMCommunicate OK [11:31:39]SAM_PROTO_GetShiftState done [11:31:39]FM_GetShiftState done [11:31:39]opened in 1715818916 [11:31:39]opened+sec_in_day 1715905316 [11:31:39]quantity*price = 40002 [11:31:39]sum+1 = 40003 [11:31:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 55 16.05.2024 11:31 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67457 ФПД: 60972570583510 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T113140&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67457&fm=60972570583510&tin=02508201610067®Number=0000000000091845&sum=40000 [11:31:41]StoreToDocumentArchive [11:31:41]shift 357 fd 67457 [11:31:41]save to /storage/0357/doc_00067457 [11:31:41]save last doc name /storage/0357/doc_00067457 to /storage/kkm_last_doc_name [11:31:41]save OK [11:31:41]Clear old archive folders... [11:31:41]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:31:41]tlvbuf is 01790AA0 [11:31:41]SAM_PROTO_ClearQueue [11:31:41]wFMCommunicate request_size=4 [11:31:41]MH_SAM_APDU [11:31:41]CAPDU: 80 09 00 00 [11:31:41]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [11:31:41]Write i2c OK [11:31:41]MH_I2C_Read... [11:31:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:31:41]Read from MH i2c: E2 [11:31:41]MH_I2C_Read... [11:31:41]Read from MH i2c: E2 03 00 [11:31:41]MH_I2C_Read... [11:31:41]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [11:31:41]RAPDU: 90 00 [11:31:41]wFMCommunicate OK [11:31:41]SAM_PROTO_ClearQueue done [11:31:41]KKMCreateOFDPacket [11:31:41]OFDProtocolAddRootSTLVToBuf [11:31:41]FM_MakeSignedData [11:31:41]FM_MakeSignedData [11:31:41]SAM_PROTO_SignData [11:31:41]wFMCommunicate request_size=4 [11:31:41]MH_SAM_APDU [11:31:41]CAPDU: 80 0D 01 02 [11:31:41]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [11:31:41]Write i2c OK [11:31:41]MH_I2C_Read... [11:31:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:31:41]Read from MH i2c: E2 [11:31:41]MH_I2C_Read... [11:31:41]Read from MH i2c: E2 03 00 [11:31:41]MH_I2C_Read... [11:31:41]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [11:31:41]RAPDU: 90 00 [11:31:41]wFMCommunicate OK [11:31:41]wFMCommunicate request_size=255 [11:31:41]MH_SAM_APDU [11:31:41]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 00 00 00 F4 03 04 00 9C EE 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 81 07 01 00 35 04 06 00 [11:31:41]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 00 00 00 F4 03 04 00 9C EE 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 81 07 01 00 35 04 06 00 00 00 93 [11:31:41]Write i2c OK [11:31:41]MH_I2C_Read... [11:31:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:41]Read from MH i2c: E2 [11:31:41]MH_I2C_Read... [11:31:41]Read from MH i2c: E2 03 00 [11:31:41]MH_I2C_Read... [11:31:41]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [11:31:41]RAPDU: 90 00 [11:31:41]wFMCommunicate OK [11:31:41]wFMCommunicate request_size=11 [11:31:41]MH_SAM_APDU [11:31:41]CAPDU: 80 0D 02 02 06 37 74 48 69 21 D6 [11:31:41]Write to MH i2c: E2 0E 00 2E 00 80 0D 02 02 06 00 37 74 48 69 21 D6 00 00 07 [11:31:41]Write i2c OK [11:31:41]MH_I2C_Read... [11:31:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:41]Read from MH i2c: E2 [11:31:41]MH_I2C_Read... [11:31:41]Read from MH i2c: E2 03 00 [11:31:41]MH_I2C_Read... [11:31:41]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [11:31:41]RAPDU: 90 00 [11:31:41]wFMCommunicate OK [11:31:41]wFMCommunicate request_size=4 [11:31:41]MH_SAM_APDU [11:31:41]CAPDU: 80 0D 03 02 [11:31:41]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [11:31:41]Write i2c OK [11:31:41]MH_I2C_Read... [11:31:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:31:41]Read from MH i2c: E2 [11:31:41]MH_I2C_Read... [11:31:41]Read from MH i2c: E2 0B 00 [11:31:41]MH_I2C_Read... [11:31:41]Read from MH i2c: E2 0B 00 2F 00 00 EB D1 DD DF 24 44 2B 8A 90 00 40 [11:31:41]RAPDU: EB D1 DD DF 24 44 2B 8A 90 00 [11:31:41]wFMCommunicate OK [11:31:41]SAM_PROTO_SignData done [11:31:41]FM_MakeSignedData done [11:31:41]CreateOFDProtocolMessage [11:31:41]wFMCommunicate request_size=4 [11:31:41]MH_SAM_APDU [11:31:41]CAPDU: 80 11 00 00 [11:31:41]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [11:31:41]Write i2c OK [11:31:41]MH_I2C_Read... [11:31:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:41]Read from MH i2c: E2 [11:31:41]MH_I2C_Read... [11:31:41]Read from MH i2c: E2 17 00 [11:31:41]MH_I2C_Read... [11:31:41]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 00 [11:31:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:31:41]wFMCommunicate OK [11:31:41]CreateOFDProtocolMessage done [11:31:41]OFDSenderStorePacket 67457 [11:31:41]StoreOFDPacket docnum=67457 [11:31:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 56 E8 08 01 6C A1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 00 00 00 F4 03 04 00 9C EE 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 81 07 01 00 35 04 06 00 37 74 48 69 21 D6 EB D1 DD DF 24 44 2B 8A [11:31:41]CheckFolder [11:31:41]dirname=/storage/ofd_packets [11:31:41]CheckFolder done [11:31:41]ProducePacketName [11:31:41]name=ofd_packets/00067457 [11:31:41]NVStorageSaveData ofd_packets/00067457 [11:31:41]File name is /storage/ofd_packets/00067457 [11:31:41]Write 302 bytes [11:31:41]NVStorageSaveData done [11:31:41]OFDSenderStorePacket done [11:31:41]KKMCreateOFDPacket done [11:31:41]NVStorageSaveData kkm_last_timestamp [11:31:41]File name is /storage/kkm_last_timestamp [11:31:41]Write 4 bytes [11:31:41]NVStorageSaveData done [11:31:41]ExternCall_PrintAddStr [11:31:41]wPrintStart [11:31:41]Write to MH i2c: 01 00 00 31 00 31 [11:31:41]Write i2c OK [11:31:41]MH_I2C_Read... [11:31:41]Read from MH i2c: 01 [11:31:41]MH_I2C_Read... [11:31:41]Read from MH i2c: 01 07 00 [11:31:41]MH_I2C_Read... [11:31:41]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [11:31:41]RasterBufferAndPrint [11:31:41]line Счет N : (1)507490 [11:31:41]line ИНН: 02508201610067 [11:31:41]line Контрольно-Кассовый Чек [11:31:41]line ПРОДАЖА [11:31:41]line ТРК (МРК, ГНК) : 32 [11:31:41]line Товар: 2710124130 [11:31:41]line Super-92-К-5 [11:31:41]line 5.900 * 67.80 [11:31:41]line = 400.02 [11:31:41]line НДС 12% НСП 1% [11:31:41]line > о реализуемом товаре [11:31:41]line ОКРУГЛЕНИЕ: -0.02 [11:31:41]line ИТОГО: 400.00 [11:31:41]line Внесено: 400.00 [11:31:41]line СДАЧА: 0.00 [11:31:41]line НСП 1% : 3.54 [11:31:41]line НДС 12% : 42.48 [11:31:41]line Наличными: 400.00 [11:31:41]line Безнал.: 0.00 [11:31:41]line Место: АЗС № 91 "Партнер Нефть" [11:31:41]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:31:41]line СНО: Общий режим [11:31:41]line Чек 55 16.05.2024 11:31 [11:31:41]line Смена: 357 ФФД: 1.0 [11:31:41]line ЗНМ: 0300000119 [11:31:41]line РНМ: 0000000000091845 [11:31:41]line Версия ККМ: 001 [11:31:41]line ФМ: 0000000000871829 [11:31:41]line ФД: 67457 [11:31:41]line ФПД: 60972570583510 [11:31:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T113140&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67457&fm=60972570583510&tin=02508201610067®Number=0000000000091845&sum=40000 [11:31:41]written 0, free lines is 4095 [11:31:41]OFD Sender: Processing packet 67457 [packets to send 35, broken 34] [11:31:41]ProducePacketName [11:31:41]name=ofd_packets/00067457 [11:31:41]OFD Sender: To server: pG, [11:31:41]CommunicateWithHost lk.salyk.kg:30040 [11:31:41]ConnectInit lk.salyk.kg [11:31:41]Connected sock=9 [11:31:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 56 E8 08 01 6C A1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 00 00 00 F4 03 04 00 9C EE 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 81 07 01 00 35 04 06 00 37 74 48 69 21 D6 EB D1 DD DF 24 44 2B 8A [11:31:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 E0 24 47 00 A3 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 81 07 01 00 F4 03 04 00 76 96 45 66 B6 04 01 00 00 1A 3D 68 7D 45 95 AC 96 [11:31:41]CommunicateWithHost err = 0 [11:31:41]CheckOFDResponse [11:31:41]1017 (14) - 77093643461234 [11:31:41]1041 (16) - 0000000000871829 [11:31:41]1040 (4) - 67457 [11:31:41]1012 (4) - 16.05.2024 05:15 [11:31:41]1206 (1) - 0 [11:31:41]OFD Sender: Remove packet 67457 [11:31:41]ProducePacketName [11:31:41]name=ofd_packets/00067457 [11:31:41]NVStorageDeleteData [11:31:42]Write to MH i2c: 01 00 00 5B 00 5B [11:31:42]Write i2c OK [11:31:42]MH_I2C_Read... [11:31:42]Read from MH i2c: 01 [11:31:42]MH_I2C_Read... [11:31:42]Read from MH i2c: 01 07 00 [11:31:42]MH_I2C_Read... [11:31:42]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 DC 0C 4A [11:31:42]RasterBufferAndPrint [11:31:42]line [11:31:42]line [11:31:42]line [11:31:42]line [11:31:42]line [11:31:42]written 0, free lines is 3298 [11:31:42]MH_Cut [11:31:42]Write to MH i2c: D1 01 00 62 00 01 34 [11:31:42]Write i2c OK [11:31:42]MH_I2C_Read... [11:31:42]Read from MH i2c: D1 [11:31:42]MH_I2C_Read... [11:31:42]Read from MH i2c: D1 01 00 [11:31:42]MH_I2C_Read... [11:31:42]Read from MH i2c: D1 01 00 62 00 00 33 [11:31:42]Write to MH i2c: 01 00 00 63 00 63 [11:31:42]Write i2c OK [11:31:42]MH_I2C_Read... [11:31:42]OFD Sender: No OFD packet to send [11:31:42]*** Cut start [11:31:42]*** Purtial cut [11:31:42]*** CUTSNS_PIN = 0 [11:31:43]*** Stage 1: CUTSNS_PIN = 1 [11:31:44]Read from MH i2c: 01 [11:31:44]MH_I2C_Read... [11:31:44]*** Stop cut motor [11:31:44]*** Cut end [11:31:44]Read from MH i2c: 01 07 00 [11:31:44]MH_I2C_Read... [11:31:44]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [11:31:44]process_action close_receipt done [11:31:44]requested_data is exist [11:31:44]produce_requested_data [11:31:44]requested_item fm.sn is exist - process it [11:31:44]wFMCommunicate request_size=4 [11:31:44]MH_SAM_APDU [11:31:44]CAPDU: 80 11 00 00 [11:31:44]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [11:31:44]Write i2c OK [11:31:44]MH_I2C_Read... [11:31:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:44]Read from MH i2c: E2 [11:31:44]MH_I2C_Read... [11:31:44]Read from MH i2c: E2 17 00 [11:31:44]MH_I2C_Read... [11:31:44]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 34 [11:31:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:31:44]wFMCommunicate OK [11:31:44]requested_item fd.num is exist - process it [11:31:44]SAM_PROTO_GetFieldsCounters [11:31:44]wFMCommunicate request_size=4 [11:31:44]MH_SAM_APDU [11:31:44]CAPDU: 80 13 00 00 [11:31:44]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [11:31:44]Write i2c OK [11:31:44]MH_I2C_Read... [11:31:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:31:45]Read from MH i2c: E2 [11:31:45]MH_I2C_Read... [11:31:45]Read from MH i2c: E2 62 00 [11:31:45]MH_I2C_Read... [11:31:45]Read from MH i2c: E2 62 00 65 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 81 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [11:31: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 81 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:31:45]wFMCommunicate OK [11:31:45]SAM_PROTO_GetFieldsCounters done [11:31:45]requested_item shift.num is exist - process it [11:31:45]requested_item shift.opened is exist - process it [11:31:45]req_shift_opened [11:31:45]FM_GetShiftState [11:31:45]SAM_PROTO_GetShiftState [11:31:45]wFMCommunicate request_size=4 [11:31:45]MH_SAM_APDU [11:31:45]CAPDU: 80 13 01 00 [11:31:45]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [11:31:45]Write i2c OK [11:31:45]MH_I2C_Read... [11:31:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:45]Read from MH i2c: E2 [11:31:45]MH_I2C_Read... [11:31:45]Read from MH i2c: E2 0E 00 [11:31:45]MH_I2C_Read... [11:31:45]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 8F [11:31:45]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [11:31:45]wFMCommunicate OK [11:31:45]SAM_PROTO_GetShiftState done [11:31:45]FM_GetShiftState done [11:31:45]req_shift_opened done [11:31:45]requested_item shift.open_date is exist - process it [11:31:45]req_shift_open_date [11:31:45]req_shift_open_date done [11:31:45]produce_requested_data done [11:31:45]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67457,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [11:31:45]process_action_free close_receipt [11:31:45]json_value_free [11:31:45]json_value_free done [11:31:45]process_json_proto returns [11:31:45]Send response to host [11:31:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67457,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [11:31:45]free response buf [11:31:45]execute_script done [11:31:45]execute_script returns [11:31:45]free content buf [11:31:45]Sock 8.Close socket [11:31:45]Sock 8.Thread stoped [11:31:47]OFD Sender: No OFD packet to send [11:31:52]OFD Sender: No OFD packet to send [11:31:57]OFD Sender: No OFD packet to send [11:32:02]OFD Sender: No OFD packet to send [11:32:07]OFD Sender: No OFD packet to send [11:32:12]OFD Sender: No OFD packet to send [11:32:17]OFD Sender: No OFD packet to send [11:32:22]OFD Sender: No OFD packet to send [11:32:27]OFD Sender: No OFD packet to send [11:32:32]OFD Sender: No OFD packet to send [11:32:37]OFD Sender: No OFD packet to send [11:32:42]OFD Sender: No OFD packet to send [11:32:47]OFD Sender: No OFD packet to send [11:32:52]OFD Sender: No OFD packet to send [11:32:57]OFD Sender: No OFD packet to send [11:33:02]OFD Sender: No OFD packet to send [11:33:07]OFD Sender: No OFD packet to send [11:33:12]OFD Sender: No OFD packet to send [11:33:17]OFD Sender: No OFD packet to send [11:33:22]OFD Sender: No OFD packet to send [11:33:27]OFD Sender: No OFD packet to send [11:33:32]OFD Sender: No OFD packet to send [11:33:37]OFD Sender: No OFD packet to send [11:33:42]OFD Sender: No OFD packet to send [11:33:47]OFD Sender: No OFD packet to send [11:33:52]OFD Sender: No OFD packet to send [11:33:57]OFD Sender: No OFD packet to send [11:34:02]OFD Sender: No OFD packet to send [11:34:07]OFD Sender: No OFD packet to send [11:34:12]OFD Sender: No OFD packet to send [11:34:17]OFD Sender: No OFD packet to send [11:34:22]OFD Sender: No OFD packet to send [11:34:27]OFD Sender: No OFD packet to send [11:34:32]OFD Sender: No OFD packet to send [11:34:37]OFD Sender: No OFD packet to send [11:34:42]OFD Sender: No OFD packet to send [11:34:47]OFD Sender: No OFD packet to send [11:34:52]OFD Sender: No OFD packet to send [11:34:57]OFD Sender: No OFD packet to send [11:34:57]accept exits with 10 [11:34:57]New connection [11:34:57]New thread 3067039076 created [11:34:57]Thread 3067182436 joined [11:34:57]Waiting for new connection... [11:34:57] Sock 10.Parse request [11:34:57]Sock 10.Check first char [11:34:57]Sock 10.First char is OK [11:34:57]request: POST /json_proto HTTP/1.0 [11:34:57]Method: POST [11:34:57]URL: /json_proto [11:34:57]Method is POST - this is cgi request [11:34:57]url: /json_proto [11:34:57]query_string will be loaded in cgi processing [11:34:57]execute_cgi json_proto POST (null) [11:34:57]execute_cgi path=json_proto method=POST [11:34:57]POST find Content-Length [11:34:57]Host: 172.17.41.195:8080 [11:34:57]Content-Length: 682 [11:34:57]Content-Type: application/json [11:34:57] [11:34:57]POST finish read [11:34:57]Found Content-Length = 682 [11:34:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507491", "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.80, "quantity" : 15.570, "sum" : 1040.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1040.00, "total" : 1040.00, "payments": [ { "type": 0, "sum" : 1040.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:57]execute_script... [11:34: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)507491", "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.80, "quantity" : 15.570, "sum" : 1040.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1040.00, "total" : 1040.00, "payments": [ { "type": 0, "sum" : 1040.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:57]POST & json_proto [11:34:57]process_json_proto [11:34:57]json parsed OK: [11:34:57]protocol is kg_v1.0 [11:34:57]action value=close_receipt [11:34:57]process_action close_receipt [11:34:57]cmd_close_receipt [11:34:57]MH_GetDate [11:34:57]Write to MH i2c: F0 00 00 67 00 56 [11:34:57]Write i2c OK [11:34:57]MH_I2C_Read... [11:34:57]Read from MH i2c: F0 [11:34:57]MH_I2C_Read... [11:34:57]Read from MH i2c: F0 09 00 [11:34:57]MH_I2C_Read... [11:34:57]Read from MH i2c: F0 09 00 67 00 00 62 EF 45 66 FC 21 6F 64 4B [11:34:57]GetLastDocTimeStamp 1715859100 [11:34:57]current date 1715859298 [11:34:57]FM_GetShiftState [11:34:57]SAM_PROTO_GetShiftState [11:34:57]wFMCommunicate request_size=4 [11:34:57]MH_SAM_APDU [11:34:57]CAPDU: 80 13 01 00 [11:34:57]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [11:34:57]Write i2c OK [11:34:57]MH_I2C_Read... [11:34:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:57]Read from MH i2c: E2 [11:34:57]MH_I2C_Read... [11:34:57]Read from MH i2c: E2 0E 00 [11:34:57]MH_I2C_Read... [11:34:57]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 91 [11:34:57]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [11:34:57]wFMCommunicate OK [11:34:57]SAM_PROTO_GetShiftState done [11:34:57]FM_GetShiftState done [11:34:57]opened in 1715818916 [11:34:57]opened+sec_in_day 1715905316 [11:34:57]quantity*price = 104007 [11:34:57]sum+1 = 104009 [11:34:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 1040.00 Внесено: 1040.00 СДАЧА: 0.00 НСП 1% : 9.20 НДС 12% : 110.45 Наличными: 1040.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 56 16.05.2024 11:34 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67458 ФПД: 89580371987760 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T113458&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67458&fm=89580371987760&tin=02508201610067®Number=0000000000091845&sum=104000 [11:34:59]StoreToDocumentArchive [11:34:59]shift 357 fd 67458 [11:34:59]save to /storage/0357/doc_00067458 [11:34:59]save last doc name /storage/0357/doc_00067458 to /storage/kkm_last_doc_name [11:34:59]save OK [11:34:59]Clear old archive folders... [11:34:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:34:59]tlvbuf is 01787660 [11:34:59]SAM_PROTO_ClearQueue [11:34:59]wFMCommunicate request_size=4 [11:34:59]MH_SAM_APDU [11:34:59]CAPDU: 80 09 00 00 [11:34:59]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [11:34:59]Write i2c OK [11:34:59]MH_I2C_Read... [11:34:59]Read from MH i2c: E2 [11:34:59]MH_I2C_Read... [11:34:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:34:59]Read from MH i2c: E2 03 00 [11:34:59]MH_I2C_Read... [11:34:59]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [11:34:59]RAPDU: 90 00 [11:34:59]wFMCommunicate OK [11:34:59]SAM_PROTO_ClearQueue done [11:34:59]KKMCreateOFDPacket [11:34:59]OFDProtocolAddRootSTLVToBuf [11:34:59]FM_MakeSignedData [11:34:59]FM_MakeSignedData [11:34:59]SAM_PROTO_SignData [11:34:59]wFMCommunicate request_size=4 [11:34:59]MH_SAM_APDU [11:34:59]CAPDU: 80 0D 01 02 [11:34:59]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [11:34:59]Write i2c OK [11:34:59]MH_I2C_Read... [11:34:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:34:59]Read from MH i2c: E2 [11:34:59]MH_I2C_Read... [11:34:59]Read from MH i2c: E2 03 00 [11:34:59]MH_I2C_Read... [11:34:59]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [11:34:59]RAPDU: 90 00 [11:34:59]wFMCommunicate OK [11:34:59]wFMCommunicate request_size=255 [11:34:59]MH_SAM_APDU [11:34: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 D2 3C 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 48 96 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 96 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 2B 00 00 00 00 07 04 06 00 40 96 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 62 EF 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 82 07 01 00 35 04 06 00 51 [11:34:59]Write to MH i2c: E2 02 01 77 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 D2 3C 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 48 96 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 96 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 2B 00 00 00 00 07 04 06 00 40 96 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 62 EF 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 82 07 01 00 35 04 06 00 51 00 00 2B [11:34:59]Write i2c OK [11:34:59]MH_I2C_Read... [11:34:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:59]Read from MH i2c: E2 [11:34:59]MH_I2C_Read... [11:34:59]Read from MH i2c: E2 03 00 [11:34:59]MH_I2C_Read... [11:34:59]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [11:34:59]RAPDU: 90 00 [11:34:59]wFMCommunicate OK [11:34:59]wFMCommunicate request_size=10 [11:34:59]MH_SAM_APDU [11:34:59]CAPDU: 80 0D 02 02 05 79 0E 40 4D 30 [11:34:59]Write to MH i2c: E2 0D 00 78 00 80 0D 02 02 05 00 79 0E 40 4D 30 00 00 40 [11:34:59]Write i2c OK [11:34:59]MH_I2C_Read... [11:34:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:59]Read from MH i2c: E2 [11:34:59]MH_I2C_Read... [11:34:59]Read from MH i2c: E2 03 00 [11:34:59]MH_I2C_Read... [11:34:59]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [11:34:59]RAPDU: 90 00 [11:34:59]wFMCommunicate OK [11:34:59]wFMCommunicate request_size=4 [11:34:59]MH_SAM_APDU [11:34:59]CAPDU: 80 0D 03 02 [11:34:59]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [11:34:59]Write i2c OK [11:34:59]MH_I2C_Read... [11:34:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:34:59]Read from MH i2c: E2 [11:34:59]MH_I2C_Read... [11:34:59]Read from MH i2c: E2 0B 00 [11:34:59]MH_I2C_Read... [11:34:59]Read from MH i2c: E2 0B 00 79 00 00 8B C5 09 3B 52 DB 98 74 90 00 C2 [11:34:59]RAPDU: 8B C5 09 3B 52 DB 98 74 90 00 [11:34:59]wFMCommunicate OK [11:34:59]SAM_PROTO_SignData done [11:34:59]FM_MakeSignedData done [11:34:59]CreateOFDProtocolMessage [11:34:59]wFMCommunicate request_size=4 [11:34:59]MH_SAM_APDU [11:34:59]CAPDU: 80 11 00 00 [11:34:59]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [11:34:59]Write i2c OK [11:34:59]MH_I2C_Read... [11:34:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:59]Read from MH i2c: E2 [11:34:59]MH_I2C_Read... [11:34:59]Read from MH i2c: E2 17 00 [11:34:59]MH_I2C_Read... [11:34:59]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 4A [11:34:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:34:59]wFMCommunicate OK [11:34:59]CreateOFDProtocolMessage done [11:34:59]OFDSenderStorePacket 67458 [11:34:59]StoreOFDPacket docnum=67458 [11:34:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 F3 94 07 01 DF 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 D2 3C 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 48 96 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 96 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 2B 00 00 00 00 07 04 06 00 40 96 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 62 EF 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 82 07 01 00 35 04 06 00 51 79 0E 40 4D 30 8B C5 09 3B 52 DB 98 74 [11:34:59]CheckFolder [11:34:59]dirname=/storage/ofd_packets [11:34:59]CheckFolder done [11:34:59]ProducePacketName [11:34:59]name=ofd_packets/00067458 [11:34:59]NVStorageSaveData ofd_packets/00067458 [11:34:59]File name is /storage/ofd_packets/00067458 [11:34:59]Write 301 bytes [11:34:59]NVStorageSaveData done [11:34:59]OFDSenderStorePacket done [11:34:59]KKMCreateOFDPacket done [11:34:59]NVStorageSaveData kkm_last_timestamp [11:34:59]File name is /storage/kkm_last_timestamp [11:34:59]Write 4 bytes [11:34:59]NVStorageSaveData done [11:34:59]ExternCall_PrintAddStr [11:34:59]wPrintStart [11:34:59]Write to MH i2c: 01 00 00 7B 00 7B [11:34:59]Write i2c OK [11:34:59]MH_I2C_Read... [11:34:59]Read from MH i2c: 01 [11:34:59]MH_I2C_Read... [11:34:59]Read from MH i2c: 01 07 00 [11:34:59]MH_I2C_Read... [11:34:59]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [11:34:59]RasterBufferAndPrint [11:34:59]line Счет N : (1)507491 [11:34:59]line ИНН: 02508201610067 [11:34:59]line Контрольно-Кассовый Чек [11:34:59]line ПРОДАЖА [11:34:59]line ТРК (МРК, ГНК) : 33 [11:34:59]line Товар: 2710124130 [11:34:59]line Аи-92-К-5 [11:34:59]line 15.570 * 66.80 [11:34:59]line = 1040.08 [11:34:59]line НДС 12% НСП 1% [11:34:59]line > о реализуемом товаре [11:34:59]line ОКРУГЛЕНИЕ: -0.08 [11:34:59]line ИТОГО: 1040.00 [11:34:59]line Внесено: 1040.00 [11:34:59]line СДАЧА: 0.00 [11:34:59]line НСП 1% : 9.20 [11:34:59]line НДС 12% : 110.45 [11:34:59]line Наличными: 1040.00 [11:34:59]line Безнал.: 0.00 [11:34:59]line Место: АЗС № 91 "Партнер Нефть" [11:34:59]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:34:59]line СНО: Общий режим [11:34:59]line Чек 56 16.05.2024 11:34 [11:34:59]line Смена: 357 ФФД: 1.0 [11:34:59]line ЗНМ: 0300000119 [11:34:59]line РНМ: 0000000000091845 [11:34:59]line Версия ККМ: 001 [11:34:59]line ФМ: 0000000000871829 [11:34:59]line ФД: 67458 [11:34:59]line ФПД: 89580371987760 [11:34:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T113458&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67458&fm=89580371987760&tin=02508201610067®Number=0000000000091845&sum=104000 [11:34:59]written 0, free lines is 4095 [11:34:59]OFD Sender: Processing packet 67458 [packets to send 35, broken 34] [11:34:59]ProducePacketName [11:34:59]name=ofd_packets/00067458 [11:34:59]OFD Sender: To server: pG, [11:34:59]CommunicateWithHost lk.salyk.kg:30040 [11:34:59]ConnectInit lk.salyk.kg [11:34:59]Connected sock=9 [11:34:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 F3 94 07 01 DF 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 D2 3C 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 48 96 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 96 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 2B 00 00 00 00 07 04 06 00 40 96 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 62 EF 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 82 07 01 00 35 04 06 00 51 79 0E 40 4D 30 8B C5 09 3B 52 DB 98 74 [11:34:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 43 93 47 00 36 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 38 32 39 10 04 04 00 82 07 01 00 F4 03 04 00 3C 97 45 66 B6 04 01 00 00 BE 64 08 92 5D EA A0 CC [11:34:59]CommunicateWithHost err = 0 [11:34:59]CheckOFDResponse [11:34:59]1017 (14) - 77093643461234 [11:34:59]1041 (16) - 0000000000871829 [11:34:59]1040 (4) - 67458 [11:34:59]1012 (4) - 16.05.2024 05:18 [11:34:59]1206 (1) - 0 [11:34:59]OFD Sender: Remove packet 67458 [11:34:59]ProducePacketName [11:34:59]name=ofd_packets/00067458 [11:34:59]NVStorageDeleteData [11:35:00]Write to MH i2c: 01 00 00 A5 00 A5 [11:35:00]Write i2c OK [11:35:00]MH_I2C_Read... [11:35:00]Read from MH i2c: 01 [11:35:00]MH_I2C_Read... [11:35:00]Read from MH i2c: 01 07 00 [11:35:00]MH_I2C_Read... [11:35:00]Read from MH i2c: 01 07 00 A5 00 00 00 00 00 00 D6 0C 8E [11:35:00]RasterBufferAndPrint [11:35:00]line [11:35:00]line [11:35:00]line [11:35:00]line [11:35:00]line [11:35:00]written 0, free lines is 3295 [11:35:00]MH_Cut [11:35:00]Write to MH i2c: D1 01 00 AC 00 01 7E [11:35:00]Write i2c OK [11:35:00]MH_I2C_Read... [11:35:00]Read from MH i2c: D1 [11:35:00]MH_I2C_Read... [11:35:00]Read from MH i2c: D1 01 00 [11:35:00]MH_I2C_Read... [11:35:00]Read from MH i2c: D1 01 00 AC 00 00 7D [11:35:00]Write to MH i2c: 01 00 00 AD 00 AD [11:35:00]Write i2c OK [11:35:00]MH_I2C_Read... [11:35:00]OFD Sender: No OFD packet to send [11:35:00]*** Cut start [11:35:00]*** Purtial cut [11:35:00]*** Stage 1: CUTSNS_PIN = 1 [11:35:01]Read from MH i2c: 01 [11:35:01]MH_I2C_Read... [11:35:01]*** Stop cut motor [11:35:01]*** Cut end [11:35:01]Read from MH i2c: 01 07 00 [11:35:01]MH_I2C_Read... [11:35:01]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [11:35:01]process_action close_receipt done [11:35:01]requested_data is exist [11:35:01]produce_requested_data [11:35:01]requested_item fm.sn is exist - process it [11:35:01]wFMCommunicate request_size=4 [11:35:01]MH_SAM_APDU [11:35:01]CAPDU: 80 11 00 00 [11:35:01]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [11:35:01]Write i2c OK [11:35:01]MH_I2C_Read... [11:35:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:01]Read from MH i2c: E2 [11:35:01]MH_I2C_Read... [11:35:01]Read from MH i2c: E2 17 00 [11:35:01]MH_I2C_Read... [11:35:01]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7E [11:35:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:35:01]wFMCommunicate OK [11:35:01]requested_item fd.num is exist - process it [11:35:01]SAM_PROTO_GetFieldsCounters [11:35:01]wFMCommunicate request_size=4 [11:35:01]MH_SAM_APDU [11:35:01]CAPDU: 80 13 00 00 [11:35:01]Write to MH i2c: E2 08 00 AF 00 80 13 00 00 00 00 00 00 2B [11:35:01]Write i2c OK [11:35:01]MH_I2C_Read... [11:35:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:01]Read from MH i2c: E2 [11:35:01]MH_I2C_Read... [11:35:01]Read from MH i2c: E2 62 00 [11:35:01]MH_I2C_Read... [11:35:01]Read from MH i2c: E2 62 00 AF 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 82 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [11:35: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 82 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:35:01]wFMCommunicate OK [11:35:01]SAM_PROTO_GetFieldsCounters done [11:35:01]requested_item shift.num is exist - process it [11:35:01]requested_item shift.opened is exist - process it [11:35:01]req_shift_opened [11:35:01]FM_GetShiftState [11:35:01]SAM_PROTO_GetShiftState [11:35:01]wFMCommunicate request_size=4 [11:35:01]MH_SAM_APDU [11:35:01]CAPDU: 80 13 01 00 [11:35:01]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [11:35:01]Write i2c OK [11:35:01]MH_I2C_Read... [11:35:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:01]Read from MH i2c: E2 [11:35:01]MH_I2C_Read... [11:35:01]Read from MH i2c: E2 0E 00 [11:35:01]MH_I2C_Read... [11:35:01]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 D9 [11:35:01]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [11:35:01]wFMCommunicate OK [11:35:01]SAM_PROTO_GetShiftState done [11:35:01]FM_GetShiftState done [11:35:01]req_shift_opened done [11:35:01]requested_item shift.open_date is exist - process it [11:35:01]req_shift_open_date [11:35:01]req_shift_open_date done [11:35:01]produce_requested_data done [11:35:01]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67458,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [11:35:01]process_action_free close_receipt [11:35:01]json_value_free [11:35:01]json_value_free done [11:35:01]process_json_proto returns [11:35:01]Send response to host [11:35:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67458,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [11:35:01]free response buf [11:35:01]execute_script done [11:35:01]execute_script returns [11:35:01]free content buf [11:35:01]Sock 10.Close socket [11:35:01]Sock 10.Thread stoped [11:35:05]OFD Sender: No OFD packet to send [11:35:10]OFD Sender: No OFD packet to send [11:35:15]OFD Sender: No OFD packet to send [11:35:20]OFD Sender: No OFD packet to send [11:35:25]OFD Sender: No OFD packet to send [11:35:30]OFD Sender: No OFD packet to send [11:35:35]OFD Sender: No OFD packet to send [11:35:40]OFD Sender: No OFD packet to send [11:35:45]OFD Sender: No OFD packet to send [11:35:50]OFD Sender: No OFD packet to send [11:35:55]OFD Sender: No OFD packet to send [11:36:00]OFD Sender: No OFD packet to send [11:36:05]OFD Sender: No OFD packet to send [11:36:10]OFD Sender: No OFD packet to send [11:36:15]OFD Sender: No OFD packet to send [11:36:20]OFD Sender: No OFD packet to send [11:36:25]OFD Sender: No OFD packet to send [11:36:30]OFD Sender: No OFD packet to send [11:36:35]OFD Sender: No OFD packet to send [11:36:40]OFD Sender: No OFD packet to send [11:36:45]OFD Sender: No OFD packet to send [11:36:50]OFD Sender: No OFD packet to send [11:36:55]OFD Sender: No OFD packet to send [11:37:00]OFD Sender: No OFD packet to send [11:37:05]OFD Sender: No OFD packet to send [11:37:10]OFD Sender: No OFD packet to send [11:37:15]OFD Sender: No OFD packet to send [11:37:20]OFD Sender: No OFD packet to send [11:37:25]OFD Sender: No OFD packet to send [11:37:30]OFD Sender: No OFD packet to send [11:37:35]OFD Sender: No OFD packet to send [11:37:40]OFD Sender: No OFD packet to send [11:37:45]OFD Sender: No OFD packet to send [11:37:50]OFD Sender: No OFD packet to send [11:37:51]accept exits with 8 [11:37:51]New connection [11:37:51]New thread 3067182436 created [11:37:51]Thread 3067039076 joined [11:37:51]Waiting for new connection... [11:37:51] Sock 8.Parse request [11:37:51]Sock 8.Check first char [11:37:51]Sock 8.First char is OK [11:37:51]request: POST /json_proto HTTP/1.0 [11:37:51]Method: POST [11:37:51]URL: /json_proto [11:37:51]Method is POST - this is cgi request [11:37:51]url: /json_proto [11:37:51]query_string will be loaded in cgi processing [11:37:51]execute_cgi json_proto POST (null) [11:37:51]execute_cgi path=json_proto method=POST [11:37:51]POST find Content-Length [11:37:51]Host: 172.17.41.195:8080 [11:37:51]Content-Length: 1209 [11:37:51]Content-Type: application/json [11:37:51] [11:37:51]POST finish read [11:37:51]Found Content-Length = 1209 [11:37:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507492\u000A16.05.2024 11:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.390 x 74.70\u000A\u0418\u0422\u041E\u0413: 1000.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:51]execute_script... [11:37:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507492\u000A16.05.2024 11:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.390 x 74.70\u000A\u0418\u0422\u041E\u0413: 1000.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:51]POST & json_proto [11:37:51]process_json_proto [11:37:51]json parsed OK: [11:37:51]protocol is kg_v1.0 [11:37:51]action value=print_text [11:37:51]process_action print_text [11:37:51]cmd_print_text [11:37:51]ExternCall_PrintAddStr [11:37:51]wPrintStart [11:37:51]Write to MH i2c: 01 00 00 B1 00 B1 [11:37:51]Write i2c OK [11:37:51]MH_I2C_Read... [11:37:51]Read from MH i2c: 01 [11:37:51]MH_I2C_Read... [11:37:51]Read from MH i2c: 01 07 00 [11:37:51]MH_I2C_Read... [11:37:51]Read from MH i2c: 01 07 00 B1 00 00 00 00 00 00 FF 0F C6 [11:37:51]RasterBufferAndPrint [11:37:51]line *****ТОВАРНЫЙ ЧЕК***** [11:37:51]line АЗС-91 [11:37:51]line Партнер нефть [11:37:51]line 02508201610067 [11:37:51]line Кассир : Пайзулдаева А. [11:37:51]line Счет N : (1)507492 [11:37:51]line 16.05.2024 11:20 [11:37:51]line ПРОДАЖА [11:37:51]line ТРК (МРК, ГНК): 21 [11:37:51]line Вид ГСМ : 2710194210 [11:37:51]line ДТ-К-5 [11:37:51]line 13.390 x 74.70 [11:37:51]line ИТОГ: 1000.23 [11:37:51]line Тип оплаты: Талоны: Топливная Карта [11:37:51]line 02750 [11:37:51]line ______________________ [11:37:51]line (подпись) [11:37:51]written 0, free lines is 4095 [11:37:51]Write to MH i2c: 01 00 00 C5 00 C5 [11:37:51]Write i2c OK [11:37:51]MH_I2C_Read... [11:37:51]Read from MH i2c: 01 [11:37:51]MH_I2C_Read... [11:37:51]Read from MH i2c: 01 07 00 [11:37:51]MH_I2C_Read... [11:37:51]Read from MH i2c: 01 07 00 C5 00 00 00 00 00 00 10 0E EA [11:37:51]RasterBufferAndPrint [11:37:51]line [11:37:51]line [11:37:51]line [11:37:51]line [11:37:51]line [11:37:51]written 0, free lines is 3601 [11:37:51]MH_Cut [11:37:51]Write to MH i2c: D1 01 00 CC 00 01 9E [11:37:51]Write i2c OK [11:37:51]MH_I2C_Read... [11:37:51]Read from MH i2c: D1 [11:37:51]MH_I2C_Read... [11:37:51]Read from MH i2c: D1 01 00 [11:37:51]MH_I2C_Read... [11:37:51]Read from MH i2c: D1 01 00 CC 00 00 9D [11:37:51]Write to MH i2c: 01 00 00 CD 00 CD [11:37:51]Write i2c OK [11:37:51]MH_I2C_Read... [11:37:51]*** Cut start [11:37:51]*** Purtial cut [11:37:51]*** CUTSNS_PIN = 0 [11:37:52]*** Stage 1: CUTSNS_PIN = 1 [11:37:53]Read from MH i2c: 01 [11:37:53]MH_I2C_Read... [11:37:53]*** Stop cut motor [11:37:53]*** Cut end [11:37:53]Read from MH i2c: 01 07 00 [11:37:53]MH_I2C_Read... [11:37:53]Read from MH i2c: 01 07 00 CD 00 00 00 00 00 00 FF 0F E2 [11:37:53]process_action print_text done [11:37:53]requested_data is exist [11:37:53]produce_requested_data [11:37:53]requested_item fm.sn is exist - process it [11:37:53]wFMCommunicate request_size=4 [11:37:53]MH_SAM_APDU [11:37:53]CAPDU: 80 11 00 00 [11:37:53]Write to MH i2c: E2 08 00 CE 00 80 11 00 00 00 00 00 00 48 [11:37:53]Write i2c OK [11:37:53]MH_I2C_Read... [11:37:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:53]Read from MH i2c: E2 [11:37:53]MH_I2C_Read... [11:37:53]Read from MH i2c: E2 17 00 [11:37:53]MH_I2C_Read... [11:37:53]Read from MH i2c: E2 17 00 CE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 9E [11:37:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:37:53]wFMCommunicate OK [11:37:53]requested_item fd.num is exist - process it [11:37:53]SAM_PROTO_GetFieldsCounters [11:37:53]wFMCommunicate request_size=4 [11:37:53]MH_SAM_APDU [11:37:53]CAPDU: 80 13 00 00 [11:37:53]Write to MH i2c: E2 08 00 CF 00 80 13 00 00 00 00 00 00 4B [11:37:53]Write i2c OK [11:37:53]MH_I2C_Read... [11:37:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:37:54]Read from MH i2c: E2 [11:37:54]MH_I2C_Read... [11:37:54]Read from MH i2c: E2 62 00 [11:37:54]MH_I2C_Read... [11:37:54]Read from MH i2c: E2 62 00 CF 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 82 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [11: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 82 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:37:54]wFMCommunicate OK [11:37:54]SAM_PROTO_GetFieldsCounters done [11:37:54]requested_item shift.num is exist - process it [11:37:54]requested_item shift.opened is exist - process it [11:37:54]req_shift_opened [11:37:54]FM_GetShiftState [11:37:54]SAM_PROTO_GetShiftState [11:37:54]wFMCommunicate request_size=4 [11:37:54]MH_SAM_APDU [11:37:54]CAPDU: 80 13 01 00 [11:37:54]Write to MH i2c: E2 08 00 D0 00 80 13 01 00 00 00 00 00 4D [11:37:54]Write i2c OK [11:37:54]MH_I2C_Read... [11:37:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:54]Read from MH i2c: E2 [11:37:54]MH_I2C_Read... [11:37:54]Read from MH i2c: E2 0E 00 [11:37:54]MH_I2C_Read... [11:37:54]Read from MH i2c: E2 0E 00 D0 00 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 F9 [11:37:54]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [11:37:54]wFMCommunicate OK [11:37:54]SAM_PROTO_GetShiftState done [11:37:54]FM_GetShiftState done [11:37:54]req_shift_opened done [11:37:54]requested_item shift.open_date is exist - process it [11:37:54]req_shift_open_date [11:37:54]req_shift_open_date done [11:37:54]produce_requested_data done [11:37:54]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67458,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [11:37:54]process_action_free print_text [11:37:54]json_value_free [11:37:54]json_value_free done [11:37:54]process_json_proto returns [11:37:54]Send response to host [11:37:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67458,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [11:37:54]free response buf [11:37:54]execute_script done [11:37:54]execute_script returns [11:37:54]free content buf [11:37:54]Sock 8.Close socket [11:37:54]Sock 8.Thread stoped [11:37:55]OFD Sender: No OFD packet to send [11:38:00]OFD Sender: No OFD packet to send [11:38:05]OFD Sender: No OFD packet to send [11:38:10]OFD Sender: No OFD packet to send [11:38:13]accept exits with 9 [11:38:13]New connection [11:38:13]New thread 3067039076 created [11:38:13]Thread 3067182436 joined [11:38:13]Waiting for new connection... [11:38:13] Sock 9.Parse request [11:38:13]Sock 9.Check first char [11:38:13]Sock 9.First char is OK [11:38:13]request: POST /json_proto HTTP/1.0 [11:38:13]Method: POST [11:38:13]URL: /json_proto [11:38:13]Method is POST - this is cgi request [11:38:13]url: /json_proto [11:38:13]query_string will be loaded in cgi processing [11:38:13]execute_cgi json_proto POST (null) [11:38:13]execute_cgi path=json_proto method=POST [11:38:13]POST find Content-Length [11:38:13]Host: 172.17.41.195:8080 [11:38:13]Content-Length: 677 [11:38:13]Content-Type: application/json [11:38:13] [11:38:13]POST finish read [11:38:13]Found Content-Length = 677 [11:38:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507493", "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.80, "quantity" : 5.990, "sum" : 400.13, "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:38:13]execute_script... [11:38: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)507493", "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.80, "quantity" : 5.990, "sum" : 400.13, "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:38:13]POST & json_proto [11:38:13]process_json_proto [11:38:13]json parsed OK: [11:38:13]protocol is kg_v1.0 [11:38:13]action value=close_receipt [11:38:13]process_action close_receipt [11:38:13]cmd_close_receipt [11:38:13]MH_GetDate [11:38:13]Write to MH i2c: F0 00 00 D1 00 C0 [11:38:13]Write i2c OK [11:38:13]MH_I2C_Read... [11:38:13]Read from MH i2c: F0 [11:38:13]MH_I2C_Read... [11:38:13]Read from MH i2c: F0 09 00 [11:38:13]MH_I2C_Read... [11:38:13]Read from MH i2c: F0 09 00 D1 00 00 26 F0 45 66 FC 21 6F 64 7A [11:38:13]GetLastDocTimeStamp 1715859298 [11:38:13]current date 1715859494 [11:38:13]FM_GetShiftState [11:38:13]SAM_PROTO_GetShiftState [11:38:13]wFMCommunicate request_size=4 [11:38:13]MH_SAM_APDU [11:38:13]CAPDU: 80 13 01 00 [11:38:13]Write to MH i2c: E2 08 00 D2 00 80 13 01 00 00 00 00 00 4F [11:38:13]Write i2c OK [11:38:13]MH_I2C_Read... [11:38:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:13]Read from MH i2c: E2 [11:38:13]MH_I2C_Read... [11:38:13]Read from MH i2c: E2 0E 00 [11:38:13]MH_I2C_Read... [11:38:13]Read from MH i2c: E2 0E 00 D2 00 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 FB [11:38:13]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [11:38:13]wFMCommunicate OK [11:38:13]SAM_PROTO_GetShiftState done [11:38:13]FM_GetShiftState done [11:38:13]opened in 1715818916 [11:38:13]opened+sec_in_day 1715905316 [11:38:13]quantity*price = 40013 [11:38:13]sum+1 = 40014 [11:38:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.49 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 57 16.05.2024 11:38 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67459 ФПД: 941555507602 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T113814&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67459&fm=941555507602&tin=02508201610067®Number=0000000000091845&sum=40000 [11:38:14]StoreToDocumentArchive [11:38:14]shift 357 fd 67459 [11:38:14]save to /storage/0357/doc_00067459 [11:38:14]save last doc name /storage/0357/doc_00067459 to /storage/kkm_last_doc_name [11:38:14]save OK [11:38:14]Clear old archive folders... [11:38:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:38:14]tlvbuf is 01780370 [11:38:14]SAM_PROTO_ClearQueue [11:38:14]wFMCommunicate request_size=4 [11:38:14]MH_SAM_APDU [11:38:14]CAPDU: 80 09 00 00 [11:38:14]Write to MH i2c: E2 08 00 DF 00 80 09 00 00 00 00 00 00 51 [11:38:14]Write i2c OK [11:38:14]MH_I2C_Read... [11:38:14]Read from MH i2c: E2 [11:38:14]MH_I2C_Read... [11:38:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:38:14]Read from MH i2c: E2 03 00 [11:38:14]MH_I2C_Read... [11:38:14]Read from MH i2c: E2 03 00 DF 00 00 90 00 53 [11:38:14]RAPDU: 90 00 [11:38:14]wFMCommunicate OK [11:38:14]SAM_PROTO_ClearQueue done [11:38:14]KKMCreateOFDPacket [11:38:14]OFDProtocolAddRootSTLVToBuf [11:38:14]FM_MakeSignedData [11:38:14]FM_MakeSignedData [11:38:14]SAM_PROTO_SignData [11:38:14]wFMCommunicate request_size=4 [11:38:14]MH_SAM_APDU [11:38:14]CAPDU: 80 0D 01 02 [11:38:14]Write to MH i2c: E2 08 00 E0 00 80 0D 01 02 00 00 00 00 59 [11:38:14]Write i2c OK [11:38:14]MH_I2C_Read... [11:38:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:38:15]Read from MH i2c: E2 [11:38:15]MH_I2C_Read... [11:38:15]Read from MH i2c: E2 03 00 [11:38:15]MH_I2C_Read... [11:38:15]Read from MH i2c: E2 03 00 E0 00 00 90 00 54 [11:38:15]RAPDU: 90 00 [11:38:15]wFMCommunicate OK [11:38:15]wFMCommunicate request_size=255 [11:38:15]MH_SAM_APDU [11:38: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 66 17 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4D 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 99 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 26 F0 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 83 07 01 00 35 04 06 00 00 [11:38:15]Write to MH i2c: E2 02 01 E1 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 66 17 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4D 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 99 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 26 F0 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 83 07 01 00 35 04 06 00 00 00 00 AF [11:38:15]Write i2c OK [11:38:15]MH_I2C_Read... [11:38:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:15]Read from MH i2c: E2 [11:38:15]MH_I2C_Read... [11:38:15]Read from MH i2c: E2 03 00 [11:38:15]MH_I2C_Read... [11:38:15]Read from MH i2c: E2 03 00 E1 00 00 90 00 55 [11:38:15]RAPDU: 90 00 [11:38:15]wFMCommunicate OK [11:38:15]wFMCommunicate request_size=10 [11:38:15]MH_SAM_APDU [11:38:15]CAPDU: 80 0D 02 02 05 DB 39 14 E1 92 [11:38:15]Write to MH i2c: E2 0D 00 E2 00 80 0D 02 02 05 00 DB 39 14 E1 92 00 00 01 [11:38:15]Write i2c OK [11:38:15]MH_I2C_Read... [11:38:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:15]Read from MH i2c: E2 [11:38:15]MH_I2C_Read... [11:38:15]Read from MH i2c: E2 03 00 [11:38:15]MH_I2C_Read... [11:38:15]Read from MH i2c: E2 03 00 E2 00 00 90 00 56 [11:38:15]RAPDU: 90 00 [11:38:15]wFMCommunicate OK [11:38:15]wFMCommunicate request_size=4 [11:38:15]MH_SAM_APDU [11:38:15]CAPDU: 80 0D 03 02 [11:38:15]Write to MH i2c: E2 08 00 E3 00 80 0D 03 02 00 00 00 00 5E [11:38:15]Write i2c OK [11:38:15]MH_I2C_Read... [11:38:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:38:15]Read from MH i2c: E2 [11:38:15]MH_I2C_Read... [11:38:15]Read from MH i2c: E2 0B 00 [11:38:15]MH_I2C_Read... [11:38:15]Read from MH i2c: E2 0B 00 E3 00 00 40 42 17 38 7A 4F 53 F5 90 00 41 [11:38:15]RAPDU: 40 42 17 38 7A 4F 53 F5 90 00 [11:38:15]wFMCommunicate OK [11:38:15]SAM_PROTO_SignData done [11:38:15]FM_MakeSignedData done [11:38:15]CreateOFDProtocolMessage [11:38:15]wFMCommunicate request_size=4 [11:38:15]MH_SAM_APDU [11:38:15]CAPDU: 80 11 00 00 [11:38:15]Write to MH i2c: E2 08 00 E4 00 80 11 00 00 00 00 00 00 5E [11:38:15]Write i2c OK [11:38:15]MH_I2C_Read... [11:38:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:15]Read from MH i2c: E2 [11:38:15]MH_I2C_Read... [11:38:15]Read from MH i2c: E2 17 00 [11:38:15]MH_I2C_Read... [11:38:15]Read from MH i2c: E2 17 00 E4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B4 [11:38:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:38:15]wFMCommunicate OK [11:38:15]CreateOFDProtocolMessage done [11:38:15]OFDSenderStorePacket 67459 [11:38:15]StoreOFDPacket docnum=67459 [11:38:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 4D 4F 07 01 AA D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 17 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4D 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 99 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 26 F0 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 83 07 01 00 35 04 06 00 00 DB 39 14 E1 92 40 42 17 38 7A 4F 53 F5 [11:38:15]CheckFolder [11:38:15]dirname=/storage/ofd_packets [11:38:15]CheckFolder done [11:38:15]ProducePacketName [11:38:15]name=ofd_packets/00067459 [11:38:15]NVStorageSaveData ofd_packets/00067459 [11:38:15]File name is /storage/ofd_packets/00067459 [11:38:15]Write 301 bytes [11:38:15]NVStorageSaveData done [11:38:15]OFDSenderStorePacket done [11:38:15]KKMCreateOFDPacket done [11:38:15]NVStorageSaveData kkm_last_timestamp [11:38:15]File name is /storage/kkm_last_timestamp [11:38:15]Write 4 bytes [11:38:15]NVStorageSaveData done [11:38:15]ExternCall_PrintAddStr [11:38:15]wPrintStart [11:38:15]Write to MH i2c: 01 00 00 E5 00 E5 [11:38:15]Write i2c OK [11:38:15]MH_I2C_Read... [11:38:15]Read from MH i2c: 01 [11:38:15]MH_I2C_Read... [11:38:15]Read from MH i2c: 01 07 00 [11:38:15]MH_I2C_Read... [11:38:15]Read from MH i2c: 01 07 00 E5 00 00 00 00 00 00 FF 0F FA [11:38:15]RasterBufferAndPrint [11:38:15]line Счет N : (1)507493 [11:38:15]line ИНН: 02508201610067 [11:38:15]line Контрольно-Кассовый Чек [11:38:15]line ПРОДАЖА [11:38:15]line ТРК (МРК, ГНК) : 43 [11:38:15]line Товар: 2710124130 [11:38:15]line Аи-92-К-5 [11:38:15]line 5.990 * 66.80 [11:38:15]line = 400.13 [11:38:15]line НДС 12% НСП 1% [11:38:15]line > о реализуемом товаре [11:38:15]line ОКРУГЛЕНИЕ: -0.13 [11:38:15]line ИТОГО: 400.00 [11:38:15]line Внесено: 400.00 [11:38:15]line СДАЧА: 0.00 [11:38:15]line НСП 1% : 3.54 [11:38:15]line НДС 12% : 42.49 [11:38:15]line Наличными: 400.00 [11:38:15]line Безнал.: 0.00 [11:38:15]line Место: АЗС № 91 "Партнер Нефть" [11:38:15]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:38:15]line СНО: Общий режим [11:38:15]line Чек 57 16.05.2024 11:38 [11:38:15]line Смена: 357 ФФД: 1.0 [11:38:15]line ЗНМ: 0300000119 [11:38:15]line РНМ: 0000000000091845 [11:38:15]line Версия ККМ: 001 [11:38:15]line ФМ: 0000000000871829 [11:38:15]line ФД: 67459 [11:38:15]line ФПД: 941555507602 [11:38:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T113814&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67459&fm=941555507602&tin=02508201610067®Number=0000000000091845&sum=40000 [11:38:15]written 0, free lines is 4095 [11:38:15]OFD Sender: Processing packet 67459 [packets to send 35, broken 34] [11:38:15]ProducePacketName [11:38:15]name=ofd_packets/00067459 [11:38:15]OFD Sender: To server: pG, [11:38:15]CommunicateWithHost lk.salyk.kg:30040 [11:38:15]ConnectInit lk.salyk.kg [11:38:15]Connected sock=10 [11:38:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 4D 4F 07 01 AA D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 17 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4D 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 99 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 26 F0 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 83 07 01 00 35 04 06 00 00 DB 39 14 E1 92 40 42 17 38 7A 4F 53 F5 [11:38:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 4B B5 47 00 CE 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 83 07 01 00 F4 03 04 00 01 98 45 66 B6 04 01 00 00 40 12 CE 60 73 7A 35 00 [11:38:16]CommunicateWithHost err = 0 [11:38:16]CheckOFDResponse [11:38:16]1017 (14) - 77093643461234 [11:38:16]1041 (16) - 0000000000871829 [11:38:16]1040 (4) - 67459 [11:38:16]1012 (4) - 16.05.2024 05:22 [11:38:16]1206 (1) - 0 [11:38:16]OFD Sender: Remove packet 67459 [11:38:16]ProducePacketName [11:38:16]name=ofd_packets/00067459 [11:38:16]NVStorageDeleteData [11:38:16]Write to MH i2c: 01 00 00 0F 01 10 [11:38:16]Write i2c OK [11:38:16]MH_I2C_Read... [11:38:16]Read from MH i2c: 01 [11:38:16]MH_I2C_Read... [11:38:16]Read from MH i2c: 01 07 00 [11:38:16]MH_I2C_Read... [11:38:16]Read from MH i2c: 01 07 00 0F 01 00 00 00 00 00 C8 0C EB [11:38:16]RasterBufferAndPrint [11:38:16]line [11:38:16]line [11:38:16]line [11:38:16]line [11:38:16]line [11:38:16]written 0, free lines is 3278 [11:38:16]MH_Cut [11:38:16]Write to MH i2c: D1 01 00 16 01 01 E9 [11:38:16]Write i2c OK [11:38:16]MH_I2C_Read... [11:38:16]Read from MH i2c: D1 [11:38:16]MH_I2C_Read... [11:38:16]Read from MH i2c: D1 01 00 [11:38:16]MH_I2C_Read... [11:38:16]Read from MH i2c: D1 01 00 16 01 00 E8 [11:38:16]Write to MH i2c: 01 00 00 17 01 18 [11:38:16]Write i2c OK [11:38:16]MH_I2C_Read... [11:38:16]OFD Sender: No OFD packet to send [11:38:17]*** Cut start [11:38:17]*** Purtial cut [11:38:17]*** Stage 1: CUTSNS_PIN = 1 [11:38:17]Read from MH i2c: 01 [11:38:17]MH_I2C_Read... [11:38:17]*** Stop cut motor [11:38:17]*** Cut end [11:38:17]Read from MH i2c: 01 07 00 [11:38:17]MH_I2C_Read... [11:38:17]Read from MH i2c: 01 07 00 17 01 00 00 00 00 00 FF 0F 2D [11:38:17]process_action close_receipt done [11:38:17]requested_data is exist [11:38:17]produce_requested_data [11:38:17]requested_item fm.sn is exist - process it [11:38:17]wFMCommunicate request_size=4 [11:38:17]MH_SAM_APDU [11:38:17]CAPDU: 80 11 00 00 [11:38:17]Write to MH i2c: E2 08 00 18 01 80 11 00 00 00 00 00 00 93 [11:38:17]Write i2c OK [11:38:17]MH_I2C_Read... [11:38:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:17]Read from MH i2c: E2 [11:38:17]MH_I2C_Read... [11:38:17]Read from MH i2c: E2 17 00 [11:38:17]MH_I2C_Read... [11:38:17]Read from MH i2c: E2 17 00 18 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E9 [11:38:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:38:17]wFMCommunicate OK [11:38:17]requested_item fd.num is exist - process it [11:38:17]SAM_PROTO_GetFieldsCounters [11:38:17]wFMCommunicate request_size=4 [11:38:17]MH_SAM_APDU [11:38:17]CAPDU: 80 13 00 00 [11:38:17]Write to MH i2c: E2 08 00 19 01 80 13 00 00 00 00 00 00 96 [11:38:17]Write i2c OK [11:38:17]MH_I2C_Read... [11:38:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:38:17]Read from MH i2c: E2 [11:38:17]MH_I2C_Read... [11:38:17]Read from MH i2c: E2 62 00 [11:38:17]MH_I2C_Read... [11:38:17]Read from MH i2c: E2 62 00 19 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 83 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [11:38: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 83 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:38:17]wFMCommunicate OK [11:38:17]SAM_PROTO_GetFieldsCounters done [11:38:17]requested_item shift.num is exist - process it [11:38:17]requested_item shift.opened is exist - process it [11:38:17]req_shift_opened [11:38:17]FM_GetShiftState [11:38:17]SAM_PROTO_GetShiftState [11:38:17]wFMCommunicate request_size=4 [11:38:17]MH_SAM_APDU [11:38:17]CAPDU: 80 13 01 00 [11:38:17]Write to MH i2c: E2 08 00 1A 01 80 13 01 00 00 00 00 00 98 [11:38:17]Write i2c OK [11:38:17]MH_I2C_Read... [11:38:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:17]Read from MH i2c: E2 [11:38:17]MH_I2C_Read... [11:38:17]Read from MH i2c: E2 0E 00 [11:38:17]MH_I2C_Read... [11:38:17]Read from MH i2c: E2 0E 00 1A 01 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 44 [11:38:17]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [11:38:17]wFMCommunicate OK [11:38:17]SAM_PROTO_GetShiftState done [11:38:17]FM_GetShiftState done [11:38:17]req_shift_opened done [11:38:17]requested_item shift.open_date is exist - process it [11:38:17]req_shift_open_date [11:38:17]req_shift_open_date done [11:38:17]produce_requested_data done [11:38:17]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67459,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [11:38:17]process_action_free close_receipt [11:38:17]json_value_free [11:38:17]json_value_free done [11:38:17]process_json_proto returns [11:38:17]Send response to host [11:38:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67459,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [11:38:17]free response buf [11:38:17]execute_script done [11:38:17]execute_script returns [11:38:17]free content buf [11:38:17]Sock 9.Close socket [11:38:17]Sock 9.Thread stoped [11:38:21]OFD Sender: No OFD packet to send [11:38:26]OFD Sender: No OFD packet to send [11:38:31]OFD Sender: No OFD packet to send [11:38:36]OFD Sender: No OFD packet to send [11:38:41]OFD Sender: No OFD packet to send [11:38:46]OFD Sender: No OFD packet to send [11:38:51]OFD Sender: No OFD packet to send [11:38:56]OFD Sender: No OFD packet to send [11:39:01]OFD Sender: No OFD packet to send [11:39:06]OFD Sender: No OFD packet to send [11:39:11]OFD Sender: No OFD packet to send [11:39:16]OFD Sender: No OFD packet to send [11:39:21]OFD Sender: No OFD packet to send [11:39:26]OFD Sender: No OFD packet to send [11:39:31]OFD Sender: No OFD packet to send [11:39:36]OFD Sender: No OFD packet to send [11:39:41]OFD Sender: No OFD packet to send [11:39:46]OFD Sender: No OFD packet to send [11:39: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:41]OFD Sender: No OFD packet to send [11:41:46]OFD Sender: No OFD packet to send [11:41:51]OFD Sender: No OFD packet to send [11:41:56]OFD Sender: No OFD packet to send [11:42:01]OFD Sender: No OFD packet to send [11:42:06]OFD Sender: No OFD packet to send [11:42:11]OFD Sender: No OFD packet to send [11:42:16]OFD Sender: No OFD packet to send [11:42:21]OFD Sender: No OFD packet to send [11:42:26]OFD Sender: No OFD packet to send [11:42:31]OFD Sender: No OFD packet to send [11:42:36]OFD Sender: No OFD packet to send [11:42:41]OFD Sender: No OFD packet to send [11:42:46]OFD Sender: No OFD packet to send [11:42:51]OFD Sender: No OFD packet to send [11:42:56]OFD Sender: No OFD packet to send [11:43:01]OFD Sender: No OFD packet to send [11:43:06]OFD Sender: No OFD packet to send [11:43:11]OFD Sender: No OFD packet to send [11:43:16]OFD Sender: No OFD packet to send [11:43:21]OFD Sender: No OFD packet to send [11:43:26]OFD Sender: No OFD packet to send [11:43:31]OFD Sender: No OFD packet to send [11:43:36]OFD Sender: No OFD packet to send [11:43:41]OFD Sender: No OFD packet to send [11:43:46]OFD Sender: No OFD packet to send [11:43:51]OFD Sender: No OFD packet to send [11:43:56]OFD Sender: No OFD packet to send [11:44:01]OFD Sender: No OFD packet to send [11:44:06]OFD Sender: No OFD packet to send [11:44:11]OFD Sender: No OFD packet to send [11:44:16]OFD Sender: No OFD packet to send [11:44:21]OFD Sender: No OFD packet to send [11:44:26]OFD Sender: No OFD packet to send [11:44:31]OFD Sender: No OFD packet to send [11:44:36]OFD Sender: No OFD packet to send [11:44:41]OFD Sender: No OFD packet to send [11:44:46]OFD Sender: No OFD packet to send [11:44:51]OFD Sender: No OFD packet to send [11:44:56]OFD Sender: No OFD packet to send [11:45:01]OFD Sender: No OFD packet to send [11:45:06]OFD Sender: No OFD packet to send [11:45:11]OFD Sender: No OFD packet to send [11:45:16]OFD Sender: No OFD packet to send [11:45:21]OFD Sender: No OFD packet to send [11:45:26]OFD Sender: No OFD packet to send [11:45:31]OFD Sender: No OFD packet to send [11:45:36]OFD Sender: No OFD packet to send [11:45:41]OFD Sender: No OFD packet to send [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:32]OFD Sender: No OFD packet to send [11:46:37]OFD Sender: No OFD packet to send [11:46:42]OFD Sender: No OFD packet to send [11:46:47]OFD Sender: No OFD packet to send [11:46:52]OFD Sender: No OFD packet to send [11:46:57]OFD Sender: No OFD packet to send [11:47:02]OFD Sender: No OFD packet to send [11:47:07]OFD Sender: No OFD packet to send [11:47:12]OFD Sender: No OFD packet to send [11:47:17]OFD Sender: No OFD packet to send [11:47:22]OFD Sender: No OFD packet to send [11:47:27]OFD Sender: No OFD packet to send [11:47:32]OFD Sender: No OFD packet to send [11:47:37]OFD Sender: No OFD packet to send [11:47:42]OFD Sender: No OFD packet to send [11:47:47]OFD Sender: No OFD packet to send [11:47:52]OFD Sender: No OFD packet to send [11:47:57]OFD Sender: No OFD packet to send [11:48:02]OFD Sender: No OFD packet to send [11:48:07]OFD Sender: No OFD packet to send [11:48:12]OFD Sender: No OFD packet to send [11:48:17]OFD Sender: No OFD packet to send [11:48:22]OFD Sender: No OFD packet to send [11:48:27]OFD Sender: No OFD packet to send [11:48:32]OFD Sender: No OFD packet to send [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:48]accept exits with 8 [11:48:48]New connection [11:48:48]New thread 3067182436 created [11:48:48]Thread 3067039076 joined [11:48:48]Waiting for new connection... [11:48:48] Sock 8.Parse request [11:48:48]Sock 8.Check first char [11:48:48]Sock 8.First char is OK [11:48:48]request: POST /json_proto HTTP/1.0 [11:48:48]Method: POST [11:48:48]URL: /json_proto [11:48:48]Method is POST - this is cgi request [11:48:48]url: /json_proto [11:48:48]query_string will be loaded in cgi processing [11:48:48]execute_cgi json_proto POST (null) [11:48:48]execute_cgi path=json_proto method=POST [11:48:48]POST find Content-Length [11:48:48]Host: 172.17.41.195:8080 [11:48:48]Content-Length: 1217 [11:48:48]Content-Type: application/json [11:48:48] [11:48:48]POST finish read [11:48:48]Found Content-Length = 1217 [11:48:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507494\u000A16.05.2024 11:31\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 30.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2241.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3972716\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:48]execute_script... [11:48:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507494\u000A16.05.2024 11:31\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 30.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2241.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3972716\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:48]POST & json_proto [11:48:48]process_json_proto [11:48:48]json parsed OK: [11:48:48]protocol is kg_v1.0 [11:48:48]action value=print_text [11:48:48]process_action print_text [11:48:48]cmd_print_text [11:48:48]ExternCall_PrintAddStr [11:48:48]wPrintStart [11:48:48]Write to MH i2c: 01 00 00 1B 01 1C [11:48:48]Write i2c OK [11:48:48]MH_I2C_Read... [11:48:48]Read from MH i2c: 01 [11:48:48]MH_I2C_Read... [11:48:48]Read from MH i2c: 01 07 00 [11:48:48]MH_I2C_Read... [11:48:48]Read from MH i2c: 01 07 00 1B 01 00 00 00 00 00 FF 0F 31 [11:48:48]RasterBufferAndPrint [11:48:48]line *****ТОВАРНЫЙ ЧЕК***** [11:48:48]line АЗС-91 [11:48:48]line Партнер нефть [11:48:48]line 02508201610067 [11:48:48]line Кассир : Пайзулдаева А. [11:48:48]line Счет N : (1)507494 [11:48:48]line 16.05.2024 11:31 [11:48:48]line ПРОДАЖА [11:48:48]line ТРК (МРК, ГНК): 11 [11:48:48]line Вид ГСМ : 2710194210 [11:48:48]line ДТ-К-5 [11:48:48]line 30.000 x 74.70 [11:48:48]line ИТОГ: 2241.00 [11:48:48]line Тип оплаты: Талоны: Топливные Талоны [11:48:48]line 3972716 [11:48:48]line ______________________ [11:48:48]line (подпись) [11:48:48]written 0, free lines is 4095 [11:48:48]Write to MH i2c: 01 00 00 2F 01 30 [11:48:48]Write i2c OK [11:48:48]MH_I2C_Read... [11:48:48]Read from MH i2c: 01 [11:48:48]MH_I2C_Read... [11:48:48]Read from MH i2c: 01 07 00 [11:48:48]MH_I2C_Read... [11:48:48]Read from MH i2c: 01 07 00 2F 01 00 00 00 00 00 10 0E 55 [11:48:48]RasterBufferAndPrint [11:48:48]line [11:48:48]line [11:48:48]line [11:48:48]line [11:48:48]line [11:48:48]written 0, free lines is 3601 [11:48:48]MH_Cut [11:48:48]Write to MH i2c: D1 01 00 36 01 01 09 [11:48:48]Write i2c OK [11:48:48]MH_I2C_Read... [11:48:48]Read from MH i2c: D1 [11:48:48]MH_I2C_Read... [11:48:48]Read from MH i2c: D1 01 00 [11:48:48]MH_I2C_Read... [11:48:48]Read from MH i2c: D1 01 00 36 01 00 08 [11:48:48]Write to MH i2c: 01 00 00 37 01 38 [11:48:48]Write i2c OK [11:48:48]MH_I2C_Read... [11:48:49]*** Cut start [11:48:49]*** Purtial cut [11:48:49]*** CUTSNS_PIN = 0 [11:48:49]*** Stage 1: CUTSNS_PIN = 1 [11:48:51]Read from MH i2c: 01 [11:48:51]MH_I2C_Read... [11:48:51]*** Stop cut motor [11:48:51]*** Cut end [11:48:51]Read from MH i2c: 01 07 00 [11:48:51]MH_I2C_Read... [11:48:51]Read from MH i2c: 01 07 00 37 01 00 00 00 00 00 FF 0F 4D [11:48:51]process_action print_text done [11:48:51]requested_data is exist [11:48:51]produce_requested_data [11:48:51]requested_item fm.sn is exist - process it [11:48:51]wFMCommunicate request_size=4 [11:48:51]MH_SAM_APDU [11:48:51]CAPDU: 80 11 00 00 [11:48:51]Write to MH i2c: E2 08 00 38 01 80 11 00 00 00 00 00 00 B3 [11:48:51]Write i2c OK [11:48:51]MH_I2C_Read... [11:48:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:51]Read from MH i2c: E2 [11:48:51]MH_I2C_Read... [11:48:51]Read from MH i2c: E2 17 00 [11:48:51]MH_I2C_Read... [11:48:51]Read from MH i2c: E2 17 00 38 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 09 [11:48:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:48:51]wFMCommunicate OK [11:48:51]requested_item fd.num is exist - process it [11:48:51]SAM_PROTO_GetFieldsCounters [11:48:51]wFMCommunicate request_size=4 [11:48:51]MH_SAM_APDU [11:48:51]CAPDU: 80 13 00 00 [11:48:51]Write to MH i2c: E2 08 00 39 01 80 13 00 00 00 00 00 00 B6 [11:48:51]Write i2c OK [11:48:51]MH_I2C_Read... [11:48:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:51]Read from MH i2c: E2 [11:48:51]MH_I2C_Read... [11:48:51]Read from MH i2c: E2 62 00 [11:48:51]MH_I2C_Read... [11:48:51]Read from MH i2c: E2 62 00 39 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 83 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [11:48: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 83 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:48:51]wFMCommunicate OK [11:48:51]SAM_PROTO_GetFieldsCounters done [11:48:51]requested_item shift.num is exist - process it [11:48:51]requested_item shift.opened is exist - process it [11:48:51]req_shift_opened [11:48:51]FM_GetShiftState [11:48:51]SAM_PROTO_GetShiftState [11:48:51]wFMCommunicate request_size=4 [11:48:51]MH_SAM_APDU [11:48:51]CAPDU: 80 13 01 00 [11:48:51]Write to MH i2c: E2 08 00 3A 01 80 13 01 00 00 00 00 00 B8 [11:48:51]Write i2c OK [11:48:51]MH_I2C_Read... [11:48:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:51]Read from MH i2c: E2 [11:48:51]MH_I2C_Read... [11:48:51]Read from MH i2c: E2 0E 00 [11:48:51]MH_I2C_Read... [11:48:51]Read from MH i2c: E2 0E 00 3A 01 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 64 [11:48:51]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [11:48:51]wFMCommunicate OK [11:48:51]SAM_PROTO_GetShiftState done [11:48:51]FM_GetShiftState done [11:48:51]req_shift_opened done [11:48:51]requested_item shift.open_date is exist - process it [11:48:51]req_shift_open_date [11:48:51]req_shift_open_date done [11:48:51]produce_requested_data done [11:48:51]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67459,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [11:48:51]process_action_free print_text [11:48:51]json_value_free [11:48:51]json_value_free done [11:48:51]process_json_proto returns [11:48:51]Send response to host [11:48:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67459,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [11:48:51]free response buf [11:48:51]execute_script done [11:48:51]execute_script returns [11:48:51]free content buf [11:48:51]Sock 8.Close socket [11:48:51]Sock 8.Thread stoped [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:06]accept exits with 9 [11:49:06]New connection [11:49:06]New thread 3067039076 created [11:49:06]Thread 3067182436 joined [11:49:06]Waiting for new connection... [11:49:06] Sock 9.Parse request [11:49:06]Sock 9.Check first char [11:49:06]Sock 9.First char is OK [11:49:06]request: POST /json_proto HTTP/1.0 [11:49:06]Method: POST [11:49:06]URL: /json_proto [11:49:06]Method is POST - this is cgi request [11:49:06]url: /json_proto [11:49:06]query_string will be loaded in cgi processing [11:49:06]execute_cgi json_proto POST (null) [11:49:06]execute_cgi path=json_proto method=POST [11:49:06]POST find Content-Length [11:49:06]Host: 172.17.41.195:8080 [11:49:06]Content-Length: 1209 [11:49:06]Content-Type: application/json [11:49:06] [11:49:06]POST finish read [11:49:06]Found Content-Length = 1209 [11:49:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507495\u000A16.05.2024 11:31\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 15.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1120.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:06]execute_script... [11:49:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507495\u000A16.05.2024 11:31\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 15.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1120.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:06]POST & json_proto [11:49:06]process_json_proto [11:49:06]json parsed OK: [11:49:06]protocol is kg_v1.0 [11:49:06]action value=print_text [11:49:06]process_action print_text [11:49:06]cmd_print_text [11:49:06]ExternCall_PrintAddStr [11:49:06]wPrintStart [11:49:06]Write to MH i2c: 01 00 00 3B 01 3C [11:49:06]Write i2c OK [11:49:06]MH_I2C_Read... [11:49:06]Read from MH i2c: 01 [11:49:06]MH_I2C_Read... [11:49:06]Read from MH i2c: 01 07 00 [11:49:06]MH_I2C_Read... [11:49:06]Read from MH i2c: 01 07 00 3B 01 00 00 00 00 00 FF 0F 51 [11:49:06]RasterBufferAndPrint [11:49:06]line *****ТОВАРНЫЙ ЧЕК***** [11:49:06]line АЗС-91 [11:49:06]line Партнер нефть [11:49:06]line 02508201610067 [11:49:06]line Кассир : Пайзулдаева А. [11:49:06]line Счет N : (1)507495 [11:49:06]line 16.05.2024 11:31 [11:49:06]line ПРОДАЖА [11:49:06]line ТРК (МРК, ГНК): 21 [11:49:06]line Вид ГСМ : 2710194210 [11:49:06]line ДТ-К-5 [11:49:06]line 15.000 x 74.70 [11:49:06]line ИТОГ: 1120.50 [11:49:06]line Тип оплаты: Талоны: Топливная Карта [11:49:06]line 02750 [11:49:06]line ______________________ [11:49:06]line (подпись) [11:49:06]written 0, free lines is 4095 [11:49:06]Write to MH i2c: 01 00 00 4F 01 50 [11:49:06]Write i2c OK [11:49:06]MH_I2C_Read... [11:49:06]Read from MH i2c: 01 [11:49:06]MH_I2C_Read... [11:49:06]Read from MH i2c: 01 07 00 [11:49:06]MH_I2C_Read... [11:49:06]Read from MH i2c: 01 07 00 4F 01 00 00 00 00 00 0F 0E 74 [11:49:06]RasterBufferAndPrint [11:49:06]line [11:49:06]line [11:49:06]line [11:49:06]line [11:49:06]line [11:49:07]written 0, free lines is 3601 [11:49:07]MH_Cut [11:49:07]Write to MH i2c: D1 01 00 56 01 01 29 [11:49:07]Write i2c OK [11:49:07]MH_I2C_Read... [11:49:07]Read from MH i2c: D1 [11:49:07]MH_I2C_Read... [11:49:07]Read from MH i2c: D1 01 00 [11:49:07]MH_I2C_Read... [11:49:07]Read from MH i2c: D1 01 00 56 01 00 28 [11:49:07]Write to MH i2c: 01 00 00 57 01 58 [11:49:07]Write i2c OK [11:49:07]MH_I2C_Read... [11:49:07]OFD Sender: No OFD packet to send [11:49:07]*** Cut start [11:49:07]*** Purtial cut [11:49:07]*** Stage 1: CUTSNS_PIN = 1 [11:49:07]Read from MH i2c: 01 [11:49:07]MH_I2C_Read... [11:49:07]*** Stop cut motor [11:49:07]*** Cut end [11:49:07]Read from MH i2c: 01 07 00 [11:49:07]MH_I2C_Read... [11:49:07]Read from MH i2c: 01 07 00 57 01 00 00 00 00 00 FF 0F 6D [11:49:07]process_action print_text done [11:49:07]requested_data is exist [11:49:07]produce_requested_data [11:49:07]requested_item fm.sn is exist - process it [11:49:07]wFMCommunicate request_size=4 [11:49:07]MH_SAM_APDU [11:49:07]CAPDU: 80 11 00 00 [11:49:07]Write to MH i2c: E2 08 00 58 01 80 11 00 00 00 00 00 00 D3 [11:49:07]Write i2c OK [11:49:07]MH_I2C_Read... [11:49:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:07]Read from MH i2c: E2 [11:49:07]MH_I2C_Read... [11:49:07]Read from MH i2c: E2 17 00 [11:49:07]MH_I2C_Read... [11:49:07]Read from MH i2c: E2 17 00 58 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 29 [11:49:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:49:07]wFMCommunicate OK [11:49:07]requested_item fd.num is exist - process it [11:49:07]SAM_PROTO_GetFieldsCounters [11:49:07]wFMCommunicate request_size=4 [11:49:07]MH_SAM_APDU [11:49:07]CAPDU: 80 13 00 00 [11:49:07]Write to MH i2c: E2 08 00 59 01 80 13 00 00 00 00 00 00 D6 [11:49:07]Write i2c OK [11:49:07]MH_I2C_Read... [11:49:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:49:08]Read from MH i2c: E2 [11:49:08]MH_I2C_Read... [11:49:08]Read from MH i2c: E2 62 00 [11:49:08]MH_I2C_Read... [11:49:08]Read from MH i2c: E2 62 00 59 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 83 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [11:49: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 83 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:49:08]wFMCommunicate OK [11:49:08]SAM_PROTO_GetFieldsCounters done [11:49:08]requested_item shift.num is exist - process it [11:49:08]requested_item shift.opened is exist - process it [11:49:08]req_shift_opened [11:49:08]FM_GetShiftState [11:49:08]SAM_PROTO_GetShiftState [11:49:08]wFMCommunicate request_size=4 [11:49:08]MH_SAM_APDU [11:49:08]CAPDU: 80 13 01 00 [11:49:08]Write to MH i2c: E2 08 00 5A 01 80 13 01 00 00 00 00 00 D8 [11:49:08]Write i2c OK [11:49:08]MH_I2C_Read... [11:49:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:08]Read from MH i2c: E2 [11:49:08]MH_I2C_Read... [11:49:08]Read from MH i2c: E2 0E 00 [11:49:08]MH_I2C_Read... [11:49:08]Read from MH i2c: E2 0E 00 5A 01 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 84 [11:49:08]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [11:49:08]wFMCommunicate OK [11:49:08]SAM_PROTO_GetShiftState done [11:49:08]FM_GetShiftState done [11:49:08]req_shift_opened done [11:49:08]requested_item shift.open_date is exist - process it [11:49:08]req_shift_open_date [11:49:08]req_shift_open_date done [11:49:08]produce_requested_data done [11:49:08]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67459,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [11:49:08]process_action_free print_text [11:49:08]json_value_free [11:49:08]json_value_free done [11:49:08]process_json_proto returns [11:49:08]Send response to host [11:49:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67459,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [11:49:08]free response buf [11:49:08]execute_script done [11:49:08]execute_script returns [11:49:08]free content buf [11:49:08]Sock 9.Close socket [11:49:08]Sock 9.Thread stoped [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:21]accept exits with 8 [11:50:21]New connection [11:50:21]New thread 3067182436 created [11:50:21]Thread 3067039076 joined [11:50:21]Waiting for new connection... [11:50:21] Sock 8.Parse request [11:50:21]Sock 8.Check first char [11:50:21]Sock 8.First char is OK [11:50:21]request: POST /json_proto HTTP/1.0 [11:50:21]Method: POST [11:50:21]URL: /json_proto [11:50:21]Method is POST - this is cgi request [11:50:21]url: /json_proto [11:50:21]query_string will be loaded in cgi processing [11:50:21]execute_cgi json_proto POST (null) [11:50:21]execute_cgi path=json_proto method=POST [11:50:21]POST find Content-Length [11:50:21]Host: 172.17.41.195:8080 [11:50:21]Content-Length: 1209 [11:50:21]Content-Type: application/json [11:50:21] [11:50:21]POST finish read [11:50:21]Found Content-Length = 1209 [11:50:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507497\u000A16.05.2024 11:32\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 15.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1120.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:21]execute_script... [11:50:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507497\u000A16.05.2024 11:32\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 15.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1120.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:21]POST & json_proto [11:50:21]process_json_proto [11:50:21]json parsed OK: [11:50:21]protocol is kg_v1.0 [11:50:21]action value=print_text [11:50:21]process_action print_text [11:50:21]cmd_print_text [11:50:21]ExternCall_PrintAddStr [11:50:21]wPrintStart [11:50:21]Write to MH i2c: 01 00 00 5B 01 5C [11:50:21]Write i2c OK [11:50:21]MH_I2C_Read... [11:50:21]Read from MH i2c: 01 [11:50:21]MH_I2C_Read... [11:50:21]Read from MH i2c: 01 07 00 [11:50:21]MH_I2C_Read... [11:50:21]Read from MH i2c: 01 07 00 5B 01 00 00 00 00 00 FF 0F 71 [11:50:21]RasterBufferAndPrint [11:50:21]line *****ТОВАРНЫЙ ЧЕК***** [11:50:21]line АЗС-91 [11:50:21]line Партнер нефть [11:50:21]line 02508201610067 [11:50:21]line Кассир : Пайзулдаева А. [11:50:21]line Счет N : (1)507497 [11:50:21]line 16.05.2024 11:32 [11:50:21]line ПРОДАЖА [11:50:21]line ТРК (МРК, ГНК): 31 [11:50:21]line Вид ГСМ : 2710194210 [11:50:21]line ДТ-К-5 [11:50:21]line 15.000 x 74.70 [11:50:21]line ИТОГ: 1120.50 [11:50:21]line Тип оплаты: Талоны: Топливная Карта [11:50:21]line 02750 [11:50:21]line ______________________ [11:50:21]line (подпись) [11:50:21]written 0, free lines is 4095 [11:50:21]Write to MH i2c: 01 00 00 6F 01 70 [11:50:21]Write i2c OK [11:50:21]MH_I2C_Read... [11:50:21]Read from MH i2c: 01 [11:50:21]MH_I2C_Read... [11:50:21]Read from MH i2c: 01 07 00 [11:50:21]MH_I2C_Read... [11:50:21]Read from MH i2c: 01 07 00 6F 01 00 00 00 00 00 0F 0E 94 [11:50:21]RasterBufferAndPrint [11:50:21]line [11:50:21]line [11:50:21]line [11:50:21]line [11:50:21]line [11:50:21]written 0, free lines is 3601 [11:50:21]MH_Cut [11:50:21]Write to MH i2c: D1 01 00 76 01 01 49 [11:50:21]Write i2c OK [11:50:21]MH_I2C_Read... [11:50:21]Read from MH i2c: D1 [11:50:21]MH_I2C_Read... [11:50:21]Read from MH i2c: D1 01 00 [11:50:21]MH_I2C_Read... [11:50:21]Read from MH i2c: D1 01 00 76 01 00 48 [11:50:21]Write to MH i2c: 01 00 00 77 01 78 [11:50:21]Write i2c OK [11:50:21]MH_I2C_Read... [11:50:22]OFD Sender: No OFD packet to send [11:50:22]*** Cut start [11:50:22]*** Purtial cut [11:50:22]*** CUTSNS_PIN = 0 [11:50:22]*** Stage 1: CUTSNS_PIN = 1 [11:50:24]Read from MH i2c: 01 [11:50:24]MH_I2C_Read... [11:50:24]*** Stop cut motor [11:50:24]*** Cut end [11:50:24]Read from MH i2c: 01 07 00 [11:50:24]MH_I2C_Read... [11:50:24]Read from MH i2c: 01 07 00 77 01 00 00 00 00 00 FF 0F 8D [11:50:24]process_action print_text done [11:50:24]requested_data is exist [11:50:24]produce_requested_data [11:50:24]requested_item fm.sn is exist - process it [11:50:24]wFMCommunicate request_size=4 [11:50:24]MH_SAM_APDU [11:50:24]CAPDU: 80 11 00 00 [11:50:24]Write to MH i2c: E2 08 00 78 01 80 11 00 00 00 00 00 00 F3 [11:50:24]Write i2c OK [11:50:24]MH_I2C_Read... [11:50:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:24]Read from MH i2c: E2 [11:50:24]MH_I2C_Read... [11:50:24]Read from MH i2c: E2 17 00 [11:50:24]MH_I2C_Read... [11:50:24]Read from MH i2c: E2 17 00 78 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 49 [11:50:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:50:24]wFMCommunicate OK [11:50:24]requested_item fd.num is exist - process it [11:50:24]SAM_PROTO_GetFieldsCounters [11:50:24]wFMCommunicate request_size=4 [11:50:24]MH_SAM_APDU [11:50:24]CAPDU: 80 13 00 00 [11:50:24]Write to MH i2c: E2 08 00 79 01 80 13 00 00 00 00 00 00 F6 [11:50:24]Write i2c OK [11:50:24]MH_I2C_Read... [11:50:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:50:24]Read from MH i2c: E2 [11:50:24]MH_I2C_Read... [11:50:24]Read from MH i2c: E2 62 00 [11:50:24]MH_I2C_Read... [11:50:24]Read from MH i2c: E2 62 00 79 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 83 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [11:50: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 83 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:50:24]wFMCommunicate OK [11:50:24]SAM_PROTO_GetFieldsCounters done [11:50:24]requested_item shift.num is exist - process it [11:50:24]requested_item shift.opened is exist - process it [11:50:24]req_shift_opened [11:50:24]FM_GetShiftState [11:50:24]SAM_PROTO_GetShiftState [11:50:24]wFMCommunicate request_size=4 [11:50:24]MH_SAM_APDU [11:50:24]CAPDU: 80 13 01 00 [11:50:24]Write to MH i2c: E2 08 00 7A 01 80 13 01 00 00 00 00 00 F8 [11:50:24]Write i2c OK [11:50:24]MH_I2C_Read... [11:50:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:24]Read from MH i2c: E2 [11:50:24]MH_I2C_Read... [11:50:24]Read from MH i2c: E2 0E 00 [11:50:24]MH_I2C_Read... [11:50:24]Read from MH i2c: E2 0E 00 7A 01 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 A4 [11:50:24]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [11:50:24]wFMCommunicate OK [11:50:24]SAM_PROTO_GetShiftState done [11:50:24]FM_GetShiftState done [11:50:24]req_shift_opened done [11:50:24]requested_item shift.open_date is exist - process it [11:50:24]req_shift_open_date [11:50:24]req_shift_open_date done [11:50:24]produce_requested_data done [11:50:24]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67459,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [11:50:24]process_action_free print_text [11:50:24]json_value_free [11:50:24]json_value_free done [11:50:24]process_json_proto returns [11:50:24]Send response to host [11:50:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67459,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [11:50:24]free response buf [11:50:24]execute_script done [11:50:24]execute_script returns [11:50:24]free content buf [11:50:24]Sock 8.Close socket [11:50:24]Sock 8.Thread stoped [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:33]accept exits with 9 [11:51:33]New connection [11:51:33]New thread 3067039076 created [11:51:33]Thread 3067182436 joined [11:51:33]Waiting for new connection... [11:51:33] Sock 9.Parse request [11:51:33]Sock 9.Check first char [11:51:33]Sock 9.First char is OK [11:51:33]request: POST /json_proto HTTP/1.0 [11:51:33]Method: POST [11:51:33]URL: /json_proto [11:51:33]Method is POST - this is cgi request [11:51:33]url: /json_proto [11:51:33]query_string will be loaded in cgi processing [11:51:33]execute_cgi json_proto POST (null) [11:51:33]execute_cgi path=json_proto method=POST [11:51:33]POST find Content-Length [11:51:33]Host: 172.17.41.195:8080 [11:51:33]Content-Length: 1209 [11:51:33]Content-Type: application/json [11:51:33] [11:51:33]POST finish read [11:51:33]Found Content-Length = 1209 [11:51:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507496\u000A16.05.2024 11:34\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 40.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2988.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:33]execute_script... [11:51:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507496\u000A16.05.2024 11:34\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 40.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2988.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:33]POST & json_proto [11:51:33]process_json_proto [11:51:33]json parsed OK: [11:51:33]protocol is kg_v1.0 [11:51:33]action value=print_text [11:51:33]process_action print_text [11:51:33]cmd_print_text [11:51:33]ExternCall_PrintAddStr [11:51:33]wPrintStart [11:51:33]Write to MH i2c: 01 00 00 7B 01 7C [11:51:33]Write i2c OK [11:51:33]MH_I2C_Read... [11:51:33]Read from MH i2c: 01 [11:51:33]MH_I2C_Read... [11:51:33]Read from MH i2c: 01 07 00 [11:51:33]MH_I2C_Read... [11:51:33]Read from MH i2c: 01 07 00 7B 01 00 00 00 00 00 FF 0F 91 [11:51:33]RasterBufferAndPrint [11:51:33]line *****ТОВАРНЫЙ ЧЕК***** [11:51:33]line АЗС-91 [11:51:33]line Партнер нефть [11:51:33]line 02508201610067 [11:51:33]line Кассир : Пайзулдаева А. [11:51:33]line Счет N : (1)507496 [11:51:33]line 16.05.2024 11:34 [11:51:33]line ПРОДАЖА [11:51:33]line ТРК (МРК, ГНК): 11 [11:51:33]line Вид ГСМ : 2710194210 [11:51:33]line ДТ-К-5 [11:51:33]line 40.000 x 74.70 [11:51:33]line ИТОГ: 2988.00 [11:51:33]line Тип оплаты: Талоны: Топливная Карта [11:51:33]line 02750 [11:51:33]line ______________________ [11:51:33]line (подпись) [11:51:33]written 0, free lines is 4095 [11:51:33]Write to MH i2c: 01 00 00 8F 01 90 [11:51:33]Write i2c OK [11:51:33]MH_I2C_Read... [11:51:33]Read from MH i2c: 01 [11:51:33]MH_I2C_Read... [11:51:33]Read from MH i2c: 01 07 00 [11:51:33]MH_I2C_Read... [11:51:33]Read from MH i2c: 01 07 00 8F 01 00 00 00 00 00 10 0E B5 [11:51:33]RasterBufferAndPrint [11:51:33]line [11:51:33]line [11:51:33]line [11:51:33]line [11:51:33]line [11:51:33]written 0, free lines is 3602 [11:51:33]MH_Cut [11:51:33]Write to MH i2c: D1 01 00 96 01 01 69 [11:51:33]Write i2c OK [11:51:33]MH_I2C_Read... [11:51:33]Read from MH i2c: D1 [11:51:33]MH_I2C_Read... [11:51:33]Read from MH i2c: D1 01 00 [11:51:33]MH_I2C_Read... [11:51:33]Read from MH i2c: D1 01 00 96 01 00 68 [11:51:33]Write to MH i2c: 01 00 00 97 01 98 [11:51:33]Write i2c OK [11:51:33]MH_I2C_Read... [11:51:34]*** Cut start [11:51:34]*** Purtial cut [11:51:34]*** Stage 1: CUTSNS_PIN = 1 [11:51:34]Read from MH i2c: 01 [11:51:34]MH_I2C_Read... [11:51:34]*** Stop cut motor [11:51:34]*** Cut end [11:51:34]Read from MH i2c: 01 07 00 [11:51:34]MH_I2C_Read... [11:51:34]Read from MH i2c: 01 07 00 97 01 00 00 00 00 00 FF 0F AD [11:51:34]process_action print_text done [11:51:34]requested_data is exist [11:51:34]produce_requested_data [11:51:34]requested_item fm.sn is exist - process it [11:51:34]wFMCommunicate request_size=4 [11:51:34]MH_SAM_APDU [11:51:34]CAPDU: 80 11 00 00 [11:51:34]Write to MH i2c: E2 08 00 98 01 80 11 00 00 00 00 00 00 13 [11:51:34]Write i2c OK [11:51:34]MH_I2C_Read... [11:51:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:34]Read from MH i2c: E2 [11:51:34]MH_I2C_Read... [11:51:34]Read from MH i2c: E2 17 00 [11:51:34]MH_I2C_Read... [11:51:34]Read from MH i2c: E2 17 00 98 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 69 [11:51:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:51:34]wFMCommunicate OK [11:51:34]requested_item fd.num is exist - process it [11:51:34]SAM_PROTO_GetFieldsCounters [11:51:34]wFMCommunicate request_size=4 [11:51:34]MH_SAM_APDU [11:51:34]CAPDU: 80 13 00 00 [11:51:34]Write to MH i2c: E2 08 00 99 01 80 13 00 00 00 00 00 00 16 [11:51:34]Write i2c OK [11:51:34]MH_I2C_Read... [11:51:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:51:34]Read from MH i2c: E2 [11:51:34]MH_I2C_Read... [11:51:34]Read from MH i2c: E2 62 00 [11:51:34]MH_I2C_Read... [11:51:34]Read from MH i2c: E2 62 00 99 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 83 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [11:51: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 83 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:51:34]wFMCommunicate OK [11:51:34]SAM_PROTO_GetFieldsCounters done [11:51:34]requested_item shift.num is exist - process it [11:51:34]requested_item shift.opened is exist - process it [11:51:34]req_shift_opened [11:51:34]FM_GetShiftState [11:51:34]SAM_PROTO_GetShiftState [11:51:34]wFMCommunicate request_size=4 [11:51:34]MH_SAM_APDU [11:51:34]CAPDU: 80 13 01 00 [11:51:34]Write to MH i2c: E2 08 00 9A 01 80 13 01 00 00 00 00 00 18 [11:51:34]Write i2c OK [11:51:34]MH_I2C_Read... [11:51:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:34]Read from MH i2c: E2 [11:51:34]MH_I2C_Read... [11:51:34]Read from MH i2c: E2 0E 00 [11:51:34]MH_I2C_Read... [11:51:34]Read from MH i2c: E2 0E 00 9A 01 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 C4 [11:51:34]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [11:51:34]wFMCommunicate OK [11:51:34]SAM_PROTO_GetShiftState done [11:51:34]FM_GetShiftState done [11:51:34]req_shift_opened done [11:51:34]requested_item shift.open_date is exist - process it [11:51:34]req_shift_open_date [11:51:34]req_shift_open_date done [11:51:34]produce_requested_data done [11:51:34]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67459,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [11:51:34]process_action_free print_text [11:51:34]json_value_free [11:51:34]json_value_free done [11:51:34]process_json_proto returns [11:51:34]Send response to host [11:51:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67459,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [11:51:34]free response buf [11:51:34]execute_script done [11:51:34]execute_script returns [11:51:34]free content buf [11:51:34]Sock 9.Close socket [11:51:34]Sock 9.Thread stoped [11:51:37]OFD Sender: No OFD packet to send [11:51:42]OFD Sender: No OFD packet to send [11:51:47]OFD Sender: No OFD packet to send [11:51:52]OFD Sender: No OFD packet to send [11:51:57]OFD Sender: No OFD packet to send [11:52:02]OFD Sender: No OFD packet to send [11:52:07]OFD Sender: No OFD packet to send [11:52:12]OFD Sender: No OFD packet to send [11:52:17]OFD Sender: No OFD packet to send [11:52:22]OFD Sender: No OFD packet to send [11:52:27]OFD Sender: No OFD packet to send [11:52:32]OFD Sender: No OFD packet to send [11:52:37]OFD Sender: No OFD packet to send [11:52:42]OFD Sender: No OFD packet to send [11:52:47]OFD Sender: No OFD packet to send [11:52:52]OFD Sender: No OFD packet to send [11:52:57]OFD Sender: No OFD packet to send [11:53:02]OFD Sender: No OFD packet to send [11:53:07]OFD Sender: No OFD packet to send [11:53:12]OFD Sender: No OFD packet to send [11:53:17]OFD Sender: No OFD packet to send [11:53:22]OFD Sender: No OFD packet to send [11:53:27]OFD Sender: No OFD packet to send [11:53:32]OFD Sender: No OFD packet to send [11:53:37]OFD Sender: No OFD packet to send [11:53:42]OFD Sender: No OFD packet to send [11:53:47]OFD Sender: No OFD packet to send [11:53:52]OFD Sender: No OFD packet to send [11:53:57]OFD Sender: No OFD packet to send [11:54:02]OFD Sender: No OFD packet to send [11:54:07]OFD Sender: No OFD packet to send [11:54:12]OFD Sender: No OFD packet to send [11:54:17]OFD Sender: No OFD packet to send [11:54:22]OFD Sender: No OFD packet to send [11:54:27]OFD Sender: No OFD packet to send [11:54:32]OFD Sender: No OFD packet to send [11:54:37]OFD Sender: No OFD packet to send [11:54:42]OFD Sender: No OFD packet to send [11:54:47]OFD Sender: No OFD packet to send [11:54:52]OFD Sender: No OFD packet to send [11:54:57]OFD Sender: No OFD packet to send [11:55:02]OFD Sender: No OFD packet to send [11:55:07]OFD Sender: No OFD packet to send [11:55:12]OFD Sender: No OFD packet to send [11:55:17]OFD Sender: No OFD packet to send [11:55:22]OFD Sender: No OFD packet to send [11:55:27]OFD Sender: No OFD packet to send [11:55:32]OFD Sender: No OFD packet to send [11:55:37]OFD Sender: No OFD packet to send [11:55:42]OFD Sender: No OFD packet to send [11:55:47]OFD Sender: No OFD packet to send [11:55:52]OFD Sender: No OFD packet to send [11:55:57]OFD Sender: No OFD packet to send [11:56:02]OFD Sender: No OFD packet to send [11:56:07]OFD Sender: No OFD packet to send [11:56:12]OFD Sender: No OFD packet to send [11:56:17]OFD Sender: No OFD packet to send [11:56:22]OFD Sender: No OFD packet to send [11:56:27]OFD Sender: No OFD packet to send [11:56:32]OFD Sender: No OFD packet to send [11:56:37]OFD Sender: No OFD packet to send [11:56:42]OFD Sender: No OFD packet to send [11:56:47]OFD Sender: No OFD packet to send [11:56:52]OFD Sender: No OFD packet to send [11:56:57]OFD Sender: No OFD packet to send [11:57:02]OFD Sender: No OFD packet to send [11:57:07]OFD Sender: No OFD packet to send [11:57:12]OFD Sender: No OFD packet to send [11:57:17]OFD Sender: No OFD packet to send [11:57:22]OFD Sender: No OFD packet to send [11:57:27]OFD Sender: No OFD packet to send [11:57:32]OFD Sender: No OFD packet to send [11:57:37]OFD Sender: No OFD packet to send [11:57:42]OFD Sender: No OFD packet to send [11:57:47]OFD Sender: No OFD packet to send [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:32]OFD Sender: No OFD packet to send [12:00:37]OFD Sender: No OFD packet to send [12:00:42]OFD Sender: No OFD packet to send [12:00:47]OFD Sender: No OFD packet to send [12:00:52]accept exits with 8 [12:00:52]New connection [12:00:52]New thread 3067182436 created [12:00:52]Thread 3067039076 joined [12:00:52]Waiting for new connection... [12:00:52] Sock 8.Parse request [12:00:52]Sock 8.Check first char [12:00:52]Sock 8.First char is OK [12:00:52]request: POST /json_proto HTTP/1.0 [12:00:52]Method: POST [12:00:52]URL: /json_proto [12:00:52]Method is POST - this is cgi request [12:00:52]url: /json_proto [12:00:52]query_string will be loaded in cgi processing [12:00:52]execute_cgi json_proto POST (null) [12:00:52]execute_cgi path=json_proto method=POST [12:00:52]POST find Content-Length [12:00:52]Host: 172.17.41.195:8080 [12:00:52]Content-Length: 674 [12:00:52]Content-Type: application/json [12:00:52] [12:00:52]POST finish read [12:00:52]Found Content-Length = 674 [12:00:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507498", "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" : 74.70, "quantity" : 4.020, "sum" : 300.29, "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:52]execute_script... [12:00: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)507498", "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" : 74.70, "quantity" : 4.020, "sum" : 300.29, "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:52]POST & json_proto [12:00:52]process_json_proto [12:00:52]json parsed OK: [12:00:52]protocol is kg_v1.0 [12:00:52]action value=close_receipt [12:00:52]process_action close_receipt [12:00:52]cmd_close_receipt [12:00:52]MH_GetDate [12:00:52]Write to MH i2c: F0 00 00 9B 01 8B [12:00:52]Write i2c OK [12:00:52]MH_I2C_Read... [12:00:52]Read from MH i2c: F0 [12:00:52]MH_I2C_Read... [12:00:52]Read from MH i2c: F0 09 00 [12:00:52]MH_I2C_Read... [12:00:52]Read from MH i2c: F0 09 00 9B 01 00 75 F5 45 66 FC 21 6F 64 99 [12:00:52]GetLastDocTimeStamp 1715859494 [12:00:52]current date 1715860853 [12:00:52]FM_GetShiftState [12:00:52]SAM_PROTO_GetShiftState [12:00:52]wFMCommunicate request_size=4 [12:00:52]MH_SAM_APDU [12:00:52]CAPDU: 80 13 01 00 [12:00:52]Write to MH i2c: E2 08 00 9C 01 80 13 01 00 00 00 00 00 1A [12:00:52]Write i2c OK [12:00:52]MH_I2C_Read... [12:00:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:52]Read from MH i2c: E2 [12:00:52]MH_I2C_Read... [12:00:52]Read from MH i2c: E2 0E 00 [12:00:52]MH_I2C_Read... [12:00:52]Read from MH i2c: E2 0E 00 9C 01 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 C6 [12:00:52]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [12:00:52]wFMCommunicate OK [12:00:52]SAM_PROTO_GetShiftState done [12:00:52]FM_GetShiftState done [12:00:52]opened in 1715818916 [12:00:52]opened+sec_in_day 1715905316 [12:00:52]quantity*price = 30029 [12:00:52]sum+1 = 30030 [12:00:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 58 16.05.2024 12:00 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67460 ФПД: 181083672830186 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T120053&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67460&fm=181083672830186&tin=02508201610067®Number=0000000000091845&sum=30000 [12:00:53]StoreToDocumentArchive [12:00:53]shift 357 fd 67460 [12:00:53]save to /storage/0357/doc_00067460 [12:00:53]save last doc name /storage/0357/doc_00067460 to /storage/kkm_last_doc_name [12:00:53]save OK [12:00:53]Clear old archive folders... [12:00:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:00:53]tlvbuf is 017B6AF0 [12:00:53]SAM_PROTO_ClearQueue [12:00:53]wFMCommunicate request_size=4 [12:00:53]MH_SAM_APDU [12:00:53]CAPDU: 80 09 00 00 [12:00:53]Write to MH i2c: E2 08 00 A9 01 80 09 00 00 00 00 00 00 1C [12:00:53]Write i2c OK [12:00:53]MH_I2C_Read... [12:00:53]Read from MH i2c: E2 [12:00:53]MH_I2C_Read... [12:00:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:00:53]Read from MH i2c: E2 03 00 [12:00:53]MH_I2C_Read... [12:00:53]Read from MH i2c: E2 03 00 A9 01 00 90 00 1E [12:00:53]RAPDU: 90 00 [12:00:53]wFMCommunicate OK [12:00:53]SAM_PROTO_ClearQueue done [12:00:53]KKMCreateOFDPacket [12:00:53]OFDProtocolAddRootSTLVToBuf [12:00:53]FM_MakeSignedData [12:00:53]FM_MakeSignedData [12:00:53]SAM_PROTO_SignData [12:00:53]wFMCommunicate request_size=4 [12:00:53]MH_SAM_APDU [12:00:53]CAPDU: 80 0D 01 02 [12:00:53]Write to MH i2c: E2 08 00 AA 01 80 0D 01 02 00 00 00 00 24 [12:00:53]Write i2c OK [12:00:53]MH_I2C_Read... [12:00:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:00:53]Read from MH i2c: E2 [12:00:53]MH_I2C_Read... [12:00:53]Read from MH i2c: E2 03 00 [12:00:53]MH_I2C_Read... [12:00:53]Read from MH i2c: E2 03 00 AA 01 00 90 00 1F [12:00:53]RAPDU: 90 00 [12:00:53]wFMCommunicate OK [12:00:53]wFMCommunicate request_size=255 [12:00:53]MH_SAM_APDU [12:00: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 B4 0F 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 4D 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 75 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 3A 00 00 00 F4 03 04 00 75 F5 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 84 07 01 00 35 04 06 00 A4 B1 D3 FE [12:00:53]Write to MH i2c: E2 02 01 AB 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 B4 0F 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 4D 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 75 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 3A 00 00 00 F4 03 04 00 75 F5 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 84 07 01 00 35 04 06 00 A4 B1 D3 FE 00 00 93 [12:00:53]Write i2c OK [12:00:53]MH_I2C_Read... [12:00:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:54]Read from MH i2c: E2 [12:00:54]MH_I2C_Read... [12:00:54]Read from MH i2c: E2 03 00 [12:00:54]MH_I2C_Read... [12:00:54]Read from MH i2c: E2 03 00 AB 01 00 90 00 20 [12:00:54]RAPDU: 90 00 [12:00:54]wFMCommunicate OK [12:00:54]wFMCommunicate request_size=7 [12:00:54]MH_SAM_APDU [12:00:54]CAPDU: 80 0D 02 02 02 60 EA [12:00:54]Write to MH i2c: E2 0A 00 AC 01 80 0D 02 02 02 00 60 EA 00 00 75 [12:00:54]Write i2c OK [12:00:54]MH_I2C_Read... [12:00:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:54]Read from MH i2c: E2 [12:00:54]MH_I2C_Read... [12:00:54]Read from MH i2c: E2 03 00 [12:00:54]MH_I2C_Read... [12:00:54]Read from MH i2c: E2 03 00 AC 01 00 90 00 21 [12:00:54]RAPDU: 90 00 [12:00:54]wFMCommunicate OK [12:00:54]wFMCommunicate request_size=4 [12:00:54]MH_SAM_APDU [12:00:54]CAPDU: 80 0D 03 02 [12:00:54]Write to MH i2c: E2 08 00 AD 01 80 0D 03 02 00 00 00 00 29 [12:00:54]Write i2c OK [12:00:54]MH_I2C_Read... [12:00:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:00:54]Read from MH i2c: E2 [12:00:54]MH_I2C_Read... [12:00:54]Read from MH i2c: E2 0B 00 [12:00:54]MH_I2C_Read... [12:00:54]Read from MH i2c: E2 0B 00 AD 01 00 03 2B DB A4 ED 2E D8 75 90 00 3F [12:00:54]RAPDU: 03 2B DB A4 ED 2E D8 75 90 00 [12:00:54]wFMCommunicate OK [12:00:54]SAM_PROTO_SignData done [12:00:54]FM_MakeSignedData done [12:00:54]CreateOFDProtocolMessage [12:00:54]wFMCommunicate request_size=4 [12:00:54]MH_SAM_APDU [12:00:54]CAPDU: 80 11 00 00 [12:00:54]Write to MH i2c: E2 08 00 AE 01 80 11 00 00 00 00 00 00 29 [12:00:54]Write i2c OK [12:00:54]MH_I2C_Read... [12:00:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:54]Read from MH i2c: E2 [12:00:54]MH_I2C_Read... [12:00:54]Read from MH i2c: E2 17 00 [12:00:54]MH_I2C_Read... [12:00:54]Read from MH i2c: E2 17 00 AE 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7F [12:00:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:00:54]wFMCommunicate OK [12:00:54]CreateOFDProtocolMessage done [12:00:54]OFDSenderStorePacket 67460 [12:00:54]StoreOFDPacket docnum=67460 [12:00:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 F4 DB 04 01 3E 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 B4 0F 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 4D 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 75 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 3A 00 00 00 F4 03 04 00 75 F5 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 84 07 01 00 35 04 06 00 A4 B1 D3 FE 60 EA 03 2B DB A4 ED 2E D8 75 [12:00:54]CheckFolder [12:00:54]dirname=/storage/ofd_packets [12:00:54]CheckFolder done [12:00:54]ProducePacketName [12:00:54]name=ofd_packets/00067460 [12:00:54]NVStorageSaveData ofd_packets/00067460 [12:00:54]File name is /storage/ofd_packets/00067460 [12:00:54]Write 298 bytes [12:00:54]NVStorageSaveData done [12:00:54]OFDSenderStorePacket done [12:00:54]KKMCreateOFDPacket done [12:00:54]NVStorageSaveData kkm_last_timestamp [12:00:54]File name is /storage/kkm_last_timestamp [12:00:54]Write 4 bytes [12:00:54]NVStorageSaveData done [12:00:54]ExternCall_PrintAddStr [12:00:54]wPrintStart [12:00:54]Write to MH i2c: 01 00 00 AF 01 B0 [12:00:54]Write i2c OK [12:00:54]MH_I2C_Read... [12:00:54]Read from MH i2c: 01 [12:00:54]MH_I2C_Read... [12:00:54]Read from MH i2c: 01 07 00 [12:00:54]MH_I2C_Read... [12:00:54]Read from MH i2c: 01 07 00 AF 01 00 00 00 00 00 FF 0F C5 [12:00:54]RasterBufferAndPrint [12:00:54]line Счет N : (1)507498 [12:00:54]line ИНН: 02508201610067 [12:00:54]line Контрольно-Кассовый Чек [12:00:54]line ПРОДАЖА [12:00:54]line ТРК (МРК, ГНК) : 11 [12:00:54]line Товар: 2710194210 [12:00:54]line ДТ-К-5 [12:00:54]line 4.020 * 74.70 [12:00:54]line = 300.29 [12:00:54]line НДС 12% НСП 1% [12:00:54]line > о реализуемом товаре [12:00:54]line ОКРУГЛЕНИЕ: -0.29 [12:00:54]line ИТОГО: 300.00 [12:00:54]line Внесено: 300.00 [12:00:54]line СДАЧА: 0.00 [12:00:54]line НСП 1% : 2.66 [12:00:54]line НДС 12% : 31.89 [12:00:54]line Наличными: 300.00 [12:00:54]line Безнал.: 0.00 [12:00:54]line Место: АЗС № 91 "Партнер Нефть" [12:00:54]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:00:54]line СНО: Общий режим [12:00:54]line Чек 58 16.05.2024 12:00 [12:00:54]line Смена: 357 ФФД: 1.0 [12:00:54]line ЗНМ: 0300000119 [12:00:54]line РНМ: 0000000000091845 [12:00:54]line Версия ККМ: 001 [12:00:54]line ФМ: 0000000000871829 [12:00:54]line ФД: 67460 [12:00:54]line ФПД: 181083672830186 [12:00:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T120053&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67460&fm=181083672830186&tin=02508201610067®Number=0000000000091845&sum=30000 [12:00:54]OFD Sender: Processing packet 67460 [packets to send 35, broken 34] [12:00:54]ProducePacketName [12:00:54]name=ofd_packets/00067460 [12:00:54]OFD Sender: To server: pG, [12:00:54]CommunicateWithHost lk.salyk.kg:30040 [12:00:54]ConnectInit lk.salyk.kg [12:00:54]written 0, free lines is 4095 [12:00:54]Connected sock=10 [12:00: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 38 32 39 0C 01 00 00 F4 DB 04 01 3E 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 B4 0F 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 4D 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 75 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 3A 00 00 00 F4 03 04 00 75 F5 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 84 07 01 00 35 04 06 00 A4 B1 D3 FE 60 EA 03 2B DB A4 ED 2E D8 75 [12:00:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 5A 13 47 00 DA 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 38 32 39 10 04 04 00 84 07 01 00 F4 03 04 00 4F 9D 45 66 B6 04 01 00 00 09 66 24 15 61 F9 90 C0 [12:00:54]CommunicateWithHost err = 0 [12:00:54]CheckOFDResponse [12:00:54]1017 (14) - 77093643461234 [12:00:54]1041 (16) - 0000000000871829 [12:00:54]1040 (4) - 67460 [12:00:54]1012 (4) - 16.05.2024 05:44 [12:00:54]1206 (1) - 0 [12:00:54]OFD Sender: Remove packet 67460 [12:00:54]ProducePacketName [12:00:54]name=ofd_packets/00067460 [12:00:54]NVStorageDeleteData [12:00:54]Write to MH i2c: 01 00 00 D9 01 DA [12:00:54]Write i2c OK [12:00:54]MH_I2C_Read... [12:00:54]Read from MH i2c: 01 [12:00:54]MH_I2C_Read... [12:00:54]Read from MH i2c: 01 07 00 [12:00:54]MH_I2C_Read... [12:00:55]Read from MH i2c: 01 07 00 D9 01 00 00 00 00 00 C8 0C B5 [12:00:55]RasterBufferAndPrint [12:00:55]line [12:00:55]line [12:00:55]line [12:00:55]line [12:00:55]line [12:00:55]written 0, free lines is 3278 [12:00:55]MH_Cut [12:00:55]Write to MH i2c: D1 01 00 E0 01 01 B3 [12:00:55]Write i2c OK [12:00:55]MH_I2C_Read... [12:00:55]Read from MH i2c: D1 [12:00:55]MH_I2C_Read... [12:00:55]Read from MH i2c: D1 01 00 [12:00:55]MH_I2C_Read... [12:00:55]Read from MH i2c: D1 01 00 E0 01 00 B2 [12:00:55]Write to MH i2c: 01 00 00 E1 01 E2 [12:00:55]Write i2c OK [12:00:55]MH_I2C_Read... [12:00:55]OFD Sender: No OFD packet to send [12:00:55]*** Cut start [12:00:55]*** Purtial cut [12:00:55]*** CUTSNS_PIN = 0 [12:00:56]*** Stage 1: CUTSNS_PIN = 1 [12:00:57]Read from MH i2c: 01 [12:00:57]MH_I2C_Read... [12:00:57]*** Stop cut motor [12:00:57]*** Cut end [12:00:57]Read from MH i2c: 01 07 00 [12:00:57]MH_I2C_Read... [12:00:57]Read from MH i2c: 01 07 00 E1 01 00 00 00 00 00 FF 0F F7 [12:00:57]process_action close_receipt done [12:00:57]requested_data is exist [12:00:57]produce_requested_data [12:00:57]requested_item fm.sn is exist - process it [12:00:57]wFMCommunicate request_size=4 [12:00:57]MH_SAM_APDU [12:00:57]CAPDU: 80 11 00 00 [12:00:57]Write to MH i2c: E2 08 00 E2 01 80 11 00 00 00 00 00 00 5D [12:00:57]Write i2c OK [12:00:57]MH_I2C_Read... [12:00:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:57]Read from MH i2c: E2 [12:00:57]MH_I2C_Read... [12:00:57]Read from MH i2c: E2 17 00 [12:00:57]MH_I2C_Read... [12:00:57]Read from MH i2c: E2 17 00 E2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B3 [12:00:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:00:57]wFMCommunicate OK [12:00:57]requested_item fd.num is exist - process it [12:00:57]SAM_PROTO_GetFieldsCounters [12:00:57]wFMCommunicate request_size=4 [12:00:57]MH_SAM_APDU [12:00:57]CAPDU: 80 13 00 00 [12:00:57]Write to MH i2c: E2 08 00 E3 01 80 13 00 00 00 00 00 00 60 [12:00:57]Write i2c OK [12:00:57]MH_I2C_Read... [12:00:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:00:58]Read from MH i2c: E2 [12:00:58]MH_I2C_Read... [12:00:58]Read from MH i2c: E2 62 00 [12:00:58]MH_I2C_Read... [12:00:58]Read from MH i2c: E2 62 00 E3 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 84 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [12:00: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 84 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:00:58]wFMCommunicate OK [12:00:58]SAM_PROTO_GetFieldsCounters done [12:00:58]requested_item shift.num is exist - process it [12:00:58]requested_item shift.opened is exist - process it [12:00:58]req_shift_opened [12:00:58]FM_GetShiftState [12:00:58]SAM_PROTO_GetShiftState [12:00:58]wFMCommunicate request_size=4 [12:00:58]MH_SAM_APDU [12:00:58]CAPDU: 80 13 01 00 [12:00:58]Write to MH i2c: E2 08 00 E4 01 80 13 01 00 00 00 00 00 62 [12:00:58]Write i2c OK [12:00:58]MH_I2C_Read... [12:00:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:58]Read from MH i2c: E2 [12:00:58]MH_I2C_Read... [12:00:58]Read from MH i2c: E2 0E 00 [12:00:58]MH_I2C_Read... [12:00:58]Read from MH i2c: E2 0E 00 E4 01 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 0E [12:00:58]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [12:00:58]wFMCommunicate OK [12:00:58]SAM_PROTO_GetShiftState done [12:00:58]FM_GetShiftState done [12:00:58]req_shift_opened done [12:00:58]requested_item shift.open_date is exist - process it [12:00:58]req_shift_open_date [12:00:58]req_shift_open_date done [12:00:58]produce_requested_data done [12:00:58]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67460,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [12:00:58]process_action_free close_receipt [12:00:58]json_value_free [12:00:58]json_value_free done [12:00:58]process_json_proto returns [12:00:58]Send response to host [12:00:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67460,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [12:00:58]free response buf [12:00:58]execute_script done [12:00:58]execute_script returns [12:00:58]free content buf [12:00:58]Sock 8.Close socket [12:00:58]Sock 8.Thread stoped [12:00:59]int [12:00:59]Write to MH i2c: 01 00 00 E5 01 E6 [12:00:59]*** FLAG_PRN_PAP1 set [12:00:59]Write i2c OK [12:00:59]MH_I2C_Read... [12:00:59]Read from MH i2c: 01 [12:00:59]MH_I2C_Read... [12:00:59]Read from MH i2c: 01 07 00 [12:00:59]MH_I2C_Read... [12:00:59]Read from MH i2c: 01 07 00 E5 01 00 01 00 00 00 FF 0F FC [12:00:59]state=0 [12:00:59]No paper [12:00:59]int [12:00:59]Write to MH i2c: 01 00 00 E6 01 E7 [12:00:59]*** FLAG_PRN_PAP2 set [12:00:59]Write i2c OK [12:00:59]MH_I2C_Read... [12:00:59]Read from MH i2c: 01 [12:00:59]MH_I2C_Read... [12:00:59]Read from MH i2c: 01 07 00 [12:00:59]MH_I2C_Read... [12:00:59]Read from MH i2c: 01 07 00 E6 01 00 03 00 00 00 FF 0F FF [12:00:59]state=0 [12:00:59]No paper [12:00:59]Cover opened [12:00:59]int [12:00:59]Write to MH i2c: 01 00 00 E7 01 E8 [12:00:59]*** FLAG_PRN_PAP2 reset [12:00:59]Write i2c OK [12:00:59]MH_I2C_Read... [12:00:59]Read from MH i2c: 01 [12:00:59]MH_I2C_Read... [12:00:59]Read from MH i2c: 01 07 00 [12:00:59]MH_I2C_Read... [12:00:59]Read from MH i2c: 01 07 00 E7 01 00 01 00 00 00 FF 0F FE [12:00:59]state=3 [12:00:59]No paper [12:00:59]Cover closed [12:01:00]OFD Sender: No OFD packet to send [12:01:05]OFD Sender: No OFD packet to send [12:01:06]int [12:01:06]Write to MH i2c: 01 00 00 E8 01 E9 [12:01:06]*** FLAG_PRN_PAP1 reset [12:01:06]Write i2c OK [12:01:06]MH_I2C_Read... [12:01:06]Read from MH i2c: 01 [12:01:06]MH_I2C_Read... [12:01:06]Read from MH i2c: 01 07 00 [12:01:06]MH_I2C_Read... [12:01:06]Read from MH i2c: 01 07 00 E8 01 00 00 00 00 00 FF 0F FE [12:01:06]state=0 [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:40]accept exits with 9 [12:01:40]New connection [12:01:40]New thread 3067039076 created [12:01:40]Thread 3067182436 joined [12:01:40]Waiting for new connection... [12:01:40] Sock 9.Parse request [12:01:40]Sock 9.Check first char [12:01:40]Sock 9.First char is OK [12:01:40]request: POST /json_proto HTTP/1.0 [12:01:40]Method: POST [12:01:40]URL: /json_proto [12:01:40]Method is POST - this is cgi request [12:01:40]url: /json_proto [12:01:40]query_string will be loaded in cgi processing [12:01:40]execute_cgi json_proto POST (null) [12:01:40]execute_cgi path=json_proto method=POST [12:01:40]POST find Content-Length [12:01:40]Host: 172.17.41.195:8080 [12:01:40]Content-Length: 800 [12:01:40]Content-Type: application/json [12:01:40] [12:01:40]POST finish read [12:01:40]Found Content-Length = 800 [12:01:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507499", "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" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:40]execute_script... [12:01: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)507499", "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" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:40]POST & json_proto [12:01:40]process_json_proto [12:01:40]json parsed OK: [12:01:40]protocol is kg_v1.0 [12:01:40]action value=close_receipt [12:01:40]process_action close_receipt [12:01:40]cmd_close_receipt [12:01:40]MH_GetDate [12:01:40]Write to MH i2c: F0 00 00 E9 01 D9 [12:01:40]Write i2c OK [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: F0 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: F0 09 00 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: F0 09 00 E9 01 00 A5 F5 45 66 FC 21 6F 64 17 [12:01:40]GetLastDocTimeStamp 1715860853 [12:01:40]current date 1715860901 [12:01:40]FM_GetShiftState [12:01:40]SAM_PROTO_GetShiftState [12:01:40]wFMCommunicate request_size=4 [12:01:40]MH_SAM_APDU [12:01:40]CAPDU: 80 13 01 00 [12:01:40]Write to MH i2c: E2 08 00 EA 01 80 13 01 00 00 00 00 00 68 [12:01:40]Write i2c OK [12:01:40]MH_I2C_Read... [12:01:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:40]Read from MH i2c: E2 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: E2 0E 00 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: E2 0E 00 EA 01 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 14 [12:01:40]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [12:01:40]wFMCommunicate OK [12:01:40]SAM_PROTO_GetShiftState done [12:01:40]FM_GetShiftState done [12:01:40]opened in 1715818916 [12:01:40]opened+sec_in_day 1715905316 [12:01:40]quantity*price = 100023 [12:01:40]sum+1 = 100024 [12:01:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.23 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.23 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 59 16.05.2024 12:01 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67461 ФПД: 227176105472604 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T120141&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67461&fm=227176105472604&tin=02508201610067®Number=0000000000091845&sum=100023 [12:01:41]StoreToDocumentArchive [12:01:41]shift 357 fd 67461 [12:01:41]save to /storage/0357/doc_00067461 [12:01:41]save last doc name /storage/0357/doc_00067461 to /storage/kkm_last_doc_name [12:01:41]save OK [12:01:41]Clear old archive folders... [12:01:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:01:41]tlvbuf is B6DE07F0 [12:01:41]SAM_PROTO_ClearQueue [12:01:41]wFMCommunicate request_size=4 [12:01:41]MH_SAM_APDU [12:01:41]CAPDU: 80 09 00 00 [12:01:41]Write to MH i2c: E2 08 00 F7 01 80 09 00 00 00 00 00 00 6A [12:01:41]Write i2c OK [12:01:41]MH_I2C_Read... [12:01:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:01:41]Read from MH i2c: E2 [12:01:41]MH_I2C_Read... [12:01:41]Read from MH i2c: E2 03 00 [12:01:41]MH_I2C_Read... [12:01:41]Read from MH i2c: E2 03 00 F7 01 00 90 00 6C [12:01:41]RAPDU: 90 00 [12:01:41]wFMCommunicate OK [12:01:41]SAM_PROTO_ClearQueue done [12:01:41]KKMCreateOFDPacket [12:01:41]OFDProtocolAddRootSTLVToBuf [12:01:41]FM_MakeSignedData [12:01:41]FM_MakeSignedData [12:01:41]SAM_PROTO_SignData [12:01:41]wFMCommunicate request_size=4 [12:01:41]MH_SAM_APDU [12:01:41]CAPDU: 80 0D 01 02 [12:01:41]Write to MH i2c: E2 08 00 F8 01 80 0D 01 02 00 00 00 00 72 [12:01:41]Write i2c OK [12:01:41]MH_I2C_Read... [12:01:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:01:41]Read from MH i2c: E2 [12:01:41]MH_I2C_Read... [12:01:41]Read from MH i2c: E2 03 00 [12:01:41]MH_I2C_Read... [12:01:41]Read from MH i2c: E2 03 00 F8 01 00 90 00 6D [12:01:41]RAPDU: 90 00 [12:01:41]wFMCommunicate OK [12:01:41]wFMCommunicate request_size=255 [12:01:41]MH_SAM_APDU [12:01: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 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 A5 F5 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 85 07 01 00 35 04 06 00 CE 9D 8F 11 [12:01:41]Write to MH i2c: E2 02 01 F9 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 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 A5 F5 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 85 07 01 00 35 04 06 00 CE 9D 8F 11 00 00 F8 [12:01:41]Write i2c OK [12:01:41]MH_I2C_Read... [12:01:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:42]Read from MH i2c: E2 [12:01:42]MH_I2C_Read... [12:01:42]Read from MH i2c: E2 03 00 [12:01:42]MH_I2C_Read... [12:01:42]Read from MH i2c: E2 03 00 F9 01 00 90 00 6E [12:01:42]RAPDU: 90 00 [12:01:42]wFMCommunicate OK [12:01:42]wFMCommunicate request_size=7 [12:01:42]MH_SAM_APDU [12:01:42]CAPDU: 80 0D 02 02 02 72 5C [12:01:42]Write to MH i2c: E2 0A 00 FA 01 80 0D 02 02 02 00 72 5C 00 00 47 [12:01:42]Write i2c OK [12:01:42]MH_I2C_Read... [12:01:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:42]Read from MH i2c: E2 [12:01:42]MH_I2C_Read... [12:01:42]Read from MH i2c: E2 03 00 [12:01:42]MH_I2C_Read... [12:01:42]Read from MH i2c: E2 03 00 FA 01 00 90 00 6F [12:01:42]RAPDU: 90 00 [12:01:42]wFMCommunicate OK [12:01:42]wFMCommunicate request_size=4 [12:01:42]MH_SAM_APDU [12:01:42]CAPDU: 80 0D 03 02 [12:01:42]Write to MH i2c: E2 08 00 FB 01 80 0D 03 02 00 00 00 00 77 [12:01:42]Write i2c OK [12:01:42]MH_I2C_Read... [12:01:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:01:42]Read from MH i2c: E2 [12:01:42]MH_I2C_Read... [12:01:42]Read from MH i2c: E2 0B 00 [12:01:42]MH_I2C_Read... [12:01:42]Read from MH i2c: E2 0B 00 FB 01 00 B7 41 E0 4D A6 6F 71 25 90 00 48 [12:01:42]RAPDU: B7 41 E0 4D A6 6F 71 25 90 00 [12:01:42]wFMCommunicate OK [12:01:42]SAM_PROTO_SignData done [12:01:42]FM_MakeSignedData done [12:01:42]CreateOFDProtocolMessage [12:01:42]wFMCommunicate request_size=4 [12:01:42]MH_SAM_APDU [12:01:42]CAPDU: 80 11 00 00 [12:01:42]Write to MH i2c: E2 08 00 FC 01 80 11 00 00 00 00 00 00 77 [12:01:42]Write i2c OK [12:01:42]MH_I2C_Read... [12:01:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:42]Read from MH i2c: E2 [12:01:42]MH_I2C_Read... [12:01:42]Read from MH i2c: E2 17 00 [12:01:42]MH_I2C_Read... [12:01:42]Read from MH i2c: E2 17 00 FC 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 CD [12:01:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:01:42]wFMCommunicate OK [12:01:42]CreateOFDProtocolMessage done [12:01:42]OFDSenderStorePacket 67461 [12:01:42]StoreOFDPacket docnum=67461 [12:01:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 2E CD 04 01 B5 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 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 A5 F5 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 85 07 01 00 35 04 06 00 CE 9D 8F 11 72 5C B7 41 E0 4D A6 6F 71 25 [12:01:42]CheckFolder [12:01:42]dirname=/storage/ofd_packets [12:01:42]CheckFolder done [12:01:42]ProducePacketName [12:01:42]name=ofd_packets/00067461 [12:01:42]NVStorageSaveData ofd_packets/00067461 [12:01:42]File name is /storage/ofd_packets/00067461 [12:01:42]Write 298 bytes [12:01:42]NVStorageSaveData done [12:01:42]OFDSenderStorePacket done [12:01:42]KKMCreateOFDPacket done [12:01:42]NVStorageSaveData kkm_last_timestamp [12:01:42]File name is /storage/kkm_last_timestamp [12:01:42]Write 4 bytes [12:01:42]NVStorageSaveData done [12:01:42]ExternCall_PrintAddStr [12:01:42]wPrintStart [12:01:42]Write to MH i2c: 01 00 00 FD 01 FE [12:01:42]Write i2c OK [12:01:42]MH_I2C_Read... [12:01:42]Read from MH i2c: 01 [12:01:42]MH_I2C_Read... [12:01:42]Read from MH i2c: 01 07 00 [12:01:42]MH_I2C_Read... [12:01:42]Read from MH i2c: 01 07 00 FD 01 00 00 00 00 00 FF 0F 13 [12:01:42]RasterBufferAndPrint [12:01:42]line Счет N : (1)507499 [12:01:42]line ИНН: 02508201610067 [12:01:42]line Контрольно-Кассовый Чек [12:01:42]line ПРОДАЖА [12:01:42]line ТРК (МРК, ГНК) : 31 [12:01:42]line Товар: 2710194210 [12:01:42]line ДТ-К-5 [12:01:42]line 13.390 * 74.70 [12:01:42]line = 1000.23 [12:01:42]line НДС 12% НСП 1% [12:01:42]line > о реализуемом товаре [12:01:42]line ИТОГО: 1000.23 [12:01:42]line НСП 1% : 8.85 [12:01:42]line НДС 12% : 106.22 [12:01:42]line Наличными: 0.00 [12:01:42]line Безнал.: 1000.23 [12:01:42]line Место: АЗС № 91 "Партнер Нефть" [12:01:42]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:01:42]line СНО: Общий режим [12:01:42]line Чек 59 16.05.2024 12:01 [12:01:42]line Смена: 357 ФФД: 1.0 [12:01:42]line ЗНМ: 0300000119 [12:01:42]line РНМ: 0000000000091845 [12:01:42]line Версия ККМ: 001 [12:01:42]line Платежная система: O! деньги [12:01:42]line ФМ: 0000000000871829 [12:01:42]line ФД: 67461 [12:01:42]line ФПД: 227176105472604 [12:01:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T120141&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67461&fm=227176105472604&tin=02508201610067®Number=0000000000091845&sum=100023 [12:01:42]OFD Sender: Processing packet 67461 [packets to send 35, broken 34] [12:01:42]ProducePacketName [12:01:42]name=ofd_packets/00067461 [12:01:42]OFD Sender: To server: pG, [12:01:42]CommunicateWithHost lk.salyk.kg:30040 [12:01:42]ConnectInit lk.salyk.kg [12:01:42]written 0, free lines is 4095 [12:01:42]Connected sock=10 [12:01: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 38 32 39 0C 01 00 00 2E CD 04 01 B5 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 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 A5 F5 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 85 07 01 00 35 04 06 00 CE 9D 8F 11 72 5C B7 41 E0 4D A6 6F 71 25 [12:01:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 93 1F 47 00 C7 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 85 07 01 00 F4 03 04 00 80 9D 45 66 B6 04 01 00 00 F1 75 EA B2 43 4D F9 54 [12:01:42]CommunicateWithHost err = 0 [12:01:42]CheckOFDResponse [12:01:42]1017 (14) - 77093643461234 [12:01:42]1041 (16) - 0000000000871829 [12:01:42]1040 (4) - 67461 [12:01:42]1012 (4) - 16.05.2024 05:45 [12:01:42]1206 (1) - 0 [12:01:42]OFD Sender: Remove packet 67461 [12:01:42]ProducePacketName [12:01:42]name=ofd_packets/00067461 [12:01:42]NVStorageDeleteData [12:01:43]Write to MH i2c: 01 00 00 26 02 28 [12:01:43]Write i2c OK [12:01:43]MH_I2C_Read... [12:01:43]Read from MH i2c: 01 [12:01:43]MH_I2C_Read... [12:01:43]Read from MH i2c: 01 07 00 [12:01:43]MH_I2C_Read... [12:01:43]Read from MH i2c: 01 07 00 26 02 00 00 00 00 00 DF 0C 1A [12:01:43]RasterBufferAndPrint [12:01:43]line [12:01:43]line [12:01:43]line [12:01:43]line [12:01:43]line [12:01:43]written 0, free lines is 3301 [12:01:43]MH_Cut [12:01:43]Write to MH i2c: D1 01 00 2D 02 01 01 [12:01:43]Write i2c OK [12:01:43]MH_I2C_Read... [12:01:43]Read from MH i2c: D1 [12:01:43]MH_I2C_Read... [12:01:43]Read from MH i2c: D1 01 00 [12:01:43]MH_I2C_Read... [12:01:43]Read from MH i2c: D1 01 00 2D 02 00 00 [12:01:43]Write to MH i2c: 01 00 00 2E 02 30 [12:01:43]Write i2c OK [12:01:43]MH_I2C_Read... [12:01:43]OFD Sender: No OFD packet to send [12:01:43]*** Cut start [12:01:43]*** Purtial cut [12:01:43]*** Stage 1: CUTSNS_PIN = 1 [12:01:44]Read from MH i2c: 01 [12:01:44]MH_I2C_Read... [12:01:44]*** Stop cut motor [12:01:44]*** Cut end [12:01:44]Read from MH i2c: 01 07 00 [12:01:44]MH_I2C_Read... [12:01:44]Read from MH i2c: 01 07 00 2E 02 00 00 00 00 00 FF 0F 45 [12:01:44]process_action close_receipt done [12:01:44]requested_data is exist [12:01:44]produce_requested_data [12:01:44]requested_item fm.sn is exist - process it [12:01:44]wFMCommunicate request_size=4 [12:01:44]MH_SAM_APDU [12:01:44]CAPDU: 80 11 00 00 [12:01:44]Write to MH i2c: E2 08 00 2F 02 80 11 00 00 00 00 00 00 AB [12:01:44]Write i2c OK [12:01:44]MH_I2C_Read... [12:01:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:44]Read from MH i2c: E2 [12:01:44]MH_I2C_Read... [12:01:44]Read from MH i2c: E2 17 00 [12:01:44]MH_I2C_Read... [12:01:44]Read from MH i2c: E2 17 00 2F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 01 [12:01:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:01:44]wFMCommunicate OK [12:01:44]requested_item fd.num is exist - process it [12:01:44]SAM_PROTO_GetFieldsCounters [12:01:44]wFMCommunicate request_size=4 [12:01:44]MH_SAM_APDU [12:01:44]CAPDU: 80 13 00 00 [12:01:44]Write to MH i2c: E2 08 00 30 02 80 13 00 00 00 00 00 00 AE [12:01:44]Write i2c OK [12:01:44]MH_I2C_Read... [12:01:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:01:44]Read from MH i2c: E2 [12:01:44]MH_I2C_Read... [12:01:44]Read from MH i2c: E2 62 00 [12:01:44]MH_I2C_Read... [12:01:44]Read from MH i2c: E2 62 00 30 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 85 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [12:01: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 85 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:01:44]wFMCommunicate OK [12:01:44]SAM_PROTO_GetFieldsCounters done [12:01:44]requested_item shift.num is exist - process it [12:01:44]requested_item shift.opened is exist - process it [12:01:44]req_shift_opened [12:01:44]FM_GetShiftState [12:01:44]SAM_PROTO_GetShiftState [12:01:44]wFMCommunicate request_size=4 [12:01:44]MH_SAM_APDU [12:01:44]CAPDU: 80 13 01 00 [12:01:44]Write to MH i2c: E2 08 00 31 02 80 13 01 00 00 00 00 00 B0 [12:01:44]Write i2c OK [12:01:44]MH_I2C_Read... [12:01:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:44]Read from MH i2c: E2 [12:01:44]MH_I2C_Read... [12:01:44]Read from MH i2c: E2 0E 00 [12:01:44]MH_I2C_Read... [12:01:44]Read from MH i2c: E2 0E 00 31 02 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 5C [12:01:44]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [12:01:44]wFMCommunicate OK [12:01:44]SAM_PROTO_GetShiftState done [12:01:44]FM_GetShiftState done [12:01:44]req_shift_opened done [12:01:44]requested_item shift.open_date is exist - process it [12:01:44]req_shift_open_date [12:01:44]req_shift_open_date done [12:01:44]produce_requested_data done [12:01:44]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67461,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [12:01:44]process_action_free close_receipt [12:01:44]json_value_free [12:01:44]json_value_free done [12:01:44]process_json_proto returns [12:01:44]Send response to host [12:01:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67461,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [12:01:44]free response buf [12:01:44]execute_script done [12:01:44]execute_script returns [12:01:44]free content buf [12:01:44]Sock 9.Close socket [12:01:44]Sock 9.Thread stoped [12:01:48]OFD Sender: No OFD packet to send [12:01:53]OFD Sender: No OFD packet to send [12:01:58]OFD Sender: No OFD packet to send [12:02:03]OFD Sender: No OFD packet to send [12:02:08]OFD Sender: No OFD packet to send [12:02:13]OFD Sender: No OFD packet to send [12:02:18]OFD Sender: No OFD packet to send [12:02:23]OFD Sender: No OFD packet to send [12:02:28]OFD Sender: No OFD packet to send [12:02:33]OFD Sender: No OFD packet to send [12:02:38]OFD Sender: No OFD packet to send [12:02:43]OFD Sender: No OFD packet to send [12:02:48]OFD Sender: No OFD packet to send [12:02:53]OFD Sender: No OFD packet to send [12:02:58]OFD Sender: No OFD packet to send [12:03:03]OFD Sender: No OFD packet to send [12:03:08]OFD Sender: No OFD packet to send [12:03:13]OFD Sender: No OFD packet to send [12:03:18]OFD Sender: No OFD packet to send [12:03:23]OFD Sender: No OFD packet to send [12:03:28]OFD Sender: No OFD packet to send [12:03:33]OFD Sender: No OFD packet to send [12:03:38]OFD Sender: No OFD packet to send [12:03:43]OFD Sender: No OFD packet to send [12:03:48]OFD Sender: No OFD packet to send [12:03:53]OFD Sender: No OFD packet to send [12:03:58]OFD Sender: No OFD packet to send [12:04:03]OFD Sender: No OFD packet to send [12:04:08]OFD Sender: No OFD packet to send [12:04:13]OFD Sender: No OFD packet to send [12:04:18]OFD Sender: No OFD packet to send [12:04:23]OFD Sender: No OFD packet to send [12:04:28]OFD Sender: No OFD packet to send [12:04:33]OFD Sender: No OFD packet to send [12:04:38]OFD Sender: No OFD packet to send [12:04:43]OFD Sender: No OFD packet to send [12:04:48]OFD Sender: No OFD packet to send [12:04:53]OFD Sender: No OFD packet to send [12:04:58]OFD Sender: No OFD packet to send [12:05:03]OFD Sender: No OFD packet to send [12:05:08]OFD Sender: No OFD packet to send [12:05:13]OFD Sender: No OFD packet to send [12:05:18]OFD Sender: No OFD packet to send [12:05:23]OFD Sender: No OFD packet to send [12:05:28]OFD Sender: No OFD packet to send [12:05:33]OFD Sender: No OFD packet to send [12:05:36]accept exits with 8 [12:05:36]New connection [12:05:36]New thread 3067182436 created [12:05:36]Thread 3067039076 joined [12:05:36]Waiting for new connection... [12:05:36] Sock 8.Parse request [12:05:36]Sock 8.Check first char [12:05:36]Sock 8.First char is OK [12:05:36]request: POST /json_proto HTTP/1.0 [12:05:36]Method: POST [12:05:36]URL: /json_proto [12:05:36]Method is POST - this is cgi request [12:05:36]url: /json_proto [12:05:36]query_string will be loaded in cgi processing [12:05:36]execute_cgi json_proto POST (null) [12:05:36]execute_cgi path=json_proto method=POST [12:05:36]POST find Content-Length [12:05:36]Host: 172.17.41.195:8080 [12:05:36]Content-Length: 1209 [12:05:36]Content-Type: application/json [12:05:36] [12:05:36]POST finish read [12:05:36]Found Content-Length = 1209 [12:05:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507500\u000A16.05.2024 11:48\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1494.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:36]execute_script... [12:05:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507500\u000A16.05.2024 11:48\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1494.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:36]POST & json_proto [12:05:36]process_json_proto [12:05:36]json parsed OK: [12:05:36]protocol is kg_v1.0 [12:05:36]action value=print_text [12:05:36]process_action print_text [12:05:36]cmd_print_text [12:05:36]ExternCall_PrintAddStr [12:05:36]wPrintStart [12:05:36]Write to MH i2c: 01 00 00 32 02 34 [12:05:36]Write i2c OK [12:05:36]MH_I2C_Read... [12:05:36]Read from MH i2c: 01 [12:05:36]MH_I2C_Read... [12:05:36]Read from MH i2c: 01 07 00 [12:05:36]MH_I2C_Read... [12:05:36]Read from MH i2c: 01 07 00 32 02 00 00 00 00 00 FF 0F 49 [12:05:36]RasterBufferAndPrint [12:05:36]line *****ТОВАРНЫЙ ЧЕК***** [12:05:36]line АЗС-91 [12:05:36]line Партнер нефть [12:05:36]line 02508201610067 [12:05:36]line Кассир : Пайзулдаева А. [12:05:36]line Счет N : (1)507500 [12:05:36]line 16.05.2024 11:48 [12:05:36]line ПРОДАЖА [12:05:36]line ТРК (МРК, ГНК): 21 [12:05:36]line Вид ГСМ : 2710194210 [12:05:36]line ДТ-К-5 [12:05:36]line 20.000 x 74.70 [12:05:36]line ИТОГ: 1494.00 [12:05:36]line Тип оплаты: Талоны: Топливная Карта [12:05:36]line 02750 [12:05:36]line ______________________ [12:05:36]line (подпись) [12:05:36]written 0, free lines is 4095 [12:05:36]Write to MH i2c: 01 00 00 46 02 48 [12:05:36]Write i2c OK [12:05:36]MH_I2C_Read... [12:05:36]Read from MH i2c: 01 [12:05:36]MH_I2C_Read... [12:05:36]Read from MH i2c: 01 07 00 [12:05:36]MH_I2C_Read... [12:05:36]Read from MH i2c: 01 07 00 46 02 00 00 00 00 00 10 0E 6D [12:05:36]RasterBufferAndPrint [12:05:36]line [12:05:36]line [12:05:36]line [12:05:36]line [12:05:36]line [12:05:36]written 0, free lines is 3601 [12:05:36]MH_Cut [12:05:36]Write to MH i2c: D1 01 00 4D 02 01 21 [12:05:36]Write i2c OK [12:05:36]MH_I2C_Read... [12:05:36]Read from MH i2c: D1 [12:05:36]MH_I2C_Read... [12:05:36]Read from MH i2c: D1 01 00 [12:05:36]MH_I2C_Read... [12:05:36]Read from MH i2c: D1 01 00 4D 02 00 20 [12:05:36]Write to MH i2c: 01 00 00 4E 02 50 [12:05:36]Write i2c OK [12:05:36]MH_I2C_Read... [12:05:37]*** Cut start [12:05:37]*** Purtial cut [12:05:37]*** CUTSNS_PIN = 0 [12:05:37]*** Stage 1: CUTSNS_PIN = 1 [12:05:38]OFD Sender: No OFD packet to send [12:05:39]Read from MH i2c: 01 [12:05:39]MH_I2C_Read... [12:05:39]*** Stop cut motor [12:05:39]*** Cut end [12:05:39]Read from MH i2c: 01 07 00 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: 01 07 00 4E 02 00 00 00 00 00 FF 0F 65 [12:05:39]process_action print_text done [12:05:39]requested_data is exist [12:05:39]produce_requested_data [12:05:39]requested_item fm.sn is exist - process it [12:05:39]wFMCommunicate request_size=4 [12:05:39]MH_SAM_APDU [12:05:39]CAPDU: 80 11 00 00 [12:05:39]Write to MH i2c: E2 08 00 4F 02 80 11 00 00 00 00 00 00 CB [12:05:39]Write i2c OK [12:05:39]MH_I2C_Read... [12:05:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:39]Read from MH i2c: E2 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: E2 17 00 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: E2 17 00 4F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 21 [12:05:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:05:39]wFMCommunicate OK [12:05:39]requested_item fd.num is exist - process it [12:05:39]SAM_PROTO_GetFieldsCounters [12:05:39]wFMCommunicate request_size=4 [12:05:39]MH_SAM_APDU [12:05:39]CAPDU: 80 13 00 00 [12:05:39]Write to MH i2c: E2 08 00 50 02 80 13 00 00 00 00 00 00 CE [12:05:39]Write i2c OK [12:05:39]MH_I2C_Read... [12:05:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:05:39]Read from MH i2c: E2 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: E2 62 00 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: E2 62 00 50 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 85 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [12:05: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 85 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:05:39]wFMCommunicate OK [12:05:39]SAM_PROTO_GetFieldsCounters done [12:05:39]requested_item shift.num is exist - process it [12:05:39]requested_item shift.opened is exist - process it [12:05:39]req_shift_opened [12:05:39]FM_GetShiftState [12:05:39]SAM_PROTO_GetShiftState [12:05:39]wFMCommunicate request_size=4 [12:05:39]MH_SAM_APDU [12:05:39]CAPDU: 80 13 01 00 [12:05:39]Write to MH i2c: E2 08 00 51 02 80 13 01 00 00 00 00 00 D0 [12:05:39]Write i2c OK [12:05:39]MH_I2C_Read... [12:05:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:39]Read from MH i2c: E2 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: E2 0E 00 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: E2 0E 00 51 02 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 7C [12:05:39]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [12:05:39]wFMCommunicate OK [12:05:39]SAM_PROTO_GetShiftState done [12:05:39]FM_GetShiftState done [12:05:39]req_shift_opened done [12:05:39]requested_item shift.open_date is exist - process it [12:05:39]req_shift_open_date [12:05:39]req_shift_open_date done [12:05:39]produce_requested_data done [12:05:39]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67461,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [12:05:39]process_action_free print_text [12:05:39]json_value_free [12:05:39]json_value_free done [12:05:39]process_json_proto returns [12:05:39]Send response to host [12:05:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67461,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [12:05:39]free response buf [12:05:39]execute_script done [12:05:39]execute_script returns [12:05:39]free content buf [12:05:39]Sock 8.Close socket [12:05:39]Sock 8.Thread stoped [12:05:43]OFD Sender: No OFD packet to send [12:05:48]OFD Sender: No OFD packet to send [12:05:53]OFD Sender: No OFD packet to send [12:05:58]OFD Sender: No OFD packet to send [12:06:03]OFD Sender: No OFD packet to send [12:06:08]OFD Sender: No OFD packet to send [12:06:13]OFD Sender: No OFD packet to send [12:06:18]OFD Sender: No OFD packet to send [12:06:23]OFD Sender: No OFD packet to send [12:06:28]OFD Sender: No OFD packet to send [12:06:33]OFD Sender: No OFD packet to send [12:06:38]OFD Sender: No OFD packet to send [12:06:43]OFD Sender: No OFD packet to send [12:06:48]OFD Sender: No OFD packet to send [12:06:53]OFD Sender: No OFD packet to send [12:06:58]OFD Sender: No OFD packet to send [12:07:03]accept exits with 9 [12:07:03]New connection [12:07:03]New thread 3067039076 created [12:07:03]Thread 3067182436 joined [12:07:03]Waiting for new connection... [12:07:03] Sock 9.Parse request [12:07:03]Sock 9.Check first char [12:07:03]Sock 9.First char is OK [12:07:03]request: POST /json_proto HTTP/1.0 [12:07:03]Method: POST [12:07:03]URL: /json_proto [12:07:03]Method is POST - this is cgi request [12:07:03]url: /json_proto [12:07:03]query_string will be loaded in cgi processing [12:07:03]execute_cgi json_proto POST (null) [12:07:03]execute_cgi path=json_proto method=POST [12:07:03]POST find Content-Length [12:07:03]Host: 172.17.41.195:8080 [12:07:03]Content-Length: 816 [12:07:03]Content-Type: application/json [12:07:03] [12:07:03]POST finish read [12:07:03]Found Content-Length = 816 [12:07:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507501", "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" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:03]execute_script... [12:07: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)507501", "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" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:03]POST & json_proto [12:07:03]process_json_proto [12:07:03]json parsed OK: [12:07:03]protocol is kg_v1.0 [12:07:03]action value=close_receipt [12:07:03]process_action close_receipt [12:07:03]cmd_close_receipt [12:07:03]MH_GetDate [12:07:03]Write to MH i2c: F0 00 00 52 02 43 [12:07:03]Write i2c OK [12:07:03]MH_I2C_Read... [12:07:03]Read from MH i2c: F0 [12:07:03]MH_I2C_Read... [12:07:03]Read from MH i2c: F0 09 00 [12:07:03]MH_I2C_Read... [12:07:03]Read from MH i2c: F0 09 00 52 02 00 E8 F6 45 66 FC 21 6F 64 C5 [12:07:03]GetLastDocTimeStamp 1715860901 [12:07:03]current date 1715861224 [12:07:03]FM_GetShiftState [12:07:03]SAM_PROTO_GetShiftState [12:07:03]wFMCommunicate request_size=4 [12:07:03]MH_SAM_APDU [12:07:03]CAPDU: 80 13 01 00 [12:07:03]Write to MH i2c: E2 08 00 53 02 80 13 01 00 00 00 00 00 D2 [12:07:03]Write i2c OK [12:07:03]MH_I2C_Read... [12:07:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:03]Read from MH i2c: E2 [12:07:03]MH_I2C_Read... [12:07:03]Read from MH i2c: E2 0E 00 [12:07:03]MH_I2C_Read... [12:07:03]Read from MH i2c: E2 0E 00 53 02 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 7E [12:07:03]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [12:07:03]wFMCommunicate OK [12:07:03]SAM_PROTO_GetShiftState done [12:07:03]FM_GetShiftState done [12:07:03]opened in 1715818916 [12:07:03]opened+sec_in_day 1715905316 [12:07:03]quantity*price = 100023 [12:07:03]sum+1 = 100024 [12:07:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.23 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.23 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 60 16.05.2024 12:07 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67462 ФПД: 100273528484910 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T120704&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67462&fm=100273528484910&tin=02508201610067®Number=0000000000091845&sum=100023 [12:07:04]StoreToDocumentArchive [12:07:04]shift 357 fd 67462 [12:07:04]save to /storage/0357/doc_00067462 [12:07:04]save last doc name /storage/0357/doc_00067462 to /storage/kkm_last_doc_name [12:07:04]save OK [12:07:04]Clear old archive folders... [12:07:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:07:04]tlvbuf is 017AC120 [12:07:04]SAM_PROTO_ClearQueue [12:07:04]wFMCommunicate request_size=4 [12:07:04]MH_SAM_APDU [12:07:04]CAPDU: 80 09 00 00 [12:07:04]Write to MH i2c: E2 08 00 60 02 80 09 00 00 00 00 00 00 D4 [12:07:04]Write i2c OK [12:07:04]MH_I2C_Read... [12:07:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:07:04]Read from MH i2c: E2 [12:07:04]MH_I2C_Read... [12:07:04]Read from MH i2c: E2 03 00 [12:07:04]MH_I2C_Read... [12:07:04]Read from MH i2c: E2 03 00 60 02 00 90 00 D6 [12:07:04]RAPDU: 90 00 [12:07:04]wFMCommunicate OK [12:07:04]SAM_PROTO_ClearQueue done [12:07:04]KKMCreateOFDPacket [12:07:04]OFDProtocolAddRootSTLVToBuf [12:07:04]FM_MakeSignedData [12:07:04]FM_MakeSignedData [12:07:04]SAM_PROTO_SignData [12:07:04]wFMCommunicate request_size=4 [12:07:04]MH_SAM_APDU [12:07:04]CAPDU: 80 0D 01 02 [12:07:04]Write to MH i2c: E2 08 00 61 02 80 0D 01 02 00 00 00 00 DC [12:07:04]Write i2c OK [12:07:04]MH_I2C_Read... [12:07:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:07:04]Read from MH i2c: E2 [12:07:04]MH_I2C_Read... [12:07:04]Read from MH i2c: E2 03 00 [12:07:04]MH_I2C_Read... [12:07:04]Read from MH i2c: E2 03 00 61 02 00 90 00 D7 [12:07:04]RAPDU: 90 00 [12:07:04]wFMCommunicate OK [12:07:04]wFMCommunicate request_size=255 [12:07:04]MH_SAM_APDU [12:07: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 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 E8 F6 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 86 07 01 00 35 04 06 00 5B 32 C0 0B [12:07:04]Write to MH i2c: E2 02 01 62 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 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 E8 F6 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 86 07 01 00 35 04 06 00 5B 32 C0 0B 00 00 F5 [12:07:04]Write i2c OK [12:07:04]MH_I2C_Read... [12:07:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:04]Read from MH i2c: E2 [12:07:04]MH_I2C_Read... [12:07:04]Read from MH i2c: E2 03 00 [12:07:04]MH_I2C_Read... [12:07:04]Read from MH i2c: E2 03 00 62 02 00 90 00 D8 [12:07:04]RAPDU: 90 00 [12:07:04]wFMCommunicate OK [12:07:04]wFMCommunicate request_size=7 [12:07:04]MH_SAM_APDU [12:07:04]CAPDU: 80 0D 02 02 02 B4 2E [12:07:04]Write to MH i2c: E2 0A 00 63 02 80 0D 02 02 02 00 B4 2E 00 00 C5 [12:07:04]Write i2c OK [12:07:04]MH_I2C_Read... [12:07:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:04]Read from MH i2c: E2 [12:07:04]MH_I2C_Read... [12:07:04]Read from MH i2c: E2 03 00 [12:07:04]MH_I2C_Read... [12:07:04]Read from MH i2c: E2 03 00 63 02 00 90 00 D9 [12:07:04]RAPDU: 90 00 [12:07:04]wFMCommunicate OK [12:07:04]wFMCommunicate request_size=4 [12:07:04]MH_SAM_APDU [12:07:04]CAPDU: 80 0D 03 02 [12:07:04]Write to MH i2c: E2 08 00 64 02 80 0D 03 02 00 00 00 00 E1 [12:07:04]Write i2c OK [12:07:04]MH_I2C_Read... [12:07:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:07:04]Read from MH i2c: E2 [12:07:04]MH_I2C_Read... [12:07:04]Read from MH i2c: E2 0B 00 [12:07:04]MH_I2C_Read... [12:07:04]Read from MH i2c: E2 0B 00 64 02 00 56 09 77 AB A6 6C F4 AD 90 00 16 [12:07:04]RAPDU: 56 09 77 AB A6 6C F4 AD 90 00 [12:07:04]wFMCommunicate OK [12:07:04]SAM_PROTO_SignData done [12:07:04]FM_MakeSignedData done [12:07:04]CreateOFDProtocolMessage [12:07:04]wFMCommunicate request_size=4 [12:07:04]MH_SAM_APDU [12:07:04]CAPDU: 80 11 00 00 [12:07:04]Write to MH i2c: E2 08 00 65 02 80 11 00 00 00 00 00 00 E1 [12:07:04]Write i2c OK [12:07:04]MH_I2C_Read... [12:07:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:05]Read from MH i2c: E2 [12:07:05]MH_I2C_Read... [12:07:05]Read from MH i2c: E2 17 00 [12:07:05]MH_I2C_Read... [12:07:05]Read from MH i2c: E2 17 00 65 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 37 [12:07:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:07:05]wFMCommunicate OK [12:07:05]CreateOFDProtocolMessage done [12:07:05]OFDSenderStorePacket 67462 [12:07:05]StoreOFDPacket docnum=67462 [12:07:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 18 15 04 01 9A 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 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 E8 F6 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 86 07 01 00 35 04 06 00 5B 32 C0 0B B4 2E 56 09 77 AB A6 6C F4 AD [12:07:05]CheckFolder [12:07:05]dirname=/storage/ofd_packets [12:07:05]CheckFolder done [12:07:05]ProducePacketName [12:07:05]name=ofd_packets/00067462 [12:07:05]NVStorageSaveData ofd_packets/00067462 [12:07:05]File name is /storage/ofd_packets/00067462 [12:07:05]Write 298 bytes [12:07:05]NVStorageSaveData done [12:07:05]OFDSenderStorePacket done [12:07:05]KKMCreateOFDPacket done [12:07:05]NVStorageSaveData kkm_last_timestamp [12:07:05]File name is /storage/kkm_last_timestamp [12:07:05]Write 4 bytes [12:07:05]NVStorageSaveData done [12:07:05]ExternCall_PrintAddStr [12:07:05]wPrintStart [12:07:05]Write to MH i2c: 01 00 00 66 02 68 [12:07:05]Write i2c OK [12:07:05]MH_I2C_Read... [12:07:05]Read from MH i2c: 01 [12:07:05]MH_I2C_Read... [12:07:05]Read from MH i2c: 01 07 00 [12:07:05]MH_I2C_Read... [12:07:05]Read from MH i2c: 01 07 00 66 02 00 00 00 00 00 FF 0F 7D [12:07:05]RasterBufferAndPrint [12:07:05]line Счет N : (1)507501 [12:07:05]line ИНН: 02508201610067 [12:07:05]line Контрольно-Кассовый Чек [12:07:05]line ПРОДАЖА [12:07:05]line ТРК (МРК, ГНК) : 11 [12:07:05]line Товар: 2710194210 [12:07:05]line ДТ-К-5 [12:07:05]line 13.390 * 74.70 [12:07:05]line = 1000.23 [12:07:05]line НДС 12% НСП 1% [12:07:05]line > о реализуемом товаре [12:07:05]line ИТОГО: 1000.23 [12:07:05]line НСП 1% : 8.85 [12:07:05]line НДС 12% : 106.22 [12:07:05]line Наличными: 0.00 [12:07:05]line Безнал.: 1000.23 [12:07:05]line Место: АЗС № 91 "Партнер Нефть" [12:07:05]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:07:05]line СНО: Общий режим [12:07:05]line Чек 60 16.05.2024 12:07 [12:07:05]line Смена: 357 ФФД: 1.0 [12:07:05]line ЗНМ: 0300000119 [12:07:05]line РНМ: 0000000000091845 [12:07:05]line Версия ККМ: 001 [12:07:05]line Платежная система: Бакай Банк [12:07:05]line ФМ: 0000000000871829 [12:07:05]line ФД: 67462 [12:07:05]line ФПД: 100273528484910 [12:07:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T120704&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67462&fm=100273528484910&tin=02508201610067®Number=0000000000091845&sum=100023 [12:07:05]OFD Sender: Processing packet 67462 [packets to send 35, broken 34] [12:07:05]ProducePacketName [12:07:05]name=ofd_packets/00067462 [12:07:05]OFD Sender: To server: pG, [12:07:05]CommunicateWithHost lk.salyk.kg:30040 [12:07:05]ConnectInit lk.salyk.kg [12:07:05]written 0, free lines is 4095 [12:07:05]Connected sock=8 [12:07: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 38 32 39 0C 01 00 00 18 15 04 01 9A 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 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 E8 F6 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 86 07 01 00 35 04 06 00 5B 32 C0 0B B4 2E 56 09 77 AB A6 6C F4 AD [12:07:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 57 77 47 00 9C 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 38 32 39 10 04 04 00 86 07 01 00 F4 03 04 00 C2 9E 45 66 B6 04 01 00 00 25 9F 05 71 39 98 1E 99 [12:07:05]CommunicateWithHost err = 0 [12:07:05]CheckOFDResponse [12:07:05]1017 (14) - 77093643461234 [12:07:05]1041 (16) - 0000000000871829 [12:07:05]1040 (4) - 67462 [12:07:05]1012 (4) - 16.05.2024 05:50 [12:07:05]1206 (1) - 0 [12:07:05]OFD Sender: Remove packet 67462 [12:07:05]ProducePacketName [12:07:05]name=ofd_packets/00067462 [12:07:05]NVStorageDeleteData [12:07:05]Write to MH i2c: 01 00 00 8F 02 91 [12:07:05]Write i2c OK [12:07:05]MH_I2C_Read... [12:07:05]Read from MH i2c: 01 [12:07:05]MH_I2C_Read... [12:07:05]Read from MH i2c: 01 07 00 [12:07:05]MH_I2C_Read... [12:07:05]Read from MH i2c: 01 07 00 8F 02 00 00 00 00 00 DF 0C 83 [12:07:05]RasterBufferAndPrint [12:07:05]line [12:07:05]line [12:07:05]line [12:07:05]line [12:07:05]line [12:07:05]written 0, free lines is 3301 [12:07:05]MH_Cut [12:07:05]Write to MH i2c: D1 01 00 96 02 01 6A [12:07:05]Write i2c OK [12:07:05]MH_I2C_Read... [12:07:05]Read from MH i2c: D1 [12:07:05]MH_I2C_Read... [12:07:05]Read from MH i2c: D1 01 00 [12:07:05]MH_I2C_Read... [12:07:05]Read from MH i2c: D1 01 00 96 02 00 69 [12:07:05]Write to MH i2c: 01 00 00 97 02 99 [12:07:05]Write i2c OK [12:07:05]MH_I2C_Read... [12:07:06]OFD Sender: No OFD packet to send [12:07:06]*** Cut start [12:07:06]*** Purtial cut [12:07:06]*** Stage 1: CUTSNS_PIN = 1 [12:07:06]Read from MH i2c: 01 [12:07:06]MH_I2C_Read... [12:07:06]*** Stop cut motor [12:07:06]*** Cut end [12:07:06]Read from MH i2c: 01 07 00 [12:07:06]MH_I2C_Read... [12:07:06]Read from MH i2c: 01 07 00 97 02 00 00 00 00 00 FF 0F AE [12:07:06]process_action close_receipt done [12:07:06]requested_data is exist [12:07:06]produce_requested_data [12:07:06]requested_item fm.sn is exist - process it [12:07:06]wFMCommunicate request_size=4 [12:07:06]MH_SAM_APDU [12:07:06]CAPDU: 80 11 00 00 [12:07:06]Write to MH i2c: E2 08 00 98 02 80 11 00 00 00 00 00 00 14 [12:07:06]Write i2c OK [12:07:06]MH_I2C_Read... [12:07:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:07]Read from MH i2c: E2 [12:07:07]MH_I2C_Read... [12:07:07]Read from MH i2c: E2 17 00 [12:07:07]MH_I2C_Read... [12:07:07]Read from MH i2c: E2 17 00 98 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 6A [12:07:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:07:07]wFMCommunicate OK [12:07:07]requested_item fd.num is exist - process it [12:07:07]SAM_PROTO_GetFieldsCounters [12:07:07]wFMCommunicate request_size=4 [12:07:07]MH_SAM_APDU [12:07:07]CAPDU: 80 13 00 00 [12:07:07]Write to MH i2c: E2 08 00 99 02 80 13 00 00 00 00 00 00 17 [12:07:07]Write i2c OK [12:07:07]MH_I2C_Read... [12:07:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:07:07]Read from MH i2c: E2 [12:07:07]MH_I2C_Read... [12:07:07]Read from MH i2c: E2 62 00 [12:07:07]MH_I2C_Read... [12:07:07]Read from MH i2c: E2 62 00 99 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 86 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [12:07:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 86 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:07:07]wFMCommunicate OK [12:07:07]SAM_PROTO_GetFieldsCounters done [12:07:07]requested_item shift.num is exist - process it [12:07:07]requested_item shift.opened is exist - process it [12:07:07]req_shift_opened [12:07:07]FM_GetShiftState [12:07:07]SAM_PROTO_GetShiftState [12:07:07]wFMCommunicate request_size=4 [12:07:07]MH_SAM_APDU [12:07:07]CAPDU: 80 13 01 00 [12:07:07]Write to MH i2c: E2 08 00 9A 02 80 13 01 00 00 00 00 00 19 [12:07:07]Write i2c OK [12:07:07]MH_I2C_Read... [12:07:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:07]Read from MH i2c: E2 [12:07:07]MH_I2C_Read... [12:07:07]Read from MH i2c: E2 0E 00 [12:07:07]MH_I2C_Read... [12:07:07]Read from MH i2c: E2 0E 00 9A 02 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 C5 [12:07:07]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [12:07:07]wFMCommunicate OK [12:07:07]SAM_PROTO_GetShiftState done [12:07:07]FM_GetShiftState done [12:07:07]req_shift_opened done [12:07:07]requested_item shift.open_date is exist - process it [12:07:07]req_shift_open_date [12:07:07]req_shift_open_date done [12:07:07]produce_requested_data done [12:07:07]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67462,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [12:07:07]process_action_free close_receipt [12:07:07]json_value_free [12:07:07]json_value_free done [12:07:07]process_json_proto returns [12:07:07]Send response to host [12:07:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67462,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [12:07:07]free response buf [12:07:07]execute_script done [12:07:07]execute_script returns [12:07:07]free content buf [12:07:07]Sock 9.Close socket [12:07:07]Sock 9.Thread stoped [12:07:11]OFD Sender: No OFD packet to send [12:07:16]OFD Sender: No OFD packet to send [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:56]OFD Sender: No OFD packet to send [12:10:01]OFD Sender: No OFD packet to send [12:10:06]OFD Sender: No OFD packet to send [12:10:11]OFD Sender: No OFD packet to send [12:10:16]OFD Sender: No OFD packet to send [12:10:21]OFD Sender: No OFD packet to send [12:10:26]OFD Sender: No OFD packet to send [12:10:31]OFD Sender: No OFD packet to send [12:10:36]OFD Sender: No OFD packet to send [12:10:41]OFD Sender: No OFD packet to send [12:10:46]OFD Sender: No OFD packet to send [12:10:51]OFD Sender: No OFD packet to send [12:10:56]OFD Sender: No OFD packet to send [12:11:01]OFD Sender: No OFD packet to send [12:11:06]OFD Sender: No OFD packet to send [12:11:11]OFD Sender: No OFD packet to send [12:11:16]OFD Sender: No OFD packet to send [12:11:21]OFD Sender: No OFD packet to send [12:11:26]OFD Sender: No OFD packet to send [12:11:31]OFD Sender: No OFD packet to send [12:11:36]OFD Sender: No OFD packet to send [12:11:41]OFD Sender: No OFD packet to send [12:11:46]OFD Sender: No OFD packet to send [12:11:51]OFD Sender: No OFD packet to send [12:11:56]OFD Sender: No OFD packet to send [12:12:01]OFD Sender: No OFD packet to send [12:12:06]OFD Sender: No OFD packet to send [12:12:11]OFD Sender: No OFD packet to send [12:12:16]OFD Sender: No OFD packet to send [12:12:21]OFD Sender: No OFD packet to send [12:12:26]OFD Sender: No OFD packet to send [12:12:31]OFD Sender: No OFD packet to send [12:12:36]OFD Sender: No OFD packet to send [12:12:41]OFD Sender: No OFD packet to send [12:12:46]OFD Sender: No OFD packet to send [12:12:51]OFD Sender: No OFD packet to send [12:12:56]OFD Sender: No OFD packet to send [12:13:01]OFD Sender: No OFD packet to send [12:13:06]OFD Sender: No OFD packet to send [12:13:11]OFD Sender: No OFD packet to send [12:13:16]OFD Sender: No OFD packet to send [12:13:21]OFD Sender: No OFD packet to send [12:13:26]OFD Sender: No OFD packet to send [12:13:31]OFD Sender: No OFD packet to send [12:13:36]OFD Sender: No OFD packet to send [12:13:41]OFD Sender: No OFD packet to send [12:13:46]OFD Sender: No OFD packet to send [12:13:51]OFD Sender: No OFD packet to send [12:13:56]OFD Sender: No OFD packet to send [12:14:01]OFD Sender: No OFD packet to send [12:14:06]OFD Sender: No OFD packet to send [12:14:11]OFD Sender: No OFD packet to send [12:14:16]OFD Sender: No OFD packet to send [12:14:21]OFD Sender: No OFD packet to send [12:14:26]OFD Sender: No OFD packet to send [12:14:31]OFD Sender: No OFD packet to send [12:14:32]accept exits with 10 [12:14:32]New connection [12:14:32]New thread 3067182436 created [12:14:32]Thread 3067039076 joined [12:14:32]Waiting for new connection... [12:14:32] Sock 10.Parse request [12:14:32]Sock 10.Check first char [12:14:32]Sock 10.First char is OK [12:14:32]request: POST /json_proto HTTP/1.0 [12:14:32]Method: POST [12:14:32]URL: /json_proto [12:14:32]Method is POST - this is cgi request [12:14:32]url: /json_proto [12:14:32]query_string will be loaded in cgi processing [12:14:32]execute_cgi json_proto POST (null) [12:14:32]execute_cgi path=json_proto method=POST [12:14:32]POST find Content-Length [12:14:32]Host: 172.17.41.195:8080 [12:14:32]Content-Length: 1209 [12:14:32]Content-Type: application/json [12:14:32] [12:14:32]POST finish read [12:14:32]Found Content-Length = 1209 [12:14:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507502\u000A16.05.2024 11:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.390 x 74.70\u000A\u0418\u0422\u041E\u0413: 1000.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:32]execute_script... [12:14:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507502\u000A16.05.2024 11:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.390 x 74.70\u000A\u0418\u0422\u041E\u0413: 1000.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:32]POST & json_proto [12:14:32]process_json_proto [12:14:32]json parsed OK: [12:14:32]protocol is kg_v1.0 [12:14:32]action value=print_text [12:14:32]process_action print_text [12:14:32]cmd_print_text [12:14:32]ExternCall_PrintAddStr [12:14:32]wPrintStart [12:14:32]Write to MH i2c: 01 00 00 9B 02 9D [12:14:32]Write i2c OK [12:14:32]MH_I2C_Read... [12:14:32]Read from MH i2c: 01 [12:14:32]MH_I2C_Read... [12:14:32]Read from MH i2c: 01 07 00 [12:14:32]MH_I2C_Read... [12:14:32]Read from MH i2c: 01 07 00 9B 02 00 00 00 00 00 FF 0F B2 [12:14:32]RasterBufferAndPrint [12:14:32]line *****ТОВАРНЫЙ ЧЕК***** [12:14:32]line АЗС-91 [12:14:32]line Партнер нефть [12:14:32]line 02508201610067 [12:14:32]line Кассир : Пайзулдаева А. [12:14:32]line Счет N : (1)507502 [12:14:32]line 16.05.2024 11:57 [12:14:32]line ПРОДАЖА [12:14:32]line ТРК (МРК, ГНК): 31 [12:14:32]line Вид ГСМ : 2710194210 [12:14:32]line ДТ-К-5 [12:14:32]line 13.390 x 74.70 [12:14:32]line ИТОГ: 1000.23 [12:14:32]line Тип оплаты: Талоны: Топливная Карта [12:14:32]line 02750 [12:14:32]line ______________________ [12:14:32]line (подпись) [12:14:32]written 0, free lines is 4095 [12:14:32]Write to MH i2c: 01 00 00 AF 02 B1 [12:14:32]Write i2c OK [12:14:32]MH_I2C_Read... [12:14:32]Read from MH i2c: 01 [12:14:32]MH_I2C_Read... [12:14:32]Read from MH i2c: 01 07 00 [12:14:32]MH_I2C_Read... [12:14:32]Read from MH i2c: 01 07 00 AF 02 00 00 00 00 00 0E 0E D4 [12:14:32]RasterBufferAndPrint [12:14:32]line [12:14:32]line [12:14:32]line [12:14:32]line [12:14:32]line [12:14:32]written 0, free lines is 3600 [12:14:32]MH_Cut [12:14:32]Write to MH i2c: D1 01 00 B6 02 01 8A [12:14:32]Write i2c OK [12:14:32]MH_I2C_Read... [12:14:32]Read from MH i2c: D1 [12:14:32]MH_I2C_Read... [12:14:32]Read from MH i2c: D1 01 00 [12:14:32]MH_I2C_Read... [12:14:32]Read from MH i2c: D1 01 00 B6 02 00 89 [12:14:32]Write to MH i2c: 01 00 00 B7 02 B9 [12:14:32]Write i2c OK [12:14:32]MH_I2C_Read... [12:14:32]*** Cut start [12:14:32]*** Purtial cut [12:14:32]*** CUTSNS_PIN = 0 [12:14:33]*** Stage 1: CUTSNS_PIN = 1 [12:14:34]Read from MH i2c: 01 [12:14:34]MH_I2C_Read... [12:14:34]*** Stop cut motor [12:14:34]*** Cut end [12:14:34]Read from MH i2c: 01 07 00 [12:14:34]MH_I2C_Read... [12:14:34]Read from MH i2c: 01 07 00 B7 02 00 00 00 00 00 FF 0F CE [12:14:34]process_action print_text done [12:14:34]requested_data is exist [12:14:34]produce_requested_data [12:14:34]requested_item fm.sn is exist - process it [12:14:34]wFMCommunicate request_size=4 [12:14:34]MH_SAM_APDU [12:14:34]CAPDU: 80 11 00 00 [12:14:34]Write to MH i2c: E2 08 00 B8 02 80 11 00 00 00 00 00 00 34 [12:14:34]Write i2c OK [12:14:34]MH_I2C_Read... [12:14:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:34]Read from MH i2c: E2 [12:14:34]MH_I2C_Read... [12:14:34]Read from MH i2c: E2 17 00 [12:14:34]MH_I2C_Read... [12:14:34]Read from MH i2c: E2 17 00 B8 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 8A [12:14:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:14:34]wFMCommunicate OK [12:14:34]requested_item fd.num is exist - process it [12:14:34]SAM_PROTO_GetFieldsCounters [12:14:34]wFMCommunicate request_size=4 [12:14:34]MH_SAM_APDU [12:14:34]CAPDU: 80 13 00 00 [12:14:34]Write to MH i2c: E2 08 00 B9 02 80 13 00 00 00 00 00 00 37 [12:14:34]Write i2c OK [12:14:34]MH_I2C_Read... [12:14:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:14:35]Read from MH i2c: E2 [12:14:35]MH_I2C_Read... [12:14:35]Read from MH i2c: E2 62 00 [12:14:35]MH_I2C_Read... [12:14:35]Read from MH i2c: E2 62 00 B9 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 86 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [12:14: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 86 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:14:35]wFMCommunicate OK [12:14:35]SAM_PROTO_GetFieldsCounters done [12:14:35]requested_item shift.num is exist - process it [12:14:35]requested_item shift.opened is exist - process it [12:14:35]req_shift_opened [12:14:35]FM_GetShiftState [12:14:35]SAM_PROTO_GetShiftState [12:14:35]wFMCommunicate request_size=4 [12:14:35]MH_SAM_APDU [12:14:35]CAPDU: 80 13 01 00 [12:14:35]Write to MH i2c: E2 08 00 BA 02 80 13 01 00 00 00 00 00 39 [12:14:35]Write i2c OK [12:14:35]MH_I2C_Read... [12:14:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:35]Read from MH i2c: E2 [12:14:35]MH_I2C_Read... [12:14:35]Read from MH i2c: E2 0E 00 [12:14:35]MH_I2C_Read... [12:14:35]Read from MH i2c: E2 0E 00 BA 02 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 E5 [12:14:35]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [12:14:35]wFMCommunicate OK [12:14:35]SAM_PROTO_GetShiftState done [12:14:35]FM_GetShiftState done [12:14:35]req_shift_opened done [12:14:35]requested_item shift.open_date is exist - process it [12:14:35]req_shift_open_date [12:14:35]req_shift_open_date done [12:14:35]produce_requested_data done [12:14:35]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67462,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [12:14:35]process_action_free print_text [12:14:35]json_value_free [12:14:35]json_value_free done [12:14:35]process_json_proto returns [12:14:35]Send response to host [12:14:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67462,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [12:14:35]free response buf [12:14:35]execute_script done [12:14:35]execute_script returns [12:14:35]free content buf [12:14:35]Sock 10.Close socket [12:14:35]Sock 10.Thread stoped [12:14:36]OFD Sender: No OFD packet to send [12:14:41]OFD Sender: No OFD packet to send [12:14:46]OFD Sender: No OFD packet to send [12:14:51]OFD Sender: No OFD packet to send [12:14:56]OFD Sender: No OFD packet to send [12:15:01]OFD Sender: No OFD packet to send [12:15:06]OFD Sender: No OFD packet to send [12:15:11]OFD Sender: No OFD packet to send [12:15:16]OFD Sender: No OFD packet to send [12:15:21]OFD Sender: No OFD packet to send [12:15:26]OFD Sender: No OFD packet to send [12:15:31]OFD Sender: No OFD packet to send [12:15:36]OFD Sender: No OFD packet to send [12:15:41]OFD Sender: No OFD packet to send [12:15:46]OFD Sender: No OFD packet to send [12:15:47]accept exits with 8 [12:15:47]New connection [12:15:47]New thread 3067039076 created [12:15:47]Thread 3067182436 joined [12:15:47]Waiting for new connection... [12:15:47] Sock 8.Parse request [12:15:47]Sock 8.Check first char [12:15:47]Sock 8.First char is OK [12:15:47]request: POST /json_proto HTTP/1.0 [12:15:47]Method: POST [12:15:47]URL: /json_proto [12:15:47]Method is POST - this is cgi request [12:15:47]url: /json_proto [12:15:47]query_string will be loaded in cgi processing [12:15:47]execute_cgi json_proto POST (null) [12:15:47]execute_cgi path=json_proto method=POST [12:15:47]POST find Content-Length [12:15:47]Host: 172.17.41.195:8080 [12:15:47]Content-Length: 674 [12:15:47]Content-Type: application/json [12:15:47] [12:15:47]POST finish read [12:15:47]Found Content-Length = 674 [12:15:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507503", "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" : 74.70, "quantity" : 6.700, "sum" : 500.49, "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:15:47]execute_script... [12:15: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)507503", "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" : 74.70, "quantity" : 6.700, "sum" : 500.49, "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:15:47]POST & json_proto [12:15:47]process_json_proto [12:15:47]json parsed OK: [12:15:47]protocol is kg_v1.0 [12:15:47]action value=close_receipt [12:15:47]process_action close_receipt [12:15:47]cmd_close_receipt [12:15:47]MH_GetDate [12:15:47]Write to MH i2c: F0 00 00 BB 02 AC [12:15:47]Write i2c OK [12:15:47]MH_I2C_Read... [12:15:47]Read from MH i2c: F0 [12:15:47]MH_I2C_Read... [12:15:47]Read from MH i2c: F0 09 00 [12:15:47]MH_I2C_Read... [12:15:47]Read from MH i2c: F0 09 00 BB 02 00 F4 F8 45 66 FC 21 6F 64 3C [12:15:47]GetLastDocTimeStamp 1715861224 [12:15:47]current date 1715861748 [12:15:47]FM_GetShiftState [12:15:47]SAM_PROTO_GetShiftState [12:15:47]wFMCommunicate request_size=4 [12:15:47]MH_SAM_APDU [12:15:47]CAPDU: 80 13 01 00 [12:15:47]Write to MH i2c: E2 08 00 BC 02 80 13 01 00 00 00 00 00 3B [12:15:47]Write i2c OK [12:15:47]MH_I2C_Read... [12:15:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:47]Read from MH i2c: E2 [12:15:47]MH_I2C_Read... [12:15:47]Read from MH i2c: E2 0E 00 [12:15:47]MH_I2C_Read... [12:15:47]Read from MH i2c: E2 0E 00 BC 02 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 E7 [12:15:47]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [12:15:47]wFMCommunicate OK [12:15:47]SAM_PROTO_GetShiftState done [12:15:47]FM_GetShiftState done [12:15:47]opened in 1715818916 [12:15:47]opened+sec_in_day 1715905316 [12:15:47]quantity*price = 50049 [12:15:47]sum+1 = 50050 [12:15:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 61 16.05.2024 12:15 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67463 ФПД: 127325852826147 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T121548&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67463&fm=127325852826147&tin=02508201610067®Number=0000000000091845&sum=50000 [12:15:48]StoreToDocumentArchive [12:15:48]shift 357 fd 67463 [12:15:48]save to /storage/0357/doc_00067463 [12:15:48]save last doc name /storage/0357/doc_00067463 to /storage/kkm_last_doc_name [12:15:48]save OK [12:15:48]Clear old archive folders... [12:15:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:15:48]tlvbuf is 017AE660 [12:15:48]SAM_PROTO_ClearQueue [12:15:48]wFMCommunicate request_size=4 [12:15:48]MH_SAM_APDU [12:15:48]CAPDU: 80 09 00 00 [12:15:48]Write to MH i2c: E2 08 00 C9 02 80 09 00 00 00 00 00 00 3D [12:15:48]Write i2c OK [12:15:48]MH_I2C_Read... [12:15:48]Read from MH i2c: E2 [12:15:48]MH_I2C_Read... [12:15:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:15:48]Read from MH i2c: E2 03 00 [12:15:48]MH_I2C_Read... [12:15:48]Read from MH i2c: E2 03 00 C9 02 00 90 00 3F [12:15:48]RAPDU: 90 00 [12:15:48]wFMCommunicate OK [12:15:48]SAM_PROTO_ClearQueue done [12:15:48]KKMCreateOFDPacket [12:15:48]OFDProtocolAddRootSTLVToBuf [12:15:48]FM_MakeSignedData [12:15:48]FM_MakeSignedData [12:15:48]SAM_PROTO_SignData [12:15:48]wFMCommunicate request_size=4 [12:15:48]MH_SAM_APDU [12:15:48]CAPDU: 80 0D 01 02 [12:15:48]Write to MH i2c: E2 08 00 CA 02 80 0D 01 02 00 00 00 00 45 [12:15:48]Write i2c OK [12:15:48]MH_I2C_Read... [12:15:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:15:48]Read from MH i2c: E2 [12:15:48]MH_I2C_Read... [12:15:48]Read from MH i2c: E2 03 00 [12:15:48]MH_I2C_Read... [12:15:48]Read from MH i2c: E2 03 00 CA 02 00 90 00 40 [12:15:48]RAPDU: 90 00 [12:15:48]wFMCommunicate OK [12:15:48]wFMCommunicate request_size=255 [12:15:48]MH_SAM_APDU [12:15:48]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 F4 F8 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 87 07 01 00 35 04 06 00 73 CD 5C 3A [12:15:48]Write to MH i2c: E2 02 01 CB 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 2C 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 F4 F8 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 87 07 01 00 35 04 06 00 73 CD 5C 3A 00 00 D4 [12:15:48]Write i2c OK [12:15:48]MH_I2C_Read... [12:15:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:49]Read from MH i2c: E2 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: E2 03 00 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: E2 03 00 CB 02 00 90 00 41 [12:15:49]RAPDU: 90 00 [12:15:49]wFMCommunicate OK [12:15:49]wFMCommunicate request_size=7 [12:15:49]MH_SAM_APDU [12:15:49]CAPDU: 80 0D 02 02 02 7A 23 [12:15:49]Write to MH i2c: E2 0A 00 CC 02 80 0D 02 02 02 00 7A 23 00 00 E9 [12:15:49]Write i2c OK [12:15:49]MH_I2C_Read... [12:15:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:49]Read from MH i2c: E2 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: E2 03 00 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: E2 03 00 CC 02 00 90 00 42 [12:15:49]RAPDU: 90 00 [12:15:49]wFMCommunicate OK [12:15:49]wFMCommunicate request_size=4 [12:15:49]MH_SAM_APDU [12:15:49]CAPDU: 80 0D 03 02 [12:15:49]Write to MH i2c: E2 08 00 CD 02 80 0D 03 02 00 00 00 00 4A [12:15:49]Write i2c OK [12:15:49]MH_I2C_Read... [12:15:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:15:49]Read from MH i2c: E2 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: E2 0B 00 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: E2 0B 00 CD 02 00 11 1F E7 6C 05 EF 27 96 90 00 7F [12:15:49]RAPDU: 11 1F E7 6C 05 EF 27 96 90 00 [12:15:49]wFMCommunicate OK [12:15:49]SAM_PROTO_SignData done [12:15:49]FM_MakeSignedData done [12:15:49]CreateOFDProtocolMessage [12:15:49]wFMCommunicate request_size=4 [12:15:49]MH_SAM_APDU [12:15:49]CAPDU: 80 11 00 00 [12:15:49]Write to MH i2c: E2 08 00 CE 02 80 11 00 00 00 00 00 00 4A [12:15:49]Write i2c OK [12:15:49]MH_I2C_Read... [12:15:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:49]Read from MH i2c: E2 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: E2 17 00 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: E2 17 00 CE 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A0 [12:15:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:15:49]wFMCommunicate OK [12:15:49]CreateOFDProtocolMessage done [12:15:49]OFDSenderStorePacket 67463 [12:15:49]StoreOFDPacket docnum=67463 [12:15:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 83 FA 04 01 0C 59 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 F4 F8 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 87 07 01 00 35 04 06 00 73 CD 5C 3A 7A 23 11 1F E7 6C 05 EF 27 96 [12:15:49]CheckFolder [12:15:49]dirname=/storage/ofd_packets [12:15:49]CheckFolder done [12:15:49]ProducePacketName [12:15:49]name=ofd_packets/00067463 [12:15:49]NVStorageSaveData ofd_packets/00067463 [12:15:49]File name is /storage/ofd_packets/00067463 [12:15:49]Write 298 bytes [12:15:49]NVStorageSaveData done [12:15:49]OFDSenderStorePacket done [12:15:49]KKMCreateOFDPacket done [12:15:49]NVStorageSaveData kkm_last_timestamp [12:15:49]File name is /storage/kkm_last_timestamp [12:15:49]Write 4 bytes [12:15:49]NVStorageSaveData done [12:15:49]ExternCall_PrintAddStr [12:15:49]wPrintStart [12:15:49]Write to MH i2c: 01 00 00 CF 02 D1 [12:15:49]Write i2c OK [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: 01 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: 01 07 00 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: 01 07 00 CF 02 00 00 00 00 00 FF 0F E6 [12:15:49]RasterBufferAndPrint [12:15:49]line Счет N : (1)507503 [12:15:49]line ИНН: 02508201610067 [12:15:49]line Контрольно-Кассовый Чек [12:15:49]line ПРОДАЖА [12:15:49]line ТРК (МРК, ГНК) : 11 [12:15:49]line Товар: 2710194210 [12:15:49]line ДТ-К-5 [12:15:49]line 6.700 * 74.70 [12:15:49]line = 500.49 [12:15:49]line НДС 12% НСП 1% [12:15:49]line > о реализуемом товаре [12:15:49]line ОКРУГЛЕНИЕ: -0.49 [12:15:49]line ИТОГО: 500.00 [12:15:49]line Внесено: 500.00 [12:15:49]line СДАЧА: 0.00 [12:15:49]line НСП 1% : 4.43 [12:15:49]line НДС 12% : 53.15 [12:15:49]line Наличными: 500.00 [12:15:49]line Безнал.: 0.00 [12:15:49]line Место: АЗС № 91 "Партнер Нефть" [12:15:49]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:15:49]line СНО: Общий режим [12:15:49]line Чек 61 16.05.2024 12:15 [12:15:49]line Смена: 357 ФФД: 1.0 [12:15:49]line ЗНМ: 0300000119 [12:15:49]line РНМ: 0000000000091845 [12:15:49]line Версия ККМ: 001 [12:15:49]line ФМ: 0000000000871829 [12:15:49]line ФД: 67463 [12:15:49]line ФПД: 127325852826147 [12:15:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T121548&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67463&fm=127325852826147&tin=02508201610067®Number=0000000000091845&sum=50000 [12:15:49]OFD Sender: Processing packet 67463 [packets to send 35, broken 34] [12:15:49]ProducePacketName [12:15:49]name=ofd_packets/00067463 [12:15:49]OFD Sender: To server: pG, [12:15:49]CommunicateWithHost lk.salyk.kg:30040 [12:15:49]ConnectInit lk.salyk.kg [12:15:49]written 0, free lines is 4095 [12:15:49]Connected sock=10 [12:15:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 83 FA 04 01 0C 59 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 F4 F8 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 87 07 01 00 35 04 06 00 73 CD 5C 3A 7A 23 11 1F E7 6C 05 EF 27 96 [12:15:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 DC DE 47 00 43 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 38 32 39 10 04 04 00 87 07 01 00 F4 03 04 00 CF A0 45 66 B6 04 01 00 00 B1 D7 DD 10 4A 79 7B 37 [12:15:50]CommunicateWithHost err = 0 [12:15:50]CheckOFDResponse [12:15:50]1017 (14) - 77093643461234 [12:15:50]1041 (16) - 0000000000871829 [12:15:50]1040 (4) - 67463 [12:15:50]1012 (4) - 16.05.2024 05:59 [12:15:50]1206 (1) - 0 [12:15:50]OFD Sender: Remove packet 67463 [12:15:50]ProducePacketName [12:15:50]name=ofd_packets/00067463 [12:15:50]NVStorageDeleteData [12:15:50]Write to MH i2c: 01 00 00 F9 02 FB [12:15:50]Write i2c OK [12:15:50]MH_I2C_Read... [12:15:50]Read from MH i2c: 01 [12:15:50]MH_I2C_Read... [12:15:50]Read from MH i2c: 01 07 00 [12:15:50]MH_I2C_Read... [12:15:50]Read from MH i2c: 01 07 00 F9 02 00 00 00 00 00 BE 0C CC [12:15:50]RasterBufferAndPrint [12:15:50]line [12:15:50]line [12:15:50]line [12:15:50]line [12:15:50]line [12:15:50]written 0, free lines is 3268 [12:15:50]MH_Cut [12:15:50]Write to MH i2c: D1 01 00 00 03 01 D5 [12:15:50]Write i2c OK [12:15:50]MH_I2C_Read... [12:15:50]Read from MH i2c: D1 [12:15:50]MH_I2C_Read... [12:15:50]Read from MH i2c: D1 01 00 [12:15:50]MH_I2C_Read... [12:15:50]Read from MH i2c: D1 01 00 00 03 00 D4 [12:15:50]Write to MH i2c: 01 00 00 01 03 04 [12:15:50]Write i2c OK [12:15:50]MH_I2C_Read... [12:15:50]OFD Sender: No OFD packet to send [12:15:50]*** Cut start [12:15:50]*** Purtial cut [12:15:50]*** Stage 1: CUTSNS_PIN = 1 [12:15:51]Read from MH i2c: 01 [12:15:51]MH_I2C_Read... [12:15:51]*** Stop cut motor [12:15:51]*** Cut end [12:15:51]Read from MH i2c: 01 07 00 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: 01 07 00 01 03 00 00 00 00 00 FF 0F 19 [12:15:51]process_action close_receipt done [12:15:51]requested_data is exist [12:15:51]produce_requested_data [12:15:51]requested_item fm.sn is exist - process it [12:15:51]wFMCommunicate request_size=4 [12:15:51]MH_SAM_APDU [12:15:51]CAPDU: 80 11 00 00 [12:15:51]Write to MH i2c: E2 08 00 02 03 80 11 00 00 00 00 00 00 7F [12:15:51]Write i2c OK [12:15:51]MH_I2C_Read... [12:15:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:51]Read from MH i2c: E2 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: E2 17 00 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: E2 17 00 02 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D5 [12:15:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:15:51]wFMCommunicate OK [12:15:51]requested_item fd.num is exist - process it [12:15:51]SAM_PROTO_GetFieldsCounters [12:15:51]wFMCommunicate request_size=4 [12:15:51]MH_SAM_APDU [12:15:51]CAPDU: 80 13 00 00 [12:15:51]Write to MH i2c: E2 08 00 03 03 80 13 00 00 00 00 00 00 82 [12:15:51]Write i2c OK [12:15:51]MH_I2C_Read... [12:15:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:15:51]Read from MH i2c: E2 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: E2 62 00 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: E2 62 00 03 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 87 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [12:15: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 87 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:15:51]wFMCommunicate OK [12:15:51]SAM_PROTO_GetFieldsCounters done [12:15:51]requested_item shift.num is exist - process it [12:15:51]requested_item shift.opened is exist - process it [12:15:51]req_shift_opened [12:15:51]FM_GetShiftState [12:15:51]SAM_PROTO_GetShiftState [12:15:51]wFMCommunicate request_size=4 [12:15:51]MH_SAM_APDU [12:15:51]CAPDU: 80 13 01 00 [12:15:51]Write to MH i2c: E2 08 00 04 03 80 13 01 00 00 00 00 00 84 [12:15:51]Write i2c OK [12:15:51]MH_I2C_Read... [12:15:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:51]Read from MH i2c: E2 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: E2 0E 00 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: E2 0E 00 04 03 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 30 [12:15:51]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [12:15:51]wFMCommunicate OK [12:15:51]SAM_PROTO_GetShiftState done [12:15:51]FM_GetShiftState done [12:15:51]req_shift_opened done [12:15:51]requested_item shift.open_date is exist - process it [12:15:51]req_shift_open_date [12:15:51]req_shift_open_date done [12:15:51]produce_requested_data done [12:15:51]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67463,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [12:15:51]process_action_free close_receipt [12:15:51]json_value_free [12:15:51]json_value_free done [12:15:51]process_json_proto returns [12:15:51]Send response to host [12:15:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67463,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [12:15:51]free response buf [12:15:51]execute_script done [12:15:51]execute_script returns [12:15:51]free content buf [12:15:51]Sock 8.Close socket [12:15:51]Sock 8.Thread stoped [12:15:55]OFD Sender: No OFD packet to send [12:16:00]OFD Sender: No OFD packet to send [12:16:05]OFD Sender: No OFD packet to send [12:16:10]OFD Sender: No OFD packet to send [12:16:15]OFD Sender: No OFD packet to send [12:16:20]OFD Sender: No OFD packet to send [12:16:25]OFD Sender: No OFD packet to send [12:16:30]OFD Sender: No OFD packet to send [12:16:35]OFD Sender: No OFD packet to send [12:16:40]OFD Sender: No OFD packet to send [12:16:45]OFD Sender: No OFD packet to send [12:16:50]OFD Sender: No OFD packet to send [12:16:55]OFD Sender: No OFD packet to send [12:17:00]OFD Sender: No OFD packet to send [12:17:05]OFD Sender: No OFD packet to send [12:17:10]OFD Sender: No OFD packet to send [12:17:15]OFD Sender: No OFD packet to send [12:17:20]OFD Sender: No OFD packet to send [12:17:25]OFD Sender: No OFD packet to send [12:17:30]OFD Sender: No OFD packet to send [12:17:35]OFD Sender: No OFD packet to send [12:17:40]OFD Sender: No OFD packet to send [12:17:45]OFD Sender: No OFD packet to send [12:17:50]OFD Sender: No OFD packet to send [12:17:55]OFD Sender: No OFD packet to send [12:18:00]OFD Sender: No OFD packet to send [12:18:05]OFD Sender: No OFD packet to send [12:18:10]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:55]OFD Sender: No OFD packet to send [12:19:00]OFD Sender: No OFD packet to send [12:19:05]OFD Sender: No OFD packet to send [12:19:10]OFD Sender: No OFD packet to send [12:19:15]OFD Sender: No OFD packet to send [12:19:20]OFD Sender: No OFD packet to send [12:19:25]OFD Sender: No OFD packet to send [12:19:30]OFD Sender: No OFD packet to send [12:19:35]OFD Sender: No OFD packet to send [12:19:40]OFD Sender: No OFD packet to send [12:19:41]accept exits with 9 [12:19:41]New connection [12:19:41]New thread 3067182436 created [12:19:41]Thread 3067039076 joined [12:19:41]Waiting for new connection... [12:19:41] Sock 9.Parse request [12:19:41]Sock 9.Check first char [12:19:41]Sock 9.First char is OK [12:19:41]request: POST /json_proto HTTP/1.0 [12:19:41]Method: POST [12:19:41]URL: /json_proto [12:19:41]Method is POST - this is cgi request [12:19:41]url: /json_proto [12:19:41]query_string will be loaded in cgi processing [12:19:41]execute_cgi json_proto POST (null) [12:19:41]execute_cgi path=json_proto method=POST [12:19:41]POST find Content-Length [12:19:41]Host: 172.17.41.195:8080 [12:19:41]Content-Length: 800 [12:19:41]Content-Type: application/json [12:19:41] [12:19:41]POST finish read [12:19:41]Found Content-Length = 800 [12:19:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507504", "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" : 74.70, "quantity" : 20.090, "sum" : 1500.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.72 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:41]execute_script... [12:19: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)507504", "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" : 74.70, "quantity" : 20.090, "sum" : 1500.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.72 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:41]POST & json_proto [12:19:41]process_json_proto [12:19:41]json parsed OK: [12:19:41]protocol is kg_v1.0 [12:19:41]action value=close_receipt [12:19:41]process_action close_receipt [12:19:41]cmd_close_receipt [12:19:41]MH_GetDate [12:19:41]Write to MH i2c: F0 00 00 05 03 F7 [12:19:41]Write i2c OK [12:19:41]MH_I2C_Read... [12:19:41]Read from MH i2c: F0 [12:19:41]MH_I2C_Read... [12:19:41]Read from MH i2c: F0 09 00 [12:19:41]MH_I2C_Read... [12:19:41]Read from MH i2c: F0 09 00 05 03 00 DD F9 45 66 FC 21 6F 64 71 [12:19:41]GetLastDocTimeStamp 1715861748 [12:19:41]current date 1715861981 [12:19:41]FM_GetShiftState [12:19:41]SAM_PROTO_GetShiftState [12:19:41]wFMCommunicate request_size=4 [12:19:41]MH_SAM_APDU [12:19:41]CAPDU: 80 13 01 00 [12:19:41]Write to MH i2c: E2 08 00 06 03 80 13 01 00 00 00 00 00 86 [12:19:41]Write i2c OK [12:19:41]MH_I2C_Read... [12:19:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:41]Read from MH i2c: E2 [12:19:41]MH_I2C_Read... [12:19:41]Read from MH i2c: E2 0E 00 [12:19:41]MH_I2C_Read... [12:19:41]Read from MH i2c: E2 0E 00 06 03 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 32 [12:19:41]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [12:19:41]wFMCommunicate OK [12:19:41]SAM_PROTO_GetShiftState done [12:19:41]FM_GetShiftState done [12:19:41]opened in 1715818916 [12:19:41]opened+sec_in_day 1715905316 [12:19:41]quantity*price = 150072 [12:19:41]sum+1 = 150073 [12:19:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.72 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 0.00 Безнал.: 1500.72 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 62 16.05.2024 12:19 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67464 ФПД: 20916561238512 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T121941&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67464&fm=20916561238512&tin=02508201610067®Number=0000000000091845&sum=150072 [12:19:42]StoreToDocumentArchive [12:19:42]shift 357 fd 67464 [12:19:42]save to /storage/0357/doc_00067464 [12:19:42]save last doc name /storage/0357/doc_00067464 to /storage/kkm_last_doc_name [12:19:42]save OK [12:19:42]Clear old archive folders... [12:19:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:19:42]tlvbuf is 017620F0 [12:19:42]SAM_PROTO_ClearQueue [12:19:42]wFMCommunicate request_size=4 [12:19:42]MH_SAM_APDU [12:19:42]CAPDU: 80 09 00 00 [12:19:42]Write to MH i2c: E2 08 00 13 03 80 09 00 00 00 00 00 00 88 [12:19:42]Write i2c OK [12:19:42]MH_I2C_Read... [12:19:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:42]Read from MH i2c: E2 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: E2 03 00 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: E2 03 00 13 03 00 90 00 8A [12:19:42]RAPDU: 90 00 [12:19:42]wFMCommunicate OK [12:19:42]SAM_PROTO_ClearQueue done [12:19:42]KKMCreateOFDPacket [12:19:42]OFDProtocolAddRootSTLVToBuf [12:19:42]FM_MakeSignedData [12:19:42]FM_MakeSignedData [12:19:42]SAM_PROTO_SignData [12:19:42]wFMCommunicate request_size=4 [12:19:42]MH_SAM_APDU [12:19:42]CAPDU: 80 0D 01 02 [12:19:42]Write to MH i2c: E2 08 00 14 03 80 0D 01 02 00 00 00 00 90 [12:19:42]Write i2c OK [12:19:42]MH_I2C_Read... [12:19:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:42]Read from MH i2c: E2 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: E2 03 00 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: E2 03 00 14 03 00 90 00 8B [12:19:42]RAPDU: 90 00 [12:19:42]wFMCommunicate OK [12:19:42]wFMCommunicate request_size=255 [12:19:42]MH_SAM_APDU [12:19: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 7A 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 38 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 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 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 DD F9 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 88 07 01 00 35 04 06 00 13 06 04 33 [12:19:42]Write to MH i2c: E2 02 01 15 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 7A 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 38 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 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 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 DD F9 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 88 07 01 00 35 04 06 00 13 06 04 33 00 00 4A [12:19:42]Write i2c OK [12:19:42]MH_I2C_Read... [12:19:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:42]Read from MH i2c: E2 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: E2 03 00 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: E2 03 00 15 03 00 90 00 8C [12:19:42]RAPDU: 90 00 [12:19:42]wFMCommunicate OK [12:19:42]wFMCommunicate request_size=7 [12:19:42]MH_SAM_APDU [12:19:42]CAPDU: 80 0D 02 02 02 D9 F0 [12:19:42]Write to MH i2c: E2 0A 00 16 03 80 0D 02 02 02 00 D9 F0 00 00 60 [12:19:42]Write i2c OK [12:19:42]MH_I2C_Read... [12:19:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:42]Read from MH i2c: E2 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: E2 03 00 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: E2 03 00 16 03 00 90 00 8D [12:19:42]RAPDU: 90 00 [12:19:42]wFMCommunicate OK [12:19:42]wFMCommunicate request_size=4 [12:19:42]MH_SAM_APDU [12:19:42]CAPDU: 80 0D 03 02 [12:19:42]Write to MH i2c: E2 08 00 17 03 80 0D 03 02 00 00 00 00 95 [12:19:42]Write i2c OK [12:19:42]MH_I2C_Read... [12:19:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:42]Read from MH i2c: E2 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: E2 0B 00 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: E2 0B 00 17 03 00 76 54 1D C1 6D 07 B5 17 90 00 7E [12:19:42]RAPDU: 76 54 1D C1 6D 07 B5 17 90 00 [12:19:42]wFMCommunicate OK [12:19:42]SAM_PROTO_SignData done [12:19:42]FM_MakeSignedData done [12:19:42]CreateOFDProtocolMessage [12:19:42]wFMCommunicate request_size=4 [12:19:42]MH_SAM_APDU [12:19:42]CAPDU: 80 11 00 00 [12:19:42]Write to MH i2c: E2 08 00 18 03 80 11 00 00 00 00 00 00 95 [12:19:42]Write i2c OK [12:19:42]MH_I2C_Read... [12:19:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:42]Read from MH i2c: E2 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: E2 17 00 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: E2 17 00 18 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 EB [12:19:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:19:42]wFMCommunicate OK [12:19:42]CreateOFDProtocolMessage done [12:19:42]OFDSenderStorePacket 67464 [12:19:42]StoreOFDPacket docnum=67464 [12:19:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 F1 55 04 01 0F 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 7A 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 38 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 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 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 DD F9 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 88 07 01 00 35 04 06 00 13 06 04 33 D9 F0 76 54 1D C1 6D 07 B5 17 [12:19:42]CheckFolder [12:19:42]dirname=/storage/ofd_packets [12:19:42]CheckFolder done [12:19:42]ProducePacketName [12:19:42]name=ofd_packets/00067464 [12:19:42]NVStorageSaveData ofd_packets/00067464 [12:19:42]File name is /storage/ofd_packets/00067464 [12:19:42]Write 298 bytes [12:19:42]NVStorageSaveData done [12:19:42]OFDSenderStorePacket done [12:19:42]KKMCreateOFDPacket done [12:19:42]NVStorageSaveData kkm_last_timestamp [12:19:42]File name is /storage/kkm_last_timestamp [12:19:42]Write 4 bytes [12:19:42]NVStorageSaveData done [12:19:42]ExternCall_PrintAddStr [12:19:42]wPrintStart [12:19:42]Write to MH i2c: 01 00 00 19 03 1C [12:19:42]Write i2c OK [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: 01 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: 01 07 00 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: 01 07 00 19 03 00 00 00 00 00 FF 0F 31 [12:19:42]RasterBufferAndPrint [12:19:42]line Счет N : (1)507504 [12:19:42]line ИНН: 02508201610067 [12:19:42]line Контрольно-Кассовый Чек [12:19:42]line ПРОДАЖА [12:19:42]line ТРК (МРК, ГНК) : 31 [12:19:42]line Товар: 2710194210 [12:19:42]line ДТ-К-5 [12:19:42]line 20.090 * 74.70 [12:19:42]line = 1500.72 [12:19:42]line НДС 12% НСП 1% [12:19:42]line > о реализуемом товаре [12:19:42]line ИТОГО: 1500.72 [12:19:42]line НСП 1% : 13.28 [12:19:42]line НДС 12% : 159.37 [12:19:42]line Наличными: 0.00 [12:19:42]line Безнал.: 1500.72 [12:19:42]line Место: АЗС № 91 "Партнер Нефть" [12:19:42]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:19:42]line СНО: Общий режим [12:19:42]line Чек 62 16.05.2024 12:19 [12:19:42]line Смена: 357 ФФД: 1.0 [12:19:42]line ЗНМ: 0300000119 [12:19:42]line РНМ: 0000000000091845 [12:19:42]line Версия ККМ: 001 [12:19:43]line Платежная система: O! деньги [12:19:43]line ФМ: 0000000000871829 [12:19:43]line ФД: 67464 [12:19:43]line ФПД: 20916561238512 [12:19:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T121941&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67464&fm=20916561238512&tin=02508201610067®Number=0000000000091845&sum=150072 [12:19:43]OFD Sender: Processing packet 67464 [packets to send 35, broken 34] [12:19:43]ProducePacketName [12:19:43]name=ofd_packets/00067464 [12:19:43]OFD Sender: To server: pG, [12:19:43]CommunicateWithHost lk.salyk.kg:30040 [12:19:43]ConnectInit lk.salyk.kg [12:19:43]written 0, free lines is 4095 [12:19:43]Connected sock=10 [12:19: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 38 32 39 0C 01 00 00 F1 55 04 01 0F 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 7A 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 38 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 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 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 DD F9 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 88 07 01 00 35 04 06 00 13 06 04 33 D9 F0 76 54 1D C1 6D 07 B5 17 [12:19:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 F0 FB 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 38 32 39 10 04 04 00 88 07 01 00 F4 03 04 00 B8 A1 45 66 B6 04 01 00 00 61 69 D6 2B F3 2E ED EE [12:19:43]CommunicateWithHost err = 0 [12:19:43]CheckOFDResponse [12:19:43]1017 (14) - 77093643461234 [12:19:43]1041 (16) - 0000000000871829 [12:19:43]1040 (4) - 67464 [12:19:43]1012 (4) - 16.05.2024 06:03 [12:19:43]1206 (1) - 0 [12:19:43]OFD Sender: Remove packet 67464 [12:19:43]ProducePacketName [12:19:43]name=ofd_packets/00067464 [12:19:43]NVStorageDeleteData [12:19:43]Write to MH i2c: 01 00 00 42 03 45 [12:19:43]Write i2c OK [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: 01 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: 01 07 00 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: 01 07 00 42 03 00 00 00 00 00 D2 0C 2A [12:19:43]RasterBufferAndPrint [12:19:43]line [12:19:43]line [12:19:43]line [12:19:43]line [12:19:43]line [12:19:43]written 0, free lines is 3288 [12:19:43]MH_Cut [12:19:43]Write to MH i2c: D1 01 00 49 03 01 1E [12:19:43]Write i2c OK [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: D1 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: D1 01 00 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: D1 01 00 49 03 00 1D [12:19:43]Write to MH i2c: 01 00 00 4A 03 4D [12:19:43]Write i2c OK [12:19:43]MH_I2C_Read... [12:19:43]OFD Sender: No OFD packet to send [12:19:44]*** Cut start [12:19:44]*** Purtial cut [12:19:44]*** CUTSNS_PIN = 0 [12:19:44]*** Stage 1: CUTSNS_PIN = 1 [12:19:46]Read from MH i2c: 01 [12:19:46]MH_I2C_Read... [12:19:46]*** Stop cut motor [12:19:46]*** Cut end [12:19:46]Read from MH i2c: 01 07 00 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: 01 07 00 4A 03 00 00 00 00 00 FF 0F 62 [12:19:46]process_action close_receipt done [12:19:46]requested_data is exist [12:19:46]produce_requested_data [12:19:46]requested_item fm.sn is exist - process it [12:19:46]wFMCommunicate request_size=4 [12:19:46]MH_SAM_APDU [12:19:46]CAPDU: 80 11 00 00 [12:19:46]Write to MH i2c: E2 08 00 4B 03 80 11 00 00 00 00 00 00 C8 [12:19:46]Write i2c OK [12:19:46]MH_I2C_Read... [12:19:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:46]Read from MH i2c: E2 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: E2 17 00 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: E2 17 00 4B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 1E [12:19:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:19:46]wFMCommunicate OK [12:19:46]requested_item fd.num is exist - process it [12:19:46]SAM_PROTO_GetFieldsCounters [12:19:46]wFMCommunicate request_size=4 [12:19:46]MH_SAM_APDU [12:19:46]CAPDU: 80 13 00 00 [12:19:46]Write to MH i2c: E2 08 00 4C 03 80 13 00 00 00 00 00 00 CB [12:19:46]Write i2c OK [12:19:46]MH_I2C_Read... [12:19:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:46]Read from MH i2c: E2 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: E2 62 00 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: E2 62 00 4C 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 88 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [12:19: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 88 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:19:46]wFMCommunicate OK [12:19:46]SAM_PROTO_GetFieldsCounters done [12:19:46]requested_item shift.num is exist - process it [12:19:46]requested_item shift.opened is exist - process it [12:19:46]req_shift_opened [12:19:46]FM_GetShiftState [12:19:46]SAM_PROTO_GetShiftState [12:19:46]wFMCommunicate request_size=4 [12:19:46]MH_SAM_APDU [12:19:46]CAPDU: 80 13 01 00 [12:19:46]Write to MH i2c: E2 08 00 4D 03 80 13 01 00 00 00 00 00 CD [12:19:46]Write i2c OK [12:19:46]MH_I2C_Read... [12:19:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:46]Read from MH i2c: E2 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: E2 0E 00 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: E2 0E 00 4D 03 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 79 [12:19:46]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [12:19:46]wFMCommunicate OK [12:19:46]SAM_PROTO_GetShiftState done [12:19:46]FM_GetShiftState done [12:19:46]req_shift_opened done [12:19:46]requested_item shift.open_date is exist - process it [12:19:46]req_shift_open_date [12:19:46]req_shift_open_date done [12:19:46]produce_requested_data done [12:19:46]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67464,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [12:19:46]process_action_free close_receipt [12:19:46]json_value_free [12:19:46]json_value_free done [12:19:46]process_json_proto returns [12:19:46]Send response to host [12:19:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67464,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [12:19:46]free response buf [12:19:46]execute_script done [12:19:46]execute_script returns [12:19:46]free content buf [12:19:46]Sock 9.Close socket [12:19:46]Sock 9.Thread stoped [12:19:49]OFD Sender: No OFD packet to send [12:19:54]OFD Sender: No OFD packet to send [12:19:59]OFD Sender: No OFD packet to send [12:20:04]OFD Sender: No OFD packet to send [12:20:09]OFD Sender: No OFD packet to send [12:20:14]OFD Sender: No OFD packet to send [12:20:19]OFD Sender: No OFD packet to send [12:20:24]OFD Sender: No OFD packet to send [12:20:29]OFD Sender: No OFD packet to send [12:20:34]OFD Sender: No OFD packet to send [12:20:39]OFD Sender: No OFD packet to send [12:20:44]OFD Sender: No OFD packet to send [12:20:49]OFD Sender: No OFD packet to send [12:20:54]OFD Sender: No OFD packet to send [12:20:59]OFD Sender: No OFD packet to send [12:21:04]OFD Sender: No OFD packet to send [12:21:09]OFD Sender: No OFD packet to send [12:21:14]OFD Sender: No OFD packet to send [12:21:19]OFD Sender: No OFD packet to send [12:21:24]OFD Sender: No OFD packet to send [12:21:29]OFD Sender: No OFD packet to send [12:21:34]OFD Sender: No OFD packet to send [12:21:39]OFD Sender: No OFD packet to send [12:21:44]OFD Sender: No OFD packet to send [12:21:49]OFD Sender: No OFD packet to send [12:21:54]OFD Sender: No OFD packet to send [12:21:59]OFD Sender: No OFD packet to send [12:22:04]OFD Sender: No OFD packet to send [12:22:09]OFD Sender: No OFD packet to send [12:22:14]OFD Sender: No OFD packet to send [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:04]OFD Sender: No OFD packet to send [12:23:09]OFD Sender: No OFD packet to send [12:23:14]OFD Sender: No OFD packet to send [12:23:19]OFD Sender: No OFD packet to send [12:23:24]OFD Sender: No OFD packet to send [12:23:29]OFD Sender: No OFD packet to send [12:23:34]OFD Sender: No OFD packet to send [12:23:39]OFD Sender: No OFD packet to send [12:23:44]OFD Sender: No OFD packet to send [12:23:49]OFD Sender: No OFD packet to send [12:23:52]accept exits with 8 [12:23:52]New connection [12:23:52]New thread 3067039076 created [12:23:52]Thread 3067182436 joined [12:23:52]Waiting for new connection... [12:23:52] Sock 8.Parse request [12:23:52]Sock 8.Check first char [12:23:52]Sock 8.First char is OK [12:23:52]request: POST /json_proto HTTP/1.0 [12:23:52]Method: POST [12:23:52]URL: /json_proto [12:23:52]Method is POST - this is cgi request [12:23:52]url: /json_proto [12:23:52]query_string will be loaded in cgi processing [12:23:52]execute_cgi json_proto POST (null) [12:23:52]execute_cgi path=json_proto method=POST [12:23:52]POST find Content-Length [12:23:52]Host: 172.17.41.195:8080 [12:23:52]Content-Length: 1209 [12:23:52]Content-Type: application/json [12:23:52] [12:23:52]POST finish read [12:23:52]Found Content-Length = 1209 [12:23:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507505\u000A16.05.2024 12:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1494.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:52]execute_script... [12:23:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507505\u000A16.05.2024 12:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1494.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:52]POST & json_proto [12:23:52]process_json_proto [12:23:52]json parsed OK: [12:23:52]protocol is kg_v1.0 [12:23:52]action value=print_text [12:23:52]process_action print_text [12:23:52]cmd_print_text [12:23:52]ExternCall_PrintAddStr [12:23:52]wPrintStart [12:23:52]Write to MH i2c: 01 00 00 4E 03 51 [12:23:52]Write i2c OK [12:23:52]MH_I2C_Read... [12:23:52]Read from MH i2c: 01 [12:23:52]MH_I2C_Read... [12:23:52]Read from MH i2c: 01 07 00 [12:23:52]MH_I2C_Read... [12:23:52]Read from MH i2c: 01 07 00 4E 03 00 00 00 00 00 FF 0F 66 [12:23:52]RasterBufferAndPrint [12:23:52]line *****ТОВАРНЫЙ ЧЕК***** [12:23:52]line АЗС-91 [12:23:52]line Партнер нефть [12:23:52]line 02508201610067 [12:23:52]line Кассир : Пайзулдаева А. [12:23:52]line Счет N : (1)507505 [12:23:52]line 16.05.2024 12:06 [12:23:52]line ПРОДАЖА [12:23:52]line ТРК (МРК, ГНК): 11 [12:23:52]line Вид ГСМ : 2710194210 [12:23:52]line ДТ-К-5 [12:23:52]line 20.000 x 74.70 [12:23:52]line ИТОГ: 1494.00 [12:23:52]line Тип оплаты: Талоны: Топливная Карта [12:23:52]line 02750 [12:23:52]line ______________________ [12:23:52]line (подпись) [12:23:52]written 0, free lines is 4095 [12:23:52]Write to MH i2c: 01 00 00 62 03 65 [12:23:52]Write i2c OK [12:23:52]MH_I2C_Read... [12:23:52]Read from MH i2c: 01 [12:23:52]MH_I2C_Read... [12:23:52]Read from MH i2c: 01 07 00 [12:23:52]MH_I2C_Read... [12:23:52]Read from MH i2c: 01 07 00 62 03 00 00 00 00 00 0E 0E 88 [12:23:52]RasterBufferAndPrint [12:23:52]line [12:23:52]line [12:23:52]line [12:23:52]line [12:23:52]line [12:23:52]written 0, free lines is 3600 [12:23:52]MH_Cut [12:23:52]Write to MH i2c: D1 01 00 69 03 01 3E [12:23:52]Write i2c OK [12:23:52]MH_I2C_Read... [12:23:52]Read from MH i2c: D1 [12:23:52]MH_I2C_Read... [12:23:52]Read from MH i2c: D1 01 00 [12:23:52]MH_I2C_Read... [12:23:52]Read from MH i2c: D1 01 00 69 03 00 3D [12:23:52]Write to MH i2c: 01 00 00 6A 03 6D [12:23:52]Write i2c OK [12:23:52]MH_I2C_Read... [12:23:53]*** Cut start [12:23:53]*** Purtial cut [12:23:53]*** Stage 1: CUTSNS_PIN = 1 [12:23:53]Read from MH i2c: 01 [12:23:53]MH_I2C_Read... [12:23:53]*** Stop cut motor [12:23:53]*** Cut end [12:23:53]Read from MH i2c: 01 07 00 [12:23:53]MH_I2C_Read... [12:23:53]Read from MH i2c: 01 07 00 6A 03 00 00 00 00 00 FF 0F 82 [12:23:53]process_action print_text done [12:23:53]requested_data is exist [12:23:53]produce_requested_data [12:23:53]requested_item fm.sn is exist - process it [12:23:53]wFMCommunicate request_size=4 [12:23:53]MH_SAM_APDU [12:23:53]CAPDU: 80 11 00 00 [12:23:53]Write to MH i2c: E2 08 00 6B 03 80 11 00 00 00 00 00 00 E8 [12:23:53]Write i2c OK [12:23:53]MH_I2C_Read... [12:23:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:53]Read from MH i2c: E2 [12:23:53]MH_I2C_Read... [12:23:53]Read from MH i2c: E2 17 00 [12:23:53]MH_I2C_Read... [12:23:53]Read from MH i2c: E2 17 00 6B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3E [12:23:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:23:53]wFMCommunicate OK [12:23:53]requested_item fd.num is exist - process it [12:23:53]SAM_PROTO_GetFieldsCounters [12:23:53]wFMCommunicate request_size=4 [12:23:53]MH_SAM_APDU [12:23:53]CAPDU: 80 13 00 00 [12:23:53]Write to MH i2c: E2 08 00 6C 03 80 13 00 00 00 00 00 00 EB [12:23:53]Write i2c OK [12:23:53]MH_I2C_Read... [12:23:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:23:53]Read from MH i2c: E2 [12:23:53]MH_I2C_Read... [12:23:53]Read from MH i2c: E2 62 00 [12:23:53]MH_I2C_Read... [12:23:53]Read from MH i2c: E2 62 00 6C 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 88 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [12:23: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 88 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:23:53]wFMCommunicate OK [12:23:53]SAM_PROTO_GetFieldsCounters done [12:23:53]requested_item shift.num is exist - process it [12:23:53]requested_item shift.opened is exist - process it [12:23:53]req_shift_opened [12:23:53]FM_GetShiftState [12:23:53]SAM_PROTO_GetShiftState [12:23:53]wFMCommunicate request_size=4 [12:23:53]MH_SAM_APDU [12:23:53]CAPDU: 80 13 01 00 [12:23:53]Write to MH i2c: E2 08 00 6D 03 80 13 01 00 00 00 00 00 ED [12:23:53]Write i2c OK [12:23:53]MH_I2C_Read... [12:23:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:53]Read from MH i2c: E2 [12:23:53]MH_I2C_Read... [12:23:53]Read from MH i2c: E2 0E 00 [12:23:53]MH_I2C_Read... [12:23:53]Read from MH i2c: E2 0E 00 6D 03 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 99 [12:23:53]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [12:23:53]wFMCommunicate OK [12:23:53]SAM_PROTO_GetShiftState done [12:23:53]FM_GetShiftState done [12:23:53]req_shift_opened done [12:23:53]requested_item shift.open_date is exist - process it [12:23:53]req_shift_open_date [12:23:53]req_shift_open_date done [12:23:53]produce_requested_data done [12:23:53]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67464,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [12:23:53]process_action_free print_text [12:23:53]json_value_free [12:23:53]json_value_free done [12:23:53]process_json_proto returns [12:23:53]Send response to host [12:23:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67464,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [12:23:53]free response buf [12:23:53]execute_script done [12:23:53]execute_script returns [12:23:53]free content buf [12:23:53]Sock 8.Close socket [12:23:53]Sock 8.Thread stoped [12:23:54]OFD Sender: No OFD packet to send [12:23:59]OFD Sender: No OFD packet to send [12:24:04]OFD Sender: No OFD packet to send [12:24:09]OFD Sender: No OFD packet to send [12:24:14]OFD Sender: No OFD packet to send [12:24:19]OFD Sender: No OFD packet to send [12:24:24]OFD Sender: No OFD packet to send [12:24:29]OFD Sender: No OFD packet to send [12:24:34]OFD Sender: No OFD packet to send [12:24:39]OFD Sender: No OFD packet to send [12:24:44]OFD Sender: No OFD packet to send [12:24:49]OFD Sender: No OFD packet to send [12:24:54]OFD Sender: No OFD packet to send [12:24:59]OFD Sender: No OFD packet to send [12:25:04]OFD Sender: No OFD packet to send [12:25:09]OFD Sender: No OFD packet to send [12:25:14]OFD Sender: No OFD packet to send [12:25:19]OFD Sender: No OFD packet to send [12:25:24]OFD Sender: No OFD packet to send [12:25:29]OFD Sender: No OFD packet to send [12:25:34]OFD Sender: No OFD packet to send [12:25:39]OFD Sender: No OFD packet to send [12:25:44]OFD Sender: No OFD packet to send [12:25:49]OFD Sender: No OFD packet to send [12:25:54]OFD Sender: No OFD packet to send [12:25:59]OFD Sender: No OFD packet to send [12:26:03]accept exits with 9 [12:26:03]New connection [12:26:03]New thread 3067182436 created [12:26:03]Thread 3067039076 joined [12:26:03]Waiting for new connection... [12:26:03] Sock 9.Parse request [12:26:03]Sock 9.Check first char [12:26:03]Sock 9.First char is OK [12:26:03]request: POST /json_proto HTTP/1.0 [12:26:03]Method: POST [12:26:03]URL: /json_proto [12:26:03]Method is POST - this is cgi request [12:26:03]url: /json_proto [12:26:03]query_string will be loaded in cgi processing [12:26:03]execute_cgi json_proto POST (null) [12:26:03]execute_cgi path=json_proto method=POST [12:26:03]POST find Content-Length [12:26:03]Host: 172.17.41.195:8080 [12:26:03]Content-Length: 678 [12:26:03]Content-Type: application/json [12:26:03] [12:26:03]POST finish read [12:26:03]Found Content-Length = 678 [12:26:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507506", "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.80, "quantity" : 10.480, "sum" : 700.06, "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:26:03]execute_script... [12:26: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)507506", "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.80, "quantity" : 10.480, "sum" : 700.06, "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:26:03]POST & json_proto [12:26:03]process_json_proto [12:26:03]json parsed OK: [12:26:03]protocol is kg_v1.0 [12:26:03]action value=close_receipt [12:26:03]process_action close_receipt [12:26:03]cmd_close_receipt [12:26:03]MH_GetDate [12:26:03]Write to MH i2c: F0 00 00 6E 03 60 [12:26:03]Write i2c OK [12:26:03]MH_I2C_Read... [12:26:03]Read from MH i2c: F0 [12:26:03]MH_I2C_Read... [12:26:03]Read from MH i2c: F0 09 00 [12:26:03]MH_I2C_Read... [12:26:03]Read from MH i2c: F0 09 00 6E 03 00 5C FB 45 66 FC 21 6F 64 5B [12:26:03]GetLastDocTimeStamp 1715861981 [12:26:03]current date 1715862364 [12:26:03]FM_GetShiftState [12:26:03]SAM_PROTO_GetShiftState [12:26:03]wFMCommunicate request_size=4 [12:26:03]MH_SAM_APDU [12:26:03]CAPDU: 80 13 01 00 [12:26:03]Write to MH i2c: E2 08 00 6F 03 80 13 01 00 00 00 00 00 EF [12:26:03]Write i2c OK [12:26:03]MH_I2C_Read... [12:26:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:03]Read from MH i2c: E2 [12:26:03]MH_I2C_Read... [12:26:03]Read from MH i2c: E2 0E 00 [12:26:03]MH_I2C_Read... [12:26:03]Read from MH i2c: E2 0E 00 6F 03 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 9B [12:26:03]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [12:26:03]wFMCommunicate OK [12:26:03]SAM_PROTO_GetShiftState done [12:26:03]FM_GetShiftState done [12:26:03]opened in 1715818916 [12:26:03]opened+sec_in_day 1715905316 [12:26:03]quantity*price = 70006 [12:26:03]sum+1 = 70007 [12:26:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.19 НДС 12% : 74.34 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 63 16.05.2024 12:26 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67465 ФПД: 243085430094768 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T122604&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67465&fm=243085430094768&tin=02508201610067®Number=0000000000091845&sum=70000 [12:26:04]StoreToDocumentArchive [12:26:04]shift 357 fd 67465 [12:26:04]save to /storage/0357/doc_00067465 [12:26:04]save last doc name /storage/0357/doc_00067465 to /storage/kkm_last_doc_name [12:26:04]save OK [12:26:04]Clear old archive folders... [12:26:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:26:04]tlvbuf is 01761CD0 [12:26:04]SAM_PROTO_ClearQueue [12:26:04]wFMCommunicate request_size=4 [12:26:04]MH_SAM_APDU [12:26:04]CAPDU: 80 09 00 00 [12:26:04]Write to MH i2c: E2 08 00 7C 03 80 09 00 00 00 00 00 00 F1 [12:26:04]Write i2c OK [12:26:04]MH_I2C_Read... [12:26:05]Read from MH i2c: E2 [12:26:05]MH_I2C_Read... [12:26:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:26:05]Read from MH i2c: E2 03 00 [12:26:05]MH_I2C_Read... [12:26:05]Read from MH i2c: E2 03 00 7C 03 00 90 00 F3 [12:26:05]RAPDU: 90 00 [12:26:05]wFMCommunicate OK [12:26:05]SAM_PROTO_ClearQueue done [12:26:05]KKMCreateOFDPacket [12:26:05]OFDProtocolAddRootSTLVToBuf [12:26:05]FM_MakeSignedData [12:26:05]FM_MakeSignedData [12:26:05]SAM_PROTO_SignData [12:26:05]wFMCommunicate request_size=4 [12:26:05]MH_SAM_APDU [12:26:05]CAPDU: 80 0D 01 02 [12:26:05]Write to MH i2c: E2 08 00 7D 03 80 0D 01 02 00 00 00 00 F9 [12:26:05]Write i2c OK [12:26:05]MH_I2C_Read... [12:26:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:26:05]Read from MH i2c: E2 [12:26:05]MH_I2C_Read... [12:26:05]Read from MH i2c: E2 03 00 [12:26:05]MH_I2C_Read... [12:26:05]Read from MH i2c: E2 03 00 7D 03 00 90 00 F4 [12:26:05]RAPDU: 90 00 [12:26:05]wFMCommunicate OK [12:26:05]wFMCommunicate request_size=255 [12:26:05]MH_SAM_APDU [12:26: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 F0 28 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 76 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 3F 00 00 00 F4 03 04 00 5C FB 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 89 07 01 00 35 04 06 00 DD [12:26:05]Write to MH i2c: E2 02 01 7E 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 F0 28 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 76 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 3F 00 00 00 F4 03 04 00 5C FB 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 89 07 01 00 35 04 06 00 DD 00 00 87 [12:26:05]Write i2c OK [12:26:05]MH_I2C_Read... [12:26:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:05]Read from MH i2c: E2 [12:26:05]MH_I2C_Read... [12:26:05]Read from MH i2c: E2 03 00 [12:26:05]MH_I2C_Read... [12:26:05]Read from MH i2c: E2 03 00 7E 03 00 90 00 F5 [12:26:05]RAPDU: 90 00 [12:26:05]wFMCommunicate OK [12:26:05]wFMCommunicate request_size=10 [12:26:05]MH_SAM_APDU [12:26:05]CAPDU: 80 0D 02 02 05 15 BC B5 FB B0 [12:26:05]Write to MH i2c: E2 0D 00 7F 03 80 0D 02 02 05 00 15 BC B5 FB B0 00 00 37 [12:26:05]Write i2c OK [12:26:05]MH_I2C_Read... [12:26:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:05]Read from MH i2c: E2 [12:26:05]MH_I2C_Read... [12:26:05]Read from MH i2c: E2 03 00 [12:26:05]MH_I2C_Read... [12:26:05]Read from MH i2c: E2 03 00 7F 03 00 90 00 F6 [12:26:05]RAPDU: 90 00 [12:26:05]wFMCommunicate OK [12:26:05]wFMCommunicate request_size=4 [12:26:05]MH_SAM_APDU [12:26:05]CAPDU: 80 0D 03 02 [12:26:05]Write to MH i2c: E2 08 00 80 03 80 0D 03 02 00 00 00 00 FE [12:26:05]Write i2c OK [12:26:05]MH_I2C_Read... [12:26:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:26:05]Read from MH i2c: E2 [12:26:05]MH_I2C_Read... [12:26:05]Read from MH i2c: E2 0B 00 [12:26:05]MH_I2C_Read... [12:26:05]Read from MH i2c: E2 0B 00 80 03 00 39 0D D8 9B 39 E0 D8 FD 90 00 A6 [12:26:05]RAPDU: 39 0D D8 9B 39 E0 D8 FD 90 00 [12:26:05]wFMCommunicate OK [12:26:05]SAM_PROTO_SignData done [12:26:05]FM_MakeSignedData done [12:26:05]CreateOFDProtocolMessage [12:26:05]wFMCommunicate request_size=4 [12:26:05]MH_SAM_APDU [12:26:05]CAPDU: 80 11 00 00 [12:26:05]Write to MH i2c: E2 08 00 81 03 80 11 00 00 00 00 00 00 FE [12:26:05]Write i2c OK [12:26:05]MH_I2C_Read... [12:26:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:05]Read from MH i2c: E2 [12:26:05]MH_I2C_Read... [12:26:05]Read from MH i2c: E2 17 00 [12:26:05]MH_I2C_Read... [12:26:05]Read from MH i2c: E2 17 00 81 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 54 [12:26:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:26:05]wFMCommunicate OK [12:26:05]CreateOFDProtocolMessage done [12:26:05]OFDSenderStorePacket 67465 [12:26:05]StoreOFDPacket docnum=67465 [12:26:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 F6 98 07 01 88 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 28 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 76 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 3F 00 00 00 F4 03 04 00 5C FB 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 89 07 01 00 35 04 06 00 DD 15 BC B5 FB B0 39 0D D8 9B 39 E0 D8 FD [12:26:05]CheckFolder [12:26:05]dirname=/storage/ofd_packets [12:26:05]CheckFolder done [12:26:05]ProducePacketName [12:26:05]name=ofd_packets/00067465 [12:26:05]NVStorageSaveData ofd_packets/00067465 [12:26:05]File name is /storage/ofd_packets/00067465 [12:26:05]Write 301 bytes [12:26:05]NVStorageSaveData done [12:26:05]OFDSenderStorePacket done [12:26:05]KKMCreateOFDPacket done [12:26:05]NVStorageSaveData kkm_last_timestamp [12:26:05]File name is /storage/kkm_last_timestamp [12:26:05]Write 4 bytes [12:26:05]NVStorageSaveData done [12:26:05]ExternCall_PrintAddStr [12:26:05]wPrintStart [12:26:05]Write to MH i2c: 01 00 00 82 03 85 [12:26:05]Write i2c OK [12:26:05]MH_I2C_Read... [12:26:05]Read from MH i2c: 01 [12:26:05]MH_I2C_Read... [12:26:05]Read from MH i2c: 01 07 00 [12:26:05]MH_I2C_Read... [12:26:05]Read from MH i2c: 01 07 00 82 03 00 00 00 00 00 FF 0F 9A [12:26:05]RasterBufferAndPrint [12:26:05]line Счет N : (1)507506 [12:26:05]line ИНН: 02508201610067 [12:26:05]line Контрольно-Кассовый Чек [12:26:05]line ПРОДАЖА [12:26:05]line ТРК (МРК, ГНК) : 33 [12:26:05]line Товар: 2710124130 [12:26:05]line Аи-92-К-5 [12:26:05]line 10.480 * 66.80 [12:26:05]line = 700.06 [12:26:05]line НДС 12% НСП 1% [12:26:05]line > о реализуемом товаре [12:26:05]line ОКРУГЛЕНИЕ: -0.06 [12:26:05]line ИТОГО: 700.00 [12:26:05]line Внесено: 700.00 [12:26:05]line СДАЧА: 0.00 [12:26:05]line НСП 1% : 6.19 [12:26:05]line НДС 12% : 74.34 [12:26:05]line Наличными: 700.00 [12:26:05]line Безнал.: 0.00 [12:26:05]line Место: АЗС № 91 "Партнер Нефть" [12:26:05]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:26:05]line СНО: Общий режим [12:26:05]line Чек 63 16.05.2024 12:26 [12:26:05]line Смена: 357 ФФД: 1.0 [12:26:05]line ЗНМ: 0300000119 [12:26:05]line РНМ: 0000000000091845 [12:26:05]line Версия ККМ: 001 [12:26:05]line ФМ: 0000000000871829 [12:26:05]line ФД: 67465 [12:26:05]line ФПД: 243085430094768 [12:26:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T122604&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67465&fm=243085430094768&tin=02508201610067®Number=0000000000091845&sum=70000 [12:26:05]written 0, free lines is 4095 [12:26:05]OFD Sender: Processing packet 67465 [packets to send 35, broken 34] [12:26:05]ProducePacketName [12:26:05]name=ofd_packets/00067465 [12:26:05]OFD Sender: To server: pG, [12:26:05]CommunicateWithHost lk.salyk.kg:30040 [12:26:05]ConnectInit lk.salyk.kg [12:26:05]Connected sock=10 [12:26: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 38 32 39 0F 01 00 00 F6 98 07 01 88 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 28 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 76 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 3F 00 00 00 F4 03 04 00 5C FB 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 89 07 01 00 35 04 06 00 DD 15 BC B5 FB B0 39 0D D8 9B 39 E0 D8 FD [12:26:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 65 FE 47 00 64 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 38 32 39 10 04 04 00 89 07 01 00 F4 03 04 00 37 A3 45 66 B6 04 01 00 00 FF 6E B2 79 C7 DF CB 16 [12:26:06]CommunicateWithHost err = 0 [12:26:06]CheckOFDResponse [12:26:06]1017 (14) - 77093643461234 [12:26:06]1041 (16) - 0000000000871829 [12:26:06]1040 (4) - 67465 [12:26:06]1012 (4) - 16.05.2024 06:09 [12:26:06]1206 (1) - 0 [12:26:06]OFD Sender: Remove packet 67465 [12:26:06]ProducePacketName [12:26:06]name=ofd_packets/00067465 [12:26:06]NVStorageDeleteData [12:26:06]Write to MH i2c: 01 00 00 AC 03 AF [12:26:06]Write i2c OK [12:26:06]MH_I2C_Read... [12:26:06]Read from MH i2c: 01 [12:26:06]MH_I2C_Read... [12:26:06]Read from MH i2c: 01 07 00 [12:26:06]MH_I2C_Read... [12:26:06]Read from MH i2c: 01 07 00 AC 03 00 00 00 00 00 C7 0C 89 [12:26:06]RasterBufferAndPrint [12:26:06]line [12:26:06]line [12:26:06]line [12:26:06]line [12:26:06]line [12:26:06]written 0, free lines is 3278 [12:26:06]MH_Cut [12:26:06]Write to MH i2c: D1 01 00 B3 03 01 88 [12:26:06]Write i2c OK [12:26:06]MH_I2C_Read... [12:26:06]Read from MH i2c: D1 [12:26:06]MH_I2C_Read... [12:26:06]Read from MH i2c: D1 01 00 [12:26:06]MH_I2C_Read... [12:26:06]Read from MH i2c: D1 01 00 B3 03 00 87 [12:26:06]Write to MH i2c: 01 00 00 B4 03 B7 [12:26:06]Write i2c OK [12:26:06]MH_I2C_Read... [12:26:06]OFD Sender: No OFD packet to send [12:26:07]*** Cut start [12:26:07]*** Purtial cut [12:26:07]*** CUTSNS_PIN = 0 [12:26:07]*** Stage 1: CUTSNS_PIN = 1 [12:26:09]Read from MH i2c: 01 [12:26:09]MH_I2C_Read... [12:26:09]*** Stop cut motor [12:26:09]*** Cut end [12:26:09]Read from MH i2c: 01 07 00 [12:26:09]MH_I2C_Read... [12:26:09]Read from MH i2c: 01 07 00 B4 03 00 00 00 00 00 FF 0F CC [12:26:09]process_action close_receipt done [12:26:09]requested_data is exist [12:26:09]produce_requested_data [12:26:09]requested_item fm.sn is exist - process it [12:26:09]wFMCommunicate request_size=4 [12:26:09]MH_SAM_APDU [12:26:09]CAPDU: 80 11 00 00 [12:26:09]Write to MH i2c: E2 08 00 B5 03 80 11 00 00 00 00 00 00 32 [12:26:09]Write i2c OK [12:26:09]MH_I2C_Read... [12:26:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:09]Read from MH i2c: E2 [12:26:09]MH_I2C_Read... [12:26:09]Read from MH i2c: E2 17 00 [12:26:09]MH_I2C_Read... [12:26:09]Read from MH i2c: E2 17 00 B5 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 88 [12:26:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:26:09]wFMCommunicate OK [12:26:09]requested_item fd.num is exist - process it [12:26:09]SAM_PROTO_GetFieldsCounters [12:26:09]wFMCommunicate request_size=4 [12:26:09]MH_SAM_APDU [12:26:09]CAPDU: 80 13 00 00 [12:26:09]Write to MH i2c: E2 08 00 B6 03 80 13 00 00 00 00 00 00 35 [12:26:09]Write i2c OK [12:26:09]MH_I2C_Read... [12:26:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:26:09]Read from MH i2c: E2 [12:26:09]MH_I2C_Read... [12:26:09]Read from MH i2c: E2 62 00 [12:26:09]MH_I2C_Read... [12:26:09]Read from MH i2c: E2 62 00 B6 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 89 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [12: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 89 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:26:09]wFMCommunicate OK [12:26:09]SAM_PROTO_GetFieldsCounters done [12:26:09]requested_item shift.num is exist - process it [12:26:09]requested_item shift.opened is exist - process it [12:26:09]req_shift_opened [12:26:09]FM_GetShiftState [12:26:09]SAM_PROTO_GetShiftState [12:26:09]wFMCommunicate request_size=4 [12:26:09]MH_SAM_APDU [12:26:09]CAPDU: 80 13 01 00 [12:26:09]Write to MH i2c: E2 08 00 B7 03 80 13 01 00 00 00 00 00 37 [12:26:09]Write i2c OK [12:26:09]MH_I2C_Read... [12:26:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:09]Read from MH i2c: E2 [12:26:09]MH_I2C_Read... [12:26:09]Read from MH i2c: E2 0E 00 [12:26:09]MH_I2C_Read... [12:26:09]Read from MH i2c: E2 0E 00 B7 03 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 E3 [12:26:09]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [12:26:09]wFMCommunicate OK [12:26:09]SAM_PROTO_GetShiftState done [12:26:09]FM_GetShiftState done [12:26:09]req_shift_opened done [12:26:09]requested_item shift.open_date is exist - process it [12:26:09]req_shift_open_date [12:26:09]req_shift_open_date done [12:26:09]produce_requested_data done [12:26:09]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67465,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [12:26:09]process_action_free close_receipt [12:26:09]json_value_free [12:26:09]json_value_free done [12:26:09]process_json_proto returns [12:26:09]Send response to host [12:26:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67465,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [12:26:09]free response buf [12:26:09]execute_script done [12:26:09]execute_script returns [12:26:09]free content buf [12:26:09]Sock 9.Close socket [12:26:09]Sock 9.Thread stoped [12:26:11]OFD Sender: No OFD packet to send [12:26:16]OFD Sender: No OFD packet to send [12:26:21]OFD Sender: No OFD packet to send [12:26:26]OFD Sender: No OFD packet to send [12:26:31]OFD Sender: No OFD packet to send [12:26:36]OFD Sender: No OFD packet to send [12:26:41]OFD Sender: No OFD packet to send [12:26:46]OFD Sender: No OFD packet to send [12:26:51]OFD Sender: No OFD packet to send [12:26:56]OFD Sender: No OFD packet to send [12:27:01]OFD Sender: No OFD packet to send [12:27:06]OFD Sender: No OFD packet to send [12:27:11]OFD Sender: No OFD packet to send [12:27:16]OFD Sender: No OFD packet to send [12:27:21]OFD Sender: No OFD packet to send [12:27:26]OFD Sender: No OFD packet to send [12:27:31]OFD Sender: No OFD packet to send [12:27:36]OFD Sender: No OFD packet to send [12:27:41]OFD Sender: No OFD packet to send [12:27:46]OFD Sender: No OFD packet to send [12:27:51]OFD Sender: No OFD packet to send [12:27:56]OFD Sender: No OFD packet to send [12:28:01]OFD Sender: No OFD packet to send [12:28:05]accept exits with 8 [12:28:05]New connection [12:28:05]New thread 3067039076 created [12:28:05]Thread 3067182436 joined [12:28:05]Waiting for new connection... [12:28:05] Sock 8.Parse request [12:28:05]Sock 8.Check first char [12:28:05]Sock 8.First char is OK [12:28:05]request: POST /json_proto HTTP/1.0 [12:28:05]Method: POST [12:28:05]URL: /json_proto [12:28:05]Method is POST - this is cgi request [12:28:05]url: /json_proto [12:28:05]query_string will be loaded in cgi processing [12:28:05]execute_cgi json_proto POST (null) [12:28:05]execute_cgi path=json_proto method=POST [12:28:05]POST find Content-Length [12:28:05]Host: 172.17.41.195:8080 [12:28:05]Content-Length: 1209 [12:28:05]Content-Type: application/json [12:28:05] [12:28:05]POST finish read [12:28:05]Found Content-Length = 1209 [12:28:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507508\u000A16.05.2024 12:10\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.390 x 74.70\u000A\u0418\u0422\u041E\u0413: 1000.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:05]execute_script... [12:28:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507508\u000A16.05.2024 12:10\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.390 x 74.70\u000A\u0418\u0422\u041E\u0413: 1000.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:05]POST & json_proto [12:28:05]process_json_proto [12:28:05]json parsed OK: [12:28:05]protocol is kg_v1.0 [12:28:05]action value=print_text [12:28:05]process_action print_text [12:28:05]cmd_print_text [12:28:05]ExternCall_PrintAddStr [12:28:05]wPrintStart [12:28:05]Write to MH i2c: 01 00 00 B8 03 BB [12:28:05]Write i2c OK [12:28:05]MH_I2C_Read... [12:28:05]Read from MH i2c: 01 [12:28:05]MH_I2C_Read... [12:28:05]Read from MH i2c: 01 07 00 [12:28:05]MH_I2C_Read... [12:28:05]Read from MH i2c: 01 07 00 B8 03 00 00 00 00 00 FF 0F D0 [12:28:05]RasterBufferAndPrint [12:28:05]line *****ТОВАРНЫЙ ЧЕК***** [12:28:05]line АЗС-91 [12:28:05]line Партнер нефть [12:28:05]line 02508201610067 [12:28:05]line Кассир : Пайзулдаева А. [12:28:05]line Счет N : (1)507508 [12:28:05]line 16.05.2024 12:10 [12:28:05]line ПРОДАЖА [12:28:05]line ТРК (МРК, ГНК): 31 [12:28:05]line Вид ГСМ : 2710194210 [12:28:05]line ДТ-К-5 [12:28:05]line 13.390 x 74.70 [12:28:05]line ИТОГ: 1000.23 [12:28:05]line Тип оплаты: Талоны: Топливная Карта [12:28:05]line 02750 [12:28:05]line ______________________ [12:28:05]line (подпись) [12:28:05]written 0, free lines is 4095 [12:28:05]Write to MH i2c: 01 00 00 CC 03 CF [12:28:05]Write i2c OK [12:28:05]MH_I2C_Read... [12:28:05]Read from MH i2c: 01 [12:28:05]MH_I2C_Read... [12:28:05]Read from MH i2c: 01 07 00 [12:28:05]MH_I2C_Read... [12:28:05]Read from MH i2c: 01 07 00 CC 03 00 00 00 00 00 0F 0E F3 [12:28:05]RasterBufferAndPrint [12:28:05]line [12:28:05]line [12:28:05]line [12:28:05]line [12:28:05]line [12:28:05]written 0, free lines is 3600 [12:28:05]MH_Cut [12:28:05]Write to MH i2c: D1 01 00 D3 03 01 A8 [12:28:05]Write i2c OK [12:28:05]MH_I2C_Read... [12:28:05]Read from MH i2c: D1 [12:28:05]MH_I2C_Read... [12:28:05]Read from MH i2c: D1 01 00 [12:28:05]MH_I2C_Read... [12:28:05]Read from MH i2c: D1 01 00 D3 03 00 A7 [12:28:05]Write to MH i2c: 01 00 00 D4 03 D7 [12:28:05]Write i2c OK [12:28:05]MH_I2C_Read... [12:28:06]*** Cut start [12:28:06]*** Purtial cut [12:28:06]*** Stage 1: CUTSNS_PIN = 1 [12:28:06]Read from MH i2c: 01 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: 01 07 00 [12:28:06]MH_I2C_Read... [12:28:06]*** Stop cut motor [12:28:06]*** Cut end [12:28:06]Read from MH i2c: 01 07 00 D4 03 00 00 00 00 00 FF 0F EC [12:28:06]process_action print_text done [12:28:06]requested_data is exist [12:28:06]produce_requested_data [12:28:06]requested_item fm.sn is exist - process it [12:28:06]wFMCommunicate request_size=4 [12:28:06]MH_SAM_APDU [12:28:06]CAPDU: 80 11 00 00 [12:28:06]Write to MH i2c: E2 08 00 D5 03 80 11 00 00 00 00 00 00 52 [12:28:06]Write i2c OK [12:28:06]MH_I2C_Read... [12:28:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:06]Read from MH i2c: E2 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: E2 17 00 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: E2 17 00 D5 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A8 [12:28:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:28:06]wFMCommunicate OK [12:28:06]requested_item fd.num is exist - process it [12:28:06]SAM_PROTO_GetFieldsCounters [12:28:06]wFMCommunicate request_size=4 [12:28:06]MH_SAM_APDU [12:28:06]CAPDU: 80 13 00 00 [12:28:06]Write to MH i2c: E2 08 00 D6 03 80 13 00 00 00 00 00 00 55 [12:28:06]Write i2c OK [12:28:06]MH_I2C_Read... [12:28:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:28:06]Read from MH i2c: E2 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: E2 62 00 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: E2 62 00 D6 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 89 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [12:28:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 89 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:28:06]wFMCommunicate OK [12:28:06]SAM_PROTO_GetFieldsCounters done [12:28:06]requested_item shift.num is exist - process it [12:28:06]requested_item shift.opened is exist - process it [12:28:06]req_shift_opened [12:28:06]FM_GetShiftState [12:28:06]SAM_PROTO_GetShiftState [12:28:06]wFMCommunicate request_size=4 [12:28:06]MH_SAM_APDU [12:28:06]CAPDU: 80 13 01 00 [12:28:06]Write to MH i2c: E2 08 00 D7 03 80 13 01 00 00 00 00 00 57 [12:28:06]Write i2c OK [12:28:06]MH_I2C_Read... [12:28:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:06]Read from MH i2c: E2 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: E2 0E 00 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: E2 0E 00 D7 03 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 03 [12:28:06]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [12:28:06]wFMCommunicate OK [12:28:06]SAM_PROTO_GetShiftState done [12:28:06]FM_GetShiftState done [12:28:06]req_shift_opened done [12:28:06]requested_item shift.open_date is exist - process it [12:28:06]req_shift_open_date [12:28:06]req_shift_open_date done [12:28:06]produce_requested_data done [12:28:06]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67465,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [12:28:06]process_action_free print_text [12:28:06]json_value_free [12:28:06]json_value_free done [12:28:06]process_json_proto returns [12:28:06]Send response to host [12:28:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67465,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [12:28:06]free response buf [12:28:06]execute_script done [12:28:06]execute_script returns [12:28:06]free content buf [12:28:06]Sock 8.Close socket [12:28:06]Sock 8.Thread stoped [12:28:06]OFD Sender: No OFD packet to send [12:28:11]OFD Sender: No OFD packet to send [12:28:16]OFD Sender: No OFD packet to send [12:28:21]OFD Sender: No OFD packet to send [12:28:26]accept exits with 9 [12:28:26]New connection [12:28:26]New thread 3067182436 created [12:28:26]Thread 3067039076 joined [12:28:26]Waiting for new connection... [12:28:26] Sock 9.Parse request [12:28:26]Sock 9.Check first char [12:28:26]Sock 9.First char is OK [12:28:26]request: POST /json_proto HTTP/1.0 [12:28:26]Method: POST [12:28:26]URL: /json_proto [12:28:26]Method is POST - this is cgi request [12:28:26]url: /json_proto [12:28:26]query_string will be loaded in cgi processing [12:28:26]execute_cgi json_proto POST (null) [12:28:26]execute_cgi path=json_proto method=POST [12:28:26]POST find Content-Length [12:28:26]Host: 172.17.41.195:8080 [12:28:26]Content-Length: 679 [12:28:26]Content-Type: application/json [12:28:26] [12:28:26]POST finish read [12:28:26]Found Content-Length = 679 [12:28:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507507", "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" : 74.70, "quantity" : 33.470, "sum" : 2500.21, "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" ] } } [12:28:26]execute_script... [12:28: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)507507", "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" : 74.70, "quantity" : 33.470, "sum" : 2500.21, "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" ] } } [12:28:26]POST & json_proto [12:28:26]process_json_proto [12:28:26]json parsed OK: [12:28:26]protocol is kg_v1.0 [12:28:26]action value=close_receipt [12:28:26]process_action close_receipt [12:28:26]cmd_close_receipt [12:28:26]MH_GetDate [12:28:26]Write to MH i2c: F0 00 00 D8 03 CA [12:28:26]Write i2c OK [12:28:26]MH_I2C_Read... [12:28:26]Read from MH i2c: F0 [12:28:26]MH_I2C_Read... [12:28:26]Read from MH i2c: F0 09 00 [12:28:26]MH_I2C_Read... [12:28:26]Read from MH i2c: F0 09 00 D8 03 00 EA FB 45 66 FC 21 6F 64 53 [12:28:26]GetLastDocTimeStamp 1715862364 [12:28:26]current date 1715862506 [12:28:26]FM_GetShiftState [12:28:26]SAM_PROTO_GetShiftState [12:28:26]wFMCommunicate request_size=4 [12:28:26]MH_SAM_APDU [12:28:26]CAPDU: 80 13 01 00 [12:28:26]Write to MH i2c: E2 08 00 D9 03 80 13 01 00 00 00 00 00 59 [12:28:26]Write i2c OK [12:28:26]MH_I2C_Read... [12:28:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:26]Read from MH i2c: E2 [12:28:26]MH_I2C_Read... [12:28:26]Read from MH i2c: E2 0E 00 [12:28:26]MH_I2C_Read... [12:28:26]Read from MH i2c: E2 0E 00 D9 03 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 05 [12:28:26]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [12:28:26]wFMCommunicate OK [12:28:26]SAM_PROTO_GetShiftState done [12:28:26]FM_GetShiftState done [12:28:26]opened in 1715818916 [12:28:26]opened+sec_in_day 1715905316 [12:28:26]quantity*price = 250020 [12:28:26]sum+1 = 250022 [12:28:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.51 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 64 16.05.2024 12:28 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67466 ФПД: 140548871466816 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T122826&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67466&fm=140548871466816&tin=02508201610067®Number=0000000000091845&sum=250000 [12:28:27]StoreToDocumentArchive [12:28:27]shift 357 fd 67466 [12:28:27]save to /storage/0357/doc_00067466 [12:28:27]save last doc name /storage/0357/doc_00067466 to /storage/kkm_last_doc_name [12:28:27]save OK [12:28:27]Clear old archive folders... [12:28:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:28:27]tlvbuf is 017B0330 [12:28:27]SAM_PROTO_ClearQueue [12:28:27]wFMCommunicate request_size=4 [12:28:27]MH_SAM_APDU [12:28:27]CAPDU: 80 09 00 00 [12:28:27]Write to MH i2c: E2 08 00 E6 03 80 09 00 00 00 00 00 00 5B [12:28:27]Write i2c OK [12:28:27]MH_I2C_Read... [12:28:27]Read from MH i2c: E2 [12:28:27]MH_I2C_Read... [12:28:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:28:27]Read from MH i2c: E2 03 00 [12:28:27]MH_I2C_Read... [12:28:27]Read from MH i2c: E2 03 00 E6 03 00 90 00 5D [12:28:27]RAPDU: 90 00 [12:28:27]wFMCommunicate OK [12:28:27]SAM_PROTO_ClearQueue done [12:28:27]KKMCreateOFDPacket [12:28:27]OFDProtocolAddRootSTLVToBuf [12:28:27]FM_MakeSignedData [12:28:27]FM_MakeSignedData [12:28:27]SAM_PROTO_SignData [12:28:27]wFMCommunicate request_size=4 [12:28:27]MH_SAM_APDU [12:28:27]CAPDU: 80 0D 01 02 [12:28:27]Write to MH i2c: E2 08 00 E7 03 80 0D 01 02 00 00 00 00 63 [12:28:27]Write i2c OK [12:28:27]MH_I2C_Read... [12:28:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:28:27]Read from MH i2c: E2 [12:28:27]MH_I2C_Read... [12:28:27]Read from MH i2c: E2 03 00 [12:28:27]MH_I2C_Read... [12:28:27]Read from MH i2c: E2 03 00 E7 03 00 90 00 5E [12:28:27]RAPDU: 90 00 [12:28:27]wFMCommunicate OK [12:28:27]wFMCommunicate request_size=255 [12:28:27]MH_SAM_APDU [12:28: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 BE 82 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 A5 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 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 40 00 00 00 F4 03 04 00 EA FB 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 8A 07 01 00 35 04 06 00 7F D4 15 8E [12:28:27]Write to MH i2c: E2 02 01 E8 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 BE 82 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 A5 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 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 40 00 00 00 F4 03 04 00 EA FB 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 8A 07 01 00 35 04 06 00 7F D4 15 8E 00 00 17 [12:28:27]Write i2c OK [12:28:27]MH_I2C_Read... [12:28:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:27]Read from MH i2c: E2 [12:28:27]MH_I2C_Read... [12:28:27]Read from MH i2c: E2 03 00 [12:28:27]MH_I2C_Read... [12:28:27]Read from MH i2c: E2 03 00 E8 03 00 90 00 5F [12:28:27]RAPDU: 90 00 [12:28:27]wFMCommunicate OK [12:28:27]wFMCommunicate request_size=7 [12:28:27]MH_SAM_APDU [12:28:27]CAPDU: 80 0D 02 02 02 AF 40 [12:28:27]Write to MH i2c: E2 0A 00 E9 03 80 0D 02 02 02 00 AF 40 00 00 59 [12:28:27]Write i2c OK [12:28:27]MH_I2C_Read... [12:28:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:27]Read from MH i2c: E2 [12:28:27]MH_I2C_Read... [12:28:27]Read from MH i2c: E2 03 00 [12:28:27]MH_I2C_Read... [12:28:27]Read from MH i2c: E2 03 00 E9 03 00 90 00 60 [12:28:27]RAPDU: 90 00 [12:28:27]wFMCommunicate OK [12:28:27]wFMCommunicate request_size=4 [12:28:27]MH_SAM_APDU [12:28:27]CAPDU: 80 0D 03 02 [12:28:27]Write to MH i2c: E2 08 00 EA 03 80 0D 03 02 00 00 00 00 68 [12:28:27]Write i2c OK [12:28:27]MH_I2C_Read... [12:28:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:28:27]Read from MH i2c: E2 [12:28:27]MH_I2C_Read... [12:28:27]Read from MH i2c: E2 0B 00 [12:28:27]MH_I2C_Read... [12:28:27]Read from MH i2c: E2 0B 00 EA 03 00 70 B8 AC ED FE 40 47 C4 90 00 73 [12:28:27]RAPDU: 70 B8 AC ED FE 40 47 C4 90 00 [12:28:27]wFMCommunicate OK [12:28:27]SAM_PROTO_SignData done [12:28:27]FM_MakeSignedData done [12:28:27]CreateOFDProtocolMessage [12:28:27]wFMCommunicate request_size=4 [12:28:27]MH_SAM_APDU [12:28:27]CAPDU: 80 11 00 00 [12:28:27]Write to MH i2c: E2 08 00 EB 03 80 11 00 00 00 00 00 00 68 [12:28:27]Write i2c OK [12:28:27]MH_I2C_Read... [12:28:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:27]Read from MH i2c: E2 [12:28:27]MH_I2C_Read... [12:28:27]Read from MH i2c: E2 17 00 [12:28:27]MH_I2C_Read... [12:28:27]Read from MH i2c: E2 17 00 EB 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BE [12:28:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:28:27]wFMCommunicate OK [12:28:27]CreateOFDProtocolMessage done [12:28:27]OFDSenderStorePacket 67466 [12:28:27]StoreOFDPacket docnum=67466 [12:28:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 F3 73 04 01 D3 EA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 82 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 A5 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 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 40 00 00 00 F4 03 04 00 EA FB 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 8A 07 01 00 35 04 06 00 7F D4 15 8E AF 40 70 B8 AC ED FE 40 47 C4 [12:28:27]CheckFolder [12:28:27]dirname=/storage/ofd_packets [12:28:27]CheckFolder done [12:28:27]ProducePacketName [12:28:27]name=ofd_packets/00067466 [12:28:27]NVStorageSaveData ofd_packets/00067466 [12:28:27]File name is /storage/ofd_packets/00067466 [12:28:27]Write 298 bytes [12:28:27]NVStorageSaveData done [12:28:27]OFDSenderStorePacket done [12:28:27]KKMCreateOFDPacket done [12:28:27]NVStorageSaveData kkm_last_timestamp [12:28:27]File name is /storage/kkm_last_timestamp [12:28:27]Write 4 bytes [12:28:27]NVStorageSaveData done [12:28:27]ExternCall_PrintAddStr [12:28:27]wPrintStart [12:28:27]Write to MH i2c: 01 00 00 EC 03 EF [12:28:27]Write i2c OK [12:28:27]MH_I2C_Read... [12:28:27]Read from MH i2c: 01 [12:28:27]MH_I2C_Read... [12:28:27]Read from MH i2c: 01 07 00 [12:28:27]MH_I2C_Read... [12:28:27]Read from MH i2c: 01 07 00 EC 03 00 00 00 00 00 FF 0F 04 [12:28:27]RasterBufferAndPrint [12:28:27]line Счет N : (1)507507 [12:28:27]line ИНН: 02508201610067 [12:28:27]line Контрольно-Кассовый Чек [12:28:27]line ПРОДАЖА [12:28:27]line ТРК (МРК, ГНК) : 11 [12:28:27]line Товар: 2710194210 [12:28:27]line ДТ-К-5 [12:28:27]line 33.470 * 74.70 [12:28:27]line = 2500.21 [12:28:27]line НДС 12% НСП 1% [12:28:27]line > о реализуемом товаре [12:28:27]line ОКРУГЛЕНИЕ: -0.21 [12:28:27]line ИТОГО: 2500.00 [12:28:27]line Внесено: 2500.00 [12:28:27]line СДАЧА: 0.00 [12:28:27]line НСП 1% : 22.13 [12:28:27]line НДС 12% : 265.51 [12:28:27]line Наличными: 2500.00 [12:28:27]line Безнал.: 0.00 [12:28:27]line Место: АЗС № 91 "Партнер Нефть" [12:28:27]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:28:27]line СНО: Общий режим [12:28:27]line Чек 64 16.05.2024 12:28 [12:28:27]line Смена: 357 ФФД: 1.0 [12:28:27]line ЗНМ: 0300000119 [12:28:27]line РНМ: 0000000000091845 [12:28:27]line Версия ККМ: 001 [12:28:27]line ФМ: 0000000000871829 [12:28:27]line ФД: 67466 [12:28:27]line ФПД: 140548871466816 [12:28:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T122826&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67466&fm=140548871466816&tin=02508201610067®Number=0000000000091845&sum=250000 [12:28:28]OFD Sender: Processing packet 67466 [packets to send 35, broken 34] [12:28:28]ProducePacketName [12:28:28]name=ofd_packets/00067466 [12:28:28]OFD Sender: To server: pG, [12:28:28]CommunicateWithHost lk.salyk.kg:30040 [12:28:28]ConnectInit lk.salyk.kg [12:28:28]written 0, free lines is 4095 [12:28:28]Connected sock=10 [12:28: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 38 32 39 0C 01 00 00 F3 73 04 01 D3 EA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 82 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 A5 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 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 40 00 00 00 F4 03 04 00 EA FB 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 8A 07 01 00 35 04 06 00 7F D4 15 8E AF 40 70 B8 AC ED FE 40 47 C4 [12:28:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 21 01 47 00 A9 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 38 32 39 10 04 04 00 8A 07 01 00 F4 03 04 00 C5 A3 45 66 B6 04 01 00 00 63 26 12 C6 B5 2D 10 9A [12:28:28]CommunicateWithHost err = 0 [12:28:28]CheckOFDResponse [12:28:28]1017 (14) - 77093643461234 [12:28:28]1041 (16) - 0000000000871829 [12:28:28]1040 (4) - 67466 [12:28:28]1012 (4) - 16.05.2024 06:12 [12:28:28]1206 (1) - 0 [12:28:28]OFD Sender: Remove packet 67466 [12:28:28]ProducePacketName [12:28:28]name=ofd_packets/00067466 [12:28:28]NVStorageDeleteData [12:28:28]Write to MH i2c: 01 00 00 16 04 1A [12:28:28]Write i2c OK [12:28:28]MH_I2C_Read... [12:28:28]Read from MH i2c: 01 [12:28:28]MH_I2C_Read... [12:28:28]Read from MH i2c: 01 07 00 [12:28:28]MH_I2C_Read... [12:28:28]Read from MH i2c: 01 07 00 16 04 00 00 00 00 00 CF 0C FC [12:28:28]RasterBufferAndPrint [12:28:28]line [12:28:28]line [12:28:28]line [12:28:28]line [12:28:28]line [12:28:28]written 0, free lines is 3285 [12:28:28]MH_Cut [12:28:28]Write to MH i2c: D1 01 00 1D 04 01 F3 [12:28:28]Write i2c OK [12:28:28]MH_I2C_Read... [12:28:28]Read from MH i2c: D1 [12:28:28]MH_I2C_Read... [12:28:28]Read from MH i2c: D1 01 00 [12:28:28]MH_I2C_Read... [12:28:28]Read from MH i2c: D1 01 00 1D 04 00 F2 [12:28:28]Write to MH i2c: 01 00 00 1E 04 22 [12:28:28]Write i2c OK [12:28:28]MH_I2C_Read... [12:28:28]OFD Sender: No OFD packet to send [12:28:29]*** Cut start [12:28:29]*** Purtial cut [12:28:29]*** CUTSNS_PIN = 0 [12:28:29]*** Stage 1: CUTSNS_PIN = 1 [12:28:31]Read from MH i2c: 01 [12:28:31]MH_I2C_Read... [12:28:31]*** Stop cut motor [12:28:31]*** Cut end [12:28:31]Read from MH i2c: 01 07 00 [12:28:31]MH_I2C_Read... [12:28:31]Read from MH i2c: 01 07 00 1E 04 00 00 00 00 00 FF 0F 37 [12:28:31]process_action close_receipt done [12:28:31]requested_data is exist [12:28:31]produce_requested_data [12:28:31]requested_item fm.sn is exist - process it [12:28:31]wFMCommunicate request_size=4 [12:28:31]MH_SAM_APDU [12:28:31]CAPDU: 80 11 00 00 [12:28:31]Write to MH i2c: E2 08 00 1F 04 80 11 00 00 00 00 00 00 9D [12:28:31]Write i2c OK [12:28:31]MH_I2C_Read... [12:28:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:31]Read from MH i2c: E2 [12:28:31]MH_I2C_Read... [12:28:31]Read from MH i2c: E2 17 00 [12:28:31]MH_I2C_Read... [12:28:31]Read from MH i2c: E2 17 00 1F 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F3 [12:28:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:28:31]wFMCommunicate OK [12:28:31]requested_item fd.num is exist - process it [12:28:31]SAM_PROTO_GetFieldsCounters [12:28:31]wFMCommunicate request_size=4 [12:28:31]MH_SAM_APDU [12:28:31]CAPDU: 80 13 00 00 [12:28:31]Write to MH i2c: E2 08 00 20 04 80 13 00 00 00 00 00 00 A0 [12:28:31]Write i2c OK [12:28:31]MH_I2C_Read... [12:28:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:28:31]Read from MH i2c: E2 [12:28:31]MH_I2C_Read... [12:28:31]Read from MH i2c: E2 62 00 [12:28:31]MH_I2C_Read... [12:28:31]Read from MH i2c: E2 62 00 20 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 8A 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [12:28: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 8A 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:28:31]wFMCommunicate OK [12:28:31]SAM_PROTO_GetFieldsCounters done [12:28:31]requested_item shift.num is exist - process it [12:28:31]requested_item shift.opened is exist - process it [12:28:31]req_shift_opened [12:28:31]FM_GetShiftState [12:28:31]SAM_PROTO_GetShiftState [12:28:31]wFMCommunicate request_size=4 [12:28:31]MH_SAM_APDU [12:28:31]CAPDU: 80 13 01 00 [12:28:31]Write to MH i2c: E2 08 00 21 04 80 13 01 00 00 00 00 00 A2 [12:28:31]Write i2c OK [12:28:31]MH_I2C_Read... [12:28:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:31]Read from MH i2c: E2 [12:28:31]MH_I2C_Read... [12:28:31]Read from MH i2c: E2 0E 00 [12:28:31]MH_I2C_Read... [12:28:31]Read from MH i2c: E2 0E 00 21 04 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 4E [12:28:31]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [12:28:31]wFMCommunicate OK [12:28:31]SAM_PROTO_GetShiftState done [12:28:31]FM_GetShiftState done [12:28:31]req_shift_opened done [12:28:31]requested_item shift.open_date is exist - process it [12:28:31]req_shift_open_date [12:28:31]req_shift_open_date done [12:28:31]produce_requested_data done [12:28:31]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67466,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [12:28:31]process_action_free close_receipt [12:28:31]json_value_free [12:28:31]json_value_free done [12:28:31]process_json_proto returns [12:28:31]Send response to host [12:28:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67466,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [12:28:31]free response buf [12:28:31]execute_script done [12:28:31]execute_script returns [12:28:31]free content buf [12:28:31]Sock 9.Close socket [12:28:31]Sock 9.Thread stoped [12:28:34]OFD Sender: No OFD packet to send [12:28:39]OFD Sender: No OFD packet to send [12:28:44]OFD Sender: No OFD packet to send [12:28:49]OFD Sender: No OFD packet to send [12:28:54]OFD Sender: No OFD packet to send [12:28:59]OFD Sender: No OFD packet to send [12:29:04]OFD Sender: No OFD packet to send [12:29:09]OFD Sender: No OFD packet to send [12:29:14]OFD Sender: No OFD packet to send [12:29:19]OFD Sender: No OFD packet to send [12:29:24]OFD Sender: No OFD packet to send [12:29:29]OFD Sender: No OFD packet to send [12:29:34]OFD Sender: No OFD packet to send [12:29:39]OFD Sender: No OFD packet to send [12:29:44]OFD Sender: No OFD packet to send [12:29:49]OFD Sender: No OFD packet to send [12:29:54]OFD Sender: No OFD packet to send [12:29:59]OFD Sender: No OFD packet to send [12:30:04]OFD Sender: No OFD packet to send [12:30:09]OFD Sender: No OFD packet to send [12:30:14]OFD Sender: No OFD packet to send [12:30:19]OFD Sender: No OFD packet to send [12:30:24]OFD Sender: No OFD packet to send [12:30:29]OFD Sender: No OFD packet to send [12:30:34]OFD Sender: No OFD packet to send [12:30:39]OFD Sender: No OFD packet to send [12:30:44]OFD Sender: No OFD packet to send [12:30:49]OFD Sender: No OFD packet to send [12:30:54]OFD Sender: No OFD packet to send [12:30:59]OFD Sender: No OFD packet to send [12:31:04]OFD Sender: No OFD packet to send [12:31:09]OFD Sender: No OFD packet to send [12:31:14]OFD Sender: No OFD packet to send [12:31:19]OFD Sender: No OFD packet to send [12:31:24]OFD Sender: No OFD packet to send [12:31:29]OFD Sender: No OFD packet to send [12:31:34]OFD Sender: No OFD packet to send [12:31:39]OFD Sender: No OFD packet to send [12:31:44]OFD Sender: No OFD packet to send [12:31:49]OFD Sender: No OFD packet to send [12:31:54]OFD Sender: No OFD packet to send [12:31:59]OFD Sender: No OFD packet to send [12:32:04]OFD Sender: No OFD packet to send [12:32:09]OFD Sender: No OFD packet to send [12:32:14]OFD Sender: No OFD packet to send [12:32:19]OFD Sender: No OFD packet to send [12:32:24]OFD Sender: No OFD packet to send [12:32:29]OFD Sender: No OFD packet to send [12:32:34]OFD Sender: No OFD packet to send [12:32:39]OFD Sender: No OFD packet to send [12:32:44]OFD Sender: No OFD packet to send [12:32:49]OFD Sender: No OFD packet to send [12:32:54]OFD Sender: No OFD packet to send [12:32:59]OFD Sender: No OFD packet to send [12:33:04]OFD Sender: No OFD packet to send [12:33:09]OFD Sender: No OFD packet to send [12:33:14]OFD Sender: No OFD packet to send [12:33:19]OFD Sender: No OFD packet to send [12:33:24]OFD Sender: No OFD packet to send [12:33:29]OFD Sender: No OFD packet to send [12:33:34]OFD Sender: No OFD packet to send [12:33:39]OFD Sender: No OFD packet to send [12:33:44]OFD Sender: No OFD packet to send [12:33:49]OFD Sender: No OFD packet to send [12:33:54]OFD Sender: No OFD packet to send [12:33:59]OFD Sender: No OFD packet to send [12:34:04]OFD Sender: No OFD packet to send [12:34:09]OFD Sender: No OFD packet to send [12:34:12]accept exits with 8 [12:34:12]New connection [12:34:12]New thread 3067039076 created [12:34:12]Thread 3067182436 joined [12:34:12]Waiting for new connection... [12:34:12] Sock 8.Parse request [12:34:12]Sock 8.Check first char [12:34:12]Sock 8.First char is OK [12:34:12]request: POST /json_proto HTTP/1.0 [12:34:12]Method: POST [12:34:12]URL: /json_proto [12:34:12]Method is POST - this is cgi request [12:34:12]url: /json_proto [12:34:12]query_string will be loaded in cgi processing [12:34:12]execute_cgi json_proto POST (null) [12:34:12]execute_cgi path=json_proto method=POST [12:34:12]POST find Content-Length [12:34:12]Host: 172.17.41.195:8080 [12:34:12]Content-Length: 803 [12:34:12]Content-Type: application/json [12:34:12] [12:34:12]POST finish read [12:34:12]Found Content-Length = 803 [12:34:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507509", "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.80, "quantity" : 37.430, "sum" : 2500.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2500.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:12]execute_script... [12:34:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507509", "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.80, "quantity" : 37.430, "sum" : 2500.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2500.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:12]POST & json_proto [12:34:12]process_json_proto [12:34:12]json parsed OK: [12:34:12]protocol is kg_v1.0 [12:34:12]action value=close_receipt [12:34:12]process_action close_receipt [12:34:12]cmd_close_receipt [12:34:12]MH_GetDate [12:34:12]Write to MH i2c: F0 00 00 22 04 15 [12:34:12]Write i2c OK [12:34:12]MH_I2C_Read... [12:34:12]Read from MH i2c: F0 [12:34:12]MH_I2C_Read... [12:34:12]Read from MH i2c: F0 09 00 [12:34:12]MH_I2C_Read... [12:34:12]Read from MH i2c: F0 09 00 22 04 00 44 FD 45 66 FC 21 6F 64 FA [12:34:12]GetLastDocTimeStamp 1715862506 [12:34:12]current date 1715862852 [12:34:12]FM_GetShiftState [12:34:12]SAM_PROTO_GetShiftState [12:34:12]wFMCommunicate request_size=4 [12:34:12]MH_SAM_APDU [12:34:12]CAPDU: 80 13 01 00 [12:34:12]Write to MH i2c: E2 08 00 23 04 80 13 01 00 00 00 00 00 A4 [12:34:12]Write i2c OK [12:34:12]MH_I2C_Read... [12:34:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:12]Read from MH i2c: E2 [12:34:12]MH_I2C_Read... [12:34:12]Read from MH i2c: E2 0E 00 [12:34:12]MH_I2C_Read... [12:34:12]Read from MH i2c: E2 0E 00 23 04 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 50 [12:34:12]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [12:34:12]wFMCommunicate OK [12:34:12]SAM_PROTO_GetShiftState done [12:34:12]FM_GetShiftState done [12:34:12]opened in 1715818916 [12:34:12]opened+sec_in_day 1715905316 [12:34:12]quantity*price = 250032 [12:34:12]sum+1 = 250033 [12:34:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.32 НСП 1% : 22.13 НДС 12% : 265.52 Наличными: 0.00 Безнал.: 2500.32 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 65 16.05.2024 12:34 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67467 ФПД: 125814660561735 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T123412&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67467&fm=125814660561735&tin=02508201610067®Number=0000000000091845&sum=250032 [12:34:13]StoreToDocumentArchive [12:34:13]shift 357 fd 67467 [12:34:13]save to /storage/0357/doc_00067467 [12:34:13]save last doc name /storage/0357/doc_00067467 to /storage/kkm_last_doc_name [12:34:13]save OK [12:34:13]Clear old archive folders... [12:34:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:34:13]tlvbuf is 017B1C50 [12:34:13]SAM_PROTO_ClearQueue [12:34:13]wFMCommunicate request_size=4 [12:34:13]MH_SAM_APDU [12:34:13]CAPDU: 80 09 00 00 [12:34:13]Write to MH i2c: E2 08 00 30 04 80 09 00 00 00 00 00 00 A6 [12:34:13]Write i2c OK [12:34:13]MH_I2C_Read... [12:34:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:34:13]Read from MH i2c: E2 [12:34:13]MH_I2C_Read... [12:34:13]Read from MH i2c: E2 03 00 [12:34:13]MH_I2C_Read... [12:34:13]Read from MH i2c: E2 03 00 30 04 00 90 00 A8 [12:34:13]RAPDU: 90 00 [12:34:13]wFMCommunicate OK [12:34:13]SAM_PROTO_ClearQueue done [12:34:13]KKMCreateOFDPacket [12:34:13]OFDProtocolAddRootSTLVToBuf [12:34:13]FM_MakeSignedData [12:34:13]FM_MakeSignedData [12:34:13]SAM_PROTO_SignData [12:34:13]wFMCommunicate request_size=4 [12:34:13]MH_SAM_APDU [12:34:13]CAPDU: 80 0D 01 02 [12:34:13]Write to MH i2c: E2 08 00 31 04 80 0D 01 02 00 00 00 00 AE [12:34:13]Write i2c OK [12:34:13]MH_I2C_Read... [12:34:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:34:13]Read from MH i2c: E2 [12:34:13]MH_I2C_Read... [12:34:13]Read from MH i2c: E2 03 00 [12:34:13]MH_I2C_Read... [12:34:13]Read from MH i2c: E2 03 00 31 04 00 90 00 A9 [12:34:13]RAPDU: 90 00 [12:34:13]wFMCommunicate OK [12:34:13]wFMCommunicate request_size=255 [12:34:13]MH_SAM_APDU [12:34:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 92 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 B0 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 44 FD 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 8B 07 01 00 35 04 06 00 72 [12:34:13]Write to MH i2c: E2 02 01 32 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 92 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 B0 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 44 FD 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 8B 07 01 00 35 04 06 00 72 00 00 A4 [12:34:13]Write i2c OK [12:34:13]MH_I2C_Read... [12:34:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:13]Read from MH i2c: E2 [12:34:13]MH_I2C_Read... [12:34:13]Read from MH i2c: E2 03 00 [12:34:13]MH_I2C_Read... [12:34:13]Read from MH i2c: E2 03 00 32 04 00 90 00 AA [12:34:13]RAPDU: 90 00 [12:34:13]wFMCommunicate OK [12:34:13]wFMCommunicate request_size=10 [12:34:13]MH_SAM_APDU [12:34:13]CAPDU: 80 0D 02 02 05 6D 82 26 7B 47 [12:34:13]Write to MH i2c: E2 0D 00 33 04 80 0D 02 02 05 00 6D 82 26 7B 47 00 00 92 [12:34:13]Write i2c OK [12:34:13]MH_I2C_Read... [12:34:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:13]Read from MH i2c: E2 [12:34:13]MH_I2C_Read... [12:34:13]Read from MH i2c: E2 03 00 [12:34:13]MH_I2C_Read... [12:34:13]Read from MH i2c: E2 03 00 33 04 00 90 00 AB [12:34:13]RAPDU: 90 00 [12:34:13]wFMCommunicate OK [12:34:13]wFMCommunicate request_size=4 [12:34:13]MH_SAM_APDU [12:34:13]CAPDU: 80 0D 03 02 [12:34:13]Write to MH i2c: E2 08 00 34 04 80 0D 03 02 00 00 00 00 B3 [12:34:13]Write i2c OK [12:34:13]MH_I2C_Read... [12:34:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:34:13]Read from MH i2c: E2 [12:34:13]MH_I2C_Read... [12:34:13]Read from MH i2c: E2 0B 00 [12:34:13]MH_I2C_Read... [12:34:13]Read from MH i2c: E2 0B 00 34 04 00 5E 5C 30 81 E2 D7 4A 7A 90 00 9C [12:34:13]RAPDU: 5E 5C 30 81 E2 D7 4A 7A 90 00 [12:34:13]wFMCommunicate OK [12:34:13]SAM_PROTO_SignData done [12:34:13]FM_MakeSignedData done [12:34:13]CreateOFDProtocolMessage [12:34:13]wFMCommunicate request_size=4 [12:34:13]MH_SAM_APDU [12:34:13]CAPDU: 80 11 00 00 [12:34:13]Write to MH i2c: E2 08 00 35 04 80 11 00 00 00 00 00 00 B3 [12:34:13]Write i2c OK [12:34:13]MH_I2C_Read... [12:34:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:13]Read from MH i2c: E2 [12:34:13]MH_I2C_Read... [12:34:13]Read from MH i2c: E2 17 00 [12:34:13]MH_I2C_Read... [12:34:13]Read from MH i2c: E2 17 00 35 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 09 [12:34:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:34:13]wFMCommunicate OK [12:34:13]CreateOFDProtocolMessage done [12:34:13]OFDSenderStorePacket 67467 [12:34:13]StoreOFDPacket docnum=67467 [12:34:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 39 E9 07 01 C9 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 36 92 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 B0 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 44 FD 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 8B 07 01 00 35 04 06 00 72 6D 82 26 7B 47 5E 5C 30 81 E2 D7 4A 7A [12:34:13]CheckFolder [12:34:13]dirname=/storage/ofd_packets [12:34:13]CheckFolder done [12:34:13]ProducePacketName [12:34:13]name=ofd_packets/00067467 [12:34:13]NVStorageSaveData ofd_packets/00067467 [12:34:13]File name is /storage/ofd_packets/00067467 [12:34:13]Write 301 bytes [12:34:13]NVStorageSaveData done [12:34:13]OFDSenderStorePacket done [12:34:13]KKMCreateOFDPacket done [12:34:13]NVStorageSaveData kkm_last_timestamp [12:34:13]File name is /storage/kkm_last_timestamp [12:34:13]Write 4 bytes [12:34:13]NVStorageSaveData done [12:34:13]ExternCall_PrintAddStr [12:34:13]wPrintStart [12:34:13]Write to MH i2c: 01 00 00 36 04 3A [12:34:13]Write i2c OK [12:34:13]MH_I2C_Read... [12:34:13]Read from MH i2c: 01 [12:34:13]MH_I2C_Read... [12:34:13]Read from MH i2c: 01 07 00 [12:34:13]MH_I2C_Read... [12:34:13]Read from MH i2c: 01 07 00 36 04 00 00 00 00 00 FF 0F 4F [12:34:13]RasterBufferAndPrint [12:34:13]line Счет N : (1)507509 [12:34:13]line ИНН: 02508201610067 [12:34:13]line Контрольно-Кассовый Чек [12:34:13]line ПРОДАЖА [12:34:13]line ТРК (МРК, ГНК) : 33 [12:34:13]line Товар: 2710124130 [12:34:13]line Аи-92-К-5 [12:34:13]line 37.430 * 66.80 [12:34:13]line = 2500.32 [12:34:13]line НДС 12% НСП 1% [12:34:13]line > о реализуемом товаре [12:34:13]line ИТОГО: 2500.32 [12:34:13]line НСП 1% : 22.13 [12:34:13]line НДС 12% : 265.52 [12:34:13]line Наличными: 0.00 [12:34:13]line Безнал.: 2500.32 [12:34:13]line Место: АЗС № 91 "Партнер Нефть" [12:34:13]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:34:13]line СНО: Общий режим [12:34:13]line Чек 65 16.05.2024 12:34 [12:34:13]line Смена: 357 ФФД: 1.0 [12:34:13]line ЗНМ: 0300000119 [12:34:13]line РНМ: 0000000000091845 [12:34:13]line Версия ККМ: 001 [12:34:13]line Платежная система: O! деньги [12:34:13]line ФМ: 0000000000871829 [12:34:13]line ФД: 67467 [12:34:13]line ФПД: 125814660561735 [12:34:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T123412&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67467&fm=125814660561735&tin=02508201610067®Number=0000000000091845&sum=250032 [12:34:13]written 0, free lines is 4095 [12:34:13]OFD Sender: Processing packet 67467 [packets to send 35, broken 34] [12:34:13]ProducePacketName [12:34:13]name=ofd_packets/00067467 [12:34:13]OFD Sender: To server: pG, [12:34:13]CommunicateWithHost lk.salyk.kg:30040 [12:34:13]ConnectInit lk.salyk.kg [12:34:13]Connected sock=10 [12:34: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 38 32 39 0F 01 00 00 39 E9 07 01 C9 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 36 92 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 B0 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 44 FD 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 8B 07 01 00 35 04 06 00 72 6D 82 26 7B 47 5E 5C 30 81 E2 D7 4A 7A [12:34:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 0D DE 47 00 AC 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 38 32 39 10 04 04 00 8B 07 01 00 F4 03 04 00 1F A5 45 66 B6 04 01 00 00 B4 EA 35 0B 79 BC B2 C7 [12:34:14]CommunicateWithHost err = 0 [12:34:14]CheckOFDResponse [12:34:14]1017 (14) - 77093643461234 [12:34:14]1041 (16) - 0000000000871829 [12:34:14]1040 (4) - 67467 [12:34:14]1012 (4) - 16.05.2024 06:18 [12:34:14]1206 (1) - 0 [12:34:14]OFD Sender: Remove packet 67467 [12:34:14]ProducePacketName [12:34:14]name=ofd_packets/00067467 [12:34:14]NVStorageDeleteData [12:34:14]Write to MH i2c: 01 00 00 5F 04 63 [12:34:14]Write i2c OK [12:34:14]MH_I2C_Read... [12:34:14]Read from MH i2c: 01 [12:34:14]MH_I2C_Read... [12:34:14]Read from MH i2c: 01 07 00 [12:34:14]MH_I2C_Read... [12:34:14]Read from MH i2c: 01 07 00 5F 04 00 00 00 00 00 E7 0C 5D [12:34:14]RasterBufferAndPrint [12:34:14]line [12:34:14]line [12:34:14]line [12:34:14]line [12:34:14]line [12:34:14]written 0, free lines is 3310 [12:34:14]MH_Cut [12:34:14]Write to MH i2c: D1 01 00 66 04 01 3C [12:34:14]Write i2c OK [12:34:14]MH_I2C_Read... [12:34:14]Read from MH i2c: D1 [12:34:14]MH_I2C_Read... [12:34:14]Read from MH i2c: D1 01 00 [12:34:14]MH_I2C_Read... [12:34:14]Read from MH i2c: D1 01 00 66 04 00 3B [12:34:14]Write to MH i2c: 01 00 00 67 04 6B [12:34:14]Write i2c OK [12:34:14]MH_I2C_Read... [12:34:14]OFD Sender: No OFD packet to send [12:34:14]*** Cut start [12:34:14]*** Purtial cut [12:34:14]*** Stage 1: CUTSNS_PIN = 1 [12:34:15]Read from MH i2c: 01 [12:34:15]MH_I2C_Read... [12:34:15]*** Stop cut motor [12:34:15]*** Cut end [12:34:15]Read from MH i2c: 01 07 00 [12:34:15]MH_I2C_Read... [12:34:15]Read from MH i2c: 01 07 00 67 04 00 00 00 00 00 FF 0F 80 [12:34:15]process_action close_receipt done [12:34:15]requested_data is exist [12:34:15]produce_requested_data [12:34:15]requested_item fm.sn is exist - process it [12:34:15]wFMCommunicate request_size=4 [12:34:15]MH_SAM_APDU [12:34:15]CAPDU: 80 11 00 00 [12:34:15]Write to MH i2c: E2 08 00 68 04 80 11 00 00 00 00 00 00 E6 [12:34:15]Write i2c OK [12:34:15]MH_I2C_Read... [12:34:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:15]Read from MH i2c: E2 [12:34:15]MH_I2C_Read... [12:34:15]Read from MH i2c: E2 17 00 [12:34:15]MH_I2C_Read... [12:34:15]Read from MH i2c: E2 17 00 68 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3C [12:34:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:34:15]wFMCommunicate OK [12:34:15]requested_item fd.num is exist - process it [12:34:15]SAM_PROTO_GetFieldsCounters [12:34:15]wFMCommunicate request_size=4 [12:34:15]MH_SAM_APDU [12:34:15]CAPDU: 80 13 00 00 [12:34:15]Write to MH i2c: E2 08 00 69 04 80 13 00 00 00 00 00 00 E9 [12:34:15]Write i2c OK [12:34:15]MH_I2C_Read... [12:34:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:34:15]Read from MH i2c: E2 [12:34:15]MH_I2C_Read... [12:34:15]Read from MH i2c: E2 62 00 [12:34:15]MH_I2C_Read... [12:34:15]Read from MH i2c: E2 62 00 69 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 8B 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [12:34: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 8B 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:34:15]wFMCommunicate OK [12:34:15]SAM_PROTO_GetFieldsCounters done [12:34:15]requested_item shift.num is exist - process it [12:34:15]requested_item shift.opened is exist - process it [12:34:15]req_shift_opened [12:34:15]FM_GetShiftState [12:34:15]SAM_PROTO_GetShiftState [12:34:15]wFMCommunicate request_size=4 [12:34:15]MH_SAM_APDU [12:34:15]CAPDU: 80 13 01 00 [12:34:15]Write to MH i2c: E2 08 00 6A 04 80 13 01 00 00 00 00 00 EB [12:34:15]Write i2c OK [12:34:15]MH_I2C_Read... [12:34:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:15]Read from MH i2c: E2 [12:34:15]MH_I2C_Read... [12:34:15]Read from MH i2c: E2 0E 00 [12:34:15]MH_I2C_Read... [12:34:15]Read from MH i2c: E2 0E 00 6A 04 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 97 [12:34:15]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [12:34:15]wFMCommunicate OK [12:34:15]SAM_PROTO_GetShiftState done [12:34:15]FM_GetShiftState done [12:34:15]req_shift_opened done [12:34:15]requested_item shift.open_date is exist - process it [12:34:15]req_shift_open_date [12:34:15]req_shift_open_date done [12:34:15]produce_requested_data done [12:34:15]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67467,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [12:34:15]process_action_free close_receipt [12:34:15]json_value_free [12:34:15]json_value_free done [12:34:15]process_json_proto returns [12:34:15]Send response to host [12:34:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67467,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [12:34:15]free response buf [12:34:15]execute_script done [12:34:15]execute_script returns [12:34:15]free content buf [12:34:15]Sock 8.Close socket [12:34:15]Sock 8.Thread stoped [12:34:19]OFD Sender: No OFD packet to send [12:34:24]OFD Sender: No OFD packet to send [12:34:29]OFD Sender: No OFD packet to send [12:34:34]OFD Sender: No OFD packet to send [12:34:39]OFD Sender: No OFD packet to send [12:34:44]OFD Sender: No OFD packet to send [12:34:49]OFD Sender: No OFD packet to send [12:34:54]OFD Sender: No OFD packet to send [12:34:59]OFD Sender: No OFD packet to send [12:35:04]OFD Sender: No OFD packet to send [12:35:09]OFD Sender: No OFD packet to send [12:35:14]OFD Sender: No OFD packet to send [12:35:19]OFD Sender: No OFD packet to send [12:35:24]OFD Sender: No OFD packet to send [12:35:29]OFD Sender: No OFD packet to send [12:35:34]OFD Sender: No OFD packet to send [12:35:39]OFD Sender: No OFD packet to send [12:35:41]accept exits with 9 [12:35:41]New connection [12:35:41]New thread 3067182436 created [12:35:41]Thread 3067039076 joined [12:35:41]Waiting for new connection... [12:35:41] Sock 9.Parse request [12:35:41]Sock 9.Check first char [12:35:41]Sock 9.First char is OK [12:35:41]request: POST /json_proto HTTP/1.0 [12:35:41]Method: POST [12:35:41]URL: /json_proto [12:35:41]Method is POST - this is cgi request [12:35:41]url: /json_proto [12:35:41]query_string will be loaded in cgi processing [12:35:41]execute_cgi json_proto POST (null) [12:35:41]execute_cgi path=json_proto method=POST [12:35:41]POST find Content-Length [12:35:41]Host: 172.17.41.195:8080 [12:35:41]Content-Length: 1212 [12:35:41]Content-Type: application/json [12:35:41] [12:35:41]POST finish read [12:35:41]Found Content-Length = 1212 [12:35:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507510\u000A16.05.2024 12:18\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 1002.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:35:41]execute_script... [12:35:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507510\u000A16.05.2024 12:18\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 1002.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:35:41]POST & json_proto [12:35:41]process_json_proto [12:35:41]json parsed OK: [12:35:41]protocol is kg_v1.0 [12:35:41]action value=print_text [12:35:41]process_action print_text [12:35:41]cmd_print_text [12:35:41]ExternCall_PrintAddStr [12:35:41]wPrintStart [12:35:41]Write to MH i2c: 01 00 00 6B 04 6F [12:35:41]Write i2c OK [12:35:41]MH_I2C_Read... [12:35:41]Read from MH i2c: 01 [12:35:41]MH_I2C_Read... [12:35:41]Read from MH i2c: 01 07 00 [12:35:41]MH_I2C_Read... [12:35:41]Read from MH i2c: 01 07 00 6B 04 00 00 00 00 00 FF 0F 84 [12:35:41]RasterBufferAndPrint [12:35:41]line *****ТОВАРНЫЙ ЧЕК***** [12:35:41]line АЗС-91 [12:35:41]line Партнер нефть [12:35:41]line 02508201610067 [12:35:41]line Кассир : Пайзулдаева А. [12:35:41]line Счет N : (1)507510 [12:35:41]line 16.05.2024 12:18 [12:35:41]line ПРОДАЖА [12:35:41]line ТРК (МРК, ГНК): 43 [12:35:41]line Вид ГСМ : 2710124130 [12:35:41]line Аи-92-К-5 [12:35:41]line 15.000 x 66.80 [12:35:41]line ИТОГ: 1002.00 [12:35:41]line Тип оплаты: Талоны: Топливная Карта [12:35:41]line 02750 [12:35:41]line ______________________ [12:35:41]line (подпись) [12:35:41]written 0, free lines is 4095 [12:35:42]Write to MH i2c: 01 00 00 7F 04 83 [12:35:42]Write i2c OK [12:35:42]MH_I2C_Read... [12:35:42]Read from MH i2c: 01 [12:35:42]MH_I2C_Read... [12:35:42]Read from MH i2c: 01 07 00 [12:35:42]MH_I2C_Read... [12:35:42]Read from MH i2c: 01 07 00 7F 04 00 00 00 00 00 10 0E A8 [12:35:42]RasterBufferAndPrint [12:35:42]line [12:35:42]line [12:35:42]line [12:35:42]line [12:35:42]line [12:35:42]written 0, free lines is 3602 [12:35:42]MH_Cut [12:35:42]Write to MH i2c: D1 01 00 86 04 01 5C [12:35:42]Write i2c OK [12:35:42]MH_I2C_Read... [12:35:42]Read from MH i2c: D1 [12:35:42]MH_I2C_Read... [12:35:42]Read from MH i2c: D1 01 00 [12:35:42]MH_I2C_Read... [12:35:42]Read from MH i2c: D1 01 00 86 04 00 5B [12:35:42]Write to MH i2c: 01 00 00 87 04 8B [12:35:42]Write i2c OK [12:35:42]MH_I2C_Read... [12:35:42]*** Cut start [12:35:42]*** Purtial cut [12:35:42]*** CUTSNS_PIN = 0 [12:35:42]*** Stage 1: CUTSNS_PIN = 1 [12:35:44]OFD Sender: No OFD packet to send [12:35:44]Read from MH i2c: 01 [12:35:44]MH_I2C_Read... [12:35:44]Read from MH i2c: 01 07 00 [12:35:44]MH_I2C_Read... [12:35:44]*** Stop cut motor [12:35:44]*** Cut end [12:35:44]Read from MH i2c: 01 07 00 87 04 00 00 00 00 00 FF 0F A0 [12:35:44]process_action print_text done [12:35:44]requested_data is exist [12:35:44]produce_requested_data [12:35:44]requested_item fm.sn is exist - process it [12:35:44]wFMCommunicate request_size=4 [12:35:44]MH_SAM_APDU [12:35:44]CAPDU: 80 11 00 00 [12:35:44]Write to MH i2c: E2 08 00 88 04 80 11 00 00 00 00 00 00 06 [12:35:44]Write i2c OK [12:35:44]MH_I2C_Read... [12:35:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:44]Read from MH i2c: E2 [12:35:44]MH_I2C_Read... [12:35:44]Read from MH i2c: E2 17 00 [12:35:44]MH_I2C_Read... [12:35:44]Read from MH i2c: E2 17 00 88 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 5C [12:35:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:35:44]wFMCommunicate OK [12:35:44]requested_item fd.num is exist - process it [12:35:44]SAM_PROTO_GetFieldsCounters [12:35:44]wFMCommunicate request_size=4 [12:35:44]MH_SAM_APDU [12:35:44]CAPDU: 80 13 00 00 [12:35:44]Write to MH i2c: E2 08 00 89 04 80 13 00 00 00 00 00 00 09 [12:35:44]Write i2c OK [12:35:44]MH_I2C_Read... [12:35:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:35:44]Read from MH i2c: E2 [12:35:44]MH_I2C_Read... [12:35:44]Read from MH i2c: E2 62 00 [12:35:44]MH_I2C_Read... [12:35:44]Read from MH i2c: E2 62 00 89 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 8B 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [12:35: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 8B 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:35:44]wFMCommunicate OK [12:35:44]SAM_PROTO_GetFieldsCounters done [12:35:44]requested_item shift.num is exist - process it [12:35:44]requested_item shift.opened is exist - process it [12:35:44]req_shift_opened [12:35:44]FM_GetShiftState [12:35:44]SAM_PROTO_GetShiftState [12:35:44]wFMCommunicate request_size=4 [12:35:44]MH_SAM_APDU [12:35:44]CAPDU: 80 13 01 00 [12:35:44]Write to MH i2c: E2 08 00 8A 04 80 13 01 00 00 00 00 00 0B [12:35:44]Write i2c OK [12:35:44]MH_I2C_Read... [12:35:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:44]Read from MH i2c: E2 [12:35:44]MH_I2C_Read... [12:35:44]Read from MH i2c: E2 0E 00 [12:35:44]MH_I2C_Read... [12:35:44]Read from MH i2c: E2 0E 00 8A 04 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 B7 [12:35:44]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [12:35:44]wFMCommunicate OK [12:35:45]SAM_PROTO_GetShiftState done [12:35:45]FM_GetShiftState done [12:35:45]req_shift_opened done [12:35:45]requested_item shift.open_date is exist - process it [12:35:45]req_shift_open_date [12:35:45]req_shift_open_date done [12:35:45]produce_requested_data done [12:35:45]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67467,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [12:35:45]process_action_free print_text [12:35:45]json_value_free [12:35:45]json_value_free done [12:35:45]process_json_proto returns [12:35:45]Send response to host [12:35:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67467,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [12:35:45]free response buf [12:35:45]execute_script done [12:35:45]execute_script returns [12:35:45]free content buf [12:35:45]Sock 9.Close socket [12:35:45]Sock 9.Thread stoped [12:35:49]OFD Sender: No OFD packet to send [12:35:54]OFD Sender: No OFD packet to send [12:35:59]OFD Sender: No OFD packet to send [12:36:04]OFD Sender: No OFD packet to send [12:36:09]OFD Sender: No OFD packet to send [12:36:14]OFD Sender: No OFD packet to send [12:36:15]accept exits with 8 [12:36:15]New connection [12:36:15]New thread 3067039076 created [12:36:15]Thread 3067182436 joined [12:36:15]Waiting for new connection... [12:36:15] Sock 8.Parse request [12:36:15]Sock 8.Check first char [12:36:15]Sock 8.First char is OK [12:36:15]request: POST /json_proto HTTP/1.0 [12:36:15]Method: POST [12:36:15]URL: /json_proto [12:36:15]Method is POST - this is cgi request [12:36:15]url: /json_proto [12:36:15]query_string will be loaded in cgi processing [12:36:15]execute_cgi json_proto POST (null) [12:36:15]execute_cgi path=json_proto method=POST [12:36:15]POST find Content-Length [12:36:15]Host: 172.17.41.195:8080 [12:36:15]Content-Length: 669 [12:36:15]Content-Type: application/json [12:36:15] [12:36:15]POST finish read [12:36:15]Found Content-Length = 669 [12:36:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12086", "tax_sys" : 0, "items" : [ { "code": "5449000189394", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u044F\u0433\u043E\u0434\u0430 0,5\u043B", "price" : 62.00, "quantity" : 5.000, "sum" : 310.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 310.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:36:15]execute_script... [12:36:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12086", "tax_sys" : 0, "items" : [ { "code": "5449000189394", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u044F\u0433\u043E\u0434\u0430 0,5\u043B", "price" : 62.00, "quantity" : 5.000, "sum" : 310.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 310.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:36:15]POST & json_proto [12:36:15]process_json_proto [12:36:15]json parsed OK: [12:36:15]protocol is kg_v1.0 [12:36:15]action value=close_receipt [12:36:15]process_action close_receipt [12:36:15]cmd_close_receipt [12:36:15]MH_GetDate [12:36:15]Write to MH i2c: F0 00 00 8B 04 7E [12:36:15]Write i2c OK [12:36:15]MH_I2C_Read... [12:36:15]Read from MH i2c: F0 [12:36:15]MH_I2C_Read... [12:36:15]Read from MH i2c: F0 09 00 [12:36:15]MH_I2C_Read... [12:36:15]Read from MH i2c: F0 09 00 8B 04 00 BF FD 45 66 FC 21 6F 64 DE [12:36:15]GetLastDocTimeStamp 1715862852 [12:36:15]current date 1715862975 [12:36:15]FM_GetShiftState [12:36:15]SAM_PROTO_GetShiftState [12:36:15]wFMCommunicate request_size=4 [12:36:15]MH_SAM_APDU [12:36:15]CAPDU: 80 13 01 00 [12:36:15]Write to MH i2c: E2 08 00 8C 04 80 13 01 00 00 00 00 00 0D [12:36:15]Write i2c OK [12:36:15]MH_I2C_Read... [12:36:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:15]Read from MH i2c: E2 [12:36:15]MH_I2C_Read... [12:36:15]Read from MH i2c: E2 0E 00 [12:36:15]MH_I2C_Read... [12:36:15]Read from MH i2c: E2 0E 00 8C 04 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 B9 [12:36:15]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [12:36:15]wFMCommunicate OK [12:36:15]SAM_PROTO_GetShiftState done [12:36:15]FM_GetShiftState done [12:36:15]opened in 1715818916 [12:36:15]opened+sec_in_day 1715905316 [12:36:15]quantity*price = 31000 [12:36:15]sum+1 = 31001 [12:36:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 310.00 НСП 1% : 2.74 НДС 12% : 32.92 Наличными: 310.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 66 16.05.2024 12:36 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67468 ФПД: 266935405155130 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T123615&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67468&fm=266935405155130&tin=02508201610067®Number=0000000000091845&sum=31000 0 [12:36:16]StoreToDocumentArchive [12:36:16]shift 357 fd 67468 [12:36:16]save to /storage/0357/doc_00067468 [12:36:16]save last doc name /storage/0357/doc_00067468 to /storage/kkm_last_doc_name [12:36:16]save OK [12:36:16]Clear old archive folders... [12:36:16]ProcessDocumentItem done err = 0, tmpTLVsize=287 [12:36:16]tlvbuf is 017AC7A0 [12:36:16]SAM_PROTO_ClearQueue [12:36:16]wFMCommunicate request_size=4 [12:36:16]MH_SAM_APDU [12:36:16]CAPDU: 80 09 00 00 [12:36:16]Write to MH i2c: E2 08 00 99 04 80 09 00 00 00 00 00 00 0F [12:36:16]Write i2c OK [12:36:16]MH_I2C_Read... [12:36:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:36:16]Read from MH i2c: E2 [12:36:16]MH_I2C_Read... [12:36:16]Read from MH i2c: E2 03 00 [12:36:16]MH_I2C_Read... [12:36:16]Read from MH i2c: E2 03 00 99 04 00 90 00 11 [12:36:16]RAPDU: 90 00 [12:36:16]wFMCommunicate OK [12:36:16]SAM_PROTO_ClearQueue done [12:36:16]KKMCreateOFDPacket [12:36:16]OFDProtocolAddRootSTLVToBuf [12:36:16]FM_MakeSignedData [12:36:16]FM_MakeSignedData [12:36:16]SAM_PROTO_SignData [12:36:16]wFMCommunicate request_size=4 [12:36:16]MH_SAM_APDU [12:36:16]CAPDU: 80 0D 01 02 [12:36:16]Write to MH i2c: E2 08 00 9A 04 80 0D 01 02 00 00 00 00 17 [12:36:16]Write i2c OK [12:36:16]MH_I2C_Read... [12:36:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:36:16]Read from MH i2c: E2 [12:36:16]MH_I2C_Read... [12:36:16]Read from MH i2c: E2 03 00 [12:36:16]MH_I2C_Read... [12:36:16]Read from MH i2c: E2 03 00 9A 04 00 90 00 12 [12:36:16]RAPDU: 90 00 [12:36:16]wFMCommunicate OK [12:36:16]wFMCommunicate request_size=255 [12:36:16]MH_SAM_APDU [12:36:16]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 38 18 00 00 00 00 13 04 06 00 18 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 BF FD 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 [12:36:16]Write to MH i2c: E2 02 01 9B 04 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 38 18 00 00 00 00 13 04 06 00 18 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 BF FD 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 00 00 4C [12:36:16]Write i2c OK [12:36:16]MH_I2C_Read... [12:36:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:16]Read from MH i2c: E2 [12:36:16]MH_I2C_Read... [12:36:16]Read from MH i2c: E2 03 00 [12:36:16]MH_I2C_Read... [12:36:16]Read from MH i2c: E2 03 00 9B 04 00 90 00 13 [12:36:16]RAPDU: 90 00 [12:36:16]wFMCommunicate OK [12:36:16]wFMCommunicate request_size=46 [12:36:16]MH_SAM_APDU [12:36:16]CAPDU: 80 0D 02 02 29 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 8C 07 01 00 35 04 06 00 F2 C6 BE 00 93 3A [12:36:16]Write to MH i2c: E2 31 00 9C 04 80 0D 02 02 29 00 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 8C 07 01 00 35 04 06 00 F2 C6 BE 00 93 3A 00 00 83 [12:36:16]Write i2c OK [12:36:16]MH_I2C_Read... [12:36:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:16]Read from MH i2c: E2 [12:36:16]MH_I2C_Read... [12:36:16]Read from MH i2c: E2 03 00 [12:36:16]MH_I2C_Read... [12:36:16]Read from MH i2c: E2 03 00 9C 04 00 90 00 14 [12:36:16]RAPDU: 90 00 [12:36:16]wFMCommunicate OK [12:36:16]wFMCommunicate request_size=4 [12:36:16]MH_SAM_APDU [12:36:16]CAPDU: 80 0D 03 02 [12:36:16]Write to MH i2c: E2 08 00 9D 04 80 0D 03 02 00 00 00 00 1C [12:36:16]Write i2c OK [12:36:16]MH_I2C_Read... [12:36:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:36:16]Read from MH i2c: E2 [12:36:16]MH_I2C_Read... [12:36:16]Read from MH i2c: E2 0B 00 [12:36:16]MH_I2C_Read... [12:36:16]Read from MH i2c: E2 0B 00 9D 04 00 10 C5 08 7D B9 42 F5 3D 90 00 A4 [12:36:16]RAPDU: 10 C5 08 7D B9 42 F5 3D 90 00 [12:36:16]wFMCommunicate OK [12:36:16]SAM_PROTO_SignData done [12:36:16]FM_MakeSignedData done [12:36:16]CreateOFDProtocolMessage [12:36:16]wFMCommunicate request_size=4 [12:36:16]MH_SAM_APDU [12:36:16]CAPDU: 80 11 00 00 [12:36:16]Write to MH i2c: E2 08 00 9E 04 80 11 00 00 00 00 00 00 1C [12:36:16]Write i2c OK [12:36:16]MH_I2C_Read... [12:36:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:16]Read from MH i2c: E2 [12:36:16]MH_I2C_Read... [12:36:16]Read from MH i2c: E2 17 00 [12:36:16]MH_I2C_Read... [12:36:16]Read from MH i2c: E2 17 00 9E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 72 [12:36:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:36:16]wFMCommunicate OK [12:36:16]CreateOFDProtocolMessage done [12:36:16]OFDSenderStorePacket 67468 [12:36:16]StoreOFDPacket docnum=67468 [12:36:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 33 01 00 00 0C CB 2B 01 0C E1 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 38 18 00 00 00 00 13 04 06 00 18 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 BF FD 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 8C 07 01 00 35 04 06 00 F2 C6 BE 00 93 3A 10 C5 08 7D B9 42 F5 3D [12:36:16]CheckFolder [12:36:16]dirname=/storage/ofd_packets [12:36:16]CheckFolder done [12:36:16]ProducePacketName [12:36:16]name=ofd_packets/00067468 [12:36:16]NVStorageSaveData ofd_packets/00067468 [12:36:16]File name is /storage/ofd_packets/00067468 [12:36:16]Write 337 bytes [12:36:16]NVStorageSaveData done [12:36:16]OFDSenderStorePacket done [12:36:16]KKMCreateOFDPacket done [12:36:16]NVStorageSaveData kkm_last_timestamp [12:36:16]File name is /storage/kkm_last_timestamp [12:36:16]Write 4 bytes [12:36:16]NVStorageSaveData done [12:36:16]ExternCall_PrintAddStr [12:36:16]wPrintStart [12:36:16]Write to MH i2c: 01 00 00 9F 04 A3 [12:36:16]Write i2c OK [12:36:16]MH_I2C_Read... [12:36:16]Read from MH i2c: 01 [12:36:16]MH_I2C_Read... [12:36:16]Read from MH i2c: 01 07 00 [12:36:16]MH_I2C_Read... [12:36:16]Read from MH i2c: 01 07 00 9F 04 00 00 00 00 00 FF 0F B8 [12:36:16]RasterBufferAndPrint [12:36:16]line Счет N : (3)12086 [12:36:16]line ИНН: 02508201610067 [12:36:16]line Контрольно-Кассовый Чек [12:36:16]line ПРОДАЖА [12:36:16]line Товар: 5449000189394 [12:36:16]line Холодный чай Fuse ягода 0,5л [12:36:16]line 5.000 * 62.00 [12:36:16]line = 310.00 [12:36:16]line НДС 12% НСП 1% [12:36:16]line > о реализуемом товаре [12:36:16]line ИТОГО: 310.00 [12:36:16]line НСП 1% : 2.74 [12:36:16]line НДС 12% : 32.92 [12:36:16]line Наличными: 310.00 [12:36:16]line Безнал.: 0.00 [12:36:16]line Место: АЗС № 91 "Партнер Нефть" [12:36:16]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:36:16]line СНО: Общий режим [12:36:16]line Чек 66 16.05.2024 12:36 [12:36:16]line Смена: 357 ФФД: 1.0 [12:36:16]line ЗНМ: 0300000119 [12:36:16]line РНМ: 0000000000091845 [12:36:16]line Версия ККМ: 001 [12:36:16]line ФМ: 0000000000871829 [12:36:16]line ФД: 67468 [12:36:16]line ФПД: 266935405155130 [12:36:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T123615&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67468&fm=266935405155130&tin=02508201610067®Number=0000000000091845&sum=31000 [12:36:17]line 0 [12:36:17]OFD Sender: Processing packet 67468 [packets to send 35, broken 34] [12:36:17]ProducePacketName [12:36:17]name=ofd_packets/00067468 [12:36:17]OFD Sender: To server: pG, [12:36:17]CommunicateWithHost lk.salyk.kg:30040 [12:36:17]ConnectInit lk.salyk.kg [12:36:17]written 0, free lines is 4095 [12:36:17]Connected sock=10 [12:36: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 38 32 39 33 01 00 00 0C CB 2B 01 0C E1 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 38 18 00 00 00 00 13 04 06 00 18 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 BF FD 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 8C 07 01 00 35 04 06 00 F2 C6 BE 00 93 3A 10 C5 08 7D B9 42 F5 3D [12:36:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 C2 FC 47 00 2E 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 38 32 39 10 04 04 00 8C 07 01 00 F4 03 04 00 9A A5 45 66 B6 04 01 00 00 63 23 2F 5D E1 6F EF 08 [12:36:17]CommunicateWithHost err = 0 [12:36:17]CheckOFDResponse [12:36:17]1017 (14) - 77093643461234 [12:36:17]1041 (16) - 0000000000871829 [12:36:17]1040 (4) - 67468 [12:36:17]1012 (4) - 16.05.2024 06:20 [12:36:17]1206 (1) - 0 [12:36:17]OFD Sender: Remove packet 67468 [12:36:17]ProducePacketName [12:36:17]name=ofd_packets/00067468 [12:36:17]NVStorageDeleteData [12:36:17]Write to MH i2c: 01 00 00 C6 04 CA [12:36:17]Write i2c OK [12:36:17]MH_I2C_Read... [12:36:17]Read from MH i2c: 01 [12:36:17]MH_I2C_Read... [12:36:17]Read from MH i2c: 01 07 00 [12:36:17]MH_I2C_Read... [12:36:17]Read from MH i2c: 01 07 00 C6 04 00 00 00 00 00 E6 0C C3 [12:36:17]RasterBufferAndPrint [12:36:17]line [12:36:17]line [12:36:17]line [12:36:17]line [12:36:17]line [12:36:17]written 0, free lines is 3308 [12:36:17]MH_Cut [12:36:17]Write to MH i2c: D1 01 00 CD 04 01 A3 [12:36:17]Write i2c OK [12:36:17]MH_I2C_Read... [12:36:17]Read from MH i2c: D1 [12:36:17]MH_I2C_Read... [12:36:17]Read from MH i2c: D1 01 00 [12:36:17]MH_I2C_Read... [12:36:17]Read from MH i2c: D1 01 00 CD 04 00 A2 [12:36:17]Write to MH i2c: 01 00 00 CE 04 D2 [12:36:17]Write i2c OK [12:36:17]MH_I2C_Read... [12:36:17]OFD Sender: No OFD packet to send [12:36:18]*** Cut start [12:36:18]*** Purtial cut [12:36:18]*** Stage 1: CUTSNS_PIN = 1 [12:36:18]Read from MH i2c: 01 [12:36:18]MH_I2C_Read... [12:36:18]*** Stop cut motor [12:36:18]*** Cut end [12:36:18]Read from MH i2c: 01 07 00 [12:36:18]MH_I2C_Read... [12:36:18]Read from MH i2c: 01 07 00 CE 04 00 00 00 00 00 FF 0F E7 [12:36:18]process_action close_receipt done [12:36:18]requested_data is exist [12:36:18]produce_requested_data [12:36:18]requested_item fm.sn is exist - process it [12:36:18]wFMCommunicate request_size=4 [12:36:18]MH_SAM_APDU [12:36:18]CAPDU: 80 11 00 00 [12:36:18]Write to MH i2c: E2 08 00 CF 04 80 11 00 00 00 00 00 00 4D [12:36:18]Write i2c OK [12:36:18]MH_I2C_Read... [12:36:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:18]Read from MH i2c: E2 [12:36:18]MH_I2C_Read... [12:36:18]Read from MH i2c: E2 17 00 [12:36:18]MH_I2C_Read... [12:36:18]Read from MH i2c: E2 17 00 CF 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A3 [12:36:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:36:18]wFMCommunicate OK [12:36:18]requested_item fd.num is exist - process it [12:36:18]SAM_PROTO_GetFieldsCounters [12:36:18]wFMCommunicate request_size=4 [12:36:18]MH_SAM_APDU [12:36:18]CAPDU: 80 13 00 00 [12:36:18]Write to MH i2c: E2 08 00 D0 04 80 13 00 00 00 00 00 00 50 [12:36:18]Write i2c OK [12:36:18]MH_I2C_Read... [12:36:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:36:18]Read from MH i2c: E2 [12:36:18]MH_I2C_Read... [12:36:18]Read from MH i2c: E2 62 00 [12:36:18]MH_I2C_Read... [12:36:18]Read from MH i2c: E2 62 00 D0 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 8C 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [12:36:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 8C 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:36:18]wFMCommunicate OK [12:36:18]SAM_PROTO_GetFieldsCounters done [12:36:18]requested_item shift.num is exist - process it [12:36:18]requested_item shift.opened is exist - process it [12:36:18]req_shift_opened [12:36:18]FM_GetShiftState [12:36:18]SAM_PROTO_GetShiftState [12:36:18]wFMCommunicate request_size=4 [12:36:18]MH_SAM_APDU [12:36:18]CAPDU: 80 13 01 00 [12:36:18]Write to MH i2c: E2 08 00 D1 04 80 13 01 00 00 00 00 00 52 [12:36:18]Write i2c OK [12:36:18]MH_I2C_Read... [12:36:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:18]Read from MH i2c: E2 [12:36:18]MH_I2C_Read... [12:36:18]Read from MH i2c: E2 0E 00 [12:36:18]MH_I2C_Read... [12:36:18]Read from MH i2c: E2 0E 00 D1 04 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 FE [12:36:18]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [12:36:18]wFMCommunicate OK [12:36:18]SAM_PROTO_GetShiftState done [12:36:18]FM_GetShiftState done [12:36:18]req_shift_opened done [12:36:18]requested_item shift.open_date is exist - process it [12:36:18]req_shift_open_date [12:36:18]req_shift_open_date done [12:36:18]produce_requested_data done [12:36:18]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67468,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [12:36:18]process_action_free close_receipt [12:36:18]json_value_free [12:36:18]json_value_free done [12:36:18]process_json_proto returns [12:36:18]Send response to host [12:36:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67468,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [12:36:18]free response buf [12:36:18]execute_script done [12:36:18]execute_script returns [12:36:18]free content buf [12:36:18]Sock 8.Close socket [12:36:18]Sock 8.Thread stoped [12:36:23]OFD Sender: No OFD packet to send [12:36:28]OFD Sender: No OFD packet to send [12:36:33]OFD Sender: No OFD packet to send [12:36:38]OFD Sender: No OFD packet to send [12:36:43]OFD Sender: No OFD packet to send [12:36:48]OFD Sender: No OFD packet to send [12:36:53]OFD Sender: No OFD packet to send [12:36:58]OFD Sender: No OFD packet to send [12:37:03]OFD Sender: No OFD packet to send [12:37:08]OFD Sender: No OFD packet to send [12:37:13]OFD Sender: No OFD packet to send [12:37:18]OFD Sender: No OFD packet to send [12:37:23]OFD Sender: No OFD packet to send [12:37:28]OFD Sender: No OFD packet to send [12:37:33]OFD Sender: No OFD packet to send [12:37:38]OFD Sender: No OFD packet to send [12:37:43]OFD Sender: No OFD packet to send [12:37:48]OFD Sender: No OFD packet to send [12:37:53]OFD Sender: No OFD packet to send [12:37:58]OFD Sender: No OFD packet to send [12:38:03]OFD Sender: No OFD packet to send [12:38:08]OFD Sender: No OFD packet to send [12:38:13]OFD Sender: No OFD packet to send [12:38:18]OFD Sender: No OFD packet to send [12:38:23]OFD Sender: No OFD packet to send [12:38:28]OFD Sender: No OFD packet to send [12:38:33]OFD Sender: No OFD packet to send [12:38:38]OFD Sender: No OFD packet to send [12:38:43]OFD Sender: No OFD packet to send [12:38:48]OFD Sender: No OFD packet to send [12:38:53]OFD Sender: No OFD packet to send [12:38:58]OFD Sender: No OFD packet to send [12:39:03]OFD Sender: No OFD packet to send [12:39:08]OFD Sender: No OFD packet to send [12:39:13]OFD Sender: No OFD packet to send [12:39:18]OFD Sender: No OFD packet to send [12:39:23]OFD Sender: No OFD packet to send [12:39:28]OFD Sender: No OFD packet to send [12:39:33]OFD Sender: No OFD packet to send [12:39:38]OFD Sender: No OFD packet to send [12:39:43]OFD Sender: No OFD packet to send [12:39:48]OFD Sender: No OFD packet to send [12:39:53]OFD Sender: No OFD packet to send [12:39:58]OFD Sender: No OFD packet to send [12:40:03]OFD Sender: No OFD packet to send [12:40:08]OFD Sender: No OFD packet to send [12:40:13]OFD Sender: No OFD packet to send [12:40:18]OFD Sender: No OFD packet to send [12:40:23]OFD Sender: No OFD packet to send [12:40:28]OFD Sender: No OFD packet to send [12:40:33]OFD Sender: No OFD packet to send [12:40:38]OFD Sender: No OFD packet to send [12:40:43]OFD Sender: No OFD packet to send [12:40:48]OFD Sender: No OFD packet to send [12:40:53]OFD Sender: No OFD packet to send [12:40:58]OFD Sender: No OFD packet to send [12:41:03]OFD Sender: No OFD packet to send [12:41:08]OFD Sender: No OFD packet to send [12:41:13]OFD Sender: No OFD packet to send [12:41:18]OFD Sender: No OFD packet to send [12:41:23]OFD Sender: No OFD packet to send [12:41:28]OFD Sender: No OFD packet to send [12:41:33]OFD Sender: No OFD packet to send [12:41:38]OFD Sender: No OFD packet to send [12:41:43]OFD Sender: No OFD packet to send [12:41:48]OFD Sender: No OFD packet to send [12:41:53]OFD Sender: No OFD packet to send [12:41:58]OFD Sender: No OFD packet to send [12:42:03]OFD Sender: No OFD packet to send [12:42:08]OFD Sender: No OFD packet to send [12:42:13]OFD Sender: No OFD packet to send [12:42:18]OFD Sender: No OFD packet to send [12:42:23]OFD Sender: No OFD packet to send [12:42:28]OFD Sender: No OFD packet to send [12:42:33]OFD Sender: No OFD packet to send [12:42:38]OFD Sender: No OFD packet to send [12:42:43]OFD Sender: No OFD packet to send [12:42:48]OFD Sender: No OFD packet to send [12:42:53]OFD Sender: No OFD packet to send [12:42:58]OFD Sender: No OFD packet to send [12:43:03]OFD Sender: No OFD packet to send [12:43:08]OFD Sender: No OFD packet to send [12:43:13]OFD Sender: No OFD packet to send [12:43:18]OFD Sender: No OFD packet to send [12:43:23]OFD Sender: No OFD packet to send [12:43:28]OFD Sender: No OFD packet to send [12:43:33]OFD Sender: No OFD packet to send [12:43:38]OFD Sender: No OFD packet to send [12:43:43]OFD Sender: No OFD packet to send [12:43:48]OFD Sender: No OFD packet to send [12:43:53]OFD Sender: No OFD packet to send [12:43:58]OFD Sender: No OFD packet to send [12:44:03]OFD Sender: No OFD packet to send [12:44:08]OFD Sender: No OFD packet to send [12:44:13]OFD Sender: No OFD packet to send [12:44:18]OFD Sender: No OFD packet to send [12:44:23]OFD Sender: No OFD packet to send [12:44:28]OFD Sender: No OFD packet to send [12:44:33]OFD Sender: No OFD packet to send [12:44:38]OFD Sender: No OFD packet to send [12:44:43]OFD Sender: No OFD packet to send [12:44:48]OFD Sender: No OFD packet to send [12:44:53]OFD Sender: No OFD packet to send [12:44:58]OFD Sender: No OFD packet to send [12:45:03]OFD Sender: No OFD packet to send [12:45:08]OFD Sender: No OFD packet to send [12:45:13]OFD Sender: No OFD packet to send [12:45:18]OFD Sender: No OFD packet to send [12:45:23]OFD Sender: No OFD packet to send [12:45:28]OFD Sender: No OFD packet to send [12:45:33]OFD Sender: No OFD packet to send [12:45:38]OFD Sender: No OFD packet to send [12:45:43]OFD Sender: No OFD packet to send [12:45:48]OFD Sender: No OFD packet to send [12:45:53]OFD Sender: No OFD packet to send [12:45:58]OFD Sender: No OFD packet to send [12:46:03]OFD Sender: No OFD packet to send [12:46:08]OFD Sender: No OFD packet to send [12:46:13]OFD Sender: No OFD packet to send [12:46:18]OFD Sender: No OFD packet to send [12:46:23]OFD Sender: No OFD packet to send [12:46:28]OFD Sender: No OFD packet to send [12:46:33]OFD Sender: No OFD packet to send [12:46:38]OFD Sender: No OFD packet to send [12:46:43]OFD Sender: No OFD packet to send [12:46:48]OFD Sender: No OFD packet to send [12:46:53]OFD Sender: No OFD packet to send [12:46:58]OFD Sender: No OFD packet to send [12:47:03]OFD Sender: No OFD packet to send [12:47:08]OFD Sender: No OFD packet to send [12:47:13]OFD Sender: No OFD packet to send [12:47:18]OFD Sender: No OFD packet to send [12:47:23]OFD Sender: No OFD packet to send [12:47:28]OFD Sender: No OFD packet to send [12:47:33]OFD Sender: No OFD packet to send [12:47:38]OFD Sender: No OFD packet to send [12:47:43]OFD Sender: No OFD packet to send [12:47:48]OFD Sender: No OFD packet to send [12:47:53]OFD Sender: No OFD packet to send [12:47:54]accept exits with 9 [12:47:54]New connection [12:47:54]New thread 3067182436 created [12:47:54]Thread 3067039076 joined [12:47:54]Waiting for new connection... [12:47:54] Sock 9.Parse request [12:47:54]Sock 9.Check first char [12:47:54]Sock 9.First char is OK [12:47:54]request: POST /json_proto HTTP/1.0 [12:47:54]Method: POST [12:47:54]URL: /json_proto [12:47:54]Method is POST - this is cgi request [12:47:54]url: /json_proto [12:47:54]query_string will be loaded in cgi processing [12:47:54]execute_cgi json_proto POST (null) [12:47:54]execute_cgi path=json_proto method=POST [12:47:54]POST find Content-Length [12:47:54]Host: 172.17.41.195:8080 [12:47:54]Content-Length: 675 [12:47:54]Content-Type: application/json [12:47:54] [12:47:54]POST finish read [12:47:54]Found Content-Length = 675 [12:47:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507511", "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" : 74.70, "quantity" : 10.710, "sum" : 800.04, "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" ] } } [12:47:54]execute_script... [12:47: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)507511", "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" : 74.70, "quantity" : 10.710, "sum" : 800.04, "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" ] } } [12:47:54]POST & json_proto [12:47:54]process_json_proto [12:47:54]json parsed OK: [12:47:54]protocol is kg_v1.0 [12:47:54]action value=close_receipt [12:47:54]process_action close_receipt [12:47:54]cmd_close_receipt [12:47:54]MH_GetDate [12:47:54]Write to MH i2c: F0 00 00 D2 04 C5 [12:47:54]Write i2c OK [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: F0 [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: F0 09 00 [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: F0 09 00 D2 04 00 7B 00 46 66 FC 21 6F 64 E5 [12:47:54]GetLastDocTimeStamp 1715862975 [12:47:54]current date 1715863675 [12:47:54]FM_GetShiftState [12:47:54]SAM_PROTO_GetShiftState [12:47:54]wFMCommunicate request_size=4 [12:47:54]MH_SAM_APDU [12:47:54]CAPDU: 80 13 01 00 [12:47:54]Write to MH i2c: E2 08 00 D3 04 80 13 01 00 00 00 00 00 54 [12:47:54]Write i2c OK [12:47:54]MH_I2C_Read... [12:47:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:54]Read from MH i2c: E2 [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: E2 0E 00 [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: E2 0E 00 D3 04 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 00 [12:47:54]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [12:47:54]wFMCommunicate OK [12:47:54]SAM_PROTO_GetShiftState done [12:47:54]FM_GetShiftState done [12:47:54]opened in 1715818916 [12:47:54]opened+sec_in_day 1715905316 [12:47:54]quantity*price = 80003 [12:47:54]sum+1 = 80005 [12:47:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 67 16.05.2024 12:47 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67469 ФПД: 77913803879254 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T124755&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67469&fm=77913803879254&tin=02508201610067®Number=0000000000091845&sum=80000 [12:47:56]StoreToDocumentArchive [12:47:56]shift 357 fd 67469 [12:47:56]save to /storage/0357/doc_00067469 [12:47:56]save last doc name /storage/0357/doc_00067469 to /storage/kkm_last_doc_name [12:47:56]save OK [12:47:56]Clear old archive folders... [12:47:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:47:56]tlvbuf is 0177E090 [12:47:56]SAM_PROTO_ClearQueue [12:47:56]wFMCommunicate request_size=4 [12:47:56]MH_SAM_APDU [12:47:56]CAPDU: 80 09 00 00 [12:47:56]Write to MH i2c: E2 08 00 E0 04 80 09 00 00 00 00 00 00 56 [12:47:56]Write i2c OK [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: E2 [12:47:56]MH_I2C_Read... [12:47:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:47:56]Read from MH i2c: E2 03 00 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: E2 03 00 E0 04 00 90 00 58 [12:47:56]RAPDU: 90 00 [12:47:56]wFMCommunicate OK [12:47:56]SAM_PROTO_ClearQueue done [12:47:56]KKMCreateOFDPacket [12:47:56]OFDProtocolAddRootSTLVToBuf [12:47:56]FM_MakeSignedData [12:47:56]FM_MakeSignedData [12:47:56]SAM_PROTO_SignData [12:47:56]wFMCommunicate request_size=4 [12:47:56]MH_SAM_APDU [12:47:56]CAPDU: 80 0D 01 02 [12:47:56]Write to MH i2c: E2 08 00 E1 04 80 0D 01 02 00 00 00 00 5E [12:47:56]Write i2c OK [12:47:56]MH_I2C_Read... [12:47:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:47:56]Read from MH i2c: E2 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: E2 03 00 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: E2 03 00 E1 04 00 90 00 59 [12:47:56]RAPDU: 90 00 [12:47:56]wFMCommunicate OK [12:47:56]wFMCommunicate request_size=255 [12:47:56]MH_SAM_APDU [12:47:56]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 29 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 84 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 30 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 43 00 00 00 F4 03 04 00 7B 00 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 8D 07 01 00 35 04 06 00 46 DC B8 9A [12:47:56]Write to MH i2c: E2 02 01 E2 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 D6 29 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 84 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 30 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 43 00 00 00 F4 03 04 00 7B 00 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 8D 07 01 00 35 04 06 00 46 DC B8 9A 00 00 29 [12:47:56]Write i2c OK [12:47:56]MH_I2C_Read... [12:47:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:56]Read from MH i2c: E2 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: E2 03 00 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: E2 03 00 E2 04 00 90 00 5A [12:47:56]RAPDU: 90 00 [12:47:56]wFMCommunicate OK [12:47:56]wFMCommunicate request_size=7 [12:47:56]MH_SAM_APDU [12:47:56]CAPDU: 80 0D 02 02 02 73 56 [12:47:56]Write to MH i2c: E2 0A 00 E3 04 80 0D 02 02 02 00 73 56 00 00 2E [12:47:56]Write i2c OK [12:47:56]MH_I2C_Read... [12:47:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:56]Read from MH i2c: E2 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: E2 03 00 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: E2 03 00 E3 04 00 90 00 5B [12:47:56]RAPDU: 90 00 [12:47:56]wFMCommunicate OK [12:47:56]wFMCommunicate request_size=4 [12:47:56]MH_SAM_APDU [12:47:56]CAPDU: 80 0D 03 02 [12:47:56]Write to MH i2c: E2 08 00 E4 04 80 0D 03 02 00 00 00 00 63 [12:47:56]Write i2c OK [12:47:56]MH_I2C_Read... [12:47:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:47:56]Read from MH i2c: E2 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: E2 0B 00 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: E2 0B 00 E4 04 00 88 96 98 68 FF 9A 65 DB 90 00 5B [12:47:56]RAPDU: 88 96 98 68 FF 9A 65 DB 90 00 [12:47:56]wFMCommunicate OK [12:47:56]SAM_PROTO_SignData done [12:47:56]FM_MakeSignedData done [12:47:56]CreateOFDProtocolMessage [12:47:56]wFMCommunicate request_size=4 [12:47:56]MH_SAM_APDU [12:47:56]CAPDU: 80 11 00 00 [12:47:56]Write to MH i2c: E2 08 00 E5 04 80 11 00 00 00 00 00 00 63 [12:47:56]Write i2c OK [12:47:56]MH_I2C_Read... [12:47:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:56]Read from MH i2c: E2 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: E2 17 00 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: E2 17 00 E5 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B9 [12:47:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:47:56]wFMCommunicate OK [12:47:56]CreateOFDProtocolMessage done [12:47:56]OFDSenderStorePacket 67469 [12:47:56]StoreOFDPacket docnum=67469 [12:47:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 2A 2D 04 01 67 2A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 29 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 84 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 30 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 43 00 00 00 F4 03 04 00 7B 00 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 8D 07 01 00 35 04 06 00 46 DC B8 9A 73 56 88 96 98 68 FF 9A 65 DB [12:47:56]CheckFolder [12:47:56]dirname=/storage/ofd_packets [12:47:56]CheckFolder done [12:47:56]ProducePacketName [12:47:56]name=ofd_packets/00067469 [12:47:56]NVStorageSaveData ofd_packets/00067469 [12:47:56]File name is /storage/ofd_packets/00067469 [12:47:56]Write 298 bytes [12:47:56]NVStorageSaveData done [12:47:56]OFDSenderStorePacket done [12:47:56]KKMCreateOFDPacket done [12:47:56]NVStorageSaveData kkm_last_timestamp [12:47:56]File name is /storage/kkm_last_timestamp [12:47:56]Write 4 bytes [12:47:56]NVStorageSaveData done [12:47:56]ExternCall_PrintAddStr [12:47:56]wPrintStart [12:47:56]Write to MH i2c: 01 00 00 E6 04 EA [12:47:56]Write i2c OK [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: 01 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: 01 07 00 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: 01 07 00 E6 04 00 00 00 00 00 FF 0F FF [12:47:56]RasterBufferAndPrint [12:47:56]line Счет N : (1)507511 [12:47:56]line ИНН: 02508201610067 [12:47:56]line Контрольно-Кассовый Чек [12:47:56]line ПРОДАЖА [12:47:56]line ТРК (МРК, ГНК) : 41 [12:47:56]line Товар: 2710194210 [12:47:56]line ДТ-К-5 [12:47:56]line 10.710 * 74.70 [12:47:56]line = 800.04 [12:47:56]line НДС 12% НСП 1% [12:47:56]line > о реализуемом товаре [12:47:56]line ОКРУГЛЕНИЕ: -0.04 [12:47:56]line ИТОГО: 800.00 [12:47:56]line Внесено: 800.00 [12:47:56]line СДАЧА: 0.00 [12:47:56]line НСП 1% : 7.08 [12:47:56]line НДС 12% : 84.96 [12:47:56]line Наличными: 800.00 [12:47:56]line Безнал.: 0.00 [12:47:56]line Место: АЗС № 91 "Партнер Нефть" [12:47:56]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:47:56]line СНО: Общий режим [12:47:56]line Чек 67 16.05.2024 12:47 [12:47:56]line Смена: 357 ФФД: 1.0 [12:47:56]line ЗНМ: 0300000119 [12:47:56]line РНМ: 0000000000091845 [12:47:56]line Версия ККМ: 001 [12:47:56]line ФМ: 0000000000871829 [12:47:56]line ФД: 67469 [12:47:56]line ФПД: 77913803879254 [12:47:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T124755&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67469&fm=77913803879254&tin=02508201610067®Number=0000000000091845&sum=80000 [12:47:56]OFD Sender: Processing packet 67469 [packets to send 35, broken 34] [12:47:56]ProducePacketName [12:47:56]name=ofd_packets/00067469 [12:47:56]OFD Sender: To server: pG, [12:47:56]CommunicateWithHost lk.salyk.kg:30040 [12:47:56]ConnectInit lk.salyk.kg [12:47:56]written 0, free lines is 4095 [12:47:56]Connected sock=8 [12:47: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 38 32 39 0C 01 00 00 2A 2D 04 01 67 2A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 29 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 84 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 30 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 43 00 00 00 F4 03 04 00 7B 00 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 8D 07 01 00 35 04 06 00 46 DC B8 9A 73 56 88 96 98 68 FF 9A 65 DB [12:47:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 75 90 47 00 92 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 38 32 39 10 04 04 00 8D 07 01 00 F4 03 04 00 56 A8 45 66 B6 04 01 00 00 6E 37 2C 8E 6B EF 1E 34 [12:47:57]CommunicateWithHost err = 0 [12:47:57]CheckOFDResponse [12:47:57]1017 (14) - 77093643461234 [12:47:57]1041 (16) - 0000000000871829 [12:47:57]1040 (4) - 67469 [12:47:57]1012 (4) - 16.05.2024 06:31 [12:47:57]1206 (1) - 0 [12:47:57]OFD Sender: Remove packet 67469 [12:47:57]ProducePacketName [12:47:57]name=ofd_packets/00067469 [12:47:57]NVStorageDeleteData [12:47:57]Write to MH i2c: 01 00 00 10 05 15 [12:47:57]Write i2c OK [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: 01 [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: 01 07 00 [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: 01 07 00 10 05 00 00 00 00 00 C3 0C EB [12:47:57]RasterBufferAndPrint [12:47:57]line [12:47:57]line [12:47:57]line [12:47:57]line [12:47:57]line [12:47:57]written 0, free lines is 3275 [12:47:57]MH_Cut [12:47:57]Write to MH i2c: D1 01 00 17 05 01 EE [12:47:57]Write i2c OK [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: D1 [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: D1 01 00 [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: D1 01 00 17 05 00 ED [12:47:57]Write to MH i2c: 01 00 00 18 05 1D [12:47:57]Write i2c OK [12:47:57]MH_I2C_Read... [12:47:57]OFD Sender: No OFD packet to send [12:47:58]*** Cut start [12:47:58]*** Purtial cut [12:47:58]*** CUTSNS_PIN = 0 [12:47:58]*** Stage 1: CUTSNS_PIN = 1 [12:48:00]Read from MH i2c: 01 [12:48:00]MH_I2C_Read... [12:48:00]*** Stop cut motor [12:48:00]*** Cut end [12:48:00]Read from MH i2c: 01 07 00 [12:48:00]MH_I2C_Read... [12:48:00]Read from MH i2c: 01 07 00 18 05 00 00 00 00 00 FF 0F 32 [12:48:00]process_action close_receipt done [12:48:00]requested_data is exist [12:48:00]produce_requested_data [12:48:00]requested_item fm.sn is exist - process it [12:48:00]wFMCommunicate request_size=4 [12:48:00]MH_SAM_APDU [12:48:00]CAPDU: 80 11 00 00 [12:48:00]Write to MH i2c: E2 08 00 19 05 80 11 00 00 00 00 00 00 98 [12:48:00]Write i2c OK [12:48:00]MH_I2C_Read... [12:48:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:00]Read from MH i2c: E2 [12:48:00]MH_I2C_Read... [12:48:00]Read from MH i2c: E2 17 00 [12:48:00]MH_I2C_Read... [12:48:00]Read from MH i2c: E2 17 00 19 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 EE [12:48:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:48:00]wFMCommunicate OK [12:48:00]requested_item fd.num is exist - process it [12:48:00]SAM_PROTO_GetFieldsCounters [12:48:00]wFMCommunicate request_size=4 [12:48:00]MH_SAM_APDU [12:48:00]CAPDU: 80 13 00 00 [12:48:00]Write to MH i2c: E2 08 00 1A 05 80 13 00 00 00 00 00 00 9B [12:48:00]Write i2c OK [12:48:00]MH_I2C_Read... [12:48:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:48:00]Read from MH i2c: E2 [12:48:00]MH_I2C_Read... [12:48:00]Read from MH i2c: E2 62 00 [12:48:00]MH_I2C_Read... [12:48:00]Read from MH i2c: E2 62 00 1A 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 8D 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [12:48:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 8D 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:48:00]wFMCommunicate OK [12:48:00]SAM_PROTO_GetFieldsCounters done [12:48:00]requested_item shift.num is exist - process it [12:48:00]requested_item shift.opened is exist - process it [12:48:00]req_shift_opened [12:48:00]FM_GetShiftState [12:48:00]SAM_PROTO_GetShiftState [12:48:00]wFMCommunicate request_size=4 [12:48:00]MH_SAM_APDU [12:48:00]CAPDU: 80 13 01 00 [12:48:00]Write to MH i2c: E2 08 00 1B 05 80 13 01 00 00 00 00 00 9D [12:48:00]Write i2c OK [12:48:00]MH_I2C_Read... [12:48:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:00]Read from MH i2c: E2 [12:48:00]MH_I2C_Read... [12:48:00]Read from MH i2c: E2 0E 00 [12:48:00]MH_I2C_Read... [12:48:00]Read from MH i2c: E2 0E 00 1B 05 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 49 [12:48:00]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [12:48:00]wFMCommunicate OK [12:48:00]SAM_PROTO_GetShiftState done [12:48:00]FM_GetShiftState done [12:48:00]req_shift_opened done [12:48:00]requested_item shift.open_date is exist - process it [12:48:00]req_shift_open_date [12:48:00]req_shift_open_date done [12:48:00]produce_requested_data done [12:48:00]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67469,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [12:48:00]process_action_free close_receipt [12:48:00]json_value_free [12:48:00]json_value_free done [12:48:00]process_json_proto returns [12:48:00]Send response to host [12:48:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67469,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [12:48:00]free response buf [12:48:00]execute_script done [12:48:00]execute_script returns [12:48:00]free content buf [12:48:00]Sock 9.Close socket [12:48:00]Sock 9.Thread stoped [12:48:02]OFD Sender: No OFD packet to send [12:48:07]OFD Sender: No OFD packet to send [12:48:12]OFD Sender: No OFD packet to send [12:48:17]OFD Sender: No OFD packet to send [12:48:22]OFD Sender: No OFD packet to send [12:48:27]OFD Sender: No OFD packet to send [12:48:32]OFD Sender: No OFD packet to send [12:48:37]OFD Sender: No OFD packet to send [12:48:42]OFD Sender: No OFD packet to send [12:48:47]OFD Sender: No OFD packet to send [12:48:52]OFD Sender: No OFD packet to send [12:48:57]OFD Sender: No OFD packet to send [12:49:02]OFD Sender: No OFD packet to send [12:49:07]OFD Sender: No OFD packet to send [12:49:12]OFD Sender: No OFD packet to send [12:49:17]OFD Sender: No OFD packet to send [12:49:22]OFD Sender: No OFD packet to send [12:49:27]OFD Sender: No OFD packet to send [12:49:32]OFD Sender: No OFD packet to send [12:49:37]OFD Sender: No OFD packet to send [12:49:42]OFD Sender: No OFD packet to send [12:49:47]OFD Sender: No OFD packet to send [12:49:52]OFD Sender: No OFD packet to send [12:49:57]OFD Sender: No OFD packet to send [12:50:02]OFD Sender: No OFD packet to send [12:50:07]OFD Sender: No OFD packet to send [12:50:12]OFD Sender: No OFD packet to send [12:50:17]OFD Sender: No OFD packet to send [12:50:22]OFD Sender: No OFD packet to send [12:50:27]OFD Sender: No OFD packet to send [12:50:32]OFD Sender: No OFD packet to send [12:50:37]OFD Sender: No OFD packet to send [12:50:42]OFD Sender: No OFD packet to send [12:50:47]OFD Sender: No OFD packet to send [12:50:52]OFD Sender: No OFD packet to send [12:50:57]OFD Sender: No OFD packet to send [12:51:02]OFD Sender: No OFD packet to send [12:51:07]OFD Sender: No OFD packet to send [12:51:12]OFD Sender: No OFD packet to send [12:51:17]OFD Sender: No OFD packet to send [12:51:22]accept exits with 10 [12:51:22]New connection [12:51:22]New thread 3067039076 created [12:51:22]Thread 3067182436 joined [12:51:22]Waiting for new connection... [12:51:22] Sock 10.Parse request [12:51:22]Sock 10.Check first char [12:51:22]Sock 10.First char is OK [12:51:22]request: POST /json_proto HTTP/1.0 [12:51:22]Method: POST [12:51:22]URL: /json_proto [12:51:22]Method is POST - this is cgi request [12:51:22]url: /json_proto [12:51:22]query_string will be loaded in cgi processing [12:51:22]execute_cgi json_proto POST (null) [12:51:22]execute_cgi path=json_proto method=POST [12:51:22]POST find Content-Length [12:51:22]Host: 172.17.41.195:8080 [12:51:22]Content-Length: 631 [12:51:22]Content-Type: application/json [12:51:22] [12:51:22]POST finish read [12:51:22]Found Content-Length = 631 [12:51:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12087", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 55.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:22]execute_script... [12:51:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12087", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 55.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:22]POST & json_proto [12:51:22]process_json_proto [12:51:22]json parsed OK: [12:51:22]protocol is kg_v1.0 [12:51:22]action value=close_receipt [12:51:22]process_action close_receipt [12:51:22]cmd_close_receipt [12:51:22]MH_GetDate [12:51:22]Write to MH i2c: F0 00 00 1C 05 10 [12:51:22]Write i2c OK [12:51:22]MH_I2C_Read... [12:51:22]Read from MH i2c: F0 [12:51:22]MH_I2C_Read... [12:51:22]Read from MH i2c: F0 09 00 [12:51:22]MH_I2C_Read... [12:51:22]Read from MH i2c: F0 09 00 1C 05 00 4A 01 46 66 FC 21 6F 64 00 [12:51:22]GetLastDocTimeStamp 1715863675 [12:51:22]current date 1715863882 [12:51:22]FM_GetShiftState [12:51:22]SAM_PROTO_GetShiftState [12:51:22]wFMCommunicate request_size=4 [12:51:22]MH_SAM_APDU [12:51:22]CAPDU: 80 13 01 00 [12:51:22]Write to MH i2c: E2 08 00 1D 05 80 13 01 00 00 00 00 00 9F [12:51:22]Write i2c OK [12:51:22]MH_I2C_Read... [12:51:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:22]Read from MH i2c: E2 [12:51:22]MH_I2C_Read... [12:51:22]Read from MH i2c: E2 0E 00 [12:51:22]MH_I2C_Read... [12:51:22]Read from MH i2c: E2 0E 00 1D 05 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 4B [12:51:22]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [12:51:22]wFMCommunicate OK [12:51:22]SAM_PROTO_GetShiftState done [12:51:22]FM_GetShiftState done [12:51:22]opened in 1715818916 [12:51:22]opened+sec_in_day 1715905316 [12:51:22]quantity*price = 5500 [12:51:22]sum+1 = 5501 [12:51:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 55.00 НСП 1% : 0.49 НДС 12% : 5.84 Наличными: 55.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 68 16.05.2024 12:51 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67470 ФПД: 8667167491421 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T125122&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67470&fm=8667167491421&tin=02508201610067®Number=0000000000091845&sum=5500 0 [12:51:23]StoreToDocumentArchive [12:51:23]shift 357 fd 67470 [12:51:23]save to /storage/0357/doc_00067470 [12:51:23]save last doc name /storage/0357/doc_00067470 to /storage/kkm_last_doc_name [12:51:23]save OK [12:51:23]Clear old archive folders... [12:51:23]ProcessDocumentItem done err = 0, tmpTLVsize=271 [12:51:23]tlvbuf is 017AC0C0 [12:51:23]SAM_PROTO_ClearQueue [12:51:23]wFMCommunicate request_size=4 [12:51:23]MH_SAM_APDU [12:51:23]CAPDU: 80 09 00 00 [12:51:23]Write to MH i2c: E2 08 00 2A 05 80 09 00 00 00 00 00 00 A1 [12:51:23]Write i2c OK [12:51:23]MH_I2C_Read... [12:51:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:51:23]Read from MH i2c: E2 [12:51:23]MH_I2C_Read... [12:51:23]Read from MH i2c: E2 03 00 [12:51:23]MH_I2C_Read... [12:51:23]Read from MH i2c: E2 03 00 2A 05 00 90 00 A3 [12:51:23]RAPDU: 90 00 [12:51:23]wFMCommunicate OK [12:51:23]SAM_PROTO_ClearQueue done [12:51:23]KKMCreateOFDPacket [12:51:23]OFDProtocolAddRootSTLVToBuf [12:51:23]FM_MakeSignedData [12:51:23]FM_MakeSignedData [12:51:23]SAM_PROTO_SignData [12:51:23]wFMCommunicate request_size=4 [12:51:23]MH_SAM_APDU [12:51:23]CAPDU: 80 0D 01 02 [12:51:23]Write to MH i2c: E2 08 00 2B 05 80 0D 01 02 00 00 00 00 A9 [12:51:23]Write i2c OK [12:51:23]MH_I2C_Read... [12:51:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:51:23]Read from MH i2c: E2 [12:51:23]MH_I2C_Read... [12:51:23]Read from MH i2c: E2 03 00 [12:51:23]MH_I2C_Read... [12:51:23]Read from MH i2c: E2 03 00 2B 05 00 90 00 A4 [12:51:23]RAPDU: 90 00 [12:51:23]wFMCommunicate OK [12:51:23]wFMCommunicate request_size=255 [12:51:23]MH_SAM_APDU [12:51:23]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 4A 01 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 [12:51:23]Write to MH i2c: E2 02 01 2C 05 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 4A 01 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 6A [12:51:23]Write i2c OK [12:51:23]MH_I2C_Read... [12:51:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:23]Read from MH i2c: E2 [12:51:23]MH_I2C_Read... [12:51:23]Read from MH i2c: E2 03 00 [12:51:23]MH_I2C_Read... [12:51:23]Read from MH i2c: E2 03 00 2C 05 00 90 00 A5 [12:51:23]RAPDU: 90 00 [12:51:23]wFMCommunicate OK [12:51:23]wFMCommunicate request_size=30 [12:51:23]MH_SAM_APDU [12:51:23]CAPDU: 80 0D 02 02 19 30 38 37 31 38 32 39 10 04 04 00 8E 07 01 00 35 04 06 00 07 E1 FB 70 85 5D [12:51:23]Write to MH i2c: E2 21 00 2D 05 80 0D 02 02 19 00 30 38 37 31 38 32 39 10 04 04 00 8E 07 01 00 35 04 06 00 07 E1 FB 70 85 5D 00 00 73 [12:51:23]Write i2c OK [12:51:23]MH_I2C_Read... [12:51:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:23]Read from MH i2c: E2 [12:51:23]MH_I2C_Read... [12:51:23]Read from MH i2c: E2 03 00 [12:51:23]MH_I2C_Read... [12:51:23]Read from MH i2c: E2 03 00 2D 05 00 90 00 A6 [12:51:23]RAPDU: 90 00 [12:51:23]wFMCommunicate OK [12:51:23]wFMCommunicate request_size=4 [12:51:23]MH_SAM_APDU [12:51:23]CAPDU: 80 0D 03 02 [12:51:23]Write to MH i2c: E2 08 00 2E 05 80 0D 03 02 00 00 00 00 AE [12:51:23]Write i2c OK [12:51:23]MH_I2C_Read... [12:51:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:51:23]Read from MH i2c: E2 [12:51:23]MH_I2C_Read... [12:51:23]Read from MH i2c: E2 0B 00 [12:51:23]MH_I2C_Read... [12:51:23]Read from MH i2c: E2 0B 00 2E 05 00 AE 78 5C 7C 26 B0 59 7F 90 00 5B [12:51:23]RAPDU: AE 78 5C 7C 26 B0 59 7F 90 00 [12:51:23]wFMCommunicate OK [12:51:23]SAM_PROTO_SignData done [12:51:23]FM_MakeSignedData done [12:51:23]CreateOFDProtocolMessage [12:51:23]wFMCommunicate request_size=4 [12:51:23]MH_SAM_APDU [12:51:23]CAPDU: 80 11 00 00 [12:51:23]Write to MH i2c: E2 08 00 2F 05 80 11 00 00 00 00 00 00 AE [12:51:23]Write i2c OK [12:51:23]MH_I2C_Read... [12:51:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:23]Read from MH i2c: E2 [12:51:23]MH_I2C_Read... [12:51:23]Read from MH i2c: E2 17 00 [12:51:23]MH_I2C_Read... [12:51:23]Read from MH i2c: E2 17 00 2F 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 04 [12:51:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:51:23]wFMCommunicate OK [12:51:23]CreateOFDProtocolMessage done [12:51:23]OFDSenderStorePacket 67470 [12:51:23]StoreOFDPacket docnum=67470 [12:51:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 23 01 00 00 76 25 1B 01 A6 95 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 4A 01 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 8E 07 01 00 35 04 06 00 07 E1 FB 70 85 5D AE 78 5C 7C 26 B0 59 7F [12:51:23]CheckFolder [12:51:23]dirname=/storage/ofd_packets [12:51:23]CheckFolder done [12:51:23]ProducePacketName [12:51:23]name=ofd_packets/00067470 [12:51:23]NVStorageSaveData ofd_packets/00067470 [12:51:23]File name is /storage/ofd_packets/00067470 [12:51:23]Write 321 bytes [12:51:23]NVStorageSaveData done [12:51:23]OFDSenderStorePacket done [12:51:23]KKMCreateOFDPacket done [12:51:23]NVStorageSaveData kkm_last_timestamp [12:51:23]File name is /storage/kkm_last_timestamp [12:51:23]Write 4 bytes [12:51:23]NVStorageSaveData done [12:51:23]ExternCall_PrintAddStr [12:51:23]wPrintStart [12:51:23]Write to MH i2c: 01 00 00 30 05 35 [12:51:23]Write i2c OK [12:51:23]MH_I2C_Read... [12:51:23]Read from MH i2c: 01 [12:51:23]MH_I2C_Read... [12:51:23]Read from MH i2c: 01 07 00 [12:51:23]MH_I2C_Read... [12:51:23]Read from MH i2c: 01 07 00 30 05 00 00 00 00 00 FF 0F 4A [12:51:23]RasterBufferAndPrint [12:51:23]line Счет N : (3)12087 [12:51:23]line ИНН: 02508201610067 [12:51:23]line Контрольно-Кассовый Чек [12:51:23]line ПРОДАЖА [12:51:23]line Товар: 4700000160204 [12:51:23]line Вода Легенда 1,5л [12:51:23]line 1.000 * 55.00 [12:51:23]line = 55.00 [12:51:23]line НДС 12% НСП 1% [12:51:23]line > о реализуемом товаре [12:51:23]line ИТОГО: 55.00 [12:51:23]line НСП 1% : 0.49 [12:51:23]line НДС 12% : 5.84 [12:51:23]line Наличными: 55.00 [12:51:23]line Безнал.: 0.00 [12:51:23]line Место: АЗС № 91 "Партнер Нефть" [12:51:23]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:51:23]line СНО: Общий режим [12:51:23]line Чек 68 16.05.2024 12:51 [12:51:23]line Смена: 357 ФФД: 1.0 [12:51:23]line ЗНМ: 0300000119 [12:51:23]line РНМ: 0000000000091845 [12:51:23]line Версия ККМ: 001 [12:51:23]line ФМ: 0000000000871829 [12:51:23]line ФД: 67470 [12:51:23]line ФПД: 8667167491421 [12:51:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T125122&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67470&fm=8667167491421&tin=02508201610067®Number=0000000000091845&sum=5500 [12:51:24]line 0 [12:51:24]OFD Sender: Processing packet 67470 [packets to send 35, broken 34] [12:51:24]ProducePacketName [12:51:24]name=ofd_packets/00067470 [12:51:24]OFD Sender: To server: pG, [12:51:24]CommunicateWithHost lk.salyk.kg:30040 [12:51:24]ConnectInit lk.salyk.kg [12:51:24]written 0, free lines is 4095 [12:51:24]Connected sock=9 [12:51: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 38 32 39 23 01 00 00 76 25 1B 01 A6 95 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 4A 01 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 8E 07 01 00 35 04 06 00 07 E1 FB 70 85 5D AE 78 5C 7C 26 B0 59 7F [12:51:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 E7 92 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 38 32 39 10 04 04 00 8E 07 01 00 F4 03 04 00 25 A9 45 66 B6 04 01 00 00 E9 82 BB DC B6 D1 55 90 [12:51:24]CommunicateWithHost err = 0 [12:51:24]CheckOFDResponse [12:51:24]1017 (14) - 77093643461234 [12:51:24]1041 (16) - 0000000000871829 [12:51:24]1040 (4) - 67470 [12:51:24]1012 (4) - 16.05.2024 06:35 [12:51:24]1206 (1) - 0 [12:51:24]OFD Sender: Remove packet 67470 [12:51:24]ProducePacketName [12:51:24]name=ofd_packets/00067470 [12:51:24]NVStorageDeleteData [12:51:24]Write to MH i2c: 01 00 00 57 05 5C [12:51:24]Write i2c OK [12:51:24]MH_I2C_Read... [12:51:24]Read from MH i2c: 01 [12:51:24]MH_I2C_Read... [12:51:24]Read from MH i2c: 01 07 00 [12:51:24]MH_I2C_Read... [12:51:24]Read from MH i2c: 01 07 00 57 05 00 00 00 00 00 E4 0C 53 [12:51:24]RasterBufferAndPrint [12:51:24]line [12:51:24]line [12:51:24]line [12:51:24]line [12:51:24]line [12:51:24]written 0, free lines is 3304 [12:51:24]MH_Cut [12:51:24]Write to MH i2c: D1 01 00 5E 05 01 35 [12:51:24]Write i2c OK [12:51:24]MH_I2C_Read... [12:51:24]Read from MH i2c: D1 [12:51:24]MH_I2C_Read... [12:51:24]Read from MH i2c: D1 01 00 [12:51:24]MH_I2C_Read... [12:51:24]Read from MH i2c: D1 01 00 5E 05 00 34 [12:51:24]Write to MH i2c: 01 00 00 5F 05 64 [12:51:24]Write i2c OK [12:51:24]MH_I2C_Read... [12:51:24]OFD Sender: No OFD packet to send [12:51:25]*** Cut start [12:51:25]*** Purtial cut [12:51:25]*** Stage 1: CUTSNS_PIN = 1 [12:51:25]Read from MH i2c: 01 [12:51:25]MH_I2C_Read... [12:51:25]*** Stop cut motor [12:51:25]*** Cut end [12:51:25]Read from MH i2c: 01 07 00 [12:51:25]MH_I2C_Read... [12:51:25]Read from MH i2c: 01 07 00 5F 05 00 00 00 00 00 FF 0F 79 [12:51:25]process_action close_receipt done [12:51:25]requested_data is exist [12:51:25]produce_requested_data [12:51:25]requested_item fm.sn is exist - process it [12:51:25]wFMCommunicate request_size=4 [12:51:25]MH_SAM_APDU [12:51:25]CAPDU: 80 11 00 00 [12:51:25]Write to MH i2c: E2 08 00 60 05 80 11 00 00 00 00 00 00 DF [12:51:25]Write i2c OK [12:51:25]MH_I2C_Read... [12:51:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:25]Read from MH i2c: E2 [12:51:25]MH_I2C_Read... [12:51:25]Read from MH i2c: E2 17 00 [12:51:25]MH_I2C_Read... [12:51:25]Read from MH i2c: E2 17 00 60 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 35 [12:51:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:51:25]wFMCommunicate OK [12:51:25]requested_item fd.num is exist - process it [12:51:25]SAM_PROTO_GetFieldsCounters [12:51:25]wFMCommunicate request_size=4 [12:51:25]MH_SAM_APDU [12:51:25]CAPDU: 80 13 00 00 [12:51:25]Write to MH i2c: E2 08 00 61 05 80 13 00 00 00 00 00 00 E2 [12:51:25]Write i2c OK [12:51:25]MH_I2C_Read... [12:51:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:51:25]Read from MH i2c: E2 [12:51:25]MH_I2C_Read... [12:51:25]Read from MH i2c: E2 62 00 [12:51:25]MH_I2C_Read... [12:51:25]Read from MH i2c: E2 62 00 61 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 8E 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [12:51: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 8E 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:51:25]wFMCommunicate OK [12:51:25]SAM_PROTO_GetFieldsCounters done [12:51:25]requested_item shift.num is exist - process it [12:51:25]requested_item shift.opened is exist - process it [12:51:25]req_shift_opened [12:51:25]FM_GetShiftState [12:51:25]SAM_PROTO_GetShiftState [12:51:25]wFMCommunicate request_size=4 [12:51:25]MH_SAM_APDU [12:51:25]CAPDU: 80 13 01 00 [12:51:25]Write to MH i2c: E2 08 00 62 05 80 13 01 00 00 00 00 00 E4 [12:51:25]Write i2c OK [12:51:25]MH_I2C_Read... [12:51:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:25]Read from MH i2c: E2 [12:51:25]MH_I2C_Read... [12:51:25]Read from MH i2c: E2 0E 00 [12:51:25]MH_I2C_Read... [12:51:25]Read from MH i2c: E2 0E 00 62 05 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 90 [12:51:25]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [12:51:25]wFMCommunicate OK [12:51:25]SAM_PROTO_GetShiftState done [12:51:25]FM_GetShiftState done [12:51:25]req_shift_opened done [12:51:25]requested_item shift.open_date is exist - process it [12:51:25]req_shift_open_date [12:51:25]req_shift_open_date done [12:51:25]produce_requested_data done [12:51:25]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67470,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [12:51:25]process_action_free close_receipt [12:51:25]json_value_free [12:51:25]json_value_free done [12:51:25]process_json_proto returns [12:51:25]Send response to host [12:51:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67470,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [12:51:25]free response buf [12:51:25]execute_script done [12:51:25]execute_script returns [12:51:25]free content buf [12:51:25]Sock 10.Close socket [12:51:25]Sock 10.Thread stoped [12:51:30]OFD Sender: No OFD packet to send [12:51:35]OFD Sender: No OFD packet to send [12:51:40]OFD Sender: No OFD packet to send [12:51:45]OFD Sender: No OFD packet to send [12:51:50]OFD Sender: No OFD packet to send [12:51:55]OFD Sender: No OFD packet to send [12:52:00]OFD Sender: No OFD packet to send [12:52:05]OFD Sender: No OFD packet to send [12:52:10]OFD Sender: No OFD packet to send [12:52:15]OFD Sender: No OFD packet to send [12:52:20]OFD Sender: No OFD packet to send [12:52:25]OFD Sender: No OFD packet to send [12:52:30]OFD Sender: No OFD packet to send [12:52:35]OFD Sender: No OFD packet to send [12:52:40]OFD Sender: No OFD packet to send [12:52:45]OFD Sender: No OFD packet to send [12:52:50]OFD Sender: No OFD packet to send [12:52:55]OFD Sender: No OFD packet to send [12:53:00]OFD Sender: No OFD packet to send [12:53:05]OFD Sender: No OFD packet to send [12:53:10]OFD Sender: No OFD packet to send [12:53:15]OFD Sender: No OFD packet to send [12:53:20]OFD Sender: No OFD packet to send [12:53:25]OFD Sender: No OFD packet to send [12:53:30]OFD Sender: No OFD packet to send [12:53:34]accept exits with 8 [12:53:34]New connection [12:53:34]New thread 3067182436 created [12:53:34]Thread 3067039076 joined [12:53:34]Waiting for new connection... [12:53:34] Sock 8.Parse request [12:53:34]Sock 8.Check first char [12:53:34]Sock 8.First char is OK [12:53:34]request: POST /json_proto HTTP/1.0 [12:53:34]Method: POST [12:53:34]URL: /json_proto [12:53:34]Method is POST - this is cgi request [12:53:34]url: /json_proto [12:53:34]query_string will be loaded in cgi processing [12:53:34]execute_cgi json_proto POST (null) [12:53:34]execute_cgi path=json_proto method=POST [12:53:34]POST find Content-Length [12:53:34]Host: 172.17.41.195:8080 [12:53:34]Content-Length: 679 [12:53:34]Content-Type: application/json [12:53:34] [12:53:34]POST finish read [12:53:34]Found Content-Length = 679 [12:53:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507513", "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" : 74.70, "quantity" : 20.090, "sum" : 1500.72, "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:53:34]execute_script... [12:53: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)507513", "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" : 74.70, "quantity" : 20.090, "sum" : 1500.72, "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:53:34]POST & json_proto [12:53:34]process_json_proto [12:53:34]json parsed OK: [12:53:34]protocol is kg_v1.0 [12:53:34]action value=close_receipt [12:53:34]process_action close_receipt [12:53:34]cmd_close_receipt [12:53:34]MH_GetDate [12:53:34]Write to MH i2c: F0 00 00 63 05 57 [12:53:34]Write i2c OK [12:53:34]MH_I2C_Read... [12:53:34]Read from MH i2c: F0 [12:53:34]MH_I2C_Read... [12:53:34]Read from MH i2c: F0 09 00 [12:53:34]MH_I2C_Read... [12:53:34]Read from MH i2c: F0 09 00 63 05 00 CF 01 46 66 FC 21 6F 64 CC [12:53:34]GetLastDocTimeStamp 1715863882 [12:53:34]current date 1715864015 [12:53:34]FM_GetShiftState [12:53:34]SAM_PROTO_GetShiftState [12:53:34]wFMCommunicate request_size=4 [12:53:34]MH_SAM_APDU [12:53:34]CAPDU: 80 13 01 00 [12:53:34]Write to MH i2c: E2 08 00 64 05 80 13 01 00 00 00 00 00 E6 [12:53:34]Write i2c OK [12:53:34]MH_I2C_Read... [12:53:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:34]Read from MH i2c: E2 [12:53:34]MH_I2C_Read... [12:53:34]Read from MH i2c: E2 0E 00 [12:53:34]MH_I2C_Read... [12:53:34]Read from MH i2c: E2 0E 00 64 05 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 92 [12:53:34]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [12:53:34]wFMCommunicate OK [12:53:34]SAM_PROTO_GetShiftState done [12:53:34]FM_GetShiftState done [12:53:34]opened in 1715818916 [12:53:34]opened+sec_in_day 1715905316 [12:53:34]quantity*price = 150072 [12:53:34]sum+1 = 150073 [12:53:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.72 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 69 16.05.2024 12:53 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67471 ФПД: 217833216964820 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T125335&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67471&fm=217833216964820&tin=02508201610067®Number=0000000000091845&sum=150000 [12:53:35]StoreToDocumentArchive [12:53:35]shift 357 fd 67471 [12:53:35]save to /storage/0357/doc_00067471 [12:53:35]save last doc name /storage/0357/doc_00067471 to /storage/kkm_last_doc_name [12:53:35]save OK [12:53:35]Clear old archive folders... [12:53:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:53:35]tlvbuf is 017CEE90 [12:53:35]SAM_PROTO_ClearQueue [12:53:35]wFMCommunicate request_size=4 [12:53:35]MH_SAM_APDU [12:53:35]CAPDU: 80 09 00 00 [12:53:35]Write to MH i2c: E2 08 00 71 05 80 09 00 00 00 00 00 00 E8 [12:53:35]Write i2c OK [12:53:35]MH_I2C_Read... [12:53:35]Read from MH i2c: E2 [12:53:35]MH_I2C_Read... [12:53:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:53:35]Read from MH i2c: E2 03 00 [12:53:35]MH_I2C_Read... [12:53:35]Read from MH i2c: E2 03 00 71 05 00 90 00 EA [12:53:35]RAPDU: 90 00 [12:53:35]wFMCommunicate OK [12:53:35]SAM_PROTO_ClearQueue done [12:53:35]KKMCreateOFDPacket [12:53:35]OFDProtocolAddRootSTLVToBuf [12:53:35]FM_MakeSignedData [12:53:35]FM_MakeSignedData [12:53:35]SAM_PROTO_SignData [12:53:35]wFMCommunicate request_size=4 [12:53:35]MH_SAM_APDU [12:53:35]CAPDU: 80 0D 01 02 [12:53:35]Write to MH i2c: E2 08 00 72 05 80 0D 01 02 00 00 00 00 F0 [12:53:35]Write i2c OK [12:53:35]MH_I2C_Read... [12:53:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:53:35]Read from MH i2c: E2 [12:53:35]MH_I2C_Read... [12:53:35]Read from MH i2c: E2 03 00 [12:53:35]MH_I2C_Read... [12:53:35]Read from MH i2c: E2 03 00 72 05 00 90 00 EB [12:53:35]RAPDU: 90 00 [12:53:35]wFMCommunicate OK [12:53:35]wFMCommunicate request_size=255 [12:53:35]MH_SAM_APDU [12:53: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 7A 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 38 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 41 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 45 00 00 00 F4 03 04 00 CF 01 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 8F 07 01 00 35 04 06 00 C6 1E 3F 84 [12:53:35]Write to MH i2c: E2 02 01 73 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 7A 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 38 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 41 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 45 00 00 00 F4 03 04 00 CF 01 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 8F 07 01 00 35 04 06 00 C6 1E 3F 84 00 00 78 [12:53:35]Write i2c OK [12:53:35]MH_I2C_Read... [12:53:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:35]Read from MH i2c: E2 [12:53:35]MH_I2C_Read... [12:53:35]Read from MH i2c: E2 03 00 [12:53:35]MH_I2C_Read... [12:53:35]Read from MH i2c: E2 03 00 73 05 00 90 00 EC [12:53:35]RAPDU: 90 00 [12:53:35]wFMCommunicate OK [12:53:35]wFMCommunicate request_size=7 [12:53:35]MH_SAM_APDU [12:53:35]CAPDU: 80 0D 02 02 02 78 D4 [12:53:35]Write to MH i2c: E2 0A 00 74 05 80 0D 02 02 02 00 78 D4 00 00 43 [12:53:35]Write i2c OK [12:53:35]MH_I2C_Read... [12:53:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:35]Read from MH i2c: E2 [12:53:35]MH_I2C_Read... [12:53:35]Read from MH i2c: E2 03 00 [12:53:35]MH_I2C_Read... [12:53:35]Read from MH i2c: E2 03 00 74 05 00 90 00 ED [12:53:35]RAPDU: 90 00 [12:53:35]wFMCommunicate OK [12:53:35]wFMCommunicate request_size=4 [12:53:35]MH_SAM_APDU [12:53:35]CAPDU: 80 0D 03 02 [12:53:35]Write to MH i2c: E2 08 00 75 05 80 0D 03 02 00 00 00 00 F5 [12:53:35]Write i2c OK [12:53:35]MH_I2C_Read... [12:53:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:53:36]Read from MH i2c: E2 [12:53:36]MH_I2C_Read... [12:53:36]Read from MH i2c: E2 0B 00 [12:53:36]MH_I2C_Read... [12:53:36]Read from MH i2c: E2 0B 00 75 05 00 C3 FF F7 94 86 51 D4 DF 90 00 CD [12:53:36]RAPDU: C3 FF F7 94 86 51 D4 DF 90 00 [12:53:36]wFMCommunicate OK [12:53:36]SAM_PROTO_SignData done [12:53:36]FM_MakeSignedData done [12:53:36]CreateOFDProtocolMessage [12:53:36]wFMCommunicate request_size=4 [12:53:36]MH_SAM_APDU [12:53:36]CAPDU: 80 11 00 00 [12:53:36]Write to MH i2c: E2 08 00 76 05 80 11 00 00 00 00 00 00 F5 [12:53:36]Write i2c OK [12:53:36]MH_I2C_Read... [12:53:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:36]Read from MH i2c: E2 [12:53:36]MH_I2C_Read... [12:53:36]Read from MH i2c: E2 17 00 [12:53:36]MH_I2C_Read... [12:53:36]Read from MH i2c: E2 17 00 76 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 4B [12:53:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:53:36]wFMCommunicate OK [12:53:36]CreateOFDProtocolMessage done [12:53:36]OFDSenderStorePacket 67471 [12:53:36]StoreOFDPacket docnum=67471 [12:53:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 29 4E 04 01 E6 87 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 38 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 41 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 45 00 00 00 F4 03 04 00 CF 01 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 8F 07 01 00 35 04 06 00 C6 1E 3F 84 78 D4 C3 FF F7 94 86 51 D4 DF [12:53:36]CheckFolder [12:53:36]dirname=/storage/ofd_packets [12:53:36]CheckFolder done [12:53:36]ProducePacketName [12:53:36]name=ofd_packets/00067471 [12:53:36]NVStorageSaveData ofd_packets/00067471 [12:53:36]File name is /storage/ofd_packets/00067471 [12:53:36]Write 298 bytes [12:53:36]NVStorageSaveData done [12:53:36]OFDSenderStorePacket done [12:53:36]KKMCreateOFDPacket done [12:53:36]NVStorageSaveData kkm_last_timestamp [12:53:36]File name is /storage/kkm_last_timestamp [12:53:36]Write 4 bytes [12:53:36]NVStorageSaveData done [12:53:36]ExternCall_PrintAddStr [12:53:36]wPrintStart [12:53:36]Write to MH i2c: 01 00 00 77 05 7C [12:53:36]Write i2c OK [12:53:36]MH_I2C_Read... [12:53:36]Read from MH i2c: 01 [12:53:36]MH_I2C_Read... [12:53:36]Read from MH i2c: 01 07 00 [12:53:36]MH_I2C_Read... [12:53:36]Read from MH i2c: 01 07 00 77 05 00 00 00 00 00 FF 0F 91 [12:53:36]RasterBufferAndPrint [12:53:36]line Счет N : (1)507513 [12:53:36]line ИНН: 02508201610067 [12:53:36]line Контрольно-Кассовый Чек [12:53:36]line ПРОДАЖА [12:53:36]line ТРК (МРК, ГНК) : 31 [12:53:36]line Товар: 2710194210 [12:53:36]line ДТ-К-5 [12:53:36]line 20.090 * 74.70 [12:53:36]line = 1500.72 [12:53:36]line НДС 12% НСП 1% [12:53:36]line > о реализуемом товаре [12:53:36]line ОКРУГЛЕНИЕ: -0.72 [12:53:36]line ИТОГО: 1500.00 [12:53:36]line Внесено: 1500.00 [12:53:36]line СДАЧА: 0.00 [12:53:36]line НСП 1% : 13.28 [12:53:36]line НДС 12% : 159.37 [12:53:36]line Наличными: 1500.00 [12:53:36]line Безнал.: 0.00 [12:53:36]line Место: АЗС № 91 "Партнер Нефть" [12:53:36]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:53:36]line СНО: Общий режим [12:53:36]line Чек 69 16.05.2024 12:53 [12:53:36]line Смена: 357 ФФД: 1.0 [12:53:36]line ЗНМ: 0300000119 [12:53:36]line РНМ: 0000000000091845 [12:53:36]line Версия ККМ: 001 [12:53:36]line ФМ: 0000000000871829 [12:53:36]line ФД: 67471 [12:53:36]line ФПД: 217833216964820 [12:53:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T125335&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67471&fm=217833216964820&tin=02508201610067®Number=0000000000091845&sum=150000 [12:53:36]OFD Sender: Processing packet 67471 [packets to send 35, broken 34] [12:53:36]ProducePacketName [12:53:36]name=ofd_packets/00067471 [12:53:36]OFD Sender: To server: pG, [12:53:36]CommunicateWithHost lk.salyk.kg:30040 [12:53:36]ConnectInit lk.salyk.kg [12:53:36]written 0, free lines is 4095 [12:53:36]Connected sock=9 [12:53: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 38 32 39 0C 01 00 00 29 4E 04 01 E6 87 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 38 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 41 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 45 00 00 00 F4 03 04 00 CF 01 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 8F 07 01 00 35 04 06 00 C6 1E 3F 84 78 D4 C3 FF F7 94 86 51 D4 DF [12:53:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 DC 28 47 00 54 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 38 32 39 10 04 04 00 8F 07 01 00 F4 03 04 00 A9 A9 45 66 B6 04 01 00 00 8D 37 98 3C 35 24 4B 94 [12:53:36]CommunicateWithHost err = 0 [12:53:36]CheckOFDResponse [12:53:36]1017 (14) - 77093643461234 [12:53:36]1041 (16) - 0000000000871829 [12:53:36]1040 (4) - 67471 [12:53:36]1012 (4) - 16.05.2024 06:37 [12:53:36]1206 (1) - 0 [12:53:36]OFD Sender: Remove packet 67471 [12:53:36]ProducePacketName [12:53:36]name=ofd_packets/00067471 [12:53:36]NVStorageDeleteData [12:53:36]Write to MH i2c: 01 00 00 A1 05 A6 [12:53:36]Write i2c OK [12:53:36]MH_I2C_Read... [12:53:36]Read from MH i2c: 01 [12:53:36]MH_I2C_Read... [12:53:36]Read from MH i2c: 01 07 00 [12:53:36]MH_I2C_Read... [12:53:36]Read from MH i2c: 01 07 00 A1 05 00 00 00 00 00 C4 0C 7D [12:53:36]RasterBufferAndPrint [12:53:36]line [12:53:36]line [12:53:36]line [12:53:36]line [12:53:36]line [12:53:36]written 0, free lines is 3273 [12:53:36]MH_Cut [12:53:36]Write to MH i2c: D1 01 00 A8 05 01 7F [12:53:36]Write i2c OK [12:53:36]MH_I2C_Read... [12:53:36]Read from MH i2c: D1 [12:53:36]MH_I2C_Read... [12:53:36]Read from MH i2c: D1 01 00 [12:53:36]MH_I2C_Read... [12:53:36]Read from MH i2c: D1 01 00 A8 05 00 7E [12:53:36]Write to MH i2c: 01 00 00 A9 05 AE [12:53:36]Write i2c OK [12:53:36]MH_I2C_Read... [12:53:37]OFD Sender: No OFD packet to send [12:53:37]*** Cut start [12:53:37]*** Purtial cut [12:53:37]*** CUTSNS_PIN = 0 [12:53:37]*** Stage 1: CUTSNS_PIN = 1 [12:53:39]Read from MH i2c: 01 [12:53:39]MH_I2C_Read... [12:53:39]*** Stop cut motor [12:53:39]*** Cut end [12:53:39]Read from MH i2c: 01 07 00 [12:53:39]MH_I2C_Read... [12:53:39]Read from MH i2c: 01 07 00 A9 05 00 00 00 00 00 FF 0F C3 [12:53:39]process_action close_receipt done [12:53:39]requested_data is exist [12:53:39]produce_requested_data [12:53:39]requested_item fm.sn is exist - process it [12:53:39]wFMCommunicate request_size=4 [12:53:39]MH_SAM_APDU [12:53:39]CAPDU: 80 11 00 00 [12:53:39]Write to MH i2c: E2 08 00 AA 05 80 11 00 00 00 00 00 00 29 [12:53:39]Write i2c OK [12:53:39]MH_I2C_Read... [12:53:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:39]Read from MH i2c: E2 [12:53:39]MH_I2C_Read... [12:53:39]Read from MH i2c: E2 17 00 [12:53:39]MH_I2C_Read... [12:53:39]Read from MH i2c: E2 17 00 AA 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7F [12:53:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:53:39]wFMCommunicate OK [12:53:39]requested_item fd.num is exist - process it [12:53:39]SAM_PROTO_GetFieldsCounters [12:53:39]wFMCommunicate request_size=4 [12:53:39]MH_SAM_APDU [12:53:39]CAPDU: 80 13 00 00 [12:53:39]Write to MH i2c: E2 08 00 AB 05 80 13 00 00 00 00 00 00 2C [12:53:39]Write i2c OK [12:53:39]MH_I2C_Read... [12:53:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:53:39]Read from MH i2c: E2 [12:53:39]MH_I2C_Read... [12:53:39]Read from MH i2c: E2 62 00 [12:53:39]MH_I2C_Read... [12:53:39]Read from MH i2c: E2 62 00 AB 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 8F 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [12:53: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 8F 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:53:39]wFMCommunicate OK [12:53:39]SAM_PROTO_GetFieldsCounters done [12:53:39]requested_item shift.num is exist - process it [12:53:39]requested_item shift.opened is exist - process it [12:53:39]req_shift_opened [12:53:39]FM_GetShiftState [12:53:39]SAM_PROTO_GetShiftState [12:53:39]wFMCommunicate request_size=4 [12:53:39]MH_SAM_APDU [12:53:39]CAPDU: 80 13 01 00 [12:53:39]Write to MH i2c: E2 08 00 AC 05 80 13 01 00 00 00 00 00 2E [12:53:39]Write i2c OK [12:53:39]MH_I2C_Read... [12:53:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:39]Read from MH i2c: E2 [12:53:39]MH_I2C_Read... [12:53:39]Read from MH i2c: E2 0E 00 [12:53:39]MH_I2C_Read... [12:53:39]Read from MH i2c: E2 0E 00 AC 05 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 DA [12:53:39]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [12:53:39]wFMCommunicate OK [12:53:39]SAM_PROTO_GetShiftState done [12:53:39]FM_GetShiftState done [12:53:39]req_shift_opened done [12:53:39]requested_item shift.open_date is exist - process it [12:53:39]req_shift_open_date [12:53:39]req_shift_open_date done [12:53:39]produce_requested_data done [12:53:39]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67471,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [12:53:39]process_action_free close_receipt [12:53:39]json_value_free [12:53:39]json_value_free done [12:53:39]process_json_proto returns [12:53:39]Send response to host [12:53:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67471,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [12:53:39]free response buf [12:53:39]execute_script done [12:53:39]execute_script returns [12:53:39]free content buf [12:53:39]Sock 8.Close socket [12:53:39]Sock 8.Thread stoped [12:53:42]OFD Sender: No OFD packet to send [12:53:47]OFD Sender: No OFD packet to send [12:53:52]OFD Sender: No OFD packet to send [12:53:52]accept exits with 10 [12:53:52]New connection [12:53:52]New thread 3067039076 created [12:53:52]Thread 3067182436 joined [12:53:52]Waiting for new connection... [12:53:52] Sock 10.Parse request [12:53:52]Sock 10.Check first char [12:53:52]Sock 10.First char is OK [12:53:52]request: POST /json_proto HTTP/1.0 [12:53:52]Method: POST [12:53:52]URL: /json_proto [12:53:52]Method is POST - this is cgi request [12:53:52]url: /json_proto [12:53:52]query_string will be loaded in cgi processing [12:53:52]execute_cgi json_proto POST (null) [12:53:52]execute_cgi path=json_proto method=POST [12:53:52]POST find Content-Length [12:53:52]Host: 172.17.41.195:8080 [12:53:52]Content-Length: 633 [12:53:52]Content-Type: application/json [12:53:52] [12:53:52]POST finish read [12:53:52]Found Content-Length = 633 [12:53:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507512", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 10.000, "sum" : 678.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 678.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:52]execute_script... [12:53: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)507512", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 10.000, "sum" : 678.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 678.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:52]POST & json_proto [12:53:52]process_json_proto [12:53:52]json parsed OK: [12:53:52]protocol is kg_v1.0 [12:53:52]action value=close_receipt [12:53:52]process_action close_receipt [12:53:52]cmd_close_receipt [12:53:52]MH_GetDate [12:53:52]Write to MH i2c: F0 00 00 AD 05 A1 [12:53:52]Write i2c OK [12:53:52]MH_I2C_Read... [12:53:52]Read from MH i2c: F0 [12:53:52]MH_I2C_Read... [12:53:52]Read from MH i2c: F0 09 00 [12:53:52]MH_I2C_Read... [12:53:52]Read from MH i2c: F0 09 00 AD 05 00 E1 01 46 66 FC 21 6F 64 28 [12:53:52]GetLastDocTimeStamp 1715864015 [12:53:52]current date 1715864033 [12:53:52]FM_GetShiftState [12:53:52]SAM_PROTO_GetShiftState [12:53:52]wFMCommunicate request_size=4 [12:53:52]MH_SAM_APDU [12:53:52]CAPDU: 80 13 01 00 [12:53:52]Write to MH i2c: E2 08 00 AE 05 80 13 01 00 00 00 00 00 30 [12:53:52]Write i2c OK [12:53:52]MH_I2C_Read... [12:53:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:52]Read from MH i2c: E2 [12:53:52]MH_I2C_Read... [12:53:52]Read from MH i2c: E2 0E 00 [12:53:52]MH_I2C_Read... [12:53:52]Read from MH i2c: E2 0E 00 AE 05 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 DC [12:53:52]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [12:53:52]wFMCommunicate OK [12:53:52]SAM_PROTO_GetShiftState done [12:53:52]FM_GetShiftState done [12:53:52]opened in 1715818916 [12:53:52]opened+sec_in_day 1715905316 [12:53:52]quantity*price = 67800 [12:53:52]sum+1 = 67801 [12:53:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 678.00 НСП 1% : 6.00 НДС 12% : 72.00 Наличными: 678.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 70 16.05.2024 12:53 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67472 ФПД: 114988118615927 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T125353&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67472&fm=114988118615927&tin=02508201610067®Number=0000000000091845&sum=67800 [12:53:53]StoreToDocumentArchive [12:53:53]shift 357 fd 67472 [12:53:53]save to /storage/0357/doc_00067472 [12:53:53]save last doc name /storage/0357/doc_00067472 to /storage/kkm_last_doc_name [12:53:53]save OK [12:53:53]Clear old archive folders... [12:53:53]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:53:53]tlvbuf is 017AC240 [12:53:53]SAM_PROTO_ClearQueue [12:53:53]wFMCommunicate request_size=4 [12:53:53]MH_SAM_APDU [12:53:53]CAPDU: 80 09 00 00 [12:53:53]Write to MH i2c: E2 08 00 BB 05 80 09 00 00 00 00 00 00 32 [12:53:53]Write i2c OK [12:53:53]MH_I2C_Read... [12:53:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:53:53]Read from MH i2c: E2 [12:53:53]MH_I2C_Read... [12:53:53]Read from MH i2c: E2 03 00 [12:53:53]MH_I2C_Read... [12:53:53]Read from MH i2c: E2 03 00 BB 05 00 90 00 34 [12:53:53]RAPDU: 90 00 [12:53:53]wFMCommunicate OK [12:53:53]SAM_PROTO_ClearQueue done [12:53:53]KKMCreateOFDPacket [12:53:53]OFDProtocolAddRootSTLVToBuf [12:53:53]FM_MakeSignedData [12:53:53]FM_MakeSignedData [12:53:53]SAM_PROTO_SignData [12:53:53]wFMCommunicate request_size=4 [12:53:53]MH_SAM_APDU [12:53:53]CAPDU: 80 0D 01 02 [12:53:53]Write to MH i2c: E2 08 00 BC 05 80 0D 01 02 00 00 00 00 3A [12:53:53]Write i2c OK [12:53:53]MH_I2C_Read... [12:53:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:53:53]Read from MH i2c: E2 [12:53:53]MH_I2C_Read... [12:53:53]Read from MH i2c: E2 03 00 [12:53:53]MH_I2C_Read... [12:53:53]Read from MH i2c: E2 03 00 BC 05 00 90 00 35 [12:53:53]RAPDU: 90 00 [12:53:53]wFMCommunicate OK [12:53:53]wFMCommunicate request_size=255 [12:53:53]MH_SAM_APDU [12:53:53]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D8 08 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 08 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 1C 00 00 00 00 07 04 06 00 D8 08 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 E1 01 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 90 07 01 00 35 04 06 00 [12:53:53]Write to MH i2c: E2 02 01 BD 05 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D8 08 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 08 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 1C 00 00 00 00 07 04 06 00 D8 08 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 E1 01 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 90 07 01 00 35 04 06 00 00 00 4B [12:53:53]Write i2c OK [12:53:53]MH_I2C_Read... [12:53:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:53]Read from MH i2c: E2 [12:53:53]MH_I2C_Read... [12:53:53]Read from MH i2c: E2 03 00 [12:53:53]MH_I2C_Read... [12:53:53]Read from MH i2c: E2 03 00 BD 05 00 90 00 36 [12:53:53]RAPDU: 90 00 [12:53:53]wFMCommunicate OK [12:53:53]wFMCommunicate request_size=11 [12:53:53]MH_SAM_APDU [12:53:53]CAPDU: 80 0D 02 02 06 68 94 C1 F6 A7 77 [12:53:53]Write to MH i2c: E2 0E 00 BE 05 80 0D 02 02 06 00 68 94 C1 F6 A7 77 00 00 1A [12:53:53]Write i2c OK [12:53:53]MH_I2C_Read... [12:53:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:53]Read from MH i2c: E2 [12:53:53]MH_I2C_Read... [12:53:53]Read from MH i2c: E2 03 00 [12:53:53]MH_I2C_Read... [12:53:53]Read from MH i2c: E2 03 00 BE 05 00 90 00 37 [12:53:53]RAPDU: 90 00 [12:53:53]wFMCommunicate OK [12:53:53]wFMCommunicate request_size=4 [12:53:53]MH_SAM_APDU [12:53:53]CAPDU: 80 0D 03 02 [12:53:53]Write to MH i2c: E2 08 00 BF 05 80 0D 03 02 00 00 00 00 3F [12:53:53]Write i2c OK [12:53:53]MH_I2C_Read... [12:53:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:53:53]Read from MH i2c: E2 [12:53:53]MH_I2C_Read... [12:53:53]Read from MH i2c: E2 0B 00 [12:53:53]MH_I2C_Read... [12:53:53]Read from MH i2c: E2 0B 00 BF 05 00 2F A2 D4 69 02 80 A1 1D 90 00 8E [12:53:53]RAPDU: 2F A2 D4 69 02 80 A1 1D 90 00 [12:53:53]wFMCommunicate OK [12:53:53]SAM_PROTO_SignData done [12:53:53]FM_MakeSignedData done [12:53:53]CreateOFDProtocolMessage [12:53:53]wFMCommunicate request_size=4 [12:53:53]MH_SAM_APDU [12:53:53]CAPDU: 80 11 00 00 [12:53:53]Write to MH i2c: E2 08 00 C0 05 80 11 00 00 00 00 00 00 3F [12:53:53]Write i2c OK [12:53:53]MH_I2C_Read... [12:53:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:53]Read from MH i2c: E2 [12:53:53]MH_I2C_Read... [12:53:53]Read from MH i2c: E2 17 00 [12:53:53]MH_I2C_Read... [12:53:53]Read from MH i2c: E2 17 00 C0 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 95 [12:53:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:53:53]wFMCommunicate OK [12:53:53]CreateOFDProtocolMessage done [12:53:53]OFDSenderStorePacket 67472 [12:53:53]StoreOFDPacket docnum=67472 [12:53:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 EB 71 08 01 84 39 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D8 08 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 08 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 1C 00 00 00 00 07 04 06 00 D8 08 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 E1 01 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 90 07 01 00 35 04 06 00 68 94 C1 F6 A7 77 2F A2 D4 69 02 80 A1 1D [12:53:53]CheckFolder [12:53:53]dirname=/storage/ofd_packets [12:53:53]CheckFolder done [12:53:53]ProducePacketName [12:53:53]name=ofd_packets/00067472 [12:53:53]NVStorageSaveData ofd_packets/00067472 [12:53:53]File name is /storage/ofd_packets/00067472 [12:53:53]Write 302 bytes [12:53:53]NVStorageSaveData done [12:53:53]OFDSenderStorePacket done [12:53:53]KKMCreateOFDPacket done [12:53:53]NVStorageSaveData kkm_last_timestamp [12:53:53]File name is /storage/kkm_last_timestamp [12:53:53]Write 4 bytes [12:53:53]NVStorageSaveData done [12:53:53]ExternCall_PrintAddStr [12:53:53]wPrintStart [12:53:53]Write to MH i2c: 01 00 00 C1 05 C6 [12:53:53]Write i2c OK [12:53:53]MH_I2C_Read... [12:53:53]Read from MH i2c: 01 [12:53:53]MH_I2C_Read... [12:53:53]Read from MH i2c: 01 07 00 [12:53:53]MH_I2C_Read... [12:53:53]Read from MH i2c: 01 07 00 C1 05 00 00 00 00 00 FF 0F DB [12:53:53]RasterBufferAndPrint [12:53:53]line Счет N : (1)507512 [12:53:53]line ИНН: 02508201610067 [12:53:53]line Контрольно-Кассовый Чек [12:53:53]line ПРОДАЖА [12:53:53]line ТРК (МРК, ГНК) : 42 [12:53:53]line Товар: 2710124130 [12:53:53]line Super-92-К-5 [12:53:53]line 10.000 * 67.80 [12:53:53]line = 678.00 [12:53:53]line НДС 12% НСП 1% [12:53:53]line > о реализуемом товаре [12:53:53]line ИТОГО: 678.00 [12:53:53]line НСП 1% : 6.00 [12:53:53]line НДС 12% : 72.00 [12:53:53]line Наличными: 678.00 [12:53:53]line Безнал.: 0.00 [12:53:53]line Место: АЗС № 91 "Партнер Нефть" [12:53:53]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:53:53]line СНО: Общий режим [12:53:53]line Чек 70 16.05.2024 12:53 [12:53:53]line Смена: 357 ФФД: 1.0 [12:53:53]line ЗНМ: 0300000119 [12:53:53]line РНМ: 0000000000091845 [12:53:53]line Версия ККМ: 001 [12:53:53]line ФМ: 0000000000871829 [12:53:53]line ФД: 67472 [12:53:53]line ФПД: 114988118615927 [12:53:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T125353&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67472&fm=114988118615927&tin=02508201610067®Number=0000000000091845&sum=67800 [12:53:54]OFD Sender: Processing packet 67472 [packets to send 35, broken 34] [12:53:54]ProducePacketName [12:53:54]name=ofd_packets/00067472 [12:53:54]OFD Sender: To server: pG, [12:53:54]CommunicateWithHost lk.salyk.kg:30040 [12:53:54]ConnectInit lk.salyk.kg [12:53:54]written 0, free lines is 4095 [12:53:54]Connected sock=9 [12:53: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 38 32 39 10 01 00 00 EB 71 08 01 84 39 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D8 08 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 08 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 1C 00 00 00 00 07 04 06 00 D8 08 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 E1 01 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 90 07 01 00 35 04 06 00 68 94 C1 F6 A7 77 2F A2 D4 69 02 80 A1 1D [12:53:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 C7 AA 47 00 D8 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 38 32 39 10 04 04 00 90 07 01 00 F4 03 04 00 BB A9 45 66 B6 04 01 00 00 EE 6C 07 48 F7 6A 95 C9 [12:53:54]CommunicateWithHost err = 0 [12:53:54]CheckOFDResponse [12:53:54]1017 (14) - 77093643461234 [12:53:54]1041 (16) - 0000000000871829 [12:53:54]1040 (4) - 67472 [12:53:54]1012 (4) - 16.05.2024 06:37 [12:53:54]1206 (1) - 0 [12:53:54]OFD Sender: Remove packet 67472 [12:53:54]ProducePacketName [12:53:54]name=ofd_packets/00067472 [12:53:54]NVStorageDeleteData [12:53:54]Write to MH i2c: 01 00 00 E8 05 ED [12:53:54]Write i2c OK [12:53:54]MH_I2C_Read... [12:53:54]Read from MH i2c: 01 [12:53:54]MH_I2C_Read... [12:53:54]Read from MH i2c: 01 07 00 [12:53:54]MH_I2C_Read... [12:53:54]Read from MH i2c: 01 07 00 E8 05 00 00 00 00 00 FC 0C FC [12:53:54]RasterBufferAndPrint [12:53:54]line [12:53:54]line [12:53:54]line [12:53:54]line [12:53:54]line [12:53:54]written 0, free lines is 3328 [12:53:54]MH_Cut [12:53:54]Write to MH i2c: D1 01 00 EF 05 01 C6 [12:53:54]Write i2c OK [12:53:54]MH_I2C_Read... [12:53:54]Read from MH i2c: D1 [12:53:54]MH_I2C_Read... [12:53:54]Read from MH i2c: D1 01 00 [12:53:54]MH_I2C_Read... [12:53:54]Read from MH i2c: D1 01 00 EF 05 00 C5 [12:53:54]Write to MH i2c: 01 00 00 F0 05 F5 [12:53:54]Write i2c OK [12:53:54]MH_I2C_Read... [12:53:55]OFD Sender: No OFD packet to send [12:53:55]*** Cut start [12:53:55]*** Purtial cut [12:53:55]*** Stage 1: CUTSNS_PIN = 1 [12:53:55]Read from MH i2c: 01 [12:53:55]MH_I2C_Read... [12:53:55]*** Stop cut motor [12:53:55]*** Cut end [12:53:55]Read from MH i2c: 01 07 00 [12:53:55]MH_I2C_Read... [12:53:55]Read from MH i2c: 01 07 00 F0 05 00 00 00 00 00 FF 0F 0A [12:53:55]process_action close_receipt done [12:53:55]requested_data is exist [12:53:55]produce_requested_data [12:53:55]requested_item fm.sn is exist - process it [12:53:55]wFMCommunicate request_size=4 [12:53:55]MH_SAM_APDU [12:53:55]CAPDU: 80 11 00 00 [12:53:55]Write to MH i2c: E2 08 00 F1 05 80 11 00 00 00 00 00 00 70 [12:53:55]Write i2c OK [12:53:55]MH_I2C_Read... [12:53:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:55]Read from MH i2c: E2 [12:53:55]MH_I2C_Read... [12:53:55]Read from MH i2c: E2 17 00 [12:53:55]MH_I2C_Read... [12:53:55]Read from MH i2c: E2 17 00 F1 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C6 [12:53:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:53:55]wFMCommunicate OK [12:53:55]requested_item fd.num is exist - process it [12:53:55]SAM_PROTO_GetFieldsCounters [12:53:55]wFMCommunicate request_size=4 [12:53:55]MH_SAM_APDU [12:53:55]CAPDU: 80 13 00 00 [12:53:55]Write to MH i2c: E2 08 00 F2 05 80 13 00 00 00 00 00 00 73 [12:53:55]Write i2c OK [12:53:55]MH_I2C_Read... [12:53:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:53:55]Read from MH i2c: E2 [12:53:55]MH_I2C_Read... [12:53:55]Read from MH i2c: E2 62 00 [12:53:55]MH_I2C_Read... [12:53:55]Read from MH i2c: E2 62 00 F2 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 90 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [12:53:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 90 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:53:55]wFMCommunicate OK [12:53:56]SAM_PROTO_GetFieldsCounters done [12:53:56]requested_item shift.num is exist - process it [12:53:56]requested_item shift.opened is exist - process it [12:53:56]req_shift_opened [12:53:56]FM_GetShiftState [12:53:56]SAM_PROTO_GetShiftState [12:53:56]wFMCommunicate request_size=4 [12:53:56]MH_SAM_APDU [12:53:56]CAPDU: 80 13 01 00 [12:53:56]Write to MH i2c: E2 08 00 F3 05 80 13 01 00 00 00 00 00 75 [12:53:56]Write i2c OK [12:53:56]MH_I2C_Read... [12:53:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:56]Read from MH i2c: E2 [12:53:56]MH_I2C_Read... [12:53:56]Read from MH i2c: E2 0E 00 [12:53:56]MH_I2C_Read... [12:53:56]Read from MH i2c: E2 0E 00 F3 05 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 21 [12:53:56]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [12:53:56]wFMCommunicate OK [12:53:56]SAM_PROTO_GetShiftState done [12:53:56]FM_GetShiftState done [12:53:56]req_shift_opened done [12:53:56]requested_item shift.open_date is exist - process it [12:53:56]req_shift_open_date [12:53:56]req_shift_open_date done [12:53:56]produce_requested_data done [12:53:56]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67472,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [12:53:56]process_action_free close_receipt [12:53:56]json_value_free [12:53:56]json_value_free done [12:53:56]process_json_proto returns [12:53:56]Send response to host [12:53:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67472,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [12:53:56]free response buf [12:53:56]execute_script done [12:53:56]execute_script returns [12:53:56]free content buf [12:53:56]Sock 10.Close socket [12:53:56]Sock 10.Thread stoped [12:54:00]OFD Sender: No OFD packet to send [12:54:05]OFD Sender: No OFD packet to send [12:54:10]OFD Sender: No OFD packet to send [12:54:15]OFD Sender: No OFD packet to send [12:54:20]OFD Sender: No OFD packet to send [12:54:25]OFD Sender: No OFD packet to send [12:54:30]OFD Sender: No OFD packet to send [12:54:35]OFD Sender: No OFD packet to send [12:54:40]OFD Sender: No OFD packet to send [12:54:45]OFD Sender: No OFD packet to send [12:54:50]OFD Sender: No OFD packet to send [12:54:55]OFD Sender: No OFD packet to send [12:55:00]OFD Sender: No OFD packet to send [12:55:04]accept exits with 8 [12:55:04]New connection [12:55:04]New thread 3067182436 created [12:55:04]Thread 3067039076 joined [12:55:04]Waiting for new connection... [12:55:04] Sock 8.Parse request [12:55:04]Sock 8.Check first char [12:55:04]Sock 8.First char is OK [12:55:04]request: POST /json_proto HTTP/1.0 [12:55:04]Method: POST [12:55:04]URL: /json_proto [12:55:04]Method is POST - this is cgi request [12:55:04]url: /json_proto [12:55:04]query_string will be loaded in cgi processing [12:55:04]execute_cgi json_proto POST (null) [12:55:04]execute_cgi path=json_proto method=POST [12:55:04]POST find Content-Length [12:55:04]Host: 172.17.41.195:8080 [12:55:04]Content-Length: 706 [12:55:04]Content-Type: application/json [12:55:04] [12:55:04]POST finish read [12:55:04]Found Content-Length = 706 [12:55:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12088", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0439 Nitro 0.45 \u0436/\u0431", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:04]execute_script... [12:55:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12088", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0439 Nitro 0.45 \u0436/\u0431", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:04]POST & json_proto [12:55:04]process_json_proto [12:55:04]json parsed OK: [12:55:04]protocol is kg_v1.0 [12:55:04]action value=close_receipt [12:55:04]process_action close_receipt [12:55:04]cmd_close_receipt [12:55:04]MH_GetDate [12:55:04]Write to MH i2c: F0 00 00 F4 05 E8 [12:55:04]Write i2c OK [12:55:04]MH_I2C_Read... [12:55:04]Read from MH i2c: F0 [12:55:04]MH_I2C_Read... [12:55:04]Read from MH i2c: F0 09 00 [12:55:04]MH_I2C_Read... [12:55:04]Read from MH i2c: F0 09 00 F4 05 00 28 02 46 66 FC 21 6F 64 B7 [12:55:04]GetLastDocTimeStamp 1715864033 [12:55:04]current date 1715864104 [12:55:04]FM_GetShiftState [12:55:04]SAM_PROTO_GetShiftState [12:55:04]wFMCommunicate request_size=4 [12:55:04]MH_SAM_APDU [12:55:04]CAPDU: 80 13 01 00 [12:55:04]Write to MH i2c: E2 08 00 F5 05 80 13 01 00 00 00 00 00 77 [12:55:04]Write i2c OK [12:55:04]MH_I2C_Read... [12:55:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:04]Read from MH i2c: E2 [12:55:04]MH_I2C_Read... [12:55:04]Read from MH i2c: E2 0E 00 [12:55:04]MH_I2C_Read... [12:55:04]Read from MH i2c: E2 0E 00 F5 05 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 23 [12:55:04]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [12:55:04]wFMCommunicate OK [12:55:04]SAM_PROTO_GetShiftState done [12:55:04]FM_GetShiftState done [12:55:04]opened in 1715818916 [12:55:04]opened+sec_in_day 1715905316 [12:55:04]quantity*price = 7500 [12:55:04]sum+1 = 7501 [12:55:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 71 16.05.2024 12:55 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67473 ФПД: 126315460361242 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T125504&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67473&fm=126315460361242&tin=02508201610067®Number=0000000000091845&sum=7500 0 [12:55:05]StoreToDocumentArchive [12:55:05]shift 357 fd 67473 [12:55:05]save to /storage/0357/doc_00067473 [12:55:05]save last doc name /storage/0357/doc_00067473 to /storage/kkm_last_doc_name [12:55:05]save OK [12:55:05]Clear old archive folders... [12:55:05]ProcessDocumentItem done err = 0, tmpTLVsize=302 [12:55:05]tlvbuf is 017DF8C0 [12:55:05]SAM_PROTO_ClearQueue [12:55:05]wFMCommunicate request_size=4 [12:55:05]MH_SAM_APDU [12:55:05]CAPDU: 80 09 00 00 [12:55:05]Write to MH i2c: E2 08 00 02 06 80 09 00 00 00 00 00 00 7A [12:55:05]Write i2c OK [12:55:05]MH_I2C_Read... [12:55:05]Read from MH i2c: E2 [12:55:05]MH_I2C_Read... [12:55:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:55:05]Read from MH i2c: E2 03 00 [12:55:05]MH_I2C_Read... [12:55:05]Read from MH i2c: E2 03 00 02 06 00 90 00 7C [12:55:05]RAPDU: 90 00 [12:55:05]wFMCommunicate OK [12:55:05]SAM_PROTO_ClearQueue done [12:55:05]KKMCreateOFDPacket [12:55:05]OFDProtocolAddRootSTLVToBuf [12:55:05]FM_MakeSignedData [12:55:05]FM_MakeSignedData [12:55:05]SAM_PROTO_SignData [12:55:05]wFMCommunicate request_size=4 [12:55:05]MH_SAM_APDU [12:55:05]CAPDU: 80 0D 01 02 [12:55:05]Write to MH i2c: E2 08 00 03 06 80 0D 01 02 00 00 00 00 82 [12:55:05]Write i2c OK [12:55:05]MH_I2C_Read... [12:55:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:55:05]Read from MH i2c: E2 [12:55:05]MH_I2C_Read... [12:55:05]Read from MH i2c: E2 03 00 [12:55:05]MH_I2C_Read... [12:55:05]Read from MH i2c: E2 03 00 03 06 00 90 00 7D [12:55:05]RAPDU: 90 00 [12:55:05]wFMCommunicate OK [12:55:05]wFMCommunicate request_size=255 [12:55:05]MH_SAM_APDU [12:55:05]CAPDU: 80 0D 02 02 FA 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 D0 B5 D1 82 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 4E 69 74 72 6F 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 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 28 02 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 [12:55:05]Write to MH i2c: E2 02 01 04 06 80 0D 02 02 FA 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 D0 B5 D1 82 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 4E 69 74 72 6F 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 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 28 02 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 00 00 58 [12:55:05]Write i2c OK [12:55:05]MH_I2C_Read... [12:55:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:05]Read from MH i2c: E2 [12:55:05]MH_I2C_Read... [12:55:05]Read from MH i2c: E2 03 00 [12:55:05]MH_I2C_Read... [12:55:05]Read from MH i2c: E2 03 00 04 06 00 90 00 7E [12:55:05]RAPDU: 90 00 [12:55:05]wFMCommunicate OK [12:55:05]wFMCommunicate request_size=61 [12:55:05]MH_SAM_APDU [12:55:05]CAPDU: 80 0D 02 02 38 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 91 07 01 00 35 04 06 00 72 E2 1C 24 FC 1A [12:55:05]Write to MH i2c: E2 40 00 05 06 80 0D 02 02 38 00 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 91 07 01 00 35 04 06 00 72 E2 1C 24 FC 1A 00 00 02 [12:55:05]Write i2c OK [12:55:05]MH_I2C_Read... [12:55:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:05]Read from MH i2c: E2 [12:55:05]MH_I2C_Read... [12:55:05]Read from MH i2c: E2 03 00 [12:55:05]MH_I2C_Read... [12:55:05]Read from MH i2c: E2 03 00 05 06 00 90 00 7F [12:55:05]RAPDU: 90 00 [12:55:05]wFMCommunicate OK [12:55:05]wFMCommunicate request_size=4 [12:55:05]MH_SAM_APDU [12:55:05]CAPDU: 80 0D 03 02 [12:55:05]Write to MH i2c: E2 08 00 06 06 80 0D 03 02 00 00 00 00 87 [12:55:05]Write i2c OK [12:55:05]MH_I2C_Read... [12:55:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:55:05]Read from MH i2c: E2 [12:55:05]MH_I2C_Read... [12:55:05]Read from MH i2c: E2 0B 00 [12:55:05]MH_I2C_Read... [12:55:05]Read from MH i2c: E2 0B 00 06 06 00 13 70 61 20 B8 14 C3 B7 90 00 D2 [12:55:05]RAPDU: 13 70 61 20 B8 14 C3 B7 90 00 [12:55:05]wFMCommunicate OK [12:55:05]SAM_PROTO_SignData done [12:55:05]FM_MakeSignedData done [12:55:05]CreateOFDProtocolMessage [12:55:05]wFMCommunicate request_size=4 [12:55:05]MH_SAM_APDU [12:55:05]CAPDU: 80 11 00 00 [12:55:05]Write to MH i2c: E2 08 00 07 06 80 11 00 00 00 00 00 00 87 [12:55:05]Write i2c OK [12:55:05]MH_I2C_Read... [12:55:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:05]Read from MH i2c: E2 [12:55:05]MH_I2C_Read... [12:55:05]Read from MH i2c: E2 17 00 [12:55:05]MH_I2C_Read... [12:55:05]Read from MH i2c: E2 17 00 07 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DD [12:55:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:55:05]wFMCommunicate OK [12:55:05]CreateOFDProtocolMessage done [12:55:05]OFDSenderStorePacket 67473 [12:55:05]StoreOFDPacket docnum=67473 [12:55:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 42 01 00 00 EC 21 3A 01 42 AF 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 D0 B5 D1 82 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 4E 69 74 72 6F 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 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 28 02 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 91 07 01 00 35 04 06 00 72 E2 1C 24 FC 1A 13 70 61 20 B8 14 C3 B7 [12:55:05]CheckFolder [12:55:05]dirname=/storage/ofd_packets [12:55:05]CheckFolder done [12:55:05]ProducePacketName [12:55:05]name=ofd_packets/00067473 [12:55:05]NVStorageSaveData ofd_packets/00067473 [12:55:05]File name is /storage/ofd_packets/00067473 [12:55:05]Write 352 bytes [12:55:05]NVStorageSaveData done [12:55:05]OFDSenderStorePacket done [12:55:05]KKMCreateOFDPacket done [12:55:05]NVStorageSaveData kkm_last_timestamp [12:55:05]File name is /storage/kkm_last_timestamp [12:55:05]Write 4 bytes [12:55:05]NVStorageSaveData done [12:55:05]ExternCall_PrintAddStr [12:55:05]wPrintStart [12:55:05]Write to MH i2c: 01 00 00 08 06 0E [12:55:05]Write i2c OK [12:55:05]MH_I2C_Read... [12:55:05]Read from MH i2c: 01 [12:55:05]MH_I2C_Read... [12:55:05]Read from MH i2c: 01 07 00 [12:55:05]MH_I2C_Read... [12:55:05]Read from MH i2c: 01 07 00 08 06 00 00 00 00 00 FF 0F 23 [12:55:05]RasterBufferAndPrint [12:55:05]line Счет N : (3)12088 [12:55:05]line ИНН: 02508201610067 [12:55:05]line Контрольно-Кассовый Чек [12:55:05]line ПРОДАЖА [12:55:05]line Товар: 4700000480050 [12:55:05]line Напиток энергетический Nitro 0.45 ж/б [12:55:05]line 1.000 * 75.00 [12:55:05]line = 75.00 [12:55:05]line НДС 12% НСП 1% [12:55:05]line > о реализуемом товаре [12:55:05]line ИТОГО: 75.00 [12:55:05]line НСП 1% : 0.66 [12:55:05]line НДС 12% : 7.96 [12:55:05]line Наличными: 75.00 [12:55:05]line Безнал.: 0.00 [12:55:05]line Место: АЗС № 91 "Партнер Нефть" [12:55:05]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:55:05]line СНО: Общий режим [12:55:05]line Чек 71 16.05.2024 12:55 [12:55:05]line Смена: 357 ФФД: 1.0 [12:55:05]line ЗНМ: 0300000119 [12:55:05]line РНМ: 0000000000091845 [12:55:05]line Версия ККМ: 001 [12:55:05]line ФМ: 0000000000871829 [12:55:05]line ФД: 67473 [12:55:05]line ФПД: 126315460361242 [12:55:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T125504&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67473&fm=126315460361242&tin=02508201610067®Number=0000000000091845&sum=7500 [12:55:06]line 0 [12:55:06]OFD Sender: Processing packet 67473 [packets to send 35, broken 34] [12:55:06]ProducePacketName [12:55:06]name=ofd_packets/00067473 [12:55:06]OFD Sender: To server: pG, [12:55:06]CommunicateWithHost lk.salyk.kg:30040 [12:55:06]ConnectInit lk.salyk.kg [12:55:06]written 0, free lines is 4095 [12:55:06]Connected sock=9 [12:55: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 38 32 39 42 01 00 00 EC 21 3A 01 42 AF 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 D0 B5 D1 82 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 4E 69 74 72 6F 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 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 28 02 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 91 07 01 00 35 04 06 00 72 E2 1C 24 FC 1A 13 70 61 20 B8 14 C3 B7 [12:55:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 26 69 47 00 2D F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 91 07 01 00 F4 03 04 00 03 AA 45 66 B6 04 01 00 00 DF BB C7 1F 8B 22 15 13 [12:55:06]CommunicateWithHost err = 0 [12:55:06]CheckOFDResponse [12:55:06]1017 (14) - 77093643461234 [12:55:06]1041 (16) - 0000000000871829 [12:55:06]1040 (4) - 67473 [12:55:06]1012 (4) - 16.05.2024 06:38 [12:55:06]1206 (1) - 0 [12:55:06]OFD Sender: Remove packet 67473 [12:55:06]ProducePacketName [12:55:06]name=ofd_packets/00067473 [12:55:06]NVStorageDeleteData [12:55:06]Write to MH i2c: 01 00 00 30 06 36 [12:55:06]Write i2c OK [12:55:06]MH_I2C_Read... [12:55:06]Read from MH i2c: 01 [12:55:06]MH_I2C_Read... [12:55:06]Read from MH i2c: 01 07 00 [12:55:06]MH_I2C_Read... [12:55:06]Read from MH i2c: 01 07 00 30 06 00 00 00 00 00 CC 0C 15 [12:55:06]RasterBufferAndPrint [12:55:06]line [12:55:06]line [12:55:06]line [12:55:06]line [12:55:06]line [12:55:06]written 0, free lines is 3280 [12:55:06]MH_Cut [12:55:06]Write to MH i2c: D1 01 00 37 06 01 0F [12:55:06]Write i2c OK [12:55:06]MH_I2C_Read... [12:55:06]Read from MH i2c: D1 [12:55:06]MH_I2C_Read... [12:55:06]Read from MH i2c: D1 01 00 [12:55:06]MH_I2C_Read... [12:55:06]Read from MH i2c: D1 01 00 37 06 00 0E [12:55:06]Write to MH i2c: 01 00 00 38 06 3E [12:55:06]Write i2c OK [12:55:06]MH_I2C_Read... [12:55:06]OFD Sender: No OFD packet to send [12:55:07]*** Cut start [12:55:07]*** Purtial cut [12:55:07]*** CUTSNS_PIN = 0 [12:55:07]*** Stage 1: CUTSNS_PIN = 1 [12:55:09]Read from MH i2c: 01 [12:55:09]MH_I2C_Read... [12:55:09]*** Stop cut motor [12:55:09]*** Cut end [12:55:09]Read from MH i2c: 01 07 00 [12:55:09]MH_I2C_Read... [12:55:09]Read from MH i2c: 01 07 00 38 06 00 00 00 00 00 FF 0F 53 [12:55:09]process_action close_receipt done [12:55:09]requested_data is exist [12:55:09]produce_requested_data [12:55:09]requested_item fm.sn is exist - process it [12:55:09]wFMCommunicate request_size=4 [12:55:09]MH_SAM_APDU [12:55:09]CAPDU: 80 11 00 00 [12:55:09]Write to MH i2c: E2 08 00 39 06 80 11 00 00 00 00 00 00 B9 [12:55:09]Write i2c OK [12:55:09]MH_I2C_Read... [12:55:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:09]Read from MH i2c: E2 [12:55:09]MH_I2C_Read... [12:55:09]Read from MH i2c: E2 17 00 [12:55:09]MH_I2C_Read... [12:55:09]Read from MH i2c: E2 17 00 39 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0F [12:55:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:55:09]wFMCommunicate OK [12:55:09]requested_item fd.num is exist - process it [12:55:09]SAM_PROTO_GetFieldsCounters [12:55:09]wFMCommunicate request_size=4 [12:55:09]MH_SAM_APDU [12:55:09]CAPDU: 80 13 00 00 [12:55:09]Write to MH i2c: E2 08 00 3A 06 80 13 00 00 00 00 00 00 BC [12:55:09]Write i2c OK [12:55:09]MH_I2C_Read... [12:55:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:55:09]Read from MH i2c: E2 [12:55:09]MH_I2C_Read... [12:55:09]Read from MH i2c: E2 62 00 [12:55:09]MH_I2C_Read... [12:55:09]Read from MH i2c: E2 62 00 3A 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 91 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [12:55: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 91 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:55:09]wFMCommunicate OK [12:55:09]SAM_PROTO_GetFieldsCounters done [12:55:09]requested_item shift.num is exist - process it [12:55:09]requested_item shift.opened is exist - process it [12:55:09]req_shift_opened [12:55:09]FM_GetShiftState [12:55:09]SAM_PROTO_GetShiftState [12:55:09]wFMCommunicate request_size=4 [12:55:09]MH_SAM_APDU [12:55:09]CAPDU: 80 13 01 00 [12:55:09]Write to MH i2c: E2 08 00 3B 06 80 13 01 00 00 00 00 00 BE [12:55:09]Write i2c OK [12:55:09]MH_I2C_Read... [12:55:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:09]Read from MH i2c: E2 [12:55:09]MH_I2C_Read... [12:55:09]Read from MH i2c: E2 0E 00 [12:55:09]MH_I2C_Read... [12:55:09]Read from MH i2c: E2 0E 00 3B 06 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 6A [12:55:09]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [12:55:09]wFMCommunicate OK [12:55:09]SAM_PROTO_GetShiftState done [12:55:09]FM_GetShiftState done [12:55:09]req_shift_opened done [12:55:09]requested_item shift.open_date is exist - process it [12:55:09]req_shift_open_date [12:55:09]req_shift_open_date done [12:55:09]produce_requested_data done [12:55:09]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67473,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [12:55:09]process_action_free close_receipt [12:55:09]json_value_free [12:55:09]json_value_free done [12:55:09]process_json_proto returns [12:55:09]Send response to host [12:55:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67473,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [12:55:09]free response buf [12:55:09]execute_script done [12:55:09]execute_script returns [12:55:09]free content buf [12:55:09]Sock 8.Close socket [12:55:09]Sock 8.Thread stoped [12:55:11]OFD Sender: No OFD packet to send [12:55:16]OFD Sender: No OFD packet to send [12:55:19]accept exits with 10 [12:55:19]New connection [12:55:19]New thread 3067039076 created [12:55:19]Thread 3067182436 joined [12:55:19]Waiting for new connection... [12:55:19] Sock 10.Parse request [12:55:19]Sock 10.Check first char [12:55:19]Sock 10.First char is OK [12:55:19]request: POST /json_proto HTTP/1.0 [12:55:19]Method: POST [12:55:19]URL: /json_proto [12:55:19]Method is POST - this is cgi request [12:55:19]url: /json_proto [12:55:19]query_string will be loaded in cgi processing [12:55:19]execute_cgi json_proto POST (null) [12:55:19]execute_cgi path=json_proto method=POST [12:55:19]POST find Content-Length [12:55:19]Host: 172.17.41.195:8080 [12:55:19]Content-Length: 679 [12:55:19]Content-Type: application/json [12:55:19] [12:55:19]POST finish read [12:55:19]Found Content-Length = 679 [12:55:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507515", "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" : 74.70, "quantity" : 26.780, "sum" : 2000.47, "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:55:19]execute_script... [12:55: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)507515", "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" : 74.70, "quantity" : 26.780, "sum" : 2000.47, "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:55:19]POST & json_proto [12:55:19]process_json_proto [12:55:19]json parsed OK: [12:55:19]protocol is kg_v1.0 [12:55:19]action value=close_receipt [12:55:19]process_action close_receipt [12:55:19]cmd_close_receipt [12:55:19]MH_GetDate [12:55:19]Write to MH i2c: F0 00 00 3C 06 31 [12:55:19]Write i2c OK [12:55:19]MH_I2C_Read... [12:55:19]Read from MH i2c: F0 [12:55:19]MH_I2C_Read... [12:55:19]Read from MH i2c: F0 09 00 [12:55:19]MH_I2C_Read... [12:55:19]Read from MH i2c: F0 09 00 3C 06 00 38 02 46 66 FC 21 6F 64 10 [12:55:19]GetLastDocTimeStamp 1715864104 [12:55:19]current date 1715864120 [12:55:19]FM_GetShiftState [12:55:19]SAM_PROTO_GetShiftState [12:55:19]wFMCommunicate request_size=4 [12:55:19]MH_SAM_APDU [12:55:19]CAPDU: 80 13 01 00 [12:55:19]Write to MH i2c: E2 08 00 3D 06 80 13 01 00 00 00 00 00 C0 [12:55:19]Write i2c OK [12:55:19]MH_I2C_Read... [12:55:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:19]Read from MH i2c: E2 [12:55:19]MH_I2C_Read... [12:55:19]Read from MH i2c: E2 0E 00 [12:55:19]MH_I2C_Read... [12:55:19]Read from MH i2c: E2 0E 00 3D 06 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 6C [12:55:19]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [12:55:19]wFMCommunicate OK [12:55:19]SAM_PROTO_GetShiftState done [12:55:19]FM_GetShiftState done [12:55:19]opened in 1715818916 [12:55:19]opened+sec_in_day 1715905316 [12:55:19]quantity*price = 200046 [12:55:19]sum+1 = 200048 [12:55:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 72 16.05.2024 12:55 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67474 ФПД: 255728342486558 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T125520&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67474&fm=255728342486558&tin=02508201610067®Number=0000000000091845&sum=200000 [12:55:20]StoreToDocumentArchive [12:55:20]shift 357 fd 67474 [12:55:20]save to /storage/0357/doc_00067474 [12:55:20]save last doc name /storage/0357/doc_00067474 to /storage/kkm_last_doc_name [12:55:20]save OK [12:55:20]Clear old archive folders... [12:55:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:55:20]tlvbuf is 017DF7C0 [12:55:20]SAM_PROTO_ClearQueue [12:55:20]wFMCommunicate request_size=4 [12:55:20]MH_SAM_APDU [12:55:20]CAPDU: 80 09 00 00 [12:55:20]Write to MH i2c: E2 08 00 4A 06 80 09 00 00 00 00 00 00 C2 [12:55:20]Write i2c OK [12:55:20]MH_I2C_Read... [12:55:20]Read from MH i2c: E2 [12:55:20]MH_I2C_Read... [12:55:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:55:20]Read from MH i2c: E2 03 00 [12:55:20]MH_I2C_Read... [12:55:20]Read from MH i2c: E2 03 00 4A 06 00 90 00 C4 [12:55:20]RAPDU: 90 00 [12:55:20]wFMCommunicate OK [12:55:20]SAM_PROTO_ClearQueue done [12:55:20]KKMCreateOFDPacket [12:55:20]OFDProtocolAddRootSTLVToBuf [12:55:20]FM_MakeSignedData [12:55:20]FM_MakeSignedData [12:55:20]SAM_PROTO_SignData [12:55:20]wFMCommunicate request_size=4 [12:55:20]MH_SAM_APDU [12:55:20]CAPDU: 80 0D 01 02 [12:55:20]Write to MH i2c: E2 08 00 4B 06 80 0D 01 02 00 00 00 00 CA [12:55:20]Write i2c OK [12:55:20]MH_I2C_Read... [12:55:20]Read from MH i2c: E2 [12:55:20]MH_I2C_Read... [12:55:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:55:20]Read from MH i2c: E2 03 00 [12:55:20]MH_I2C_Read... [12:55:20]Read from MH i2c: E2 03 00 4B 06 00 90 00 C5 [12:55:20]RAPDU: 90 00 [12:55:20]wFMCommunicate OK [12:55:20]wFMCommunicate request_size=255 [12:55:20]MH_SAM_APDU [12:55: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 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 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 FC 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 48 00 00 00 F4 03 04 00 38 02 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 92 07 01 00 35 04 06 00 E8 95 65 03 [12:55:20]Write to MH i2c: E2 02 01 4C 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 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 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 FC 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 48 00 00 00 F4 03 04 00 38 02 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 92 07 01 00 35 04 06 00 E8 95 65 03 00 00 EB [12:55:20]Write i2c OK [12:55:20]MH_I2C_Read... [12:55:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:20]Read from MH i2c: E2 [12:55:20]MH_I2C_Read... [12:55:20]Read from MH i2c: E2 03 00 [12:55:20]MH_I2C_Read... [12:55:20]Read from MH i2c: E2 03 00 4C 06 00 90 00 C6 [12:55:20]RAPDU: 90 00 [12:55:20]wFMCommunicate OK [12:55:20]wFMCommunicate request_size=7 [12:55:20]MH_SAM_APDU [12:55:20]CAPDU: 80 0D 02 02 02 4E 1E [12:55:20]Write to MH i2c: E2 0A 00 4D 06 80 0D 02 02 02 00 4E 1E 00 00 3D [12:55:20]Write i2c OK [12:55:20]MH_I2C_Read... [12:55:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:20]Read from MH i2c: E2 [12:55:20]MH_I2C_Read... [12:55:20]Read from MH i2c: E2 03 00 [12:55:20]MH_I2C_Read... [12:55:20]Read from MH i2c: E2 03 00 4D 06 00 90 00 C7 [12:55:20]RAPDU: 90 00 [12:55:20]wFMCommunicate OK [12:55:20]wFMCommunicate request_size=4 [12:55:20]MH_SAM_APDU [12:55:20]CAPDU: 80 0D 03 02 [12:55:20]Write to MH i2c: E2 08 00 4E 06 80 0D 03 02 00 00 00 00 CF [12:55:20]Write i2c OK [12:55:20]MH_I2C_Read... [12:55:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:55:21]Read from MH i2c: E2 [12:55:21]MH_I2C_Read... [12:55:21]Read from MH i2c: E2 0B 00 [12:55:21]MH_I2C_Read... [12:55:21]Read from MH i2c: E2 0B 00 4E 06 00 20 99 71 73 41 A4 58 9B 90 00 45 [12:55:21]RAPDU: 20 99 71 73 41 A4 58 9B 90 00 [12:55:21]wFMCommunicate OK [12:55:21]SAM_PROTO_SignData done [12:55:21]FM_MakeSignedData done [12:55:21]CreateOFDProtocolMessage [12:55:21]wFMCommunicate request_size=4 [12:55:21]MH_SAM_APDU [12:55:21]CAPDU: 80 11 00 00 [12:55:21]Write to MH i2c: E2 08 00 4F 06 80 11 00 00 00 00 00 00 CF [12:55:21]Write i2c OK [12:55:21]MH_I2C_Read... [12:55:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:21]Read from MH i2c: E2 [12:55:21]MH_I2C_Read... [12:55:21]Read from MH i2c: E2 17 00 [12:55:21]MH_I2C_Read... [12:55:21]Read from MH i2c: E2 17 00 4F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 25 [12:55:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:55:21]wFMCommunicate OK [12:55:21]CreateOFDProtocolMessage done [12:55:21]OFDSenderStorePacket 67474 [12:55:21]StoreOFDPacket docnum=67474 [12:55:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 6E 74 04 01 B2 F5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 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 FC 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 48 00 00 00 F4 03 04 00 38 02 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 92 07 01 00 35 04 06 00 E8 95 65 03 4E 1E 20 99 71 73 41 A4 58 9B [12:55:21]CheckFolder [12:55:21]dirname=/storage/ofd_packets [12:55:21]CheckFolder done [12:55:21]ProducePacketName [12:55:21]name=ofd_packets/00067474 [12:55:21]NVStorageSaveData ofd_packets/00067474 [12:55:21]File name is /storage/ofd_packets/00067474 [12:55:21]Write 298 bytes [12:55:21]NVStorageSaveData done [12:55:21]OFDSenderStorePacket done [12:55:21]KKMCreateOFDPacket done [12:55:21]NVStorageSaveData kkm_last_timestamp [12:55:21]File name is /storage/kkm_last_timestamp [12:55:21]Write 4 bytes [12:55:21]NVStorageSaveData done [12:55:21]ExternCall_PrintAddStr [12:55:21]wPrintStart [12:55:21]Write to MH i2c: 01 00 00 50 06 56 [12:55:21]OFD Sender: Processing packet 67474 [packets to send 35, broken 34] [12:55:21]ProducePacketName [12:55:21]name=ofd_packets/00067474 [12:55:21]OFD Sender: To server: pG, [12:55:21]CommunicateWithHost lk.salyk.kg:30040 [12:55:21]ConnectInit lk.salyk.kg [12:55:21]Write i2c OK [12:55:21]MH_I2C_Read... [12:55:21]Read from MH i2c: 01 [12:55:21]MH_I2C_Read... [12:55:21]Read from MH i2c: 01 07 00 [12:55:21]MH_I2C_Read... [12:55:21]Read from MH i2c: 01 07 00 50 06 00 00 00 00 00 FF 0F 6B [12:55:21]RasterBufferAndPrint [12:55:21]line Счет N : (1)507515 [12:55:21]line ИНН: 02508201610067 [12:55:21]line Контрольно-Кассовый Чек [12:55:21]line ПРОДАЖА [12:55:21]line ТРК (МРК, ГНК) : 21 [12:55:21]line Товар: 2710194210 [12:55:21]line ДТ-К-5 [12:55:21]line 26.780 * 74.70 [12:55:21]line = 2000.47 [12:55:21]line НДС 12% НСП 1% [12:55:21]line > о реализуемом товаре [12:55:21]line ОКРУГЛЕНИЕ: -0.47 [12:55:21]line ИТОГО: 2000.00 [12:55:21]line Внесено: 2000.00 [12:55:21]line СДАЧА: 0.00 [12:55:21]line НСП 1% : 17.70 [12:55:21]line НДС 12% : 212.44 [12:55:21]line Наличными: 2000.00 [12:55:21]line Безнал.: 0.00 [12:55:21]line Место: АЗС № 91 "Партнер Нефть" [12:55:21]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:55:21]line СНО: Общий режим [12:55:21]line Чек 72 16.05.2024 12:55 [12:55:21]line Смена: 357 ФФД: 1.0 [12:55:21]line ЗНМ: 0300000119 [12:55:21]line РНМ: 0000000000091845 [12:55:21]line Версия ККМ: 001 [12:55:21]line ФМ: 0000000000871829 [12:55:21]line ФД: 67474 [12:55:21]line ФПД: 255728342486558 [12:55:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T125520&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67474&fm=255728342486558&tin=02508201610067®Number=0000000000091845&sum=200000 [12:55:21]Connected sock=9 [12:55: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 38 32 39 0C 01 00 00 6E 74 04 01 written 0, free lines is 4095 [12:55:21]B2 F5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 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 FC 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 48 00 00 00 F4 03 04 00 38 02 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 92 07 01 00 35 04 06 00 E8 95 65 03 4E 1E 20 99 71 73 41 A4 58 9B [12:55:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 37 E8 47 00 AF 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 92 07 01 00 F4 03 04 00 12 AA 45 66 B6 04 01 00 00 0C 65 B5 9C 9A A5 8F 79 [12:55:21]CommunicateWithHost err = 0 [12:55:21]CheckOFDResponse [12:55:21]1017 (14) - 77093643461234 [12:55:21]1041 (16) - 0000000000871829 [12:55:21]1040 (4) - 67474 [12:55:21]1012 (4) - 16.05.2024 06:39 [12:55:21]1206 (1) - 0 [12:55:21]OFD Sender: Remove packet 67474 [12:55:21]ProducePacketName [12:55:21]name=ofd_packets/00067474 [12:55:21]NVStorageDeleteData [12:55:21]Write to MH i2c: 01 00 00 7A 06 80 [12:55:21]Write i2c OK [12:55:21]MH_I2C_Read... [12:55:21]Read from MH i2c: 01 [12:55:21]MH_I2C_Read... [12:55:21]Read from MH i2c: 01 07 00 [12:55:21]MH_I2C_Read... [12:55:21]Read from MH i2c: 01 07 00 7A 06 00 00 00 00 00 C6 0C 59 [12:55:21]RasterBufferAndPrint [12:55:21]line [12:55:21]line [12:55:21]line [12:55:21]line [12:55:21]line [12:55:21]written 0, free lines is 3278 [12:55:21]MH_Cut [12:55:21]Write to MH i2c: D1 01 00 81 06 01 59 [12:55:21]Write i2c OK [12:55:21]MH_I2C_Read... [12:55:21]Read from MH i2c: D1 [12:55:21]MH_I2C_Read... [12:55:21]Read from MH i2c: D1 01 00 [12:55:21]MH_I2C_Read... [12:55:21]Read from MH i2c: D1 01 00 81 06 00 58 [12:55:21]Write to MH i2c: 01 00 00 82 06 88 [12:55:21]Write i2c OK [12:55:21]MH_I2C_Read... [12:55:22]OFD Sender: No OFD packet to send [12:55:22]*** Cut start [12:55:22]*** Purtial cut [12:55:22]*** Stage 1: CUTSNS_PIN = 1 [12:55:22]Read from MH i2c: 01 [12:55:22]MH_I2C_Read... [12:55:22]*** Stop cut motor [12:55:22]*** Cut end [12:55:22]Read from MH i2c: 01 07 00 [12:55:22]MH_I2C_Read... [12:55:22]Read from MH i2c: 01 07 00 82 06 00 00 00 00 00 FF 0F 9D [12:55:22]process_action close_receipt done [12:55:22]requested_data is exist [12:55:22]produce_requested_data [12:55:22]requested_item fm.sn is exist - process it [12:55:22]wFMCommunicate request_size=4 [12:55:22]MH_SAM_APDU [12:55:22]CAPDU: 80 11 00 00 [12:55:22]Write to MH i2c: E2 08 00 83 06 80 11 00 00 00 00 00 00 03 [12:55:22]Write i2c OK [12:55:22]MH_I2C_Read... [12:55:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:23]Read from MH i2c: E2 [12:55:23]MH_I2C_Read... [12:55:23]Read from MH i2c: E2 17 00 [12:55:23]MH_I2C_Read... [12:55:23]Read from MH i2c: E2 17 00 83 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 59 [12:55:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:55:23]wFMCommunicate OK [12:55:23]requested_item fd.num is exist - process it [12:55:23]SAM_PROTO_GetFieldsCounters [12:55:23]wFMCommunicate request_size=4 [12:55:23]MH_SAM_APDU [12:55:23]CAPDU: 80 13 00 00 [12:55:23]Write to MH i2c: E2 08 00 84 06 80 13 00 00 00 00 00 00 06 [12:55:23]Write i2c OK [12:55:23]MH_I2C_Read... [12:55:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:55:23]Read from MH i2c: E2 [12:55:23]MH_I2C_Read... [12:55:23]Read from MH i2c: E2 62 00 [12:55:23]MH_I2C_Read... [12:55:23]Read from MH i2c: E2 62 00 84 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 92 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [12:55: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 92 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:55:23]wFMCommunicate OK [12:55:23]SAM_PROTO_GetFieldsCounters done [12:55:23]requested_item shift.num is exist - process it [12:55:23]requested_item shift.opened is exist - process it [12:55:23]req_shift_opened [12:55:23]FM_GetShiftState [12:55:23]SAM_PROTO_GetShiftState [12:55:23]wFMCommunicate request_size=4 [12:55:23]MH_SAM_APDU [12:55:23]CAPDU: 80 13 01 00 [12:55:23]Write to MH i2c: E2 08 00 85 06 80 13 01 00 00 00 00 00 08 [12:55:23]Write i2c OK [12:55:23]MH_I2C_Read... [12:55:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:23]Read from MH i2c: E2 [12:55:23]MH_I2C_Read... [12:55:23]Read from MH i2c: E2 0E 00 [12:55:23]MH_I2C_Read... [12:55:23]Read from MH i2c: E2 0E 00 85 06 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 B4 [12:55:23]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [12:55:23]wFMCommunicate OK [12:55:23]SAM_PROTO_GetShiftState done [12:55:23]FM_GetShiftState done [12:55:23]req_shift_opened done [12:55:23]requested_item shift.open_date is exist - process it [12:55:23]req_shift_open_date [12:55:23]req_shift_open_date done [12:55:23]produce_requested_data done [12:55:23]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67474,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [12:55:23]process_action_free close_receipt [12:55:23]json_value_free [12:55:23]json_value_free done [12:55:23]process_json_proto returns [12:55:23]Send response to host [12:55:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67474,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [12:55:23]free response buf [12:55:23]execute_script done [12:55:23]execute_script returns [12:55:23]free content buf [12:55:23]Sock 10.Close socket [12:55:23]Sock 10.Thread stoped [12:55:27]OFD Sender: No OFD packet to send [12:55:32]OFD Sender: No OFD packet to send [12:55:37]OFD Sender: No OFD packet to send [12:55:42]OFD Sender: No OFD packet to send [12:55:47]OFD Sender: No OFD packet to send [12:55:52]OFD Sender: No OFD packet to send [12:55:57]OFD Sender: No OFD packet to send [12:56:02]OFD Sender: No OFD packet to send [12:56:07]OFD Sender: No OFD packet to send [12:56:12]OFD Sender: No OFD packet to send [12:56:17]OFD Sender: No OFD packet to send [12:56:22]OFD Sender: No OFD packet to send [12:56:27]OFD Sender: No OFD packet to send [12:56:32]OFD Sender: No OFD packet to send [12:56:37]OFD Sender: No OFD packet to send [12:56:42]OFD Sender: No OFD packet to send [12:56:47]OFD Sender: No OFD packet to send [12:56:52]OFD Sender: No OFD packet to send [12:56:57]OFD Sender: No OFD packet to send [12:57:02]OFD Sender: No OFD packet to send [12:57:07]OFD Sender: No OFD packet to send [12:57:07]accept exits with 8 [12:57:07]New connection [12:57:07]New thread 3067182436 created [12:57:07]Thread 3067039076 joined [12:57:07]Waiting for new connection... [12:57:07] Sock 8.Parse request [12:57:07]Sock 8.Check first char [12:57:07]Sock 8.First char is OK [12:57:07]request: POST /json_proto HTTP/1.0 [12:57:07]Method: POST [12:57:07]URL: /json_proto [12:57:07]Method is POST - this is cgi request [12:57:07]url: /json_proto [12:57:07]query_string will be loaded in cgi processing [12:57:07]execute_cgi json_proto POST (null) [12:57:07]execute_cgi path=json_proto method=POST [12:57:07]POST find Content-Length [12:57:07]Host: 172.17.41.195:8080 [12:57:07]Content-Length: 793 [12:57:07]Content-Type: application/json [12:57:07] [12:57:07]POST finish read [12:57:07]Found Content-Length = 793 [12:57:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507516", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:07]execute_script... [12:57: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)507516", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:07]POST & json_proto [12:57:07]process_json_proto [12:57:07]json parsed OK: [12:57:07]protocol is kg_v1.0 [12:57:07]action value=close_receipt [12:57:07]process_action close_receipt [12:57:07]cmd_close_receipt [12:57:07]MH_GetDate [12:57:07]Write to MH i2c: F0 00 00 86 06 7B [12:57:07]Write i2c OK [12:57:07]MH_I2C_Read... [12:57:07]Read from MH i2c: F0 [12:57:07]MH_I2C_Read... [12:57:07]Read from MH i2c: F0 09 00 [12:57:07]MH_I2C_Read... [12:57:07]Read from MH i2c: F0 09 00 86 06 00 A4 02 46 66 FC 21 6F 64 C6 [12:57:07]GetLastDocTimeStamp 1715864120 [12:57:07]current date 1715864228 [12:57:07]FM_GetShiftState [12:57:07]SAM_PROTO_GetShiftState [12:57:07]wFMCommunicate request_size=4 [12:57:07]MH_SAM_APDU [12:57:07]CAPDU: 80 13 01 00 [12:57:07]Write to MH i2c: E2 08 00 87 06 80 13 01 00 00 00 00 00 0A [12:57:07]Write i2c OK [12:57:07]MH_I2C_Read... [12:57:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:08]Read from MH i2c: E2 [12:57:08]MH_I2C_Read... [12:57:08]Read from MH i2c: E2 0E 00 [12:57:08]MH_I2C_Read... [12:57:08]Read from MH i2c: E2 0E 00 87 06 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 B6 [12:57:08]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [12:57:08]wFMCommunicate OK [12:57:08]SAM_PROTO_GetShiftState done [12:57:08]FM_GetShiftState done [12:57:08]opened in 1715818916 [12:57:08]opened+sec_in_day 1715905316 [12:57:08]quantity*price = 50036 [12:57:08]sum+1 = 50037 [12:57:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.36 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.36 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 73 16.05.2024 12:57 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67475 ФПД: 82902619133202 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T125708&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67475&fm=82902619133202&tin=02508201610067®Number=0000000000091845&sum=50036 [12:57:09]StoreToDocumentArchive [12:57:09]shift 357 fd 67475 [12:57:09]save to /storage/0357/doc_00067475 [12:57:09]save last doc name /storage/0357/doc_00067475 to /storage/kkm_last_doc_name [12:57:09]save OK [12:57:09]Clear old archive folders... [12:57:09]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:57:09]tlvbuf is 017C5990 [12:57:09]SAM_PROTO_ClearQueue [12:57:09]wFMCommunicate request_size=4 [12:57:09]MH_SAM_APDU [12:57:09]CAPDU: 80 09 00 00 [12:57:09]Write to MH i2c: E2 08 00 94 06 80 09 00 00 00 00 00 00 0C [12:57:09]Write i2c OK [12:57:09]MH_I2C_Read... [12:57:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:57:09]Read from MH i2c: E2 [12:57:09]MH_I2C_Read... [12:57:09]Read from MH i2c: E2 03 00 [12:57:09]MH_I2C_Read... [12:57:09]Read from MH i2c: E2 03 00 94 06 00 90 00 0E [12:57:09]RAPDU: 90 00 [12:57:09]wFMCommunicate OK [12:57:09]SAM_PROTO_ClearQueue done [12:57:09]KKMCreateOFDPacket [12:57:09]OFDProtocolAddRootSTLVToBuf [12:57:09]FM_MakeSignedData [12:57:09]FM_MakeSignedData [12:57:09]SAM_PROTO_SignData [12:57:09]wFMCommunicate request_size=4 [12:57:09]MH_SAM_APDU [12:57:09]CAPDU: 80 0D 01 02 [12:57:09]Write to MH i2c: E2 08 00 95 06 80 0D 01 02 00 00 00 00 14 [12:57:09]Write i2c OK [12:57:09]MH_I2C_Read... [12:57:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:57:09]Read from MH i2c: E2 [12:57:09]MH_I2C_Read... [12:57:09]Read from MH i2c: E2 03 00 [12:57:09]MH_I2C_Read... [12:57:09]Read from MH i2c: E2 03 00 95 06 00 90 00 0F [12:57:09]RAPDU: 90 00 [12:57:09]wFMCommunicate OK [12:57:09]wFMCommunicate request_size=255 [12:57:09]MH_SAM_APDU [12:57:09]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 A4 02 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 93 07 01 00 35 04 06 00 [12:57:09]Write to MH i2c: E2 02 01 96 06 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 A4 02 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 93 07 01 00 35 04 06 00 00 00 A6 [12:57:09]Write i2c OK [12:57:09]MH_I2C_Read... [12:57:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:09]Read from MH i2c: E2 [12:57:09]MH_I2C_Read... [12:57:09]Read from MH i2c: E2 03 00 [12:57:09]MH_I2C_Read... [12:57:09]Read from MH i2c: E2 03 00 96 06 00 90 00 10 [12:57:09]RAPDU: 90 00 [12:57:09]wFMCommunicate OK [12:57:09]wFMCommunicate request_size=11 [12:57:09]MH_SAM_APDU [12:57:09]CAPDU: 80 0D 02 02 06 4B 66 45 2A 15 12 [12:57:09]Write to MH i2c: E2 0E 00 97 06 80 0D 02 02 06 00 4B 66 45 2A 15 12 00 00 6A [12:57:09]Write i2c OK [12:57:09]MH_I2C_Read... [12:57:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:09]Read from MH i2c: E2 [12:57:09]MH_I2C_Read... [12:57:09]Read from MH i2c: E2 03 00 [12:57:09]MH_I2C_Read... [12:57:09]Read from MH i2c: E2 03 00 97 06 00 90 00 11 [12:57:09]RAPDU: 90 00 [12:57:09]wFMCommunicate OK [12:57:09]wFMCommunicate request_size=4 [12:57:09]MH_SAM_APDU [12:57:09]CAPDU: 80 0D 03 02 [12:57:09]Write to MH i2c: E2 08 00 98 06 80 0D 03 02 00 00 00 00 19 [12:57:09]Write i2c OK [12:57:09]MH_I2C_Read... [12:57:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:57:09]Read from MH i2c: E2 [12:57:09]MH_I2C_Read... [12:57:09]Read from MH i2c: E2 0B 00 [12:57:09]MH_I2C_Read... [12:57:09]Read from MH i2c: E2 0B 00 98 06 00 FE B1 5E 80 BF FA 52 66 90 00 18 [12:57:09]RAPDU: FE B1 5E 80 BF FA 52 66 90 00 [12:57:09]wFMCommunicate OK [12:57:09]SAM_PROTO_SignData done [12:57:09]FM_MakeSignedData done [12:57:09]CreateOFDProtocolMessage [12:57:09]wFMCommunicate request_size=4 [12:57:09]MH_SAM_APDU [12:57:09]CAPDU: 80 11 00 00 [12:57:09]Write to MH i2c: E2 08 00 99 06 80 11 00 00 00 00 00 00 19 [12:57:09]Write i2c OK [12:57:09]MH_I2C_Read... [12:57:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:09]Read from MH i2c: E2 [12:57:09]MH_I2C_Read... [12:57:09]Read from MH i2c: E2 17 00 [12:57:09]MH_I2C_Read... [12:57:09]Read from MH i2c: E2 17 00 99 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 6F [12:57:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:57:09]wFMCommunicate OK [12:57:09]CreateOFDProtocolMessage done [12:57:09]OFDSenderStorePacket 67475 [12:57:09]StoreOFDPacket docnum=67475 [12:57:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 DC E5 08 01 A7 DA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 A4 02 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 93 07 01 00 35 04 06 00 4B 66 45 2A 15 12 FE B1 5E 80 BF FA 52 66 [12:57:09]CheckFolder [12:57:09]dirname=/storage/ofd_packets [12:57:09]CheckFolder done [12:57:09]ProducePacketName [12:57:09]name=ofd_packets/00067475 [12:57:09]NVStorageSaveData ofd_packets/00067475 [12:57:09]File name is /storage/ofd_packets/00067475 [12:57:09]Write 302 bytes [12:57:09]NVStorageSaveData done [12:57:09]OFDSenderStorePacket done [12:57:09]KKMCreateOFDPacket done [12:57:09]NVStorageSaveData kkm_last_timestamp [12:57:09]File name is /storage/kkm_last_timestamp [12:57:09]Write 4 bytes [12:57:09]NVStorageSaveData done [12:57:09]ExternCall_PrintAddStr [12:57:09]wPrintStart [12:57:09]Write to MH i2c: 01 00 00 9A 06 A0 [12:57:09]Write i2c OK [12:57:09]MH_I2C_Read... [12:57:09]Read from MH i2c: 01 [12:57:09]MH_I2C_Read... [12:57:09]Read from MH i2c: 01 07 00 [12:57:09]MH_I2C_Read... [12:57:09]Read from MH i2c: 01 07 00 9A 06 00 00 00 00 00 FF 0F B5 [12:57:09]RasterBufferAndPrint [12:57:09]line Счет N : (1)507516 [12:57:09]line ИНН: 02508201610067 [12:57:09]line Контрольно-Кассовый Чек [12:57:09]line ПРОДАЖА [12:57:09]line ТРК (МРК, ГНК) : 42 [12:57:09]line Товар: 2710124130 [12:57:09]line Super-92-К-5 [12:57:09]line 7.380 * 67.80 [12:57:09]line = 500.36 [12:57:09]line НДС 12% НСП 1% [12:57:09]line > о реализуемом товаре [12:57:09]line ИТОГО: 500.36 [12:57:09]line НСП 1% : 4.43 [12:57:09]line НДС 12% : 53.14 [12:57:09]line Наличными: 0.00 [12:57:09]line Безнал.: 500.36 [12:57:09]line Место: АЗС № 91 "Партнер Нефть" [12:57:09]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:57:09]line СНО: Общий режим [12:57:09]line Чек 73 16.05.2024 12:57 [12:57:09]line Смена: 357 ФФД: 1.0 [12:57:09]line ЗНМ: 0300000119 [12:57:09]line РНМ: 0000000000091845 [12:57:09]line Версия ККМ: 001 [12:57:09]line Платежная система: O! деньги [12:57:09]line ФМ: 0000000000871829 [12:57:09]line ФД: 67475 [12:57:09]line ФПД: 82902619133202 [12:57:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T125708&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67475&fm=82902619133202&tin=02508201610067®Number=0000000000091845&sum=50036 [12:57:10]OFD Sender: Processing packet 67475 [packets to send 35, broken 34] [12:57:10]ProducePacketName [12:57:10]name=ofd_packets/00067475 [12:57:10]OFD Sender: To server: pG, [12:57:10]CommunicateWithHost lk.salyk.kg:30040 [12:57:10]ConnectInit lk.salyk.kg [12:57:10]written 0, free lines is 4095 [12:57:10]Connected sock=10 [12: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 38 32 39 10 01 00 00 DC E5 08 01 A7 DA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 A4 02 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 93 07 01 00 35 04 06 00 4B 66 45 2A 15 12 FE B1 5E 80 BF FA 52 66 [12: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 38 32 39 4F 00 00 00 44 61 47 00 66 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 93 07 01 00 F4 03 04 00 7F AA 45 66 B6 04 01 00 00 67 6E 30 80 A6 9D D3 93 [12:57:10]CommunicateWithHost err = 0 [12:57:10]CheckOFDResponse [12:57:10]1017 (14) - 77093643461234 [12:57:10]1041 (16) - 0000000000871829 [12:57:10]1040 (4) - 67475 [12:57:10]1012 (4) - 16.05.2024 06:41 [12:57:10]1206 (1) - 0 [12:57:10]OFD Sender: Remove packet 67475 [12:57:10]ProducePacketName [12:57:10]name=ofd_packets/00067475 [12:57:10]NVStorageDeleteData [12:57:10]Write to MH i2c: 01 00 00 C3 06 C9 [12:57:10]Write i2c OK [12:57:10]MH_I2C_Read... [12:57:10]Read from MH i2c: 01 [12:57:10]MH_I2C_Read... [12:57:10]Read from MH i2c: 01 07 00 [12:57:10]MH_I2C_Read... [12:57:10]Read from MH i2c: 01 07 00 C3 06 00 00 00 00 00 DF 0C BB [12:57:10]RasterBufferAndPrint [12:57:10]line [12:57:10]line [12:57:10]line [12:57:10]line [12:57:10]line [12:57:10]written 0, free lines is 3301 [12:57:10]MH_Cut [12:57:10]Write to MH i2c: D1 01 00 CA 06 01 A2 [12:57:10]Write i2c OK [12:57:10]MH_I2C_Read... [12:57:10]Read from MH i2c: D1 [12:57:10]MH_I2C_Read... [12:57:10]Read from MH i2c: D1 01 00 [12:57:10]MH_I2C_Read... [12:57:10]Read from MH i2c: D1 01 00 CA 06 00 A1 [12:57:10]Write to MH i2c: 01 00 00 CB 06 D1 [12:57:10]Write i2c OK [12:57:10]MH_I2C_Read... [12:57:10]OFD Sender: No OFD packet to send [12:57:11]*** Cut start [12:57:11]*** Purtial cut [12:57:11]*** CUTSNS_PIN = 0 [12:57:11]*** Stage 1: CUTSNS_PIN = 1 [12:57:13]Read from MH i2c: 01 [12:57:13]*** Stop cut motor [12:57:13]*** Cut end [12:57:13]MH_I2C_Read... [12:57:13]Read from MH i2c: 01 07 00 [12:57:13]MH_I2C_Read... [12:57:13]Read from MH i2c: 01 07 00 CB 06 00 00 00 00 00 FF 0F E6 [12:57:13]process_action close_receipt done [12:57:13]requested_data is exist [12:57:13]produce_requested_data [12:57:13]requested_item fm.sn is exist - process it [12:57:13]wFMCommunicate request_size=4 [12:57:13]MH_SAM_APDU [12:57:13]CAPDU: 80 11 00 00 [12:57:13]Write to MH i2c: E2 08 00 CC 06 80 11 00 00 00 00 00 00 4C [12:57:13]Write i2c OK [12:57:13]MH_I2C_Read... [12:57:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:13]Read from MH i2c: E2 [12:57:13]MH_I2C_Read... [12:57:13]Read from MH i2c: E2 17 00 [12:57:13]MH_I2C_Read... [12:57:13]Read from MH i2c: E2 17 00 CC 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A2 [12:57:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:57:13]wFMCommunicate OK [12:57:13]requested_item fd.num is exist - process it [12:57:13]SAM_PROTO_GetFieldsCounters [12:57:13]wFMCommunicate request_size=4 [12:57:13]MH_SAM_APDU [12:57:13]CAPDU: 80 13 00 00 [12:57:13]Write to MH i2c: E2 08 00 CD 06 80 13 00 00 00 00 00 00 4F [12:57:13]Write i2c OK [12:57:13]MH_I2C_Read... [12:57:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:57:13]Read from MH i2c: E2 [12:57:13]MH_I2C_Read... [12:57:13]Read from MH i2c: E2 62 00 [12:57:13]MH_I2C_Read... [12:57:13]Read from MH i2c: E2 62 00 CD 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 93 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [12:57:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 93 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:57:13]wFMCommunicate OK [12:57:13]SAM_PROTO_GetFieldsCounters done [12:57:13]requested_item shift.num is exist - process it [12:57:13]requested_item shift.opened is exist - process it [12:57:13]req_shift_opened [12:57:13]FM_GetShiftState [12:57:13]SAM_PROTO_GetShiftState [12:57:13]wFMCommunicate request_size=4 [12:57:13]MH_SAM_APDU [12:57:13]CAPDU: 80 13 01 00 [12:57:13]Write to MH i2c: E2 08 00 CE 06 80 13 01 00 00 00 00 00 51 [12:57:13]Write i2c OK [12:57:13]MH_I2C_Read... [12:57:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:13]Read from MH i2c: E2 [12:57:13]MH_I2C_Read... [12:57:13]Read from MH i2c: E2 0E 00 [12:57:13]MH_I2C_Read... [12:57:13]Read from MH i2c: E2 0E 00 CE 06 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 FD [12:57:13]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [12:57:13]wFMCommunicate OK [12:57:13]SAM_PROTO_GetShiftState done [12:57:13]FM_GetShiftState done [12:57:13]req_shift_opened done [12:57:13]requested_item shift.open_date is exist - process it [12:57:13]req_shift_open_date [12:57:13]req_shift_open_date done [12:57:13]produce_requested_data done [12:57:13]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67475,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [12:57:13]process_action_free close_receipt [12:57:13]json_value_free [12:57:13]json_value_free done [12:57:13]process_json_proto returns [12:57:13]Send response to host [12:57:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67475,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [12:57:13]free response buf [12:57:13]execute_script done [12:57:13]execute_script returns [12:57:13]free content buf [12:57:13]Sock 8.Close socket [12:57:13]Sock 8.Thread stoped [12:57:15]OFD Sender: No OFD packet to send [12:57:18]accept exits with 9 [12:57:18]New connection [12:57:18]New thread 3067039076 created [12:57:18]Thread 3067182436 joined [12:57:18]Waiting for new connection... [12:57:18] Sock 9.Parse request [12:57:18]Sock 9.Check first char [12:57:18]Sock 9.First char is OK [12:57:18]request: POST /json_proto HTTP/1.0 [12:57:18]Method: POST [12:57:18]URL: /json_proto [12:57:18]Method is POST - this is cgi request [12:57:18]url: /json_proto [12:57:18]query_string will be loaded in cgi processing [12:57:18]execute_cgi json_proto POST (null) [12:57:18]execute_cgi path=json_proto method=POST [12:57:18]POST find Content-Length [12:57:18]Host: 172.17.41.195:8080 [12:57:18]Content-Length: 685 [12:57:18]Content-Type: application/json [12:57:18] [12:57:18]POST finish read [12:57:18]Found Content-Length = 685 [12:57:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12089", "tax_sys" : 0, "items" : [ { "code": "4870002326172", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 1\u043B", "price" : 66.00, "quantity" : 1.000, "sum" : 66.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 66.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:18]execute_script... [12:57:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12089", "tax_sys" : 0, "items" : [ { "code": "4870002326172", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 1\u043B", "price" : 66.00, "quantity" : 1.000, "sum" : 66.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 66.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:18]POST & json_proto [12:57:18]process_json_proto [12:57:18]json parsed OK: [12:57:18]protocol is kg_v1.0 [12:57:18]action value=close_receipt [12:57:18]process_action close_receipt [12:57:18]cmd_close_receipt [12:57:18]MH_GetDate [12:57:18]Write to MH i2c: F0 00 00 CF 06 C4 [12:57:18]Write i2c OK [12:57:18]MH_I2C_Read... [12:57:18]Read from MH i2c: F0 [12:57:18]MH_I2C_Read... [12:57:18]Read from MH i2c: F0 09 00 [12:57:18]MH_I2C_Read... [12:57:18]Read from MH i2c: F0 09 00 CF 06 00 AE 02 46 66 FC 21 6F 64 19 [12:57:18]GetLastDocTimeStamp 1715864228 [12:57:18]current date 1715864238 [12:57:18]FM_GetShiftState [12:57:18]SAM_PROTO_GetShiftState [12:57:18]wFMCommunicate request_size=4 [12:57:18]MH_SAM_APDU [12:57:18]CAPDU: 80 13 01 00 [12:57:18]Write to MH i2c: E2 08 00 D0 06 80 13 01 00 00 00 00 00 53 [12:57:18]Write i2c OK [12:57:18]MH_I2C_Read... [12:57:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:18]Read from MH i2c: E2 [12:57:18]MH_I2C_Read... [12:57:18]Read from MH i2c: E2 0E 00 [12:57:18]MH_I2C_Read... [12:57:18]Read from MH i2c: E2 0E 00 D0 06 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 FF [12:57:18]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [12:57:18]wFMCommunicate OK [12:57:18]SAM_PROTO_GetShiftState done [12:57:18]FM_GetShiftState done [12:57:18]opened in 1715818916 [12:57:18]opened+sec_in_day 1715905316 [12:57:18]quantity*price = 6600 [12:57:18]sum+1 = 6601 [12:57:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 66.00 НСП 1% : 0.58 НДС 12% : 7.01 Наличными: 66.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 74 16.05.2024 12:57 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67476 ФПД: 250845466546628 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T125718&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67476&fm=250845466546628&tin=02508201610067®Number=0000000000091845&sum=6600 0 [12:57:19]StoreToDocumentArchive [12:57:19]shift 357 fd 67476 [12:57:19]save to /storage/0357/doc_00067476 [12:57:19]save last doc name /storage/0357/doc_00067476 to /storage/kkm_last_doc_name [12:57:19]save OK [12:57:19]Clear old archive folders... [12:57:19]ProcessDocumentItem done err = 0, tmpTLVsize=293 [12:57:19]tlvbuf is 017A0FB0 [12:57:19]SAM_PROTO_ClearQueue [12:57:19]wFMCommunicate request_size=4 [12:57:19]MH_SAM_APDU [12:57:19]CAPDU: 80 09 00 00 [12:57:19]Write to MH i2c: E2 08 00 DD 06 80 09 00 00 00 00 00 00 55 [12:57:19]Write i2c OK [12:57:19]MH_I2C_Read... [12:57:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:57:19]Read from MH i2c: E2 [12:57:19]MH_I2C_Read... [12:57:19]Read from MH i2c: E2 03 00 [12:57:19]MH_I2C_Read... [12:57:19]Read from MH i2c: E2 03 00 DD 06 00 90 00 57 [12:57:19]RAPDU: 90 00 [12:57:19]wFMCommunicate OK [12:57:19]SAM_PROTO_ClearQueue done [12:57:19]KKMCreateOFDPacket [12:57:19]OFDProtocolAddRootSTLVToBuf [12:57:19]FM_MakeSignedData [12:57:19]FM_MakeSignedData [12:57:19]SAM_PROTO_SignData [12:57:19]wFMCommunicate request_size=4 [12:57:19]MH_SAM_APDU [12:57:19]CAPDU: 80 0D 01 02 [12:57:19]Write to MH i2c: E2 08 00 DE 06 80 0D 01 02 00 00 00 00 5D [12:57:19]Write i2c OK [12:57:19]MH_I2C_Read... [12:57:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:57:19]Read from MH i2c: E2 [12:57:19]MH_I2C_Read... [12:57:19]Read from MH i2c: E2 03 00 [12:57:19]MH_I2C_Read... [12:57:19]Read from MH i2c: E2 03 00 DE 06 00 90 00 58 [12:57:19]RAPDU: 90 00 [12:57:19]wFMCommunicate OK [12:57:19]wFMCommunicate request_size=255 [12:57:19]MH_SAM_APDU [12:57:19]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 19 00 00 00 00 13 04 06 00 C8 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 02 00 00 00 00 07 04 06 00 C8 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 AE 02 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [12:57:19]Write to MH i2c: E2 02 01 DF 06 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 19 00 00 00 00 13 04 06 00 C8 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 02 00 00 00 00 07 04 06 00 C8 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 AE 02 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 41 [12:57:19]Write i2c OK [12:57:19]MH_I2C_Read... [12:57:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:19]Read from MH i2c: E2 [12:57:19]MH_I2C_Read... [12:57:19]Read from MH i2c: E2 03 00 [12:57:19]MH_I2C_Read... [12:57:19]Read from MH i2c: E2 03 00 DF 06 00 90 00 59 [12:57:19]RAPDU: 90 00 [12:57:19]wFMCommunicate OK [12:57:19]wFMCommunicate request_size=52 [12:57:19]MH_SAM_APDU [12:57:19]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 94 07 01 00 35 04 06 00 E4 24 82 ED 51 C4 [12:57:19]Write to MH i2c: E2 37 00 E0 06 80 0D 02 02 2F 00 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 94 07 01 00 35 04 06 00 E4 24 82 ED 51 C4 00 00 50 [12:57:19]Write i2c OK [12:57:19]MH_I2C_Read... [12:57:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:19]Read from MH i2c: E2 [12:57:19]MH_I2C_Read... [12:57:19]Read from MH i2c: E2 03 00 [12:57:19]MH_I2C_Read... [12:57:19]Read from MH i2c: E2 03 00 E0 06 00 90 00 5A [12:57:19]RAPDU: 90 00 [12:57:19]wFMCommunicate OK [12:57:19]wFMCommunicate request_size=4 [12:57:19]MH_SAM_APDU [12:57:19]CAPDU: 80 0D 03 02 [12:57:19]Write to MH i2c: E2 08 00 E1 06 80 0D 03 02 00 00 00 00 62 [12:57:19]Write i2c OK [12:57:19]MH_I2C_Read... [12:57:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:57:19]Read from MH i2c: E2 [12:57:19]MH_I2C_Read... [12:57:19]Read from MH i2c: E2 0B 00 [12:57:19]MH_I2C_Read... [12:57:19]Read from MH i2c: E2 0B 00 E1 06 00 1B 1D 19 5D B4 9E 10 3B 90 00 AE [12:57:19]RAPDU: 1B 1D 19 5D B4 9E 10 3B 90 00 [12:57:19]wFMCommunicate OK [12:57:19]SAM_PROTO_SignData done [12:57:19]FM_MakeSignedData done [12:57:19]CreateOFDProtocolMessage [12:57:19]wFMCommunicate request_size=4 [12:57:19]MH_SAM_APDU [12:57:19]CAPDU: 80 11 00 00 [12:57:19]Write to MH i2c: E2 08 00 E2 06 80 11 00 00 00 00 00 00 62 [12:57:19]Write i2c OK [12:57:19]MH_I2C_Read... [12:57:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:19]Read from MH i2c: E2 [12:57:19]MH_I2C_Read... [12:57:19]Read from MH i2c: E2 17 00 [12:57:19]MH_I2C_Read... [12:57:19]Read from MH i2c: E2 17 00 E2 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B8 [12:57:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:57:19]wFMCommunicate OK [12:57:19]CreateOFDProtocolMessage done [12:57:19]OFDSenderStorePacket 67476 [12:57:19]StoreOFDPacket docnum=67476 [12:57:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 39 01 00 00 9A F2 31 01 BC 74 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 19 00 00 00 00 13 04 06 00 C8 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 02 00 00 00 00 07 04 06 00 C8 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 AE 02 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 94 07 01 00 35 04 06 00 E4 24 82 ED 51 C4 1B 1D 19 5D B4 9E 10 3B [12:57:19]CheckFolder [12:57:19]dirname=/storage/ofd_packets [12:57:19]CheckFolder done [12:57:19]ProducePacketName [12:57:19]name=ofd_packets/00067476 [12:57:19]NVStorageSaveData ofd_packets/00067476 [12:57:19]File name is /storage/ofd_packets/00067476 [12:57:19]Write 343 bytes [12:57:19]NVStorageSaveData done [12:57:19]OFDSenderStorePacket done [12:57:19]KKMCreateOFDPacket done [12:57:19]NVStorageSaveData kkm_last_timestamp [12:57:19]File name is /storage/kkm_last_timestamp [12:57:19]Write 4 bytes [12:57:19]NVStorageSaveData done [12:57:19]ExternCall_PrintAddStr [12:57:19]wPrintStart [12:57:19]Write to MH i2c: 01 00 00 E3 06 E9 [12:57:19]Write i2c OK [12:57:19]MH_I2C_Read... [12:57:19]Read from MH i2c: 01 [12:57:19]MH_I2C_Read... [12:57:19]Read from MH i2c: 01 07 00 [12:57:19]MH_I2C_Read... [12:57:19]Read from MH i2c: 01 07 00 E3 06 00 00 00 00 00 FF 0F FE [12:57:19]RasterBufferAndPrint [12:57:19]line Счет N : (3)12089 [12:57:19]line ИНН: 02508201610067 [12:57:19]line Контрольно-Кассовый Чек [12:57:19]line ПРОДАЖА [12:57:19]line Товар: 4870002326172 [12:57:19]line Вода ASU пит н.газ лимон ПЭТ 1л [12:57:19]line 1.000 * 66.00 [12:57:19]line = 66.00 [12:57:19]line НДС 12% НСП 1% [12:57:19]line > о реализуемом товаре [12:57:19]line ИТОГО: 66.00 [12:57:19]line НСП 1% : 0.58 [12:57:19]line НДС 12% : 7.01 [12:57:19]line Наличными: 66.00 [12:57:19]line Безнал.: 0.00 [12:57:19]line Место: АЗС № 91 "Партнер Нефть" [12:57:19]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:57:19]line СНО: Общий режим [12:57:19]line Чек 74 16.05.2024 12:57 [12:57:19]line Смена: 357 ФФД: 1.0 [12:57:19]line ЗНМ: 0300000119 [12:57:19]line РНМ: 0000000000091845 [12:57:19]line Версия ККМ: 001 [12:57:19]line ФМ: 0000000000871829 [12:57:19]line ФД: 67476 [12:57:19]line ФПД: 250845466546628 [12:57:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T125718&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67476&fm=250845466546628&tin=02508201610067®Number=0000000000091845&sum=6600 [12:57:20]OFD Sender: Processing packet 67476 [packets to send 35, broken 34] [12:57:20]ProducePacketName [12:57:20]name=ofd_packets/00067476 [12:57:20]OFD Sender: To server: pG, [12:57:20]CommunicateWithHost lk.salyk.kg:30040 [12:57:20]ConnectInit lk.salyk.kg [12:57:20]line 0 [12:57:20]written 0, free lines is 4095 [12:57:20]Connected sock=10 [12:57:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 39 01 00 00 9A F2 31 01 BC 74 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 19 00 00 00 00 13 04 06 00 C8 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 02 00 00 00 00 07 04 06 00 C8 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 AE 02 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 94 07 01 00 35 04 06 00 E4 24 82 ED 51 C4 1B 1D 19 5D B4 9E 10 3B [12:57:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 BB 80 47 00 FE 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 94 07 01 00 F4 03 04 00 89 AA 45 66 B6 04 01 00 00 4F EE 26 CD A6 B5 B2 E2 [12:57:20]CommunicateWithHost err = 0 [12:57:20]CheckOFDResponse [12:57:20]1017 (14) - 77093643461234 [12:57:20]1041 (16) - 0000000000871829 [12:57:20]1040 (4) - 67476 [12:57:20]1012 (4) - 16.05.2024 06:41 [12:57:20]1206 (1) - 0 [12:57:20]OFD Sender: Remove packet 67476 [12:57:20]ProducePacketName [12:57:20]name=ofd_packets/00067476 [12:57:20]NVStorageDeleteData [12:57:20]Write to MH i2c: 01 00 00 0B 07 12 [12:57:20]Write i2c OK [12:57:20]MH_I2C_Read... [12:57:20]Read from MH i2c: 01 [12:57:20]MH_I2C_Read... [12:57:20]Read from MH i2c: 01 07 00 [12:57:20]MH_I2C_Read... [12:57:20]Read from MH i2c: 01 07 00 0B 07 00 00 00 00 00 D6 0C FB [12:57:20]RasterBufferAndPrint [12:57:20]line [12:57:20]line [12:57:20]line [12:57:20]line [12:57:20]line [12:57:20]written 0, free lines is 3294 [12:57:20]MH_Cut [12:57:20]Write to MH i2c: D1 01 00 12 07 01 EB [12:57:20]Write i2c OK [12:57:20]MH_I2C_Read... [12:57:20]Read from MH i2c: D1 [12:57:20]MH_I2C_Read... [12:57:20]Read from MH i2c: D1 01 00 [12:57:20]MH_I2C_Read... [12:57:20]Read from MH i2c: D1 01 00 12 07 00 EA [12:57:20]Write to MH i2c: 01 00 00 13 07 1A [12:57:20]Write i2c OK [12:57:20]MH_I2C_Read... [12:57:20]OFD Sender: No OFD packet to send [12:57:21]*** Cut start [12:57:21]*** Purtial cut [12:57:21]*** Stage 1: CUTSNS_PIN = 1 [12:57:21]Read from MH i2c: 01 [12:57:21]MH_I2C_Read... [12:57:21]*** Stop cut motor [12:57:21]*** Cut end [12:57:21]Read from MH i2c: 01 07 00 [12:57:21]MH_I2C_Read... [12:57:21]Read from MH i2c: 01 07 00 13 07 00 00 00 00 00 FF 0F 2F [12:57:21]process_action close_receipt done [12:57:21]requested_data is exist [12:57:21]produce_requested_data [12:57:21]requested_item fm.sn is exist - process it [12:57:21]wFMCommunicate request_size=4 [12:57:21]MH_SAM_APDU [12:57:21]CAPDU: 80 11 00 00 [12:57:21]Write to MH i2c: E2 08 00 14 07 80 11 00 00 00 00 00 00 95 [12:57:21]Write i2c OK [12:57:21]MH_I2C_Read... [12:57:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:21]Read from MH i2c: E2 [12:57:21]MH_I2C_Read... [12:57:21]Read from MH i2c: E2 17 00 [12:57:21]MH_I2C_Read... [12:57:21]Read from MH i2c: E2 17 00 14 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 EB [12:57:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:57:21]wFMCommunicate OK [12:57:21]requested_item fd.num is exist - process it [12:57:21]SAM_PROTO_GetFieldsCounters [12:57:21]wFMCommunicate request_size=4 [12:57:21]MH_SAM_APDU [12:57:21]CAPDU: 80 13 00 00 [12:57:21]Write to MH i2c: E2 08 00 15 07 80 13 00 00 00 00 00 00 98 [12:57:21]Write i2c OK [12:57:21]MH_I2C_Read... [12:57:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:57:21]Read from MH i2c: E2 [12:57:21]MH_I2C_Read... [12:57:21]Read from MH i2c: E2 62 00 [12:57:21]MH_I2C_Read... [12:57:21]Read from MH i2c: E2 62 00 15 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 94 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [12:57: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 94 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:57:21]wFMCommunicate OK [12:57:21]SAM_PROTO_GetFieldsCounters done [12:57:21]requested_item shift.num is exist - process it [12:57:21]requested_item shift.opened is exist - process it [12:57:21]req_shift_opened [12:57:21]FM_GetShiftState [12:57:21]SAM_PROTO_GetShiftState [12:57:21]wFMCommunicate request_size=4 [12:57:21]MH_SAM_APDU [12:57:21]CAPDU: 80 13 01 00 [12:57:21]Write to MH i2c: E2 08 00 16 07 80 13 01 00 00 00 00 00 9A [12:57:21]Write i2c OK [12:57:21]MH_I2C_Read... [12:57:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:21]Read from MH i2c: E2 [12:57:21]MH_I2C_Read... [12:57:21]Read from MH i2c: E2 0E 00 [12:57:21]MH_I2C_Read... [12:57:21]Read from MH i2c: E2 0E 00 16 07 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 46 [12:57:21]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [12:57:21]wFMCommunicate OK [12:57:21]SAM_PROTO_GetShiftState done [12:57:21]FM_GetShiftState done [12:57:21]req_shift_opened done [12:57:21]requested_item shift.open_date is exist - process it [12:57:21]req_shift_open_date [12:57:21]req_shift_open_date done [12:57:21]produce_requested_data done [12:57:21]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67476,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [12:57:21]process_action_free close_receipt [12:57:21]json_value_free [12:57:21]json_value_free done [12:57:21]process_json_proto returns [12:57:21]Send response to host [12:57:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67476,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [12:57:21]free response buf [12:57:21]execute_script done [12:57:21]execute_script returns [12:57:21]free content buf [12:57:21]Sock 9.Close socket [12:57:21]Sock 9.Thread stoped [12:57:25]OFD Sender: No OFD packet to send [12:57:30]OFD Sender: No OFD packet to send [12:57:35]OFD Sender: No OFD packet to send [12:57:40]OFD Sender: No OFD packet to send [12:57:45]OFD Sender: No OFD packet to send [12:57:50]OFD Sender: No OFD packet to send [12:57:55]OFD Sender: No OFD packet to send [12:58:00]OFD Sender: No OFD packet to send [12:58:05]OFD Sender: No OFD packet to send [12:58:10]OFD Sender: No OFD packet to send [12:58:16]OFD Sender: No OFD packet to send [12:58:21]OFD Sender: No OFD packet to send [12:58:26]OFD Sender: No OFD packet to send [12:58:31]OFD Sender: No OFD packet to send [12:58:36]OFD Sender: No OFD packet to send [12:58:39]accept exits with 8 [12:58:39]New connection [12:58:39]New thread 3067182436 created [12:58:39]Thread 3067039076 joined [12:58:39]Waiting for new connection... [12:58:39] Sock 8.Parse request [12:58:39]Sock 8.Check first char [12:58:39]Sock 8.First char is OK [12:58:39]request: POST /json_proto HTTP/1.0 [12:58:39]Method: POST [12:58:39]URL: /json_proto [12:58:39]Method is POST - this is cgi request [12:58:39]url: /json_proto [12:58:39]query_string will be loaded in cgi processing [12:58:39]execute_cgi json_proto POST (null) [12:58:39]execute_cgi path=json_proto method=POST [12:58:39]POST find Content-Length [12:58:39]Host: 172.17.41.195:8080 [12:58:39]Content-Length: 797 [12:58:39]Content-Type: application/json [12:58:39] [12:58:39]POST finish read [12:58:39]Found Content-Length = 797 [12:58:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507518", "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" : 74.70, "quantity" : 9.380, "sum" : 700.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 700.69 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:39]execute_script... [12:58: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)507518", "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" : 74.70, "quantity" : 9.380, "sum" : 700.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 700.69 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:39]POST & json_proto [12:58:39]process_json_proto [12:58:39]json parsed OK: [12:58:39]protocol is kg_v1.0 [12:58:39]action value=close_receipt [12:58:39]process_action close_receipt [12:58:39]cmd_close_receipt [12:58:39]MH_GetDate [12:58:39]Write to MH i2c: F0 00 00 17 07 0D [12:58:39]Write i2c OK [12:58:39]MH_I2C_Read... [12:58:39]Read from MH i2c: F0 [12:58:39]MH_I2C_Read... [12:58:39]Read from MH i2c: F0 09 00 [12:58:39]MH_I2C_Read... [12:58:39]Read from MH i2c: F0 09 00 17 07 00 00 03 46 66 FC 21 6F 64 B5 [12:58:39]GetLastDocTimeStamp 1715864238 [12:58:39]current date 1715864320 [12:58:39]FM_GetShiftState [12:58:39]SAM_PROTO_GetShiftState [12:58:39]wFMCommunicate request_size=4 [12:58:39]MH_SAM_APDU [12:58:39]CAPDU: 80 13 01 00 [12:58:39]Write to MH i2c: E2 08 00 18 07 80 13 01 00 00 00 00 00 9C [12:58:39]Write i2c OK [12:58:39]MH_I2C_Read... [12:58:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:39]Read from MH i2c: E2 [12:58:39]MH_I2C_Read... [12:58:39]Read from MH i2c: E2 0E 00 [12:58:39]MH_I2C_Read... [12:58:39]Read from MH i2c: E2 0E 00 18 07 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 48 [12:58:39]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [12:58:39]wFMCommunicate OK [12:58:39]SAM_PROTO_GetShiftState done [12:58:39]FM_GetShiftState done [12:58:39]opened in 1715818916 [12:58:39]opened+sec_in_day 1715905316 [12:58:39]quantity*price = 70068 [12:58:39]sum+1 = 70070 [12:58:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.69 НСП 1% : 6.20 НДС 12% : 74.41 Наличными: 0.00 Безнал.: 700.69 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 75 16.05.2024 12:58 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67477 ФПД: 192422954480261 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T125840&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67477&fm=192422954480261&tin=02508201610067®Number=0000000000091845&sum=70069 [12:58:40]StoreToDocumentArchive [12:58:40]shift 357 fd 67477 [12:58:40]save to /storage/0357/doc_00067477 [12:58:40]save last doc name /storage/0357/doc_00067477 to /storage/kkm_last_doc_name [12:58:40]save OK [12:58:40]Clear old archive folders... [12:58:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:58:40]tlvbuf is 017B1BE0 [12:58:40]SAM_PROTO_ClearQueue [12:58:40]wFMCommunicate request_size=4 [12:58:40]MH_SAM_APDU [12:58:40]CAPDU: 80 09 00 00 [12:58:40]Write to MH i2c: E2 08 00 25 07 80 09 00 00 00 00 00 00 9E [12:58:40]Write i2c OK [12:58:40]MH_I2C_Read... [12:58:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:58:40]Read from MH i2c: E2 [12:58:40]MH_I2C_Read... [12:58:40]Read from MH i2c: E2 03 00 [12:58:40]MH_I2C_Read... [12:58:40]Read from MH i2c: E2 03 00 25 07 00 90 00 A0 [12:58:40]RAPDU: 90 00 [12:58:40]wFMCommunicate OK [12:58:40]SAM_PROTO_ClearQueue done [12:58:40]KKMCreateOFDPacket [12:58:40]OFDProtocolAddRootSTLVToBuf [12:58:40]FM_MakeSignedData [12:58:40]FM_MakeSignedData [12:58:40]SAM_PROTO_SignData [12:58:40]wFMCommunicate request_size=4 [12:58:40]MH_SAM_APDU [12:58:40]CAPDU: 80 0D 01 02 [12:58:40]Write to MH i2c: E2 08 00 26 07 80 0D 01 02 00 00 00 00 A6 [12:58:40]Write i2c OK [12:58:40]MH_I2C_Read... [12:58:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:58:41]Read from MH i2c: E2 [12:58:41]MH_I2C_Read... [12:58:41]Read from MH i2c: E2 03 00 [12:58:41]MH_I2C_Read... [12:58:41]Read from MH i2c: E2 03 00 26 07 00 90 00 A1 [12:58:41]RAPDU: 90 00 [12:58:41]wFMCommunicate OK [12:58:41]wFMCommunicate request_size=255 [12:58:41]MH_SAM_APDU [12:58: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 A4 24 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B5 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B5 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 11 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B5 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 00 03 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 95 07 01 00 35 04 06 00 AF 01 F5 D9 [12:58:41]Write to MH i2c: E2 02 01 27 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 A4 24 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B5 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B5 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 11 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B5 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 00 03 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 95 07 01 00 35 04 06 00 AF 01 F5 D9 00 00 87 [12:58:41]Write i2c OK [12:58:41]MH_I2C_Read... [12:58:41]OFD Sender: No OFD packet to send [12:58:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:41]Read from MH i2c: E2 [12:58:41]MH_I2C_Read... [12:58:41]Read from MH i2c: E2 03 00 [12:58:41]MH_I2C_Read... [12:58:41]Read from MH i2c: E2 03 00 27 07 00 90 00 A2 [12:58:41]RAPDU: 90 00 [12:58:41]wFMCommunicate OK [12:58:41]wFMCommunicate request_size=7 [12:58:41]MH_SAM_APDU [12:58:41]CAPDU: 80 0D 02 02 02 32 85 [12:58:41]Write to MH i2c: E2 0A 00 28 07 80 0D 02 02 02 00 32 85 00 00 64 [12:58:41]Write i2c OK [12:58:41]MH_I2C_Read... [12:58:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:41]Read from MH i2c: E2 [12:58:41]MH_I2C_Read... [12:58:41]Read from MH i2c: E2 03 00 [12:58:41]MH_I2C_Read... [12:58:41]Read from MH i2c: E2 03 00 28 07 00 90 00 A3 [12:58:41]RAPDU: 90 00 [12:58:41]wFMCommunicate OK [12:58:41]wFMCommunicate request_size=4 [12:58:41]MH_SAM_APDU [12:58:41]CAPDU: 80 0D 03 02 [12:58:41]Write to MH i2c: E2 08 00 29 07 80 0D 03 02 00 00 00 00 AB [12:58:41]Write i2c OK [12:58:41]MH_I2C_Read... [12:58:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:58:41]Read from MH i2c: E2 [12:58:41]MH_I2C_Read... [12:58:41]Read from MH i2c: E2 0B 00 [12:58:41]MH_I2C_Read... [12:58:41]Read from MH i2c: E2 0B 00 29 07 00 C0 25 CC E3 1E 38 25 B8 90 00 73 [12:58:41]RAPDU: C0 25 CC E3 1E 38 25 B8 90 00 [12:58:41]wFMCommunicate OK [12:58:41]SAM_PROTO_SignData done [12:58:41]FM_MakeSignedData done [12:58:41]CreateOFDProtocolMessage [12:58:41]wFMCommunicate request_size=4 [12:58:41]MH_SAM_APDU [12:58:41]CAPDU: 80 11 00 00 [12:58:41]Write to MH i2c: E2 08 00 2A 07 80 11 00 00 00 00 00 00 AB [12:58:41]Write i2c OK [12:58:41]MH_I2C_Read... [12:58:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:41]Read from MH i2c: E2 [12:58:41]MH_I2C_Read... [12:58:41]Read from MH i2c: E2 17 00 [12:58:41]MH_I2C_Read... [12:58:41]Read from MH i2c: E2 17 00 2A 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 01 [12:58:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:58:41]wFMCommunicate OK [12:58:41]CreateOFDProtocolMessage done [12:58:41]OFDSenderStorePacket 67477 [12:58:41]StoreOFDPacket docnum=67477 [12:58:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 BD 54 04 01 F4 4C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 24 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B5 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B5 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 11 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B5 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 00 03 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 95 07 01 00 35 04 06 00 AF 01 F5 D9 32 85 C0 25 CC E3 1E 38 25 B8 [12:58:41]CheckFolder [12:58:41]dirname=/storage/ofd_packets [12:58:41]CheckFolder done [12:58:41]ProducePacketName [12:58:41]name=ofd_packets/00067477 [12:58:41]NVStorageSaveData ofd_packets/00067477 [12:58:41]File name is /storage/ofd_packets/00067477 [12:58:41]Write 298 bytes [12:58:41]NVStorageSaveData done [12:58:41]OFDSenderStorePacket done [12:58:41]KKMCreateOFDPacket done [12:58:41]NVStorageSaveData kkm_last_timestamp [12:58:41]File name is /storage/kkm_last_timestamp [12:58:41]Write 4 bytes [12:58:41]NVStorageSaveData done [12:58:41]ExternCall_PrintAddStr [12:58:41]wPrintStart [12:58:41]Write to MH i2c: 01 00 00 2B 07 32 [12:58:41]Write i2c OK [12:58:41]MH_I2C_Read... [12:58:41]Read from MH i2c: 01 [12:58:41]MH_I2C_Read... [12:58:41]Read from MH i2c: 01 07 00 [12:58:41]MH_I2C_Read... [12:58:41]Read from MH i2c: 01 07 00 2B 07 00 00 00 00 00 FF 0F 47 [12:58:41]RasterBufferAndPrint [12:58:41]line Счет N : (1)507518 [12:58:41]line ИНН: 02508201610067 [12:58:41]line Контрольно-Кассовый Чек [12:58:41]line ПРОДАЖА [12:58:41]line ТРК (МРК, ГНК) : 11 [12:58:41]line Товар: 2710194210 [12:58:41]line ДТ-К-5 [12:58:41]line 9.380 * 74.70 [12:58:41]line = 700.69 [12:58:41]line НДС 12% НСП 1% [12:58:41]line > о реализуемом товаре [12:58:41]line ИТОГО: 700.69 [12:58:41]line НСП 1% : 6.20 [12:58:41]line НДС 12% : 74.41 [12:58:41]line Наличными: 0.00 [12:58:41]line Безнал.: 700.69 [12:58:41]line Место: АЗС № 91 "Партнер Нефть" [12:58:41]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:58:41]line СНО: Общий режим [12:58:41]line Чек 75 16.05.2024 12:58 [12:58:41]line Смена: 357 ФФД: 1.0 [12:58:41]line ЗНМ: 0300000119 [12:58:41]line РНМ: 0000000000091845 [12:58:41]line Версия ККМ: 001 [12:58:41]line Платежная система: O! деньги [12:58:41]line ФМ: 0000000000871829 [12:58:41]line ФД: 67477 [12:58:41]line ФПД: 192422954480261 [12:58:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T125840&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67477&fm=192422954480261&tin=02508201610067®Number=0000000000091845&sum=70069 [12:58:41]OFD Sender: Processing packet 67477 [packets to send 35, broken 34] [12:58:41]ProducePacketName [12:58:41]name=ofd_packets/00067477 [12:58:41]OFD Sender: To server: pG, [12:58:41]CommunicateWithHost lk.salyk.kg:30040 [12:58:41]ConnectInit lk.salyk.kg [12:58:41]written 0, free lines is 4095 [12:58:41]Connected sock=10 [12:58: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 38 32 39 0C 01 00 00 BD 54 04 01 F4 4C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 24 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B5 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B5 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 11 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B5 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 00 03 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 95 07 01 00 35 04 06 00 AF 01 F5 D9 32 85 C0 25 CC E3 1E 38 25 B8 [12: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 38 32 39 4F 00 00 00 D3 9F 47 00 B5 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 38 32 39 10 04 04 00 95 07 01 00 F4 03 04 00 DB AA 45 66 B6 04 01 00 00 68 D9 E1 3B 5B 1E B8 AE [12:58:42]CommunicateWithHost err = 0 [12:58:42]CheckOFDResponse [12:58:42]1017 (14) - 77093643461234 [12:58:42]1041 (16) - 0000000000871829 [12:58:42]1040 (4) - 67477 [12:58:42]1012 (4) - 16.05.2024 06:42 [12:58:42]1206 (1) - 0 [12:58:42]OFD Sender: Remove packet 67477 [12:58:42]ProducePacketName [12:58:42]name=ofd_packets/00067477 [12:58:42]NVStorageDeleteData [12:58:42]Write to MH i2c: 01 00 00 54 07 5B [12:58:42]Write i2c OK [12:58:42]MH_I2C_Read... [12:58:42]Read from MH i2c: 01 [12:58:42]MH_I2C_Read... [12:58:42]Read from MH i2c: 01 07 00 [12:58:42]MH_I2C_Read... [12:58:42]Read from MH i2c: 01 07 00 54 07 00 00 00 00 00 D7 0C 45 [12:58:42]RasterBufferAndPrint [12:58:42]line [12:58:42]line [12:58:42]line [12:58:42]line [12:58:42]line [12:58:42]written 0, free lines is 3295 [12:58:42]MH_Cut [12:58:42]Write to MH i2c: D1 01 00 5B 07 01 34 [12:58:42]Write i2c OK [12:58:42]MH_I2C_Read... [12:58:42]Read from MH i2c: D1 [12:58:42]MH_I2C_Read... [12:58:42]Read from MH i2c: D1 01 00 [12:58:42]MH_I2C_Read... [12:58:42]Read from MH i2c: D1 01 00 5B 07 00 33 [12:58:42]Write to MH i2c: 01 00 00 5C 07 63 [12:58:42]Write i2c OK [12:58:42]MH_I2C_Read... [12:58:42]OFD Sender: No OFD packet to send [12:58:42]*** Cut start [12:58:42]*** Purtial cut [12:58:42]*** CUTSNS_PIN = 0 [12:58:43]*** Stage 1: CUTSNS_PIN = 1 [12:58:44]Read from MH i2c: 01 [12:58:45]MH_I2C_Read... [12:58:45]*** Stop cut motor [12:58:45]*** Cut end [12:58:45]Read from MH i2c: 01 07 00 [12:58:45]MH_I2C_Read... [12:58:45]Read from MH i2c: 01 07 00 5C 07 00 00 00 00 00 FF 0F 78 [12:58:45]process_action close_receipt done [12:58:45]requested_data is exist [12:58:45]produce_requested_data [12:58:45]requested_item fm.sn is exist - process it [12:58:45]wFMCommunicate request_size=4 [12:58:45]MH_SAM_APDU [12:58:45]CAPDU: 80 11 00 00 [12:58:45]Write to MH i2c: E2 08 00 5D 07 80 11 00 00 00 00 00 00 DE [12:58:45]Write i2c OK [12:58:45]MH_I2C_Read... [12:58:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:45]Read from MH i2c: E2 [12:58:45]MH_I2C_Read... [12:58:45]Read from MH i2c: E2 17 00 [12:58:45]MH_I2C_Read... [12:58:45]Read from MH i2c: E2 17 00 5D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 34 [12:58:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:58:45]wFMCommunicate OK [12:58:45]requested_item fd.num is exist - process it [12:58:45]SAM_PROTO_GetFieldsCounters [12:58:45]wFMCommunicate request_size=4 [12:58:45]MH_SAM_APDU [12:58:45]CAPDU: 80 13 00 00 [12:58:45]Write to MH i2c: E2 08 00 5E 07 80 13 00 00 00 00 00 00 E1 [12:58:45]Write i2c OK [12:58:45]MH_I2C_Read... [12:58:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:58:45]Read from MH i2c: E2 [12:58:45]MH_I2C_Read... [12:58:45]Read from MH i2c: E2 62 00 [12:58:45]MH_I2C_Read... [12:58:45]Read from MH i2c: E2 62 00 5E 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 95 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [12:58: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 95 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:58:45]wFMCommunicate OK [12:58:45]SAM_PROTO_GetFieldsCounters done [12:58:45]requested_item shift.num is exist - process it [12:58:45]requested_item shift.opened is exist - process it [12:58:45]req_shift_opened [12:58:45]FM_GetShiftState [12:58:45]SAM_PROTO_GetShiftState [12:58:45]wFMCommunicate request_size=4 [12:58:45]MH_SAM_APDU [12:58:45]CAPDU: 80 13 01 00 [12:58:45]Write to MH i2c: E2 08 00 5F 07 80 13 01 00 00 00 00 00 E3 [12:58:45]Write i2c OK [12:58:45]MH_I2C_Read... [12:58:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:45]Read from MH i2c: E2 [12:58:45]MH_I2C_Read... [12:58:45]Read from MH i2c: E2 0E 00 [12:58:45]MH_I2C_Read... [12:58:45]Read from MH i2c: E2 0E 00 5F 07 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 8F [12:58:45]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [12:58:45]wFMCommunicate OK [12:58:45]SAM_PROTO_GetShiftState done [12:58:45]FM_GetShiftState done [12:58:45]req_shift_opened done [12:58:45]requested_item shift.open_date is exist - process it [12:58:45]req_shift_open_date [12:58:45]req_shift_open_date done [12:58:45]produce_requested_data done [12:58:45]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67477,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [12:58:45]process_action_free close_receipt [12:58:45]json_value_free [12:58:45]json_value_free done [12:58:45]process_json_proto returns [12:58:45]Send response to host [12:58:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67477,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [12:58:45]free response buf [12:58:45]execute_script done [12:58:45]execute_script returns [12:58:45]free content buf [12:58:45]Sock 8.Close socket [12:58:45]Sock 8.Thread stoped [12:58:47]OFD Sender: No OFD packet to send [12:58:52]OFD Sender: No OFD packet to send [12:58:57]OFD Sender: No OFD packet to send [12:59:02]OFD Sender: No OFD packet to send [12:59:07]OFD Sender: No OFD packet to send [12:59:12]OFD Sender: No OFD packet to send [12:59:17]OFD Sender: No OFD packet to send [12:59:22]OFD Sender: No OFD packet to send [12:59:27]OFD Sender: No OFD packet to send [12:59:32]OFD Sender: No OFD packet to send [12:59:37]OFD Sender: No OFD packet to send [12:59:42]OFD Sender: No OFD packet to send [12:59:47]OFD Sender: No OFD packet to send [12:59:48]accept exits with 9 [12:59:48]New connection [12:59:48]New thread 3067039076 created [12:59:48]Thread 3067182436 joined [12:59:48]Waiting for new connection... [12:59:48] Sock 9.Parse request [12:59:48]Sock 9.Check first char [12:59:48]Sock 9.First char is OK [12:59:48]request: POST /json_proto HTTP/1.0 [12:59:48]Method: POST [12:59:48]URL: /json_proto [12:59:48]Method is POST - this is cgi request [12:59:48]url: /json_proto [12:59:48]query_string will be loaded in cgi processing [12:59:48]execute_cgi json_proto POST (null) [12:59:48]execute_cgi path=json_proto method=POST [12:59:48]POST find Content-Length [12:59:48]Host: 172.17.41.195:8080 [12:59:48]Content-Length: 679 [12:59:48]Content-Type: application/json [12:59:48] [12:59:48]POST finish read [12:59:48]Found Content-Length = 679 [12:59:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507519", "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" : 74.70, "quantity" : 26.780, "sum" : 2000.47, "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:59:48]execute_script... [12:59: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)507519", "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" : 74.70, "quantity" : 26.780, "sum" : 2000.47, "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:59:48]POST & json_proto [12:59:48]process_json_proto [12:59:48]json parsed OK: [12:59:48]protocol is kg_v1.0 [12:59:48]action value=close_receipt [12:59:48]process_action close_receipt [12:59:48]cmd_close_receipt [12:59:48]MH_GetDate [12:59:48]Write to MH i2c: F0 00 00 60 07 56 [12:59:48]Write i2c OK [12:59:48]MH_I2C_Read... [12:59:48]Read from MH i2c: F0 [12:59:48]MH_I2C_Read... [12:59:48]Read from MH i2c: F0 09 00 [12:59:48]MH_I2C_Read... [12:59:48]Read from MH i2c: F0 09 00 60 07 00 45 03 46 66 FC 21 6F 64 43 [12:59:48]GetLastDocTimeStamp 1715864320 [12:59:48]current date 1715864389 [12:59:48]FM_GetShiftState [12:59:48]SAM_PROTO_GetShiftState [12:59:48]wFMCommunicate request_size=4 [12:59:48]MH_SAM_APDU [12:59:48]CAPDU: 80 13 01 00 [12:59:48]Write to MH i2c: E2 08 00 61 07 80 13 01 00 00 00 00 00 E5 [12:59:48]Write i2c OK [12:59:48]MH_I2C_Read... [12:59:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:48]Read from MH i2c: E2 [12:59:48]MH_I2C_Read... [12:59:48]Read from MH i2c: E2 0E 00 [12:59:48]MH_I2C_Read... [12:59:48]Read from MH i2c: E2 0E 00 61 07 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 91 [12:59:48]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [12:59:48]wFMCommunicate OK [12:59:48]SAM_PROTO_GetShiftState done [12:59:48]FM_GetShiftState done [12:59:48]opened in 1715818916 [12:59:48]opened+sec_in_day 1715905316 [12:59:48]quantity*price = 200046 [12:59:48]sum+1 = 200048 [12:59:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 76 16.05.2024 12:59 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67478 ФПД: 104265950779676 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T125949&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67478&fm=104265950779676&tin=02508201610067®Number=0000000000091845&sum=200000 [12:59:49]StoreToDocumentArchive [12:59:49]shift 357 fd 67478 [12:59:49]save to /storage/0357/doc_00067478 [12:59:49]save last doc name /storage/0357/doc_00067478 to /storage/kkm_last_doc_name [12:59:49]save OK [12:59:49]Clear old archive folders... [12:59:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:59:49]tlvbuf is 0177B2B0 [12:59:49]SAM_PROTO_ClearQueue [12:59:49]wFMCommunicate request_size=4 [12:59:49]MH_SAM_APDU [12:59:49]CAPDU: 80 09 00 00 [12:59:49]Write to MH i2c: E2 08 00 6E 07 80 09 00 00 00 00 00 00 E7 [12:59:49]Write i2c OK [12:59:49]MH_I2C_Read... [12:59:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:59:49]Read from MH i2c: E2 [12:59:49]MH_I2C_Read... [12:59:49]Read from MH i2c: E2 03 00 [12:59:49]MH_I2C_Read... [12:59:49]Read from MH i2c: E2 03 00 6E 07 00 90 00 E9 [12:59:49]RAPDU: 90 00 [12:59:49]wFMCommunicate OK [12:59:49]SAM_PROTO_ClearQueue done [12:59:49]KKMCreateOFDPacket [12:59:49]OFDProtocolAddRootSTLVToBuf [12:59:49]FM_MakeSignedData [12:59:49]FM_MakeSignedData [12:59:49]SAM_PROTO_SignData [12:59:49]wFMCommunicate request_size=4 [12:59:49]MH_SAM_APDU [12:59:49]CAPDU: 80 0D 01 02 [12:59:49]Write to MH i2c: E2 08 00 6F 07 80 0D 01 02 00 00 00 00 EF [12:59:49]Write i2c OK [12:59:49]MH_I2C_Read... [12:59:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:59:49]Read from MH i2c: E2 [12:59:49]MH_I2C_Read... [12:59:49]Read from MH i2c: E2 03 00 [12:59:49]MH_I2C_Read... [12:59:49]Read from MH i2c: E2 03 00 6F 07 00 90 00 EA [12:59:49]RAPDU: 90 00 [12:59:49]wFMCommunicate OK [12:59:49]wFMCommunicate request_size=255 [12:59:49]MH_SAM_APDU [12:59: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 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 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 FC 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 4C 00 00 00 F4 03 04 00 45 03 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 96 07 01 00 35 04 06 00 5E D4 4E F5 [12:59:49]Write to MH i2c: E2 02 01 70 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 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 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 FC 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 4C 00 00 00 F4 03 04 00 45 03 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 96 07 01 00 35 04 06 00 5E D4 4E F5 00 00 B6 [12:59:49]Write i2c OK [12:59:49]MH_I2C_Read... [12:59:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:49]Read from MH i2c: E2 [12:59:49]MH_I2C_Read... [12:59:49]Read from MH i2c: E2 03 00 [12:59:49]MH_I2C_Read... [12:59:49]Read from MH i2c: E2 03 00 70 07 00 90 00 EB [12:59:49]RAPDU: 90 00 [12:59:49]wFMCommunicate OK [12:59:49]wFMCommunicate request_size=7 [12:59:49]MH_SAM_APDU [12:59:49]CAPDU: 80 0D 02 02 02 59 1C [12:59:49]Write to MH i2c: E2 0A 00 71 07 80 0D 02 02 02 00 59 1C 00 00 6B [12:59:49]Write i2c OK [12:59:49]MH_I2C_Read... [12:59:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:49]Read from MH i2c: E2 [12:59:49]MH_I2C_Read... [12:59:49]Read from MH i2c: E2 03 00 [12:59:49]MH_I2C_Read... [12:59:49]Read from MH i2c: E2 03 00 71 07 00 90 00 EC [12:59:49]RAPDU: 90 00 [12:59:49]wFMCommunicate OK [12:59:49]wFMCommunicate request_size=4 [12:59:49]MH_SAM_APDU [12:59:49]CAPDU: 80 0D 03 02 [12:59:49]Write to MH i2c: E2 08 00 72 07 80 0D 03 02 00 00 00 00 F4 [12:59:49]Write i2c OK [12:59:49]MH_I2C_Read... [12:59:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:59:49]Read from MH i2c: E2 [12:59:49]MH_I2C_Read... [12:59:49]Read from MH i2c: E2 0B 00 [12:59:49]MH_I2C_Read... [12:59:49]Read from MH i2c: E2 0B 00 72 07 00 E9 E8 F4 A8 87 5B 45 31 90 00 BA [12:59:49]RAPDU: E9 E8 F4 A8 87 5B 45 31 90 00 [12:59:49]wFMCommunicate OK [12:59:49]SAM_PROTO_SignData done [12:59:49]FM_MakeSignedData done [12:59:49]CreateOFDProtocolMessage [12:59:49]wFMCommunicate request_size=4 [12:59:49]MH_SAM_APDU [12:59:49]CAPDU: 80 11 00 00 [12:59:49]Write to MH i2c: E2 08 00 73 07 80 11 00 00 00 00 00 00 F4 [12:59:49]Write i2c OK [12:59:49]MH_I2C_Read... [12:59:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:49]Read from MH i2c: E2 [12:59:49]MH_I2C_Read... [12:59:49]Read from MH i2c: E2 17 00 [12:59:49]MH_I2C_Read... [12:59:49]Read from MH i2c: E2 17 00 73 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 4A [12:59:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:59:49]wFMCommunicate OK [12:59:49]CreateOFDProtocolMessage done [12:59:49]OFDSenderStorePacket 67478 [12:59:49]StoreOFDPacket docnum=67478 [12:59:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 25 48 04 01 66 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 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 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 FC 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 4C 00 00 00 F4 03 04 00 45 03 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 96 07 01 00 35 04 06 00 5E D4 4E F5 59 1C E9 E8 F4 A8 87 5B 45 31 [12:59:49]CheckFolder [12:59:49]dirname=/storage/ofd_packets [12:59:49]CheckFolder done [12:59:49]ProducePacketName [12:59:49]name=ofd_packets/00067478 [12:59:49]NVStorageSaveData ofd_packets/00067478 [12:59:49]File name is /storage/ofd_packets/00067478 [12:59:49]Write 298 bytes [12:59:49]NVStorageSaveData done [12:59:49]OFDSenderStorePacket done [12:59:49]KKMCreateOFDPacket done [12:59:49]NVStorageSaveData kkm_last_timestamp [12:59:49]File name is /storage/kkm_last_timestamp [12:59:49]Write 4 bytes [12:59:49]NVStorageSaveData done [12:59:49]ExternCall_PrintAddStr [12:59:49]wPrintStart [12:59:49]Write to MH i2c: 01 00 00 74 07 7B [12:59:49]Write i2c OK [12:59:49]MH_I2C_Read... [12:59:49]Read from MH i2c: 01 [12:59:49]MH_I2C_Read... [12:59:49]Read from MH i2c: 01 07 00 [12:59:49]MH_I2C_Read... [12:59:49]Read from MH i2c: 01 07 00 74 07 00 00 00 00 00 FF 0F 90 [12:59:49]RasterBufferAndPrint [12:59:49]line Счет N : (1)507519 [12:59:49]line ИНН: 02508201610067 [12:59:49]line Контрольно-Кассовый Чек [12:59:49]line ПРОДАЖА [12:59:49]line ТРК (МРК, ГНК) : 31 [12:59:49]line Товар: 2710194210 [12:59:49]line ДТ-К-5 [12:59:49]line 26.780 * 74.70 [12:59:49]line = 2000.47 [12:59:49]line НДС 12% НСП 1% [12:59:49]line > о реализуемом товаре [12:59:49]line ОКРУГЛЕНИЕ: -0.47 [12:59:49]line ИТОГО: 2000.00 [12:59:49]line Внесено: 2000.00 [12:59:49]line СДАЧА: 0.00 [12:59:49]line НСП 1% : 17.70 [12:59:49]line НДС 12% : 212.44 [12:59:49]line Наличными: 2000.00 [12:59:49]line Безнал.: 0.00 [12:59:49]line Место: АЗС № 91 "Партнер Нефть" [12:59:49]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:59:49]line СНО: Общий режим [12:59:49]line Чек 76 16.05.2024 12:59 [12:59:49]line Смена: 357 ФФД: 1.0 [12:59:49]line ЗНМ: 0300000119 [12:59:49]line РНМ: 0000000000091845 [12:59:49]line Версия ККМ: 001 [12:59:49]line ФМ: 0000000000871829 [12:59:49]line ФД: 67478 [12:59:49]line ФПД: 104265950779676 [12:59:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T125949&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67478&fm=104265950779676&tin=02508201610067®Number=0000000000091845&sum=200000 [12:59:49]written 0, free lines is 4095 [12:59:49]OFD Sender: Processing packet 67478 [packets to send 35, broken 34] [12:59:49]ProducePacketName [12:59:49]name=ofd_packets/00067478 [12:59:49]OFD Sender: To server: pG, [12:59:49]CommunicateWithHost lk.salyk.kg:30040 [12:59:49]ConnectInit lk.salyk.kg [12:59:50]Connected sock=10 [12:59: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 38 32 39 0C 01 00 00 25 48 04 01 66 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 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 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 FC 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 4C 00 00 00 F4 03 04 00 45 03 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 96 07 01 00 35 04 06 00 5E D4 4E F5 59 1C E9 E8 F4 A8 87 5B 45 31 [12:59:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 B5 66 47 00 9B 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 38 32 39 10 04 04 00 96 07 01 00 F4 03 04 00 1F AB 45 66 B6 04 01 00 00 90 EA 3D 53 A5 2B 4A 4D [12:59:50]CommunicateWithHost err = 0 [12:59:50]CheckOFDResponse [12:59:50]1017 (14) - 77093643461234 [12:59:50]1041 (16) - 0000000000871829 [12:59:50]1040 (4) - 67478 [12:59:50]1012 (4) - 16.05.2024 06:43 [12:59:50]1206 (1) - 0 [12:59:50]OFD Sender: Remove packet 67478 [12:59:50]ProducePacketName [12:59:50]name=ofd_packets/00067478 [12:59:50]NVStorageDeleteData [12:59:50]Write to MH i2c: 01 00 00 9E 07 A5 [12:59:50]Write i2c OK [12:59:50]MH_I2C_Read... [12:59:50]Read from MH i2c: 01 [12:59:50]MH_I2C_Read... [12:59:50]Read from MH i2c: 01 07 00 [12:59:50]MH_I2C_Read... [12:59:50]Read from MH i2c: 01 07 00 9E 07 00 00 00 00 00 DE 0C 96 [12:59:50]RasterBufferAndPrint [12:59:50]line [12:59:50]line [12:59:50]line [12:59:50]line [12:59:50]line [12:59:50]written 0, free lines is 3300 [12:59:50]MH_Cut [12:59:50]Write to MH i2c: D1 01 00 A5 07 01 7E [12:59:50]Write i2c OK [12:59:50]MH_I2C_Read... [12:59:50]Read from MH i2c: D1 [12:59:50]MH_I2C_Read... [12:59:50]Read from MH i2c: D1 01 00 [12:59:50]MH_I2C_Read... [12:59:50]Read from MH i2c: D1 01 00 A5 07 00 7D [12:59:50]Write to MH i2c: 01 00 00 A6 07 AD [12:59:50]Write i2c OK [12:59:50]MH_I2C_Read... [12:59:50]OFD Sender: No OFD packet to send [12:59:51]*** Cut start [12:59:51]*** Purtial cut [12:59:51]*** Stage 1: CUTSNS_PIN = 1 [12:59:51]Read from MH i2c: 01 [12:59:51]MH_I2C_Read... [12:59:51]*** Stop cut motor [12:59:51]*** Cut end [12:59:51]Read from MH i2c: 01 07 00 [12:59:51]MH_I2C_Read... [12:59:51]Read from MH i2c: 01 07 00 A6 07 00 00 00 00 00 FF 0F C2 [12:59:51]process_action close_receipt done [12:59:51]requested_data is exist [12:59:51]produce_requested_data [12:59:51]requested_item fm.sn is exist - process it [12:59:51]wFMCommunicate request_size=4 [12:59:51]MH_SAM_APDU [12:59:51]CAPDU: 80 11 00 00 [12:59:51]Write to MH i2c: E2 08 00 A7 07 80 11 00 00 00 00 00 00 28 [12:59:51]Write i2c OK [12:59:51]MH_I2C_Read... [12:59:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:51]Read from MH i2c: E2 [12:59:51]MH_I2C_Read... [12:59:51]Read from MH i2c: E2 17 00 [12:59:51]MH_I2C_Read... [12:59:51]Read from MH i2c: E2 17 00 A7 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7E [12:59:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:59:51]wFMCommunicate OK [12:59:51]requested_item fd.num is exist - process it [12:59:51]SAM_PROTO_GetFieldsCounters [12:59:51]wFMCommunicate request_size=4 [12:59:51]MH_SAM_APDU [12:59:51]CAPDU: 80 13 00 00 [12:59:51]Write to MH i2c: E2 08 00 A8 07 80 13 00 00 00 00 00 00 2B [12:59:51]Write i2c OK [12:59:51]MH_I2C_Read... [12:59:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:59:51]Read from MH i2c: E2 [12:59:51]MH_I2C_Read... [12:59:51]Read from MH i2c: E2 62 00 [12:59:51]MH_I2C_Read... [12:59:51]Read from MH i2c: E2 62 00 A8 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 96 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [12: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 96 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:59:51]wFMCommunicate OK [12:59:51]SAM_PROTO_GetFieldsCounters done [12:59:51]requested_item shift.num is exist - process it [12:59:51]requested_item shift.opened is exist - process it [12:59:51]req_shift_opened [12:59:51]FM_GetShiftState [12:59:51]SAM_PROTO_GetShiftState [12:59:51]wFMCommunicate request_size=4 [12:59:51]MH_SAM_APDU [12:59:51]CAPDU: 80 13 01 00 [12:59:51]Write to MH i2c: E2 08 00 A9 07 80 13 01 00 00 00 00 00 2D [12:59:51]Write i2c OK [12:59:51]MH_I2C_Read... [12:59:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:51]Read from MH i2c: E2 [12:59:51]MH_I2C_Read... [12:59:51]Read from MH i2c: E2 0E 00 [12:59:51]MH_I2C_Read... [12:59:51]Read from MH i2c: E2 0E 00 A9 07 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 D9 [12:59:51]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [12:59:51]wFMCommunicate OK [12:59:51]SAM_PROTO_GetShiftState done [12:59:51]FM_GetShiftState done [12:59:51]req_shift_opened done [12:59:51]requested_item shift.open_date is exist - process it [12:59:51]req_shift_open_date [12:59:51]req_shift_open_date done [12:59:51]produce_requested_data done [12:59:51]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67478,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [12:59:51]process_action_free close_receipt [12:59:51]json_value_free [12:59:51]json_value_free done [12:59:51]process_json_proto returns [12:59:51]Send response to host [12:59:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67478,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [12:59:51]free response buf [12:59:51]execute_script done [12:59:51]execute_script returns [12:59:51]free content buf [12:59:51]Sock 9.Close socket [12:59:51]Sock 9.Thread stoped [12:59:51]accept exits with 8 [12:59:51]New connection [12:59:51]New thread 3067182436 created [12:59:51]Thread 3067039076 joined [12:59:51]Waiting for new connection... [12:59:51] Sock 8.Parse request [12:59:51]Sock 8.Check first char [12:59:51]Sock 8.First char is OK [12:59:51]request: POST /json_proto HTTP/1.0 [12:59:51]Method: POST [12:59:51]URL: /json_proto [12:59:51]Method is POST - this is cgi request [12:59:51]url: /json_proto [12:59:51]query_string will be loaded in cgi processing [12:59:51]execute_cgi json_proto POST (null) [12:59:51]execute_cgi path=json_proto method=POST [12:59:51]POST find Content-Length [12:59:51]Host: 172.17.41.195:8080 [12:59:51]Content-Length: 682 [12:59:51]Content-Type: application/json [12:59:51] [12:59:51]POST finish read [12:59:51]Found Content-Length = 682 [12:59:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507517", "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.80, "quantity" : 14.980, "sum" : 1000.66, "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:59:51]execute_script... [12:59: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)507517", "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.80, "quantity" : 14.980, "sum" : 1000.66, "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:59:51]POST & json_proto [12:59:51]process_json_proto [12:59:51]json parsed OK: [12:59:51]protocol is kg_v1.0 [12:59:51]action value=close_receipt [12:59:51]process_action close_receipt [12:59:51]cmd_close_receipt [12:59:51]MH_GetDate [12:59:51]Write to MH i2c: F0 00 00 AA 07 A0 [12:59:51]Write i2c OK [12:59:51]MH_I2C_Read... [12:59:51]Read from MH i2c: F0 [12:59:51]MH_I2C_Read... [12:59:51]Read from MH i2c: F0 09 00 [12:59:51]MH_I2C_Read... [12:59:51]Read from MH i2c: F0 09 00 AA 07 00 48 03 46 66 FC 21 6F 64 90 [12:59:51]GetLastDocTimeStamp 1715864389 [12:59:51]current date 1715864392 [12:59:51]FM_GetShiftState [12:59:51]SAM_PROTO_GetShiftState [12:59:51]wFMCommunicate request_size=4 [12:59:51]MH_SAM_APDU [12:59:51]CAPDU: 80 13 01 00 [12:59:51]Write to MH i2c: E2 08 00 AB 07 80 13 01 00 00 00 00 00 2F [12:59:51]Write i2c OK [12:59:51]MH_I2C_Read... [12:59:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:52]Read from MH i2c: E2 [12:59:52]MH_I2C_Read... [12:59:52]Read from MH i2c: E2 0E 00 [12:59:52]MH_I2C_Read... [12:59:52]Read from MH i2c: E2 0E 00 AB 07 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 DB [12:59:52]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [12:59:52]wFMCommunicate OK [12:59:52]SAM_PROTO_GetShiftState done [12:59:52]FM_GetShiftState done [12:59:52]opened in 1715818916 [12:59:52]opened+sec_in_day 1715905316 [12:59:52]quantity*price = 100066 [12:59:52]sum+1 = 100067 [12:59:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 77 16.05.2024 12:59 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67479 ФПД: 201477231993350 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T125952&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67479&fm=201477231993350&tin=02508201610067®Number=0000000000091845&sum=100000 [12:59:53]StoreToDocumentArchive [12:59:53]shift 357 fd 67479 [12:59:53]save to /storage/0357/doc_00067479 [12:59:53]save last doc name /storage/0357/doc_00067479 to /storage/kkm_last_doc_name [12:59:53]save OK [12:59:53]Clear old archive folders... [12:59:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:59:53]tlvbuf is 017E2C20 [12:59:53]SAM_PROTO_ClearQueue [12:59:53]wFMCommunicate request_size=4 [12:59:53]MH_SAM_APDU [12:59:53]CAPDU: 80 09 00 00 [12:59:53]Write to MH i2c: E2 08 00 B8 07 80 09 00 00 00 00 00 00 31 [12:59:53]Write i2c OK [12:59:53]MH_I2C_Read... [12:59:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:59:53]Read from MH i2c: E2 [12:59:53]MH_I2C_Read... [12:59:53]Read from MH i2c: E2 03 00 [12:59:53]MH_I2C_Read... [12:59:53]Read from MH i2c: E2 03 00 B8 07 00 90 00 33 [12:59:53]RAPDU: 90 00 [12:59:53]wFMCommunicate OK [12:59:53]SAM_PROTO_ClearQueue done [12:59:53]KKMCreateOFDPacket [12:59:53]OFDProtocolAddRootSTLVToBuf [12:59:53]FM_MakeSignedData [12:59:53]FM_MakeSignedData [12:59:53]SAM_PROTO_SignData [12:59:53]wFMCommunicate request_size=4 [12:59:53]MH_SAM_APDU [12:59:53]CAPDU: 80 0D 01 02 [12:59:53]Write to MH i2c: E2 08 00 B9 07 80 0D 01 02 00 00 00 00 39 [12:59:53]Write i2c OK [12:59:53]MH_I2C_Read... [12:59:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:59:53]Read from MH i2c: E2 [12:59:53]MH_I2C_Read... [12:59:53]Read from MH i2c: E2 03 00 [12:59:53]MH_I2C_Read... [12:59:53]Read from MH i2c: E2 03 00 B9 07 00 90 00 34 [12:59:53]RAPDU: 90 00 [12:59:53]wFMCommunicate OK [12:59:53]wFMCommunicate request_size=255 [12:59:53]MH_SAM_APDU [12:59: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 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 48 03 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 97 07 01 00 35 04 06 00 B7 [12:59:53]Write to MH i2c: E2 02 01 BA 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 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 48 03 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 97 07 01 00 35 04 06 00 B7 00 00 12 [12:59:53]Write i2c OK [12:59:53]MH_I2C_Read... [12:59:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:53]Read from MH i2c: E2 [12:59:53]MH_I2C_Read... [12:59:53]Read from MH i2c: E2 03 00 [12:59:53]MH_I2C_Read... [12:59:53]Read from MH i2c: E2 03 00 BA 07 00 90 00 35 [12:59:53]RAPDU: 90 00 [12:59:53]wFMCommunicate OK [12:59:53]wFMCommunicate request_size=10 [12:59:53]MH_SAM_APDU [12:59:53]CAPDU: 80 0D 02 02 05 3E 12 D7 E2 06 [12:59:53]Write to MH i2c: E2 0D 00 BB 07 80 0D 02 02 05 00 3E 12 D7 E2 06 00 00 55 [12:59:53]Write i2c OK [12:59:53]MH_I2C_Read... [12:59:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:53]Read from MH i2c: E2 [12:59:53]MH_I2C_Read... [12:59:53]Read from MH i2c: E2 03 00 [12:59:53]MH_I2C_Read... [12:59:53]Read from MH i2c: E2 03 00 BB 07 00 90 00 36 [12:59:53]RAPDU: 90 00 [12:59:53]wFMCommunicate OK [12:59:53]wFMCommunicate request_size=4 [12:59:53]MH_SAM_APDU [12:59:53]CAPDU: 80 0D 03 02 [12:59:53]Write to MH i2c: E2 08 00 BC 07 80 0D 03 02 00 00 00 00 3E [12:59:53]Write i2c OK [12:59:53]MH_I2C_Read... [12:59:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:59:53]Read from MH i2c: E2 [12:59:53]MH_I2C_Read... [12:59:53]Read from MH i2c: E2 0B 00 [12:59:53]MH_I2C_Read... [12:59:53]Read from MH i2c: E2 0B 00 BC 07 00 DF 70 31 4C F1 62 2A 53 90 00 DB [12:59:53]RAPDU: DF 70 31 4C F1 62 2A 53 90 00 [12:59:53]wFMCommunicate OK [12:59:53]SAM_PROTO_SignData done [12:59:53]FM_MakeSignedData done [12:59:53]CreateOFDProtocolMessage [12:59:53]wFMCommunicate request_size=4 [12:59:53]MH_SAM_APDU [12:59:53]CAPDU: 80 11 00 00 [12:59:53]Write to MH i2c: E2 08 00 BD 07 80 11 00 00 00 00 00 00 3E [12:59:53]Write i2c OK [12:59:53]MH_I2C_Read... [12:59:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:54]Read from MH i2c: E2 [12:59:54]MH_I2C_Read... [12:59:54]Read from MH i2c: E2 17 00 [12:59:54]MH_I2C_Read... [12:59:54]Read from MH i2c: E2 17 00 BD 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 94 [12:59:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:59:54]wFMCommunicate OK [12:59:54]CreateOFDProtocolMessage done [12:59:54]OFDSenderStorePacket 67479 [12:59:54]StoreOFDPacket docnum=67479 [12:59:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 80 BE 07 01 FC CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 48 03 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 97 07 01 00 35 04 06 00 B7 3E 12 D7 E2 06 DF 70 31 4C F1 62 2A 53 [12:59:54]CheckFolder [12:59:54]dirname=/storage/ofd_packets [12:59:54]CheckFolder done [12:59:54]ProducePacketName [12:59:54]name=ofd_packets/00067479 [12:59:54]NVStorageSaveData ofd_packets/00067479 [12:59:54]File name is /storage/ofd_packets/00067479 [12:59:54]Write 301 bytes [12:59:54]NVStorageSaveData done [12:59:54]OFDSenderStorePacket done [12:59:54]KKMCreateOFDPacket done [12:59:54]NVStorageSaveData kkm_last_timestamp [12:59:54]File name is /storage/kkm_last_timestamp [12:59:54]Write 4 bytes [12:59:54]NVStorageSaveData done [12:59:54]ExternCall_PrintAddStr [12:59:54]wPrintStart [12:59:54]Write to MH i2c: 01 00 00 BE 07 C5 [12:59:54]Write i2c OK [12:59:54]MH_I2C_Read... [12:59:54]Read from MH i2c: 01 [12:59:54]MH_I2C_Read... [12:59:54]Read from MH i2c: 01 07 00 [12:59:54]MH_I2C_Read... [12:59:54]Read from MH i2c: 01 07 00 BE 07 00 00 00 00 00 FF 0F DA [12:59:54]RasterBufferAndPrint [12:59:54]line Счет N : (1)507517 [12:59:54]line ИНН: 02508201610067 [12:59:54]line Контрольно-Кассовый Чек [12:59:54]line ПРОДАЖА [12:59:54]line ТРК (МРК, ГНК) : 23 [12:59:54]line Товар: 2710124130 [12:59:54]line Аи-92-К-5 [12:59:54]line 14.980 * 66.80 [12:59:54]line = 1000.66 [12:59:54]line НДС 12% НСП 1% [12:59:54]line > о реализуемом товаре [12:59:54]line ОКРУГЛЕНИЕ: -0.66 [12:59:54]line ИТОГО: 1000.00 [12:59:54]line Внесено: 1000.00 [12:59:54]line СДАЧА: 0.00 [12:59:54]line НСП 1% : 8.85 [12:59:54]line НДС 12% : 106.26 [12:59:54]line Наличными: 1000.00 [12:59:54]line Безнал.: 0.00 [12:59:54]line Место: АЗС № 91 "Партнер Нефть" [12:59:54]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:59:54]line СНО: Общий режим [12:59:54]line Чек 77 16.05.2024 12:59 [12:59:54]line Смена: 357 ФФД: 1.0 [12:59:54]line ЗНМ: 0300000119 [12:59:54]line РНМ: 0000000000091845 [12:59:54]line Версия ККМ: 001 [12:59:54]line ФМ: 0000000000871829 [12:59:54]line ФД: 67479 [12:59:54]line ФПД: 201477231993350 [12:59:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T125952&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67479&fm=201477231993350&tin=02508201610067®Number=0000000000091845&sum=100000 [12:59:54]OFD Sender: Processing packet 67479 [packets to send 35, broken 34] [12:59:54]ProducePacketName [12:59:54]name=ofd_packets/00067479 [12:59:54]OFD Sender: To server: pG, [12:59:54]CommunicateWithHost lk.salyk.kg:30040 [12:59:54]ConnectInit lk.salyk.kg [12:59:54]written 0, free lines is 4095 [12:59:54]Connected sock=10 [12:59: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 38 32 39 0F 01 00 00 80 BE 07 01 FC CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 48 03 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 97 07 01 00 35 04 06 00 B7 3E 12 D7 E2 06 DF 70 31 4C F1 62 2A 53 [12:59:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 56 DF 47 00 C3 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 38 32 39 10 04 04 00 97 07 01 00 F4 03 04 00 23 AB 45 66 B6 04 01 00 00 E4 12 5E 02 74 13 C9 81 [12:59:54]CommunicateWithHost err = 0 [12:59:54]CheckOFDResponse [12:59:54]1017 (14) - 77093643461234 [12:59:54]1041 (16) - 0000000000871829 [12:59:54]1040 (4) - 67479 [12:59:54]1012 (4) - 16.05.2024 06:43 [12:59:54]1206 (1) - 0 [12:59:54]OFD Sender: Remove packet 67479 [12:59:54]ProducePacketName [12:59:54]name=ofd_packets/00067479 [12:59:54]NVStorageDeleteData [12:59:54]Write to MH i2c: 01 00 00 E8 07 EF [12:59:54]Write i2c OK [12:59:54]MH_I2C_Read... [12:59:54]Read from MH i2c: 01 [12:59:54]MH_I2C_Read... [12:59:54]Read from MH i2c: 01 07 00 [12:59:54]MH_I2C_Read... [12:59:54]Read from MH i2c: 01 07 00 E8 07 00 00 00 00 00 EC 0C EE [12:59:54]RasterBufferAndPrint [12:59:54]line [12:59:54]line [12:59:54]line [12:59:54]line [12:59:54]line [12:59:54]written 0, free lines is 3319 [12:59:54]MH_Cut [12:59:54]Write to MH i2c: D1 01 00 EF 07 01 C8 [12:59:54]Write i2c OK [12:59:54]MH_I2C_Read... [12:59:54]Read from MH i2c: D1 [12:59:54]MH_I2C_Read... [12:59:54]Read from MH i2c: D1 01 00 [12:59:54]MH_I2C_Read... [12:59:54]Read from MH i2c: D1 01 00 EF 07 00 C7 [12:59:54]Write to MH i2c: 01 00 00 F0 07 F7 [12:59:54]Write i2c OK [12:59:54]MH_I2C_Read... [12:59:55]OFD Sender: No OFD packet to send [12:59:55]*** Cut start [12:59:55]*** Purtial cut [12:59:55]*** CUTSNS_PIN = 0 [12:59:55]*** Stage 1: CUTSNS_PIN = 1 [12:59:57]Read from MH i2c: 01 [12:59:57]MH_I2C_Read... [12:59:57]*** Stop cut motor [12:59:57]*** Cut end [12:59:57]Read from MH i2c: 01 07 00 [12:59:57]MH_I2C_Read... [12:59:57]Read from MH i2c: 01 07 00 F0 07 00 00 00 00 00 FF 0F 0C [12:59:57]process_action close_receipt done [12:59:57]requested_data is exist [12:59:57]produce_requested_data [12:59:57]requested_item fm.sn is exist - process it [12:59:57]wFMCommunicate request_size=4 [12:59:57]MH_SAM_APDU [12:59:57]CAPDU: 80 11 00 00 [12:59:57]Write to MH i2c: E2 08 00 F1 07 80 11 00 00 00 00 00 00 72 [12:59:57]Write i2c OK [12:59:57]MH_I2C_Read... [12:59:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:57]Read from MH i2c: E2 [12:59:57]MH_I2C_Read... [12:59:57]Read from MH i2c: E2 17 00 [12:59:57]MH_I2C_Read... [12:59:57]Read from MH i2c: E2 17 00 F1 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C8 [12:59:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:59:57]wFMCommunicate OK [12:59:57]requested_item fd.num is exist - process it [12:59:57]SAM_PROTO_GetFieldsCounters [12:59:57]wFMCommunicate request_size=4 [12:59:57]MH_SAM_APDU [12:59:57]CAPDU: 80 13 00 00 [12:59:57]Write to MH i2c: E2 08 00 F2 07 80 13 00 00 00 00 00 00 75 [12:59:57]Write i2c OK [12:59:57]MH_I2C_Read... [12:59:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:59:57]Read from MH i2c: E2 [12:59:57]MH_I2C_Read... [12:59:57]Read from MH i2c: E2 62 00 [12:59:57]MH_I2C_Read... [12:59:57]Read from MH i2c: E2 62 00 F2 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 97 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [12:59: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 97 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:59:57]wFMCommunicate OK [12:59:57]SAM_PROTO_GetFieldsCounters done [12:59:57]requested_item shift.num is exist - process it [12:59:57]requested_item shift.opened is exist - process it [12:59:57]req_shift_opened [12:59:57]FM_GetShiftState [12:59:57]SAM_PROTO_GetShiftState [12:59:57]wFMCommunicate request_size=4 [12:59:57]MH_SAM_APDU [12:59:57]CAPDU: 80 13 01 00 [12:59:57]Write to MH i2c: E2 08 00 F3 07 80 13 01 00 00 00 00 00 77 [12:59:57]Write i2c OK [12:59:57]MH_I2C_Read... [12:59:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:57]Read from MH i2c: E2 [12:59:57]MH_I2C_Read... [12:59:57]Read from MH i2c: E2 0E 00 [12:59:57]MH_I2C_Read... [12:59:57]Read from MH i2c: E2 0E 00 F3 07 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 23 [12:59:57]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [12:59:57]wFMCommunicate OK [12:59:57]SAM_PROTO_GetShiftState done [12:59:57]FM_GetShiftState done [12:59:57]req_shift_opened done [12:59:57]requested_item shift.open_date is exist - process it [12:59:57]req_shift_open_date [12:59:57]req_shift_open_date done [12:59:57]produce_requested_data done [12:59:57]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67479,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [12:59:57]process_action_free close_receipt [12:59:57]json_value_free [12:59:57]json_value_free done [12:59:57]process_json_proto returns [12:59:57]Send response to host [12:59:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67479,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [12:59:57]free response buf [12:59:57]execute_script done [12:59:57]execute_script returns [12:59:57]free content buf [12:59:57]Sock 8.Close socket [12:59:57]Sock 8.Thread stoped [13:00:00]OFD Sender: No OFD packet to send [13:00:05]OFD Sender: No OFD packet to send [13:00:10]OFD Sender: No OFD packet to send [13:00:14]accept exits with 9 [13:00:14]New connection [13:00:14]New thread 3067039076 created [13:00:14]Thread 3067182436 joined [13:00:14]Waiting for new connection... [13:00:14] Sock 9.Parse request [13:00:14]Sock 9.Check first char [13:00:14]Sock 9.First char is OK [13:00:14]request: POST /json_proto HTTP/1.0 [13:00:14]Method: POST [13:00:14]URL: /json_proto [13:00:14]Method is POST - this is cgi request [13:00:14]url: /json_proto [13:00:14]query_string will be loaded in cgi processing [13:00:14]execute_cgi json_proto POST (null) [13:00:14]execute_cgi path=json_proto method=POST [13:00:14]POST find Content-Length [13:00:14]Host: 172.17.41.195:8080 [13:00:14]Content-Length: 679 [13:00:14]Content-Type: application/json [13:00:14] [13:00:14]POST finish read [13:00:14]Found Content-Length = 679 [13:00:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507520", "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" : 74.70, "quantity" : 20.090, "sum" : 1500.72, "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" ] } } [13:00:14]execute_script... [13:00: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)507520", "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" : 74.70, "quantity" : 20.090, "sum" : 1500.72, "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" ] } } [13:00:14]POST & json_proto [13:00:14]process_json_proto [13:00:14]json parsed OK: [13:00:14]protocol is kg_v1.0 [13:00:14]action value=close_receipt [13:00:14]process_action close_receipt [13:00:14]cmd_close_receipt [13:00:14]MH_GetDate [13:00:14]Write to MH i2c: F0 00 00 F4 07 EA [13:00:14]Write i2c OK [13:00:14]MH_I2C_Read... [13:00:14]Read from MH i2c: F0 [13:00:14]MH_I2C_Read... [13:00:14]Read from MH i2c: F0 09 00 [13:00:14]MH_I2C_Read... [13:00:14]Read from MH i2c: F0 09 00 F4 07 00 5F 03 46 66 FC 21 6F 64 F1 [13:00:14]GetLastDocTimeStamp 1715864392 [13:00:14]current date 1715864415 [13:00:14]FM_GetShiftState [13:00:14]SAM_PROTO_GetShiftState [13:00:14]wFMCommunicate request_size=4 [13:00:14]MH_SAM_APDU [13:00:14]CAPDU: 80 13 01 00 [13:00:14]Write to MH i2c: E2 08 00 F5 07 80 13 01 00 00 00 00 00 79 [13:00:14]Write i2c OK [13:00:14]MH_I2C_Read... [13:00:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:14]Read from MH i2c: E2 [13:00:14]MH_I2C_Read... [13:00:14]Read from MH i2c: E2 0E 00 [13:00:14]MH_I2C_Read... [13:00:14]Read from MH i2c: E2 0E 00 F5 07 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 25 [13:00:14]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [13:00:14]wFMCommunicate OK [13:00:14]SAM_PROTO_GetShiftState done [13:00:14]FM_GetShiftState done [13:00:14]opened in 1715818916 [13:00:14]opened+sec_in_day 1715905316 [13:00:14]quantity*price = 150072 [13:00:14]sum+1 = 150073 [13:00:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.72 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 78 16.05.2024 13:00 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67480 ФПД: 18744569941654 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T130015&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67480&fm=18744569941654&tin=02508201610067®Number=0000000000091845&sum=150000 [13:00:15]StoreToDocumentArchive [13:00:15]shift 357 fd 67480 [13:00:15]save to /storage/0357/doc_00067480 [13:00:15]save last doc name /storage/0357/doc_00067480 to /storage/kkm_last_doc_name [13:00:15]save OK [13:00:15]Clear old archive folders... [13:00:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:00:15]tlvbuf is 017B5590 [13:00:15]SAM_PROTO_ClearQueue [13:00:15]wFMCommunicate request_size=4 [13:00:15]MH_SAM_APDU [13:00:15]CAPDU: 80 09 00 00 [13:00:15]Write to MH i2c: E2 08 00 02 08 80 09 00 00 00 00 00 00 7C [13:00:15]Write i2c OK [13:00:15]MH_I2C_Read... [13:00:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:00:15]Read from MH i2c: E2 [13:00:15]MH_I2C_Read... [13:00:15]Read from MH i2c: E2 03 00 [13:00:15]MH_I2C_Read... [13:00:15]Read from MH i2c: E2 03 00 02 08 00 90 00 7E [13:00:15]RAPDU: 90 00 [13:00:15]wFMCommunicate OK [13:00:15]SAM_PROTO_ClearQueue done [13:00:15]KKMCreateOFDPacket [13:00:15]OFDProtocolAddRootSTLVToBuf [13:00:15]FM_MakeSignedData [13:00:15]FM_MakeSignedData [13:00:15]SAM_PROTO_SignData [13:00:15]wFMCommunicate request_size=4 [13:00:15]MH_SAM_APDU [13:00:15]CAPDU: 80 0D 01 02 [13:00:15]Write to MH i2c: E2 08 00 03 08 80 0D 01 02 00 00 00 00 84 [13:00:15]Write i2c OK [13:00:15]MH_I2C_Read... [13:00:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:00:15]Read from MH i2c: E2 [13:00:15]MH_I2C_Read... [13:00:15]Read from MH i2c: E2 03 00 [13:00:15]MH_I2C_Read... [13:00:15]Read from MH i2c: E2 03 00 03 08 00 90 00 7F [13:00:15]RAPDU: 90 00 [13:00:15]wFMCommunicate OK [13:00:15]wFMCommunicate request_size=255 [13:00:15]MH_SAM_APDU [13:00: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 7A 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 38 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 41 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 4E 00 00 00 F4 03 04 00 5F 03 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 98 07 01 00 35 04 06 00 11 0C 4F 6E [13:00:15]Write to MH i2c: E2 02 01 04 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 7A 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 38 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 41 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 4E 00 00 00 F4 03 04 00 5F 03 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 98 07 01 00 35 04 06 00 11 0C 4F 6E 00 00 E3 [13:00:15]Write i2c OK [13:00:15]MH_I2C_Read... [13:00:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:15]Read from MH i2c: E2 [13:00:15]MH_I2C_Read... [13:00:15]Read from MH i2c: E2 03 00 [13:00:15]MH_I2C_Read... [13:00:15]Read from MH i2c: E2 03 00 04 08 00 90 00 80 [13:00:15]RAPDU: 90 00 [13:00:15]wFMCommunicate OK [13:00:15]wFMCommunicate request_size=7 [13:00:15]MH_SAM_APDU [13:00:15]CAPDU: 80 0D 02 02 02 CE 96 [13:00:15]Write to MH i2c: E2 0A 00 05 08 80 0D 02 02 02 00 CE 96 00 00 EF [13:00:15]Write i2c OK [13:00:15]MH_I2C_Read... [13:00:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:15]Read from MH i2c: E2 [13:00:15]MH_I2C_Read... [13:00:15]Read from MH i2c: E2 03 00 [13:00:15]MH_I2C_Read... [13:00:15]Read from MH i2c: E2 03 00 05 08 00 90 00 81 [13:00:15]RAPDU: 90 00 [13:00:15]wFMCommunicate OK [13:00:15]wFMCommunicate request_size=4 [13:00:15]MH_SAM_APDU [13:00:15]CAPDU: 80 0D 03 02 [13:00:15]Write to MH i2c: E2 08 00 06 08 80 0D 03 02 00 00 00 00 89 [13:00:15]Write i2c OK [13:00:15]MH_I2C_Read... [13:00:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:00:15]Read from MH i2c: E2 [13:00:15]MH_I2C_Read... [13:00:15]Read from MH i2c: E2 0B 00 [13:00:15]MH_I2C_Read... [13:00:15]Read from MH i2c: E2 0B 00 06 08 00 07 BF 50 62 3B 82 A7 C3 90 00 29 [13:00:15]RAPDU: 07 BF 50 62 3B 82 A7 C3 90 00 [13:00:15]wFMCommunicate OK [13:00:15]SAM_PROTO_SignData done [13:00:15]FM_MakeSignedData done [13:00:15]CreateOFDProtocolMessage [13:00:15]wFMCommunicate request_size=4 [13:00:15]MH_SAM_APDU [13:00:15]CAPDU: 80 11 00 00 [13:00:15]Write to MH i2c: E2 08 00 07 08 80 11 00 00 00 00 00 00 89 [13:00:15]Write i2c OK [13:00:15]MH_I2C_Read... [13:00:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:15]Read from MH i2c: E2 [13:00:15]MH_I2C_Read... [13:00:15]Read from MH i2c: E2 17 00 [13:00:15]MH_I2C_Read... [13:00:15]Read from MH i2c: E2 17 00 07 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DF [13:00:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:00:15]wFMCommunicate OK [13:00:15]CreateOFDProtocolMessage done [13:00:15]OFDSenderStorePacket 67480 [13:00:15]StoreOFDPacket docnum=67480 [13:00:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 83 BD 04 01 18 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 7A 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 38 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 41 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 4E 00 00 00 F4 03 04 00 5F 03 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 98 07 01 00 35 04 06 00 11 0C 4F 6E CE 96 07 BF 50 62 3B 82 A7 C3 [13:00:15]CheckFolder [13:00:15]dirname=/storage/ofd_packets [13:00:15]CheckFolder done [13:00:15]ProducePacketName [13:00:15]name=ofd_packets/00067480 [13:00:15]NVStorageSaveData ofd_packets/00067480 [13:00:15]File name is /storage/ofd_packets/00067480 [13:00:15]Write 298 bytes [13:00:15]NVStorageSaveData done [13:00:15]OFDSenderStorePacket done [13:00:15]KKMCreateOFDPacket done [13:00:15]NVStorageSaveData kkm_last_timestamp [13:00:15]File name is /storage/kkm_last_timestamp [13:00:15]Write 4 bytes [13:00:15]NVStorageSaveData done [13:00:15]ExternCall_PrintAddStr [13:00:15]wPrintStart [13:00:15]Write to MH i2c: 01 00 00 08 08 10 [13:00:15]Write i2c OK [13:00:15]MH_I2C_Read... [13:00:15]Read from MH i2c: 01 [13:00:15]MH_I2C_Read... [13:00:15]Read from MH i2c: 01 07 00 [13:00:15]MH_I2C_Read... [13:00:15]Read from MH i2c: 01 07 00 08 08 00 00 00 00 00 FF 0F 25 [13:00:15]RasterBufferAndPrint [13:00:15]line Счет N : (1)507520 [13:00:15]line ИНН: 02508201610067 [13:00:15]line Контрольно-Кассовый Чек [13:00:15]line ПРОДАЖА [13:00:15]line ТРК (МРК, ГНК) : 41 [13:00:15]line Товар: 2710194210 [13:00:15]line ДТ-К-5 [13:00:15]line 20.090 * 74.70 [13:00:15]line = 1500.72 [13:00:15]line НДС 12% НСП 1% [13:00:15]line > о реализуемом товаре [13:00:15]line ОКРУГЛЕНИЕ: -0.72 [13:00:15]line ИТОГО: 1500.00 [13:00:15]line Внесено: 1500.00 [13:00:15]line СДАЧА: 0.00 [13:00:15]line НСП 1% : 13.28 [13:00:15]line НДС 12% : 159.37 [13:00:15]line Наличными: 1500.00 [13:00:15]line Безнал.: 0.00 [13:00:15]line Место: АЗС № 91 "Партнер Нефть" [13:00:15]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:00:15]line СНО: Общий режим [13:00:15]line Чек 78 16.05.2024 13:00 [13:00:15]line Смена: 357 ФФД: 1.0 [13:00:15]line ЗНМ: 0300000119 [13:00:15]line РНМ: 0000000000091845 [13:00:15]line Версия ККМ: 001 [13:00:15]line ФМ: 0000000000871829 [13:00:15]line ФД: 67480 [13:00:15]line ФПД: 18744569941654 [13:00:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T130015&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67480&fm=18744569941654&tin=02508201610067®Number=0000000000091845&sum=150000 [13:00:16]OFD Sender: Processing packet 67480 [packets to send 35, broken 34] [13:00:16]ProducePacketName [13:00:16]name=ofd_packets/00067480 [13:00:16]OFD Sender: To server: pG, [13:00:16]CommunicateWithHost lk.salyk.kg:30040 [13:00:16]ConnectInit lk.salyk.kg [13:00:16]written 0, free lines is 4095 [13:00:16]Connected sock=10 [13:00: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 38 32 39 0C 01 00 00 83 BD 04 01 18 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 7A 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 38 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 41 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 4E 00 00 00 F4 03 04 00 5F 03 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 98 07 01 00 35 04 06 00 11 0C 4F 6E CE 96 07 BF 50 62 3B 82 A7 C3 [13:00:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 C4 E1 47 00 29 D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 98 07 01 00 F4 03 04 00 39 AB 45 66 B6 04 01 00 00 9A E7 7D 89 4B 0F BF 8E [13:00:16]CommunicateWithHost err = 0 [13:00:16]CheckOFDResponse [13:00:16]1017 (14) - 77093643461234 [13:00:16]1041 (16) - 0000000000871829 [13:00:16]1040 (4) - 67480 [13:00:16]1012 (4) - 16.05.2024 06:44 [13:00:16]1206 (1) - 0 [13:00:16]OFD Sender: Remove packet 67480 [13:00:16]ProducePacketName [13:00:16]name=ofd_packets/00067480 [13:00:16]NVStorageDeleteData [13:00:16]Write to MH i2c: 01 00 00 32 08 3A [13:00:16]Write i2c OK [13:00:16]MH_I2C_Read... [13:00:16]Read from MH i2c: 01 [13:00:16]MH_I2C_Read... [13:00:16]Read from MH i2c: 01 07 00 [13:00:16]MH_I2C_Read... [13:00:16]Read from MH i2c: 01 07 00 32 08 00 00 00 00 00 E0 0C 2D [13:00:16]RasterBufferAndPrint [13:00:16]line [13:00:16]line [13:00:16]line [13:00:16]line [13:00:16]line [13:00:16]written 0, free lines is 3304 [13:00:16]MH_Cut [13:00:16]Write to MH i2c: D1 01 00 39 08 01 13 [13:00:16]Write i2c OK [13:00:16]MH_I2C_Read... [13:00:16]Read from MH i2c: D1 [13:00:16]MH_I2C_Read... [13:00:16]Read from MH i2c: D1 01 00 [13:00:16]MH_I2C_Read... [13:00:16]Read from MH i2c: D1 01 00 39 08 00 12 [13:00:16]Write to MH i2c: 01 00 00 3A 08 42 [13:00:16]Write i2c OK [13:00:16]MH_I2C_Read... [13:00:17]OFD Sender: No OFD packet to send [13:00:17]*** Cut start [13:00:17]*** Purtial cut [13:00:17]*** Stage 1: CUTSNS_PIN = 1 [13:00:17]Read from MH i2c: 01 [13:00:17]MH_I2C_Read... [13:00:17]*** Stop cut motor [13:00:17]*** Cut end [13:00:17]Read from MH i2c: 01 07 00 [13:00:17]MH_I2C_Read... [13:00:17]Read from MH i2c: 01 07 00 3A 08 00 00 00 00 00 FF 0F 57 [13:00:17]process_action close_receipt done [13:00:17]requested_data is exist [13:00:17]produce_requested_data [13:00:17]requested_item fm.sn is exist - process it [13:00:17]wFMCommunicate request_size=4 [13:00:17]MH_SAM_APDU [13:00:17]CAPDU: 80 11 00 00 [13:00:17]Write to MH i2c: E2 08 00 3B 08 80 11 00 00 00 00 00 00 BD [13:00:17]Write i2c OK [13:00:17]MH_I2C_Read... [13:00:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:17]Read from MH i2c: E2 [13:00:17]MH_I2C_Read... [13:00:17]Read from MH i2c: E2 17 00 [13:00:17]MH_I2C_Read... [13:00:17]Read from MH i2c: E2 17 00 3B 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 13 [13:00:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:00:17]wFMCommunicate OK [13:00:17]requested_item fd.num is exist - process it [13:00:17]SAM_PROTO_GetFieldsCounters [13:00:17]wFMCommunicate request_size=4 [13:00:17]MH_SAM_APDU [13:00:17]CAPDU: 80 13 00 00 [13:00:17]Write to MH i2c: E2 08 00 3C 08 80 13 00 00 00 00 00 00 C0 [13:00:17]Write i2c OK [13:00:17]MH_I2C_Read... [13:00:18]Read from MH i2c: E2 [13:00:18]MH_I2C_Read... [13:00:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:00:18]Read from MH i2c: E2 62 00 [13:00:18]MH_I2C_Read... [13:00:18]Read from MH i2c: E2 62 00 3C 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 98 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [13:00: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 98 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:00:18]wFMCommunicate OK [13:00:18]SAM_PROTO_GetFieldsCounters done [13:00:18]requested_item shift.num is exist - process it [13:00:18]requested_item shift.opened is exist - process it [13:00:18]req_shift_opened [13:00:18]FM_GetShiftState [13:00:18]SAM_PROTO_GetShiftState [13:00:18]wFMCommunicate request_size=4 [13:00:18]MH_SAM_APDU [13:00:18]CAPDU: 80 13 01 00 [13:00:18]Write to MH i2c: E2 08 00 3D 08 80 13 01 00 00 00 00 00 C2 [13:00:18]Write i2c OK [13:00:18]MH_I2C_Read... [13:00:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:18]Read from MH i2c: E2 [13:00:18]MH_I2C_Read... [13:00:18]Read from MH i2c: E2 0E 00 [13:00:18]MH_I2C_Read... [13:00:18]Read from MH i2c: E2 0E 00 3D 08 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 6E [13:00:18]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [13:00:18]wFMCommunicate OK [13:00:18]SAM_PROTO_GetShiftState done [13:00:18]FM_GetShiftState done [13:00:18]req_shift_opened done [13:00:18]requested_item shift.open_date is exist - process it [13:00:18]req_shift_open_date [13:00:18]req_shift_open_date done [13:00:18]produce_requested_data done [13:00:18]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67480,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [13:00:18]process_action_free close_receipt [13:00:18]json_value_free [13:00:18]json_value_free done [13:00:18]process_json_proto returns [13:00:18]Send response to host [13:00:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67480,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [13:00:18]free response buf [13:00:18]execute_script done [13:00:18]execute_script returns [13:00:18]free content buf [13:00:18]Sock 9.Close socket [13:00:18]Sock 9.Thread stoped [13:00:22]OFD Sender: No OFD packet to send [13:00:27]OFD Sender: No OFD packet to send [13:00:32]OFD Sender: No OFD packet to send [13:00:37]OFD Sender: No OFD packet to send [13:00:42]OFD Sender: No OFD packet to send [13:00:47]OFD Sender: No OFD packet to send [13:00:52]OFD Sender: No OFD packet to send [13:00:57]OFD Sender: No OFD packet to send [13:01:02]OFD Sender: No OFD packet to send [13:01:07]OFD Sender: No OFD packet to send [13:01:12]OFD Sender: No OFD packet to send [13:01:17]OFD Sender: No OFD packet to send [13:01:22]OFD Sender: No OFD packet to send [13:01:27]OFD Sender: No OFD packet to send [13:01:32]OFD Sender: No OFD packet to send [13:01:37]OFD Sender: No OFD packet to send [13:01:40]accept exits with 8 [13:01:40]New connection [13:01:40]New thread 3067182436 created [13:01:40]Thread 3067039076 joined [13:01:40]Waiting for new connection... [13:01:40] Sock 8.Parse request [13:01:40]Sock 8.Check first char [13:01:40]Sock 8.First char is OK [13:01:40]request: POST /json_proto HTTP/1.0 [13:01:40]Method: POST [13:01:40]URL: /json_proto [13:01:40]Method is POST - this is cgi request [13:01:40]url: /json_proto [13:01:40]query_string will be loaded in cgi processing [13:01:40]execute_cgi json_proto POST (null) [13:01:40]execute_cgi path=json_proto method=POST [13:01:40]POST find Content-Length [13:01:40]Host: 172.17.41.195:8080 [13:01:40]Content-Length: 678 [13:01:40]Content-Type: application/json [13:01:40] [13:01:40]POST finish read [13:01:40]Found Content-Length = 678 [13:01:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507521", "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.80, "quantity" : 11.980, "sum" : 800.26, "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:01:40]execute_script... [13:01: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)507521", "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.80, "quantity" : 11.980, "sum" : 800.26, "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:01:40]POST & json_proto [13:01:40]process_json_proto [13:01:40]json parsed OK: [13:01:40]protocol is kg_v1.0 [13:01:40]action value=close_receipt [13:01:40]process_action close_receipt [13:01:40]cmd_close_receipt [13:01:40]MH_GetDate [13:01:40]Write to MH i2c: F0 00 00 3E 08 35 [13:01:40]Write i2c OK [13:01:40]MH_I2C_Read... [13:01:40]Read from MH i2c: F0 [13:01:40]MH_I2C_Read... [13:01:40]Read from MH i2c: F0 09 00 [13:01:40]MH_I2C_Read... [13:01:40]Read from MH i2c: F0 09 00 3E 08 00 B4 03 46 66 FC 21 6F 64 91 [13:01:40]GetLastDocTimeStamp 1715864415 [13:01:40]current date 1715864500 [13:01:40]FM_GetShiftState [13:01:40]SAM_PROTO_GetShiftState [13:01:40]wFMCommunicate request_size=4 [13:01:40]MH_SAM_APDU [13:01:40]CAPDU: 80 13 01 00 [13:01:40]Write to MH i2c: E2 08 00 3F 08 80 13 01 00 00 00 00 00 C4 [13:01:40]Write i2c OK [13:01:40]MH_I2C_Read... [13:01:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:40]Read from MH i2c: E2 [13:01:40]MH_I2C_Read... [13:01:40]Read from MH i2c: E2 0E 00 [13:01:40]MH_I2C_Read... [13:01:40]Read from MH i2c: E2 0E 00 3F 08 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 70 [13:01:40]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [13:01:40]wFMCommunicate OK [13:01:40]SAM_PROTO_GetShiftState done [13:01:40]FM_GetShiftState done [13:01:40]opened in 1715818916 [13:01:40]opened+sec_in_day 1715905316 [13:01:40]quantity*price = 80026 [13:01:40]sum+1 = 80027 [13:01:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.98 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 79 16.05.2024 13:01 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67481 ФПД: 22021594618338 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T130140&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67481&fm=22021594618338&tin=02508201610067®Number=0000000000091845&sum=80000 [13:01:41]StoreToDocumentArchive [13:01:41]shift 357 fd 67481 [13:01:41]save to /storage/0357/doc_00067481 [13:01:41]save last doc name /storage/0357/doc_00067481 to /storage/kkm_last_doc_name [13:01:41]save OK [13:01:41]Clear old archive folders... [13:01:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:01:41]tlvbuf is 0177C880 [13:01:41]SAM_PROTO_ClearQueue [13:01:41]wFMCommunicate request_size=4 [13:01:41]MH_SAM_APDU [13:01:41]CAPDU: 80 09 00 00 [13:01:41]Write to MH i2c: E2 08 00 4C 08 80 09 00 00 00 00 00 00 C6 [13:01:41]Write i2c OK [13:01:41]MH_I2C_Read... [13:01:41]Read from MH i2c: E2 [13:01:41]MH_I2C_Read... [13:01:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:01:41]Read from MH i2c: E2 03 00 [13:01:41]MH_I2C_Read... [13:01:41]Read from MH i2c: E2 03 00 4C 08 00 90 00 C8 [13:01:41]RAPDU: 90 00 [13:01:41]wFMCommunicate OK [13:01:41]SAM_PROTO_ClearQueue done [13:01:41]KKMCreateOFDPacket [13:01:41]OFDProtocolAddRootSTLVToBuf [13:01:41]FM_MakeSignedData [13:01:41]FM_MakeSignedData [13:01:41]SAM_PROTO_SignData [13:01:41]wFMCommunicate request_size=4 [13:01:41]MH_SAM_APDU [13:01:41]CAPDU: 80 0D 01 02 [13:01:41]Write to MH i2c: E2 08 00 4D 08 80 0D 01 02 00 00 00 00 CE [13:01:41]Write i2c OK [13:01:41]MH_I2C_Read... [13:01:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:01:41]Read from MH i2c: E2 [13:01:41]MH_I2C_Read... [13:01:41]Read from MH i2c: E2 03 00 [13:01:41]MH_I2C_Read... [13:01:41]Read from MH i2c: E2 03 00 4D 08 00 90 00 C9 [13:01:41]RAPDU: 90 00 [13:01:41]wFMCommunicate OK [13:01:41]wFMCommunicate request_size=255 [13:01:41]MH_SAM_APDU [13:01: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 CC 2E 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 9A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 B4 03 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 99 07 01 00 35 04 06 00 14 [13:01:41]Write to MH i2c: E2 02 01 4E 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 CC 2E 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 9A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 B4 03 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 99 07 01 00 35 04 06 00 14 00 00 34 [13:01:41]Write i2c OK [13:01:41]MH_I2C_Read... [13:01:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:41]Read from MH i2c: E2 [13:01:41]MH_I2C_Read... [13:01:41]Read from MH i2c: E2 03 00 [13:01:41]MH_I2C_Read... [13:01:41]Read from MH i2c: E2 03 00 4E 08 00 90 00 CA [13:01:41]RAPDU: 90 00 [13:01:41]wFMCommunicate OK [13:01:41]wFMCommunicate request_size=10 [13:01:41]MH_SAM_APDU [13:01:41]CAPDU: 80 0D 02 02 05 07 4D 53 19 E2 [13:01:41]Write to MH i2c: E2 0D 00 4F 08 80 0D 02 02 05 00 07 4D 53 19 E2 00 00 7D [13:01:41]Write i2c OK [13:01:41]MH_I2C_Read... [13:01:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:41]Read from MH i2c: E2 [13:01:41]MH_I2C_Read... [13:01:41]Read from MH i2c: E2 03 00 [13:01:41]MH_I2C_Read... [13:01:41]Read from MH i2c: E2 03 00 4F 08 00 90 00 CB [13:01:41]RAPDU: 90 00 [13:01:41]wFMCommunicate OK [13:01:41]wFMCommunicate request_size=4 [13:01:41]MH_SAM_APDU [13:01:41]CAPDU: 80 0D 03 02 [13:01:41]Write to MH i2c: E2 08 00 50 08 80 0D 03 02 00 00 00 00 D3 [13:01:41]Write i2c OK [13:01:41]MH_I2C_Read... [13:01:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:01:41]Read from MH i2c: E2 [13:01:41]MH_I2C_Read... [13:01:41]Read from MH i2c: E2 0B 00 [13:01:41]MH_I2C_Read... [13:01:41]Read from MH i2c: E2 0B 00 50 08 00 80 FD 94 71 FC 6A 0E 1B 90 00 E5 [13:01:41]RAPDU: 80 FD 94 71 FC 6A 0E 1B 90 00 [13:01:41]wFMCommunicate OK [13:01:41]SAM_PROTO_SignData done [13:01:41]FM_MakeSignedData done [13:01:41]CreateOFDProtocolMessage [13:01:41]wFMCommunicate request_size=4 [13:01:41]MH_SAM_APDU [13:01:41]CAPDU: 80 11 00 00 [13:01:41]Write to MH i2c: E2 08 00 51 08 80 11 00 00 00 00 00 00 D3 [13:01:41]Write i2c OK [13:01:41]MH_I2C_Read... [13:01:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:41]Read from MH i2c: E2 [13:01:41]MH_I2C_Read... [13:01:41]Read from MH i2c: E2 17 00 [13:01:41]MH_I2C_Read... [13:01:41]Read from MH i2c: E2 17 00 51 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 29 [13:01:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:01:41]wFMCommunicate OK [13:01:41]CreateOFDProtocolMessage done [13:01:41]OFDSenderStorePacket 67481 [13:01:41]StoreOFDPacket docnum=67481 [13:01:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 48 E0 07 01 99 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 2E 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 9A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 B4 03 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 99 07 01 00 35 04 06 00 14 07 4D 53 19 E2 80 FD 94 71 FC 6A 0E 1B [13:01:41]CheckFolder [13:01:41]dirname=/storage/ofd_packets [13:01:41]CheckFolder done [13:01:41]ProducePacketName [13:01:41]name=ofd_packets/00067481 [13:01:41]NVStorageSaveData ofd_packets/00067481 [13:01:41]File name is /storage/ofd_packets/00067481 [13:01:41]Write 301 bytes [13:01:41]NVStorageSaveData done [13:01:41]OFDSenderStorePacket done [13:01:41]KKMCreateOFDPacket done [13:01:41]NVStorageSaveData kkm_last_timestamp [13:01:41]File name is /storage/kkm_last_timestamp [13:01:41]Write 4 bytes [13:01:41]NVStorageSaveData done [13:01:41]ExternCall_PrintAddStr [13:01:41]wPrintStart [13:01:41]Write to MH i2c: 01 00 00 52 08 5A [13:01:41]Write i2c OK [13:01:41]MH_I2C_Read... [13:01:41]Read from MH i2c: 01 [13:01:41]MH_I2C_Read... [13:01:41]Read from MH i2c: 01 07 00 [13:01:41]MH_I2C_Read... [13:01:41]Read from MH i2c: 01 07 00 52 08 00 00 00 00 00 FF 0F 6F [13:01:41]RasterBufferAndPrint [13:01:41]line Счет N : (1)507521 [13:01:41]line ИНН: 02508201610067 [13:01:41]line Контрольно-Кассовый Чек [13:01:41]line ПРОДАЖА [13:01:41]line ТРК (МРК, ГНК) : 13 [13:01:41]line Товар: 2710124130 [13:01:41]line Аи-92-К-5 [13:01:41]line 11.980 * 66.80 [13:01:41]line = 800.26 [13:01:41]line НДС 12% НСП 1% [13:01:41]line > о реализуемом товаре [13:01:41]line ОКРУГЛЕНИЕ: -0.26 [13:01:41]line ИТОГО: 800.00 [13:01:41]line Внесено: 800.00 [13:01:41]line СДАЧА: 0.00 [13:01:41]line НСП 1% : 7.08 [13:01:41]line НДС 12% : 84.98 [13:01:41]line Наличными: 800.00 [13:01:41]line Безнал.: 0.00 [13:01:41]line Место: АЗС № 91 "Партнер Нефть" [13:01:41]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:01:41]line СНО: Общий режим [13:01:41]line Чек 79 16.05.2024 13:01 [13:01:41]line Смена: 357 ФФД: 1.0 [13:01:41]line ЗНМ: 0300000119 [13:01:41]line РНМ: 0000000000091845 [13:01:41]line Версия ККМ: 001 [13:01:41]line ФМ: 0000000000871829 [13:01:41]line ФД: 67481 [13:01:41]line ФПД: 22021594618338 [13:01:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T130140&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67481&fm=22021594618338&tin=02508201610067®Number=0000000000091845&sum=80000 [13:01:42]written 0, free lines is 4095 [13:01:42]OFD Sender: Processing packet 67481 [packets to send 35, broken 34] [13:01:42]ProducePacketName [13:01:42]name=ofd_packets/00067481 [13:01:42]OFD Sender: To server: pG, [13:01:42]CommunicateWithHost lk.salyk.kg:30040 [13:01:42]ConnectInit lk.salyk.kg [13:01:42]Connected sock=10 [13:01: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 38 32 39 0F 01 00 00 48 E0 07 01 99 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 2E 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 9A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 B4 03 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 99 07 01 00 35 04 06 00 14 07 4D 53 19 E2 80 FD 94 71 FC 6A 0E 1B [13:01:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 48 9D 47 00 55 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 38 32 39 10 04 04 00 99 07 01 00 F4 03 04 00 8F AB 45 66 B6 04 01 00 00 18 9C 54 3E D5 91 BE E2 [13:01:42]CommunicateWithHost err = 0 [13:01:42]CheckOFDResponse [13:01:42]1017 (14) - 77093643461234 [13:01:42]1041 (16) - 0000000000871829 [13:01:42]1040 (4) - 67481 [13:01:42]1012 (4) - 16.05.2024 06:45 [13:01:42]1206 (1) - 0 [13:01:42]OFD Sender: Remove packet 67481 [13:01:42]ProducePacketName [13:01:42]name=ofd_packets/00067481 [13:01:42]NVStorageDeleteData [13:01:42]Write to MH i2c: 01 00 00 7C 08 84 [13:01:42]Write i2c OK [13:01:42]MH_I2C_Read... [13:01:42]Read from MH i2c: 01 [13:01:42]MH_I2C_Read... [13:01:42]Read from MH i2c: 01 07 00 [13:01:42]MH_I2C_Read... [13:01:42]Read from MH i2c: 01 07 00 7C 08 00 00 00 00 00 CF 0C 66 [13:01:42]RasterBufferAndPrint [13:01:42]line [13:01:42]line [13:01:42]line [13:01:42]line [13:01:42]line [13:01:42]written 0, free lines is 3285 [13:01:42]MH_Cut [13:01:42]Write to MH i2c: D1 01 00 83 08 01 5D [13:01:42]Write i2c OK [13:01:42]MH_I2C_Read... [13:01:42]Read from MH i2c: D1 [13:01:42]MH_I2C_Read... [13:01:42]Read from MH i2c: D1 01 00 [13:01:42]MH_I2C_Read... [13:01:42]Read from MH i2c: D1 01 00 83 08 00 5C [13:01:42]Write to MH i2c: 01 00 00 84 08 8C [13:01:42]Write i2c OK [13:01:42]MH_I2C_Read... [13:01:42]OFD Sender: No OFD packet to send [13:01:43]*** Cut start [13:01:43]*** Purtial cut [13:01:43]*** CUTSNS_PIN = 0 [13:01:43]*** Stage 1: CUTSNS_PIN = 1 [13:01:45]Read from MH i2c: 01 [13:01:45]MH_I2C_Read... [13:01:45]*** Stop cut motor [13:01:45]*** Cut end [13:01:45]Read from MH i2c: 01 07 00 [13:01:45]MH_I2C_Read... [13:01:45]Read from MH i2c: 01 07 00 84 08 00 00 00 00 00 FF 0F A1 [13:01:45]process_action close_receipt done [13:01:45]requested_data is exist [13:01:45]produce_requested_data [13:01:45]requested_item fm.sn is exist - process it [13:01:45]wFMCommunicate request_size=4 [13:01:45]MH_SAM_APDU [13:01:45]CAPDU: 80 11 00 00 [13:01:45]Write to MH i2c: E2 08 00 85 08 80 11 00 00 00 00 00 00 07 [13:01:45]Write i2c OK [13:01:45]MH_I2C_Read... [13:01:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:45]Read from MH i2c: E2 [13:01:45]MH_I2C_Read... [13:01:45]Read from MH i2c: E2 17 00 [13:01:45]MH_I2C_Read... [13:01:45]Read from MH i2c: E2 17 00 85 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 5D [13:01:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:01:45]wFMCommunicate OK [13:01:45]requested_item fd.num is exist - process it [13:01:45]SAM_PROTO_GetFieldsCounters [13:01:45]wFMCommunicate request_size=4 [13:01:45]MH_SAM_APDU [13:01:45]CAPDU: 80 13 00 00 [13:01:45]Write to MH i2c: E2 08 00 86 08 80 13 00 00 00 00 00 00 0A [13:01:45]Write i2c OK [13:01:45]MH_I2C_Read... [13:01:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:45]Read from MH i2c: E2 [13:01:45]MH_I2C_Read... [13:01:45]Read from MH i2c: E2 62 00 [13:01:45]MH_I2C_Read... [13:01:45]Read from MH i2c: E2 62 00 86 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 99 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [13:01: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 99 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:01:45]wFMCommunicate OK [13:01:45]SAM_PROTO_GetFieldsCounters done [13:01:45]requested_item shift.num is exist - process it [13:01:45]requested_item shift.opened is exist - process it [13:01:45]req_shift_opened [13:01:45]FM_GetShiftState [13:01:45]SAM_PROTO_GetShiftState [13:01:45]wFMCommunicate request_size=4 [13:01:45]MH_SAM_APDU [13:01:45]CAPDU: 80 13 01 00 [13:01:45]Write to MH i2c: E2 08 00 87 08 80 13 01 00 00 00 00 00 0C [13:01:45]Write i2c OK [13:01:45]MH_I2C_Read... [13:01:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:45]Read from MH i2c: E2 [13:01:45]MH_I2C_Read... [13:01:45]Read from MH i2c: E2 0E 00 [13:01:45]MH_I2C_Read... [13:01:45]Read from MH i2c: E2 0E 00 87 08 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 B8 [13:01:45]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [13:01:45]wFMCommunicate OK [13:01:45]SAM_PROTO_GetShiftState done [13:01:45]FM_GetShiftState done [13:01:45]req_shift_opened done [13:01:45]requested_item shift.open_date is exist - process it [13:01:45]req_shift_open_date [13:01:45]req_shift_open_date done [13:01:45]produce_requested_data done [13:01:45]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67481,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [13:01:45]process_action_free close_receipt [13:01:45]json_value_free [13:01:45]json_value_free done [13:01:45]process_json_proto returns [13:01:45]Send response to host [13:01:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67481,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [13:01:45]free response buf [13:01:45]execute_script done [13:01:45]execute_script returns [13:01:45]free content buf [13:01:45]Sock 8.Close socket [13:01:45]Sock 8.Thread stoped [13:01:47]OFD Sender: No OFD packet to send [13:01:49]accept exits with 9 [13:01:49]New connection [13:01:49]New thread 3067039076 created [13:01:49]Thread 3067182436 joined [13:01:49]Waiting for new connection... [13:01:49] Sock 9.Parse request [13:01:49]Sock 9.Check first char [13:01:49]Sock 9.First char is OK [13:01:49]request: POST /json_proto HTTP/1.0 [13:01:49]Method: POST [13:01:49]URL: /json_proto [13:01:49]Method is POST - this is cgi request [13:01:49]url: /json_proto [13:01:49]query_string will be loaded in cgi processing [13:01:49]execute_cgi json_proto POST (null) [13:01:49]execute_cgi path=json_proto method=POST [13:01:49]POST find Content-Length [13:01:49]Host: 172.17.41.195:8080 [13:01:49]Content-Length: 800 [13:01:49]Content-Type: application/json [13:01:49] [13:01:49]POST finish read [13:01:49]Found Content-Length = 800 [13:01:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507522", "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" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:49]execute_script... [13:01:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507522", "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" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:49]POST & json_proto [13:01:49]process_json_proto [13:01:49]json parsed OK: [13:01:49]protocol is kg_v1.0 [13:01:49]action value=close_receipt [13:01:49]process_action close_receipt [13:01:49]cmd_close_receipt [13:01:49]MH_GetDate [13:01:49]Write to MH i2c: F0 00 00 88 08 7F [13:01:49]Write i2c OK [13:01:49]MH_I2C_Read... [13:01:49]Read from MH i2c: F0 [13:01:49]MH_I2C_Read... [13:01:49]Read from MH i2c: F0 09 00 [13:01:49]MH_I2C_Read... [13:01:49]Read from MH i2c: F0 09 00 88 08 00 BE 03 46 66 FC 21 6F 64 E5 [13:01:49]GetLastDocTimeStamp 1715864500 [13:01:49]current date 1715864510 [13:01:49]FM_GetShiftState [13:01:49]SAM_PROTO_GetShiftState [13:01:49]wFMCommunicate request_size=4 [13:01:49]MH_SAM_APDU [13:01:49]CAPDU: 80 13 01 00 [13:01:49]Write to MH i2c: E2 08 00 89 08 80 13 01 00 00 00 00 00 0E [13:01:49]Write i2c OK [13:01:49]MH_I2C_Read... [13:01:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:49]Read from MH i2c: E2 [13:01:49]MH_I2C_Read... [13:01:49]Read from MH i2c: E2 0E 00 [13:01:49]MH_I2C_Read... [13:01:49]Read from MH i2c: E2 0E 00 89 08 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 BA [13:01:49]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [13:01:49]wFMCommunicate OK [13:01:49]SAM_PROTO_GetShiftState done [13:01:49]FM_GetShiftState done [13:01:49]opened in 1715818916 [13:01:49]opened+sec_in_day 1715905316 [13:01:49]quantity*price = 100023 [13:01:49]sum+1 = 100024 [13:01:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.23 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.23 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 80 16.05.2024 13:01 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67482 ФПД: 11301361714350 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T130150&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67482&fm=11301361714350&tin=02508201610067®Number=0000000000091845&sum=100023 [13:01:50]StoreToDocumentArchive [13:01:50]shift 357 fd 67482 [13:01:50]save to /storage/0357/doc_00067482 [13:01:50]save last doc name /storage/0357/doc_00067482 to /storage/kkm_last_doc_name [13:01:50]save OK [13:01:50]Clear old archive folders... [13:01:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:01:50]tlvbuf is 017CF460 [13:01:50]SAM_PROTO_ClearQueue [13:01:50]wFMCommunicate request_size=4 [13:01:50]MH_SAM_APDU [13:01:50]CAPDU: 80 09 00 00 [13:01:50]Write to MH i2c: E2 08 00 96 08 80 09 00 00 00 00 00 00 10 [13:01:50]Write i2c OK [13:01:50]MH_I2C_Read... [13:01:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:01:50]Read from MH i2c: E2 [13:01:50]MH_I2C_Read... [13:01:50]Read from MH i2c: E2 03 00 [13:01:50]MH_I2C_Read... [13:01:50]Read from MH i2c: E2 03 00 96 08 00 90 00 12 [13:01:50]RAPDU: 90 00 [13:01:50]wFMCommunicate OK [13:01:50]SAM_PROTO_ClearQueue done [13:01:50]KKMCreateOFDPacket [13:01:50]OFDProtocolAddRootSTLVToBuf [13:01:50]FM_MakeSignedData [13:01:50]FM_MakeSignedData [13:01:50]SAM_PROTO_SignData [13:01:50]wFMCommunicate request_size=4 [13:01:50]MH_SAM_APDU [13:01:50]CAPDU: 80 0D 01 02 [13:01:50]Write to MH i2c: E2 08 00 97 08 80 0D 01 02 00 00 00 00 18 [13:01:50]Write i2c OK [13:01:50]MH_I2C_Read... [13:01:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:01:50]Read from MH i2c: E2 [13:01:50]MH_I2C_Read... [13:01:50]Read from MH i2c: E2 03 00 [13:01:50]MH_I2C_Read... [13:01:50]Read from MH i2c: E2 03 00 97 08 00 90 00 13 [13:01:50]RAPDU: 90 00 [13:01:50]wFMCommunicate OK [13:01:50]wFMCommunicate request_size=255 [13:01:50]MH_SAM_APDU [13:01:50]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 BE 03 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 9A 07 01 00 35 04 06 00 0A 47 4D A6 [13:01:50]Write to MH i2c: E2 02 01 98 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 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 BE 03 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 9A 07 01 00 35 04 06 00 0A 47 4D A6 00 00 29 [13:01:50]Write i2c OK [13:01:50]MH_I2C_Read... [13:01:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:51]Read from MH i2c: E2 [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: E2 03 00 [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: E2 03 00 98 08 00 90 00 14 [13:01:51]RAPDU: 90 00 [13:01:51]wFMCommunicate OK [13:01:51]wFMCommunicate request_size=7 [13:01:51]MH_SAM_APDU [13:01:51]CAPDU: 80 0D 02 02 02 84 AE [13:01:51]Write to MH i2c: E2 0A 00 99 08 80 0D 02 02 02 00 84 AE 00 00 51 [13:01:51]Write i2c OK [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: E2 [13:01:51]MH_I2C_Read... [13:01:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:51]Read from MH i2c: E2 03 00 [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: E2 03 00 99 08 00 90 00 15 [13:01:51]RAPDU: 90 00 [13:01:51]wFMCommunicate OK [13:01:51]wFMCommunicate request_size=4 [13:01:51]MH_SAM_APDU [13:01:51]CAPDU: 80 0D 03 02 [13:01:51]Write to MH i2c: E2 08 00 9A 08 80 0D 03 02 00 00 00 00 1D [13:01:51]Write i2c OK [13:01:51]MH_I2C_Read... [13:01:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:01:51]Read from MH i2c: E2 [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: E2 0B 00 [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: E2 0B 00 9A 08 00 C0 34 2C AA 54 0B 97 AD 90 00 8B [13:01:51]RAPDU: C0 34 2C AA 54 0B 97 AD 90 00 [13:01:51]wFMCommunicate OK [13:01:51]SAM_PROTO_SignData done [13:01:51]FM_MakeSignedData done [13:01:51]CreateOFDProtocolMessage [13:01:51]wFMCommunicate request_size=4 [13:01:51]MH_SAM_APDU [13:01:51]CAPDU: 80 11 00 00 [13:01:51]Write to MH i2c: E2 08 00 9B 08 80 11 00 00 00 00 00 00 1D [13:01:51]Write i2c OK [13:01:51]MH_I2C_Read... [13:01:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:51]Read from MH i2c: E2 [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: E2 17 00 [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: E2 17 00 9B 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 73 [13:01:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:01:51]wFMCommunicate OK [13:01:51]CreateOFDProtocolMessage done [13:01:51]OFDSenderStorePacket 67482 [13:01:51]StoreOFDPacket docnum=67482 [13:01:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 7B C7 04 01 89 1C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 BE 03 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 9A 07 01 00 35 04 06 00 0A 47 4D A6 84 AE C0 34 2C AA 54 0B 97 AD [13:01:51]CheckFolder [13:01:51]dirname=/storage/ofd_packets [13:01:51]CheckFolder done [13:01:51]ProducePacketName [13:01:51]name=ofd_packets/00067482 [13:01:51]NVStorageSaveData ofd_packets/00067482 [13:01:51]File name is /storage/ofd_packets/00067482 [13:01:51]Write 298 bytes [13:01:51]NVStorageSaveData done [13:01:51]OFDSenderStorePacket done [13:01:51]KKMCreateOFDPacket done [13:01:51]NVStorageSaveData kkm_last_timestamp [13:01:51]File name is /storage/kkm_last_timestamp [13:01:51]Write 4 bytes [13:01:51]NVStorageSaveData done [13:01:51]ExternCall_PrintAddStr [13:01:51]wPrintStart [13:01:51]Write to MH i2c: 01 00 00 9C 08 A4 [13:01:51]Write i2c OK [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: 01 [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: 01 07 00 [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: 01 07 00 9C 08 00 00 00 00 00 FF 0F B9 [13:01:51]RasterBufferAndPrint [13:01:51]line Счет N : (1)507522 [13:01:51]line ИНН: 02508201610067 [13:01:51]line Контрольно-Кассовый Чек [13:01:51]line ПРОДАЖА [13:01:51]line ТРК (МРК, ГНК) : 31 [13:01:51]line Товар: 2710194210 [13:01:51]line ДТ-К-5 [13:01:51]line 13.390 * 74.70 [13:01:51]line = 1000.23 [13:01:51]line НДС 12% НСП 1% [13:01:51]line > о реализуемом товаре [13:01:51]line ИТОГО: 1000.23 [13:01:51]line НСП 1% : 8.85 [13:01:51]line НДС 12% : 106.22 [13:01:51]line Наличными: 0.00 [13:01:51]line Безнал.: 1000.23 [13:01:51]line Место: АЗС № 91 "Партнер Нефть" [13:01:51]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:01:51]line СНО: Общий режим [13:01:51]line Чек 80 16.05.2024 13:01 [13:01:51]line Смена: 357 ФФД: 1.0 [13:01:51]line ЗНМ: 0300000119 [13:01:51]line РНМ: 0000000000091845 [13:01:51]line Версия ККМ: 001 [13:01:51]line Платежная система: O! деньги [13:01:51]line ФМ: 0000000000871829 [13:01:51]line ФД: 67482 [13:01:51]line ФПД: 11301361714350 [13:01:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T130150&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67482&fm=11301361714350&tin=02508201610067®Number=0000000000091845&sum=100023 [13:01:51]written 0, free lines is 4095 [13:01:51]OFD Sender: Processing packet 67482 [packets to send 35, broken 34] [13:01:51]ProducePacketName [13:01:51]name=ofd_packets/00067482 [13:01:51]OFD Sender: To server: pG, [13:01:51]CommunicateWithHost lk.salyk.kg:30040 [13:01:51]ConnectInit lk.salyk.kg [13:01:51]Connected sock=8 [13:01:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 7B C7 04 01 89 1C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 BE 03 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 9A 07 01 00 35 04 06 00 0A 47 4D A6 84 AE C0 34 2C AA 54 0B 97 AD [13:01:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 01 55 47 00 9E 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 38 32 39 10 04 04 00 9A 07 01 00 F4 03 04 00 98 AB 45 66 B6 04 01 00 00 03 25 83 7E B2 A6 26 20 [13:01:51]CommunicateWithHost err = 0 [13:01:51]CheckOFDResponse [13:01:51]1017 (14) - 77093643461234 [13:01:51]1041 (16) - 0000000000871829 [13:01:51]1040 (4) - 67482 [13:01:51]1012 (4) - 16.05.2024 06:45 [13:01:51]1206 (1) - 0 [13:01:51]OFD Sender: Remove packet 67482 [13:01:51]ProducePacketName [13:01:51]name=ofd_packets/00067482 [13:01:51]NVStorageDeleteData [13:01:51]Write to MH i2c: 01 00 00 C5 08 CD [13:01:51]Write i2c OK [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: 01 [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: 01 07 00 [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: 01 07 00 C5 08 00 00 00 00 00 F1 0C D1 [13:01:51]RasterBufferAndPrint [13:01:51]line [13:01:51]line [13:01:51]line [13:01:51]line [13:01:51]line [13:01:51]written 0, free lines is 3324 [13:01:51]MH_Cut [13:01:51]Write to MH i2c: D1 01 00 CC 08 01 A6 [13:01:51]Write i2c OK [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: D1 [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: D1 01 00 [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: D1 01 00 CC 08 00 A5 [13:01:51]Write to MH i2c: 01 00 00 CD 08 D5 [13:01:51]Write i2c OK [13:01:51]MH_I2C_Read... [13:01:52]OFD Sender: No OFD packet to send [13:01:52]*** Cut start [13:01:52]*** Purtial cut [13:01:52]*** Stage 1: CUTSNS_PIN = 1 [13:01:52]Read from MH i2c: 01 [13:01:52]MH_I2C_Read... [13:01:52]*** Stop cut motor [13:01:52]*** Cut end [13:01:52]Read from MH i2c: 01 07 00 [13:01:52]MH_I2C_Read... [13:01:52]Read from MH i2c: 01 07 00 CD 08 00 00 00 00 00 FF 0F EA [13:01:52]process_action close_receipt done [13:01:52]requested_data is exist [13:01:52]produce_requested_data [13:01:52]requested_item fm.sn is exist - process it [13:01:52]wFMCommunicate request_size=4 [13:01:52]MH_SAM_APDU [13:01:52]CAPDU: 80 11 00 00 [13:01:52]Write to MH i2c: E2 08 00 CE 08 80 11 00 00 00 00 00 00 50 [13:01:52]Write i2c OK [13:01:52]MH_I2C_Read... [13:01:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:52]Read from MH i2c: E2 [13:01:52]MH_I2C_Read... [13:01:52]Read from MH i2c: E2 17 00 [13:01:52]MH_I2C_Read... [13:01:52]Read from MH i2c: E2 17 00 CE 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A6 [13:01:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:01:52]wFMCommunicate OK [13:01:52]requested_item fd.num is exist - process it [13:01:52]SAM_PROTO_GetFieldsCounters [13:01:52]wFMCommunicate request_size=4 [13:01:52]MH_SAM_APDU [13:01:52]CAPDU: 80 13 00 00 [13:01:52]Write to MH i2c: E2 08 00 CF 08 80 13 00 00 00 00 00 00 53 [13:01:52]Write i2c OK [13:01:52]MH_I2C_Read... [13:01:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:52]Read from MH i2c: E2 [13:01:52]MH_I2C_Read... [13:01:52]Read from MH i2c: E2 62 00 [13:01:52]MH_I2C_Read... [13:01:52]Read from MH i2c: E2 62 00 CF 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 9A 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [13:01:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 9A 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:01:53]wFMCommunicate OK [13:01:53]SAM_PROTO_GetFieldsCounters done [13:01:53]requested_item shift.num is exist - process it [13:01:53]requested_item shift.opened is exist - process it [13:01:53]req_shift_opened [13:01:53]FM_GetShiftState [13:01:53]SAM_PROTO_GetShiftState [13:01:53]wFMCommunicate request_size=4 [13:01:53]MH_SAM_APDU [13:01:53]CAPDU: 80 13 01 00 [13:01:53]Write to MH i2c: E2 08 00 D0 08 80 13 01 00 00 00 00 00 55 [13:01:53]Write i2c OK [13:01:53]MH_I2C_Read... [13:01:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:53]Read from MH i2c: E2 [13:01:53]MH_I2C_Read... [13:01:53]Read from MH i2c: E2 0E 00 [13:01:53]MH_I2C_Read... [13:01:53]Read from MH i2c: E2 0E 00 D0 08 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 01 [13:01:53]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [13:01:53]wFMCommunicate OK [13:01:53]SAM_PROTO_GetShiftState done [13:01:53]FM_GetShiftState done [13:01:53]req_shift_opened done [13:01:53]requested_item shift.open_date is exist - process it [13:01:53]req_shift_open_date [13:01:53]req_shift_open_date done [13:01:53]produce_requested_data done [13:01:53]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67482,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [13:01:53]process_action_free close_receipt [13:01:53]json_value_free [13:01:53]json_value_free done [13:01:53]process_json_proto returns [13:01:53]Send response to host [13:01:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67482,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [13:01:53]free response buf [13:01:53]execute_script done [13:01:53]execute_script returns [13:01:53]free content buf [13:01:53]Sock 9.Close socket [13:01:53]Sock 9.Thread stoped [13:01:57]OFD Sender: No OFD packet to send [13:02:02]OFD Sender: No OFD packet to send [13:02:07]OFD Sender: No OFD packet to send [13:02:12]OFD Sender: No OFD packet to send [13:02:17]OFD Sender: No OFD packet to send [13:02:22]OFD Sender: No OFD packet to send [13:02:27]OFD Sender: No OFD packet to send [13:02:32]OFD Sender: No OFD packet to send [13:02:37]OFD Sender: No OFD packet to send [13:02:42]OFD Sender: No OFD packet to send [13:02:47]OFD Sender: No OFD packet to send [13:02:52]OFD Sender: No OFD packet to send [13:02:57]OFD Sender: No OFD packet to send [13:03:02]OFD Sender: No OFD packet to send [13:03:07]OFD Sender: No OFD packet to send [13:03:12]OFD Sender: No OFD packet to send [13:03:17]OFD Sender: No OFD packet to send [13:03:22]OFD Sender: No OFD packet to send [13:03:27]OFD Sender: No OFD packet to send [13:03:32]OFD Sender: No OFD packet to send [13:03:37]OFD Sender: No OFD packet to send [13:03:42]OFD Sender: No OFD packet to send [13:03:47]OFD Sender: No OFD packet to send [13:03:52]OFD Sender: No OFD packet to send [13:03:57]OFD Sender: No OFD packet to send [13:04:02]OFD Sender: No OFD packet to send [13:04:07]OFD Sender: No OFD packet to send [13:04:12]OFD Sender: No OFD packet to send [13:04:17]OFD Sender: No OFD packet to send [13:04:22]OFD Sender: No OFD packet to send [13:04:27]OFD Sender: No OFD packet to send [13:04:32]OFD Sender: No OFD packet to send [13:04:37]OFD Sender: No OFD packet to send [13:04:42]OFD Sender: No OFD packet to send [13:04:47]OFD Sender: No OFD packet to send [13:04:52]OFD Sender: No OFD packet to send [13:04:57]OFD Sender: No OFD packet to send [13:05:02]OFD Sender: No OFD packet to send [13:05:07]OFD Sender: No OFD packet to send [13:05:12]OFD Sender: No OFD packet to send [13:05:17]OFD Sender: No OFD packet to send [13:05:22]OFD Sender: No OFD packet to send [13:05:27]OFD Sender: No OFD packet to send [13:05:32]OFD Sender: No OFD packet to send [13:05:37]OFD Sender: No OFD packet to send [13:05:42]OFD Sender: No OFD packet to send [13:05:47]OFD Sender: No OFD packet to send [13:05:52]OFD Sender: No OFD packet to send [13:05:57]OFD Sender: No OFD packet to send [13:06:02]OFD Sender: No OFD packet to send [13:06:07]OFD Sender: No OFD packet to send [13:06:12]OFD Sender: No OFD packet to send [13:06:17]OFD Sender: No OFD packet to send [13:06:22]OFD Sender: No OFD packet to send [13:06:27]OFD Sender: No OFD packet to send [13:06:32]OFD Sender: No OFD packet to send [13:06:37]OFD Sender: No OFD packet to send [13:06:42]OFD Sender: No OFD packet to send [13:06:47]OFD Sender: No OFD packet to send [13:06:52]OFD Sender: No OFD packet to send [13:06:57]OFD Sender: No OFD packet to send [13:07:02]OFD Sender: No OFD packet to send [13:07:07]OFD Sender: No OFD packet to send [13:07:12]OFD Sender: No OFD packet to send [13:07:17]OFD Sender: No OFD packet to send [13:07:22]OFD Sender: No OFD packet to send [13:07:27]OFD Sender: No OFD packet to send [13:07:32]OFD Sender: No OFD packet to send [13:07:37]OFD Sender: No OFD packet to send [13:07:42]OFD Sender: No OFD packet to send [13:07:47]OFD Sender: No OFD packet to send [13:07:52]OFD Sender: No OFD packet to send [13:07:57]OFD Sender: No OFD packet to send [13:08:02]OFD Sender: No OFD packet to send [13:08:07]OFD Sender: No OFD packet to send [13:08:12]OFD Sender: No OFD packet to send [13:08:17]OFD Sender: No OFD packet to send [13:08:22]OFD Sender: No OFD packet to send [13:08:27]OFD Sender: No OFD packet to send [13:08:32]OFD Sender: No OFD packet to send [13:08:37]OFD Sender: No OFD packet to send [13:08:42]OFD Sender: No OFD packet to send [13:08:47]OFD Sender: No OFD packet to send [13:08:52]OFD Sender: No OFD packet to send [13:08:57]OFD Sender: No OFD packet to send [13:09:02]OFD Sender: No OFD packet to send [13:09:07]OFD Sender: No OFD packet to send [13:09:12]OFD Sender: No OFD packet to send [13:09:17]OFD Sender: No OFD packet to send [13:09:22]OFD Sender: No OFD packet to send [13:09:27]OFD Sender: No OFD packet to send [13:09:32]OFD Sender: No OFD packet to send [13:09:37]OFD Sender: No OFD packet to send [13:09:42]OFD Sender: No OFD packet to send [13:09:47]OFD Sender: No OFD packet to send [13:09:52]OFD Sender: No OFD packet to send [13:09:57]OFD Sender: No OFD packet to send [13:10:02]OFD Sender: No OFD packet to send [13:10:07]OFD Sender: No OFD packet to send [13:10:12]OFD Sender: No OFD packet to send [13:10:17]OFD Sender: No OFD packet to send [13:10:22]OFD Sender: No OFD packet to send [13:10:27]OFD Sender: No OFD packet to send [13:10:32]OFD Sender: No OFD packet to send [13:10:37]OFD Sender: No OFD packet to send [13:10:42]OFD Sender: No OFD packet to send [13:10:47]OFD Sender: No OFD packet to send [13:10:52]OFD Sender: No OFD packet to send [13:10:57]OFD Sender: No OFD packet to send [13:11:02]OFD Sender: No OFD packet to send [13:11:07]OFD Sender: No OFD packet to send [13:11:12]OFD Sender: No OFD packet to send [13:11:17]OFD Sender: No OFD packet to send [13:11:22]OFD Sender: No OFD packet to send [13:11:27]OFD Sender: No OFD packet to send [13:11:32]OFD Sender: No OFD packet to send [13:11:37]OFD Sender: No OFD packet to send [13:11:42]OFD Sender: No OFD packet to send [13:11:47]OFD Sender: No OFD packet to send [13:11:52]OFD Sender: No OFD packet to send [13:11:57]OFD Sender: No OFD packet to send [13:12:02]OFD Sender: No OFD packet to send [13:12:07]OFD Sender: No OFD packet to send [13:12:12]OFD Sender: No OFD packet to send [13:12:17]OFD Sender: No OFD packet to send [13:12:22]OFD Sender: No OFD packet to send [13:12:27]OFD Sender: No OFD packet to send [13:12:32]OFD Sender: No OFD packet to send [13:12:37]OFD Sender: No OFD packet to send [13:12:42]OFD Sender: No OFD packet to send [13:12:47]OFD Sender: No OFD packet to send [13:12:52]OFD Sender: No OFD packet to send [13:12:57]OFD Sender: No OFD packet to send [13:13:02]OFD Sender: No OFD packet to send [13:13:07]OFD Sender: No OFD packet to send [13:13:12]OFD Sender: No OFD packet to send [13:13:17]OFD Sender: No OFD packet to send [13:13:22]OFD Sender: No OFD packet to send [13:13:27]OFD Sender: No OFD packet to send [13:13:32]OFD Sender: No OFD packet to send [13:13:37]OFD Sender: No OFD packet to send [13:13:42]OFD Sender: No OFD packet to send [13:13:42]accept exits with 10 [13:13:42]New connection [13:13:42]New thread 3067182436 created [13:13:42]Thread 3067039076 joined [13:13:42]Waiting for new connection... [13:13:42] Sock 10.Parse request [13:13:42]Sock 10.Check first char [13:13:42]Sock 10.First char is OK [13:13:42]request: POST /json_proto HTTP/1.0 [13:13:42]Method: POST [13:13:42]URL: /json_proto [13:13:42]Method is POST - this is cgi request [13:13:42]url: /json_proto [13:13:42]query_string will be loaded in cgi processing [13:13:42]execute_cgi json_proto POST (null) [13:13:42]execute_cgi path=json_proto method=POST [13:13:42]POST find Content-Length [13:13:42]Host: 172.17.41.195:8080 [13:13:42]Content-Length: 800 [13:13:42]Content-Type: application/json [13:13:42] [13:13:42]POST finish read [13:13:42]Found Content-Length = 800 [13:13:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507523", "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" : 74.70, "quantity" : 57.090, "sum" : 4264.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4264.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:42]execute_script... [13:13: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)507523", "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" : 74.70, "quantity" : 57.090, "sum" : 4264.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4264.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:42]POST & json_proto [13:13:42]process_json_proto [13:13:42]json parsed OK: [13:13:42]protocol is kg_v1.0 [13:13:42]action value=close_receipt [13:13:42]process_action close_receipt [13:13:42]cmd_close_receipt [13:13:42]MH_GetDate [13:13:42]Write to MH i2c: F0 00 00 D1 08 C8 [13:13:42]Write i2c OK [13:13:42]MH_I2C_Read... [13:13:42]Read from MH i2c: F0 [13:13:42]MH_I2C_Read... [13:13:42]Read from MH i2c: F0 09 00 [13:13:42]MH_I2C_Read... [13:13:42]Read from MH i2c: F0 09 00 D1 08 00 87 06 46 66 FC 21 6F 64 FA [13:13:42]GetLastDocTimeStamp 1715864510 [13:13:42]current date 1715865223 [13:13:42]FM_GetShiftState [13:13:42]SAM_PROTO_GetShiftState [13:13:42]wFMCommunicate request_size=4 [13:13:42]MH_SAM_APDU [13:13:42]CAPDU: 80 13 01 00 [13:13:42]Write to MH i2c: E2 08 00 D2 08 80 13 01 00 00 00 00 00 57 [13:13:42]Write i2c OK [13:13:42]MH_I2C_Read... [13:13:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:42]Read from MH i2c: E2 [13:13:42]MH_I2C_Read... [13:13:42]Read from MH i2c: E2 0E 00 [13:13:42]MH_I2C_Read... [13:13:42]Read from MH i2c: E2 0E 00 D2 08 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 03 [13:13:42]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [13:13:42]wFMCommunicate OK [13:13:42]SAM_PROTO_GetShiftState done [13:13:42]FM_GetShiftState done [13:13:42]opened in 1715818916 [13:13:42]opened+sec_in_day 1715905316 [13:13:42]quantity*price = 426462 [13:13:42]sum+1 = 426463 [13:13:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4264.62 НСП 1% : 37.74 НДС 12% : 452.88 Наличными: 0.00 Безнал.: 4264.62 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 81 16.05.2024 13:13 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67483 ФПД: 50320068602187 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T131343&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67483&fm=50320068602187&tin=02508201610067®Number=0000000000091845&sum=426462 [13:13:44]StoreToDocumentArchive [13:13:44]shift 357 fd 67483 [13:13:44]save to /storage/0357/doc_00067483 [13:13:44]save last doc name /storage/0357/doc_00067483 to /storage/kkm_last_doc_name [13:13:44]save OK [13:13:44]Clear old archive folders... [13:13:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:13:44]tlvbuf is 017CD6F0 [13:13:44]SAM_PROTO_ClearQueue [13:13:44]wFMCommunicate request_size=4 [13:13:44]MH_SAM_APDU [13:13:44]CAPDU: 80 09 00 00 [13:13:44]Write to MH i2c: E2 08 00 DF 08 80 09 00 00 00 00 00 00 59 [13:13:44]Write i2c OK [13:13:44]MH_I2C_Read... [13:13:44]Read from MH i2c: E2 [13:13:44]MH_I2C_Read... [13:13:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:13:44]Read from MH i2c: E2 03 00 [13:13:44]MH_I2C_Read... [13:13:44]Read from MH i2c: E2 03 00 DF 08 00 90 00 5B [13:13:44]RAPDU: 90 00 [13:13:44]wFMCommunicate OK [13:13:44]SAM_PROTO_ClearQueue done [13:13:44]KKMCreateOFDPacket [13:13:44]OFDProtocolAddRootSTLVToBuf [13:13:44]FM_MakeSignedData [13:13:44]FM_MakeSignedData [13:13:44]SAM_PROTO_SignData [13:13:44]wFMCommunicate request_size=4 [13:13:44]MH_SAM_APDU [13:13:44]CAPDU: 80 0D 01 02 [13:13:44]Write to MH i2c: E2 08 00 E0 08 80 0D 01 02 00 00 00 00 61 [13:13:44]Write i2c OK [13:13:44]MH_I2C_Read... [13:13:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:13:44]Read from MH i2c: E2 [13:13:44]MH_I2C_Read... [13:13:44]Read from MH i2c: E2 03 00 [13:13:44]MH_I2C_Read... [13:13:44]Read from MH i2c: E2 03 00 E0 08 00 90 00 5C [13:13:44]RAPDU: 90 00 [13:13:44]wFMCommunicate OK [13:13:44]wFMCommunicate request_size=255 [13:13:44]MH_SAM_APDU [13:13:44]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 DF 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 DE 81 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DE 81 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 B0 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DE 81 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 87 06 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 9B 07 01 00 35 04 06 00 2D C4 0D D0 [13:13:44]Write to MH i2c: E2 02 01 E1 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 02 DF 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 DE 81 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DE 81 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 B0 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DE 81 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 87 06 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 9B 07 01 00 35 04 06 00 2D C4 0D D0 00 00 E3 [13:13:44]Write i2c OK [13:13:44]MH_I2C_Read... [13:13:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:44]Read from MH i2c: E2 [13:13:44]MH_I2C_Read... [13:13:44]Read from MH i2c: E2 03 00 [13:13:44]MH_I2C_Read... [13:13:44]Read from MH i2c: E2 03 00 E1 08 00 90 00 5D [13:13:44]RAPDU: 90 00 [13:13:44]wFMCommunicate OK [13:13:44]wFMCommunicate request_size=7 [13:13:44]MH_SAM_APDU [13:13:44]CAPDU: 80 0D 02 02 02 69 4B [13:13:44]Write to MH i2c: E2 0A 00 E2 08 80 0D 02 02 02 00 69 4B 00 00 1C [13:13:44]Write i2c OK [13:13:44]MH_I2C_Read... [13:13:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:44]Read from MH i2c: E2 [13:13:44]MH_I2C_Read... [13:13:44]Read from MH i2c: E2 03 00 [13:13:44]MH_I2C_Read... [13:13:44]Read from MH i2c: E2 03 00 E2 08 00 90 00 5E [13:13:44]RAPDU: 90 00 [13:13:44]wFMCommunicate OK [13:13:44]wFMCommunicate request_size=4 [13:13:44]MH_SAM_APDU [13:13:44]CAPDU: 80 0D 03 02 [13:13:44]Write to MH i2c: E2 08 00 E3 08 80 0D 03 02 00 00 00 00 66 [13:13:44]Write i2c OK [13:13:44]MH_I2C_Read... [13:13:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:13:44]Read from MH i2c: E2 [13:13:44]MH_I2C_Read... [13:13:44]Read from MH i2c: E2 0B 00 [13:13:44]MH_I2C_Read... [13:13:44]Read from MH i2c: E2 0B 00 E3 08 00 12 84 2F D5 66 EF C7 FE 90 00 1B [13:13:44]RAPDU: 12 84 2F D5 66 EF C7 FE 90 00 [13:13:44]wFMCommunicate OK [13:13:44]SAM_PROTO_SignData done [13:13:44]FM_MakeSignedData done [13:13:44]CreateOFDProtocolMessage [13:13:44]wFMCommunicate request_size=4 [13:13:44]MH_SAM_APDU [13:13:44]CAPDU: 80 11 00 00 [13:13:44]Write to MH i2c: E2 08 00 E4 08 80 11 00 00 00 00 00 00 66 [13:13:44]Write i2c OK [13:13:44]MH_I2C_Read... [13:13:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:44]Read from MH i2c: E2 [13:13:44]MH_I2C_Read... [13:13:44]Read from MH i2c: E2 17 00 [13:13:44]MH_I2C_Read... [13:13:44]Read from MH i2c: E2 17 00 E4 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BC [13:13:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:13:44]wFMCommunicate OK [13:13:44]CreateOFDProtocolMessage done [13:13:44]OFDSenderStorePacket 67483 [13:13:44]StoreOFDPacket docnum=67483 [13:13:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 7A 42 04 01 18 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 02 DF 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 DE 81 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DE 81 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 B0 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DE 81 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 87 06 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 9B 07 01 00 35 04 06 00 2D C4 0D D0 69 4B 12 84 2F D5 66 EF C7 FE [13:13:44]CheckFolder [13:13:44]dirname=/storage/ofd_packets [13:13:44]CheckFolder done [13:13:44]ProducePacketName [13:13:44]name=ofd_packets/00067483 [13:13:44]NVStorageSaveData ofd_packets/00067483 [13:13:44]File name is /storage/ofd_packets/00067483 [13:13:44]Write 298 bytes [13:13:44]NVStorageSaveData done [13:13:44]OFDSenderStorePacket done [13:13:44]KKMCreateOFDPacket done [13:13:44]NVStorageSaveData kkm_last_timestamp [13:13:44]File name is /storage/kkm_last_timestamp [13:13:44]Write 4 bytes [13:13:44]NVStorageSaveData done [13:13:44]ExternCall_PrintAddStr [13:13:44]wPrintStart [13:13:44]Write to MH i2c: 01 00 00 E5 08 ED [13:13:44]Write i2c OK [13:13:44]MH_I2C_Read... [13:13:44]Read from MH i2c: 01 [13:13:44]MH_I2C_Read... [13:13:44]Read from MH i2c: 01 07 00 [13:13:44]MH_I2C_Read... [13:13:44]Read from MH i2c: 01 07 00 E5 08 00 00 00 00 00 FF 0F 02 [13:13:44]RasterBufferAndPrint [13:13:44]line Счет N : (1)507523 [13:13:44]line ИНН: 02508201610067 [13:13:44]line Контрольно-Кассовый Чек [13:13:44]line ПРОДАЖА [13:13:44]line ТРК (МРК, ГНК) : 11 [13:13:44]line Товар: 2710194210 [13:13:44]line ДТ-К-5 [13:13:44]line 57.090 * 74.70 [13:13:44]line = 4264.62 [13:13:44]line НДС 12% НСП 1% [13:13:44]line > о реализуемом товаре [13:13:44]line ИТОГО: 4264.62 [13:13:44]line НСП 1% : 37.74 [13:13:44]line НДС 12% : 452.88 [13:13:44]line Наличными: 0.00 [13:13:44]line Безнал.: 4264.62 [13:13:44]line Место: АЗС № 91 "Партнер Нефть" [13:13:44]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:13:44]line СНО: Общий режим [13:13:44]line Чек 81 16.05.2024 13:13 [13:13:44]line Смена: 357 ФФД: 1.0 [13:13:44]line ЗНМ: 0300000119 [13:13:44]line РНМ: 0000000000091845 [13:13:44]line Версия ККМ: 001 [13:13:44]line Платежная система: O! деньги [13:13:44]line ФМ: 0000000000871829 [13:13:44]line ФД: 67483 [13:13:44]line ФПД: 50320068602187 [13:13:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T131343&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67483&fm=50320068602187&tin=02508201610067®Number=0000000000091845&sum=426462 [13:13:44]OFD Sender: Processing packet 67483 [packets to send 35, broken 34] [13:13:44]ProducePacketName [13:13:44]name=ofd_packets/00067483 [13:13:44]OFD Sender: To server: pG, [13:13:44]CommunicateWithHost lk.salyk.kg:30040 [13:13:44]ConnectInit lk.salyk.kg [13:13:44]written 0, free lines is 4095 [13:13:44]Connected sock=9 [13:13: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 38 32 39 0C 01 00 00 7A 42 04 01 18 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 02 DF 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 DE 81 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DE 81 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 B0 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DE 81 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 87 06 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 9B 07 01 00 35 04 06 00 2D C4 0D D0 69 4B 12 84 2F D5 66 EF C7 FE [13:13:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 5C D0 47 00 B3 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 38 32 39 10 04 04 00 9B 07 01 00 F4 03 04 00 62 AE 45 66 B6 04 01 00 00 28 6F DB 47 CB F4 8E 0C [13:13:45]CommunicateWithHost err = 0 [13:13:45]CheckOFDResponse [13:13:45]1017 (14) - 77093643461234 [13:13:45]1041 (16) - 0000000000871829 [13:13:45]1040 (4) - 67483 [13:13:45]1012 (4) - 16.05.2024 06:57 [13:13:45]1206 (1) - 0 [13:13:45]OFD Sender: Remove packet 67483 [13:13:45]ProducePacketName [13:13:45]name=ofd_packets/00067483 [13:13:45]NVStorageDeleteData [13:13:45]Write to MH i2c: 01 00 00 0E 09 17 [13:13:45]Write i2c OK [13:13:45]MH_I2C_Read... [13:13:45]Read from MH i2c: 01 [13:13:45]MH_I2C_Read... [13:13:45]Read from MH i2c: 01 07 00 [13:13:45]MH_I2C_Read... [13:13:45]Read from MH i2c: 01 07 00 0E 09 00 00 00 00 00 F7 0C 21 [13:13:45]RasterBufferAndPrint [13:13:45]line [13:13:45]line [13:13:45]line [13:13:45]line [13:13:45]line [13:13:45]written 0, free lines is 3326 [13:13:45]MH_Cut [13:13:45]Write to MH i2c: D1 01 00 15 09 01 F0 [13:13:45]Write i2c OK [13:13:45]MH_I2C_Read... [13:13:45]Read from MH i2c: D1 [13:13:45]MH_I2C_Read... [13:13:45]Read from MH i2c: D1 01 00 [13:13:45]MH_I2C_Read... [13:13:45]Read from MH i2c: D1 01 00 15 09 00 EF [13:13:45]Write to MH i2c: 01 00 00 16 09 1F [13:13:45]Write i2c OK [13:13:45]MH_I2C_Read... [13:13:45]OFD Sender: No OFD packet to send [13:13:46]*** Cut start [13:13:46]*** Purtial cut [13:13:46]*** CUTSNS_PIN = 0 [13:13:46]*** Stage 1: CUTSNS_PIN = 1 [13:13:48]Read from MH i2c: 01 [13:13:48]MH_I2C_Read... [13:13:48]*** Stop cut motor [13:13:48]*** Cut end [13:13:48]Read from MH i2c: 01 07 00 [13:13:48]MH_I2C_Read... [13:13:48]Read from MH i2c: 01 07 00 16 09 00 00 00 00 00 FF 0F 34 [13:13:48]process_action close_receipt done [13:13:48]requested_data is exist [13:13:48]produce_requested_data [13:13:48]requested_item fm.sn is exist - process it [13:13:48]wFMCommunicate request_size=4 [13:13:48]MH_SAM_APDU [13:13:48]CAPDU: 80 11 00 00 [13:13:48]Write to MH i2c: E2 08 00 17 09 80 11 00 00 00 00 00 00 9A [13:13:48]Write i2c OK [13:13:48]MH_I2C_Read... [13:13:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:48]Read from MH i2c: E2 [13:13:48]MH_I2C_Read... [13:13:48]Read from MH i2c: E2 17 00 [13:13:48]MH_I2C_Read... [13:13:48]Read from MH i2c: E2 17 00 17 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F0 [13:13:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:13:48]wFMCommunicate OK [13:13:48]requested_item fd.num is exist - process it [13:13:48]SAM_PROTO_GetFieldsCounters [13:13:48]wFMCommunicate request_size=4 [13:13:48]MH_SAM_APDU [13:13:48]CAPDU: 80 13 00 00 [13:13:48]Write to MH i2c: E2 08 00 18 09 80 13 00 00 00 00 00 00 9D [13:13:48]Write i2c OK [13:13:48]MH_I2C_Read... [13:13:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:13:48]Read from MH i2c: E2 [13:13:48]MH_I2C_Read... [13:13:48]Read from MH i2c: E2 62 00 [13:13:48]MH_I2C_Read... [13:13:48]Read from MH i2c: E2 62 00 18 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 9B 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [13:13: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 9B 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:13:48]wFMCommunicate OK [13:13:48]SAM_PROTO_GetFieldsCounters done [13:13:48]requested_item shift.num is exist - process it [13:13:48]requested_item shift.opened is exist - process it [13:13:48]req_shift_opened [13:13:48]FM_GetShiftState [13:13:48]SAM_PROTO_GetShiftState [13:13:48]wFMCommunicate request_size=4 [13:13:48]MH_SAM_APDU [13:13:48]CAPDU: 80 13 01 00 [13:13:48]Write to MH i2c: E2 08 00 19 09 80 13 01 00 00 00 00 00 9F [13:13:48]Write i2c OK [13:13:48]MH_I2C_Read... [13:13:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:48]Read from MH i2c: E2 [13:13:48]MH_I2C_Read... [13:13:48]Read from MH i2c: E2 0E 00 [13:13:48]MH_I2C_Read... [13:13:48]Read from MH i2c: E2 0E 00 19 09 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 4B [13:13:48]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [13:13:48]wFMCommunicate OK [13:13:48]SAM_PROTO_GetShiftState done [13:13:48]FM_GetShiftState done [13:13:48]req_shift_opened done [13:13:48]requested_item shift.open_date is exist - process it [13:13:48]req_shift_open_date [13:13:48]req_shift_open_date done [13:13:48]produce_requested_data done [13:13:48]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67483,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [13:13:48]process_action_free close_receipt [13:13:48]json_value_free [13:13:48]json_value_free done [13:13:48]process_json_proto returns [13:13:48]Send response to host [13:13:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67483,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [13:13:48]free response buf [13:13:48]execute_script done [13:13:48]execute_script returns [13:13:48]free content buf [13:13:48]Sock 10.Close socket [13:13:48]Sock 10.Thread stoped [13:13:50]OFD Sender: No OFD packet to send [13:13:55]OFD Sender: No OFD packet to send [13:14:00]OFD Sender: No OFD packet to send [13:14:05]OFD Sender: No OFD packet to send [13:14:10]OFD Sender: No OFD packet to send [13:14:15]OFD Sender: No OFD packet to send [13:14:20]OFD Sender: No OFD packet to send [13:14:25]OFD Sender: No OFD packet to send [13:14:30]OFD Sender: No OFD packet to send [13:14:35]OFD Sender: No OFD packet to send [13:14:40]OFD Sender: No OFD packet to send [13:14:45]OFD Sender: No OFD packet to send [13:14:50]OFD Sender: No OFD packet to send [13:14:55]OFD Sender: No OFD packet to send [13:15:00]OFD Sender: No OFD packet to send [13:15:05]OFD Sender: No OFD packet to send [13:15:10]OFD Sender: No OFD packet to send [13:15:15]OFD Sender: No OFD packet to send [13:15:20]OFD Sender: No OFD packet to send [13:15:25]OFD Sender: No OFD packet to send [13:15:30]OFD Sender: No OFD packet to send [13:15:35]OFD Sender: No OFD packet to send [13:15:40]OFD Sender: No OFD packet to send [13:15:45]OFD Sender: No OFD packet to send [13:15:50]OFD Sender: No OFD packet to send [13:15:55]OFD Sender: No OFD packet to send [13:16:00]OFD Sender: No OFD packet to send [13:16:05]OFD Sender: No OFD packet to send [13:16:10]OFD Sender: No OFD packet to send [13:16:15]OFD Sender: No OFD packet to send [13:16:20]OFD Sender: No OFD packet to send [13:16:25]OFD Sender: No OFD packet to send [13:16:30]OFD Sender: No OFD packet to send [13:16:35]OFD Sender: No OFD packet to send [13:16:40]OFD Sender: No OFD packet to send [13:16:45]OFD Sender: No OFD packet to send [13:16:50]OFD Sender: No OFD packet to send [13:16:55]OFD Sender: No OFD packet to send [13:17:00]OFD Sender: No OFD packet to send [13:17:05]OFD Sender: No OFD packet to send [13:17:10]accept exits with 8 [13:17:10]New connection [13:17:10]New thread 3067039076 created [13:17:10]Thread 3067182436 joined [13:17:10]Waiting for new connection... [13:17:10] Sock 8.Parse request [13:17:10]Sock 8.Check first char [13:17:10]Sock 8.First char is OK [13:17:10]request: POST /json_proto HTTP/1.0 [13:17:10]Method: POST [13:17:10]URL: /json_proto [13:17:10]Method is POST - this is cgi request [13:17:10]url: /json_proto [13:17:10]query_string will be loaded in cgi processing [13:17:10]execute_cgi json_proto POST (null) [13:17:10]execute_cgi path=json_proto method=POST [13:17:10]POST find Content-Length [13:17:10]Host: 172.17.41.195:8080 [13:17:10]Content-Length: 1171 [13:17:10]Content-Type: application/json [13:17:10] [13:17:10]POST finish read [13:17:10]Found Content-Length = 1171 [13:17:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507524\u000A16.05.2024 12:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1494.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30106019\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:10]execute_script... [13:17:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507524\u000A16.05.2024 12:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1494.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30106019\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:10]POST & json_proto [13:17:10]process_json_proto [13:17:10]json parsed OK: [13:17:10]protocol is kg_v1.0 [13:17:10]action value=print_text [13:17:10]process_action print_text [13:17:10]cmd_print_text [13:17:10]ExternCall_PrintAddStr [13:17:10]wPrintStart [13:17:10]Write to MH i2c: 01 00 00 1A 09 23 [13:17:10]Write i2c OK [13:17:10]MH_I2C_Read... [13:17:10]Read from MH i2c: 01 [13:17:10]MH_I2C_Read... [13:17:10]Read from MH i2c: 01 07 00 [13:17:10]MH_I2C_Read... [13:17:10]Read from MH i2c: 01 07 00 1A 09 00 00 00 00 00 FF 0F 38 [13:17:10]RasterBufferAndPrint [13:17:10]line *****ТОВАРНЫЙ ЧЕК***** [13:17:10]line АЗС-91 [13:17:10]line Партнер нефть [13:17:10]line 02508201610067 [13:17:10]line Кассир : Пайзулдаева А. [13:17:10]line Счет N : (1)507524 [13:17:10]line 16.05.2024 12:59 [13:17:10]line ПРОДАЖА [13:17:10]line ТРК (МРК, ГНК): 31 [13:17:10]line Вид ГСМ : 2710194210 [13:17:10]line ДТ-К-5 [13:17:10]line 20.000 x 74.70 [13:17:10]line ИТОГ: 1494.00 [13:17:10]line Тип оплаты: Талоны: ТК ГПНА Online [13:17:10]line 30106019 [13:17:10]line ______________________ [13:17:10]line (подпись) [13:17:10]written 0, free lines is 4095 [13:17:10]Write to MH i2c: 01 00 00 2E 09 37 [13:17:10]Write i2c OK [13:17:10]MH_I2C_Read... [13:17:10]Read from MH i2c: 01 [13:17:10]MH_I2C_Read... [13:17:10]Read from MH i2c: 01 07 00 [13:17:10]MH_I2C_Read... [13:17:10]Read from MH i2c: 01 07 00 2E 09 00 00 00 00 00 10 0E 5C [13:17:10]RasterBufferAndPrint [13:17:10]line [13:17:10]line [13:17:10]line [13:17:10]line [13:17:10]line [13:17:10]written 0, free lines is 3601 [13:17:10]MH_Cut [13:17:10]Write to MH i2c: D1 01 00 35 09 01 10 [13:17:10]Write i2c OK [13:17:10]MH_I2C_Read... [13:17:10]Read from MH i2c: D1 [13:17:10]MH_I2C_Read... [13:17:10]Read from MH i2c: D1 01 00 [13:17:10]MH_I2C_Read... [13:17:10]Read from MH i2c: D1 01 00 35 09 00 0F [13:17:10]Write to MH i2c: 01 00 00 36 09 3F [13:17:10]Write i2c OK [13:17:10]MH_I2C_Read... [13:17:10]OFD Sender: No OFD packet to send [13:17:11]*** Cut start [13:17:11]*** Purtial cut [13:17:11]*** Stage 1: CUTSNS_PIN = 1 [13:17:11]Read from MH i2c: 01 [13:17:11]MH_I2C_Read... [13:17:11]*** Stop cut motor [13:17:11]*** Cut end [13:17:11]Read from MH i2c: 01 07 00 [13:17:11]MH_I2C_Read... [13:17:11]Read from MH i2c: 01 07 00 36 09 00 00 00 00 00 FF 0F 54 [13:17:11]process_action print_text done [13:17:11]requested_data is exist [13:17:11]produce_requested_data [13:17:11]requested_item fm.sn is exist - process it [13:17:11]wFMCommunicate request_size=4 [13:17:11]MH_SAM_APDU [13:17:11]CAPDU: 80 11 00 00 [13:17:11]Write to MH i2c: E2 08 00 37 09 80 11 00 00 00 00 00 00 BA [13:17:11]Write i2c OK [13:17:11]MH_I2C_Read... [13:17:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:11]Read from MH i2c: E2 [13:17:11]MH_I2C_Read... [13:17:11]Read from MH i2c: E2 17 00 [13:17:11]MH_I2C_Read... [13:17:11]Read from MH i2c: E2 17 00 37 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 10 [13:17:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:17:11]wFMCommunicate OK [13:17:11]requested_item fd.num is exist - process it [13:17:11]SAM_PROTO_GetFieldsCounters [13:17:11]wFMCommunicate request_size=4 [13:17:11]MH_SAM_APDU [13:17:11]CAPDU: 80 13 00 00 [13:17:11]Write to MH i2c: E2 08 00 38 09 80 13 00 00 00 00 00 00 BD [13:17:11]Write i2c OK [13:17:11]MH_I2C_Read... [13:17:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:17:11]Read from MH i2c: E2 [13:17:11]MH_I2C_Read... [13:17:11]Read from MH i2c: E2 62 00 [13:17:11]MH_I2C_Read... [13:17:11]Read from MH i2c: E2 62 00 38 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 9B 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [13:17: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 9B 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:17:11]wFMCommunicate OK [13:17:11]SAM_PROTO_GetFieldsCounters done [13:17:11]requested_item shift.num is exist - process it [13:17:11]requested_item shift.opened is exist - process it [13:17:11]req_shift_opened [13:17:11]FM_GetShiftState [13:17:11]SAM_PROTO_GetShiftState [13:17:11]wFMCommunicate request_size=4 [13:17:11]MH_SAM_APDU [13:17:11]CAPDU: 80 13 01 00 [13:17:11]Write to MH i2c: E2 08 00 39 09 80 13 01 00 00 00 00 00 BF [13:17:11]Write i2c OK [13:17:11]MH_I2C_Read... [13:17:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:11]Read from MH i2c: E2 [13:17:11]MH_I2C_Read... [13:17:11]Read from MH i2c: E2 0E 00 [13:17:11]MH_I2C_Read... [13:17:11]Read from MH i2c: E2 0E 00 39 09 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 6B [13:17:11]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [13:17:11]wFMCommunicate OK [13:17:11]SAM_PROTO_GetShiftState done [13:17:11]FM_GetShiftState done [13:17:11]req_shift_opened done [13:17:11]requested_item shift.open_date is exist - process it [13:17:11]req_shift_open_date [13:17:11]req_shift_open_date done [13:17:11]produce_requested_data done [13:17:11]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67483,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [13:17:11]process_action_free print_text [13:17:11]json_value_free [13:17:11]json_value_free done [13:17:11]process_json_proto returns [13:17:11]Send response to host [13:17:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67483,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [13:17:11]free response buf [13:17:11]execute_script done [13:17:11]execute_script returns [13:17:11]free content buf [13:17:11]Sock 8.Close socket [13:17:11]Sock 8.Thread stoped [13:17:15]OFD Sender: No OFD packet to send [13:17:20]OFD Sender: No OFD packet to send [13:17:25]OFD Sender: No OFD packet to send [13:17:30]OFD Sender: No OFD packet to send [13:17:35]OFD Sender: No OFD packet to send [13:17:40]OFD Sender: No OFD packet to send [13:17:45]OFD Sender: No OFD packet to send [13:17:50]OFD Sender: No OFD packet to send [13:17:55]OFD Sender: No OFD packet to send [13:18:00]OFD Sender: No OFD packet to send [13:18:05]OFD Sender: No OFD packet to send [13:18:10]OFD Sender: No OFD packet to send [13:18:15]OFD Sender: No OFD packet to send [13:18:20]OFD Sender: No OFD packet to send [13:18:25]OFD Sender: No OFD packet to send [13:18:30]OFD Sender: No OFD packet to send [13:18:35]OFD Sender: No OFD packet to send [13:18:40]OFD Sender: No OFD packet to send [13:18:45]OFD Sender: No OFD packet to send [13:18:50]OFD Sender: No OFD packet to send [13:18:55]OFD Sender: No OFD packet to send [13:19:00]OFD Sender: No OFD packet to send [13:19:05]OFD Sender: No OFD packet to send [13:19:11]OFD Sender: No OFD packet to send [13:19:16]OFD Sender: No OFD packet to send [13:19:21]OFD Sender: No OFD packet to send [13:19:26]OFD Sender: No OFD packet to send [13:19:31]OFD Sender: No OFD packet to send [13:19:36]OFD Sender: No OFD packet to send [13:19:41]OFD Sender: No OFD packet to send [13:19:46]OFD Sender: No OFD packet to send [13:19:51]OFD Sender: No OFD packet to send [13:19:56]OFD Sender: No OFD packet to send [13:20:01]OFD Sender: No OFD packet to send [13:20:06]OFD Sender: No OFD packet to send [13:20:08]accept exits with 9 [13:20:08]New connection [13:20:08]New thread 3067182436 created [13:20:08]Thread 3067039076 joined [13:20:08]Waiting for new connection... [13:20:08] Sock 9.Parse request [13:20:08]Sock 9.Check first char [13:20:08]Sock 9.First char is OK [13:20:08]request: POST /json_proto HTTP/1.0 [13:20:08]Method: POST [13:20:08]URL: /json_proto [13:20:08]Method is POST - this is cgi request [13:20:08]url: /json_proto [13:20:08]query_string will be loaded in cgi processing [13:20:08]execute_cgi json_proto POST (null) [13:20:08]execute_cgi path=json_proto method=POST [13:20:08]POST find Content-Length [13:20:08]Host: 172.17.41.195:8080 [13:20:08]Content-Length: 668 [13:20:08]Content-Type: application/json [13:20:08] [13:20:08]POST finish read [13:20:08]Found Content-Length = 668 [13:20:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12090", "tax_sys" : 0, "items" : [ { "code": "4700003010018", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 0,5\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:20:08]execute_script... [13:20:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12090", "tax_sys" : 0, "items" : [ { "code": "4700003010018", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 0,5\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:20:08]POST & json_proto [13:20:08]process_json_proto [13:20:08]json parsed OK: [13:20:08]protocol is kg_v1.0 [13:20:08]action value=close_receipt [13:20:08]process_action close_receipt [13:20:08]cmd_close_receipt [13:20:08]MH_GetDate [13:20:08]Write to MH i2c: F0 00 00 3A 09 32 [13:20:08]Write i2c OK [13:20:08]MH_I2C_Read... [13:20:08]Read from MH i2c: F0 [13:20:08]MH_I2C_Read... [13:20:08]Read from MH i2c: F0 09 00 [13:20:08]MH_I2C_Read... [13:20:08]Read from MH i2c: F0 09 00 3A 09 00 08 08 46 66 FC 21 6F 64 E7 [13:20:08]GetLastDocTimeStamp 1715865223 [13:20:08]current date 1715865608 [13:20:08]FM_GetShiftState [13:20:08]SAM_PROTO_GetShiftState [13:20:08]wFMCommunicate request_size=4 [13:20:08]MH_SAM_APDU [13:20:08]CAPDU: 80 13 01 00 [13:20:08]Write to MH i2c: E2 08 00 3B 09 80 13 01 00 00 00 00 00 C1 [13:20:08]Write i2c OK [13:20:08]MH_I2C_Read... [13:20:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:08]Read from MH i2c: E2 [13:20:08]MH_I2C_Read... [13:20:08]Read from MH i2c: E2 0E 00 [13:20:08]MH_I2C_Read... [13:20:08]Read from MH i2c: E2 0E 00 3B 09 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 6D [13:20:08]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [13:20:08]wFMCommunicate OK [13:20:08]SAM_PROTO_GetShiftState done [13:20:08]FM_GetShiftState done [13:20:08]opened in 1715818916 [13:20:08]opened+sec_in_day 1715905316 [13:20:08]quantity*price = 5000 [13:20:08]sum+1 = 5001 [13:20:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 82 16.05.2024 13:20 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67484 ФПД: 99839935871422 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T132009&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67484&fm=99839935871422&tin=02508201610067®Number=0000000000091845&sum=5000 0 [13:20:09]StoreToDocumentArchive [13:20:09]shift 357 fd 67484 [13:20:09]save to /storage/0357/doc_00067484 [13:20:09]save last doc name /storage/0357/doc_00067484 to /storage/kkm_last_doc_name [13:20:09]save OK [13:20:09]Clear old archive folders... [13:20:09]ProcessDocumentItem done err = 0, tmpTLVsize=292 [13:20:09]tlvbuf is 017ABAE0 [13:20:09]SAM_PROTO_ClearQueue [13:20:09]wFMCommunicate request_size=4 [13:20:09]MH_SAM_APDU [13:20:09]CAPDU: 80 09 00 00 [13:20:09]Write to MH i2c: E2 08 00 48 09 80 09 00 00 00 00 00 00 C3 [13:20:09]Write i2c OK [13:20:09]MH_I2C_Read... [13:20:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:20:09]Read from MH i2c: E2 [13:20:09]MH_I2C_Read... [13:20:09]Read from MH i2c: E2 03 00 [13:20:09]MH_I2C_Read... [13:20:09]Read from MH i2c: E2 03 00 48 09 00 90 00 C5 [13:20:09]RAPDU: 90 00 [13:20:09]wFMCommunicate OK [13:20:09]SAM_PROTO_ClearQueue done [13:20:09]KKMCreateOFDPacket [13:20:09]OFDProtocolAddRootSTLVToBuf [13:20:09]FM_MakeSignedData [13:20:09]FM_MakeSignedData [13:20:09]SAM_PROTO_SignData [13:20:09]wFMCommunicate request_size=4 [13:20:09]MH_SAM_APDU [13:20:09]CAPDU: 80 0D 01 02 [13:20:09]Write to MH i2c: E2 08 00 49 09 80 0D 01 02 00 00 00 00 CB [13:20:09]Write i2c OK [13:20:09]MH_I2C_Read... [13:20:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:20:09]Read from MH i2c: E2 [13:20:09]MH_I2C_Read... [13:20:09]Read from MH i2c: E2 03 00 [13:20:09]MH_I2C_Read... [13:20:09]Read from MH i2c: E2 03 00 49 09 00 90 00 C6 [13:20:09]RAPDU: 90 00 [13:20:09]wFMCommunicate OK [13:20:09]wFMCommunicate request_size=255 [13:20:09]MH_SAM_APDU [13:20:09]CAPDU: 80 0D 02 02 FA 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 09 08 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 [13:20:09]Write to MH i2c: E2 02 01 4A 09 80 0D 02 02 FA 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 09 08 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 00 00 91 [13:20:09]Write i2c OK [13:20:09]MH_I2C_Read... [13:20:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:09]Read from MH i2c: E2 [13:20:09]MH_I2C_Read... [13:20:09]Read from MH i2c: E2 03 00 [13:20:09]MH_I2C_Read... [13:20:09]Read from MH i2c: E2 03 00 4A 09 00 90 00 C7 [13:20:09]RAPDU: 90 00 [13:20:09]wFMCommunicate OK [13:20:09]wFMCommunicate request_size=51 [13:20:09]MH_SAM_APDU [13:20:09]CAPDU: 80 0D 02 02 2E 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 9C 07 01 00 35 04 06 00 5A CD CB E9 79 BE [13:20:09]Write to MH i2c: E2 36 00 4B 09 80 0D 02 02 2E 00 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 9C 07 01 00 35 04 06 00 5A CD CB E9 79 BE 00 00 1A [13:20:09]Write i2c OK [13:20:09]MH_I2C_Read... [13:20:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:09]Read from MH i2c: E2 [13:20:09]MH_I2C_Read... [13:20:09]Read from MH i2c: E2 03 00 [13:20:09]MH_I2C_Read... [13:20:09]Read from MH i2c: E2 03 00 4B 09 00 90 00 C8 [13:20:09]RAPDU: 90 00 [13:20:09]wFMCommunicate OK [13:20:09]wFMCommunicate request_size=4 [13:20:09]MH_SAM_APDU [13:20:09]CAPDU: 80 0D 03 02 [13:20:09]Write to MH i2c: E2 08 00 4C 09 80 0D 03 02 00 00 00 00 D0 [13:20:09]Write i2c OK [13:20:09]MH_I2C_Read... [13:20:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:20:09]Read from MH i2c: E2 [13:20:09]MH_I2C_Read... [13:20:09]Read from MH i2c: E2 0B 00 [13:20:09]MH_I2C_Read... [13:20:09]Read from MH i2c: E2 0B 00 4C 09 00 07 11 9C A0 A0 03 ED A4 90 00 59 [13:20:09]RAPDU: 07 11 9C A0 A0 03 ED A4 90 00 [13:20:09]wFMCommunicate OK [13:20:09]SAM_PROTO_SignData done [13:20:09]FM_MakeSignedData done [13:20:09]CreateOFDProtocolMessage [13:20:09]wFMCommunicate request_size=4 [13:20:09]MH_SAM_APDU [13:20:09]CAPDU: 80 11 00 00 [13:20:09]Write to MH i2c: E2 08 00 4D 09 80 11 00 00 00 00 00 00 D0 [13:20:09]Write i2c OK [13:20:09]MH_I2C_Read... [13:20:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:09]Read from MH i2c: E2 [13:20:09]MH_I2C_Read... [13:20:09]Read from MH i2c: E2 17 00 [13:20:09]MH_I2C_Read... [13:20:09]Read from MH i2c: E2 17 00 4D 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 26 [13:20:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:20:09]wFMCommunicate OK [13:20:09]CreateOFDProtocolMessage done [13:20:09]OFDSenderStorePacket 67484 [13:20:09]StoreOFDPacket docnum=67484 [13:20:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 38 01 00 00 EF C8 30 01 59 18 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 09 08 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 9C 07 01 00 35 04 06 00 5A CD CB E9 79 BE 07 11 9C A0 A0 03 ED A4 [13:20:09]CheckFolder [13:20:09]dirname=/storage/ofd_packets [13:20:09]CheckFolder done [13:20:09]ProducePacketName [13:20:09]name=ofd_packets/00067484 [13:20:09]NVStorageSaveData ofd_packets/00067484 [13:20:09]File name is /storage/ofd_packets/00067484 [13:20:09]Write 342 bytes [13:20:09]NVStorageSaveData done [13:20:09]OFDSenderStorePacket done [13:20:09]KKMCreateOFDPacket done [13:20:09]NVStorageSaveData kkm_last_timestamp [13:20:09]File name is /storage/kkm_last_timestamp [13:20:09]Write 4 bytes [13:20:09]NVStorageSaveData done [13:20:09]ExternCall_PrintAddStr [13:20:09]wPrintStart [13:20:09]Write to MH i2c: 01 00 00 4E 09 57 [13:20:09]Write i2c OK [13:20:09]MH_I2C_Read... [13:20:09]Read from MH i2c: 01 [13:20:09]MH_I2C_Read... [13:20:09]Read from MH i2c: 01 07 00 [13:20:09]MH_I2C_Read... [13:20:09]Read from MH i2c: 01 07 00 4E 09 00 00 00 00 00 FF 0F 6C [13:20:09]RasterBufferAndPrint [13:20:09]line Счет N : (3)12090 [13:20:09]line ИНН: 02508201610067 [13:20:09]line Контрольно-Кассовый Чек [13:20:09]line ПРОДАЖА [13:20:09]line Товар: 4700003010018 [13:20:09]line Чай хол Let`s Go! зел лим ПЭТ 0,5л [13:20:09]line 1.000 * 50.00 [13:20:09]line = 50.00 [13:20:09]line НДС 12% НСП 1% [13:20:09]line > о реализуемом товаре [13:20:09]line ИТОГО: 50.00 [13:20:09]line НСП 1% : 0.44 [13:20:09]line НДС 12% : 5.31 [13:20:09]line Наличными: 50.00 [13:20:09]line Безнал.: 0.00 [13:20:09]line Место: АЗС № 91 "Партнер Нефть" [13:20:09]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:20:09]line СНО: Общий режим [13:20:09]line Чек 82 16.05.2024 13:20 [13:20:09]line Смена: 357 ФФД: 1.0 [13:20:09]line ЗНМ: 0300000119 [13:20:09]line РНМ: 0000000000091845 [13:20:09]line Версия ККМ: 001 [13:20:09]line ФМ: 0000000000871829 [13:20:09]line ФД: 67484 [13:20:09]line ФПД: 99839935871422 [13:20:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T132009&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67484&fm=99839935871422&tin=02508201610067®Number=0000000000091845&sum=5000 [13:20:10]line 0 [13:20:10]OFD Sender: Processing packet 67484 [packets to send 35, broken 34] [13:20:10]ProducePacketName [13:20:10]name=ofd_packets/00067484 [13:20:10]OFD Sender: To server: pG, [13:20:10]CommunicateWithHost lk.salyk.kg:30040 [13:20:10]ConnectInit lk.salyk.kg [13:20:10]written 0, free lines is 4095 [13:20:10]Connected sock=10 [13:20:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 38 01 00 00 EF C8 30 01 59 18 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 09 08 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 9C 07 01 00 35 04 06 00 5A CD CB E9 79 BE 07 11 9C A0 A0 03 ED A4 [13:20:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 B1 51 47 00 A6 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 38 32 39 10 04 04 00 9C 07 01 00 F4 03 04 00 E3 AF 45 66 B6 04 01 00 00 2F A9 62 2E 5B C0 7A 21 [13:20:10]CommunicateWithHost err = 0 [13:20:10]CheckOFDResponse [13:20:10]1017 (14) - 77093643461234 [13:20:10]1041 (16) - 0000000000871829 [13:20:10]1040 (4) - 67484 [13:20:10]1012 (4) - 16.05.2024 07:04 [13:20:10]1206 (1) - 0 [13:20:10]OFD Sender: Remove packet 67484 [13:20:10]ProducePacketName [13:20:10]name=ofd_packets/00067484 [13:20:10]NVStorageDeleteData [13:20:10]Write to MH i2c: 01 00 00 76 09 7F [13:20:10]Write i2c OK [13:20:10]MH_I2C_Read... [13:20:10]Read from MH i2c: 01 [13:20:10]MH_I2C_Read... [13:20:10]Read from MH i2c: 01 07 00 [13:20:10]MH_I2C_Read... [13:20:10]Read from MH i2c: 01 07 00 76 09 00 00 00 00 00 D9 0C 6B [13:20:10]RasterBufferAndPrint [13:20:10]line [13:20:10]line [13:20:10]line [13:20:10]line [13:20:10]line [13:20:10]written 0, free lines is 3294 [13:20:10]MH_Cut [13:20:10]Write to MH i2c: D1 01 00 7D 09 01 58 [13:20:10]Write i2c OK [13:20:10]MH_I2C_Read... [13:20:10]Read from MH i2c: D1 [13:20:10]MH_I2C_Read... [13:20:10]Read from MH i2c: D1 01 00 [13:20:10]MH_I2C_Read... [13:20:10]Read from MH i2c: D1 01 00 7D 09 00 57 [13:20:10]Write to MH i2c: 01 00 00 7E 09 87 [13:20:10]Write i2c OK [13:20:10]MH_I2C_Read... [13:20:10]OFD Sender: No OFD packet to send [13:20:11]*** Cut start [13:20:11]*** Purtial cut [13:20:11]*** CUTSNS_PIN = 0 [13:20:11]*** Stage 1: CUTSNS_PIN = 1 [13:20:13]Read from MH i2c: 01 [13:20:13]MH_I2C_Read... [13:20:13]*** Stop cut motor [13:20:13]*** Cut end [13:20:13]Read from MH i2c: 01 07 00 [13:20:13]MH_I2C_Read... [13:20:13]Read from MH i2c: 01 07 00 7E 09 00 00 00 00 00 FF 0F 9C [13:20:13]process_action close_receipt done [13:20:13]requested_data is exist [13:20:13]produce_requested_data [13:20:13]requested_item fm.sn is exist - process it [13:20:13]wFMCommunicate request_size=4 [13:20:13]MH_SAM_APDU [13:20:13]CAPDU: 80 11 00 00 [13:20:13]Write to MH i2c: E2 08 00 7F 09 80 11 00 00 00 00 00 00 02 [13:20:13]Write i2c OK [13:20:13]MH_I2C_Read... [13:20:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:13]Read from MH i2c: E2 [13:20:13]MH_I2C_Read... [13:20:13]Read from MH i2c: E2 17 00 [13:20:13]MH_I2C_Read... [13:20:13]Read from MH i2c: E2 17 00 7F 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 58 [13:20:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:20:13]wFMCommunicate OK [13:20:13]requested_item fd.num is exist - process it [13:20:13]SAM_PROTO_GetFieldsCounters [13:20:13]wFMCommunicate request_size=4 [13:20:13]MH_SAM_APDU [13:20:13]CAPDU: 80 13 00 00 [13:20:13]Write to MH i2c: E2 08 00 80 09 80 13 00 00 00 00 00 00 05 [13:20:13]Write i2c OK [13:20:13]MH_I2C_Read... [13:20:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:20:13]Read from MH i2c: E2 [13:20:13]MH_I2C_Read... [13:20:13]Read from MH i2c: E2 62 00 [13:20:13]MH_I2C_Read... [13:20:13]Read from MH i2c: E2 62 00 80 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 9C 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [13:20: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 9C 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:20:13]wFMCommunicate OK [13:20:13]SAM_PROTO_GetFieldsCounters done [13:20:13]requested_item shift.num is exist - process it [13:20:13]requested_item shift.opened is exist - process it [13:20:13]req_shift_opened [13:20:13]FM_GetShiftState [13:20:13]SAM_PROTO_GetShiftState [13:20:13]wFMCommunicate request_size=4 [13:20:13]MH_SAM_APDU [13:20:13]CAPDU: 80 13 01 00 [13:20:13]Write to MH i2c: E2 08 00 81 09 80 13 01 00 00 00 00 00 07 [13:20:13]Write i2c OK [13:20:13]MH_I2C_Read... [13:20:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:13]Read from MH i2c: E2 [13:20:13]MH_I2C_Read... [13:20:13]Read from MH i2c: E2 0E 00 [13:20:13]MH_I2C_Read... [13:20:13]Read from MH i2c: E2 0E 00 81 09 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 B3 [13:20:13]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [13:20:13]wFMCommunicate OK [13:20:13]SAM_PROTO_GetShiftState done [13:20:13]FM_GetShiftState done [13:20:13]req_shift_opened done [13:20:13]requested_item shift.open_date is exist - process it [13:20:13]req_shift_open_date [13:20:13]req_shift_open_date done [13:20:13]produce_requested_data done [13:20:13]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67484,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [13:20:13]process_action_free close_receipt [13:20:13]json_value_free [13:20:13]json_value_free done [13:20:13]process_json_proto returns [13:20:13]Send response to host [13:20:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67484,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [13:20:13]free response buf [13:20:13]execute_script done [13:20:13]execute_script returns [13:20:13]free content buf [13:20:13]Sock 9.Close socket [13:20:13]Sock 9.Thread stoped [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:41]accept exits with 8 [13:20:41]New connection [13:20:41]New thread 3067039076 created [13:20:41]Thread 3067182436 joined [13:20:41]Waiting for new connection... [13:20:41] Sock 8.Parse request [13:20:41]Sock 8.Check first char [13:20:41]Sock 8.First char is OK [13:20:41]request: POST /json_proto HTTP/1.0 [13:20:41]Method: POST [13:20:41]URL: /json_proto [13:20:41]Method is POST - this is cgi request [13:20:41]url: /json_proto [13:20:41]query_string will be loaded in cgi processing [13:20:41]execute_cgi json_proto POST (null) [13:20:41]execute_cgi path=json_proto method=POST [13:20:41]POST find Content-Length [13:20:41]Host: 172.17.41.195:8080 [13:20:41]Content-Length: 819 [13:20:41]Content-Type: application/json [13:20:41] [13:20:41]POST finish read [13:20:41]Found Content-Length = 819 [13:20:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507525", "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.80, "quantity" : 14.980, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:20:41]execute_script... [13:20:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507525", "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.80, "quantity" : 14.980, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:20:41]POST & json_proto [13:20:41]process_json_proto [13:20:41]json parsed OK: [13:20:41]protocol is kg_v1.0 [13:20:41]action value=close_receipt [13:20:41]process_action close_receipt [13:20:41]cmd_close_receipt [13:20:41]MH_GetDate [13:20:41]Write to MH i2c: F0 00 00 82 09 7A [13:20:41]Write i2c OK [13:20:41]MH_I2C_Read... [13:20:41]Read from MH i2c: F0 [13:20:41]MH_I2C_Read... [13:20:41]Read from MH i2c: F0 09 00 [13:20:41]MH_I2C_Read... [13:20:41]Read from MH i2c: F0 09 00 82 09 00 2A 08 46 66 FC 21 6F 64 51 [13:20:41]GetLastDocTimeStamp 1715865609 [13:20:41]current date 1715865642 [13:20:41]FM_GetShiftState [13:20:41]SAM_PROTO_GetShiftState [13:20:41]wFMCommunicate request_size=4 [13:20:41]MH_SAM_APDU [13:20:41]CAPDU: 80 13 01 00 [13:20:41]Write to MH i2c: E2 08 00 83 09 80 13 01 00 00 00 00 00 09 [13:20:41]Write i2c OK [13:20:41]MH_I2C_Read... [13:20:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:41]Read from MH i2c: E2 [13:20:41]MH_I2C_Read... [13:20:41]Read from MH i2c: E2 0E 00 [13:20:41]MH_I2C_Read... [13:20:41]Read from MH i2c: E2 0E 00 83 09 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 B5 [13:20:41]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [13:20:41]wFMCommunicate OK [13:20:41]SAM_PROTO_GetShiftState done [13:20:41]FM_GetShiftState done [13:20:41]opened in 1715818916 [13:20:41]opened+sec_in_day 1715905316 [13:20:41]quantity*price = 100066 [13:20:41]sum+1 = 100067 [13:20:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.66 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.66 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 83 16.05.2024 13:20 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67485 ФПД: 232885973233051 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T132042&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67485&fm=232885973233051&tin=02508201610067®Number=0000000000091845&sum=100066 [13:20:42]StoreToDocumentArchive [13:20:42]shift 357 fd 67485 [13:20:42]save to /storage/0357/doc_00067485 [13:20:42]save last doc name /storage/0357/doc_00067485 to /storage/kkm_last_doc_name [13:20:42]save OK [13:20:42]Clear old archive folders... [13:20:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:20:42]tlvbuf is 017AB770 [13:20:42]SAM_PROTO_ClearQueue [13:20:42]wFMCommunicate request_size=4 [13:20:42]MH_SAM_APDU [13:20:42]CAPDU: 80 09 00 00 [13:20:42]Write to MH i2c: E2 08 00 90 09 80 09 00 00 00 00 00 00 0B [13:20:42]Write i2c OK [13:20:42]MH_I2C_Read... [13:20:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:20:42]Read from MH i2c: E2 [13:20:42]MH_I2C_Read... [13:20:42]Read from MH i2c: E2 03 00 [13:20:42]MH_I2C_Read... [13:20:42]Read from MH i2c: E2 03 00 90 09 00 90 00 0D [13:20:42]RAPDU: 90 00 [13:20:42]wFMCommunicate OK [13:20:42]SAM_PROTO_ClearQueue done [13:20:42]KKMCreateOFDPacket [13:20:42]OFDProtocolAddRootSTLVToBuf [13:20:42]FM_MakeSignedData [13:20:42]FM_MakeSignedData [13:20:42]SAM_PROTO_SignData [13:20:42]wFMCommunicate request_size=4 [13:20:42]MH_SAM_APDU [13:20:42]CAPDU: 80 0D 01 02 [13:20:42]Write to MH i2c: E2 08 00 91 09 80 0D 01 02 00 00 00 00 13 [13:20:42]Write i2c OK [13:20:42]MH_I2C_Read... [13:20:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:20:42]Read from MH i2c: E2 [13:20:42]MH_I2C_Read... [13:20:42]Read from MH i2c: E2 03 00 [13:20:42]MH_I2C_Read... [13:20:42]Read from MH i2c: E2 03 00 91 09 00 90 00 0E [13:20:42]RAPDU: 90 00 [13:20:42]wFMCommunicate OK [13:20:42]wFMCommunicate request_size=255 [13:20:42]MH_SAM_APDU [13:20:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 2A 08 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 9D 07 01 00 35 04 06 00 D3 [13:20:42]Write to MH i2c: E2 02 01 92 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 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 2A 08 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 9D 07 01 00 35 04 06 00 D3 00 00 7F [13:20:42]Write i2c OK [13:20:42]MH_I2C_Read... [13:20:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:42]Read from MH i2c: E2 [13:20:42]MH_I2C_Read... [13:20:42]Read from MH i2c: E2 03 00 [13:20:42]MH_I2C_Read... [13:20:42]Read from MH i2c: E2 03 00 92 09 00 90 00 0F [13:20:42]RAPDU: 90 00 [13:20:42]wFMCommunicate OK [13:20:42]wFMCommunicate request_size=10 [13:20:42]MH_SAM_APDU [13:20:42]CAPDU: 80 0D 02 02 05 CE FD B5 2D 9B [13:20:42]Write to MH i2c: E2 0D 00 93 09 80 0D 02 02 05 00 CE FD B5 2D 9B 00 00 68 [13:20:42]Write i2c OK [13:20:42]MH_I2C_Read... [13:20:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:42]Read from MH i2c: E2 [13:20:42]MH_I2C_Read... [13:20:42]Read from MH i2c: E2 03 00 [13:20:42]MH_I2C_Read... [13:20:42]Read from MH i2c: E2 03 00 93 09 00 90 00 10 [13:20:42]RAPDU: 90 00 [13:20:42]wFMCommunicate OK [13:20:42]wFMCommunicate request_size=4 [13:20:42]MH_SAM_APDU [13:20:42]CAPDU: 80 0D 03 02 [13:20:42]Write to MH i2c: E2 08 00 94 09 80 0D 03 02 00 00 00 00 18 [13:20:42]Write i2c OK [13:20:42]MH_I2C_Read... [13:20:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:20:42]Read from MH i2c: E2 [13:20:42]MH_I2C_Read... [13:20:42]Read from MH i2c: E2 0B 00 [13:20:42]MH_I2C_Read... [13:20:42]Read from MH i2c: E2 0B 00 94 09 00 9E 24 0E 64 D4 5F E7 18 90 00 7F [13:20:42]RAPDU: 9E 24 0E 64 D4 5F E7 18 90 00 [13:20:42]wFMCommunicate OK [13:20:42]SAM_PROTO_SignData done [13:20:42]FM_MakeSignedData done [13:20:42]CreateOFDProtocolMessage [13:20:42]wFMCommunicate request_size=4 [13:20:42]MH_SAM_APDU [13:20:42]CAPDU: 80 11 00 00 [13:20:42]Write to MH i2c: E2 08 00 95 09 80 11 00 00 00 00 00 00 18 [13:20:42]Write i2c OK [13:20:42]MH_I2C_Read... [13:20:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:42]Read from MH i2c: E2 [13:20:42]MH_I2C_Read... [13:20:42]Read from MH i2c: E2 17 00 [13:20:42]MH_I2C_Read... [13:20:42]Read from MH i2c: E2 17 00 95 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 6E [13:20:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:20:42]wFMCommunicate OK [13:20:42]CreateOFDProtocolMessage done [13:20:42]OFDSenderStorePacket 67485 [13:20:42]StoreOFDPacket docnum=67485 [13:20:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 6E 2E 07 01 ED E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 2A 08 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 9D 07 01 00 35 04 06 00 D3 CE FD B5 2D 9B 9E 24 0E 64 D4 5F E7 18 [13:20:42]CheckFolder [13:20:42]dirname=/storage/ofd_packets [13:20:42]CheckFolder done [13:20:42]ProducePacketName [13:20:42]name=ofd_packets/00067485 [13:20:42]NVStorageSaveData ofd_packets/00067485 [13:20:42]File name is /storage/ofd_packets/00067485 [13:20:42]Write 301 bytes [13:20:42]NVStorageSaveData done [13:20:42]OFDSenderStorePacket done [13:20:42]KKMCreateOFDPacket done [13:20:42]NVStorageSaveData kkm_last_timestamp [13:20:42]File name is /storage/kkm_last_timestamp [13:20:42]Write 4 bytes [13:20:42]NVStorageSaveData done [13:20:42]ExternCall_PrintAddStr [13:20:42]wPrintStart [13:20:42]Write to MH i2c: 01 00 00 96 09 9F [13:20:42]Write i2c OK [13:20:42]MH_I2C_Read... [13:20:42]Read from MH i2c: 01 [13:20:42]MH_I2C_Read... [13:20:42]Read from MH i2c: 01 07 00 [13:20:42]MH_I2C_Read... [13:20:42]Read from MH i2c: 01 07 00 96 09 00 00 00 00 00 FF 0F B4 [13:20:42]RasterBufferAndPrint [13:20:42]line Счет N : (1)507525 [13:20:42]line ИНН: 02508201610067 [13:20:42]line Контрольно-Кассовый Чек [13:20:42]line ПРОДАЖА [13:20:42]line ТРК (МРК, ГНК) : 13 [13:20:42]line Товар: 2710124130 [13:20:42]line Аи-92-К-5 [13:20:42]line 14.980 * 66.80 [13:20:42]line = 1000.66 [13:20:42]line НДС 12% НСП 1% [13:20:42]line > о реализуемом товаре [13:20:42]line ИТОГО: 1000.66 [13:20:42]line НСП 1% : 8.85 [13:20:42]line НДС 12% : 106.26 [13:20:42]line Наличными: 0.00 [13:20:42]line Безнал.: 1000.66 [13:20:42]line Место: АЗС № 91 "Партнер Нефть" [13:20:42]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:20:42]line СНО: Общий режим [13:20:42]line Чек 83 16.05.2024 13:20 [13:20:42]line Смена: 357 ФФД: 1.0 [13:20:42]line ЗНМ: 0300000119 [13:20:42]line РНМ: 0000000000091845 [13:20:42]line Версия ККМ: 001 [13:20:42]line Платежная система: Бакай Банк [13:20:42]line ФМ: 0000000000871829 [13:20:42]line ФД: 67485 [13:20:42]line ФПД: 232885973233051 [13:20:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T132042&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67485&fm=232885973233051&tin=02508201610067®Number=0000000000091845&sum=100066 [13:20:43]OFD Sender: Processing packet 67485 [packets to send 35, broken 34] [13:20:43]ProducePacketName [13:20:43]name=ofd_packets/00067485 [13:20:43]OFD Sender: To server: pG, [13:20:43]CommunicateWithHost lk.salyk.kg:30040 [13:20:43]ConnectInit lk.salyk.kg [13:20:43]written 0, free lines is 4095 [13:20:43]Connected sock=10 [13:20:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 6E 2E 07 01 ED E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 2A 08 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 9D 07 01 00 35 04 06 00 D3 CE FD B5 2D 9B 9E 24 0E 64 D4 5F E7 18 [13:20:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 66 57 47 00 8C FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 9D 07 01 00 F4 03 04 00 04 B0 45 66 B6 04 01 00 00 05 44 41 D7 01 1E C5 EA [13:20:43]CommunicateWithHost err = 0 [13:20:43]CheckOFDResponse [13:20:43]1017 (14) - 77093643461234 [13:20:43]1041 (16) - 0000000000871829 [13:20:43]1040 (4) - 67485 [13:20:43]1012 (4) - 16.05.2024 07:04 [13:20:43]1206 (1) - 0 [13:20:43]OFD Sender: Remove packet 67485 [13:20:43]ProducePacketName [13:20:43]name=ofd_packets/00067485 [13:20:43]NVStorageDeleteData [13:20:43]Write to MH i2c: 01 00 00 BF 09 C8 [13:20:43]Write i2c OK [13:20:43]MH_I2C_Read... [13:20:43]Read from MH i2c: 01 [13:20:43]MH_I2C_Read... [13:20:43]Read from MH i2c: 01 07 00 [13:20:43]MH_I2C_Read... [13:20:43]Read from MH i2c: 01 07 00 BF 09 00 00 00 00 00 EE 0C C9 [13:20:43]RasterBufferAndPrint [13:20:43]line [13:20:43]line [13:20:43]line [13:20:43]line [13:20:43]line [13:20:43]written 0, free lines is 3316 [13:20:43]MH_Cut [13:20:43]Write to MH i2c: D1 01 00 C6 09 01 A1 [13:20:43]Write i2c OK [13:20:43]MH_I2C_Read... [13:20:43]Read from MH i2c: D1 [13:20:43]MH_I2C_Read... [13:20:43]Read from MH i2c: D1 01 00 [13:20:43]MH_I2C_Read... [13:20:43]Read from MH i2c: D1 01 00 C6 09 00 A0 [13:20:43]Write to MH i2c: 01 00 00 C7 09 D0 [13:20:43]Write i2c OK [13:20:43]MH_I2C_Read... [13:20:44]OFD Sender: No OFD packet to send [13:20:44]*** Cut start [13:20:44]*** Purtial cut [13:20:44]*** Stage 1: CUTSNS_PIN = 1 [13:20:44]Read from MH i2c: 01 [13:20:44]MH_I2C_Read... [13:20:44]*** Stop cut motor [13:20:44]*** Cut end [13:20:44]Read from MH i2c: 01 07 00 [13:20:44]MH_I2C_Read... [13:20:44]Read from MH i2c: 01 07 00 C7 09 00 00 00 00 00 FF 0F E5 [13:20:44]process_action close_receipt done [13:20:44]requested_data is exist [13:20:44]produce_requested_data [13:20:44]requested_item fm.sn is exist - process it [13:20:44]wFMCommunicate request_size=4 [13:20:44]MH_SAM_APDU [13:20:44]CAPDU: 80 11 00 00 [13:20:44]Write to MH i2c: E2 08 00 C8 09 80 11 00 00 00 00 00 00 4B [13:20:44]Write i2c OK [13:20:44]MH_I2C_Read... [13:20:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:44]Read from MH i2c: E2 [13:20:44]MH_I2C_Read... [13:20:44]Read from MH i2c: E2 17 00 [13:20:44]MH_I2C_Read... [13:20:44]Read from MH i2c: E2 17 00 C8 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A1 [13:20:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:20:44]wFMCommunicate OK [13:20:44]requested_item fd.num is exist - process it [13:20:44]SAM_PROTO_GetFieldsCounters [13:20:44]wFMCommunicate request_size=4 [13:20:44]MH_SAM_APDU [13:20:44]CAPDU: 80 13 00 00 [13:20:44]Write to MH i2c: E2 08 00 C9 09 80 13 00 00 00 00 00 00 4E [13:20:44]Write i2c OK [13:20:44]MH_I2C_Read... [13:20:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:20:45]Read from MH i2c: E2 [13:20:45]MH_I2C_Read... [13:20:45]Read from MH i2c: E2 62 00 [13:20:45]MH_I2C_Read... [13:20:45]Read from MH i2c: E2 62 00 C9 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 9D 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [13:20:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 9D 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:20:45]wFMCommunicate OK [13:20:45]SAM_PROTO_GetFieldsCounters done [13:20:45]requested_item shift.num is exist - process it [13:20:45]requested_item shift.opened is exist - process it [13:20:45]req_shift_opened [13:20:45]FM_GetShiftState [13:20:45]SAM_PROTO_GetShiftState [13:20:45]wFMCommunicate request_size=4 [13:20:45]MH_SAM_APDU [13:20:45]CAPDU: 80 13 01 00 [13:20:45]Write to MH i2c: E2 08 00 CA 09 80 13 01 00 00 00 00 00 50 [13:20:45]Write i2c OK [13:20:45]MH_I2C_Read... [13:20:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:45]Read from MH i2c: E2 [13:20:45]MH_I2C_Read... [13:20:45]Read from MH i2c: E2 0E 00 [13:20:45]MH_I2C_Read... [13:20:45]Read from MH i2c: E2 0E 00 CA 09 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 FC [13:20:45]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [13:20:45]wFMCommunicate OK [13:20:45]SAM_PROTO_GetShiftState done [13:20:45]FM_GetShiftState done [13:20:45]req_shift_opened done [13:20:45]requested_item shift.open_date is exist - process it [13:20:45]req_shift_open_date [13:20:45]req_shift_open_date done [13:20:45]produce_requested_data done [13:20:45]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67485,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [13:20:45]process_action_free close_receipt [13:20:45]json_value_free [13:20:45]json_value_free done [13:20:45]process_json_proto returns [13:20:45]Send response to host [13:20:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67485,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [13:20:45]free response buf [13:20:45]execute_script done [13:20:45]execute_script returns [13:20:45]free content buf [13:20:45]Sock 8.Close socket [13:20:45]Sock 8.Thread stoped [13:20:49]OFD Sender: No OFD packet to send [13:20:54]OFD Sender: No OFD packet to send [13:20:59]OFD Sender: No OFD packet to send [13:21:04]OFD Sender: No OFD packet to send [13:21:09]OFD Sender: No OFD packet to send [13:21:14]OFD Sender: No OFD packet to send [13:21:19]OFD Sender: No OFD packet to send [13:21:24]OFD Sender: No OFD packet to send [13:21:29]OFD Sender: No OFD packet to send [13:21:34]OFD Sender: No OFD packet to send [13:21:39]OFD Sender: No OFD packet to send [13:21:44]OFD Sender: No OFD packet to send [13:21:49]OFD Sender: No OFD packet to send [13:21:54]OFD Sender: No OFD packet to send [13:21:59]OFD Sender: No OFD packet to send [13:22:04]OFD Sender: No OFD packet to send [13:22:09]OFD Sender: No OFD packet to send [13:22:14]OFD Sender: No OFD packet to send [13:22:15]accept exits with 9 [13:22:15]New connection [13:22:15]New thread 3067182436 created [13:22:15]Thread 3067039076 joined [13:22:15]Waiting for new connection... [13:22:15] Sock 9.Parse request [13:22:15]Sock 9.Check first char [13:22:15]Sock 9.First char is OK [13:22:15]request: POST /json_proto HTTP/1.0 [13:22:15]Method: POST [13:22:15]URL: /json_proto [13:22:15]Method is POST - this is cgi request [13:22:15]url: /json_proto [13:22:15]query_string will be loaded in cgi processing [13:22:15]execute_cgi json_proto POST (null) [13:22:15]execute_cgi path=json_proto method=POST [13:22:15]POST find Content-Length [13:22:15]Host: 172.17.41.195:8080 [13:22:15]Content-Length: 1171 [13:22:15]Content-Type: application/json [13:22:15] [13:22:15]POST finish read [13:22:15]Found Content-Length = 1171 [13:22:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507526\u000A16.05.2024 13:04\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1494.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30106019\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:15]execute_script... [13:22:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507526\u000A16.05.2024 13:04\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1494.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30106019\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:15]POST & json_proto [13:22:15]process_json_proto [13:22:15]json parsed OK: [13:22:15]protocol is kg_v1.0 [13:22:15]action value=print_text [13:22:15]process_action print_text [13:22:15]cmd_print_text [13:22:15]ExternCall_PrintAddStr [13:22:15]wPrintStart [13:22:15]Write to MH i2c: 01 00 00 CB 09 D4 [13:22:15]Write i2c OK [13:22:15]MH_I2C_Read... [13:22:15]Read from MH i2c: 01 [13:22:15]MH_I2C_Read... [13:22:15]Read from MH i2c: 01 07 00 [13:22:15]MH_I2C_Read... [13:22:15]Read from MH i2c: 01 07 00 CB 09 00 00 00 00 00 FF 0F E9 [13:22:15]RasterBufferAndPrint [13:22:15]line *****ТОВАРНЫЙ ЧЕК***** [13:22:15]line АЗС-91 [13:22:15]line Партнер нефть [13:22:15]line 02508201610067 [13:22:15]line Кассир : Пайзулдаева А. [13:22:15]line Счет N : (1)507526 [13:22:15]line 16.05.2024 13:04 [13:22:15]line ПРОДАЖА [13:22:15]line ТРК (МРК, ГНК): 31 [13:22:15]line Вид ГСМ : 2710194210 [13:22:15]line ДТ-К-5 [13:22:15]line 20.000 x 74.70 [13:22:15]line ИТОГ: 1494.00 [13:22:15]line Тип оплаты: Талоны: ТК ГПНА Online [13:22:15]line 30106019 [13:22:15]line ______________________ [13:22:15]line (подпись) [13:22:15]written 0, free lines is 4095 [13:22:16]Write to MH i2c: 01 00 00 DF 09 E8 [13:22:16]Write i2c OK [13:22:16]MH_I2C_Read... [13:22:16]Read from MH i2c: 01 [13:22:16]MH_I2C_Read... [13:22:16]Read from MH i2c: 01 07 00 [13:22:16]MH_I2C_Read... [13:22:16]Read from MH i2c: 01 07 00 DF 09 00 00 00 00 00 0E 0E 0B [13:22:16]RasterBufferAndPrint [13:22:16]line [13:22:16]line [13:22:16]line [13:22:16]line [13:22:16]line [13:22:16]written 0, free lines is 3600 [13:22:16]MH_Cut [13:22:16]Write to MH i2c: D1 01 00 E6 09 01 C1 [13:22:16]Write i2c OK [13:22:16]MH_I2C_Read... [13:22:16]Read from MH i2c: D1 [13:22:16]MH_I2C_Read... [13:22:16]Read from MH i2c: D1 01 00 [13:22:16]MH_I2C_Read... [13:22:16]Read from MH i2c: D1 01 00 E6 09 00 C0 [13:22:16]Write to MH i2c: 01 00 00 E7 09 F0 [13:22:16]Write i2c OK [13:22:16]MH_I2C_Read... [13:22:16]*** Cut start [13:22:16]*** Purtial cut [13:22:16]*** CUTSNS_PIN = 0 [13:22:16]*** Stage 1: CUTSNS_PIN = 1 [13:22:18]Read from MH i2c: 01 [13:22:18]MH_I2C_Read... [13:22:18]Read from MH i2c: 01 07 00 [13:22:18]MH_I2C_Read... [13:22:18]*** Stop cut motor [13:22:18]*** Cut end [13:22:18]Read from MH i2c: 01 07 00 E7 09 00 00 00 00 00 FF 0F 05 [13:22:18]process_action print_text done [13:22:18]requested_data is exist [13:22:18]produce_requested_data [13:22:18]requested_item fm.sn is exist - process it [13:22:18]wFMCommunicate request_size=4 [13:22:18]MH_SAM_APDU [13:22:18]CAPDU: 80 11 00 00 [13:22:18]Write to MH i2c: E2 08 00 E8 09 80 11 00 00 00 00 00 00 6B [13:22:18]Write i2c OK [13:22:18]MH_I2C_Read... [13:22:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:18]Read from MH i2c: E2 [13:22:18]MH_I2C_Read... [13:22:18]Read from MH i2c: E2 17 00 [13:22:18]MH_I2C_Read... [13:22:18]Read from MH i2c: E2 17 00 E8 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C1 [13:22:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:22:18]wFMCommunicate OK [13:22:18]requested_item fd.num is exist - process it [13:22:18]SAM_PROTO_GetFieldsCounters [13:22:18]wFMCommunicate request_size=4 [13:22:18]MH_SAM_APDU [13:22:18]CAPDU: 80 13 00 00 [13:22:18]Write to MH i2c: E2 08 00 E9 09 80 13 00 00 00 00 00 00 6E [13:22:18]Write i2c OK [13:22:18]MH_I2C_Read... [13:22:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:22:18]Read from MH i2c: E2 [13:22:18]MH_I2C_Read... [13:22:18]Read from MH i2c: E2 62 00 [13:22:18]MH_I2C_Read... [13:22:18]Read from MH i2c: E2 62 00 E9 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 9D 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [13: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 9D 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:22:18]wFMCommunicate OK [13:22:18]SAM_PROTO_GetFieldsCounters done [13:22:18]requested_item shift.num is exist - process it [13:22:18]requested_item shift.opened is exist - process it [13:22:18]req_shift_opened [13:22:18]FM_GetShiftState [13:22:18]SAM_PROTO_GetShiftState [13:22:18]wFMCommunicate request_size=4 [13:22:18]MH_SAM_APDU [13:22:18]CAPDU: 80 13 01 00 [13:22:18]Write to MH i2c: E2 08 00 EA 09 80 13 01 00 00 00 00 00 70 [13:22:18]Write i2c OK [13:22:18]MH_I2C_Read... [13:22:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:18]Read from MH i2c: E2 [13:22:18]MH_I2C_Read... [13:22:18]Read from MH i2c: E2 0E 00 [13:22:18]MH_I2C_Read... [13:22:18]Read from MH i2c: E2 0E 00 EA 09 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 1C [13:22:18]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [13:22:18]wFMCommunicate OK [13:22:18]SAM_PROTO_GetShiftState done [13:22:18]FM_GetShiftState done [13:22:18]req_shift_opened done [13:22:18]requested_item shift.open_date is exist - process it [13:22:18]req_shift_open_date [13:22:18]req_shift_open_date done [13:22:18]produce_requested_data done [13:22:18]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67485,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [13:22:18]process_action_free print_text [13:22:18]json_value_free [13:22:18]json_value_free done [13:22:18]process_json_proto returns [13:22:18]Send response to host [13:22:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67485,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [13:22:18]free response buf [13:22:18]execute_script done [13:22:18]execute_script returns [13:22:18]free content buf [13:22:18]Sock 9.Close socket [13:22:18]Sock 9.Thread stoped [13:22:19]OFD Sender: No OFD packet to send [13:22:24]OFD Sender: No OFD packet to send [13:22:29]OFD Sender: No OFD packet to send [13:22:34]OFD Sender: No OFD packet to send [13:22:39]OFD Sender: No OFD packet to send [13:22:44]OFD Sender: No OFD packet to send [13:22:49]OFD Sender: No OFD packet to send [13:22:54]OFD Sender: No OFD packet to send [13:22:59]OFD Sender: No OFD packet to send [13:23:04]OFD Sender: No OFD packet to send [13:23:09]OFD Sender: No OFD packet to send [13:23:14]OFD Sender: No OFD packet to send [13:23:19]OFD Sender: No OFD packet to send [13:23:24]OFD Sender: No OFD packet to send [13:23:29]OFD Sender: No OFD packet to send [13:23:34]OFD Sender: No OFD packet to send [13:23:39]OFD Sender: No OFD packet to send [13:23:44]OFD Sender: No OFD packet to send [13:23:49]OFD Sender: No OFD packet to send [13:23:53]accept exits with 8 [13:23:53]New connection [13:23:53]New thread 3067039076 created [13:23:53]Thread 3067182436 joined [13:23:53]Waiting for new connection... [13:23:53] Sock 8.Parse request [13:23:53]Sock 8.Check first char [13:23:53]Sock 8.First char is OK [13:23:53]request: POST /json_proto HTTP/1.0 [13:23:53]Method: POST [13:23:53]URL: /json_proto [13:23:53]Method is POST - this is cgi request [13:23:53]url: /json_proto [13:23:53]query_string will be loaded in cgi processing [13:23:53]execute_cgi json_proto POST (null) [13:23:53]execute_cgi path=json_proto method=POST [13:23:53]POST find Content-Length [13:23:53]Host: 172.17.41.195:8080 [13:23:53]Content-Length: 1209 [13:23:53]Content-Type: application/json [13:23:53] [13:23:53]POST finish read [13:23:53]Found Content-Length = 1209 [13:23:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507527\u000A16.05.2024 13:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1494.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:53]execute_script... [13:23:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507527\u000A16.05.2024 13:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1494.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:53]POST & json_proto [13:23:53]process_json_proto [13:23:53]json parsed OK: [13:23:53]protocol is kg_v1.0 [13:23:53]action value=print_text [13:23:53]process_action print_text [13:23:53]cmd_print_text [13:23:53]ExternCall_PrintAddStr [13:23:53]wPrintStart [13:23:53]Write to MH i2c: 01 00 00 EB 09 F4 [13:23:53]Write i2c OK [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: 01 [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: 01 07 00 [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: 01 07 00 EB 09 00 00 00 00 00 FF 0F 09 [13:23:53]RasterBufferAndPrint [13:23:53]line *****ТОВАРНЫЙ ЧЕК***** [13:23:53]line АЗС-91 [13:23:53]line Партнер нефть [13:23:53]line 02508201610067 [13:23:53]line Кассир : Пайзулдаева А. [13:23:53]line Счет N : (1)507527 [13:23:53]line 16.05.2024 13:06 [13:23:53]line ПРОДАЖА [13:23:53]line ТРК (МРК, ГНК): 21 [13:23:53]line Вид ГСМ : 2710194210 [13:23:53]line ДТ-К-5 [13:23:53]line 20.000 x 74.70 [13:23:53]line ИТОГ: 1494.00 [13:23:53]line Тип оплаты: Талоны: Топливная Карта [13:23:53]line 02750 [13:23:53]line ______________________ [13:23:53]line (подпись) [13:23:53]written 0, free lines is 4095 [13:23:53]Write to MH i2c: 01 00 00 FF 09 08 [13:23:53]Write i2c OK [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: 01 [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: 01 07 00 [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: 01 07 00 FF 09 00 00 00 00 00 0F 0E 2C [13:23:53]RasterBufferAndPrint [13:23:53]line [13:23:53]line [13:23:53]line [13:23:53]line [13:23:53]line [13:23:53]written 0, free lines is 3600 [13:23:53]MH_Cut [13:23:53]Write to MH i2c: D1 01 00 06 0A 01 E2 [13:23:53]Write i2c OK [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: D1 [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: D1 01 00 [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: D1 01 00 06 0A 00 E1 [13:23:53]Write to MH i2c: 01 00 00 07 0A 11 [13:23:53]Write i2c OK [13:23:53]MH_I2C_Read... [13:23:53]*** Cut start [13:23:53]*** Purtial cut [13:23:53]*** Stage 1: CUTSNS_PIN = 1 [13:23:54]Read from MH i2c: 01 [13:23:54]MH_I2C_Read... [13:23:54]Read from MH i2c: 01 07 00 [13:23:54]MH_I2C_Read... [13:23:54]*** Stop cut motor [13:23:54]*** Cut end [13:23:54]Read from MH i2c: 01 07 00 07 0A 00 00 00 00 00 FF 0F 26 [13:23:54]process_action print_text done [13:23:54]requested_data is exist [13:23:54]produce_requested_data [13:23:54]requested_item fm.sn is exist - process it [13:23:54]wFMCommunicate request_size=4 [13:23:54]MH_SAM_APDU [13:23:54]CAPDU: 80 11 00 00 [13:23:54]Write to MH i2c: E2 08 00 08 0A 80 11 00 00 00 00 00 00 8C [13:23:54]Write i2c OK [13:23:54]MH_I2C_Read... [13:23:54]OFD Sender: No OFD packet to send [13:23:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:54]Read from MH i2c: E2 [13:23:54]MH_I2C_Read... [13:23:54]Read from MH i2c: E2 17 00 [13:23:54]MH_I2C_Read... [13:23:54]Read from MH i2c: E2 17 00 08 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E2 [13:23:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:23:54]wFMCommunicate OK [13:23:54]requested_item fd.num is exist - process it [13:23:54]SAM_PROTO_GetFieldsCounters [13:23:54]wFMCommunicate request_size=4 [13:23:54]MH_SAM_APDU [13:23:54]CAPDU: 80 13 00 00 [13:23:54]Write to MH i2c: E2 08 00 09 0A 80 13 00 00 00 00 00 00 8F [13:23:54]Write i2c OK [13:23:54]MH_I2C_Read... [13:23:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:23:54]Read from MH i2c: E2 [13:23:54]MH_I2C_Read... [13:23:54]Read from MH i2c: E2 62 00 [13:23:54]MH_I2C_Read... [13:23:54]Read from MH i2c: E2 62 00 09 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 9D 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [13:23: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 9D 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:23:54]wFMCommunicate OK [13:23:54]SAM_PROTO_GetFieldsCounters done [13:23:54]requested_item shift.num is exist - process it [13:23:54]requested_item shift.opened is exist - process it [13:23:54]req_shift_opened [13:23:54]FM_GetShiftState [13:23:54]SAM_PROTO_GetShiftState [13:23:54]wFMCommunicate request_size=4 [13:23:54]MH_SAM_APDU [13:23:54]CAPDU: 80 13 01 00 [13:23:54]Write to MH i2c: E2 08 00 0A 0A 80 13 01 00 00 00 00 00 91 [13:23:54]Write i2c OK [13:23:54]MH_I2C_Read... [13:23:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:54]Read from MH i2c: E2 [13:23:54]MH_I2C_Read... [13:23:54]Read from MH i2c: E2 0E 00 [13:23:54]MH_I2C_Read... [13:23:54]Read from MH i2c: E2 0E 00 0A 0A 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 3D [13:23:54]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [13:23:54]wFMCommunicate OK [13:23:54]SAM_PROTO_GetShiftState done [13:23:54]FM_GetShiftState done [13:23:54]req_shift_opened done [13:23:54]requested_item shift.open_date is exist - process it [13:23:54]req_shift_open_date [13:23:54]req_shift_open_date done [13:23:54]produce_requested_data done [13:23:54]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67485,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [13:23:54]process_action_free print_text [13:23:54]json_value_free [13:23:54]json_value_free done [13:23:54]process_json_proto returns [13:23:54]Send response to host [13:23:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67485,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [13:23:54]free response buf [13:23:54]execute_script done [13:23:54]execute_script returns [13:23:54]free content buf [13:23:54]Sock 8.Close socket [13:23:54]Sock 8.Thread stoped [13:23:54]accept exits with 9 [13:23:54]New connection [13:23:54]New thread 3067182436 created [13:23:54]Thread 3067039076 joined [13:23:54]Waiting for new connection... [13:23:54] Sock 9.Parse request [13:23:54]Sock 9.Check first char [13:23:54]Sock 9.First char is OK [13:23:54]request: POST /json_proto HTTP/1.0 [13:23:54]Method: POST [13:23:54]URL: /json_proto [13:23:54]Method is POST - this is cgi request [13:23:54]url: /json_proto [13:23:54]query_string will be loaded in cgi processing [13:23:54]execute_cgi json_proto POST (null) [13:23:54]execute_cgi path=json_proto method=POST [13:23:54]POST find Content-Length [13:23:54]Host: 172.17.41.195:8080 [13:23:54]Content-Length: 1208 [13:23:54]Content-Type: application/json [13:23:54] [13:23:54]POST finish read [13:23:54]Found Content-Length = 1208 [13:23:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507528\u000A16.05.2024 13:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.710 x 74.70\u000A\u0418\u0422\u041E\u0413: 800.04\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:54]execute_script... [13:23:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507528\u000A16.05.2024 13:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.710 x 74.70\u000A\u0418\u0422\u041E\u0413: 800.04\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:54]POST & json_proto [13:23:54]process_json_proto [13:23:54]json parsed OK: [13:23:54]protocol is kg_v1.0 [13:23:54]action value=print_text [13:23:54]process_action print_text [13:23:54]cmd_print_text [13:23:54]ExternCall_PrintAddStr [13:23:54]wPrintStart [13:23:54]Write to MH i2c: 01 00 00 0B 0A 15 [13:23:54]Write i2c OK [13:23:54]MH_I2C_Read... [13:23:54]Read from MH i2c: 01 [13:23:54]MH_I2C_Read... [13:23:54]Read from MH i2c: 01 07 00 [13:23:54]MH_I2C_Read... [13:23:54]Read from MH i2c: 01 07 00 0B 0A 00 00 00 00 00 FF 0F 2A [13:23:54]RasterBufferAndPrint [13:23:54]line *****ТОВАРНЫЙ ЧЕК***** [13:23:54]line АЗС-91 [13:23:54]line Партнер нефть [13:23:54]line 02508201610067 [13:23:54]line Кассир : Пайзулдаева А. [13:23:54]line Счет N : (1)507528 [13:23:54]line 16.05.2024 13:06 [13:23:54]line ПРОДАЖА [13:23:54]line ТРК (МРК, ГНК): 11 [13:23:54]line Вид ГСМ : 2710194210 [13:23:54]line ДТ-К-5 [13:23:54]line 10.710 x 74.70 [13:23:54]line ИТОГ: 800.04 [13:23:54]line Тип оплаты: Талоны: Топливная Карта [13:23:54]line 02750 [13:23:54]line ______________________ [13:23:54]line (подпись) [13:23:54]written 0, free lines is 4095 [13:23:55]Write to MH i2c: 01 00 00 1F 0A 29 [13:23:55]Write i2c OK [13:23:55]MH_I2C_Read... [13:23:55]Read from MH i2c: 01 [13:23:55]MH_I2C_Read... [13:23:55]Read from MH i2c: 01 07 00 [13:23:55]MH_I2C_Read... [13:23:55]Read from MH i2c: 01 07 00 1F 0A 00 00 00 00 00 0E 0E 4C [13:23:55]RasterBufferAndPrint [13:23:55]line [13:23:55]line [13:23:55]line [13:23:55]line [13:23:55]line [13:23:55]written 0, free lines is 3600 [13:23:55]MH_Cut [13:23:55]Write to MH i2c: D1 01 00 26 0A 01 02 [13:23:55]Write i2c OK [13:23:55]MH_I2C_Read... [13:23:55]Read from MH i2c: D1 [13:23:55]MH_I2C_Read... [13:23:55]Read from MH i2c: D1 01 00 [13:23:55]MH_I2C_Read... [13:23:55]Read from MH i2c: D1 01 00 26 0A 00 01 [13:23:55]Write to MH i2c: 01 00 00 27 0A 31 [13:23:55]Write i2c OK [13:23:55]MH_I2C_Read... [13:23:55]*** Cut start [13:23:55]*** Purtial cut [13:23:55]*** CUTSNS_PIN = 0 [13:23:55]*** Stage 1: CUTSNS_PIN = 1 [13:23:57]Read from MH i2c: 01 [13:23:57]MH_I2C_Read... [13:23:57]Read from MH i2c: 01 07 00 [13:23:57]MH_I2C_Read... [13:23:57]*** Stop cut motor [13:23:57]*** Cut end [13:23:57]Read from MH i2c: 01 07 00 27 0A 00 00 00 00 00 FF 0F 46 [13:23:57]process_action print_text done [13:23:57]requested_data is exist [13:23:57]produce_requested_data [13:23:57]requested_item fm.sn is exist - process it [13:23:57]wFMCommunicate request_size=4 [13:23:57]MH_SAM_APDU [13:23:57]CAPDU: 80 11 00 00 [13:23:57]Write to MH i2c: E2 08 00 28 0A 80 11 00 00 00 00 00 00 AC [13:23:57]Write i2c OK [13:23:57]MH_I2C_Read... [13:23:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:57]Read from MH i2c: E2 [13:23:57]MH_I2C_Read... [13:23:57]Read from MH i2c: E2 17 00 [13:23:57]MH_I2C_Read... [13:23:57]Read from MH i2c: E2 17 00 28 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 02 [13:23:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:23:57]wFMCommunicate OK [13:23:57]requested_item fd.num is exist - process it [13:23:57]SAM_PROTO_GetFieldsCounters [13:23:57]wFMCommunicate request_size=4 [13:23:57]MH_SAM_APDU [13:23:57]CAPDU: 80 13 00 00 [13:23:57]Write to MH i2c: E2 08 00 29 0A 80 13 00 00 00 00 00 00 AF [13:23:57]Write i2c OK [13:23:57]MH_I2C_Read... [13:23:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:23:57]Read from MH i2c: E2 [13:23:57]MH_I2C_Read... [13:23:57]Read from MH i2c: E2 62 00 [13:23:57]MH_I2C_Read... [13:23:57]Read from MH i2c: E2 62 00 29 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 9D 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [13:23: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 9D 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:23:57]wFMCommunicate OK [13:23:57]SAM_PROTO_GetFieldsCounters done [13:23:57]requested_item shift.num is exist - process it [13:23:57]requested_item shift.opened is exist - process it [13:23:57]req_shift_opened [13:23:57]FM_GetShiftState [13:23:57]SAM_PROTO_GetShiftState [13:23:57]wFMCommunicate request_size=4 [13:23:57]MH_SAM_APDU [13:23:57]CAPDU: 80 13 01 00 [13:23:57]Write to MH i2c: E2 08 00 2A 0A 80 13 01 00 00 00 00 00 B1 [13:23:57]Write i2c OK [13:23:57]MH_I2C_Read... [13:23:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:57]Read from MH i2c: E2 [13:23:57]MH_I2C_Read... [13:23:57]Read from MH i2c: E2 0E 00 [13:23:57]MH_I2C_Read... [13:23:57]Read from MH i2c: E2 0E 00 2A 0A 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 5D [13:23:57]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [13:23:57]wFMCommunicate OK [13:23:57]SAM_PROTO_GetShiftState done [13:23:57]FM_GetShiftState done [13:23:57]req_shift_opened done [13:23:57]requested_item shift.open_date is exist - process it [13:23:57]req_shift_open_date [13:23:57]req_shift_open_date done [13:23:57]produce_requested_data done [13:23:57]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67485,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [13:23:57]process_action_free print_text [13:23:57]json_value_free [13:23:57]json_value_free done [13:23:57]process_json_proto returns [13:23:57]Send response to host [13:23:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67485,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [13:23:57]free response buf [13:23:57]execute_script done [13:23:57]execute_script returns [13:23:57]free content buf [13:23:57]Sock 9.Close socket [13:23:57]Sock 9.Thread stoped [13:23:59]OFD Sender: No OFD packet to send [13:24:04]OFD Sender: No OFD packet to send [13:24:09]OFD Sender: No OFD packet to send [13:24:14]OFD Sender: No OFD packet to send [13:24:19]OFD Sender: No OFD packet to send [13:24:24]OFD Sender: No OFD packet to send [13:24:29]OFD Sender: No OFD packet to send [13:24:34]OFD Sender: No OFD packet to send [13:24:39]OFD Sender: No OFD packet to send [13:24:44]OFD Sender: No OFD packet to send [13:24:49]OFD Sender: No OFD packet to send [13:24:54]OFD Sender: No OFD packet to send [13:24:59]OFD Sender: No OFD packet to send [13:25:04]OFD Sender: No OFD packet to send [13:25:09]OFD Sender: No OFD packet to send [13:25:14]OFD Sender: No OFD packet to send [13:25:19]OFD Sender: No OFD packet to send [13:25:24]OFD Sender: No OFD packet to send [13:25:29]OFD Sender: No OFD packet to send [13:25:34]OFD Sender: No OFD packet to send [13:25:39]OFD Sender: No OFD packet to send [13:25:44]OFD Sender: No OFD packet to send [13:25:49]OFD Sender: No OFD packet to send [13:25:54]OFD Sender: No OFD packet to send [13:25:59]OFD Sender: No OFD packet to send [13:26:04]OFD Sender: No OFD packet to send [13:26:09]OFD Sender: No OFD packet to send [13:26:14]OFD Sender: No OFD packet to send [13:26:19]OFD Sender: No OFD packet to send [13:26:24]OFD Sender: No OFD packet to send [13:26:29]OFD Sender: No OFD packet to send [13:26:34]OFD Sender: No OFD packet to send [13:26:39]OFD Sender: No OFD packet to send [13:26:44]OFD Sender: No OFD packet to send [13:26:49]OFD Sender: No OFD packet to send [13:26:54]OFD Sender: No OFD packet to send [13:26:59]OFD Sender: No OFD packet to send [13:27:04]OFD Sender: No OFD packet to send [13:27:09]OFD Sender: No OFD packet to send [13:27:14]OFD Sender: No OFD packet to send [13:27:19]OFD Sender: No OFD packet to send [13:27:24]OFD Sender: No OFD packet to send [13:27:29]OFD Sender: No OFD packet to send [13:27:34]OFD Sender: No OFD packet to send [13:27:39]OFD Sender: No OFD packet to send [13:27:44]OFD Sender: No OFD packet to send [13:27:49]OFD Sender: No OFD packet to send [13:27:54]OFD Sender: No OFD packet to send [13:27:59]OFD Sender: No OFD packet to send [13:28:04]OFD Sender: No OFD packet to send [13:28:09]OFD Sender: No OFD packet to send [13:28:14]OFD Sender: No OFD packet to send [13:28:19]OFD Sender: No OFD packet to send [13:28:24]OFD Sender: No OFD packet to send [13:28:29]OFD Sender: No OFD packet to send [13:28:34]OFD Sender: No OFD packet to send [13:28:39]OFD Sender: No OFD packet to send [13:28:44]OFD Sender: No OFD packet to send [13:28:49]OFD Sender: No OFD packet to send [13:28:54]OFD Sender: No OFD packet to send [13:28:59]OFD Sender: No OFD packet to send [13:29:04]OFD Sender: No OFD packet to send [13:29:09]OFD Sender: No OFD packet to send [13:29:14]OFD Sender: No OFD packet to send [13:29:19]OFD Sender: No OFD packet to send [13:29:24]OFD Sender: No OFD packet to send [13:29:29]OFD Sender: No OFD packet to send [13:29:34]OFD Sender: No OFD packet to send [13:29:39]OFD Sender: No OFD packet to send [13:29:44]OFD Sender: No OFD packet to send [13:29:49]OFD Sender: No OFD packet to send [13:29:54]OFD Sender: No OFD packet to send [13:29:59]OFD Sender: No OFD packet to send [13:30:04]OFD Sender: No OFD packet to send [13:30:09]OFD Sender: No OFD packet to send [13:30:14]OFD Sender: No OFD packet to send [13:30:19]OFD Sender: No OFD packet to send [13:30:24]OFD Sender: No OFD packet to send [13:30:29]OFD Sender: No OFD packet to send [13:30:34]OFD Sender: No OFD packet to send [13:30:39]OFD Sender: No OFD packet to send [13:30:44]OFD Sender: No OFD packet to send [13:30:49]OFD Sender: No OFD packet to send [13:30:54]OFD Sender: No OFD packet to send [13:30:59]OFD Sender: No OFD packet to send [13:31:04]OFD Sender: No OFD packet to send [13:31:07]accept exits with 8 [13:31:07]New connection [13:31:07]New thread 3067039076 created [13:31:07]Thread 3067182436 joined [13:31:07]Waiting for new connection... [13:31:07] Sock 8.Parse request [13:31:07]Sock 8.Check first char [13:31:07]Sock 8.First char is OK [13:31:07]request: POST /json_proto HTTP/1.0 [13:31:07]Method: POST [13:31:07]URL: /json_proto [13:31:07]Method is POST - this is cgi request [13:31:07]url: /json_proto [13:31:07]query_string will be loaded in cgi processing [13:31:07]execute_cgi json_proto POST (null) [13:31:07]execute_cgi path=json_proto method=POST [13:31:07]POST find Content-Length [13:31:07]Host: 172.17.41.195:8080 [13:31:07]Content-Length: 796 [13:31:07]Content-Type: application/json [13:31:07] [13:31:07]POST finish read [13:31:07]Found Content-Length = 796 [13:31:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507529", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 44.260, "sum" : 3000.83, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.83 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:31:07]execute_script... [13:31:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507529", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 44.260, "sum" : 3000.83, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.83 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:31:07]POST & json_proto [13:31:07]process_json_proto [13:31:07]json parsed OK: [13:31:07]protocol is kg_v1.0 [13:31:07]action value=close_receipt [13:31:07]process_action close_receipt [13:31:07]cmd_close_receipt [13:31:07]MH_GetDate [13:31:07]Write to MH i2c: F0 00 00 2B 0A 24 [13:31:07]Write i2c OK [13:31:07]MH_I2C_Read... [13:31:07]Read from MH i2c: F0 [13:31:07]MH_I2C_Read... [13:31:07]Read from MH i2c: F0 09 00 [13:31:07]MH_I2C_Read... [13:31:07]Read from MH i2c: F0 09 00 2B 0A 00 9C 0A 46 66 FC 21 6F 64 6F [13:31:07]GetLastDocTimeStamp 1715865642 [13:31:07]current date 1715866268 [13:31:07]FM_GetShiftState [13:31:07]SAM_PROTO_GetShiftState [13:31:07]wFMCommunicate request_size=4 [13:31:07]MH_SAM_APDU [13:31:07]CAPDU: 80 13 01 00 [13:31:07]Write to MH i2c: E2 08 00 2C 0A 80 13 01 00 00 00 00 00 B3 [13:31:07]Write i2c OK [13:31:07]MH_I2C_Read... [13:31:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:07]Read from MH i2c: E2 [13:31:07]MH_I2C_Read... [13:31:07]Read from MH i2c: E2 0E 00 [13:31:07]MH_I2C_Read... [13:31:07]Read from MH i2c: E2 0E 00 2C 0A 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 5F [13:31:07]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [13:31:07]wFMCommunicate OK [13:31:07]SAM_PROTO_GetShiftState done [13:31:07]FM_GetShiftState done [13:31:07]opened in 1715818916 [13:31:07]opened+sec_in_day 1715905316 [13:31:07]quantity*price = 300082 [13:31:07]sum+1 = 300084 [13:31:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.83 НСП 1% : 26.56 НДС 12% : 318.67 Наличными: 0.00 Безнал.: 3000.83 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 84 16.05.2024 13:31 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67486 ФПД: 67632515478295 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T133108&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67486&fm=67632515478295&tin=02508201610067®Number=0000000000091845&sum=300083 [13:31:09]StoreToDocumentArchive [13:31:09]shift 357 fd 67486 [13:31:09]save to /storage/0357/doc_00067486 [13:31:09]save last doc name /storage/0357/doc_00067486 to /storage/kkm_last_doc_name [13:31:09]save OK [13:31:09]Clear old archive folders... [13:31:09]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:31:09]tlvbuf is B6F8D070 [13:31:09]SAM_PROTO_ClearQueue [13:31:09]wFMCommunicate request_size=4 [13:31:09]MH_SAM_APDU [13:31:09]CAPDU: 80 09 00 00 [13:31:09]Write to MH i2c: E2 08 00 39 0A 80 09 00 00 00 00 00 00 B5 [13:31:09]Write i2c OK [13:31:09]MH_I2C_Read... [13:31:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:31:09]Read from MH i2c: E2 [13:31:09]MH_I2C_Read... [13:31:09]Read from MH i2c: E2 03 00 [13:31:09]MH_I2C_Read... [13:31:09]Read from MH i2c: E2 03 00 39 0A 00 90 00 B7 [13:31:09]RAPDU: 90 00 [13:31:09]wFMCommunicate OK [13:31:09]SAM_PROTO_ClearQueue done [13:31:09]KKMCreateOFDPacket [13:31:09]OFDProtocolAddRootSTLVToBuf [13:31:09]FM_MakeSignedData [13:31:09]FM_MakeSignedData [13:31:09]SAM_PROTO_SignData [13:31:09]wFMCommunicate request_size=4 [13:31:09]MH_SAM_APDU [13:31:09]CAPDU: 80 0D 01 02 [13:31:09]Write to MH i2c: E2 08 00 3A 0A 80 0D 01 02 00 00 00 00 BD [13:31:09]Write i2c OK [13:31:09]MH_I2C_Read... [13:31:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:31:09]Read from MH i2c: E2 [13:31:09]MH_I2C_Read... [13:31:09]Read from MH i2c: E2 03 00 [13:31:09]MH_I2C_Read... [13:31:09]Read from MH i2c: E2 03 00 3A 0A 00 90 00 B8 [13:31:09]RAPDU: 90 00 [13:31:09]wFMCommunicate OK [13:31:09]wFMCommunicate request_size=255 [13:31:09]MH_SAM_APDU [13:31:09]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 AC 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 33 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 33 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 33 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 9C 0A 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 9E 07 01 00 35 04 06 00 [13:31:09]Write to MH i2c: E2 02 01 3B 0A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 AC 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 33 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 33 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 33 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 9C 0A 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 9E 07 01 00 35 04 06 00 00 00 90 [13:31:09]Write i2c OK [13:31:09]MH_I2C_Read... [13:31:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:09]Read from MH i2c: E2 [13:31:09]MH_I2C_Read... [13:31:09]Read from MH i2c: E2 03 00 [13:31:09]MH_I2C_Read... [13:31:09]Read from MH i2c: E2 03 00 3B 0A 00 90 00 B9 [13:31:09]RAPDU: 90 00 [13:31:09]wFMCommunicate OK [13:31:09]wFMCommunicate request_size=11 [13:31:09]MH_SAM_APDU [13:31:09]CAPDU: 80 0D 02 02 06 3D 82 EC 0F 73 17 [13:31:09]Write to MH i2c: E2 0E 00 3C 0A 80 0D 02 02 06 00 3D 82 EC 0F 73 17 00 00 10 [13:31:09]Write i2c OK [13:31:09]MH_I2C_Read... [13:31:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:09]Read from MH i2c: E2 [13:31:09]MH_I2C_Read... [13:31:09]Read from MH i2c: E2 03 00 [13:31:09]MH_I2C_Read... [13:31:09]Read from MH i2c: E2 03 00 3C 0A 00 90 00 BA [13:31:09]RAPDU: 90 00 [13:31:09]wFMCommunicate OK [13:31:09]wFMCommunicate request_size=4 [13:31:09]MH_SAM_APDU [13:31:09]CAPDU: 80 0D 03 02 [13:31:09]Write to MH i2c: E2 08 00 3D 0A 80 0D 03 02 00 00 00 00 C2 [13:31:09]Write i2c OK [13:31:09]MH_I2C_Read... [13:31:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:31:09]Read from MH i2c: E2 [13:31:09]MH_I2C_Read... [13:31:09]Read from MH i2c: E2 0B 00 [13:31:09]MH_I2C_Read... [13:31:09]Read from MH i2c: E2 0B 00 3D 0A 00 F1 99 BC 27 F0 5C 1E 93 90 00 2D [13:31:09]RAPDU: F1 99 BC 27 F0 5C 1E 93 90 00 [13:31:09]wFMCommunicate OK [13:31:09]SAM_PROTO_SignData done [13:31:09]FM_MakeSignedData done [13:31:09]CreateOFDProtocolMessage [13:31:09]wFMCommunicate request_size=4 [13:31:09]MH_SAM_APDU [13:31:09]CAPDU: 80 11 00 00 [13:31:09]Write to MH i2c: E2 08 00 3E 0A 80 11 00 00 00 00 00 00 C2 [13:31:09]Write i2c OK [13:31:09]MH_I2C_Read... [13:31:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:09]Read from MH i2c: E2 [13:31:09]MH_I2C_Read... [13:31:09]Read from MH i2c: E2 17 00 [13:31:09]MH_I2C_Read... [13:31:09]Read from MH i2c: E2 17 00 3E 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 18 [13:31:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:31:09]wFMCommunicate OK [13:31:09]CreateOFDProtocolMessage done [13:31:09]OFDSenderStorePacket 67486 [13:31:09]StoreOFDPacket docnum=67486 [13:31:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 0B DA 08 01 C3 A0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 AC 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 33 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 33 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 33 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 9C 0A 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 9E 07 01 00 35 04 06 00 3D 82 EC 0F 73 17 F1 99 BC 27 F0 5C 1E 93 [13:31:09]CheckFolder [13:31:09]dirname=/storage/ofd_packets [13:31:09]CheckFolder done [13:31:09]ProducePacketName [13:31:09]name=ofd_packets/00067486 [13:31:09]NVStorageSaveData ofd_packets/00067486 [13:31:09]File name is /storage/ofd_packets/00067486 [13:31:09]Write 302 bytes [13:31:09]NVStorageSaveData done [13:31:09]OFDSenderStorePacket done [13:31:09]KKMCreateOFDPacket done [13:31:09]NVStorageSaveData kkm_last_timestamp [13:31:09]File name is /storage/kkm_last_timestamp [13:31:09]Write 4 bytes [13:31:09]NVStorageSaveData done [13:31:09]ExternCall_PrintAddStr [13:31:09]wPrintStart [13:31:09]Write to MH i2c: 01 00 00 3F 0A 49 [13:31:09]Write i2c OK [13:31:09]MH_I2C_Read... [13:31:09]Read from MH i2c: 01 [13:31:09]MH_I2C_Read... [13:31:09]Read from MH i2c: 01 07 00 [13:31:09]MH_I2C_Read... [13:31:09]Read from MH i2c: 01 07 00 3F 0A 00 00 00 00 00 FF 0F 5E [13:31:09]RasterBufferAndPrint [13:31:09]line Счет N : (1)507529 [13:31:09]line ИНН: 02508201610067 [13:31:09]line Контрольно-Кассовый Чек [13:31:09]line ПРОДАЖА [13:31:09]line ТРК (МРК, ГНК) : 42 [13:31:09]line Товар: 2710124130 [13:31:09]line Super-92-К-5 [13:31:09]line 44.260 * 67.80 [13:31:09]line = 3000.83 [13:31:09]line НДС 12% НСП 1% [13:31:09]line > о реализуемом товаре [13:31:09]line ИТОГО: 3000.83 [13:31:09]line НСП 1% : 26.56 [13:31:09]line НДС 12% : 318.67 [13:31:09]line Наличными: 0.00 [13:31:09]line Безнал.: 3000.83 [13:31:09]line Место: АЗС № 91 "Партнер Нефть" [13:31:09]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:31:09]line СНО: Общий режим [13:31:09]line Чек 84 16.05.2024 13:31 [13:31:09]line Смена: 357 ФФД: 1.0 [13:31:09]line ЗНМ: 0300000119 [13:31:09]line РНМ: 0000000000091845 [13:31:09]line Версия ККМ: 001 [13:31:09]line Платежная система: O! деньги [13:31:09]line ФМ: 0000000000871829 [13:31:09]line ФД: 67486 [13:31:09]line ФПД: 67632515478295 [13:31:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T133108&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67486&fm=67632515478295&tin=02508201610067®Number=0000000000091845&sum=300083 [13:31:09]OFD Sender: Processing packet 67486 [packets to send 35, broken 34] [13:31:09]ProducePacketName [13:31:09]name=ofd_packets/00067486 [13:31:09]OFD Sender: To server: pG, [13:31:09]CommunicateWithHost lk.salyk.kg:30040 [13:31:09]ConnectInit lk.salyk.kg [13:31:09]written 0, free lines is 4095 [13:31:10]Connected sock=11 [13:31: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 38 32 39 10 01 00 00 0B DA 08 01 C3 A0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 AC 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 33 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 33 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 33 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 9C 0A 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 9E 07 01 00 35 04 06 00 3D 82 EC 0F 73 17 F1 99 BC 27 F0 5C 1E 93 [13:31:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 48 3B 47 00 F6 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 9E 07 01 00 F4 03 04 00 77 B2 45 66 B6 04 01 00 00 23 C6 6B 76 37 65 55 A4 [13:31:10]CommunicateWithHost err = 0 [13:31:10]CheckOFDResponse [13:31:10]1017 (14) - 77093643461234 [13:31:10]1041 (16) - 0000000000871829 [13:31:10]1040 (4) - 67486 [13:31:10]1012 (4) - 16.05.2024 07:15 [13:31:10]1206 (1) - 0 [13:31:10]OFD Sender: Remove packet 67486 [13:31:10]ProducePacketName [13:31:10]name=ofd_packets/00067486 [13:31:10]NVStorageDeleteData [13:31:10]Write to MH i2c: 01 00 00 68 0A 72 [13:31:10]Write i2c OK [13:31:10]MH_I2C_Read... [13:31:10]Read from MH i2c: 01 [13:31:10]MH_I2C_Read... [13:31:10]Read from MH i2c: 01 07 00 [13:31:10]MH_I2C_Read... [13:31:10]Read from MH i2c: 01 07 00 68 0A 00 00 00 00 00 E3 0C 68 [13:31:10]RasterBufferAndPrint [13:31:10]line [13:31:10]line [13:31:10]line [13:31:10]line [13:31:10]line [13:31:10]written 0, free lines is 3305 [13:31:10]MH_Cut [13:31:10]Write to MH i2c: D1 01 00 6F 0A 01 4B [13:31:10]Write i2c OK [13:31:10]MH_I2C_Read... [13:31:10]Read from MH i2c: D1 [13:31:10]MH_I2C_Read... [13:31:10]Read from MH i2c: D1 01 00 [13:31:10]MH_I2C_Read... [13:31:10]Read from MH i2c: D1 01 00 6F 0A 00 4A [13:31:10]Write to MH i2c: 01 00 00 70 0A 7A [13:31:10]Write i2c OK [13:31:10]MH_I2C_Read... [13:31:10]OFD Sender: No OFD packet to send [13:31:11]*** Cut start [13:31:11]*** Purtial cut [13:31:11]*** Stage 1: CUTSNS_PIN = 1 [13:31:11]Read from MH i2c: 01 [13:31:11]MH_I2C_Read... [13:31:11]*** Stop cut motor [13:31:11]*** Cut end [13:31:11]Read from MH i2c: 01 07 00 [13:31:11]MH_I2C_Read... [13:31:11]Read from MH i2c: 01 07 00 70 0A 00 00 00 00 00 FF 0F 8F [13:31:11]process_action close_receipt done [13:31:11]requested_data is exist [13:31:11]produce_requested_data [13:31:11]requested_item fm.sn is exist - process it [13:31:11]wFMCommunicate request_size=4 [13:31:11]MH_SAM_APDU [13:31:11]CAPDU: 80 11 00 00 [13:31:11]Write to MH i2c: E2 08 00 71 0A 80 11 00 00 00 00 00 00 F5 [13:31:11]Write i2c OK [13:31:11]MH_I2C_Read... [13:31:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:11]Read from MH i2c: E2 [13:31:11]MH_I2C_Read... [13:31:11]Read from MH i2c: E2 17 00 [13:31:11]MH_I2C_Read... [13:31:11]Read from MH i2c: E2 17 00 71 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 4B [13:31:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:31:11]wFMCommunicate OK [13:31:11]requested_item fd.num is exist - process it [13:31:11]SAM_PROTO_GetFieldsCounters [13:31:11]wFMCommunicate request_size=4 [13:31:11]MH_SAM_APDU [13:31:11]CAPDU: 80 13 00 00 [13:31:11]Write to MH i2c: E2 08 00 72 0A 80 13 00 00 00 00 00 00 F8 [13:31:11]Write i2c OK [13:31:11]MH_I2C_Read... [13:31:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:31:11]Read from MH i2c: E2 [13:31:11]MH_I2C_Read... [13:31:11]Read from MH i2c: E2 62 00 [13:31:11]MH_I2C_Read... [13:31:11]Read from MH i2c: E2 62 00 72 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 9E 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [13:31:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 9E 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:31:11]wFMCommunicate OK [13:31:11]SAM_PROTO_GetFieldsCounters done [13:31:11]requested_item shift.num is exist - process it [13:31:11]requested_item shift.opened is exist - process it [13:31:11]req_shift_opened [13:31:11]FM_GetShiftState [13:31:11]SAM_PROTO_GetShiftState [13:31:11]wFMCommunicate request_size=4 [13:31:11]MH_SAM_APDU [13:31:11]CAPDU: 80 13 01 00 [13:31:11]Write to MH i2c: E2 08 00 73 0A 80 13 01 00 00 00 00 00 FA [13:31:11]Write i2c OK [13:31:11]MH_I2C_Read... [13:31:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:11]Read from MH i2c: E2 [13:31:11]MH_I2C_Read... [13:31:11]Read from MH i2c: E2 0E 00 [13:31:11]MH_I2C_Read... [13:31:11]Read from MH i2c: E2 0E 00 73 0A 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 A6 [13:31:11]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [13:31:11]wFMCommunicate OK [13:31:11]SAM_PROTO_GetShiftState done [13:31:11]FM_GetShiftState done [13:31:11]req_shift_opened done [13:31:11]requested_item shift.open_date is exist - process it [13:31:11]req_shift_open_date [13:31:11]req_shift_open_date done [13:31:11]produce_requested_data done [13:31:11]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67486,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [13:31:11]process_action_free close_receipt [13:31:11]json_value_free [13:31:11]json_value_free done [13:31:11]process_json_proto returns [13:31:11]Send response to host [13:31:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67486,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [13:31:11]free response buf [13:31:11]execute_script done [13:31:11]execute_script returns [13:31:11]free content buf [13:31:11]Sock 8.Close socket [13:31:11]Sock 8.Thread stoped [13:31:15]OFD Sender: No OFD packet to send [13:31:20]OFD Sender: No OFD packet to send [13:31:25]OFD Sender: No OFD packet to send [13:31:30]OFD Sender: No OFD packet to send [13:31:35]OFD Sender: No OFD packet to send [13:31:40]OFD Sender: No OFD packet to send [13:31:45]OFD Sender: No OFD packet to send [13:31:50]OFD Sender: No OFD packet to send [13:31:55]OFD Sender: No OFD packet to send [13:32:00]OFD Sender: No OFD packet to send [13:32:05]OFD Sender: No OFD packet to send [13:32:10]OFD Sender: No OFD packet to send [13:32:15]OFD Sender: No OFD packet to send [13:32:20]OFD Sender: No OFD packet to send [13:32:25]OFD Sender: No OFD packet to send [13:32:30]OFD Sender: No OFD packet to send [13:32:35]OFD Sender: No OFD packet to send [13:32:40]OFD Sender: No OFD packet to send [13:32:45]OFD Sender: No OFD packet to send [13:32:50]OFD Sender: No OFD packet to send [13:32:55]OFD Sender: No OFD packet to send [13:33:00]OFD Sender: No OFD packet to send [13:33:05]OFD Sender: No OFD packet to send [13:33:10]OFD Sender: No OFD packet to send [13:33:15]OFD Sender: No OFD packet to send [13:33:20]OFD Sender: No OFD packet to send [13:33:25]OFD Sender: No OFD packet to send [13:33:30]OFD Sender: No OFD packet to send [13:33:35]OFD Sender: No OFD packet to send [13:33:40]OFD Sender: No OFD packet to send [13:33:45]OFD Sender: No OFD packet to send [13:33:50]OFD Sender: No OFD packet to send [13:33:55]OFD Sender: No OFD packet to send [13:34:00]OFD Sender: No OFD packet to send [13:34:05]OFD Sender: No OFD packet to send [13:34:10]OFD Sender: No OFD packet to send [13:34:15]OFD Sender: No OFD packet to send [13:34:20]OFD Sender: No OFD packet to send [13:34:25]OFD Sender: No OFD packet to send [13:34:30]OFD Sender: No OFD packet to send [13:34:35]OFD Sender: No OFD packet to send [13:34:40]OFD Sender: No OFD packet to send [13:34:45]OFD Sender: No OFD packet to send [13:34:50]OFD Sender: No OFD packet to send [13:34:55]OFD Sender: No OFD packet to send [13:35:00]OFD Sender: No OFD packet to send [13:35:05]OFD Sender: No OFD packet to send [13:35:10]OFD Sender: No OFD packet to send [13:35:15]OFD Sender: No OFD packet to send [13:35:20]OFD Sender: No OFD packet to send [13:35:25]OFD Sender: No OFD packet to send [13:35:30]OFD Sender: No OFD packet to send [13:35:35]OFD Sender: No OFD packet to send [13:35:40]OFD Sender: No OFD packet to send [13:35:45]OFD Sender: No OFD packet to send [13:35:50]OFD Sender: No OFD packet to send [13:35:55]OFD Sender: No OFD packet to send [13:36:00]OFD Sender: No OFD packet to send [13:36:05]OFD Sender: No OFD packet to send [13:36:10]OFD Sender: No OFD packet to send [13:36:15]OFD Sender: No OFD packet to send [13:36:20]OFD Sender: No OFD packet to send [13:36:25]OFD Sender: No OFD packet to send [13:36:30]OFD Sender: No OFD packet to send [13:36:35]OFD Sender: No OFD packet to send [13:36:40]OFD Sender: No OFD packet to send [13:36:45]OFD Sender: No OFD packet to send [13:36:50]OFD Sender: No OFD packet to send [13:36:55]OFD Sender: No OFD packet to send [13:37:00]OFD Sender: No OFD packet to send [13:37:05]OFD Sender: No OFD packet to send [13:37:10]OFD Sender: No OFD packet to send [13:37:15]OFD Sender: No OFD packet to send [13:37:21]OFD Sender: No OFD packet to send [13:37:26]OFD Sender: No OFD packet to send [13:37:31]OFD Sender: No OFD packet to send [13:37:36]OFD Sender: No OFD packet to send [13:37:41]OFD Sender: No OFD packet to send [13:37:46]OFD Sender: No OFD packet to send [13:37:51]OFD Sender: No OFD packet to send [13:37:56]OFD Sender: No OFD packet to send [13:38:01]OFD Sender: No OFD packet to send [13:38:06]OFD Sender: No OFD packet to send [13:38:11]OFD Sender: No OFD packet to send [13:38:16]OFD Sender: No OFD packet to send [13:38:21]OFD Sender: No OFD packet to send [13:38:26]OFD Sender: No OFD packet to send [13:38:31]OFD Sender: No OFD packet to send [13:38:36]OFD Sender: No OFD packet to send [13:38:41]OFD Sender: No OFD packet to send [13:38:46]OFD Sender: No OFD packet to send [13:38:51]OFD Sender: No OFD packet to send [13:38:56]OFD Sender: No OFD packet to send [13:39:01]OFD Sender: No OFD packet to send [13:39:06]OFD Sender: No OFD packet to send [13:39:11]OFD Sender: No OFD packet to send [13:39:16]OFD Sender: No OFD packet to send [13:39:21]OFD Sender: No OFD packet to send [13:39:26]OFD Sender: No OFD packet to send [13:39:31]OFD Sender: No OFD packet to send [13:39:36]OFD Sender: No OFD packet to send [13:39:41]OFD Sender: No OFD packet to send [13:39:46]OFD Sender: No OFD packet to send [13:39:51]OFD Sender: No OFD packet to send [13:39:56]OFD Sender: No OFD packet to send [13:40:01]OFD Sender: No OFD packet to send [13:40:06]OFD Sender: No OFD packet to send [13:40:11]OFD Sender: No OFD packet to send [13:40:14]accept exits with 9 [13:40:14]New connection [13:40:14]New thread 3067182436 created [13:40:14]Thread 3067039076 joined [13:40:14]Waiting for new connection... [13:40:14] Sock 9.Parse request [13:40:14]Sock 9.Check first char [13:40:14]Sock 9.First char is OK [13:40:14]request: POST /json_proto HTTP/1.0 [13:40:14]Method: POST [13:40:14]URL: /json_proto [13:40:14]Method is POST - this is cgi request [13:40:14]url: /json_proto [13:40:14]query_string will be loaded in cgi processing [13:40:14]execute_cgi json_proto POST (null) [13:40:14]execute_cgi path=json_proto method=POST [13:40:14]POST find Content-Length [13:40:14]Host: 172.17.41.195:8080 [13:40:14]Content-Length: 800 [13:40:14]Content-Type: application/json [13:40:14] [13:40:14]POST finish read [13:40:14]Found Content-Length = 800 [13:40:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507530", "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" : 74.70, "quantity" : 40.170, "sum" : 3000.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:40:14]execute_script... [13:40: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)507530", "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" : 74.70, "quantity" : 40.170, "sum" : 3000.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:40:14]POST & json_proto [13:40:14]process_json_proto [13:40:14]json parsed OK: [13:40:14]protocol is kg_v1.0 [13:40:14]action value=close_receipt [13:40:14]process_action close_receipt [13:40:14]cmd_close_receipt [13:40:14]MH_GetDate [13:40:14]Write to MH i2c: F0 00 00 74 0A 6D [13:40:14]Write i2c OK [13:40:14]MH_I2C_Read... [13:40:14]Read from MH i2c: F0 [13:40:14]MH_I2C_Read... [13:40:14]Read from MH i2c: F0 09 00 [13:40:14]MH_I2C_Read... [13:40:14]Read from MH i2c: F0 09 00 74 0A 00 BF 0C 46 66 FC 21 6F 64 DD [13:40:14]GetLastDocTimeStamp 1715866268 [13:40:14]current date 1715866815 [13:40:14]FM_GetShiftState [13:40:14]SAM_PROTO_GetShiftState [13:40:14]wFMCommunicate request_size=4 [13:40:14]MH_SAM_APDU [13:40:14]CAPDU: 80 13 01 00 [13:40:14]Write to MH i2c: E2 08 00 75 0A 80 13 01 00 00 00 00 00 FC [13:40:14]Write i2c OK [13:40:14]MH_I2C_Read... [13:40:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:14]Read from MH i2c: E2 [13:40:14]MH_I2C_Read... [13:40:14]Read from MH i2c: E2 0E 00 [13:40:14]MH_I2C_Read... [13:40:14]Read from MH i2c: E2 0E 00 75 0A 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 A8 [13:40:14]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [13:40:14]wFMCommunicate OK [13:40:14]SAM_PROTO_GetShiftState done [13:40:14]FM_GetShiftState done [13:40:14]opened in 1715818916 [13:40:14]opened+sec_in_day 1715905316 [13:40:14]quantity*price = 300069 [13:40:14]sum+1 = 300071 [13:40:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.70 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.70 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 85 16.05.2024 13:40 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67487 ФПД: 56457850537533 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T134015&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67487&fm=56457850537533&tin=02508201610067®Number=0000000000091845&sum=300070 [13:40:15]StoreToDocumentArchive [13:40:15]shift 357 fd 67487 [13:40:15]save to /storage/0357/doc_00067487 [13:40:15]save last doc name /storage/0357/doc_00067487 to /storage/kkm_last_doc_name [13:40:15]save OK [13:40:15]Clear old archive folders... [13:40:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:40:15]tlvbuf is 017C1D10 [13:40:15]SAM_PROTO_ClearQueue [13:40:15]wFMCommunicate request_size=4 [13:40:15]MH_SAM_APDU [13:40:15]CAPDU: 80 09 00 00 [13:40:15]Write to MH i2c: E2 08 00 82 0A 80 09 00 00 00 00 00 00 FE [13:40:15]Write i2c OK [13:40:15]MH_I2C_Read... [13:40:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:40:15]Read from MH i2c: E2 [13:40:15]MH_I2C_Read... [13:40:15]Read from MH i2c: E2 03 00 [13:40:15]MH_I2C_Read... [13:40:15]Read from MH i2c: E2 03 00 82 0A 00 90 00 00 [13:40:15]RAPDU: 90 00 [13:40:15]wFMCommunicate OK [13:40:15]SAM_PROTO_ClearQueue done [13:40:15]KKMCreateOFDPacket [13:40:15]OFDProtocolAddRootSTLVToBuf [13:40:15]FM_MakeSignedData [13:40:15]FM_MakeSignedData [13:40:15]SAM_PROTO_SignData [13:40:15]wFMCommunicate request_size=4 [13:40:15]MH_SAM_APDU [13:40:15]CAPDU: 80 0D 01 02 [13:40:15]Write to MH i2c: E2 08 00 83 0A 80 0D 01 02 00 00 00 00 06 [13:40:15]Write i2c OK [13:40:15]MH_I2C_Read... [13:40:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:40:15]Read from MH i2c: E2 [13:40:15]MH_I2C_Read... [13:40:15]Read from MH i2c: E2 03 00 [13:40:15]MH_I2C_Read... [13:40:15]Read from MH i2c: E2 03 00 83 0A 00 90 00 01 [13:40:15]RAPDU: 90 00 [13:40:15]wFMCommunicate OK [13:40:15]wFMCommunicate request_size=255 [13:40:15]MH_SAM_APDU [13:40: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 EA 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 26 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 26 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 BF 0C 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 9F 07 01 00 35 04 06 00 33 59 1E 20 [13:40:15]Write to MH i2c: E2 02 01 84 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 EA 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 26 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 26 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 BF 0C 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 9F 07 01 00 35 04 06 00 33 59 1E 20 00 00 75 [13:40:15]Write i2c OK [13:40:15]MH_I2C_Read... [13:40:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:15]Read from MH i2c: E2 [13:40:15]MH_I2C_Read... [13:40:15]Read from MH i2c: E2 03 00 [13:40:15]MH_I2C_Read... [13:40:15]Read from MH i2c: E2 03 00 84 0A 00 90 00 02 [13:40:15]RAPDU: 90 00 [13:40:15]wFMCommunicate OK [13:40:15]wFMCommunicate request_size=7 [13:40:15]MH_SAM_APDU [13:40:15]CAPDU: 80 0D 02 02 02 46 3D [13:40:15]Write to MH i2c: E2 0A 00 85 0A 80 0D 02 02 02 00 46 3D 00 00 90 [13:40:15]Write i2c OK [13:40:15]MH_I2C_Read... [13:40:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:15]Read from MH i2c: E2 [13:40:15]MH_I2C_Read... [13:40:15]Read from MH i2c: E2 03 00 [13:40:15]MH_I2C_Read... [13:40:15]Read from MH i2c: E2 03 00 85 0A 00 90 00 03 [13:40:15]RAPDU: 90 00 [13:40:15]wFMCommunicate OK [13:40:15]wFMCommunicate request_size=4 [13:40:15]MH_SAM_APDU [13:40:15]CAPDU: 80 0D 03 02 [13:40:15]Write to MH i2c: E2 08 00 86 0A 80 0D 03 02 00 00 00 00 0B [13:40:15]Write i2c OK [13:40:15]MH_I2C_Read... [13:40:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:40:15]Read from MH i2c: E2 [13:40:15]MH_I2C_Read... [13:40:15]Read from MH i2c: E2 0B 00 [13:40:15]MH_I2C_Read... [13:40:15]Read from MH i2c: E2 0B 00 86 0A 00 74 54 76 70 69 1C D7 92 90 00 A8 [13:40:15]RAPDU: 74 54 76 70 69 1C D7 92 90 00 [13:40:15]wFMCommunicate OK [13:40:15]SAM_PROTO_SignData done [13:40:15]FM_MakeSignedData done [13:40:15]CreateOFDProtocolMessage [13:40:15]wFMCommunicate request_size=4 [13:40:15]MH_SAM_APDU [13:40:15]CAPDU: 80 11 00 00 [13:40:15]Write to MH i2c: E2 08 00 87 0A 80 11 00 00 00 00 00 00 0B [13:40:15]Write i2c OK [13:40:15]MH_I2C_Read... [13:40:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:15]Read from MH i2c: E2 [13:40:15]MH_I2C_Read... [13:40:15]Read from MH i2c: E2 17 00 [13:40:15]MH_I2C_Read... [13:40:15]Read from MH i2c: E2 17 00 87 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 61 [13:40:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:40:15]wFMCommunicate OK [13:40:15]CreateOFDProtocolMessage done [13:40:15]OFDSenderStorePacket 67487 [13:40:15]StoreOFDPacket docnum=67487 [13:40:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 FD 3A 04 01 E4 D6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 26 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 26 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 BF 0C 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 9F 07 01 00 35 04 06 00 33 59 1E 20 46 3D 74 54 76 70 69 1C D7 92 [13:40:15]CheckFolder [13:40:15]dirname=/storage/ofd_packets [13:40:15]CheckFolder done [13:40:15]ProducePacketName [13:40:15]name=ofd_packets/00067487 [13:40:15]NVStorageSaveData ofd_packets/00067487 [13:40:15]File name is /storage/ofd_packets/00067487 [13:40:15]Write 298 bytes [13:40:15]NVStorageSaveData done [13:40:15]OFDSenderStorePacket done [13:40:15]KKMCreateOFDPacket done [13:40:15]NVStorageSaveData kkm_last_timestamp [13:40:15]File name is /storage/kkm_last_timestamp [13:40:15]Write 4 bytes [13:40:15]NVStorageSaveData done [13:40:15]ExternCall_PrintAddStr [13:40:15]wPrintStart [13:40:15]Write to MH i2c: 01 00 00 88 0A 92 [13:40:15]Write i2c OK [13:40:15]MH_I2C_Read... [13:40:15]Read from MH i2c: 01 [13:40:15]MH_I2C_Read... [13:40:15]Read from MH i2c: 01 07 00 [13:40:15]MH_I2C_Read... [13:40:15]Read from MH i2c: 01 07 00 88 0A 00 00 00 00 00 FF 0F A7 [13:40:15]RasterBufferAndPrint [13:40:15]line Счет N : (1)507530 [13:40:15]line ИНН: 02508201610067 [13:40:15]line Контрольно-Кассовый Чек [13:40:15]line ПРОДАЖА [13:40:15]line ТРК (МРК, ГНК) : 31 [13:40:15]line Товар: 2710194210 [13:40:15]line ДТ-К-5 [13:40:15]line 40.170 * 74.70 [13:40:15]line = 3000.70 [13:40:15]line НДС 12% НСП 1% [13:40:15]line > о реализуемом товаре [13:40:15]line ИТОГО: 3000.70 [13:40:15]line НСП 1% : 26.55 [13:40:15]line НДС 12% : 318.66 [13:40:15]line Наличными: 0.00 [13:40:15]line Безнал.: 3000.70 [13:40:15]line Место: АЗС № 91 "Партнер Нефть" [13:40:15]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:40:15]line СНО: Общий режим [13:40:15]line Чек 85 16.05.2024 13:40 [13:40:15]line Смена: 357 ФФД: 1.0 [13:40:15]line ЗНМ: 0300000119 [13:40:15]line РНМ: 0000000000091845 [13:40:15]line Версия ККМ: 001 [13:40:15]line Платежная система: O! деньги [13:40:15]line ФМ: 0000000000871829 [13:40:15]line ФД: 67487 [13:40:15]line ФПД: 56457850537533 [13:40:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T134015&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67487&fm=56457850537533&tin=02508201610067®Number=0000000000091845&sum=300070 [13:40:16]OFD Sender: Processing packet 67487 [packets to send 35, broken 34] [13:40:16]ProducePacketName [13:40:16]name=ofd_packets/00067487 [13:40:16]OFD Sender: To server: pG, [13:40:16]CommunicateWithHost lk.salyk.kg:30040 [13:40:16]ConnectInit lk.salyk.kg [13:40:16]written 0, free lines is 4095 [13:40:16]Connected sock=10 [13:40: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 38 32 39 0C 01 00 00 FD 3A 04 01 E4 D6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 26 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 26 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 BF 0C 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 9F 07 01 00 35 04 06 00 33 59 1E 20 46 3D 74 54 76 70 69 1C D7 92 [13:40:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 F1 3F 47 00 F5 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 38 32 39 10 04 04 00 9F 07 01 00 F4 03 04 00 99 B4 45 66 B6 04 01 00 00 68 22 E0 E6 5F 71 2B 42 [13:40:16]CommunicateWithHost err = 0 [13:40:16]CheckOFDResponse [13:40:16]1017 (14) - 77093643461234 [13:40:16]1041 (16) - 0000000000871829 [13:40:16]1040 (4) - 67487 [13:40:16]1012 (4) - 16.05.2024 07:24 [13:40:16]1206 (1) - 0 [13:40:16]OFD Sender: Remove packet 67487 [13:40:16]ProducePacketName [13:40:16]name=ofd_packets/00067487 [13:40:16]NVStorageDeleteData [13:40:16]Write to MH i2c: 01 00 00 B1 0A BB [13:40:16]Write i2c OK [13:40:16]MH_I2C_Read... [13:40:16]Read from MH i2c: 01 [13:40:16]MH_I2C_Read... [13:40:16]Read from MH i2c: 01 07 00 [13:40:16]MH_I2C_Read... [13:40:16]Read from MH i2c: 01 07 00 B1 0A 00 00 00 00 00 D3 0C A1 [13:40:16]RasterBufferAndPrint [13:40:16]line [13:40:16]line [13:40:16]line [13:40:16]line [13:40:16]line [13:40:16]written 0, free lines is 3289 [13:40:16]MH_Cut [13:40:16]Write to MH i2c: D1 01 00 B8 0A 01 94 [13:40:16]Write i2c OK [13:40:16]MH_I2C_Read... [13:40:16]Read from MH i2c: D1 [13:40:16]MH_I2C_Read... [13:40:16]Read from MH i2c: D1 01 00 [13:40:16]MH_I2C_Read... [13:40:16]Read from MH i2c: D1 01 00 B8 0A 00 93 [13:40:16]Write to MH i2c: 01 00 00 B9 0A C3 [13:40:16]Write i2c OK [13:40:16]MH_I2C_Read... [13:40:16]OFD Sender: No OFD packet to send [13:40:17]*** Cut start [13:40:17]*** Purtial cut [13:40:17]*** CUTSNS_PIN = 0 [13:40:17]*** Stage 1: CUTSNS_PIN = 1 [13:40:19]Read from MH i2c: 01 [13:40:19]MH_I2C_Read... [13:40:19]*** Stop cut motor [13:40:19]*** Cut end [13:40:19]Read from MH i2c: 01 07 00 [13:40:19]MH_I2C_Read... [13:40:19]Read from MH i2c: 01 07 00 B9 0A 00 00 00 00 00 FF 0F D8 [13:40:19]process_action close_receipt done [13:40:19]requested_data is exist [13:40:19]produce_requested_data [13:40:19]requested_item fm.sn is exist - process it [13:40:19]wFMCommunicate request_size=4 [13:40:19]MH_SAM_APDU [13:40:19]CAPDU: 80 11 00 00 [13:40:19]Write to MH i2c: E2 08 00 BA 0A 80 11 00 00 00 00 00 00 3E [13:40:19]Write i2c OK [13:40:19]MH_I2C_Read... [13:40:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:19]Read from MH i2c: E2 [13:40:19]MH_I2C_Read... [13:40:19]Read from MH i2c: E2 17 00 [13:40:19]MH_I2C_Read... [13:40:19]Read from MH i2c: E2 17 00 BA 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 94 [13:40:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:40:19]wFMCommunicate OK [13:40:19]requested_item fd.num is exist - process it [13:40:19]SAM_PROTO_GetFieldsCounters [13:40:19]wFMCommunicate request_size=4 [13:40:19]MH_SAM_APDU [13:40:19]CAPDU: 80 13 00 00 [13:40:19]Write to MH i2c: E2 08 00 BB 0A 80 13 00 00 00 00 00 00 41 [13:40:19]Write i2c OK [13:40:19]MH_I2C_Read... [13:40:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:40:19]Read from MH i2c: E2 [13:40:19]MH_I2C_Read... [13:40:19]Read from MH i2c: E2 62 00 [13:40:19]MH_I2C_Read... [13:40:19]Read from MH i2c: E2 62 00 BB 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 9F 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [13:40:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 9F 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:40:19]wFMCommunicate OK [13:40:19]SAM_PROTO_GetFieldsCounters done [13:40:19]requested_item shift.num is exist - process it [13:40:19]requested_item shift.opened is exist - process it [13:40:19]req_shift_opened [13:40:19]FM_GetShiftState [13:40:19]SAM_PROTO_GetShiftState [13:40:19]wFMCommunicate request_size=4 [13:40:19]MH_SAM_APDU [13:40:19]CAPDU: 80 13 01 00 [13:40:19]Write to MH i2c: E2 08 00 BC 0A 80 13 01 00 00 00 00 00 43 [13:40:19]Write i2c OK [13:40:19]MH_I2C_Read... [13:40:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:19]Read from MH i2c: E2 [13:40:19]MH_I2C_Read... [13:40:19]Read from MH i2c: E2 0E 00 [13:40:19]MH_I2C_Read... [13:40:19]Read from MH i2c: E2 0E 00 BC 0A 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 EF [13:40:19]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [13:40:19]wFMCommunicate OK [13:40:19]SAM_PROTO_GetShiftState done [13:40:19]FM_GetShiftState done [13:40:19]req_shift_opened done [13:40:19]requested_item shift.open_date is exist - process it [13:40:19]req_shift_open_date [13:40:19]req_shift_open_date done [13:40:19]produce_requested_data done [13:40:19]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67487,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [13:40:19]process_action_free close_receipt [13:40:19]json_value_free [13:40:19]json_value_free done [13:40:19]process_json_proto returns [13:40:19]Send response to host [13:40:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67487,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [13:40:19]free response buf [13:40:19]execute_script done [13:40:19]execute_script returns [13:40:19]free content buf [13:40:19]Sock 9.Close socket [13:40:19]Sock 9.Thread stoped [13:40:21]OFD Sender: No OFD packet to send [13:40:26]OFD Sender: No OFD packet to send [13:40:31]OFD Sender: No OFD packet to send [13:40:36]OFD Sender: No OFD packet to send [13:40:41]OFD Sender: No OFD packet to send [13:40:46]OFD Sender: No OFD packet to send [13:40:51]OFD Sender: No OFD packet to send [13:40:56]OFD Sender: No OFD packet to send [13:41:01]OFD Sender: No OFD packet to send [13:41:06]OFD Sender: No OFD packet to send [13:41:11]OFD Sender: No OFD packet to send [13:41:16]OFD Sender: No OFD packet to send [13:41:22]OFD Sender: No OFD packet to send [13:41:27]OFD Sender: No OFD packet to send [13:41:32]OFD Sender: No OFD packet to send [13:41:37]OFD Sender: No OFD packet to send [13:41:42]OFD Sender: No OFD packet to send [13:41:47]OFD Sender: No OFD packet to send [13:41:52]OFD Sender: No OFD packet to send [13:41:57]OFD Sender: No OFD packet to send [13:42:02]OFD Sender: No OFD packet to send [13:42:07]OFD Sender: No OFD packet to send [13:42:12]OFD Sender: No OFD packet to send [13:42:17]OFD Sender: No OFD packet to send [13:42:22]OFD Sender: No OFD packet to send [13:42:27]OFD Sender: No OFD packet to send [13:42:32]OFD Sender: No OFD packet to send [13:42:37]OFD Sender: No OFD packet to send [13:42:42]OFD Sender: No OFD packet to send [13:42:47]OFD Sender: No OFD packet to send [13:42:52]OFD Sender: No OFD packet to send [13:42:57]OFD Sender: No OFD packet to send [13:43:02]OFD Sender: No OFD packet to send [13:43:07]OFD Sender: No OFD packet to send [13:43:12]OFD Sender: No OFD packet to send [13:43:17]OFD Sender: No OFD packet to send [13:43:22]OFD Sender: No OFD packet to send [13:43:27]OFD Sender: No OFD packet to send [13:43:32]OFD Sender: No OFD packet to send [13:43:37]OFD Sender: No OFD packet to send [13:43:41]accept exits with 8 [13:43:41]New connection [13:43:41]New thread 3067039076 created [13:43:41]Thread 3067182436 joined [13:43:41]Waiting for new connection... [13:43:41] Sock 8.Parse request [13:43:41]Sock 8.Check first char [13:43:41]Sock 8.First char is OK [13:43:41]request: POST /json_proto HTTP/1.0 [13:43:41]Method: POST [13:43:41]URL: /json_proto [13:43:41]Method is POST - this is cgi request [13:43:41]url: /json_proto [13:43:41]query_string will be loaded in cgi processing [13:43:41]execute_cgi json_proto POST (null) [13:43:41]execute_cgi path=json_proto method=POST [13:43:41]POST find Content-Length [13:43:41]Host: 172.17.41.195:8080 [13:43:41]Content-Length: 800 [13:43:41]Content-Type: application/json [13:43:41] [13:43:41]POST finish read [13:43:41]Found Content-Length = 800 [13:43:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507532", "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" : 74.70, "quantity" : 33.470, "sum" : 2500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 2500.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:41]execute_script... [13:43: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)507532", "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" : 74.70, "quantity" : 33.470, "sum" : 2500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 2500.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:41]POST & json_proto [13:43:41]process_json_proto [13:43:41]json parsed OK: [13:43:41]protocol is kg_v1.0 [13:43:41]action value=close_receipt [13:43:41]process_action close_receipt [13:43:41]cmd_close_receipt [13:43:41]MH_GetDate [13:43:41]Write to MH i2c: F0 00 00 BD 0A B6 [13:43:41]Write i2c OK [13:43:41]MH_I2C_Read... [13:43:41]Read from MH i2c: F0 [13:43:41]MH_I2C_Read... [13:43:41]Read from MH i2c: F0 09 00 [13:43:41]MH_I2C_Read... [13:43:41]Read from MH i2c: F0 09 00 BD 0A 00 8E 0D 46 66 FC 21 6F 64 F6 [13:43:41]GetLastDocTimeStamp 1715866815 [13:43:41]current date 1715867022 [13:43:41]FM_GetShiftState [13:43:41]SAM_PROTO_GetShiftState [13:43:41]wFMCommunicate request_size=4 [13:43:41]MH_SAM_APDU [13:43:41]CAPDU: 80 13 01 00 [13:43:41]Write to MH i2c: E2 08 00 BE 0A 80 13 01 00 00 00 00 00 45 [13:43:41]Write i2c OK [13:43:41]MH_I2C_Read... [13:43:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:42]Read from MH i2c: E2 [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: E2 0E 00 [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: E2 0E 00 BE 0A 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 F1 [13:43:42]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [13:43:42]wFMCommunicate OK [13:43:42]SAM_PROTO_GetShiftState done [13:43:42]FM_GetShiftState done [13:43:42]opened in 1715818916 [13:43:42]opened+sec_in_day 1715905316 [13:43:42]quantity*price = 250020 [13:43:42]sum+1 = 250022 [13:43:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.21 НСП 1% : 22.13 НДС 12% : 265.51 Наличными: 0.00 Безнал.: 2500.21 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 86 16.05.2024 13:43 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67488 ФПД: 126915051832630 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T134343&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67488&fm=126915051832630&tin=02508201610067®Number=0000000000091845&sum=250021 [13:43:43]StoreToDocumentArchive [13:43:43]shift 357 fd 67488 [13:43:43]save to /storage/0357/doc_00067488 [13:43:43]save last doc name /storage/0357/doc_00067488 to /storage/kkm_last_doc_name [13:43:43]save OK [13:43:43]Clear old archive folders... [13:43:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:43:43]tlvbuf is 01762950 [13:43:43]SAM_PROTO_ClearQueue [13:43:43]wFMCommunicate request_size=4 [13:43:43]MH_SAM_APDU [13:43:43]CAPDU: 80 09 00 00 [13:43:43]Write to MH i2c: E2 08 00 CB 0A 80 09 00 00 00 00 00 00 47 [13:43:43]Write i2c OK [13:43:43]MH_I2C_Read... [13:43:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:43:43]Read from MH i2c: E2 [13:43:43]MH_I2C_Read... [13:43:43]Read from MH i2c: E2 03 00 [13:43:43]MH_I2C_Read... [13:43:43]Read from MH i2c: E2 03 00 CB 0A 00 90 00 49 [13:43:43]RAPDU: 90 00 [13:43:43]wFMCommunicate OK [13:43:43]SAM_PROTO_ClearQueue done [13:43:43]KKMCreateOFDPacket [13:43:43]OFDProtocolAddRootSTLVToBuf [13:43:43]FM_MakeSignedData [13:43:43]FM_MakeSignedData [13:43:43]SAM_PROTO_SignData [13:43:43]wFMCommunicate request_size=4 [13:43:43]MH_SAM_APDU [13:43:43]CAPDU: 80 0D 01 02 [13:43:43]Write to MH i2c: E2 08 00 CC 0A 80 0D 01 02 00 00 00 00 4F [13:43:43]Write i2c OK [13:43:43]MH_I2C_Read... [13:43:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:43:43]Read from MH i2c: E2 [13:43:43]MH_I2C_Read... [13:43:43]Read from MH i2c: E2 03 00 [13:43:43]MH_I2C_Read... [13:43:43]Read from MH i2c: E2 03 00 CC 0A 00 90 00 4A [13:43:43]RAPDU: 90 00 [13:43:43]wFMCommunicate OK [13:43:43]wFMCommunicate request_size=255 [13:43:43]MH_SAM_APDU [13:43: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 BE 82 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 A5 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 8F 0D 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A0 07 01 00 35 04 06 00 73 6D B6 94 [13:43:43]Write to MH i2c: E2 02 01 CD 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 BE 82 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 A5 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 8F 0D 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A0 07 01 00 35 04 06 00 73 6D B6 94 00 00 45 [13:43:43]Write i2c OK [13:43:43]MH_I2C_Read... [13:43:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:43]Read from MH i2c: E2 [13:43:43]MH_I2C_Read... [13:43:43]Read from MH i2c: E2 03 00 [13:43:43]MH_I2C_Read... [13:43:43]Read from MH i2c: E2 03 00 CD 0A 00 90 00 4B [13:43:43]RAPDU: 90 00 [13:43:43]wFMCommunicate OK [13:43:43]wFMCommunicate request_size=7 [13:43:43]MH_SAM_APDU [13:43:43]CAPDU: 80 0D 02 02 02 C5 36 [13:43:43]Write to MH i2c: E2 0A 00 CE 0A 80 0D 02 02 02 00 C5 36 00 00 51 [13:43:43]Write i2c OK [13:43:43]MH_I2C_Read... [13:43:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:43]Read from MH i2c: E2 [13:43:43]MH_I2C_Read... [13:43:43]Read from MH i2c: E2 03 00 [13:43:43]MH_I2C_Read... [13:43:43]Read from MH i2c: E2 03 00 CE 0A 00 90 00 4C [13:43:43]RAPDU: 90 00 [13:43:43]wFMCommunicate OK [13:43:43]wFMCommunicate request_size=4 [13:43:43]MH_SAM_APDU [13:43:43]CAPDU: 80 0D 03 02 [13:43:43]Write to MH i2c: E2 08 00 CF 0A 80 0D 03 02 00 00 00 00 54 [13:43:43]Write i2c OK [13:43:43]MH_I2C_Read... [13:43:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:43:43]Read from MH i2c: E2 [13:43:43]MH_I2C_Read... [13:43:43]Read from MH i2c: E2 0B 00 [13:43:43]MH_I2C_Read... [13:43:43]Read from MH i2c: E2 0B 00 CF 0A 00 F8 4C 1C B6 FF 0D 3C 8D 90 00 40 [13:43:43]RAPDU: F8 4C 1C B6 FF 0D 3C 8D 90 00 [13:43:43]wFMCommunicate OK [13:43:43]SAM_PROTO_SignData done [13:43:43]FM_MakeSignedData done [13:43:43]CreateOFDProtocolMessage [13:43:43]wFMCommunicate request_size=4 [13:43:43]MH_SAM_APDU [13:43:43]CAPDU: 80 11 00 00 [13:43:43]Write to MH i2c: E2 08 00 D0 0A 80 11 00 00 00 00 00 00 54 [13:43:43]Write i2c OK [13:43:43]MH_I2C_Read... [13:43:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:43]Read from MH i2c: E2 [13:43:43]MH_I2C_Read... [13:43:43]Read from MH i2c: E2 17 00 [13:43:43]MH_I2C_Read... [13:43:43]Read from MH i2c: E2 17 00 D0 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AA [13:43:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:43:43]wFMCommunicate OK [13:43:43]CreateOFDProtocolMessage done [13:43:43]OFDSenderStorePacket 67488 [13:43:43]StoreOFDPacket docnum=67488 [13:43:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 C0 8F 04 01 57 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 BE 82 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 A5 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 8F 0D 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A0 07 01 00 35 04 06 00 73 6D B6 94 C5 36 F8 4C 1C B6 FF 0D 3C 8D [13:43:43]CheckFolder [13:43:43]dirname=/storage/ofd_packets [13:43:43]CheckFolder done [13:43:43]ProducePacketName [13:43:43]name=ofd_packets/00067488 [13:43:43]NVStorageSaveData ofd_packets/00067488 [13:43:43]File name is /storage/ofd_packets/00067488 [13:43:43]Write 298 bytes [13:43:43]NVStorageSaveData done [13:43:43]OFDSenderStorePacket done [13:43:43]KKMCreateOFDPacket done [13:43:43]NVStorageSaveData kkm_last_timestamp [13:43:43]File name is /storage/kkm_last_timestamp [13:43:43]Write 4 bytes [13:43:43]NVStorageSaveData done [13:43:43]ExternCall_PrintAddStr [13:43:43]wPrintStart [13:43:43]Write to MH i2c: 01 00 00 D1 0A DB [13:43:43]Write i2c OK [13:43:43]MH_I2C_Read... [13:43:43]Read from MH i2c: 01 [13:43:43]MH_I2C_Read... [13:43:43]Read from MH i2c: 01 07 00 [13:43:43]MH_I2C_Read... [13:43:43]Read from MH i2c: 01 07 00 D1 0A 00 00 00 00 00 FF 0F F0 [13:43:43]RasterBufferAndPrint [13:43:43]line Счет N : (1)507532 [13:43:43]line ИНН: 02508201610067 [13:43:43]line Контрольно-Кассовый Чек [13:43:43]line ПРОДАЖА [13:43:43]line ТРК (МРК, ГНК) : 31 [13:43:43]line Товар: 2710194210 [13:43:43]line ДТ-К-5 [13:43:43]line 33.470 * 74.70 [13:43:43]line = 2500.21 [13:43:43]line НДС 12% НСП 1% [13:43:43]line > о реализуемом товаре [13:43:43]line ИТОГО: 2500.21 [13:43:43]line НСП 1% : 22.13 [13:43:43]line НДС 12% : 265.51 [13:43:43]line Наличными: 0.00 [13:43:43]line Безнал.: 2500.21 [13:43:43]line Место: АЗС № 91 "Партнер Нефть" [13:43:43]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:43:43]line СНО: Общий режим [13:43:43]line Чек 86 16.05.2024 13:43 [13:43:43]line Смена: 357 ФФД: 1.0 [13:43:43]line ЗНМ: 0300000119 [13:43:43]line РНМ: 0000000000091845 [13:43:43]line Версия ККМ: 001 [13:43:43]line Платежная система: O! деньги [13:43:43]line ФМ: 0000000000871829 [13:43:43]line ФД: 67488 [13:43:43]line ФПД: 126915051832630 [13:43:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T134343&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67488&fm=126915051832630&tin=02508201610067®Number=0000000000091845&sum=250021 [13:43:44]OFD Sender: Processing packet 67488 [packets to send 35, broken 34] [13:43:44]ProducePacketName [13:43:44]name=ofd_packets/00067488 [13:43:44]OFD Sender: To server: pG, [13:43:44]CommunicateWithHost lk.salyk.kg:30040 [13:43:44]ConnectInit lk.salyk.kg [13:43:44]written 0, free lines is 4095 [13:43:44]Connected sock=10 [13:43: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 38 32 39 0C 01 00 00 C0 8F 04 01 57 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 BE 82 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 A5 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 8F 0D 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A0 07 01 00 35 04 06 00 73 6D B6 94 C5 36 F8 4C 1C B6 FF 0D 3C 8D [13:43:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 66 5B 47 00 F2 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 38 32 39 10 04 04 00 A0 07 01 00 F4 03 04 00 69 B5 45 66 B6 04 01 00 00 7B 30 9A 17 33 C9 30 1F [13:43:44]CommunicateWithHost err = 0 [13:43:44]CheckOFDResponse [13:43:44]1017 (14) - 77093643461234 [13:43:44]1041 (16) - 0000000000871829 [13:43:44]1040 (4) - 67488 [13:43:44]1012 (4) - 16.05.2024 07:27 [13:43:44]1206 (1) - 0 [13:43:44]OFD Sender: Remove packet 67488 [13:43:44]ProducePacketName [13:43:44]name=ofd_packets/00067488 [13:43:44]NVStorageDeleteData [13:43:44]Write to MH i2c: 01 00 00 FA 0A 04 [13:43:44]Write i2c OK [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: 01 [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: 01 07 00 [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: 01 07 00 FA 0A 00 00 00 00 00 E4 0C FB [13:43:44]RasterBufferAndPrint [13:43:44]line [13:43:44]line [13:43:44]line [13:43:44]line [13:43:44]line [13:43:44]written 0, free lines is 3308 [13:43:44]MH_Cut [13:43:44]Write to MH i2c: D1 01 00 01 0B 01 DE [13:43:44]Write i2c OK [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: D1 [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: D1 01 00 [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: D1 01 00 01 0B 00 DD [13:43:44]Write to MH i2c: 01 00 00 02 0B 0D [13:43:44]Write i2c OK [13:43:44]MH_I2C_Read... [13:43:44]OFD Sender: No OFD packet to send [13:43:45]*** Cut start [13:43:45]*** Purtial cut [13:43:45]*** Stage 1: CUTSNS_PIN = 1 [13:43:45]Read from MH i2c: 01 [13:43:45]MH_I2C_Read... [13:43:45]*** Stop cut motor [13:43:45]*** Cut end [13:43:45]Read from MH i2c: 01 07 00 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: 01 07 00 02 0B 00 00 00 00 00 FF 0F 22 [13:43:45]process_action close_receipt done [13:43:45]requested_data is exist [13:43:45]produce_requested_data [13:43:45]requested_item fm.sn is exist - process it [13:43:45]wFMCommunicate request_size=4 [13:43:45]MH_SAM_APDU [13:43:45]CAPDU: 80 11 00 00 [13:43:45]Write to MH i2c: E2 08 00 03 0B 80 11 00 00 00 00 00 00 88 [13:43:45]Write i2c OK [13:43:45]MH_I2C_Read... [13:43:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:45]Read from MH i2c: E2 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: E2 17 00 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: E2 17 00 03 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DE [13:43:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:43:45]wFMCommunicate OK [13:43:45]requested_item fd.num is exist - process it [13:43:45]SAM_PROTO_GetFieldsCounters [13:43:45]wFMCommunicate request_size=4 [13:43:45]MH_SAM_APDU [13:43:45]CAPDU: 80 13 00 00 [13:43:45]Write to MH i2c: E2 08 00 04 0B 80 13 00 00 00 00 00 00 8B [13:43:45]Write i2c OK [13:43:45]MH_I2C_Read... [13:43:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:43:45]Read from MH i2c: E2 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: E2 62 00 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: E2 62 00 04 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 A0 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [13:43: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 A0 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:43:45]wFMCommunicate OK [13:43:45]SAM_PROTO_GetFieldsCounters done [13:43:45]requested_item shift.num is exist - process it [13:43:45]requested_item shift.opened is exist - process it [13:43:45]req_shift_opened [13:43:45]FM_GetShiftState [13:43:45]SAM_PROTO_GetShiftState [13:43:45]wFMCommunicate request_size=4 [13:43:45]MH_SAM_APDU [13:43:45]CAPDU: 80 13 01 00 [13:43:45]Write to MH i2c: E2 08 00 05 0B 80 13 01 00 00 00 00 00 8D [13:43:45]Write i2c OK [13:43:45]MH_I2C_Read... [13:43:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:45]Read from MH i2c: E2 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: E2 0E 00 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: E2 0E 00 05 0B 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 39 [13:43:45]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [13:43:45]wFMCommunicate OK [13:43:45]SAM_PROTO_GetShiftState done [13:43:45]FM_GetShiftState done [13:43:45]req_shift_opened done [13:43:45]requested_item shift.open_date is exist - process it [13:43:45]req_shift_open_date [13:43:45]req_shift_open_date done [13:43:45]produce_requested_data done [13:43:45]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67488,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [13:43:45]process_action_free close_receipt [13:43:45]json_value_free [13:43:45]json_value_free done [13:43:45]process_json_proto returns [13:43:45]Send response to host [13:43:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67488,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [13:43:45]free response buf [13:43:45]execute_script done [13:43:45]execute_script returns [13:43:45]free content buf [13:43:45]Sock 8.Close socket [13:43:45]Sock 8.Thread stoped [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:55]OFD Sender: No OFD packet to send [13:47:00]OFD Sender: No OFD packet to send [13:47:05]OFD Sender: No OFD packet to send [13:47:10]OFD Sender: No OFD packet to send [13:47:15]OFD Sender: No OFD packet to send [13:47:20]OFD Sender: No OFD packet to send [13:47:25]OFD Sender: No OFD packet to send [13:47:30]OFD Sender: No OFD packet to send [13:47:35]OFD Sender: No OFD packet to send [13:47:40]OFD Sender: No OFD packet to send [13:47:45]OFD Sender: No OFD packet to send [13:47:50]OFD Sender: No OFD packet to send [13:47:55]OFD Sender: No OFD packet to send [13:48:00]OFD Sender: No OFD packet to send [13:48:05]OFD Sender: No OFD packet to send [13:48:10]OFD Sender: No OFD packet to send [13:48:15]OFD Sender: No OFD packet to send [13:48:20]OFD Sender: No OFD packet to send [13:48:25]OFD Sender: No OFD packet to send [13:48:30]OFD Sender: No OFD packet to send [13:48:35]OFD Sender: No OFD packet to send [13:48:40]OFD Sender: No OFD packet to send [13:48:45]OFD Sender: No OFD packet to send [13:48:50]OFD Sender: No OFD packet to send [13:48:55]OFD Sender: No OFD packet to send [13:49:00]OFD Sender: No OFD packet to send [13:49:05]OFD Sender: No OFD packet to send [13:49:10]OFD Sender: No OFD packet to send [13:49:15]OFD Sender: No OFD packet to send [13:49:20]OFD Sender: No OFD packet to send [13:49:25]OFD Sender: No OFD packet to send [13:49:30]OFD Sender: No OFD packet to send [13:49:35]OFD Sender: No OFD packet to send [13:49:40]OFD Sender: No OFD packet to send [13:49:45]OFD Sender: No OFD packet to send [13:49:46]accept exits with 9 [13:49:46]New connection [13:49:46]New thread 3067182436 created [13:49:46]Thread 3067039076 joined [13:49:46]Waiting for new connection... [13:49:46] Sock 9.Parse request [13:49:46]Sock 9.Check first char [13:49:46]Sock 9.First char is OK [13:49:46]request: POST /json_proto HTTP/1.0 [13:49:46]Method: POST [13:49:46]URL: /json_proto [13:49:46]Method is POST - this is cgi request [13:49:46]url: /json_proto [13:49:46]query_string will be loaded in cgi processing [13:49:46]execute_cgi json_proto POST (null) [13:49:46]execute_cgi path=json_proto method=POST [13:49:46]POST find Content-Length [13:49:46]Host: 172.17.41.195:8080 [13:49:46]Content-Length: 677 [13:49:46]Content-Type: application/json [13:49:46] [13:49:46]POST finish read [13:49:46]Found Content-Length = 677 [13:49:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507533", "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.80, "quantity" : 8.240, "sum" : 550.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:46]execute_script... [13:49: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)507533", "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.80, "quantity" : 8.240, "sum" : 550.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:46]POST & json_proto [13:49:46]process_json_proto [13:49:46]json parsed OK: [13:49:46]protocol is kg_v1.0 [13:49:46]action value=close_receipt [13:49:46]process_action close_receipt [13:49:46]cmd_close_receipt [13:49:46]MH_GetDate [13:49:46]Write to MH i2c: F0 00 00 06 0B 00 [13:49:46]Write i2c OK [13:49:46]MH_I2C_Read... [13:49:46]Read from MH i2c: F0 [13:49:46]MH_I2C_Read... [13:49:46]Read from MH i2c: F0 09 00 [13:49:46]MH_I2C_Read... [13:49:46]Read from MH i2c: F0 09 00 06 0B 00 FB 0E 46 66 FC 21 6F 64 AE [13:49:46]GetLastDocTimeStamp 1715867023 [13:49:46]current date 1715867387 [13:49:46]FM_GetShiftState [13:49:46]SAM_PROTO_GetShiftState [13:49:46]wFMCommunicate request_size=4 [13:49:46]MH_SAM_APDU [13:49:46]CAPDU: 80 13 01 00 [13:49:46]Write to MH i2c: E2 08 00 07 0B 80 13 01 00 00 00 00 00 8F [13:49:46]Write i2c OK [13:49:46]MH_I2C_Read... [13:49:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:46]Read from MH i2c: E2 [13:49:46]MH_I2C_Read... [13:49:46]Read from MH i2c: E2 0E 00 [13:49:46]MH_I2C_Read... [13:49:46]Read from MH i2c: E2 0E 00 07 0B 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 3B [13:49:46]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [13:49:46]wFMCommunicate OK [13:49:46]SAM_PROTO_GetShiftState done [13:49:46]FM_GetShiftState done [13:49:46]opened in 1715818916 [13:49:46]opened+sec_in_day 1715905316 [13:49:46]quantity*price = 55043 [13:49:46]sum+1 = 55044 [13:49:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.45 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 87 16.05.2024 13:49 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67489 ФПД: 128093635713898 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T134947&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67489&fm=128093635713898&tin=02508201610067®Number=0000000000091845&sum=55000 [13:49:47]StoreToDocumentArchive [13:49:47]shift 357 fd 67489 [13:49:47]save to /storage/0357/doc_00067489 [13:49:47]save last doc name /storage/0357/doc_00067489 to /storage/kkm_last_doc_name [13:49:47]save OK [13:49:47]Clear old archive folders... [13:49:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:49:47]tlvbuf is 017D7490 [13:49:47]SAM_PROTO_ClearQueue [13:49:47]wFMCommunicate request_size=4 [13:49:47]MH_SAM_APDU [13:49:47]CAPDU: 80 09 00 00 [13:49:47]Write to MH i2c: E2 08 00 14 0B 80 09 00 00 00 00 00 00 91 [13:49:47]Write i2c OK [13:49:47]MH_I2C_Read... [13:49:47]Read from MH i2c: E2 [13:49:47]MH_I2C_Read... [13:49:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:49:47]Read from MH i2c: E2 03 00 [13:49:47]MH_I2C_Read... [13:49:47]Read from MH i2c: E2 03 00 14 0B 00 90 00 93 [13:49:47]RAPDU: 90 00 [13:49:47]wFMCommunicate OK [13:49:47]SAM_PROTO_ClearQueue done [13:49:47]KKMCreateOFDPacket [13:49:47]OFDProtocolAddRootSTLVToBuf [13:49:47]FM_MakeSignedData [13:49:47]FM_MakeSignedData [13:49:47]SAM_PROTO_SignData [13:49:47]wFMCommunicate request_size=4 [13:49:47]MH_SAM_APDU [13:49:47]CAPDU: 80 0D 01 02 [13:49:47]Write to MH i2c: E2 08 00 15 0B 80 0D 01 02 00 00 00 00 99 [13:49:47]Write i2c OK [13:49:47]MH_I2C_Read... [13:49:47]Read from MH i2c: E2 [13:49:47]MH_I2C_Read... [13:49:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:49:47]Read from MH i2c: E2 03 00 [13:49:47]MH_I2C_Read... [13:49:47]Read from MH i2c: E2 03 00 15 0B 00 90 00 94 [13:49:47]RAPDU: 90 00 [13:49:47]wFMCommunicate OK [13:49:47]wFMCommunicate request_size=255 [13:49:47]MH_SAM_APDU [13:49: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 30 20 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 03 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 FB 0E 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A1 07 01 00 35 04 06 00 74 [13:49:47]Write to MH i2c: E2 02 01 16 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 30 20 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 03 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 FB 0E 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A1 07 01 00 35 04 06 00 74 00 00 C2 [13:49:47]Write i2c OK [13:49:47]MH_I2C_Read... [13:49:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:48]Read from MH i2c: E2 [13:49:48]MH_I2C_Read... [13:49:48]Read from MH i2c: E2 03 00 [13:49:48]MH_I2C_Read... [13:49:48]Read from MH i2c: E2 03 00 16 0B 00 90 00 95 [13:49:48]RAPDU: 90 00 [13:49:48]wFMCommunicate OK [13:49:48]wFMCommunicate request_size=10 [13:49:48]MH_SAM_APDU [13:49:48]CAPDU: 80 0D 02 02 05 80 1F A7 9B 6A [13:49:48]Write to MH i2c: E2 0D 00 17 0B 80 0D 02 02 05 00 80 1F A7 9B 6A 00 00 F1 [13:49:48]Write i2c OK [13:49:48]MH_I2C_Read... [13:49:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:48]Read from MH i2c: E2 [13:49:48]MH_I2C_Read... [13:49:48]Read from MH i2c: E2 03 00 [13:49:48]MH_I2C_Read... [13:49:48]Read from MH i2c: E2 03 00 17 0B 00 90 00 96 [13:49:48]RAPDU: 90 00 [13:49:48]wFMCommunicate OK [13:49:48]wFMCommunicate request_size=4 [13:49:48]MH_SAM_APDU [13:49:48]CAPDU: 80 0D 03 02 [13:49:48]Write to MH i2c: E2 08 00 18 0B 80 0D 03 02 00 00 00 00 9E [13:49:48]Write i2c OK [13:49:48]MH_I2C_Read... [13:49:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:49:48]Read from MH i2c: E2 [13:49:48]MH_I2C_Read... [13:49:48]Read from MH i2c: E2 0B 00 [13:49:48]MH_I2C_Read... [13:49:48]Read from MH i2c: E2 0B 00 18 0B 00 8A 8A B7 40 03 80 1F 98 90 00 E4 [13:49:48]RAPDU: 8A 8A B7 40 03 80 1F 98 90 00 [13:49:48]wFMCommunicate OK [13:49:48]SAM_PROTO_SignData done [13:49:48]FM_MakeSignedData done [13:49:48]CreateOFDProtocolMessage [13:49:48]wFMCommunicate request_size=4 [13:49:48]MH_SAM_APDU [13:49:48]CAPDU: 80 11 00 00 [13:49:48]Write to MH i2c: E2 08 00 19 0B 80 11 00 00 00 00 00 00 9E [13:49:48]Write i2c OK [13:49:48]MH_I2C_Read... [13:49:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:48]Read from MH i2c: E2 [13:49:48]MH_I2C_Read... [13:49:48]Read from MH i2c: E2 17 00 [13:49:48]MH_I2C_Read... [13:49:48]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 38 32 39 90 00 F4 [13:49:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:49:48]wFMCommunicate OK [13:49:48]CreateOFDProtocolMessage done [13:49:48]OFDSenderStorePacket 67489 [13:49:48]StoreOFDPacket docnum=67489 [13:49:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 1D 40 07 01 0F 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 30 20 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 03 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 FB 0E 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A1 07 01 00 35 04 06 00 74 80 1F A7 9B 6A 8A 8A B7 40 03 80 1F 98 [13:49:48]CheckFolder [13:49:48]dirname=/storage/ofd_packets [13:49:48]CheckFolder done [13:49:48]ProducePacketName [13:49:48]name=ofd_packets/00067489 [13:49:48]NVStorageSaveData ofd_packets/00067489 [13:49:48]File name is /storage/ofd_packets/00067489 [13:49:48]Write 301 bytes [13:49:48]NVStorageSaveData done [13:49:48]OFDSenderStorePacket done [13:49:48]KKMCreateOFDPacket done [13:49:48]NVStorageSaveData kkm_last_timestamp [13:49:48]File name is /storage/kkm_last_timestamp [13:49:48]Write 4 bytes [13:49:48]NVStorageSaveData done [13:49:48]ExternCall_PrintAddStr [13:49:48]wPrintStart [13:49:48]Write to MH i2c: 01 00 00 1A 0B 25 [13:49:48]Write i2c OK [13:49:48]MH_I2C_Read... [13:49:48]Read from MH i2c: 01 [13:49:48]MH_I2C_Read... [13:49:48]Read from MH i2c: 01 07 00 [13:49:48]MH_I2C_Read... [13:49:48]Read from MH i2c: 01 07 00 1A 0B 00 00 00 00 00 FF 0F 3A [13:49:48]RasterBufferAndPrint [13:49:48]line Счет N : (1)507533 [13:49:48]line ИНН: 02508201610067 [13:49:48]line Контрольно-Кассовый Чек [13:49:48]line ПРОДАЖА [13:49:48]line ТРК (МРК, ГНК) : 33 [13:49:48]line Товар: 2710124130 [13:49:48]line Аи-92-К-5 [13:49:48]line 8.240 * 66.80 [13:49:48]line = 550.43 [13:49:48]line НДС 12% НСП 1% [13:49:48]line > о реализуемом товаре [13:49:48]line ОКРУГЛЕНИЕ: -0.43 [13:49:48]line ИТОГО: 550.00 [13:49:48]line Внесено: 550.00 [13:49:48]line СДАЧА: 0.00 [13:49:48]line НСП 1% : 4.87 [13:49:48]line НДС 12% : 58.45 [13:49:48]line Наличными: 550.00 [13:49:48]line Безнал.: 0.00 [13:49:48]line Место: АЗС № 91 "Партнер Нефть" [13:49:48]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:49:48]line СНО: Общий режим [13:49:48]line Чек 87 16.05.2024 13:49 [13:49:48]line Смена: 357 ФФД: 1.0 [13:49:48]line ЗНМ: 0300000119 [13:49:48]line РНМ: 0000000000091845 [13:49:48]line Версия ККМ: 001 [13:49:48]line ФМ: 0000000000871829 [13:49:48]line ФД: 67489 [13:49:48]line ФПД: 128093635713898 [13:49:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T134947&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67489&fm=128093635713898&tin=02508201610067®Number=0000000000091845&sum=55000 [13:49:48]OFD Sender: Processing packet 67489 [packets to send 35, broken 34] [13:49:48]ProducePacketName [13:49:48]name=ofd_packets/00067489 [13:49:48]OFD Sender: To server: pG, [13:49:48]CommunicateWithHost lk.salyk.kg:30040 [13:49:48]ConnectInit lk.salyk.kg [13:49:48]written 0, free lines is 4095 [13:49:48]Connected sock=11 [13:49: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 38 32 39 0F 01 00 00 1D 40 07 01 0F 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 30 20 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 03 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 FB 0E 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A1 07 01 00 35 04 06 00 74 80 1F A7 9B 6A 8A 8A B7 40 03 80 1F 98 [13:49:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 8C 6F 47 00 BF 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 38 32 39 10 04 04 00 A1 07 01 00 F4 03 04 00 D6 B6 45 66 B6 04 01 00 00 BE AA 1B AD 92 4D 58 DA [13:49:48]CommunicateWithHost err = 0 [13:49:48]CheckOFDResponse [13:49:48]1017 (14) - 77093643461234 [13:49:48]1041 (16) - 0000000000871829 [13:49:48]1040 (4) - 67489 [13:49:48]1012 (4) - 16.05.2024 07:33 [13:49:48]1206 (1) - 0 [13:49:48]OFD Sender: Remove packet 67489 [13:49:48]ProducePacketName [13:49:48]name=ofd_packets/00067489 [13:49:48]NVStorageDeleteData [13:49:48]Write to MH i2c: 01 00 00 44 0B 4F [13:49:48]Write i2c OK [13:49:48]MH_I2C_Read... [13:49:48]Read from MH i2c: 01 [13:49:48]MH_I2C_Read... [13:49:48]Read from MH i2c: 01 07 00 [13:49:48]MH_I2C_Read... [13:49:48]Read from MH i2c: 01 07 00 44 0B 00 00 00 00 00 C7 0C 29 [13:49:48]RasterBufferAndPrint [13:49:48]line [13:49:48]line [13:49:48]line [13:49:48]line [13:49:48]line [13:49:48]written 0, free lines is 3276 [13:49:48]MH_Cut [13:49:48]Write to MH i2c: D1 01 00 4B 0B 01 28 [13:49:48]Write i2c OK [13:49:48]MH_I2C_Read... [13:49:48]Read from MH i2c: D1 [13:49:48]MH_I2C_Read... [13:49:48]Read from MH i2c: D1 01 00 [13:49:48]MH_I2C_Read... [13:49:48]Read from MH i2c: D1 01 00 4B 0B 00 27 [13:49:48]Write to MH i2c: 01 00 00 4C 0B 57 [13:49:48]Write i2c OK [13:49:48]MH_I2C_Read... [13:49:49]OFD Sender: No OFD packet to send [13:49:49]*** Cut start [13:49:49]*** Purtial cut [13:49:49]*** CUTSNS_PIN = 0 [13:49:50]*** Stage 1: CUTSNS_PIN = 1 [13:49:51]Read from MH i2c: 01 [13:49:51]MH_I2C_Read... [13:49:51]*** Stop cut motor [13:49:51]Read from MH i2c: 01 07 00 [13:49:51]MH_I2C_Read... [13:49:51]*** Cut end [13:49:51]Read from MH i2c: 01 07 00 4C 0B 00 00 00 00 00 FF 0F 6C [13:49:51]process_action close_receipt done [13:49:51]requested_data is exist [13:49:51]produce_requested_data [13:49:51]requested_item fm.sn is exist - process it [13:49:51]wFMCommunicate request_size=4 [13:49:51]MH_SAM_APDU [13:49:51]CAPDU: 80 11 00 00 [13:49:51]Write to MH i2c: E2 08 00 4D 0B 80 11 00 00 00 00 00 00 D2 [13:49:51]Write i2c OK [13:49:51]MH_I2C_Read... [13:49:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:51]Read from MH i2c: E2 [13:49:51]MH_I2C_Read... [13:49:51]Read from MH i2c: E2 17 00 [13:49:51]MH_I2C_Read... [13:49:51]Read from MH i2c: E2 17 00 4D 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 28 [13:49:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:49:51]wFMCommunicate OK [13:49:51]requested_item fd.num is exist - process it [13:49:51]SAM_PROTO_GetFieldsCounters [13:49:51]wFMCommunicate request_size=4 [13:49:51]MH_SAM_APDU [13:49:51]CAPDU: 80 13 00 00 [13:49:51]Write to MH i2c: E2 08 00 4E 0B 80 13 00 00 00 00 00 00 D5 [13:49:51]Write i2c OK [13:49:51]MH_I2C_Read... [13:49:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:49:51]Read from MH i2c: E2 [13:49:51]MH_I2C_Read... [13:49:51]Read from MH i2c: E2 62 00 [13:49:51]MH_I2C_Read... [13:49:51]Read from MH i2c: E2 62 00 4E 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 A1 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [13:49: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 A1 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:49:51]wFMCommunicate OK [13:49:51]SAM_PROTO_GetFieldsCounters done [13:49:51]requested_item shift.num is exist - process it [13:49:51]requested_item shift.opened is exist - process it [13:49:51]req_shift_opened [13:49:51]FM_GetShiftState [13:49:51]SAM_PROTO_GetShiftState [13:49:51]wFMCommunicate request_size=4 [13:49:51]MH_SAM_APDU [13:49:51]CAPDU: 80 13 01 00 [13:49:51]Write to MH i2c: E2 08 00 4F 0B 80 13 01 00 00 00 00 00 D7 [13:49:51]Write i2c OK [13:49:51]MH_I2C_Read... [13:49:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:52]Read from MH i2c: E2 [13:49:52]MH_I2C_Read... [13:49:52]Read from MH i2c: E2 0E 00 [13:49:52]MH_I2C_Read... [13:49:52]Read from MH i2c: E2 0E 00 4F 0B 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 83 [13:49:52]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [13:49:52]wFMCommunicate OK [13:49:52]SAM_PROTO_GetShiftState done [13:49:52]FM_GetShiftState done [13:49:52]req_shift_opened done [13:49:52]requested_item shift.open_date is exist - process it [13:49:52]req_shift_open_date [13:49:52]req_shift_open_date done [13:49:52]produce_requested_data done [13:49:52]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67489,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [13:49:52]process_action_free close_receipt [13:49:52]json_value_free [13:49:52]json_value_free done [13:49:52]process_json_proto returns [13:49:52]Send response to host [13:49:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67489,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [13:49:52]free response buf [13:49:52]execute_script done [13:49:52]execute_script returns [13:49:52]free content buf [13:49:52]Sock 9.Close socket [13:49:52]Sock 9.Thread stoped [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:52]accept exits with 8 [13:51:52]New connection [13:51:52]New thread 3067039076 created [13:51:52]Thread 3067182436 joined [13:51:52]Waiting for new connection... [13:51:52] Sock 8.Parse request [13:51:52]Sock 8.Check first char [13:51:52]Sock 8.First char is OK [13:51:52]request: POST /json_proto HTTP/1.0 [13:51:52]Method: POST [13:51:52]URL: /json_proto [13:51:52]Method is POST - this is cgi request [13:51:52]url: /json_proto [13:51:52]query_string will be loaded in cgi processing [13:51:52]execute_cgi json_proto POST (null) [13:51:52]execute_cgi path=json_proto method=POST [13:51:52]POST find Content-Length [13:51:52]Host: 172.17.41.195:8080 [13:51:52]Content-Length: 677 [13:51:52]Content-Type: application/json [13:51:52] [13:51:52]POST finish read [13:51:52]Found Content-Length = 677 [13:51:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507534", "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.80, "quantity" : 7.490, "sum" : 500.33, "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:51:52]execute_script... [13: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)507534", "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.80, "quantity" : 7.490, "sum" : 500.33, "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:51:52]POST & json_proto [13:51:52]process_json_proto [13:51:52]json parsed OK: [13:51:52]protocol is kg_v1.0 [13:51:52]action value=close_receipt [13:51:52]process_action close_receipt [13:51:52]cmd_close_receipt [13:51:52]MH_GetDate [13:51:52]Write to MH i2c: F0 00 00 50 0B 4A [13:51:52]Write i2c OK [13:51:52]MH_I2C_Read... [13:51:52]Read from MH i2c: F0 [13:51:52]MH_I2C_Read... [13:51:52]Read from MH i2c: F0 09 00 [13:51:52]MH_I2C_Read... [13:51:52]Read from MH i2c: F0 09 00 50 0B 00 79 0F 46 66 FC 21 6F 64 77 [13:51:52]GetLastDocTimeStamp 1715867387 [13:51:52]current date 1715867513 [13:51:52]FM_GetShiftState [13:51:52]SAM_PROTO_GetShiftState [13:51:52]wFMCommunicate request_size=4 [13:51:52]MH_SAM_APDU [13:51:52]CAPDU: 80 13 01 00 [13:51:52]Write to MH i2c: E2 08 00 51 0B 80 13 01 00 00 00 00 00 D9 [13:51:52]Write i2c OK [13:51:52]MH_I2C_Read... [13:51:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:52]Read from MH i2c: E2 [13:51:52]MH_I2C_Read... [13:51:52]Read from MH i2c: E2 0E 00 [13:51:52]MH_I2C_Read... [13:51:52]Read from MH i2c: E2 0E 00 51 0B 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 85 [13:51:52]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [13:51:52]wFMCommunicate OK [13:51:52]SAM_PROTO_GetShiftState done [13:51:52]FM_GetShiftState done [13:51:52]opened in 1715818916 [13:51:52]opened+sec_in_day 1715905316 [13:51:52]quantity*price = 50033 [13:51:52]sum+1 = 50034 [13:51:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 88 16.05.2024 13:51 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67490 ФПД: 104371890437132 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T135153&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67490&fm=104371890437132&tin=02508201610067®Number=0000000000091845&sum=50000 [13:51:53]StoreToDocumentArchive [13:51:53]shift 357 fd 67490 [13:51:53]save to /storage/0357/doc_00067490 [13:51:53]save last doc name /storage/0357/doc_00067490 to /storage/kkm_last_doc_name [13:51:53]save OK [13:51:53]Clear old archive folders... [13:51:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:51:53]tlvbuf is 0178DDD0 [13:51:53]SAM_PROTO_ClearQueue [13:51:53]wFMCommunicate request_size=4 [13:51:53]MH_SAM_APDU [13:51:53]CAPDU: 80 09 00 00 [13:51:53]Write to MH i2c: E2 08 00 5E 0B 80 09 00 00 00 00 00 00 DB [13:51:53]Write i2c OK [13:51:53]MH_I2C_Read... [13:51:53]Read from MH i2c: E2 [13:51:53]MH_I2C_Read... [13:51:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:51:53]Read from MH i2c: E2 03 00 [13:51:53]MH_I2C_Read... [13:51:53]Read from MH i2c: E2 03 00 5E 0B 00 90 00 DD [13:51:53]RAPDU: 90 00 [13:51:53]wFMCommunicate OK [13:51:53]SAM_PROTO_ClearQueue done [13:51:53]KKMCreateOFDPacket [13:51:53]OFDProtocolAddRootSTLVToBuf [13:51:53]FM_MakeSignedData [13:51:53]FM_MakeSignedData [13:51:53]SAM_PROTO_SignData [13:51:53]wFMCommunicate request_size=4 [13:51:53]MH_SAM_APDU [13:51:53]CAPDU: 80 0D 01 02 [13:51:53]Write to MH i2c: E2 08 00 5F 0B 80 0D 01 02 00 00 00 00 E3 [13:51:53]Write i2c OK [13:51:53]MH_I2C_Read... [13:51:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:51:53]Read from MH i2c: E2 [13:51:53]MH_I2C_Read... [13:51:53]Read from MH i2c: E2 03 00 [13:51:53]MH_I2C_Read... [13:51:53]Read from MH i2c: E2 03 00 5F 0B 00 90 00 DE [13:51:53]RAPDU: 90 00 [13:51:53]wFMCommunicate OK [13:51:53]wFMCommunicate request_size=255 [13:51:53]MH_SAM_APDU [13:51: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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 79 0F 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A2 07 01 00 35 04 06 00 5E [13:51:53]Write to MH i2c: E2 02 01 60 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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 79 0F 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A2 07 01 00 35 04 06 00 5E 00 00 68 [13:51:53]Write i2c OK [13:51:53]MH_I2C_Read... [13:51:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:53]Read from MH i2c: E2 [13:51:53]MH_I2C_Read... [13:51:53]Read from MH i2c: E2 03 00 [13:51:53]MH_I2C_Read... [13:51:53]Read from MH i2c: E2 03 00 60 0B 00 90 00 DF [13:51:53]RAPDU: 90 00 [13:51:53]wFMCommunicate OK [13:51:53]wFMCommunicate request_size=10 [13:51:53]MH_SAM_APDU [13:51:53]CAPDU: 80 0D 02 02 05 EC F9 74 3C 0C [13:51:53]Write to MH i2c: E2 0D 00 61 0B 80 0D 02 02 05 00 EC F9 74 3C 0C 00 00 91 [13:51:53]Write i2c OK [13:51:53]MH_I2C_Read... [13:51:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:53]Read from MH i2c: E2 [13:51:53]MH_I2C_Read... [13:51:53]Read from MH i2c: E2 03 00 [13:51:53]MH_I2C_Read... [13:51:53]Read from MH i2c: E2 03 00 61 0B 00 90 00 E0 [13:51:53]RAPDU: 90 00 [13:51:53]wFMCommunicate OK [13:51:53]wFMCommunicate request_size=4 [13:51:53]MH_SAM_APDU [13:51:53]CAPDU: 80 0D 03 02 [13:51:53]Write to MH i2c: E2 08 00 62 0B 80 0D 03 02 00 00 00 00 E8 [13:51:53]Write i2c OK [13:51:53]MH_I2C_Read... [13:51:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:51:53]Read from MH i2c: E2 [13:51:53]MH_I2C_Read... [13:51:53]Read from MH i2c: E2 0B 00 [13:51:53]MH_I2C_Read... [13:51:53]Read from MH i2c: E2 0B 00 62 0B 00 A8 78 C7 83 8D F2 00 9C 90 00 6E [13:51:53]RAPDU: A8 78 C7 83 8D F2 00 9C 90 00 [13:51:53]wFMCommunicate OK [13:51:53]SAM_PROTO_SignData done [13:51:53]FM_MakeSignedData done [13:51:53]CreateOFDProtocolMessage [13:51:53]wFMCommunicate request_size=4 [13:51:53]MH_SAM_APDU [13:51:53]CAPDU: 80 11 00 00 [13:51:53]Write to MH i2c: E2 08 00 63 0B 80 11 00 00 00 00 00 00 E8 [13:51:53]Write i2c OK [13:51:53]MH_I2C_Read... [13:51:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:53]Read from MH i2c: E2 [13:51:53]MH_I2C_Read... [13:51:53]Read from MH i2c: E2 17 00 [13:51:53]MH_I2C_Read... [13:51:53]Read from MH i2c: E2 17 00 63 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3E [13:51:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:51:53]wFMCommunicate OK [13:51:53]CreateOFDProtocolMessage done [13:51:53]OFDSenderStorePacket 67490 [13:51:53]StoreOFDPacket docnum=67490 [13:51:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 20 7E 07 01 B2 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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 79 0F 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A2 07 01 00 35 04 06 00 5E EC F9 74 3C 0C A8 78 C7 83 8D F2 00 9C [13:51:53]CheckFolder [13:51:53]dirname=/storage/ofd_packets [13:51:53]CheckFolder done [13:51:53]ProducePacketName [13:51:53]name=ofd_packets/00067490 [13:51:53]NVStorageSaveData ofd_packets/00067490 [13:51:53]File name is /storage/ofd_packets/00067490 [13:51:53]Write 301 bytes [13:51:53]NVStorageSaveData done [13:51:53]OFDSenderStorePacket done [13:51:53]KKMCreateOFDPacket done [13:51:53]NVStorageSaveData kkm_last_timestamp [13:51:53]File name is /storage/kkm_last_timestamp [13:51:53]Write 4 bytes [13:51:53]NVStorageSaveData done [13:51:53]ExternCall_PrintAddStr [13:51:53]wPrintStart [13:51:53]Write to MH i2c: 01 00 00 64 0B 6F [13:51:53]Write i2c OK [13:51:53]MH_I2C_Read... [13:51:53]Read from MH i2c: 01 [13:51:53]MH_I2C_Read... [13:51:53]Read from MH i2c: 01 07 00 [13:51:53]MH_I2C_Read... [13:51:53]Read from MH i2c: 01 07 00 64 0B 00 00 00 00 00 FF 0F 84 [13:51:53]RasterBufferAndPrint [13:51:53]line Счет N : (1)507534 [13:51:53]line ИНН: 02508201610067 [13:51:54]line Контрольно-Кассовый Чек [13:51:54]line ПРОДАЖА [13:51:54]line ТРК (МРК, ГНК) : 43 [13:51:54]line Товар: 2710124130 [13:51:54]line Аи-92-К-5 [13:51:54]line 7.490 * 66.80 [13:51:54]line = 500.33 [13:51:54]line НДС 12% НСП 1% [13:51:54]line > о реализуемом товаре [13:51:54]line ОКРУГЛЕНИЕ: -0.33 [13:51:54]line ИТОГО: 500.00 [13:51:54]line Внесено: 500.00 [13:51:54]line СДАЧА: 0.00 [13:51:54]line НСП 1% : 4.43 [13:51:54]line НДС 12% : 53.13 [13:51:54]line Наличными: 500.00 [13:51:54]line Безнал.: 0.00 [13:51:54]line Место: АЗС № 91 "Партнер Нефть" [13:51:54]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:51:54]line СНО: Общий режим [13:51:54]line Чек 88 16.05.2024 13:51 [13:51:54]line Смена: 357 ФФД: 1.0 [13:51:54]line ЗНМ: 0300000119 [13:51:54]line РНМ: 0000000000091845 [13:51:54]line Версия ККМ: 001 [13:51:54]line ФМ: 0000000000871829 [13:51:54]line ФД: 67490 [13:51:54]line ФПД: 104371890437132 [13:51:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T135153&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67490&fm=104371890437132&tin=02508201610067®Number=0000000000091845&sum=50000 [13:51:54]OFD Sender: Processing packet 67490 [packets to send 35, broken 34] [13:51:54]ProducePacketName [13:51:54]name=ofd_packets/00067490 [13:51:54]OFD Sender: To server: pG, [13:51:54]CommunicateWithHost lk.salyk.kg:30040 [13:51:54]ConnectInit lk.salyk.kg [13:51:54]written 0, free lines is 4095 [13:51:54]Connected sock=10 [13: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 38 32 39 0F 01 00 00 20 7E 07 01 B2 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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 79 0F 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A2 07 01 00 35 04 06 00 5E EC F9 74 3C 0C A8 78 C7 83 8D F2 00 9C [13: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 38 32 39 4F 00 00 00 4E A4 47 00 13 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 38 32 39 10 04 04 00 A2 07 01 00 F4 03 04 00 53 B7 45 66 B6 04 01 00 00 BB 45 D4 00 C2 B4 48 74 [13:51:54]CommunicateWithHost err = 0 [13:51:54]CheckOFDResponse [13:51:54]1017 (14) - 77093643461234 [13:51:54]1041 (16) - 0000000000871829 [13:51:54]1040 (4) - 67490 [13:51:54]1012 (4) - 16.05.2024 07:35 [13:51:54]1206 (1) - 0 [13:51:54]OFD Sender: Remove packet 67490 [13:51:54]ProducePacketName [13:51:54]name=ofd_packets/00067490 [13:51:54]NVStorageDeleteData [13:51:54]Write to MH i2c: 01 00 00 8E 0B 99 [13:51:54]Write i2c OK [13:51:54]MH_I2C_Read... [13:51:54]Read from MH i2c: 01 [13:51:54]MH_I2C_Read... [13:51:54]Read from MH i2c: 01 07 00 [13:51:54]MH_I2C_Read... [13:51:54]Read from MH i2c: 01 07 00 8E 0B 00 00 00 00 00 C2 0C 6E [13:51:54]RasterBufferAndPrint [13:51:54]line [13:51:54]line [13:51:54]line [13:51:54]line [13:51:54]line [13:51:54]written 0, free lines is 3272 [13:51:54]MH_Cut [13:51:54]Write to MH i2c: D1 01 00 95 0B 01 72 [13:51:54]Write i2c OK [13:51:54]MH_I2C_Read... [13:51:54]Read from MH i2c: D1 [13:51:54]MH_I2C_Read... [13:51:54]Read from MH i2c: D1 01 00 [13:51:54]MH_I2C_Read... [13:51:54]Read from MH i2c: D1 01 00 95 0B 00 71 [13:51:54]Write to MH i2c: 01 00 00 96 0B A1 [13:51:54]Write i2c OK [13:51:54]MH_I2C_Read... [13:51:55]OFD Sender: No OFD packet to send [13:51:55]*** Cut start [13:51:55]*** Purtial cut [13:51:55]*** Stage 1: CUTSNS_PIN = 1 [13:51:55]Read from MH i2c: 01 [13:51:55]MH_I2C_Read... [13:51:55]*** Stop cut motor [13:51:55]*** Cut end [13:51:55]Read from MH i2c: 01 07 00 [13:51:55]MH_I2C_Read... [13:51:55]Read from MH i2c: 01 07 00 96 0B 00 00 00 00 00 FF 0F B6 [13:51:55]process_action close_receipt done [13:51:55]requested_data is exist [13:51:55]produce_requested_data [13:51:55]requested_item fm.sn is exist - process it [13:51:55]wFMCommunicate request_size=4 [13:51:55]MH_SAM_APDU [13:51:55]CAPDU: 80 11 00 00 [13:51:55]Write to MH i2c: E2 08 00 97 0B 80 11 00 00 00 00 00 00 1C [13:51:55]Write i2c OK [13:51:55]MH_I2C_Read... [13:51:55]Read from MH i2c: E2 [13:51:55]MH_I2C_Read... [13:51:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:55]Read from MH i2c: E2 17 00 [13:51:55]MH_I2C_Read... [13:51:55]Read from MH i2c: E2 17 00 97 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 72 [13:51:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:51:55]wFMCommunicate OK [13:51:55]requested_item fd.num is exist - process it [13:51:55]SAM_PROTO_GetFieldsCounters [13:51:55]wFMCommunicate request_size=4 [13:51:55]MH_SAM_APDU [13:51:55]CAPDU: 80 13 00 00 [13:51:55]Write to MH i2c: E2 08 00 98 0B 80 13 00 00 00 00 00 00 1F [13:51:55]Write i2c OK [13:51:55]MH_I2C_Read... [13:51:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:51:56]Read from MH i2c: E2 [13:51:56]MH_I2C_Read... [13:51:56]Read from MH i2c: E2 62 00 [13:51:56]MH_I2C_Read... [13:51:56]Read from MH i2c: E2 62 00 98 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 A2 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [13: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 A2 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:51:56]wFMCommunicate OK [13:51:56]SAM_PROTO_GetFieldsCounters done [13:51:56]requested_item shift.num is exist - process it [13:51:56]requested_item shift.opened is exist - process it [13:51:56]req_shift_opened [13:51:56]FM_GetShiftState [13:51:56]SAM_PROTO_GetShiftState [13:51:56]wFMCommunicate request_size=4 [13:51:56]MH_SAM_APDU [13:51:56]CAPDU: 80 13 01 00 [13:51:56]Write to MH i2c: E2 08 00 99 0B 80 13 01 00 00 00 00 00 21 [13:51:56]Write i2c OK [13:51:56]MH_I2C_Read... [13:51:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:56]Read from MH i2c: E2 [13:51:56]MH_I2C_Read... [13:51:56]Read from MH i2c: E2 0E 00 [13:51:56]MH_I2C_Read... [13:51:56]Read from MH i2c: E2 0E 00 99 0B 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 CD [13:51:56]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [13:51:56]wFMCommunicate OK [13:51:56]SAM_PROTO_GetShiftState done [13:51:56]FM_GetShiftState done [13:51:56]req_shift_opened done [13:51:56]requested_item shift.open_date is exist - process it [13:51:56]req_shift_open_date [13:51:56]req_shift_open_date done [13:51:56]produce_requested_data done [13:51:56]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67490,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [13:51:56]process_action_free close_receipt [13:51:56]json_value_free [13:51:56]json_value_free done [13:51:56]process_json_proto returns [13:51:56]Send response to host [13:51:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67490,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [13:51:56]free response buf [13:51:56]execute_script done [13:51:56]execute_script returns [13:51:56]free content buf [13:51:56]Sock 8.Close socket [13:51:56]Sock 8.Thread stoped [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:25]OFD Sender: No OFD packet to send [13:53:30]OFD Sender: No OFD packet to send [13:53:35]OFD Sender: No OFD packet to send [13:53:40]OFD Sender: No OFD packet to send [13:53:45]OFD Sender: No OFD packet to send [13:53:50]OFD Sender: No OFD packet to send [13:53:55]OFD Sender: No OFD packet to send [13:54:00]OFD Sender: No OFD packet to send [13:54:05]OFD Sender: No OFD packet to send [13:54:10]OFD Sender: No OFD packet to send [13:54:15]OFD Sender: No OFD packet to send [13:54:20]OFD Sender: No OFD packet to send [13:54:25]OFD Sender: No OFD packet to send [13:54:30]OFD Sender: No OFD packet to send [13:54:35]OFD Sender: No OFD packet to send [13:54:40]OFD Sender: No OFD packet to send [13:54:45]OFD Sender: No OFD packet to send [13:54:50]OFD Sender: No OFD packet to send [13:54:55]OFD Sender: No OFD packet to send [13:55:00]OFD Sender: No OFD packet to send [13:55:05]OFD Sender: No OFD packet to send [13:55:10]OFD Sender: No OFD packet to send [13:55:15]OFD Sender: No OFD packet to send [13:55:20]OFD Sender: No OFD packet to send [13:55:25]OFD Sender: No OFD packet to send [13:55:30]OFD Sender: No OFD packet to send [13:55:35]OFD Sender: No OFD packet to send [13:55:40]OFD Sender: No OFD packet to send [13:55:45]OFD Sender: No OFD packet to send [13:55:50]OFD Sender: No OFD packet to send [13:55:55]OFD Sender: No OFD packet to send [13:56:00]OFD Sender: No OFD packet to send [13:56:05]OFD Sender: No OFD packet to send [13:56:10]OFD Sender: No OFD packet to send [13:56:15]OFD Sender: No OFD packet to send [13:56:20]OFD Sender: No OFD packet to send [13:56:25]OFD Sender: No OFD packet to send [13:56:30]OFD Sender: No OFD packet to send [13:56:35]OFD Sender: No OFD packet to send [13:56:40]OFD Sender: No OFD packet to send [13:56:44]accept exits with 9 [13:56:44]New connection [13:56:44]New thread 3067182436 created [13:56:44]Thread 3067039076 joined [13:56:44]Waiting for new connection... [13:56:44] Sock 9.Parse request [13:56:44]Sock 9.Check first char [13:56:44]Sock 9.First char is OK [13:56:44]request: POST /json_proto HTTP/1.0 [13:56:44]Method: POST [13:56:44]URL: /json_proto [13:56:44]Method is POST - this is cgi request [13:56:44]url: /json_proto [13:56:44]query_string will be loaded in cgi processing [13:56:44]execute_cgi json_proto POST (null) [13:56:44]execute_cgi path=json_proto method=POST [13:56:44]POST find Content-Length [13:56:44]Host: 172.17.41.195:8080 [13:56:44]Content-Length: 674 [13:56:44]Content-Type: application/json [13:56:44] [13:56:44]POST finish read [13:56:44]Found Content-Length = 674 [13:56:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507535", "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" : 74.70, "quantity" : 9.380, "sum" : 700.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:56:44]execute_script... [13:56: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)507535", "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" : 74.70, "quantity" : 9.380, "sum" : 700.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:56:44]POST & json_proto [13:56:44]process_json_proto [13:56:44]json parsed OK: [13:56:44]protocol is kg_v1.0 [13:56:44]action value=close_receipt [13:56:44]process_action close_receipt [13:56:44]cmd_close_receipt [13:56:44]MH_GetDate [13:56:44]Write to MH i2c: F0 00 00 9A 0B 94 [13:56:44]Write i2c OK [13:56:44]MH_I2C_Read... [13:56:44]Read from MH i2c: F0 [13:56:44]MH_I2C_Read... [13:56:44]Read from MH i2c: F0 09 00 [13:56:44]MH_I2C_Read... [13:56:44]Read from MH i2c: F0 09 00 9A 0B 00 9D 10 46 66 FC 21 6F 64 E6 [13:56:44]GetLastDocTimeStamp 1715867513 [13:56:44]current date 1715867805 [13:56:44]FM_GetShiftState [13:56:44]SAM_PROTO_GetShiftState [13:56:44]wFMCommunicate request_size=4 [13:56:44]MH_SAM_APDU [13:56:44]CAPDU: 80 13 01 00 [13:56:44]Write to MH i2c: E2 08 00 9B 0B 80 13 01 00 00 00 00 00 23 [13:56:44]Write i2c OK [13:56:44]MH_I2C_Read... [13:56:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:44]Read from MH i2c: E2 [13:56:44]MH_I2C_Read... [13:56:44]Read from MH i2c: E2 0E 00 [13:56:44]MH_I2C_Read... [13:56:44]Read from MH i2c: E2 0E 00 9B 0B 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 CF [13:56:44]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [13:56:44]wFMCommunicate OK [13:56:44]SAM_PROTO_GetShiftState done [13:56:44]FM_GetShiftState done [13:56:44]opened in 1715818916 [13:56:44]opened+sec_in_day 1715905316 [13:56:44]quantity*price = 70068 [13:56:44]sum+1 = 70070 [13:56:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.69 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.41 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 89 16.05.2024 13:56 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67491 ФПД: 89183435579420 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T135645&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67491&fm=89183435579420&tin=02508201610067®Number=0000000000091845&sum=70000 [13:56:45]StoreToDocumentArchive [13:56:45]shift 357 fd 67491 [13:56:45]save to /storage/0357/doc_00067491 [13:56:45]save last doc name /storage/0357/doc_00067491 to /storage/kkm_last_doc_name [13:56:45]save OK [13:56:45]Clear old archive folders... [13:56:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:56:45]tlvbuf is 017A7310 [13:56:45]SAM_PROTO_ClearQueue [13:56:45]wFMCommunicate request_size=4 [13:56:45]MH_SAM_APDU [13:56:45]CAPDU: 80 09 00 00 [13:56:45]Write to MH i2c: E2 08 00 A8 0B 80 09 00 00 00 00 00 00 25 [13:56:45]Write i2c OK [13:56:45]MH_I2C_Read... [13:56:45]Read from MH i2c: E2 [13:56:45]MH_I2C_Read... [13:56:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:56:45]OFD Sender: No OFD packet to send [13:56:45]Read from MH i2c: E2 03 00 [13:56:45]MH_I2C_Read... [13:56:45]Read from MH i2c: E2 03 00 A8 0B 00 90 00 27 [13:56:45]RAPDU: 90 00 [13:56:45]wFMCommunicate OK [13:56:45]SAM_PROTO_ClearQueue done [13:56:45]KKMCreateOFDPacket [13:56:45]OFDProtocolAddRootSTLVToBuf [13:56:45]FM_MakeSignedData [13:56:45]FM_MakeSignedData [13:56:45]SAM_PROTO_SignData [13:56:45]wFMCommunicate request_size=4 [13:56:45]MH_SAM_APDU [13:56:45]CAPDU: 80 0D 01 02 [13:56:45]Write to MH i2c: E2 08 00 A9 0B 80 0D 01 02 00 00 00 00 2D [13:56:45]Write i2c OK [13:56:45]MH_I2C_Read... [13:56:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:56:45]Read from MH i2c: E2 [13:56:45]MH_I2C_Read... [13:56:45]Read from MH i2c: E2 03 00 [13:56:45]MH_I2C_Read... [13:56:45]Read from MH i2c: E2 03 00 A9 0B 00 90 00 28 [13:56:45]RAPDU: 90 00 [13:56:45]wFMCommunicate OK [13:56:45]wFMCommunicate request_size=255 [13:56:45]MH_SAM_APDU [13:56: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 A4 24 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B5 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 11 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 9D 10 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A3 07 01 00 35 04 06 00 51 1C A2 FF [13:56:45]Write to MH i2c: E2 02 01 AA 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 A4 24 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B5 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 11 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 9D 10 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A3 07 01 00 35 04 06 00 51 1C A2 FF 00 00 DA [13:56:45]Write i2c OK [13:56:45]MH_I2C_Read... [13:56:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:45]Read from MH i2c: E2 [13:56:45]MH_I2C_Read... [13:56:45]Read from MH i2c: E2 03 00 [13:56:45]MH_I2C_Read... [13:56:45]Read from MH i2c: E2 03 00 AA 0B 00 90 00 29 [13:56:45]RAPDU: 90 00 [13:56:45]wFMCommunicate OK [13:56:45]wFMCommunicate request_size=7 [13:56:45]MH_SAM_APDU [13:56:45]CAPDU: 80 0D 02 02 02 60 1C [13:56:45]Write to MH i2c: E2 0A 00 AB 0B 80 0D 02 02 02 00 60 1C 00 00 B0 [13:56:45]Write i2c OK [13:56:45]MH_I2C_Read... [13:56:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:45]Read from MH i2c: E2 [13:56:45]MH_I2C_Read... [13:56:45]Read from MH i2c: E2 03 00 [13:56:45]MH_I2C_Read... [13:56:45]Read from MH i2c: E2 03 00 AB 0B 00 90 00 2A [13:56:45]RAPDU: 90 00 [13:56:45]wFMCommunicate OK [13:56:45]wFMCommunicate request_size=4 [13:56:45]MH_SAM_APDU [13:56:45]CAPDU: 80 0D 03 02 [13:56:45]Write to MH i2c: E2 08 00 AC 0B 80 0D 03 02 00 00 00 00 32 [13:56:45]Write i2c OK [13:56:45]MH_I2C_Read... [13:56:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:56:45]Read from MH i2c: E2 [13:56:45]MH_I2C_Read... [13:56:45]Read from MH i2c: E2 0B 00 [13:56:45]MH_I2C_Read... [13:56:45]Read from MH i2c: E2 0B 00 AC 0B 00 2C 55 B2 88 B2 81 6C 7F 90 00 0C [13:56:45]RAPDU: 2C 55 B2 88 B2 81 6C 7F 90 00 [13:56:45]wFMCommunicate OK [13:56:45]SAM_PROTO_SignData done [13:56:45]FM_MakeSignedData done [13:56:45]CreateOFDProtocolMessage [13:56:45]wFMCommunicate request_size=4 [13:56:45]MH_SAM_APDU [13:56:45]CAPDU: 80 11 00 00 [13:56:45]Write to MH i2c: E2 08 00 AD 0B 80 11 00 00 00 00 00 00 32 [13:56:45]Write i2c OK [13:56:45]MH_I2C_Read... [13:56:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:45]Read from MH i2c: E2 [13:56:45]MH_I2C_Read... [13:56:45]Read from MH i2c: E2 17 00 [13:56:45]MH_I2C_Read... [13:56:45]Read from MH i2c: E2 17 00 AD 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 88 [13:56:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:56:45]wFMCommunicate OK [13:56:45]CreateOFDProtocolMessage done [13:56:45]OFDSenderStorePacket 67491 [13:56:45]StoreOFDPacket docnum=67491 [13:56:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 D0 27 04 01 5A 0A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 24 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B5 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 11 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 9D 10 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A3 07 01 00 35 04 06 00 51 1C A2 FF 60 1C 2C 55 B2 88 B2 81 6C 7F [13:56:45]CheckFolder [13:56:45]dirname=/storage/ofd_packets [13:56:45]CheckFolder done [13:56:45]ProducePacketName [13:56:45]name=ofd_packets/00067491 [13:56:45]NVStorageSaveData ofd_packets/00067491 [13:56:45]File name is /storage/ofd_packets/00067491 [13:56:45]Write 298 bytes [13:56:45]NVStorageSaveData done [13:56:45]OFDSenderStorePacket done [13:56:45]KKMCreateOFDPacket done [13:56:45]NVStorageSaveData kkm_last_timestamp [13:56:45]File name is /storage/kkm_last_timestamp [13:56:45]Write 4 bytes [13:56:45]NVStorageSaveData done [13:56:45]ExternCall_PrintAddStr [13:56:45]wPrintStart [13:56:45]Write to MH i2c: 01 00 00 AE 0B B9 [13:56:45]Write i2c OK [13:56:45]MH_I2C_Read... [13:56:45]Read from MH i2c: 01 [13:56:45]MH_I2C_Read... [13:56:45]Read from MH i2c: 01 07 00 [13:56:45]MH_I2C_Read... [13:56:45]Read from MH i2c: 01 07 00 AE 0B 00 00 00 00 00 FF 0F CE [13:56:45]RasterBufferAndPrint [13:56:45]line Счет N : (1)507535 [13:56:45]line ИНН: 02508201610067 [13:56:45]line Контрольно-Кассовый Чек [13:56:45]line ПРОДАЖА [13:56:45]line ТРК (МРК, ГНК) : 31 [13:56:45]line Товар: 2710194210 [13:56:45]line ДТ-К-5 [13:56:45]line 9.380 * 74.70 [13:56:45]line = 700.69 [13:56:45]line НДС 12% НСП 1% [13:56:45]line > о реализуемом товаре [13:56:45]line ОКРУГЛЕНИЕ: -0.69 [13:56:45]line ИТОГО: 700.00 [13:56:45]line Внесено: 700.00 [13:56:45]line СДАЧА: 0.00 [13:56:45]line НСП 1% : 6.20 [13:56:45]line НДС 12% : 74.41 [13:56:45]line Наличными: 700.00 [13:56:45]line Безнал.: 0.00 [13:56:45]line Место: АЗС № 91 "Партнер Нефть" [13:56:45]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:56:45]line СНО: Общий режим [13:56:45]line Чек 89 16.05.2024 13:56 [13:56:45]line Смена: 357 ФФД: 1.0 [13:56:45]line ЗНМ: 0300000119 [13:56:45]line РНМ: 0000000000091845 [13:56:45]line Версия ККМ: 001 [13:56:45]line ФМ: 0000000000871829 [13:56:45]line ФД: 67491 [13:56:45]line ФПД: 89183435579420 [13:56:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T135645&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67491&fm=89183435579420&tin=02508201610067®Number=0000000000091845&sum=70000 [13:56:46]written 0, free lines is 4095 [13:56:46]OFD Sender: Processing packet 67491 [packets to send 35, broken 34] [13:56:46]ProducePacketName [13:56:46]name=ofd_packets/00067491 [13:56:46]OFD Sender: To server: pG, [13:56:46]CommunicateWithHost lk.salyk.kg:30040 [13:56:46]ConnectInit lk.salyk.kg [13:56:46]Connected sock=11 [13:56: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 38 32 39 0C 01 00 00 D0 27 04 01 5A 0A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 24 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B5 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 11 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 9D 10 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A3 07 01 00 35 04 06 00 51 1C A2 FF 60 1C 2C 55 B2 88 B2 81 6C 7F [13:56:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 5E 6F 47 00 F4 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 38 32 39 10 04 04 00 A3 07 01 00 F4 03 04 00 77 B8 45 66 B6 04 01 00 00 EA AF DC DF 14 99 D6 39 [13:56:46]CommunicateWithHost err = 0 [13:56:46]CheckOFDResponse [13:56:46]1017 (14) - 77093643461234 [13:56:46]1041 (16) - 0000000000871829 [13:56:46]1040 (4) - 67491 [13:56:46]1012 (4) - 16.05.2024 07:40 [13:56:46]1206 (1) - 0 [13:56:46]OFD Sender: Remove packet 67491 [13:56:46]ProducePacketName [13:56:46]name=ofd_packets/00067491 [13:56:46]NVStorageDeleteData [13:56:46]Write to MH i2c: 01 00 00 D8 0B E3 [13:56:46]Write i2c OK [13:56:46]MH_I2C_Read... [13:56:46]Read from MH i2c: 01 [13:56:46]MH_I2C_Read... [13:56:46]Read from MH i2c: 01 07 00 [13:56:46]MH_I2C_Read... [13:56:46]Read from MH i2c: 01 07 00 D8 0B 00 00 00 00 00 C7 0C BD [13:56:46]RasterBufferAndPrint [13:56:46]line [13:56:46]line [13:56:46]line [13:56:46]line [13:56:46]line [13:56:46]written 0, free lines is 3276 [13:56:46]MH_Cut [13:56:46]Write to MH i2c: D1 01 00 DF 0B 01 BC [13:56:46]Write i2c OK [13:56:46]MH_I2C_Read... [13:56:46]Read from MH i2c: D1 [13:56:46]MH_I2C_Read... [13:56:46]Read from MH i2c: D1 01 00 [13:56:46]MH_I2C_Read... [13:56:46]Read from MH i2c: D1 01 00 DF 0B 00 BB [13:56:46]Write to MH i2c: 01 00 00 E0 0B EB [13:56:46]Write i2c OK [13:56:46]MH_I2C_Read... [13:56:47]OFD Sender: No OFD packet to send [13:56:47]*** Cut start [13:56:47]*** Purtial cut [13:56:47]*** CUTSNS_PIN = 0 [13:56:47]*** Stage 1: CUTSNS_PIN = 1 [13:56:49]Read from MH i2c: 01 [13:56:49]MH_I2C_Read... [13:56:49]*** Stop cut motor [13:56:49]*** Cut end [13:56:49]Read from MH i2c: 01 07 00 [13:56:49]MH_I2C_Read... [13:56:49]Read from MH i2c: 01 07 00 E0 0B 00 00 00 00 00 FF 0F 00 [13:56:49]process_action close_receipt done [13:56:49]requested_data is exist [13:56:49]produce_requested_data [13:56:49]requested_item fm.sn is exist - process it [13:56:49]wFMCommunicate request_size=4 [13:56:49]MH_SAM_APDU [13:56:49]CAPDU: 80 11 00 00 [13:56:49]Write to MH i2c: E2 08 00 E1 0B 80 11 00 00 00 00 00 00 66 [13:56:49]Write i2c OK [13:56:49]MH_I2C_Read... [13:56:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:49]Read from MH i2c: E2 [13:56:49]MH_I2C_Read... [13:56:49]Read from MH i2c: E2 17 00 [13:56:49]MH_I2C_Read... [13:56:49]Read from MH i2c: E2 17 00 E1 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BC [13:56:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:56:49]wFMCommunicate OK [13:56:49]requested_item fd.num is exist - process it [13:56:49]SAM_PROTO_GetFieldsCounters [13:56:49]wFMCommunicate request_size=4 [13:56:49]MH_SAM_APDU [13:56:49]CAPDU: 80 13 00 00 [13:56:49]Write to MH i2c: E2 08 00 E2 0B 80 13 00 00 00 00 00 00 69 [13:56:49]Write i2c OK [13:56:49]MH_I2C_Read... [13:56:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:56:49]Read from MH i2c: E2 [13:56:49]MH_I2C_Read... [13:56:49]Read from MH i2c: E2 62 00 [13:56:49]MH_I2C_Read... [13:56:49]Read from MH i2c: E2 62 00 E2 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 A3 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [13:56: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 A3 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:56:49]wFMCommunicate OK [13:56:49]SAM_PROTO_GetFieldsCounters done [13:56:49]requested_item shift.num is exist - process it [13:56:49]requested_item shift.opened is exist - process it [13:56:49]req_shift_opened [13:56:49]FM_GetShiftState [13:56:49]SAM_PROTO_GetShiftState [13:56:49]wFMCommunicate request_size=4 [13:56:49]MH_SAM_APDU [13:56:49]CAPDU: 80 13 01 00 [13:56:49]Write to MH i2c: E2 08 00 E3 0B 80 13 01 00 00 00 00 00 6B [13:56:49]Write i2c OK [13:56:49]MH_I2C_Read... [13:56:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:49]Read from MH i2c: E2 [13:56:49]MH_I2C_Read... [13:56:49]Read from MH i2c: E2 0E 00 [13:56:49]MH_I2C_Read... [13:56:49]Read from MH i2c: E2 0E 00 E3 0B 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 17 [13:56:49]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [13:56:49]wFMCommunicate OK [13:56:49]SAM_PROTO_GetShiftState done [13:56:49]FM_GetShiftState done [13:56:49]req_shift_opened done [13:56:49]requested_item shift.open_date is exist - process it [13:56:49]req_shift_open_date [13:56:49]req_shift_open_date done [13:56:49]produce_requested_data done [13:56:49]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67491,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [13:56:49]process_action_free close_receipt [13:56:49]json_value_free [13:56:49]json_value_free done [13:56:49]process_json_proto returns [13:56:49]Send response to host [13:56:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67491,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [13:56:49]free response buf [13:56:49]execute_script done [13:56:49]execute_script returns [13:56:49]free content buf [13:56:49]Sock 9.Close socket [13:56:49]Sock 9.Thread stoped [13:56:52]OFD Sender: No OFD packet to send [13:56:57]OFD Sender: No OFD packet to send [13:57:02]OFD Sender: No OFD packet to send [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:47]OFD Sender: No OFD packet to send [13:58:52]OFD Sender: No OFD packet to send [13:58:57]OFD Sender: No OFD packet to send [13:59:02]OFD Sender: No OFD packet to send [13:59:07]OFD Sender: No OFD packet to send [13:59:12]OFD Sender: No OFD packet to send [13:59:17]OFD Sender: No OFD packet to send [13:59:22]OFD Sender: No OFD packet to send [13:59:27]OFD Sender: No OFD packet to send [13:59:32]OFD Sender: No OFD packet to send [13:59:37]OFD Sender: No OFD packet to send [13:59:42]OFD Sender: No OFD packet to send [13:59:47]OFD Sender: No OFD packet to send [13:59:52]OFD Sender: No OFD packet to send [13:59:57]OFD Sender: No OFD packet to send [14:00:02]OFD Sender: No OFD packet to send [14:00:07]OFD Sender: No OFD packet to send [14:00:12]OFD Sender: No OFD packet to send [14:00:17]OFD Sender: No OFD packet to send [14:00:22]OFD Sender: No OFD packet to send [14:00:27]OFD Sender: No OFD packet to send [14:00:32]OFD Sender: No OFD packet to send [14:00:37]OFD Sender: No OFD packet to send [14:00:42]OFD Sender: No OFD packet to send [14:00:47]OFD Sender: No OFD packet to send [14:00:52]OFD Sender: No OFD packet to send [14:00:57]OFD Sender: No OFD packet to send [14:01:02]OFD Sender: No OFD packet to send [14:01:07]OFD Sender: No OFD packet to send [14:01:12]OFD Sender: No OFD packet to send [14:01:17]OFD Sender: No OFD packet to send [14:01:22]OFD Sender: No OFD packet to send [14:01:27]OFD Sender: No OFD packet to send [14:01:32]OFD Sender: No OFD packet to send [14:01:37]OFD Sender: No OFD packet to send [14:01:42]OFD Sender: No OFD packet to send [14:01:47]OFD Sender: No OFD packet to send [14:01:52]OFD Sender: No OFD packet to send [14:01:57]OFD Sender: No OFD packet to send [14:02:02]OFD Sender: No OFD packet to send [14:02:07]OFD Sender: No OFD packet to send [14:02:12]OFD Sender: No OFD packet to send [14:02:17]OFD Sender: No OFD packet to send [14:02:22]OFD Sender: No OFD packet to send [14:02:27]OFD Sender: No OFD packet to send [14:02:32]OFD Sender: No OFD packet to send [14:02:37]OFD Sender: No OFD packet to send [14:02:42]OFD Sender: No OFD packet to send [14:02:47]OFD Sender: No OFD packet to send [14:02:52]OFD Sender: No OFD packet to send [14:02:57]OFD Sender: No OFD packet to send [14:03:02]OFD Sender: No OFD packet to send [14:03:07]OFD Sender: No OFD packet to send [14:03:12]OFD Sender: No OFD packet to send [14:03:17]OFD Sender: No OFD packet to send [14:03:22]OFD Sender: No OFD packet to send [14:03:27]OFD Sender: No OFD packet to send [14:03:32]OFD Sender: No OFD packet to send [14:03:37]OFD Sender: No OFD packet to send [14:03:42]OFD Sender: No OFD packet to send [14:03:47]OFD Sender: No OFD packet to send [14:03:52]OFD Sender: No OFD packet to send [14:03:57]OFD Sender: No OFD packet to send [14:04:02]OFD Sender: No OFD packet to send [14:04:07]OFD Sender: No OFD packet to send [14:04:12]OFD Sender: No OFD packet to send [14:04:17]OFD Sender: No OFD packet to send [14:04:22]OFD Sender: No OFD packet to send [14:04:27]OFD Sender: No OFD packet to send [14:04:29]accept exits with 8 [14:04:29]New connection [14:04:29]New thread 3067039076 created [14:04:29]Thread 3067182436 joined [14:04:29]Waiting for new connection... [14:04:29] Sock 8.Parse request [14:04:29]Sock 8.Check first char [14:04:29]Sock 8.First char is OK [14:04:29]request: POST /json_proto HTTP/1.0 [14:04:29]Method: POST [14:04:29]URL: /json_proto [14:04:29]Method is POST - this is cgi request [14:04:29]url: /json_proto [14:04:29]query_string will be loaded in cgi processing [14:04:29]execute_cgi json_proto POST (null) [14:04:29]execute_cgi path=json_proto method=POST [14:04:29]POST find Content-Length [14:04:29]Host: 172.17.41.195:8080 [14:04:29]Content-Length: 1207 [14:04:29]Content-Type: application/json [14:04:29] [14:04:29]POST finish read [14:04:29]Found Content-Length = 1207 [14:04:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507536\u000A16.05.2024 13:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 5.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 373.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:04:29]execute_script... [14:04:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507536\u000A16.05.2024 13:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 5.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 373.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:04:29]POST & json_proto [14:04:29]process_json_proto [14:04:29]json parsed OK: [14:04:29]protocol is kg_v1.0 [14:04:29]action value=print_text [14:04:29]process_action print_text [14:04:29]cmd_print_text [14:04:29]ExternCall_PrintAddStr [14:04:29]wPrintStart [14:04:29]Write to MH i2c: 01 00 00 E4 0B EF [14:04:29]Write i2c OK [14:04:29]MH_I2C_Read... [14:04:29]Read from MH i2c: 01 [14:04:29]MH_I2C_Read... [14:04:29]Read from MH i2c: 01 07 00 [14:04:29]MH_I2C_Read... [14:04:29]Read from MH i2c: 01 07 00 E4 0B 00 00 00 00 00 FF 0F 04 [14:04:29]RasterBufferAndPrint [14:04:29]line *****ТОВАРНЫЙ ЧЕК***** [14:04:29]line АЗС-91 [14:04:29]line Партнер нефть [14:04:29]line 02508201610067 [14:04:29]line Кассир : Пайзулдаева А. [14:04:29]line Счет N : (1)507536 [14:04:29]line 16.05.2024 13:47 [14:04:29]line ПРОДАЖА [14:04:29]line ТРК (МРК, ГНК): 11 [14:04:29]line Вид ГСМ : 2710194210 [14:04:29]line ДТ-К-5 [14:04:29]line 5.000 x 74.70 [14:04:29]line ИТОГ: 373.50 [14:04:29]line Тип оплаты: Талоны: Топливная Карта [14:04:29]line 02750 [14:04:29]line ______________________ [14:04:29]line (подпись) [14:04:29]written 0, free lines is 4095 [14:04:30]Write to MH i2c: 01 00 00 F8 0B 03 [14:04:30]Write i2c OK [14:04:30]MH_I2C_Read... [14:04:30]Read from MH i2c: 01 [14:04:30]MH_I2C_Read... [14:04:30]Read from MH i2c: 01 07 00 [14:04:30]MH_I2C_Read... [14:04:30]Read from MH i2c: 01 07 00 F8 0B 00 00 00 00 00 0D 0E 25 [14:04:30]RasterBufferAndPrint [14:04:30]line [14:04:30]line [14:04:30]line [14:04:30]line [14:04:30]line [14:04:30]written 0, free lines is 3599 [14:04:30]MH_Cut [14:04:30]Write to MH i2c: D1 01 00 FF 0B 01 DC [14:04:30]Write i2c OK [14:04:30]MH_I2C_Read... [14:04:30]Read from MH i2c: D1 [14:04:30]MH_I2C_Read... [14:04:30]Read from MH i2c: D1 01 00 [14:04:30]MH_I2C_Read... [14:04:30]Read from MH i2c: D1 01 00 FF 0B 00 DB [14:04:30]Write to MH i2c: 01 00 00 00 0C 0C [14:04:30]Write i2c OK [14:04:30]MH_I2C_Read... [14:04:30]*** Cut start [14:04:30]*** Purtial cut [14:04:30]*** Stage 1: CUTSNS_PIN = 1 [14:04:31]Read from MH i2c: 01 [14:04:31]MH_I2C_Read... [14:04:31]*** Stop cut motor [14:04:31]*** Cut end [14:04:31]Read from MH i2c: 01 07 00 [14:04:31]MH_I2C_Read... [14:04:31]Read from MH i2c: 01 07 00 00 0C 00 00 00 00 00 FF 0F 21 [14:04:31]process_action print_text done [14:04:31]requested_data is exist [14:04:31]produce_requested_data [14:04:31]requested_item fm.sn is exist - process it [14:04:31]wFMCommunicate request_size=4 [14:04:31]MH_SAM_APDU [14:04:31]CAPDU: 80 11 00 00 [14:04:31]Write to MH i2c: E2 08 00 01 0C 80 11 00 00 00 00 00 00 87 [14:04:31]Write i2c OK [14:04:31]MH_I2C_Read... [14:04:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:31]Read from MH i2c: E2 [14:04:31]MH_I2C_Read... [14:04:31]Read from MH i2c: E2 17 00 [14:04:31]MH_I2C_Read... [14:04:31]Read from MH i2c: E2 17 00 01 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DD [14:04:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:04:31]wFMCommunicate OK [14:04:31]requested_item fd.num is exist - process it [14:04:31]SAM_PROTO_GetFieldsCounters [14:04:31]wFMCommunicate request_size=4 [14:04:31]MH_SAM_APDU [14:04:31]CAPDU: 80 13 00 00 [14:04:31]Write to MH i2c: E2 08 00 02 0C 80 13 00 00 00 00 00 00 8A [14:04:31]Write i2c OK [14:04:31]MH_I2C_Read... [14:04:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:04:31]Read from MH i2c: E2 [14:04:31]MH_I2C_Read... [14:04:31]Read from MH i2c: E2 62 00 [14:04:31]MH_I2C_Read... [14:04:31]Read from MH i2c: E2 62 00 02 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 A3 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 CC [14:04:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 A3 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:04:31]wFMCommunicate OK [14:04:31]SAM_PROTO_GetFieldsCounters done [14:04:31]requested_item shift.num is exist - process it [14:04:31]requested_item shift.opened is exist - process it [14:04:31]req_shift_opened [14:04:31]FM_GetShiftState [14:04:31]SAM_PROTO_GetShiftState [14:04:31]wFMCommunicate request_size=4 [14:04:31]MH_SAM_APDU [14:04:31]CAPDU: 80 13 01 00 [14:04:31]Write to MH i2c: E2 08 00 03 0C 80 13 01 00 00 00 00 00 8C [14:04:31]Write i2c OK [14:04:31]MH_I2C_Read... [14:04:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:31]Read from MH i2c: E2 [14:04:31]MH_I2C_Read... [14:04:31]Read from MH i2c: E2 0E 00 [14:04:31]MH_I2C_Read... [14:04:31]Read from MH i2c: E2 0E 00 03 0C 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 38 [14:04:31]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [14:04:31]wFMCommunicate OK [14:04:31]SAM_PROTO_GetShiftState done [14:04:31]FM_GetShiftState done [14:04:31]req_shift_opened done [14:04:31]requested_item shift.open_date is exist - process it [14:04:31]req_shift_open_date [14:04:31]req_shift_open_date done [14:04:31]produce_requested_data done [14:04:31]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67491,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [14:04:31]process_action_free print_text [14:04:31]json_value_free [14:04:31]json_value_free done [14:04:31]process_json_proto returns [14:04:31]Send response to host [14:04:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67491,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [14:04:31]free response buf [14:04:31]execute_script done [14:04:31]execute_script returns [14:04:31]free content buf [14:04:31]Sock 8.Close socket [14:04:31]Sock 8.Thread stoped [14:04:32]OFD Sender: No OFD packet to send [14:04:37]OFD Sender: No OFD packet to send [14:04:42]OFD Sender: No OFD packet to send [14:04:47]OFD Sender: No OFD packet to send [14:04:52]OFD Sender: No OFD packet to send [14:04:57]OFD Sender: No OFD packet to send [14:05:02]OFD Sender: No OFD packet to send [14:05:07]OFD Sender: No OFD packet to send [14:05:12]OFD Sender: No OFD packet to send [14:05:17]OFD Sender: No OFD packet to send [14:05:22]OFD Sender: No OFD packet to send [14:05:27]OFD Sender: No OFD packet to send [14:05:32]OFD Sender: No OFD packet to send [14:05:37]OFD Sender: No OFD packet to send [14:05:42]OFD Sender: No OFD packet to send [14:05:47]OFD Sender: No OFD packet to send [14:05:52]OFD Sender: No OFD packet to send [14:05:57]OFD Sender: No OFD packet to send [14:06:02]OFD Sender: No OFD packet to send [14:06:07]OFD Sender: No OFD packet to send [14:06:12]OFD Sender: No OFD packet to send [14:06:17]OFD Sender: No OFD packet to send [14:06:22]OFD Sender: No OFD packet to send [14:06:27]OFD Sender: No OFD packet to send [14:06:32]OFD Sender: No OFD packet to send [14:06:37]OFD Sender: No OFD packet to send [14:06:42]OFD Sender: No OFD packet to send [14:06:47]OFD Sender: No OFD packet to send [14:06:48]accept exits with 9 [14:06:48]New connection [14:06:48]New thread 3067182436 created [14:06:48]Thread 3067039076 joined [14:06:48]Waiting for new connection... [14:06:48] Sock 9.Parse request [14:06:48]Sock 9.Check first char [14:06:48]Sock 9.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.41.195:8080 [14:06:48]Content-Length: 1209 [14:06:48]Content-Type: application/json [14:06:48] [14:06:48]POST finish read [14:06:48]Found Content-Length = 1209 [14:06:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507537\u000A16.05.2024 13:49\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.390 x 74.70\u000A\u0418\u0422\u041E\u0413: 1000.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "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" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507537\u000A16.05.2024 13:49\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.390 x 74.70\u000A\u0418\u0422\u041E\u0413: 1000.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "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=print_text [14:06:48]process_action print_text [14:06:48]cmd_print_text [14:06:48]ExternCall_PrintAddStr [14:06:48]wPrintStart [14:06:48]Write to MH i2c: 01 00 00 04 0C 10 [14:06:48]Write i2c OK [14:06:48]MH_I2C_Read... [14:06:48]Read from MH i2c: 01 [14:06:48]MH_I2C_Read... [14:06:48]Read from MH i2c: 01 07 00 [14:06:48]MH_I2C_Read... [14:06:48]Read from MH i2c: 01 07 00 04 0C 00 00 00 00 00 FF 0F 25 [14:06:48]RasterBufferAndPrint [14:06:48]line *****ТОВАРНЫЙ ЧЕК***** [14:06:48]line АЗС-91 [14:06:48]line Партнер нефть [14:06:48]line 02508201610067 [14:06:48]line Кассир : Пайзулдаева А. [14:06:48]line Счет N : (1)507537 [14:06:48]line 16.05.2024 13:49 [14:06:48]line ПРОДАЖА [14:06:48]line ТРК (МРК, ГНК): 31 [14:06:48]line Вид ГСМ : 2710194210 [14:06:48]line ДТ-К-5 [14:06:48]line 13.390 x 74.70 [14:06:48]line ИТОГ: 1000.23 [14:06:48]line Тип оплаты: Талоны: Топливная Карта [14:06:48]line 02750 [14:06:48]line ______________________ [14:06:48]line (подпись) [14:06:48]written 0, free lines is 4095 [14:06:49]Write to MH i2c: 01 00 00 18 0C 24 [14:06:49]Write i2c OK [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: 01 [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: 01 07 00 [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: 01 07 00 18 0C 00 00 00 00 00 0F 0E 48 [14:06:49]RasterBufferAndPrint [14:06:49]line [14:06:49]line [14:06:49]line [14:06:49]line [14:06:49]line [14:06:49]written 0, free lines is 3600 [14:06:49]MH_Cut [14:06:49]Write to MH i2c: D1 01 00 1F 0C 01 FD [14:06:49]Write i2c OK [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: D1 [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: D1 01 00 [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: D1 01 00 1F 0C 00 FC [14:06:49]Write to MH i2c: 01 00 00 20 0C 2C [14:06:49]Write i2c OK [14:06:49]MH_I2C_Read... [14:06:49]*** Cut start [14:06:49]*** Purtial cut [14:06:49]*** CUTSNS_PIN = 0 [14:06:49]*** Stage 1: CUTSNS_PIN = 1 [14:06:51]Read from MH i2c: 01 [14:06:51]MH_I2C_Read... [14:06:51]Read from MH i2c: 01 07 00 [14:06:51]MH_I2C_Read... [14:06:51]*** Stop cut motor [14:06:51]*** Cut end [14:06:51]Read from MH i2c: 01 07 00 20 0C 00 00 00 00 00 FF 0F 41 [14:06:51]process_action print_text done [14:06:51]requested_data is exist [14:06:51]produce_requested_data [14:06:51]requested_item fm.sn is exist - process it [14:06:51]wFMCommunicate request_size=4 [14:06:51]MH_SAM_APDU [14:06:51]CAPDU: 80 11 00 00 [14:06:51]Write to MH i2c: E2 08 00 21 0C 80 11 00 00 00 00 00 00 A7 [14:06:51]Write i2c OK [14:06:51]MH_I2C_Read... [14:06:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:51]Read from MH i2c: E2 [14:06:51]MH_I2C_Read... [14:06:51]Read from MH i2c: E2 17 00 [14:06:51]MH_I2C_Read... [14:06:51]Read from MH i2c: E2 17 00 21 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 FD [14:06:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:06:51]wFMCommunicate OK [14:06:51]requested_item fd.num is exist - process it [14:06:51]SAM_PROTO_GetFieldsCounters [14:06:51]wFMCommunicate request_size=4 [14:06:51]MH_SAM_APDU [14:06:51]CAPDU: 80 13 00 00 [14:06:51]Write to MH i2c: E2 08 00 22 0C 80 13 00 00 00 00 00 00 AA [14:06:51]Write i2c OK [14:06:51]MH_I2C_Read... [14:06:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:06:51]Read from MH i2c: E2 [14:06:51]MH_I2C_Read... [14:06:51]Read from MH i2c: E2 62 00 [14:06:51]MH_I2C_Read... [14:06:51]Read from MH i2c: E2 62 00 22 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 A3 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [14: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 A3 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:06:51]wFMCommunicate OK [14:06:51]SAM_PROTO_GetFieldsCounters done [14:06:51]requested_item shift.num is exist - process it [14:06:51]requested_item shift.opened is exist - process it [14:06:51]req_shift_opened [14:06:51]FM_GetShiftState [14:06:51]SAM_PROTO_GetShiftState [14:06:51]wFMCommunicate request_size=4 [14:06:51]MH_SAM_APDU [14:06:51]CAPDU: 80 13 01 00 [14:06:51]Write to MH i2c: E2 08 00 23 0C 80 13 01 00 00 00 00 00 AC [14:06:51]Write i2c OK [14:06:51]MH_I2C_Read... [14:06:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:51]Read from MH i2c: E2 [14:06:51]MH_I2C_Read... [14:06:51]Read from MH i2c: E2 0E 00 [14:06:51]MH_I2C_Read... [14:06:51]Read from MH i2c: E2 0E 00 23 0C 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 58 [14:06:51]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [14:06:51]wFMCommunicate OK [14:06:51]SAM_PROTO_GetShiftState done [14:06:51]FM_GetShiftState done [14:06:51]req_shift_opened done [14:06:51]requested_item shift.open_date is exist - process it [14:06:51]req_shift_open_date [14:06:51]req_shift_open_date done [14:06:51]produce_requested_data done [14:06:51]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67491,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [14:06:51]process_action_free print_text [14:06:51]json_value_free [14:06:51]json_value_free done [14:06:51]process_json_proto returns [14:06:51]Send response to host [14:06:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67491,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [14:06:51]free response buf [14:06:51]execute_script done [14:06:51]execute_script returns [14:06:51]free content buf [14:06:51]Sock 9.Close socket [14:06:51]Sock 9.Thread stoped [14:06:52]OFD Sender: No OFD packet to send [14:06:57]OFD Sender: No OFD packet to send [14:07:02]OFD Sender: No OFD packet to send [14:07:07]OFD Sender: No OFD packet to send [14:07:12]OFD Sender: No OFD packet to send [14:07:17]OFD Sender: No OFD packet to send [14:07:22]OFD Sender: No OFD packet to send [14:07:27]OFD Sender: No OFD packet to send [14:07:32]OFD Sender: No OFD packet to send [14:07:37]OFD Sender: No OFD packet to send [14:07:42]OFD Sender: No OFD packet to send [14:07:47]OFD Sender: No OFD packet to send [14:07:52]OFD Sender: No OFD packet to send [14:07:57]OFD Sender: No OFD packet to send [14:08:02]OFD Sender: No OFD packet to send [14:08:07]OFD Sender: No OFD packet to send [14:08:12]OFD Sender: No OFD packet to send [14:08:17]OFD Sender: No OFD packet to send [14:08:22]OFD Sender: No OFD packet to send [14:08:27]OFD Sender: No OFD packet to send [14:08:32]OFD Sender: No OFD packet to send [14:08:37]OFD Sender: No OFD packet to send [14:08:42]OFD Sender: No OFD packet to send [14:08:47]OFD Sender: No OFD packet to send [14:08:52]OFD Sender: No OFD packet to send [14:08:55]recv_with_timeout no data received [14:08:57]OFD Sender: No OFD packet to send [14:09:02]OFD Sender: No OFD packet to send [14:09:07]OFD Sender: No OFD packet to send [14:09:12]OFD Sender: No OFD packet to send [14:09:17]OFD Sender: No OFD packet to send [14:09:22]OFD Sender: No OFD packet to send [14:09:27]OFD Sender: No OFD packet to send [14:09:32]OFD Sender: No OFD packet to send [14:09:37]OFD Sender: No OFD packet to send [14:09:42]OFD Sender: No OFD packet to send [14:09:47]OFD Sender: No OFD packet to send [14:09:52]OFD Sender: No OFD packet to send [14:09:54]recv_with_timeout no data received [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:26]accept exits with 8 [14:11:26]New connection [14:11:26]New thread 3067039076 created [14:11:26]Thread 3067182436 joined [14:11:26]Waiting for new connection... [14:11:26] Sock 8.Parse request [14:11:26]Sock 8.Check first char [14:11:26]Sock 8.First char is OK [14:11:26]request: POST /json_proto HTTP/1.0 [14:11:26]Method: POST [14:11:26]URL: /json_proto [14:11:26]Method is POST - this is cgi request [14:11:26]url: /json_proto [14:11:26]query_string will be loaded in cgi processing [14:11:26]execute_cgi json_proto POST (null) [14:11:26]execute_cgi path=json_proto method=POST [14:11:26]POST find Content-Length [14:11:26]Host: 172.17.41.195:8080 [14:11:26]Content-Length: 1209 [14:11:26]Content-Type: application/json [14:11:26] [14:11:26]POST finish read [14:11:26]Found Content-Length = 1209 [14:11:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507538\u000A16.05.2024 13:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.390 x 74.70\u000A\u0418\u0422\u041E\u0413: 1000.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:26]execute_script... [14:11:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507538\u000A16.05.2024 13:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.390 x 74.70\u000A\u0418\u0422\u041E\u0413: 1000.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:26]POST & json_proto [14:11:26]process_json_proto [14:11:26]json parsed OK: [14:11:26]protocol is kg_v1.0 [14:11:26]action value=print_text [14:11:26]process_action print_text [14:11:26]cmd_print_text [14:11:26]ExternCall_PrintAddStr [14:11:26]wPrintStart [14:11:26]Write to MH i2c: 01 00 00 24 0C 30 [14:11:26]Write i2c OK [14:11:26]MH_I2C_Read... [14:11:26]Read from MH i2c: 01 [14:11:26]MH_I2C_Read... [14:11:26]Read from MH i2c: 01 07 00 [14:11:26]MH_I2C_Read... [14:11:26]Read from MH i2c: 01 07 00 24 0C 00 00 00 00 00 FF 0F 45 [14:11:26]RasterBufferAndPrint [14:11:26]line *****ТОВАРНЫЙ ЧЕК***** [14:11:26]line АЗС-91 [14:11:26]line Партнер нефть [14:11:26]line 02508201610067 [14:11:26]line Кассир : Пайзулдаева А. [14:11:26]line Счет N : (1)507538 [14:11:26]line 16.05.2024 13:53 [14:11:26]line ПРОДАЖА [14:11:26]line ТРК (МРК, ГНК): 31 [14:11:26]line Вид ГСМ : 2710194210 [14:11:26]line ДТ-К-5 [14:11:26]line 13.390 x 74.70 [14:11:26]line ИТОГ: 1000.23 [14:11:26]line Тип оплаты: Талоны: Топливная Карта [14:11:26]line 02750 [14:11:26]line ______________________ [14:11:26]line (подпись) [14:11:26]written 0, free lines is 4095 [14:11:26]Write to MH i2c: 01 00 00 38 0C 44 [14:11:26]Write i2c OK [14:11:26]MH_I2C_Read... [14:11:26]Read from MH i2c: 01 [14:11:26]MH_I2C_Read... [14:11:26]Read from MH i2c: 01 07 00 [14:11:26]MH_I2C_Read... [14:11:26]Read from MH i2c: 01 07 00 38 0C 00 00 00 00 00 10 0E 69 [14:11:26]RasterBufferAndPrint [14:11:26]line [14:11:26]line [14:11:26]line [14:11:26]line [14:11:26]line [14:11:26]written 0, free lines is 3602 [14:11:26]MH_Cut [14:11:26]Write to MH i2c: D1 01 00 3F 0C 01 1D [14:11:26]Write i2c OK [14:11:26]MH_I2C_Read... [14:11:26]Read from MH i2c: D1 [14:11:26]MH_I2C_Read... [14:11:26]Read from MH i2c: D1 01 00 [14:11:26]MH_I2C_Read... [14:11:26]Read from MH i2c: D1 01 00 3F 0C 00 1C [14:11:26]Write to MH i2c: 01 00 00 40 0C 4C [14:11:26]Write i2c OK [14:11:26]MH_I2C_Read... [14:11:26]*** Cut start [14:11:26]*** Purtial cut [14:11:26]*** Stage 1: CUTSNS_PIN = 1 [14:11:27]Read from MH i2c: 01 [14:11:27]MH_I2C_Read... [14:11:27]*** Stop cut motor [14:11:27]*** Cut end [14:11:27]Read from MH i2c: 01 07 00 [14:11:27]MH_I2C_Read... [14:11:27]Read from MH i2c: 01 07 00 40 0C 00 00 00 00 00 FF 0F 61 [14:11:27]process_action print_text done [14:11:27]requested_data is exist [14:11:27]produce_requested_data [14:11:27]requested_item fm.sn is exist - process it [14:11:27]wFMCommunicate request_size=4 [14:11:27]MH_SAM_APDU [14:11:27]CAPDU: 80 11 00 00 [14:11:27]Write to MH i2c: E2 08 00 41 0C 80 11 00 00 00 00 00 00 C7 [14:11:27]Write i2c OK [14:11:27]MH_I2C_Read... [14:11:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:27]Read from MH i2c: E2 [14:11:27]MH_I2C_Read... [14:11:27]Read from MH i2c: E2 17 00 [14:11:27]MH_I2C_Read... [14:11:27]Read from MH i2c: E2 17 00 41 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 1D [14:11:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:11:27]wFMCommunicate OK [14:11:27]requested_item fd.num is exist - process it [14:11:27]SAM_PROTO_GetFieldsCounters [14:11:27]wFMCommunicate request_size=4 [14:11:27]MH_SAM_APDU [14:11:27]CAPDU: 80 13 00 00 [14:11:27]Write to MH i2c: E2 08 00 42 0C 80 13 00 00 00 00 00 00 CA [14:11:27]Write i2c OK [14:11:27]MH_I2C_Read... [14:11:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:11:27]Read from MH i2c: E2 [14:11:27]MH_I2C_Read... [14:11:27]Read from MH i2c: E2 62 00 [14:11:27]MH_I2C_Read... [14:11:27]Read from MH i2c: E2 62 00 42 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 A3 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [14:11: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 A3 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:11:27]wFMCommunicate OK [14:11:27]SAM_PROTO_GetFieldsCounters done [14:11:27]requested_item shift.num is exist - process it [14:11:27]requested_item shift.opened is exist - process it [14:11:27]req_shift_opened [14:11:27]FM_GetShiftState [14:11:27]SAM_PROTO_GetShiftState [14:11:27]wFMCommunicate request_size=4 [14:11:27]MH_SAM_APDU [14:11:27]CAPDU: 80 13 01 00 [14:11:27]Write to MH i2c: E2 08 00 43 0C 80 13 01 00 00 00 00 00 CC [14:11:27]Write i2c OK [14:11:27]MH_I2C_Read... [14:11:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:27]Read from MH i2c: E2 [14:11:27]MH_I2C_Read... [14:11:27]Read from MH i2c: E2 0E 00 [14:11:27]MH_I2C_Read... [14:11:27]Read from MH i2c: E2 0E 00 43 0C 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 78 [14:11:27]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [14:11:27]wFMCommunicate OK [14:11:27]SAM_PROTO_GetShiftState done [14:11:27]FM_GetShiftState done [14:11:27]req_shift_opened done [14:11:27]requested_item shift.open_date is exist - process it [14:11:27]req_shift_open_date [14:11:27]req_shift_open_date done [14:11:27]produce_requested_data done [14:11:27]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67491,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [14:11:27]process_action_free print_text [14:11:27]json_value_free [14:11:27]json_value_free done [14:11:27]process_json_proto returns [14:11:27]Send response to host [14:11:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67491,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [14:11:27]free response buf [14:11:27]execute_script done [14:11:27]execute_script returns [14:11:27]free content buf [14:11:27]Sock 8.Close socket [14:11:27]Sock 8.Thread stoped [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:23]OFD Sender: No OFD packet to send [14:15:28]OFD Sender: No OFD packet to send [14:15:33]OFD Sender: No OFD packet to send [14:15:38]OFD Sender: No OFD packet to send [14:15:43]OFD Sender: No OFD packet to send [14:15:48]OFD Sender: No OFD packet to send [14:15:53]OFD Sender: No OFD packet to send [14:15:58]OFD Sender: No OFD packet to send [14:16:03]OFD Sender: No OFD packet to send [14:16:08]OFD Sender: No OFD packet to send [14:16:13]OFD Sender: No OFD packet to send [14:16:18]OFD Sender: No OFD packet to send [14:16:23]OFD Sender: No OFD packet to send [14:16:28]OFD Sender: No OFD packet to send [14:16:33]OFD Sender: No OFD packet to send [14:16:38]OFD Sender: No OFD packet to send [14:16:43]OFD Sender: No OFD packet to send [14:16:48]OFD Sender: No OFD packet to send [14:16:53]OFD Sender: No OFD packet to send [14:16:58]OFD Sender: No OFD packet to send [14:17:03]OFD Sender: No OFD packet to send [14:17:08]OFD Sender: No OFD packet to send [14:17:13]OFD Sender: No OFD packet to send [14:17:18]OFD Sender: No OFD packet to send [14:17:23]OFD Sender: No OFD packet to send [14:17:28]OFD Sender: No OFD packet to send [14:17:33]OFD Sender: No OFD packet to send [14:17:38]OFD Sender: No OFD packet to send [14:17:43]OFD Sender: No OFD packet to send [14:17:48]OFD Sender: No OFD packet to send [14:17:53]OFD Sender: No OFD packet to send [14:17:58]OFD Sender: No OFD packet to send [14:18:03]OFD Sender: No OFD packet to send [14:18:08]OFD Sender: No OFD packet to send [14:18:13]OFD Sender: No OFD packet to send [14:18:18]OFD Sender: No OFD packet to send [14:18:23]OFD Sender: No OFD packet to send [14:18:28]OFD Sender: No OFD packet to send [14:18:33]OFD Sender: No OFD packet to send [14:18:38]OFD Sender: No OFD packet to send [14:18:43]OFD Sender: No OFD packet to send [14:18:48]OFD Sender: No OFD packet to send [14:18:53]OFD Sender: No OFD packet to send [14:18:58]OFD Sender: No OFD packet to send [14:19:03]OFD Sender: No OFD packet to send [14:19:08]OFD Sender: No OFD packet to send [14:19:13]OFD Sender: No OFD packet to send [14:19:18]OFD Sender: No OFD packet to send [14:19:23]OFD Sender: No OFD packet to send [14:19:28]OFD Sender: No OFD packet to send [14:19:33]OFD Sender: No OFD packet to send [14:19:38]OFD Sender: No OFD packet to send [14:19:43]OFD Sender: No OFD packet to send [14:19:48]OFD Sender: No OFD packet to send [14:19:53]OFD Sender: No OFD packet to send [14:19:55]accept exits with 9 [14:19:55]New connection [14:19:55]New thread 3067182436 created [14:19:55]Thread 3067039076 joined [14:19:55]Waiting for new connection... [14:19:55] Sock 9.Parse request [14:19:55]Sock 9.Check first char [14:19:55]Sock 9.First char is OK [14:19:55]request: POST /json_proto HTTP/1.0 [14:19:55]Method: POST [14:19:55]URL: /json_proto [14:19:55]Method is POST - this is cgi request [14:19:55]url: /json_proto [14:19:55]query_string will be loaded in cgi processing [14:19:55]execute_cgi json_proto POST (null) [14:19:55]execute_cgi path=json_proto method=POST [14:19:55]POST find Content-Length [14:19:55]Host: 172.17.41.195:8080 [14:19:55]Content-Length: 1209 [14:19:55]Content-Type: application/json [14:19:55] [14:19:55]POST finish read [14:19:55]Found Content-Length = 1209 [14:19:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507539\u000A16.05.2024 14:02\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 40.170 x 74.70\u000A\u0418\u0422\u041E\u0413: 3000.70\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:55]execute_script... [14:19:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507539\u000A16.05.2024 14:02\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 40.170 x 74.70\u000A\u0418\u0422\u041E\u0413: 3000.70\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:55]POST & json_proto [14:19:55]process_json_proto [14:19:55]json parsed OK: [14:19:55]protocol is kg_v1.0 [14:19:55]action value=print_text [14:19:55]process_action print_text [14:19:55]cmd_print_text [14:19:55]ExternCall_PrintAddStr [14:19:55]wPrintStart [14:19:55]Write to MH i2c: 01 00 00 44 0C 50 [14:19:55]Write i2c OK [14:19:55]MH_I2C_Read... [14:19:55]Read from MH i2c: 01 [14:19:55]MH_I2C_Read... [14:19:55]Read from MH i2c: 01 07 00 [14:19:55]MH_I2C_Read... [14:19:55]Read from MH i2c: 01 07 00 44 0C 00 00 00 00 00 FF 0F 65 [14:19:55]RasterBufferAndPrint [14:19:55]line *****ТОВАРНЫЙ ЧЕК***** [14:19:55]line АЗС-91 [14:19:55]line Партнер нефть [14:19:55]line 02508201610067 [14:19:55]line Кассир : Пайзулдаева А. [14:19:55]line Счет N : (1)507539 [14:19:55]line 16.05.2024 14:02 [14:19:55]line ПРОДАЖА [14:19:55]line ТРК (МРК, ГНК): 41 [14:19:55]line Вид ГСМ : 2710194210 [14:19:55]line ДТ-К-5 [14:19:55]line 40.170 x 74.70 [14:19:55]line ИТОГ: 3000.70 [14:19:55]line Тип оплаты: Талоны: Топливная Карта [14:19:55]line 02750 [14:19:55]line ______________________ [14:19:55]line (подпись) [14:19:55]written 0, free lines is 4095 [14:19:55]Write to MH i2c: 01 00 00 58 0C 64 [14:19:55]Write i2c OK [14:19:55]MH_I2C_Read... [14:19:55]Read from MH i2c: 01 [14:19:55]MH_I2C_Read... [14:19:55]Read from MH i2c: 01 07 00 [14:19:55]MH_I2C_Read... [14:19:55]Read from MH i2c: 01 07 00 58 0C 00 00 00 00 00 0E 0E 87 [14:19:55]RasterBufferAndPrint [14:19:55]line [14:19:55]line [14:19:55]line [14:19:55]line [14:19:55]line [14:19:55]written 0, free lines is 3600 [14:19:55]MH_Cut [14:19:55]Write to MH i2c: D1 01 00 5F 0C 01 3D [14:19:55]Write i2c OK [14:19:55]MH_I2C_Read... [14:19:55]Read from MH i2c: D1 [14:19:55]MH_I2C_Read... [14:19:55]Read from MH i2c: D1 01 00 [14:19:55]MH_I2C_Read... [14:19:55]Read from MH i2c: D1 01 00 5F 0C 00 3C [14:19:55]Write to MH i2c: 01 00 00 60 0C 6C [14:19:55]Write i2c OK [14:19:55]MH_I2C_Read... [14:19:56]*** Cut start [14:19:56]*** Purtial cut [14:19:56]*** CUTSNS_PIN = 0 [14:19:56]*** Stage 1: CUTSNS_PIN = 1 [14:19:58]OFD Sender: No OFD packet to send [14:19:58]Read from MH i2c: 01 [14:19:58]MH_I2C_Read... [14:19:58]Read from MH i2c: 01 07 00 [14:19:58]MH_I2C_Read... [14:19:58]*** Stop cut motor [14:19:58]*** Cut end [14:19:58]Read from MH i2c: 01 07 00 60 0C 00 00 00 00 00 FF 0F 81 [14:19:58]process_action print_text done [14:19:58]requested_data is exist [14:19:58]produce_requested_data [14:19:58]requested_item fm.sn is exist - process it [14:19:58]wFMCommunicate request_size=4 [14:19:58]MH_SAM_APDU [14:19:58]CAPDU: 80 11 00 00 [14:19:58]Write to MH i2c: E2 08 00 61 0C 80 11 00 00 00 00 00 00 E7 [14:19:58]Write i2c OK [14:19:58]MH_I2C_Read... [14:19:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:58]Read from MH i2c: E2 [14:19:58]MH_I2C_Read... [14:19:58]Read from MH i2c: E2 17 00 [14:19:58]MH_I2C_Read... [14:19:58]Read from MH i2c: E2 17 00 61 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3D [14:19:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:19:58]wFMCommunicate OK [14:19:58]requested_item fd.num is exist - process it [14:19:58]SAM_PROTO_GetFieldsCounters [14:19:58]wFMCommunicate request_size=4 [14:19:58]MH_SAM_APDU [14:19:58]CAPDU: 80 13 00 00 [14:19:58]Write to MH i2c: E2 08 00 62 0C 80 13 00 00 00 00 00 00 EA [14:19:58]Write i2c OK [14:19:58]MH_I2C_Read... [14:19:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:19:58]Read from MH i2c: E2 [14:19:58]MH_I2C_Read... [14:19:58]Read from MH i2c: E2 62 00 [14:19:58]MH_I2C_Read... [14:19:58]Read from MH i2c: E2 62 00 62 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 A3 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [14:19:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 A3 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:19:58]wFMCommunicate OK [14:19:58]SAM_PROTO_GetFieldsCounters done [14:19:58]requested_item shift.num is exist - process it [14:19:58]requested_item shift.opened is exist - process it [14:19:58]req_shift_opened [14:19:58]FM_GetShiftState [14:19:58]SAM_PROTO_GetShiftState [14:19:58]wFMCommunicate request_size=4 [14:19:58]MH_SAM_APDU [14:19:58]CAPDU: 80 13 01 00 [14:19:58]Write to MH i2c: E2 08 00 63 0C 80 13 01 00 00 00 00 00 EC [14:19:58]Write i2c OK [14:19:58]MH_I2C_Read... [14:19:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:58]Read from MH i2c: E2 [14:19:58]MH_I2C_Read... [14:19:58]Read from MH i2c: E2 0E 00 [14:19:58]MH_I2C_Read... [14:19:58]Read from MH i2c: E2 0E 00 63 0C 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 98 [14:19:58]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [14:19:58]wFMCommunicate OK [14:19:58]SAM_PROTO_GetShiftState done [14:19:58]FM_GetShiftState done [14:19:58]req_shift_opened done [14:19:58]requested_item shift.open_date is exist - process it [14:19:58]req_shift_open_date [14:19:58]req_shift_open_date done [14:19:58]produce_requested_data done [14:19:58]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67491,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [14:19:58]process_action_free print_text [14:19:58]json_value_free [14:19:58]json_value_free done [14:19:58]process_json_proto returns [14:19:58]Send response to host [14:19:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67491,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [14:19:58]free response buf [14:19:58]execute_script done [14:19:58]execute_script returns [14:19:58]free content buf [14:19:58]Sock 9.Close socket [14:19:58]Sock 9.Thread stoped [14:20:03]OFD Sender: No OFD packet to send [14:20:08]OFD Sender: No OFD packet to send [14:20:13]OFD Sender: No OFD packet to send [14:20:18]OFD Sender: No OFD packet to send [14:20:23]OFD Sender: No OFD packet to send [14:20:28]OFD Sender: No OFD packet to send [14:20:33]OFD Sender: No OFD packet to send [14:20:38]OFD Sender: No OFD packet to send [14:20:43]OFD Sender: No OFD packet to send [14:20:48]OFD Sender: No OFD packet to send [14:20:53]OFD Sender: No OFD packet to send [14:20:58]OFD Sender: No OFD packet to send [14:21:03]OFD Sender: No OFD packet to send [14:21:08]OFD Sender: No OFD packet to send [14:21:13]OFD Sender: No OFD packet to send [14:21:18]OFD Sender: No OFD packet to send [14:21:23]OFD Sender: No OFD packet to send [14:21:28]OFD Sender: No OFD packet to send [14:21:33]OFD Sender: No OFD packet to send [14:21:38]OFD Sender: No OFD packet to send [14:21:43]OFD Sender: No OFD packet to send [14:21:48]OFD Sender: No OFD packet to send [14:21:53]OFD Sender: No OFD packet to send [14:21:58]OFD Sender: No OFD packet to send [14:22:03]OFD Sender: No OFD packet to send [14:22:08]OFD Sender: No OFD packet to send [14:22:13]OFD Sender: No OFD packet to send [14:22:18]OFD Sender: No OFD packet to send [14:22:23]OFD Sender: No OFD packet to send [14:22:28]OFD Sender: No OFD packet to send [14:22:33]OFD Sender: No OFD packet to send [14:22:38]OFD Sender: No OFD packet to send [14:22:43]OFD Sender: No OFD packet to send [14:22:48]OFD Sender: No OFD packet to send [14:22:53]OFD Sender: No OFD packet to send [14:22:58]OFD Sender: No OFD packet to send [14:23:03]OFD Sender: No OFD packet to send [14:23:08]OFD Sender: No OFD packet to send [14:23:13]OFD Sender: No OFD packet to send [14:23:18]OFD Sender: No OFD packet to send [14:23:23]OFD Sender: No OFD packet to send [14:23:28]OFD Sender: No OFD packet to send [14:23:33]OFD Sender: No OFD packet to send [14:23:38]OFD Sender: No OFD packet to send [14:23:43]OFD Sender: No OFD packet to send [14:23:48]OFD Sender: No OFD packet to send [14:23:53]OFD Sender: No OFD packet to send [14:23:58]OFD Sender: No OFD packet to send [14:24:03]OFD Sender: No OFD packet to send [14:24:08]OFD Sender: No OFD packet to send [14:24:13]OFD Sender: No OFD packet to send [14:24:18]OFD Sender: No OFD packet to send [14:24:23]OFD Sender: No OFD packet to send [14:24:28]accept exits with 8 [14:24:28]New connection [14:24:28]New thread 3067039076 created [14:24:28]Thread 3067182436 joined [14:24:28]Waiting for new connection... [14:24:28] Sock 8.Parse request [14:24:28]Sock 8.Check first char [14:24:28]Sock 8.First char is OK [14:24:28]request: POST /json_proto HTTP/1.0 [14:24:28]Method: POST [14:24:28]URL: /json_proto [14:24:28]Method is POST - this is cgi request [14:24:28]url: /json_proto [14:24:28]query_string will be loaded in cgi processing [14:24:28]execute_cgi json_proto POST (null) [14:24:28]execute_cgi path=json_proto method=POST [14:24:28]POST find Content-Length [14:24:28]Host: 172.17.41.195:8080 [14:24:28]Content-Length: 930 [14:24:28]Content-Type: application/json [14:24:28] [14:24:28]POST finish read [14:24:28]Found Content-Length = 930 [14:24:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12091", "tax_sys" : 0, "items" : [ { "code": "5449000066473", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B", "price" : 38.00, "quantity" : 1.000, "sum" : 38.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521230", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043B\u0438\u043C\u043E\u043D", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 153.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:28]execute_script... [14:24: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 : (3)12091", "tax_sys" : 0, "items" : [ { "code": "5449000066473", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B", "price" : 38.00, "quantity" : 1.000, "sum" : 38.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521230", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043B\u0438\u043C\u043E\u043D", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 153.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:28]POST & json_proto [14:24:28]process_json_proto [14:24:28]json parsed OK: [14:24:28]protocol is kg_v1.0 [14:24:28]action value=close_receipt [14:24:28]process_action close_receipt [14:24:28]cmd_close_receipt [14:24:28]MH_GetDate [14:24:28]Write to MH i2c: F0 00 00 64 0C 5F [14:24:28]Write i2c OK [14:24:28]MH_I2C_Read... [14:24:28]Read from MH i2c: F0 [14:24:28]MH_I2C_Read... [14:24:28]Read from MH i2c: F0 09 00 [14:24:28]MH_I2C_Read... [14:24:28]Read from MH i2c: F0 09 00 64 0C 00 1D 17 46 66 FC 21 6F 64 38 [14:24:28]GetLastDocTimeStamp 1715867805 [14:24:28]current date 1715869469 [14:24:28]FM_GetShiftState [14:24:28]SAM_PROTO_GetShiftState [14:24:28]wFMCommunicate request_size=4 [14:24:28]MH_SAM_APDU [14:24:28]CAPDU: 80 13 01 00 [14:24:28]Write to MH i2c: E2 08 00 65 0C 80 13 01 00 00 00 00 00 EE [14:24:28]Write i2c OK [14:24:28]MH_I2C_Read... [14:24:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:28]Read from MH i2c: E2 [14:24:28]MH_I2C_Read... [14:24:28]Read from MH i2c: E2 0E 00 [14:24:28]MH_I2C_Read... [14:24:28]Read from MH i2c: E2 0E 00 65 0C 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 9A [14:24:28]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [14:24:28]wFMCommunicate OK [14:24:28]SAM_PROTO_GetShiftState done [14:24:28]FM_GetShiftState done [14:24:28]opened in 1715818916 [14:24:28]opened+sec_in_day 1715905316 [14:24:28]quantity*price = 3800 [14:24:28]sum+1 = 3801 [14:24:28]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870202521230 Напиток MAXI чай 1,2 черн.лимон 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 153.00 НСП 1% : 1.36 НДС 12% : 16.24 Наличными: 153.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 90 16.05.2024 14:24 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67492 ФПД: 182895847252281 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T142429&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67492&fm=182895847252281&tin=02508201610067®Number=0000000000091845&sum=15300 0 [14:24:29]StoreToDocumentArchive [14:24:29]shift 357 fd 67492 [14:24:29]save to /storage/0357/doc_00067492 [14:24:29]save last doc name /storage/0357/doc_00067492 to /storage/kkm_last_doc_name [14:24:29]save OK [14:24:29]Clear old archive folders... [14:24:29]ProcessDocumentItem done err = 0, tmpTLVsize=391 [14:24:29]tlvbuf is 017626E0 [14:24:29]SAM_PROTO_ClearQueue [14:24:29]wFMCommunicate request_size=4 [14:24:29]MH_SAM_APDU [14:24:29]CAPDU: 80 09 00 00 [14:24:29]Write to MH i2c: E2 08 00 72 0C 80 09 00 00 00 00 00 00 F0 [14:24:29]Write i2c OK [14:24:29]MH_I2C_Read... [14:24:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:24:29]Read from MH i2c: E2 [14:24:29]MH_I2C_Read... [14:24:29]Read from MH i2c: E2 03 00 [14:24:29]MH_I2C_Read... [14:24:29]Read from MH i2c: E2 03 00 72 0C 00 90 00 F2 [14:24:29]RAPDU: 90 00 [14:24:29]wFMCommunicate OK [14:24:29]SAM_PROTO_ClearQueue done [14:24:29]KKMCreateOFDPacket [14:24:29]OFDProtocolAddRootSTLVToBuf [14:24:29]FM_MakeSignedData [14:24:29]FM_MakeSignedData [14:24:29]SAM_PROTO_SignData [14:24:29]wFMCommunicate request_size=4 [14:24:29]MH_SAM_APDU [14:24:29]CAPDU: 80 0D 01 02 [14:24:29]Write to MH i2c: E2 08 00 73 0C 80 0D 01 02 00 00 00 00 F8 [14:24:29]Write i2c OK [14:24:29]MH_I2C_Read... [14:24:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:24:29]Read from MH i2c: E2 [14:24:29]MH_I2C_Read... [14:24:29]Read from MH i2c: E2 03 00 [14:24:29]MH_I2C_Read... [14:24:29]Read from MH i2c: E2 03 00 73 0C 00 90 00 F3 [14:24:29]RAPDU: 90 00 [14:24:29]wFMCommunicate OK [14:24:29]wFMCommunicate request_size=255 [14:24:29]MH_SAM_APDU [14:24:29]CAPDU: 80 0D 02 02 FA 03 00 87 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 36 36 34 37 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 0E 00 00 00 00 13 04 06 00 D8 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 33 30 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 3B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 [14:24:29]Write to MH i2c: E2 02 01 74 0C 80 0D 02 02 FA 00 03 00 87 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 36 36 34 37 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 0E 00 00 00 00 13 04 06 00 D8 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 33 30 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 3B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 00 00 D7 [14:24:29]Write i2c OK [14:24:29]MH_I2C_Read... [14:24:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:29]Read from MH i2c: E2 [14:24:29]MH_I2C_Read... [14:24:29]Read from MH i2c: E2 03 00 [14:24:29]MH_I2C_Read... [14:24:29]Read from MH i2c: E2 03 00 74 0C 00 90 00 F4 [14:24:29]RAPDU: 90 00 [14:24:29]wFMCommunicate OK [14:24:29]wFMCommunicate request_size=150 [14:24:29]MH_SAM_APDU [14:24:29]CAPDU: 80 0D 02 02 91 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 06 00 00 00 00 07 04 06 00 C4 3B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 1D 17 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A4 07 01 00 35 04 06 00 A6 57 C2 01 A1 39 [14:24:29]Write to MH i2c: E2 99 00 75 0C 80 0D 02 02 91 00 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 06 00 00 00 00 07 04 06 00 C4 3B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 1D 17 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A4 07 01 00 35 04 06 00 A6 57 C2 01 A1 39 00 00 1C [14:24:29]Write i2c OK [14:24:29]MH_I2C_Read... [14:24:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:29]Read from MH i2c: E2 [14:24:29]MH_I2C_Read... [14:24:29]Read from MH i2c: E2 03 00 [14:24:29]MH_I2C_Read... [14:24:29]Read from MH i2c: E2 03 00 75 0C 00 90 00 F5 [14:24:29]RAPDU: 90 00 [14:24:29]wFMCommunicate OK [14:24:29]wFMCommunicate request_size=4 [14:24:29]MH_SAM_APDU [14:24:29]CAPDU: 80 0D 03 02 [14:24:29]Write to MH i2c: E2 08 00 76 0C 80 0D 03 02 00 00 00 00 FD [14:24:29]Write i2c OK [14:24:29]MH_I2C_Read... [14:24:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:24:29]Read from MH i2c: E2 [14:24:29]MH_I2C_Read... [14:24:29]Read from MH i2c: E2 0B 00 [14:24:29]MH_I2C_Read... [14:24:29]Read from MH i2c: E2 0B 00 76 0C 00 04 E4 BC 0D A2 C9 BF 1A 90 00 F3 [14:24:29]RAPDU: 04 E4 BC 0D A2 C9 BF 1A 90 00 [14:24:29]wFMCommunicate OK [14:24:29]SAM_PROTO_SignData done [14:24:29]FM_MakeSignedData done [14:24:29]CreateOFDProtocolMessage [14:24:29]wFMCommunicate request_size=4 [14:24:29]MH_SAM_APDU [14:24:29]CAPDU: 80 11 00 00 [14:24:29]Write to MH i2c: E2 08 00 77 0C 80 11 00 00 00 00 00 00 FD [14:24:29]Write i2c OK [14:24:29]MH_I2C_Read... [14:24:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:30]Read from MH i2c: E2 [14:24:30]MH_I2C_Read... [14:24:30]Read from MH i2c: E2 17 00 [14:24:30]MH_I2C_Read... [14:24:30]Read from MH i2c: E2 17 00 77 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 53 [14:24:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:24:30]wFMCommunicate OK [14:24:30]CreateOFDProtocolMessage done [14:24:30]OFDSenderStorePacket 67492 [14:24:30]StoreOFDPacket docnum=67492 [14:24:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 9B 01 00 00 29 25 93 01 F5 26 5A 03 01 00 03 00 87 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 36 36 34 37 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 0E 00 00 00 00 13 04 06 00 D8 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 33 30 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 3B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 06 00 00 00 00 07 04 06 00 C4 3B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 1D 17 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A4 07 01 00 35 04 06 00 A6 57 C2 01 A1 39 04 E4 BC 0D A2 C9 BF 1A [14:24:30]CheckFolder [14:24:30]dirname=/storage/ofd_packets [14:24:30]CheckFolder done [14:24:30]ProducePacketName [14:24:30]name=ofd_packets/00067492 [14:24:30]NVStorageSaveData ofd_packets/00067492 [14:24:30]File name is /storage/ofd_packets/00067492 [14:24:30]Write 441 bytes [14:24:30]NVStorageSaveData done [14:24:30]OFDSenderStorePacket done [14:24:30]KKMCreateOFDPacket done [14:24:30]NVStorageSaveData kkm_last_timestamp [14:24:30]File name is /storage/kkm_last_timestamp [14:24:30]Write 4 bytes [14:24:30]NVStorageSaveData done [14:24:30]ExternCall_PrintAddStr [14:24:30]wPrintStart [14:24:30]Write to MH i2c: 01 00 00 78 0C 84 [14:24:30]OFD Sender: Processing packet 67492 [packets to send 35, broken 34] [14:24:30]ProducePacketName [14:24:30]name=ofd_packets/00067492 [14:24:30]OFD Sender: To server: pG, [14:24:30]CommunicateWithHost lk.salyk.kg:30040 [14:24:30]ConnectInit lk.salyk.kg [14:24:30]Write i2c OK [14:24:30]MH_I2C_Read... [14:24:30]Read from MH i2c: 01 [14:24:30]MH_I2C_Read... [14:24:30]Read from MH i2c: 01 07 00 [14:24:30]MH_I2C_Read... [14:24:30]Read from MH i2c: 01 07 00 78 0C 00 00 00 00 00 FF 0F 99 [14:24:30]RasterBufferAndPrint [14:24:30]line Счет N : (3)12091 [14:24:30]line ИНН: 02508201610067 [14:24:30]line Контрольно-Кассовый Чек [14:24:30]line ПРОДАЖА [14:24:30]line Товар: 5449000066473 [14:24:30]line Вода Бонаква 1л [14:24:30]line 1.000 * 38.00 [14:24:30]line = 38.00 [14:24:30]line НДС 12% НСП 1% [14:24:30]line > о реализуемом товаре [14:24:30]line Товар: 4870202521230 [14:24:30]line Напиток MAXI чай 1,2 черн.лимон [14:24:30]line 1.000 * 115.00 [14:24:30]line = 115.00 [14:24:30]line НДС 12% НСП 1% [14:24:30]line > о реализуемом товаре [14:24:30]line ИТОГО: 153.00 [14:24:30]line НСП 1% : 1.36 [14:24:30]line НДС 12% : 16.24 [14:24:30]line Наличными: 153.00 [14:24:30]line Безнал.: 0.00 [14:24:30]line Место: АЗС № 91 "Партнер Нефть" [14:24:30]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [14:24:30]line СНО: Общий режим [14:24:30]line Чек 90 16.05.2024 14:24 [14:24:30]line Смена: 357 ФФД: 1.0 [14:24:30]line ЗНМ: 0300000119 [14:24:30]line РНМ: 0000000000091845 [14:24:30]line Версия ККМ: 001 [14:24:30]line ФМ: 0000000000871829 [14:24:30]line ФД: 67492 [14:24:30]line ФПД: 182895847252281 [14:24:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T142429&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67492&fm=182895847252281&tin=02508201610067®Number=0000000000091845&sum=15300 [14:24:30]line 0 [14:24:30]written 0, free lines is 4095 [14:24:30]Connected sock=10 [14:24: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 38 32 39 9B 01 00 00 29 25 93 01 F5 26 5A 03 01 00 03 00 87 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 36 36 34 37 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 0E 00 00 00 00 13 04 06 00 D8 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 33 30 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 3B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 06 00 00 00 00 07 04 06 00 C4 3B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 1D 17 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A4 07 01 00 35 04 06 00 A6 57 C2 01 A1 39 04 E4 BC 0D A2 C9 BF 1A [14:24:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 83 E4 47 00 4C 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 38 32 39 10 04 04 00 A4 07 01 00 F4 03 04 00 F7 BE 45 66 B6 04 01 00 00 41 96 3A D9 1D 47 9A C8 [14:24:30]CommunicateWithHost err = 0 [14:24:30]CheckOFDResponse [14:24:30]1017 (14) - 77093643461234 [14:24:30]1041 (16) - 0000000000871829 [14:24:30]1040 (4) - 67492 [14:24:30]1012 (4) - 16.05.2024 08:08 [14:24:30]1206 (1) - 0 [14:24:30]OFD Sender: Remove packet 67492 [14:24:30]ProducePacketName [14:24:30]name=ofd_packets/00067492 [14:24:30]NVStorageDeleteData [14:24:30]Write to MH i2c: 01 00 00 A6 0C B2 [14:24:30]Write i2c OK [14:24:30]MH_I2C_Read... [14:24:30]Read from MH i2c: 01 [14:24:30]MH_I2C_Read... [14:24:30]Read from MH i2c: 01 07 00 [14:24:30]MH_I2C_Read... [14:24:30]Read from MH i2c: 01 07 00 A6 0C 00 00 00 00 00 7A 0C 3F [14:24:30]RasterBufferAndPrint [14:24:30]line [14:24:30]line [14:24:30]line [14:24:30]line [14:24:30]line [14:24:30]written 0, free lines is 3199 [14:24:30]MH_Cut [14:24:30]Write to MH i2c: D1 01 00 AD 0C 01 8B [14:24:30]Write i2c OK [14:24:30]MH_I2C_Read... [14:24:30]Read from MH i2c: D1 [14:24:30]MH_I2C_Read... [14:24:30]Read from MH i2c: D1 01 00 [14:24:30]MH_I2C_Read... [14:24:30]Read from MH i2c: D1 01 00 AD 0C 00 8A [14:24:30]Write to MH i2c: 01 00 00 AE 0C BA [14:24:30]Write i2c OK [14:24:30]MH_I2C_Read... [14:24:31]OFD Sender: No OFD packet to send [14:24:31]*** Cut start [14:24:31]*** Purtial cut [14:24:31]*** Stage 1: CUTSNS_PIN = 1 [14:24:32]Read from MH i2c: 01 [14:24:32]MH_I2C_Read... [14:24:32]*** Stop cut motor [14:24:32]*** Cut end [14:24:32]Read from MH i2c: 01 07 00 [14:24:32]MH_I2C_Read... [14:24:32]Read from MH i2c: 01 07 00 AE 0C 00 00 00 00 00 FF 0F CF [14:24:32]process_action close_receipt done [14:24:32]requested_data is exist [14:24:32]produce_requested_data [14:24:32]requested_item fm.sn is exist - process it [14:24:32]wFMCommunicate request_size=4 [14:24:32]MH_SAM_APDU [14:24:32]CAPDU: 80 11 00 00 [14:24:32]Write to MH i2c: E2 08 00 AF 0C 80 11 00 00 00 00 00 00 35 [14:24:32]Write i2c OK [14:24:32]MH_I2C_Read... [14:24:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:32]Read from MH i2c: E2 [14:24:32]MH_I2C_Read... [14:24:32]Read from MH i2c: E2 17 00 [14:24:32]MH_I2C_Read... [14:24:32]Read from MH i2c: E2 17 00 AF 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 8B [14:24:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:24:32]wFMCommunicate OK [14:24:32]requested_item fd.num is exist - process it [14:24:32]SAM_PROTO_GetFieldsCounters [14:24:32]wFMCommunicate request_size=4 [14:24:32]MH_SAM_APDU [14:24:32]CAPDU: 80 13 00 00 [14:24:32]Write to MH i2c: E2 08 00 B0 0C 80 13 00 00 00 00 00 00 38 [14:24:32]Write i2c OK [14:24:32]MH_I2C_Read... [14:24:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:24:32]Read from MH i2c: E2 [14:24:32]MH_I2C_Read... [14:24:32]Read from MH i2c: E2 62 00 [14:24:32]MH_I2C_Read... [14:24:32]Read from MH i2c: E2 62 00 B0 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 A4 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [14:24: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 A4 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:24:32]wFMCommunicate OK [14:24:32]SAM_PROTO_GetFieldsCounters done [14:24:32]requested_item shift.num is exist - process it [14:24:32]requested_item shift.opened is exist - process it [14:24:32]req_shift_opened [14:24:32]FM_GetShiftState [14:24:32]SAM_PROTO_GetShiftState [14:24:32]wFMCommunicate request_size=4 [14:24:32]MH_SAM_APDU [14:24:32]CAPDU: 80 13 01 00 [14:24:32]Write to MH i2c: E2 08 00 B1 0C 80 13 01 00 00 00 00 00 3A [14:24:32]Write i2c OK [14:24:32]MH_I2C_Read... [14:24:32]Read from MH i2c: E2 [14:24:32]MH_I2C_Read... [14:24:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:32]Read from MH i2c: E2 0E 00 [14:24:32]MH_I2C_Read... [14:24:32]Read from MH i2c: E2 0E 00 B1 0C 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 E6 [14:24:32]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [14:24:32]wFMCommunicate OK [14:24:32]SAM_PROTO_GetShiftState done [14:24:32]FM_GetShiftState done [14:24:32]req_shift_opened done [14:24:32]requested_item shift.open_date is exist - process it [14:24:32]req_shift_open_date [14:24:32]req_shift_open_date done [14:24:32]produce_requested_data done [14:24:32]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67492,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [14:24:32]process_action_free close_receipt [14:24:32]json_value_free [14:24:32]json_value_free done [14:24:32]process_json_proto returns [14:24:32]Send response to host [14:24:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67492,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [14:24:32]free response buf [14:24:32]execute_script done [14:24:32]execute_script returns [14:24:32]free content buf [14:24:32]Sock 8.Close socket [14:24:32]Sock 8.Thread stoped [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]OFD Sender: No OFD packet to send [14:25:41]OFD Sender: No OFD packet to send [14:25:46]OFD Sender: No OFD packet to send [14:25:51]OFD Sender: No OFD packet to send [14:25:56]OFD Sender: No OFD packet to send [14:26:01]OFD Sender: No OFD packet to send [14:26:06]OFD Sender: No OFD packet to send [14:26:11]OFD Sender: No OFD packet to send [14:26:16]OFD Sender: No OFD packet to send [14:26:21]OFD Sender: No OFD packet to send [14:26:26]OFD Sender: No OFD packet to send [14:26:31]OFD Sender: No OFD packet to send [14:26:36]OFD Sender: No OFD packet to send [14:26:41]OFD Sender: No OFD packet to send [14:26:43]accept exits with 9 [14:26:43]New connection [14:26:43]New thread 3067182436 created [14:26:43]Thread 3067039076 joined [14:26:43]Waiting for new connection... [14:26:43] Sock 9.Parse request [14:26:43]Sock 9.Check first char [14:26:43]Sock 9.First char is OK [14:26:43]request: POST /json_proto HTTP/1.0 [14:26:43]Method: POST [14:26:43]URL: /json_proto [14:26:43]Method is POST - this is cgi request [14:26:43]url: /json_proto [14:26:43]query_string will be loaded in cgi processing [14:26:43]execute_cgi json_proto POST (null) [14:26:43]execute_cgi path=json_proto method=POST [14:26:43]POST find Content-Length [14:26:43]Host: 172.17.41.195:8080 [14:26:43]Content-Length: 678 [14:26:43]Content-Type: application/json [14:26:43] [14:26:43]POST finish read [14:26:43]Found Content-Length = 678 [14:26:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507540", "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.80, "quantity" : 10.480, "sum" : 700.06, "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:26:43]execute_script... [14:26:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507540", "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.80, "quantity" : 10.480, "sum" : 700.06, "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:26:43]POST & json_proto [14:26:43]process_json_proto [14:26:43]json parsed OK: [14:26:43]protocol is kg_v1.0 [14:26:43]action value=close_receipt [14:26:43]process_action close_receipt [14:26:43]cmd_close_receipt [14:26:43]MH_GetDate [14:26:43]Write to MH i2c: F0 00 00 B2 0C AD [14:26:43]Write i2c OK [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: F0 [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: F0 09 00 [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: F0 09 00 B2 0C 00 A4 17 46 66 FC 21 6F 64 0D [14:26:43]GetLastDocTimeStamp 1715869469 [14:26:43]current date 1715869604 [14:26:43]FM_GetShiftState [14:26:43]SAM_PROTO_GetShiftState [14:26:43]wFMCommunicate request_size=4 [14:26:43]MH_SAM_APDU [14:26:43]CAPDU: 80 13 01 00 [14:26:43]Write to MH i2c: E2 08 00 B3 0C 80 13 01 00 00 00 00 00 3C [14:26:43]Write i2c OK [14:26:43]MH_I2C_Read... [14:26:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:43]Read from MH i2c: E2 [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: E2 0E 00 [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: E2 0E 00 B3 0C 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 E8 [14:26:43]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [14:26:43]wFMCommunicate OK [14:26:43]SAM_PROTO_GetShiftState done [14:26:43]FM_GetShiftState done [14:26:43]opened in 1715818916 [14:26:43]opened+sec_in_day 1715905316 [14:26:43]quantity*price = 70006 [14:26:43]sum+1 = 70007 [14:26:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.19 НДС 12% : 74.34 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 91 16.05.2024 14:26 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67493 ФПД: 134937109955925 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T142645&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67493&fm=134937109955925&tin=02508201610067®Number=0000000000091845&sum=70000 [14:26:45]StoreToDocumentArchive [14:26:45]shift 357 fd 67493 [14:26:45]save to /storage/0357/doc_00067493 [14:26:45]save last doc name /storage/0357/doc_00067493 to /storage/kkm_last_doc_name [14:26:45]save OK [14:26:45]Clear old archive folders... [14:26:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:26:45]tlvbuf is 017815F0 [14:26:45]SAM_PROTO_ClearQueue [14:26:45]wFMCommunicate request_size=4 [14:26:45]MH_SAM_APDU [14:26:45]CAPDU: 80 09 00 00 [14:26:45]Write to MH i2c: E2 08 00 C0 0C 80 09 00 00 00 00 00 00 3E [14:26:45]Write i2c OK [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 [14:26:45]MH_I2C_Read... [14:26:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:26:45]Read from MH i2c: E2 03 00 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 03 00 C0 0C 00 90 00 40 [14:26:45]RAPDU: 90 00 [14:26:45]wFMCommunicate OK [14:26:45]SAM_PROTO_ClearQueue done [14:26:45]KKMCreateOFDPacket [14:26:45]OFDProtocolAddRootSTLVToBuf [14:26:45]FM_MakeSignedData [14:26:45]FM_MakeSignedData [14:26:45]SAM_PROTO_SignData [14:26:45]wFMCommunicate request_size=4 [14:26:45]MH_SAM_APDU [14:26:45]CAPDU: 80 0D 01 02 [14:26:45]Write to MH i2c: E2 08 00 C1 0C 80 0D 01 02 00 00 00 00 46 [14:26:45]Write i2c OK [14:26:45]MH_I2C_Read... [14:26:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:26:45]Read from MH i2c: E2 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 03 00 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 03 00 C1 0C 00 90 00 41 [14:26:45]RAPDU: 90 00 [14:26:45]wFMCommunicate OK [14:26:45]wFMCommunicate request_size=255 [14:26:45]MH_SAM_APDU [14:26: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 F0 28 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 76 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 5B 00 00 00 F4 03 04 00 A5 17 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A5 07 01 00 35 04 06 00 7A [14:26:45]Write to MH i2c: E2 02 01 C2 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 F0 28 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 76 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 5B 00 00 00 F4 03 04 00 A5 17 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A5 07 01 00 35 04 06 00 7A 00 00 0F [14:26:45]Write i2c OK [14:26:45]MH_I2C_Read... [14:26:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:45]Read from MH i2c: E2 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 03 00 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 03 00 C2 0C 00 90 00 42 [14:26:45]RAPDU: 90 00 [14:26:45]wFMCommunicate OK [14:26:45]wFMCommunicate request_size=10 [14:26:45]MH_SAM_APDU [14:26:45]CAPDU: 80 0D 02 02 05 B9 7E 81 85 55 [14:26:45]Write to MH i2c: E2 0D 00 C3 0C 80 0D 02 02 05 00 B9 7E 81 85 55 00 00 E5 [14:26:45]Write i2c OK [14:26:45]MH_I2C_Read... [14:26:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:45]Read from MH i2c: E2 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 03 00 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 03 00 C3 0C 00 90 00 43 [14:26:45]RAPDU: 90 00 [14:26:45]wFMCommunicate OK [14:26:45]wFMCommunicate request_size=4 [14:26:45]MH_SAM_APDU [14:26:45]CAPDU: 80 0D 03 02 [14:26:45]Write to MH i2c: E2 08 00 C4 0C 80 0D 03 02 00 00 00 00 4B [14:26:45]Write i2c OK [14:26:45]MH_I2C_Read... [14:26:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:26:45]Read from MH i2c: E2 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 0B 00 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 0B 00 C4 0C 00 08 B9 E1 06 4C 76 A1 DD 90 00 34 [14:26:45]RAPDU: 08 B9 E1 06 4C 76 A1 DD 90 00 [14:26:45]wFMCommunicate OK [14:26:45]SAM_PROTO_SignData done [14:26:45]FM_MakeSignedData done [14:26:45]CreateOFDProtocolMessage [14:26:45]wFMCommunicate request_size=4 [14:26:45]MH_SAM_APDU [14:26:45]CAPDU: 80 11 00 00 [14:26:45]Write to MH i2c: E2 08 00 C5 0C 80 11 00 00 00 00 00 00 4B [14:26:45]Write i2c OK [14:26:45]MH_I2C_Read... [14:26:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:45]Read from MH i2c: E2 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 17 00 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 17 00 C5 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A1 [14:26:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:26:45]wFMCommunicate OK [14:26:45]CreateOFDProtocolMessage done [14:26:45]OFDSenderStorePacket 67493 [14:26:45]StoreOFDPacket docnum=67493 [14:26:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 6B 63 07 01 DE D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 28 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 76 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 5B 00 00 00 F4 03 04 00 A5 17 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A5 07 01 00 35 04 06 00 7A B9 7E 81 85 55 08 B9 E1 06 4C 76 A1 DD [14:26:45]CheckFolder [14:26:45]dirname=/storage/ofd_packets [14:26:45]CheckFolder done [14:26:45]ProducePacketName [14:26:45]name=ofd_packets/00067493 [14:26:45]NVStorageSaveData ofd_packets/00067493 [14:26:45]File name is /storage/ofd_packets/00067493 [14:26:45]Write 301 bytes [14:26:45]NVStorageSaveData done [14:26:45]OFDSenderStorePacket done [14:26:45]KKMCreateOFDPacket done [14:26:45]NVStorageSaveData kkm_last_timestamp [14:26:45]File name is /storage/kkm_last_timestamp [14:26:45]Write 4 bytes [14:26:45]NVStorageSaveData done [14:26:45]ExternCall_PrintAddStr [14:26:45]wPrintStart [14:26:45]Write to MH i2c: 01 00 00 C6 0C D2 [14:26:45]Write i2c OK [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: 01 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: 01 07 00 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: 01 07 00 C6 0C 00 00 00 00 00 FF 0F E7 [14:26:45]RasterBufferAndPrint [14:26:45]line Счет N : (1)507540 [14:26:45]line ИНН: 02508201610067 [14:26:45]line Контрольно-Кассовый Чек [14:26:45]line ПРОДАЖА [14:26:45]line ТРК (МРК, ГНК) : 33 [14:26:45]line Товар: 2710124130 [14:26:45]line Аи-92-К-5 [14:26:45]line 10.480 * 66.80 [14:26:45]line = 700.06 [14:26:45]line НДС 12% НСП 1% [14:26:45]line > о реализуемом товаре [14:26:45]line ОКРУГЛЕНИЕ: -0.06 [14:26:45]line ИТОГО: 700.00 [14:26:45]line Внесено: 700.00 [14:26:45]line СДАЧА: 0.00 [14:26:45]line НСП 1% : 6.19 [14:26:45]line НДС 12% : 74.34 [14:26:45]line Наличными: 700.00 [14:26:45]line Безнал.: 0.00 [14:26:45]line Место: АЗС № 91 "Партнер Нефть" [14:26:45]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [14:26:45]line СНО: Общий режим [14:26:45]line Чек 91 16.05.2024 14:26 [14:26:45]line Смена: 357 ФФД: 1.0 [14:26:45]line ЗНМ: 0300000119 [14:26:45]line РНМ: 0000000000091845 [14:26:45]line Версия ККМ: 001 [14:26:45]line ФМ: 0000000000871829 [14:26:45]line ФД: 67493 [14:26:45]line ФПД: 134937109955925 [14:26:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T142645&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67493&fm=134937109955925&tin=02508201610067®Number=0000000000091845&sum=70000 [14:26:45]OFD Sender: Processing packet 67493 [packets to send 35, broken 34] [14:26:45]ProducePacketName [14:26:45]name=ofd_packets/00067493 [14:26:45]OFD Sender: To server: pG, [14:26:45]CommunicateWithHost lk.salyk.kg:30040 [14:26:45]ConnectInit lk.salyk.kg [14:26:45]written 0, free lines is 4095 [14:26:45]Connected sock=10 [14:26:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 6B 63 07 01 DE D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 28 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 76 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 5B 00 00 00 F4 03 04 00 A5 17 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A5 07 01 00 35 04 06 00 7A B9 7E 81 85 55 08 B9 E1 06 4C 76 A1 DD [14: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 38 32 39 4F 00 00 00 80 AC 47 00 6A 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A5 07 01 00 F4 03 04 00 7F BF 45 66 B6 04 01 00 00 24 2E 7E 56 3A E7 95 E2 [14:26:46]CommunicateWithHost err = 0 [14:26:46]CheckOFDResponse [14:26:46]1017 (14) - 77093643461234 [14:26:46]1041 (16) - 0000000000871829 [14:26:46]1040 (4) - 67493 [14:26:46]1012 (4) - 16.05.2024 08:10 [14:26:46]1206 (1) - 0 [14:26:46]OFD Sender: Remove packet 67493 [14:26:46]ProducePacketName [14:26:46]name=ofd_packets/00067493 [14:26:46]NVStorageDeleteData [14:26:46]Write to MH i2c: 01 00 00 F0 0C FC [14:26:46]Write i2c OK [14:26:46]MH_I2C_Read... [14:26:46]Read from MH i2c: 01 [14:26:46]MH_I2C_Read... [14:26:46]Read from MH i2c: 01 07 00 [14:26:46]MH_I2C_Read... [14:26:46]Read from MH i2c: 01 07 00 F0 0C 00 00 00 00 00 C5 0C D4 [14:26:46]RasterBufferAndPrint [14:26:46]line [14:26:46]line [14:26:46]line [14:26:46]line [14:26:46]line [14:26:46]written 0, free lines is 3275 [14:26:46]MH_Cut [14:26:46]Write to MH i2c: D1 01 00 F7 0C 01 D5 [14:26:46]Write i2c OK [14:26:46]MH_I2C_Read... [14:26:46]Read from MH i2c: D1 [14:26:46]MH_I2C_Read... [14:26:46]Read from MH i2c: D1 01 00 [14:26:46]MH_I2C_Read... [14:26:46]Read from MH i2c: D1 01 00 F7 0C 00 D4 [14:26:46]Write to MH i2c: 01 00 00 F8 0C 04 [14:26:46]Write i2c OK [14:26:46]MH_I2C_Read... [14:26:46]OFD Sender: No OFD packet to send [14:26:47]*** Cut start [14:26:47]*** Purtial cut [14:26:47]*** CUTSNS_PIN = 0 [14:26:47]*** Stage 1: CUTSNS_PIN = 1 [14:26:49]Read from MH i2c: 01 [14:26:49]MH_I2C_Read... [14:26:49]*** Stop cut motor [14:26:49]*** Cut end [14:26:49]Read from MH i2c: 01 07 00 [14:26:49]MH_I2C_Read... [14:26:49]Read from MH i2c: 01 07 00 F8 0C 00 00 00 00 00 FF 0F 19 [14:26:49]process_action close_receipt done [14:26:49]requested_data is exist [14:26:49]produce_requested_data [14:26:49]requested_item fm.sn is exist - process it [14:26:49]wFMCommunicate request_size=4 [14:26:49]MH_SAM_APDU [14:26:49]CAPDU: 80 11 00 00 [14:26:49]Write to MH i2c: E2 08 00 F9 0C 80 11 00 00 00 00 00 00 7F [14:26:49]Write i2c OK [14:26:49]MH_I2C_Read... [14:26:49]Read from MH i2c: E2 [14:26:49]MH_I2C_Read... [14:26:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:49]Read from MH i2c: E2 17 00 [14:26:49]MH_I2C_Read... [14:26:49]Read from MH i2c: E2 17 00 F9 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D5 [14:26:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:26:49]wFMCommunicate OK [14:26:49]requested_item fd.num is exist - process it [14:26:49]SAM_PROTO_GetFieldsCounters [14:26:49]wFMCommunicate request_size=4 [14:26:49]MH_SAM_APDU [14:26:49]CAPDU: 80 13 00 00 [14:26:49]Write to MH i2c: E2 08 00 FA 0C 80 13 00 00 00 00 00 00 82 [14:26:49]Write i2c OK [14:26:49]MH_I2C_Read... [14:26:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:26:49]Read from MH i2c: E2 [14:26:49]MH_I2C_Read... [14:26:49]Read from MH i2c: E2 62 00 [14:26:49]MH_I2C_Read... [14:26:49]Read from MH i2c: E2 62 00 FA 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 A5 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 CC [14:26:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 A5 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:26:49]wFMCommunicate OK [14:26:49]SAM_PROTO_GetFieldsCounters done [14:26:49]requested_item shift.num is exist - process it [14:26:49]requested_item shift.opened is exist - process it [14:26:49]req_shift_opened [14:26:49]FM_GetShiftState [14:26:49]SAM_PROTO_GetShiftState [14:26:49]wFMCommunicate request_size=4 [14:26:49]MH_SAM_APDU [14:26:49]CAPDU: 80 13 01 00 [14:26:49]Write to MH i2c: E2 08 00 FB 0C 80 13 01 00 00 00 00 00 84 [14:26:49]Write i2c OK [14:26:49]MH_I2C_Read... [14:26:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:49]Read from MH i2c: E2 [14:26:49]MH_I2C_Read... [14:26:49]Read from MH i2c: E2 0E 00 [14:26:49]MH_I2C_Read... [14:26:49]Read from MH i2c: E2 0E 00 FB 0C 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 30 [14:26:49]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [14:26:49]wFMCommunicate OK [14:26:49]SAM_PROTO_GetShiftState done [14:26:49]FM_GetShiftState done [14:26:49]req_shift_opened done [14:26:49]requested_item shift.open_date is exist - process it [14:26:49]req_shift_open_date [14:26:49]req_shift_open_date done [14:26:49]produce_requested_data done [14:26:49]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67493,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [14:26:49]process_action_free close_receipt [14:26:49]json_value_free [14:26:49]json_value_free done [14:26:49]process_json_proto returns [14:26:49]Send response to host [14:26:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67493,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [14:26:49]free response buf [14:26:49]execute_script done [14:26:49]execute_script returns [14:26:49]free content buf [14:26:49]Sock 9.Close socket [14:26:49]Sock 9.Thread stoped [14:26:51]OFD Sender: No OFD packet to send [14:26:56]OFD Sender: No OFD packet to send [14:27:01]OFD Sender: No OFD packet to send [14:27:06]OFD Sender: No OFD packet to send [14:27:11]accept exits with 8 [14:27:11]New connection [14:27:11]New thread 3067039076 created [14:27:11]Thread 3067182436 joined [14:27:11]Waiting for new connection... [14:27:11] Sock 8.Parse request [14:27:11]Sock 8.Check first char [14:27:11]Sock 8.First char is OK [14:27:11]request: POST /json_proto HTTP/1.0 [14:27:11]Method: POST [14:27:11]URL: /json_proto [14:27:11]Method is POST - this is cgi request [14:27:11]url: /json_proto [14:27:11]query_string will be loaded in cgi processing [14:27:11]execute_cgi json_proto POST (null) [14:27:11]execute_cgi path=json_proto method=POST [14:27:11]POST find Content-Length [14:27:11]Host: 172.17.41.195:8080 [14:27:11]Content-Length: 677 [14:27:11]Content-Type: application/json [14:27:11] [14:27:11]POST finish read [14:27:11]Found Content-Length = 677 [14:27:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507541", "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.80, "quantity" : 8.990, "sum" : 600.53, "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:27:11]execute_script... [14:27: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)507541", "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.80, "quantity" : 8.990, "sum" : 600.53, "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:27:11]POST & json_proto [14:27:11]process_json_proto [14:27:11]json parsed OK: [14:27:11]protocol is kg_v1.0 [14:27:11]action value=close_receipt [14:27:11]process_action close_receipt [14:27:11]cmd_close_receipt [14:27:11]MH_GetDate [14:27:11]Write to MH i2c: F0 00 00 FC 0C F7 [14:27:11]Write i2c OK [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: F0 [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: F0 09 00 [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: F0 09 00 FC 0C 00 C0 17 46 66 FC 21 6F 64 73 [14:27:11]GetLastDocTimeStamp 1715869605 [14:27:11]current date 1715869632 [14:27:11]FM_GetShiftState [14:27:11]SAM_PROTO_GetShiftState [14:27:11]wFMCommunicate request_size=4 [14:27:11]MH_SAM_APDU [14:27:11]CAPDU: 80 13 01 00 [14:27:11]Write to MH i2c: E2 08 00 FD 0C 80 13 01 00 00 00 00 00 86 [14:27:11]Write i2c OK [14:27:11]MH_I2C_Read... [14:27:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:11]Read from MH i2c: E2 [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: E2 0E 00 [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: E2 0E 00 FD 0C 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 32 [14:27:11]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [14:27:11]wFMCommunicate OK [14:27:11]SAM_PROTO_GetShiftState done [14:27:11]FM_GetShiftState done [14:27:11]opened in 1715818916 [14:27:11]opened+sec_in_day 1715905316 [14:27:11]quantity*price = 60053 [14:27:11]sum+1 = 60054 [14:27:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 92 16.05.2024 14:27 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67494 ФПД: 236950916214479 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T142712&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67494&fm=236950916214479&tin=02508201610067®Number=0000000000091845&sum=60000 [14:27:12]StoreToDocumentArchive [14:27:12]shift 357 fd 67494 [14:27:12]save to /storage/0357/doc_00067494 [14:27:12]save last doc name /storage/0357/doc_00067494 to /storage/kkm_last_doc_name [14:27:12]save OK [14:27:12]Clear old archive folders... [14:27:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:27:12]tlvbuf is 017DE890 [14:27:12]SAM_PROTO_ClearQueue [14:27:12]wFMCommunicate request_size=4 [14:27:12]MH_SAM_APDU [14:27:12]CAPDU: 80 09 00 00 [14:27:12]Write to MH i2c: E2 08 00 0A 0D 80 09 00 00 00 00 00 00 89 [14:27:12]Write i2c OK [14:27:12]MH_I2C_Read... [14:27:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:27:12]Read from MH i2c: E2 [14:27:12]MH_I2C_Read... [14:27:12]Read from MH i2c: E2 03 00 [14:27:12]MH_I2C_Read... [14:27:12]Read from MH i2c: E2 03 00 0A 0D 00 90 00 8B [14:27:12]RAPDU: 90 00 [14:27:12]wFMCommunicate OK [14:27:12]SAM_PROTO_ClearQueue done [14:27:12]KKMCreateOFDPacket [14:27:12]OFDProtocolAddRootSTLVToBuf [14:27:12]FM_MakeSignedData [14:27:12]FM_MakeSignedData [14:27:12]SAM_PROTO_SignData [14:27:12]wFMCommunicate request_size=4 [14:27:12]MH_SAM_APDU [14:27:12]CAPDU: 80 0D 01 02 [14:27:12]Write to MH i2c: E2 08 00 0B 0D 80 0D 01 02 00 00 00 00 91 [14:27:12]Write i2c OK [14:27:12]MH_I2C_Read... [14:27:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:27:12]Read from MH i2c: E2 [14:27:12]MH_I2C_Read... [14:27:12]Read from MH i2c: E2 03 00 [14:27:12]MH_I2C_Read... [14:27:12]Read from MH i2c: E2 03 00 0B 0D 00 90 00 8C [14:27:12]RAPDU: 90 00 [14:27:12]wFMCommunicate OK [14:27:12]wFMCommunicate request_size=255 [14:27:12]MH_SAM_APDU [14:27: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 1E 23 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 95 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 5C 00 00 00 F4 03 04 00 C0 17 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A6 07 01 00 35 04 06 00 D7 [14:27:12]Write to MH i2c: E2 02 01 0C 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 1E 23 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 95 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 5C 00 00 00 F4 03 04 00 C0 17 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A6 07 01 00 35 04 06 00 D7 00 00 06 [14:27:12]Write i2c OK [14:27:12]MH_I2C_Read... [14:27:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:13]Read from MH i2c: E2 [14:27:13]MH_I2C_Read... [14:27:13]Read from MH i2c: E2 03 00 [14:27:13]MH_I2C_Read... [14:27:13]Read from MH i2c: E2 03 00 0C 0D 00 90 00 8D [14:27:13]RAPDU: 90 00 [14:27:13]wFMCommunicate OK [14:27:13]wFMCommunicate request_size=10 [14:27:13]MH_SAM_APDU [14:27:13]CAPDU: 80 0D 02 02 05 81 6F 30 AE CF [14:27:13]Write to MH i2c: E2 0D 00 0D 0D 80 0D 02 02 05 00 81 6F 30 AE CF 00 00 3B [14:27:13]Write i2c OK [14:27:13]MH_I2C_Read... [14:27:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:13]Read from MH i2c: E2 [14:27:13]MH_I2C_Read... [14:27:13]Read from MH i2c: E2 03 00 [14:27:13]MH_I2C_Read... [14:27:13]Read from MH i2c: E2 03 00 0D 0D 00 90 00 8E [14:27:13]RAPDU: 90 00 [14:27:13]wFMCommunicate OK [14:27:13]wFMCommunicate request_size=4 [14:27:13]MH_SAM_APDU [14:27:13]CAPDU: 80 0D 03 02 [14:27:13]Write to MH i2c: E2 08 00 0E 0D 80 0D 03 02 00 00 00 00 96 [14:27:13]Write i2c OK [14:27:13]MH_I2C_Read... [14:27:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:27:13]Read from MH i2c: E2 [14:27:13]MH_I2C_Read... [14:27:13]Read from MH i2c: E2 0B 00 [14:27:13]MH_I2C_Read... [14:27:13]Read from MH i2c: E2 0B 00 0E 0D 00 88 99 50 7C 23 D4 2A 1B 90 00 C0 [14:27:13]RAPDU: 88 99 50 7C 23 D4 2A 1B 90 00 [14:27:13]wFMCommunicate OK [14:27:13]SAM_PROTO_SignData done [14:27:13]FM_MakeSignedData done [14:27:13]CreateOFDProtocolMessage [14:27:13]wFMCommunicate request_size=4 [14:27:13]MH_SAM_APDU [14:27:13]CAPDU: 80 11 00 00 [14:27:13]Write to MH i2c: E2 08 00 0F 0D 80 11 00 00 00 00 00 00 96 [14:27:13]Write i2c OK [14:27:13]MH_I2C_Read... [14:27:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:13]Read from MH i2c: E2 [14:27:13]MH_I2C_Read... [14:27:13]Read from MH i2c: E2 17 00 [14:27:13]MH_I2C_Read... [14:27:13]Read from MH i2c: E2 17 00 0F 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 EC [14:27:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:27:13]wFMCommunicate OK [14:27:13]CreateOFDProtocolMessage done [14:27:13]OFDSenderStorePacket 67494 [14:27:13]StoreOFDPacket docnum=67494 [14:27:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 74 64 07 01 55 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 1E 23 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 95 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 5C 00 00 00 F4 03 04 00 C0 17 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A6 07 01 00 35 04 06 00 D7 81 6F 30 AE CF 88 99 50 7C 23 D4 2A 1B [14:27:13]CheckFolder [14:27:13]dirname=/storage/ofd_packets [14:27:13]CheckFolder done [14:27:13]ProducePacketName [14:27:13]name=ofd_packets/00067494 [14:27:13]NVStorageSaveData ofd_packets/00067494 [14:27:13]File name is /storage/ofd_packets/00067494 [14:27:13]Write 301 bytes [14:27:13]NVStorageSaveData done [14:27:13]OFDSenderStorePacket done [14:27:13]KKMCreateOFDPacket done [14:27:13]NVStorageSaveData kkm_last_timestamp [14:27:13]File name is /storage/kkm_last_timestamp [14:27:13]Write 4 bytes [14:27:13]NVStorageSaveData done [14:27:13]ExternCall_PrintAddStr [14:27:13]wPrintStart [14:27:13]Write to MH i2c: 01 00 00 10 0D 1D [14:27:13]Write i2c OK [14:27:13]MH_I2C_Read... [14:27:13]Read from MH i2c: 01 [14:27:13]MH_I2C_Read... [14:27:13]Read from MH i2c: 01 07 00 [14:27:13]MH_I2C_Read... [14:27:13]Read from MH i2c: 01 07 00 10 0D 00 00 00 00 00 FF 0F 32 [14:27:13]RasterBufferAndPrint [14:27:13]line Счет N : (1)507541 [14:27:13]line ИНН: 02508201610067 [14:27:13]line Контрольно-Кассовый Чек [14:27:13]line ПРОДАЖА [14:27:13]line ТРК (МРК, ГНК) : 43 [14:27:13]line Товар: 2710124130 [14:27:13]line Аи-92-К-5 [14:27:13]line 8.990 * 66.80 [14:27:13]line = 600.53 [14:27:13]line НДС 12% НСП 1% [14:27:13]line > о реализуемом товаре [14:27:13]line ОКРУГЛЕНИЕ: -0.53 [14:27:13]line ИТОГО: 600.00 [14:27:13]line Внесено: 600.00 [14:27:13]line СДАЧА: 0.00 [14:27:13]line НСП 1% : 5.31 [14:27:13]line НДС 12% : 63.77 [14:27:13]line Наличными: 600.00 [14:27:13]line Безнал.: 0.00 [14:27:13]line Место: АЗС № 91 "Партнер Нефть" [14:27:13]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [14:27:13]line СНО: Общий режим [14:27:13]line Чек 92 16.05.2024 14:27 [14:27:13]line Смена: 357 ФФД: 1.0 [14:27:13]line ЗНМ: 0300000119 [14:27:13]line РНМ: 0000000000091845 [14:27:13]line Версия ККМ: 001 [14:27:13]line ФМ: 0000000000871829 [14:27:13]line ФД: 67494 [14:27:13]line ФПД: 236950916214479 [14:27:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T142712&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67494&fm=236950916214479&tin=02508201610067®Number=0000000000091845&sum=60000 [14:27:13]OFD Sender: Processing packet 67494 [packets to send 35, broken 34] [14:27:13]ProducePacketName [14:27:13]name=ofd_packets/00067494 [14:27:13]OFD Sender: To server: pG, [14:27:13]CommunicateWithHost lk.salyk.kg:30040 [14:27:13]ConnectInit lk.salyk.kg [14:27:13]written 0, free lines is 4095 [14:27:13]Connected sock=10 [14:27: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 38 32 39 0F 01 00 00 74 64 07 01 55 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 1E 23 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 95 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 5C 00 00 00 F4 03 04 00 C0 17 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A6 07 01 00 35 04 06 00 D7 81 6F 30 AE CF 88 99 50 7C 23 D4 2A 1B [14:27:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 68 3C 47 00 81 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 38 32 39 10 04 04 00 A6 07 01 00 F4 03 04 00 9B BF 45 66 B6 04 01 00 00 6D 6F 0E B5 0F 0C B6 57 [14:27:13]CommunicateWithHost err = 0 [14:27:13]CheckOFDResponse [14:27:13]1017 (14) - 77093643461234 [14:27:13]1041 (16) - 0000000000871829 [14:27:13]1040 (4) - 67494 [14:27:13]1012 (4) - 16.05.2024 08:11 [14:27:13]1206 (1) - 0 [14:27:13]OFD Sender: Remove packet 67494 [14:27:13]ProducePacketName [14:27:13]name=ofd_packets/00067494 [14:27:13]NVStorageDeleteData [14:27:14]Write to MH i2c: 01 00 00 3A 0D 47 [14:27:14]Write i2c OK [14:27:14]MH_I2C_Read... [14:27:14]Read from MH i2c: 01 [14:27:14]MH_I2C_Read... [14:27:14]Read from MH i2c: 01 07 00 [14:27:14]MH_I2C_Read... [14:27:14]Read from MH i2c: 01 07 00 3A 0D 00 00 00 00 00 C8 0C 22 [14:27:14]RasterBufferAndPrint [14:27:14]line [14:27:14]line [14:27:14]line [14:27:14]line [14:27:14]line [14:27:14]written 0, free lines is 3278 [14:27:14]MH_Cut [14:27:14]Write to MH i2c: D1 01 00 41 0D 01 20 [14:27:14]Write i2c OK [14:27:14]MH_I2C_Read... [14:27:14]Read from MH i2c: D1 [14:27:14]MH_I2C_Read... [14:27:14]Read from MH i2c: D1 01 00 [14:27:14]MH_I2C_Read... [14:27:14]Read from MH i2c: D1 01 00 41 0D 00 1F [14:27:14]Write to MH i2c: 01 00 00 42 0D 4F [14:27:14]Write i2c OK [14:27:14]MH_I2C_Read... [14:27:14]OFD Sender: No OFD packet to send [14:27:14]*** Cut start [14:27:14]*** Purtial cut [14:27:14]*** Stage 1: CUTSNS_PIN = 1 [14:27:15]Read from MH i2c: 01 [14:27:15]MH_I2C_Read... [14:27:15]*** Stop cut motor [14:27:15]*** Cut end [14:27:15]Read from MH i2c: 01 07 00 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: 01 07 00 42 0D 00 00 00 00 00 FF 0F 64 [14:27:15]process_action close_receipt done [14:27:15]requested_data is exist [14:27:15]produce_requested_data [14:27:15]requested_item fm.sn is exist - process it [14:27:15]wFMCommunicate request_size=4 [14:27:15]MH_SAM_APDU [14:27:15]CAPDU: 80 11 00 00 [14:27:15]Write to MH i2c: E2 08 00 43 0D 80 11 00 00 00 00 00 00 CA [14:27:15]Write i2c OK [14:27:15]MH_I2C_Read... [14:27:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:15]Read from MH i2c: E2 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: E2 17 00 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: E2 17 00 43 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 20 [14:27:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:27:15]wFMCommunicate OK [14:27:15]requested_item fd.num is exist - process it [14:27:15]SAM_PROTO_GetFieldsCounters [14:27:15]wFMCommunicate request_size=4 [14:27:15]MH_SAM_APDU [14:27:15]CAPDU: 80 13 00 00 [14:27:15]Write to MH i2c: E2 08 00 44 0D 80 13 00 00 00 00 00 00 CD [14:27:15]Write i2c OK [14:27:15]MH_I2C_Read... [14:27:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:27:15]Read from MH i2c: E2 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: E2 62 00 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: E2 62 00 44 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 A6 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [14:27: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 A6 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:27:15]wFMCommunicate OK [14:27:15]SAM_PROTO_GetFieldsCounters done [14:27:15]requested_item shift.num is exist - process it [14:27:15]requested_item shift.opened is exist - process it [14:27:15]req_shift_opened [14:27:15]FM_GetShiftState [14:27:15]SAM_PROTO_GetShiftState [14:27:15]wFMCommunicate request_size=4 [14:27:15]MH_SAM_APDU [14:27:15]CAPDU: 80 13 01 00 [14:27:15]Write to MH i2c: E2 08 00 45 0D 80 13 01 00 00 00 00 00 CF [14:27:15]Write i2c OK [14:27:15]MH_I2C_Read... [14:27:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:15]Read from MH i2c: E2 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: E2 0E 00 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: E2 0E 00 45 0D 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 7B [14:27:15]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [14:27:15]wFMCommunicate OK [14:27:15]SAM_PROTO_GetShiftState done [14:27:15]FM_GetShiftState done [14:27:15]req_shift_opened done [14:27:15]requested_item shift.open_date is exist - process it [14:27:15]req_shift_open_date [14:27:15]req_shift_open_date done [14:27:15]produce_requested_data done [14:27:15]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67494,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [14:27:15]process_action_free close_receipt [14:27:15]json_value_free [14:27:15]json_value_free done [14:27:15]process_json_proto returns [14:27:15]Send response to host [14:27:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67494,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [14:27:15]free response buf [14:27:15]execute_script done [14:27:15]execute_script returns [14:27:15]free content buf [14:27:15]Sock 8.Close socket [14:27:15]Sock 8.Thread stoped [14:27:19]OFD Sender: No OFD packet to send [14:27:24]OFD Sender: No OFD packet to send [14:27:29]OFD Sender: No OFD packet to send [14:27:34]OFD Sender: No OFD packet to send [14:27:39]OFD Sender: No OFD packet to send [14:27:44]OFD Sender: No OFD packet to send [14:27:49]OFD Sender: No OFD packet to send [14:27:54]OFD Sender: No OFD packet to send [14:27:59]OFD Sender: No OFD packet to send [14:28:04]OFD Sender: No OFD packet to send [14:28:09]OFD Sender: No OFD packet to send [14:28:14]OFD Sender: No OFD packet to send [14:28:19]OFD Sender: No OFD packet to send [14:28:24]OFD Sender: No OFD packet to send [14:28:29]OFD Sender: No OFD packet to send [14:28:34]OFD Sender: No OFD packet to send [14:28:39]OFD Sender: No OFD packet to send [14:28:44]OFD Sender: No OFD packet to send [14:28:49]OFD Sender: No OFD packet to send [14:28:54]OFD Sender: No OFD packet to send [14:28:59]OFD Sender: No OFD packet to send [14:29:04]OFD Sender: No OFD packet to send [14:29:09]OFD Sender: No OFD packet to send [14:29:14]OFD Sender: No OFD packet to send [14:29:19]OFD Sender: No OFD packet to send [14:29:24]OFD Sender: No OFD packet to send [14:29:29]OFD Sender: No OFD packet to send [14:29:34]OFD Sender: No OFD packet to send [14:29:39]OFD Sender: No OFD packet to send [14:29:44]OFD Sender: No OFD packet to send [14:29:49]OFD Sender: No OFD packet to send [14:29:54]OFD Sender: No OFD packet to send [14:29:59]OFD Sender: No OFD packet to send [14:30:04]OFD Sender: No OFD packet to send [14:30:09]OFD Sender: No OFD packet to send [14:30:14]OFD Sender: No OFD packet to send [14:30:19]OFD Sender: No OFD packet to send [14:30:24]OFD Sender: No OFD packet to send [14:30:29]OFD Sender: No OFD packet to send [14:30:34]OFD Sender: No OFD packet to send [14:30:39]OFD Sender: No OFD packet to send [14:30:44]OFD Sender: No OFD packet to send [14:30:49]OFD Sender: No OFD packet to send [14:30:54]OFD Sender: No OFD packet to send [14:30:59]OFD Sender: No OFD packet to send [14:31:04]OFD Sender: No OFD packet to send [14:31:09]OFD Sender: No OFD packet to send [14:31:14]OFD Sender: No OFD packet to send [14:31:19]OFD Sender: No OFD packet to send [14:31:24]OFD Sender: No OFD packet to send [14:31:29]OFD Sender: No OFD packet to send [14:31:34]OFD Sender: No OFD packet to send [14:31:39]OFD Sender: No OFD packet to send [14:31:44]OFD Sender: No OFD packet to send [14:31:49]OFD Sender: No OFD packet to send [14:31:54]OFD Sender: No OFD packet to send [14:31:59]OFD Sender: No OFD packet to send [14:32:04]OFD Sender: No OFD packet to send [14:32:09]OFD Sender: No OFD packet to send [14:32:14]OFD Sender: No OFD packet to send [14:32:19]OFD Sender: No OFD packet to send [14:32:24]OFD Sender: No OFD packet to send [14:32:29]OFD Sender: No OFD packet to send [14:32:34]OFD Sender: No OFD packet to send [14:32:39]OFD Sender: No OFD packet to send [14:32:44]OFD Sender: No OFD packet to send [14:32:49]OFD Sender: No OFD packet to send [14:32:54]OFD Sender: No OFD packet to send [14:32:59]OFD Sender: No OFD packet to send [14:33:04]OFD Sender: No OFD packet to send [14:33:09]OFD Sender: No OFD packet to send [14:33:14]OFD Sender: No OFD packet to send [14:33:19]OFD Sender: No OFD packet to send [14:33:24]OFD Sender: No OFD packet to send [14:33:29]OFD Sender: No OFD packet to send [14:33:34]OFD Sender: No OFD packet to send [14:33:39]OFD Sender: No OFD packet to send [14:33:44]OFD Sender: No OFD packet to send [14:33:49]OFD Sender: No OFD packet to send [14:33:54]OFD Sender: No OFD packet to send [14:33:59]OFD Sender: No OFD packet to send [14:34:04]OFD Sender: No OFD packet to send [14:34:09]OFD Sender: No OFD packet to send [14:34:14]OFD Sender: No OFD packet to send [14:34:19]OFD Sender: No OFD packet to send [14:34:24]OFD Sender: No OFD packet to send [14:34:29]OFD Sender: No OFD packet to send [14:34:34]OFD Sender: No OFD packet to send [14:34:39]OFD Sender: No OFD packet to send [14:34:44]OFD Sender: No OFD packet to send [14:34:49]OFD Sender: No OFD packet to send [14:34:54]OFD Sender: No OFD packet to send [14:34:59]OFD Sender: No OFD packet to send [14:35:04]OFD Sender: No OFD packet to send [14:35:09]OFD Sender: No OFD packet to send [14:35:14]OFD Sender: No OFD packet to send [14:35:19]OFD Sender: No OFD packet to send [14:35:24]OFD Sender: No OFD packet to send [14:35:29]OFD Sender: No OFD packet to send [14:35:34]OFD Sender: No OFD packet to send [14:35:39]OFD Sender: No OFD packet to send [14:35:44]OFD Sender: No OFD packet to send [14:35:49]OFD Sender: No OFD packet to send [14:35:54]OFD Sender: No OFD packet to send [14:35:59]OFD Sender: No OFD packet to send [14:36:04]OFD Sender: No OFD packet to send [14:36:06]accept exits with 9 [14:36:06]New connection [14:36:06]New thread 3067182436 created [14:36:06]Thread 3067039076 joined [14:36:06]Waiting for new connection... [14:36:06] Sock 9.Parse request [14:36:06]Sock 9.Check first char [14:36:06]Sock 9.First char is OK [14:36:06]request: POST /json_proto HTTP/1.0 [14:36:06]Method: POST [14:36:06]URL: /json_proto [14:36:06]Method is POST - this is cgi request [14:36:06]url: /json_proto [14:36:06]query_string will be loaded in cgi processing [14:36:06]execute_cgi json_proto POST (null) [14:36:06]execute_cgi path=json_proto method=POST [14:36:06]POST find Content-Length [14:36:06]Host: 172.17.41.195:8080 [14:36:06]Content-Length: 800 [14:36:06]Content-Type: application/json [14:36:06] [14:36:06]POST finish read [14:36:06]Found Content-Length = 800 [14:36:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507542", "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" : 74.70, "quantity" : 66.940, "sum" : 5000.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 5000.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:06]execute_script... [14:36: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)507542", "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" : 74.70, "quantity" : 66.940, "sum" : 5000.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 5000.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:06]POST & json_proto [14:36:06]process_json_proto [14:36:06]json parsed OK: [14:36:06]protocol is kg_v1.0 [14:36:06]action value=close_receipt [14:36:06]process_action close_receipt [14:36:06]cmd_close_receipt [14:36:06]MH_GetDate [14:36:06]Write to MH i2c: F0 00 00 46 0D 42 [14:36:06]Write i2c OK [14:36:06]MH_I2C_Read... [14:36:06]Read from MH i2c: F0 [14:36:06]MH_I2C_Read... [14:36:06]Read from MH i2c: F0 09 00 [14:36:06]MH_I2C_Read... [14:36:06]Read from MH i2c: F0 09 00 46 0D 00 D7 19 46 66 FC 21 6F 64 D7 [14:36:06]GetLastDocTimeStamp 1715869632 [14:36:06]current date 1715870167 [14:36:06]FM_GetShiftState [14:36:06]SAM_PROTO_GetShiftState [14:36:06]wFMCommunicate request_size=4 [14:36:06]MH_SAM_APDU [14:36:06]CAPDU: 80 13 01 00 [14:36:06]Write to MH i2c: E2 08 00 47 0D 80 13 01 00 00 00 00 00 D1 [14:36:06]Write i2c OK [14:36:06]MH_I2C_Read... [14:36:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:06]Read from MH i2c: E2 [14:36:06]MH_I2C_Read... [14:36:06]Read from MH i2c: E2 0E 00 [14:36:06]MH_I2C_Read... [14:36:06]Read from MH i2c: E2 0E 00 47 0D 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 7D [14:36:06]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [14:36:06]wFMCommunicate OK [14:36:06]SAM_PROTO_GetShiftState done [14:36:06]FM_GetShiftState done [14:36:06]opened in 1715818916 [14:36:06]opened+sec_in_day 1715905316 [14:36:06]quantity*price = 500041 [14:36:06]sum+1 = 500043 [14:36:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 5000.42 НСП 1% : 44.25 НДС 12% : 531.02 Наличными: 0.00 Безнал.: 5000.42 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 93 16.05.2024 14:36 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67495 ФПД: 3616214101551 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T143607&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67495&fm=3616214101551&tin=02508201610067®Number=0000000000091845&sum=500042 [14:36:07]StoreToDocumentArchive [14:36:07]shift 357 fd 67495 [14:36:07]save to /storage/0357/doc_00067495 [14:36:07]save last doc name /storage/0357/doc_00067495 to /storage/kkm_last_doc_name [14:36:07]save OK [14:36:07]Clear old archive folders... [14:36:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:36:07]tlvbuf is 01762670 [14:36:07]SAM_PROTO_ClearQueue [14:36:07]wFMCommunicate request_size=4 [14:36:07]MH_SAM_APDU [14:36:07]CAPDU: 80 09 00 00 [14:36:07]Write to MH i2c: E2 08 00 54 0D 80 09 00 00 00 00 00 00 D3 [14:36:07]Write i2c OK [14:36:07]MH_I2C_Read... [14:36:07]Read from MH i2c: E2 [14:36:07]MH_I2C_Read... [14:36:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:36:07]Read from MH i2c: E2 03 00 [14:36:07]MH_I2C_Read... [14:36:07]Read from MH i2c: E2 03 00 54 0D 00 90 00 D5 [14:36:07]RAPDU: 90 00 [14:36:07]wFMCommunicate OK [14:36:07]SAM_PROTO_ClearQueue done [14:36:07]KKMCreateOFDPacket [14:36:07]OFDProtocolAddRootSTLVToBuf [14:36:07]FM_MakeSignedData [14:36:07]FM_MakeSignedData [14:36:07]SAM_PROTO_SignData [14:36:07]wFMCommunicate request_size=4 [14:36:07]MH_SAM_APDU [14:36:07]CAPDU: 80 0D 01 02 [14:36:07]Write to MH i2c: E2 08 00 55 0D 80 0D 01 02 00 00 00 00 DB [14:36:07]Write i2c OK [14:36:07]MH_I2C_Read... [14:36:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:36:07]Read from MH i2c: E2 [14:36:07]MH_I2C_Read... [14:36:07]Read from MH i2c: E2 03 00 [14:36:07]MH_I2C_Read... [14:36:07]Read from MH i2c: E2 03 00 55 0D 00 90 00 D6 [14:36:07]RAPDU: 90 00 [14:36:07]wFMCommunicate OK [14:36:07]wFMCommunicate request_size=255 [14:36:07]MH_SAM_APDU [14:36: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 7C 05 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 4A A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 D7 19 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A7 07 01 00 35 04 06 00 03 49 F7 28 [14:36:07]Write to MH i2c: E2 02 01 56 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 7C 05 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 4A A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 D7 19 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A7 07 01 00 35 04 06 00 03 49 F7 28 00 00 F0 [14:36:07]Write i2c OK [14:36:07]MH_I2C_Read... [14:36:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:08]Read from MH i2c: E2 [14:36:08]MH_I2C_Read... [14:36:08]Read from MH i2c: E2 03 00 [14:36:08]MH_I2C_Read... [14:36:08]Read from MH i2c: E2 03 00 56 0D 00 90 00 D7 [14:36:08]RAPDU: 90 00 [14:36:08]wFMCommunicate OK [14:36:08]wFMCommunicate request_size=7 [14:36:08]MH_SAM_APDU [14:36:08]CAPDU: 80 0D 02 02 02 2E 2F [14:36:08]Write to MH i2c: E2 0A 00 57 0D 80 0D 02 02 02 00 2E 2F 00 00 3F [14:36:08]Write i2c OK [14:36:08]MH_I2C_Read... [14:36:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:08]Read from MH i2c: E2 [14:36:08]MH_I2C_Read... [14:36:08]Read from MH i2c: E2 03 00 [14:36:08]MH_I2C_Read... [14:36:08]Read from MH i2c: E2 03 00 57 0D 00 90 00 D8 [14:36:08]RAPDU: 90 00 [14:36:08]wFMCommunicate OK [14:36:08]wFMCommunicate request_size=4 [14:36:08]MH_SAM_APDU [14:36:08]CAPDU: 80 0D 03 02 [14:36:08]Write to MH i2c: E2 08 00 58 0D 80 0D 03 02 00 00 00 00 E0 [14:36:08]Write i2c OK [14:36:08]MH_I2C_Read... [14:36:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:36:08]Read from MH i2c: E2 [14:36:08]MH_I2C_Read... [14:36:08]Read from MH i2c: E2 0B 00 [14:36:08]MH_I2C_Read... [14:36:08]Read from MH i2c: E2 0B 00 58 0D 00 2E 87 39 D7 89 B6 7C DA 90 00 3B [14:36:08]RAPDU: 2E 87 39 D7 89 B6 7C DA 90 00 [14:36:08]wFMCommunicate OK [14:36:08]SAM_PROTO_SignData done [14:36:08]FM_MakeSignedData done [14:36:08]CreateOFDProtocolMessage [14:36:08]wFMCommunicate request_size=4 [14:36:08]MH_SAM_APDU [14:36:08]CAPDU: 80 11 00 00 [14:36:08]Write to MH i2c: E2 08 00 59 0D 80 11 00 00 00 00 00 00 E0 [14:36:08]Write i2c OK [14:36:08]MH_I2C_Read... [14:36:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:08]Read from MH i2c: E2 [14:36:08]MH_I2C_Read... [14:36:08]Read from MH i2c: E2 17 00 [14:36:08]MH_I2C_Read... [14:36:08]Read from MH i2c: E2 17 00 59 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 36 [14:36:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:36:08]wFMCommunicate OK [14:36:08]CreateOFDProtocolMessage done [14:36:08]OFDSenderStorePacket 67495 [14:36:08]StoreOFDPacket docnum=67495 [14:36:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 8E F8 04 01 BF 8D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7C 05 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 4A A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 D7 19 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A7 07 01 00 35 04 06 00 03 49 F7 28 2E 2F 2E 87 39 D7 89 B6 7C DA [14:36:08]CheckFolder [14:36:08]dirname=/storage/ofd_packets [14:36:08]CheckFolder done [14:36:08]ProducePacketName [14:36:08]name=ofd_packets/00067495 [14:36:08]NVStorageSaveData ofd_packets/00067495 [14:36:08]File name is /storage/ofd_packets/00067495 [14:36:08]Write 298 bytes [14:36:08]NVStorageSaveData done [14:36:08]OFDSenderStorePacket done [14:36:08]KKMCreateOFDPacket done [14:36:08]NVStorageSaveData kkm_last_timestamp [14:36:08]File name is /storage/kkm_last_timestamp [14:36:08]Write 4 bytes [14:36:08]NVStorageSaveData done [14:36:08]ExternCall_PrintAddStr [14:36:08]wPrintStart [14:36:08]Write to MH i2c: 01 00 00 5A 0D 67 [14:36:08]Write i2c OK [14:36:08]MH_I2C_Read... [14:36:08]Read from MH i2c: 01 [14:36:08]MH_I2C_Read... [14:36:08]Read from MH i2c: 01 07 00 [14:36:08]MH_I2C_Read... [14:36:08]Read from MH i2c: 01 07 00 5A 0D 00 00 00 00 00 FF 0F 7C [14:36:08]RasterBufferAndPrint [14:36:08]line Счет N : (1)507542 [14:36:08]line ИНН: 02508201610067 [14:36:08]line Контрольно-Кассовый Чек [14:36:08]line ПРОДАЖА [14:36:08]line ТРК (МРК, ГНК) : 31 [14:36:08]line Товар: 2710194210 [14:36:08]line ДТ-К-5 [14:36:08]line 66.940 * 74.70 [14:36:08]line = 5000.42 [14:36:08]line НДС 12% НСП 1% [14:36:08]line > о реализуемом товаре [14:36:08]line ИТОГО: 5000.42 [14:36:08]line НСП 1% : 44.25 [14:36:08]line НДС 12% : 531.02 [14:36:08]line Наличными: 0.00 [14:36:08]line Безнал.: 5000.42 [14:36:08]line Место: АЗС № 91 "Партнер Нефть" [14:36:08]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [14:36:08]line СНО: Общий режим [14:36:08]line Чек 93 16.05.2024 14:36 [14:36:08]line Смена: 357 ФФД: 1.0 [14:36:08]line ЗНМ: 0300000119 [14:36:08]line РНМ: 0000000000091845 [14:36:08]line Версия ККМ: 001 [14:36:08]line Платежная система: O! деньги [14:36:08]line ФМ: 0000000000871829 [14:36:08]line ФД: 67495 [14:36:08]line ФПД: 3616214101551 [14:36:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T143607&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67495&fm=3616214101551&tin=02508201610067®Number=0000000000091845&sum=500042 [14:36:08]OFD Sender: Processing packet 67495 [packets to send 35, broken 34] [14:36:08]ProducePacketName [14:36:08]name=ofd_packets/00067495 [14:36:08]OFD Sender: To server: pG, [14:36:08]CommunicateWithHost lk.salyk.kg:30040 [14:36:08]ConnectInit lk.salyk.kg [14:36:08]written 0, free lines is 4095 [14:36:08]Connected sock=10 [14:36: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 38 32 39 0C 01 00 00 8E F8 04 01 BF 8D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7C 05 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 4A A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 D7 19 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A7 07 01 00 35 04 06 00 03 49 F7 28 2E 2F 2E 87 39 D7 89 B6 7C DA [14:36:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 44 4A 47 00 EB 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 38 32 39 10 04 04 00 A7 07 01 00 F4 03 04 00 B2 C1 45 66 B6 04 01 00 00 63 83 EC 6D 84 F9 80 2E [14:36:08]CommunicateWithHost err = 0 [14:36:08]CheckOFDResponse [14:36:08]1017 (14) - 77093643461234 [14:36:08]1041 (16) - 0000000000871829 [14:36:08]1040 (4) - 67495 [14:36:08]1012 (4) - 16.05.2024 08:20 [14:36:08]1206 (1) - 0 [14:36:08]OFD Sender: Remove packet 67495 [14:36:08]ProducePacketName [14:36:08]name=ofd_packets/00067495 [14:36:08]NVStorageDeleteData [14:36:08]Write to MH i2c: 01 00 00 83 0D 90 [14:36:08]Write i2c OK [14:36:08]MH_I2C_Read... [14:36:08]Read from MH i2c: 01 [14:36:08]MH_I2C_Read... [14:36:08]Read from MH i2c: 01 07 00 [14:36:08]MH_I2C_Read... [14:36:08]Read from MH i2c: 01 07 00 83 0D 00 00 00 00 00 D4 0C 77 [14:36:08]RasterBufferAndPrint [14:36:08]line [14:36:08]line [14:36:08]line [14:36:08]line [14:36:08]line [14:36:08]written 0, free lines is 3289 [14:36:08]MH_Cut [14:36:08]Write to MH i2c: D1 01 00 8A 0D 01 69 [14:36:08]Write i2c OK [14:36:08]MH_I2C_Read... [14:36:08]Read from MH i2c: D1 [14:36:08]MH_I2C_Read... [14:36:08]Read from MH i2c: D1 01 00 [14:36:08]MH_I2C_Read... [14:36:08]Read from MH i2c: D1 01 00 8A 0D 00 68 [14:36:08]Write to MH i2c: 01 00 00 8B 0D 98 [14:36:08]Write i2c OK [14:36:08]MH_I2C_Read... [14:36:09]OFD Sender: No OFD packet to send [14:36:09]*** Cut start [14:36:09]*** Purtial cut [14:36:09]*** CUTSNS_PIN = 0 [14:36:10]*** Stage 1: CUTSNS_PIN = 1 [14:36:11]Read from MH i2c: 01 [14:36:11]MH_I2C_Read... [14:36:11]*** Stop cut motor [14:36:11]*** Cut end [14:36:11]Read from MH i2c: 01 07 00 [14:36:11]MH_I2C_Read... [14:36:11]Read from MH i2c: 01 07 00 8B 0D 00 00 00 00 00 FF 0F AD [14:36:11]process_action close_receipt done [14:36:11]requested_data is exist [14:36:11]produce_requested_data [14:36:11]requested_item fm.sn is exist - process it [14:36:11]wFMCommunicate request_size=4 [14:36:11]MH_SAM_APDU [14:36:11]CAPDU: 80 11 00 00 [14:36:11]Write to MH i2c: E2 08 00 8C 0D 80 11 00 00 00 00 00 00 13 [14:36:11]Write i2c OK [14:36:11]MH_I2C_Read... [14:36:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:11]Read from MH i2c: E2 [14:36:11]MH_I2C_Read... [14:36:11]Read from MH i2c: E2 17 00 [14:36:11]MH_I2C_Read... [14:36:11]Read from MH i2c: E2 17 00 8C 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 69 [14:36:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:36:11]wFMCommunicate OK [14:36:11]requested_item fd.num is exist - process it [14:36:11]SAM_PROTO_GetFieldsCounters [14:36:11]wFMCommunicate request_size=4 [14:36:11]MH_SAM_APDU [14:36:11]CAPDU: 80 13 00 00 [14:36:11]Write to MH i2c: E2 08 00 8D 0D 80 13 00 00 00 00 00 00 16 [14:36:11]Write i2c OK [14:36:11]MH_I2C_Read... [14:36:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:36:11]Read from MH i2c: E2 [14:36:11]MH_I2C_Read... [14:36:11]Read from MH i2c: E2 62 00 [14:36:11]MH_I2C_Read... [14:36:11]Read from MH i2c: E2 62 00 8D 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 A7 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [14:36: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 A7 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:36:11]wFMCommunicate OK [14:36:11]SAM_PROTO_GetFieldsCounters done [14:36:11]requested_item shift.num is exist - process it [14:36:11]requested_item shift.opened is exist - process it [14:36:11]req_shift_opened [14:36:11]FM_GetShiftState [14:36:11]SAM_PROTO_GetShiftState [14:36:11]wFMCommunicate request_size=4 [14:36:11]MH_SAM_APDU [14:36:11]CAPDU: 80 13 01 00 [14:36:11]Write to MH i2c: E2 08 00 8E 0D 80 13 01 00 00 00 00 00 18 [14:36:11]Write i2c OK [14:36:11]MH_I2C_Read... [14:36:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:12]Read from MH i2c: E2 [14:36:12]MH_I2C_Read... [14:36:12]Read from MH i2c: E2 0E 00 [14:36:12]MH_I2C_Read... [14:36:12]Read from MH i2c: E2 0E 00 8E 0D 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 C4 [14:36:12]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [14:36:12]wFMCommunicate OK [14:36:12]SAM_PROTO_GetShiftState done [14:36:12]FM_GetShiftState done [14:36:12]req_shift_opened done [14:36:12]requested_item shift.open_date is exist - process it [14:36:12]req_shift_open_date [14:36:12]req_shift_open_date done [14:36:12]produce_requested_data done [14:36:12]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67495,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [14:36:12]process_action_free close_receipt [14:36:12]json_value_free [14:36:12]json_value_free done [14:36:12]process_json_proto returns [14:36:12]Send response to host [14:36:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67495,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [14:36:12]free response buf [14:36:12]execute_script done [14:36:12]execute_script returns [14:36:12]free content buf [14:36:12]Sock 9.Close socket [14:36:12]Sock 9.Thread stoped [14:36:14]OFD Sender: No OFD packet to send [14:36:19]OFD Sender: No OFD packet to send [14:36:24]OFD Sender: No OFD packet to send [14:36:29]OFD Sender: No OFD packet to send [14:36:34]OFD Sender: No OFD packet to send [14:36:39]OFD Sender: No OFD packet to send [14:36:44]OFD Sender: No OFD packet to send [14:36:49]OFD Sender: No OFD packet to send [14:36:54]OFD Sender: No OFD packet to send [14:36:59]OFD Sender: No OFD packet to send [14:37:04]OFD Sender: No OFD packet to send [14:37:09]OFD Sender: No OFD packet to send [14:37:14]OFD Sender: No OFD packet to send [14:37:19]OFD Sender: No OFD packet to send [14:37:24]OFD Sender: No OFD packet to send [14:37:29]OFD Sender: No OFD packet to send [14:37:34]OFD Sender: No OFD packet to send [14:37:39]OFD Sender: No OFD packet to send [14:37:44]OFD Sender: No OFD packet to send [14:37:49]OFD Sender: No OFD packet to send [14:37:54]OFD Sender: No OFD packet to send [14:37:59]OFD Sender: No OFD packet to send [14:38:04]OFD Sender: No OFD packet to send [14:38:09]OFD Sender: No OFD packet to send [14:38:12]accept exits with 8 [14:38:12]New connection [14:38:12]New thread 3067039076 created [14:38:12]Thread 3067182436 joined [14:38:12]Waiting for new connection... [14:38:12] Sock 8.Parse request [14:38:12]Sock 8.Check first char [14:38:12]Sock 8.First char is OK [14:38:12]request: POST /json_proto HTTP/1.0 [14:38:12]Method: POST [14:38:12]URL: /json_proto [14:38:12]Method is POST - this is cgi request [14:38:12]url: /json_proto [14:38:12]query_string will be loaded in cgi processing [14:38:12]execute_cgi json_proto POST (null) [14:38:12]execute_cgi path=json_proto method=POST [14:38:12]POST find Content-Length [14:38:12]Host: 172.17.41.195:8080 [14:38:12]Content-Length: 1208 [14:38:12]Content-Type: application/json [14:38:12] [14:38:12]POST finish read [14:38:12]Found Content-Length = 1208 [14:38:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507543\u000A16.05.2024 14:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 747.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:12]execute_script... [14:38:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507543\u000A16.05.2024 14:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 747.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:12]POST & json_proto [14:38:12]process_json_proto [14:38:12]json parsed OK: [14:38:12]protocol is kg_v1.0 [14:38:12]action value=print_text [14:38:12]process_action print_text [14:38:12]cmd_print_text [14:38:12]ExternCall_PrintAddStr [14:38:12]wPrintStart [14:38:12]Write to MH i2c: 01 00 00 8F 0D 9C [14:38:12]Write i2c OK [14:38:12]MH_I2C_Read... [14:38:12]Read from MH i2c: 01 [14:38:12]MH_I2C_Read... [14:38:12]Read from MH i2c: 01 07 00 [14:38:12]MH_I2C_Read... [14:38:12]Read from MH i2c: 01 07 00 8F 0D 00 00 00 00 00 FF 0F B1 [14:38:12]RasterBufferAndPrint [14:38:12]line *****ТОВАРНЫЙ ЧЕК***** [14:38:12]line АЗС-91 [14:38:12]line Партнер нефть [14:38:12]line 02508201610067 [14:38:12]line Кассир : Пайзулдаева А. [14:38:12]line Счет N : (1)507543 [14:38:12]line 16.05.2024 14:20 [14:38:12]line ПРОДАЖА [14:38:12]line ТРК (МРК, ГНК): 11 [14:38:12]line Вид ГСМ : 2710194210 [14:38:12]line ДТ-К-5 [14:38:12]line 10.000 x 74.70 [14:38:12]line ИТОГ: 747.00 [14:38:12]line Тип оплаты: Талоны: Топливная Карта [14:38:12]line 02750 [14:38:12]line ______________________ [14:38:12]line (подпись) [14:38:12]written 0, free lines is 4095 [14:38:12]Write to MH i2c: 01 00 00 A3 0D B0 [14:38:12]Write i2c OK [14:38:12]MH_I2C_Read... [14:38:12]Read from MH i2c: 01 [14:38:12]MH_I2C_Read... [14:38:12]Read from MH i2c: 01 07 00 [14:38:12]MH_I2C_Read... [14:38:12]Read from MH i2c: 01 07 00 A3 0D 00 00 00 00 00 0F 0E D4 [14:38:12]RasterBufferAndPrint [14:38:12]line [14:38:12]line [14:38:12]line [14:38:12]line [14:38:12]line [14:38:12]written 0, free lines is 3600 [14:38:12]MH_Cut [14:38:12]Write to MH i2c: D1 01 00 AA 0D 01 89 [14:38:12]Write i2c OK [14:38:12]MH_I2C_Read... [14:38:12]Read from MH i2c: D1 [14:38:12]MH_I2C_Read... [14:38:12]Read from MH i2c: D1 01 00 [14:38:12]MH_I2C_Read... [14:38:12]Read from MH i2c: D1 01 00 AA 0D 00 88 [14:38:12]Write to MH i2c: 01 00 00 AB 0D B8 [14:38:12]Write i2c OK [14:38:12]MH_I2C_Read... [14:38:13]*** Cut start [14:38:13]*** Purtial cut [14:38:13]*** Stage 1: CUTSNS_PIN = 1 [14:38:13]Read from MH i2c: 01 [14:38:13]MH_I2C_Read... [14:38:13]Read from MH i2c: 01 07 00 [14:38:13]MH_I2C_Read... [14:38:13]*** Stop cut motor [14:38:13]*** Cut end [14:38:13]Read from MH i2c: 01 07 00 AB 0D 00 00 00 00 00 FF 0F CD [14:38:13]process_action print_text done [14:38:13]requested_data is exist [14:38:13]produce_requested_data [14:38:13]requested_item fm.sn is exist - process it [14:38:13]wFMCommunicate request_size=4 [14:38:13]MH_SAM_APDU [14:38:13]CAPDU: 80 11 00 00 [14:38:13]Write to MH i2c: E2 08 00 AC 0D 80 11 00 00 00 00 00 00 33 [14:38:13]Write i2c OK [14:38:13]MH_I2C_Read... [14:38:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:13]Read from MH i2c: E2 [14:38:13]MH_I2C_Read... [14:38:13]Read from MH i2c: E2 17 00 [14:38:13]MH_I2C_Read... [14:38:13]Read from MH i2c: E2 17 00 AC 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 89 [14:38:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:38:13]wFMCommunicate OK [14:38:13]requested_item fd.num is exist - process it [14:38:13]SAM_PROTO_GetFieldsCounters [14:38:13]wFMCommunicate request_size=4 [14:38:13]MH_SAM_APDU [14:38:13]CAPDU: 80 13 00 00 [14:38:13]Write to MH i2c: E2 08 00 AD 0D 80 13 00 00 00 00 00 00 36 [14:38:13]Write i2c OK [14:38:13]MH_I2C_Read... [14:38:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:38:13]Read from MH i2c: E2 [14:38:13]MH_I2C_Read... [14:38:13]Read from MH i2c: E2 62 00 [14:38:13]MH_I2C_Read... [14:38:13]Read from MH i2c: E2 62 00 AD 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 A7 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [14:38: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 A7 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:38:13]wFMCommunicate OK [14:38:13]SAM_PROTO_GetFieldsCounters done [14:38:13]requested_item shift.num is exist - process it [14:38:13]requested_item shift.opened is exist - process it [14:38:13]req_shift_opened [14:38:13]FM_GetShiftState [14:38:13]SAM_PROTO_GetShiftState [14:38:13]wFMCommunicate request_size=4 [14:38:13]MH_SAM_APDU [14:38:13]CAPDU: 80 13 01 00 [14:38:13]Write to MH i2c: E2 08 00 AE 0D 80 13 01 00 00 00 00 00 38 [14:38:13]Write i2c OK [14:38:13]MH_I2C_Read... [14:38:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:13]Read from MH i2c: E2 [14:38:13]MH_I2C_Read... [14:38:13]Read from MH i2c: E2 0E 00 [14:38:13]MH_I2C_Read... [14:38:13]Read from MH i2c: E2 0E 00 AE 0D 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 E4 [14:38:13]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [14:38:13]wFMCommunicate OK [14:38:13]SAM_PROTO_GetShiftState done [14:38:13]FM_GetShiftState done [14:38:13]req_shift_opened done [14:38:13]requested_item shift.open_date is exist - process it [14:38:13]req_shift_open_date [14:38:13]req_shift_open_date done [14:38:13]produce_requested_data done [14:38:13]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67495,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [14:38:13]process_action_free print_text [14:38:13]json_value_free [14:38:13]json_value_free done [14:38:13]process_json_proto returns [14:38:13]Send response to host [14:38:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67495,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [14:38:13]free response buf [14:38:13]execute_script done [14:38:13]execute_script returns [14:38:13]free content buf [14:38:13]Sock 8.Close socket [14:38:13]Sock 8.Thread stoped [14:38:14]OFD Sender: No OFD packet to send [14:38:19]OFD Sender: No OFD packet to send [14:38:24]OFD Sender: No OFD packet to send [14:38:29]OFD Sender: No OFD packet to send [14:38:34]OFD Sender: No OFD packet to send [14:38:39]OFD Sender: No OFD packet to send [14:38:44]OFD Sender: No OFD packet to send [14:38:49]OFD Sender: No OFD packet to send [14:38:54]OFD Sender: No OFD packet to send [14:38:59]OFD Sender: No OFD packet to send [14:39:04]OFD Sender: No OFD packet to send [14:39:09]OFD Sender: No OFD packet to send [14:39:14]OFD Sender: No OFD packet to send [14:39:19]OFD Sender: No OFD packet to send [14:39:24]OFD Sender: No OFD packet to send [14:39:29]OFD Sender: No OFD packet to send [14:39:34]OFD Sender: No OFD packet to send [14:39:39]OFD Sender: No OFD packet to send [14:39:44]OFD Sender: No OFD packet to send [14:39:49]OFD Sender: No OFD packet to send [14:39:54]OFD Sender: No OFD packet to send [14:39:59]OFD Sender: No OFD packet to send [14:40:04]OFD Sender: No OFD packet to send [14:40:09]OFD Sender: No OFD packet to send [14:40:14]OFD Sender: No OFD packet to send [14:40:19]OFD Sender: No OFD packet to send [14:40:24]OFD Sender: No OFD packet to send [14:40:29]OFD Sender: No OFD packet to send [14:40:34]OFD Sender: No OFD packet to send [14:40:39]OFD Sender: No OFD packet to send [14:40:44]OFD Sender: No OFD packet to send [14:40:49]OFD Sender: No OFD packet to send [14:40:54]OFD Sender: No OFD packet to send [14:40:59]OFD Sender: No OFD packet to send [14:41:04]OFD Sender: No OFD packet to send [14:41:09]OFD Sender: No OFD packet to send [14:41:14]OFD Sender: No OFD packet to send [14:41:19]OFD Sender: No OFD packet to send [14:41:24]OFD Sender: No OFD packet to send [14:41:29]OFD Sender: No OFD packet to send [14:41:34]OFD Sender: No OFD packet to send [14:41:39]OFD Sender: No OFD packet to send [14:41:44]OFD Sender: No OFD packet to send [14:41:49]OFD Sender: No OFD packet to send [14:41:54]OFD Sender: No OFD packet to send [14:41:59]OFD Sender: No OFD packet to send [14:42:04]OFD Sender: No OFD packet to send [14:42:09]OFD Sender: No OFD packet to send [14:42:14]OFD Sender: No OFD packet to send [14:42:19]OFD Sender: No OFD packet to send [14:42:24]OFD Sender: No OFD packet to send [14:42:29]OFD Sender: No OFD packet to send [14:42:34]OFD Sender: No OFD packet to send [14:42:39]OFD Sender: No OFD packet to send [14:42:44]OFD Sender: No OFD packet to send [14:42:49]OFD Sender: No OFD packet to send [14:42:54]OFD Sender: No OFD packet to send [14:42:59]OFD Sender: No OFD packet to send [14:43:04]OFD Sender: No OFD packet to send [14:43:08]accept exits with 9 [14:43:08]New connection [14:43:08]New thread 3067182436 created [14:43:08]Thread 3067039076 joined [14:43:08]Waiting for new connection... [14:43:08] Sock 9.Parse request [14:43:08]Sock 9.Check first char [14:43:08]Sock 9.First char is OK [14:43:08]request: POST /json_proto HTTP/1.0 [14:43:08]Method: POST [14:43:08]URL: /json_proto [14:43:08]Method is POST - this is cgi request [14:43:08]url: /json_proto [14:43:08]query_string will be loaded in cgi processing [14:43:08]execute_cgi json_proto POST (null) [14:43:08]execute_cgi path=json_proto method=POST [14:43:08]POST find Content-Length [14:43:08]Host: 172.17.41.195:8080 [14:43:08]Content-Length: 639 [14:43:08]Content-Type: application/json [14:43:08] [14:43:08]POST finish read [14:43:08]Found Content-Length = 639 [14:43:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507544", "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" : 74.70, "quantity" : 20.000, "sum" : 1494.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1494.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:43:08]execute_script... [14: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)507544", "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" : 74.70, "quantity" : 20.000, "sum" : 1494.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1494.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:43:08]POST & json_proto [14:43:08]process_json_proto [14:43:08]json parsed OK: [14:43:08]protocol is kg_v1.0 [14:43:08]action value=close_receipt [14:43:08]process_action close_receipt [14:43:08]cmd_close_receipt [14:43:08]MH_GetDate [14:43:08]Write to MH i2c: F0 00 00 AF 0D AB [14:43:08]Write i2c OK [14:43:08]MH_I2C_Read... [14:43:08]Read from MH i2c: F0 [14:43:08]MH_I2C_Read... [14:43:08]Read from MH i2c: F0 09 00 [14:43:08]MH_I2C_Read... [14:43:08]Read from MH i2c: F0 09 00 AF 0D 00 7D 1B 46 66 FC 21 6F 64 E8 [14:43:08]GetLastDocTimeStamp 1715870167 [14:43:08]current date 1715870589 [14:43:08]FM_GetShiftState [14:43:08]SAM_PROTO_GetShiftState [14:43:08]wFMCommunicate request_size=4 [14:43:08]MH_SAM_APDU [14:43:08]CAPDU: 80 13 01 00 [14:43:08]Write to MH i2c: E2 08 00 B0 0D 80 13 01 00 00 00 00 00 3A [14:43:08]Write i2c OK [14:43:08]MH_I2C_Read... [14:43:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:08]Read from MH i2c: E2 [14:43:08]MH_I2C_Read... [14:43:08]Read from MH i2c: E2 0E 00 [14:43:08]MH_I2C_Read... [14:43:08]Read from MH i2c: E2 0E 00 B0 0D 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 E6 [14:43:08]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [14:43:08]wFMCommunicate OK [14:43:08]SAM_PROTO_GetShiftState done [14:43:08]FM_GetShiftState done [14:43:08]opened in 1715818916 [14:43:08]opened+sec_in_day 1715905316 [14:43:08]quantity*price = 149400 [14:43:08]sum+1 = 149401 [14:43:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1494.00 НСП 1% : 13.22 НДС 12% : 158.65 Наличными: 1494.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 94 16.05.2024 14:43 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67496 ФПД: 119796479752398 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T144309&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67496&fm=119796479752398&tin=02508201610067®Number=0000000000091845&sum=149400 [14:43:09]StoreToDocumentArchive [14:43:09]shift 357 fd 67496 [14:43:09]save to /storage/0357/doc_00067496 [14:43:09]save last doc name /storage/0357/doc_00067496 to /storage/kkm_last_doc_name [14:43:09]save OK [14:43:09]Clear old archive folders... [14:43:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:43:09]tlvbuf is 017A7250 [14:43:09]SAM_PROTO_ClearQueue [14:43:09]wFMCommunicate request_size=4 [14:43:09]MH_SAM_APDU [14:43:09]CAPDU: 80 09 00 00 [14:43:09]Write to MH i2c: E2 08 00 BD 0D 80 09 00 00 00 00 00 00 3C [14:43:09]Write i2c OK [14:43:09]MH_I2C_Read... [14:43:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:43:09]Read from MH i2c: E2 [14:43:09]MH_I2C_Read... [14:43:09]Read from MH i2c: E2 03 00 [14:43:09]MH_I2C_Read... [14:43:09]Read from MH i2c: E2 03 00 BD 0D 00 90 00 3E [14:43:09]RAPDU: 90 00 [14:43:09]wFMCommunicate OK [14:43:09]SAM_PROTO_ClearQueue done [14:43:09]KKMCreateOFDPacket [14:43:09]OFDProtocolAddRootSTLVToBuf [14:43:09]FM_MakeSignedData [14:43:09]FM_MakeSignedData [14:43:09]SAM_PROTO_SignData [14:43:09]wFMCommunicate request_size=4 [14:43:09]MH_SAM_APDU [14:43:09]CAPDU: 80 0D 01 02 [14:43:09]Write to MH i2c: E2 08 00 BE 0D 80 0D 01 02 00 00 00 00 44 [14:43:09]Write i2c OK [14:43:09]MH_I2C_Read... [14:43:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:43:09]Read from MH i2c: E2 [14:43:09]MH_I2C_Read... [14:43:09]Read from MH i2c: E2 03 00 [14:43:09]MH_I2C_Read... [14:43:09]Read from MH i2c: E2 03 00 BE 0D 00 90 00 3F [14:43:09]RAPDU: 90 00 [14:43:09]wFMCommunicate OK [14:43:09]wFMCommunicate request_size=255 [14:43:09]MH_SAM_APDU [14: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 20 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 98 47 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 47 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 3D 00 00 00 00 07 04 06 00 98 47 02 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 7D 1B 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A8 07 01 00 35 04 06 00 6C F4 4A 9E [14:43:09]Write to MH i2c: E2 02 01 BF 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 20 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 98 47 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 47 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 3D 00 00 00 00 07 04 06 00 98 47 02 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 7D 1B 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A8 07 01 00 35 04 06 00 6C F4 4A 9E 00 00 67 [14:43:09]Write i2c OK [14:43:09]MH_I2C_Read... [14:43:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:09]Read from MH i2c: E2 [14:43:09]MH_I2C_Read... [14:43:09]Read from MH i2c: E2 03 00 [14:43:09]MH_I2C_Read... [14:43:09]Read from MH i2c: E2 03 00 BF 0D 00 90 00 40 [14:43:09]RAPDU: 90 00 [14:43:09]wFMCommunicate OK [14:43:09]wFMCommunicate request_size=7 [14:43:09]MH_SAM_APDU [14:43:09]CAPDU: 80 0D 02 02 02 F8 CE [14:43:09]Write to MH i2c: E2 0A 00 C0 0D 80 0D 02 02 02 00 F8 CE 00 00 11 [14:43:09]Write i2c OK [14:43:09]MH_I2C_Read... [14:43:09]OFD Sender: No OFD packet to send [14:43:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:09]Read from MH i2c: E2 [14:43:09]MH_I2C_Read... [14:43:09]Read from MH i2c: E2 03 00 [14:43:09]MH_I2C_Read... [14:43:09]Read from MH i2c: E2 03 00 C0 0D 00 90 00 41 [14:43:09]RAPDU: 90 00 [14:43:09]wFMCommunicate OK [14:43:09]wFMCommunicate request_size=4 [14:43:09]MH_SAM_APDU [14:43:09]CAPDU: 80 0D 03 02 [14:43:09]Write to MH i2c: E2 08 00 C1 0D 80 0D 03 02 00 00 00 00 49 [14:43:09]Write i2c OK [14:43:09]MH_I2C_Read... [14:43:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:43:09]Read from MH i2c: E2 [14:43:09]MH_I2C_Read... [14:43:09]Read from MH i2c: E2 0B 00 [14:43:09]MH_I2C_Read... [14:43:09]Read from MH i2c: E2 0B 00 C1 0D 00 6C 84 13 B2 F6 D6 1C E1 90 00 C8 [14:43:09]RAPDU: 6C 84 13 B2 F6 D6 1C E1 90 00 [14:43:09]wFMCommunicate OK [14:43:09]SAM_PROTO_SignData done [14:43:09]FM_MakeSignedData done [14:43:09]CreateOFDProtocolMessage [14:43:09]wFMCommunicate request_size=4 [14:43:09]MH_SAM_APDU [14:43:09]CAPDU: 80 11 00 00 [14:43:09]Write to MH i2c: E2 08 00 C2 0D 80 11 00 00 00 00 00 00 49 [14:43:09]Write i2c OK [14:43:09]MH_I2C_Read... [14:43:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:09]Read from MH i2c: E2 [14:43:09]MH_I2C_Read... [14:43:09]Read from MH i2c: E2 17 00 [14:43:09]MH_I2C_Read... [14:43:09]Read from MH i2c: E2 17 00 C2 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 9F [14:43:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:43:09]wFMCommunicate OK [14:43:09]CreateOFDProtocolMessage done [14:43:09]OFDSenderStorePacket 67496 [14:43:09]StoreOFDPacket docnum=67496 [14:43:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 4B 62 04 01 93 E3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 98 47 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 47 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 3D 00 00 00 00 07 04 06 00 98 47 02 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 7D 1B 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A8 07 01 00 35 04 06 00 6C F4 4A 9E F8 CE 6C 84 13 B2 F6 D6 1C E1 [14:43:09]CheckFolder [14:43:09]dirname=/storage/ofd_packets [14:43:09]CheckFolder done [14:43:09]ProducePacketName [14:43:09]name=ofd_packets/00067496 [14:43:09]NVStorageSaveData ofd_packets/00067496 [14:43:09]File name is /storage/ofd_packets/00067496 [14:43:09]Write 298 bytes [14:43:09]NVStorageSaveData done [14:43:09]OFDSenderStorePacket done [14:43:09]KKMCreateOFDPacket done [14:43:09]NVStorageSaveData kkm_last_timestamp [14:43:09]File name is /storage/kkm_last_timestamp [14:43:09]Write 4 bytes [14:43:09]NVStorageSaveData done [14:43:09]ExternCall_PrintAddStr [14:43:09]wPrintStart [14:43:09]Write to MH i2c: 01 00 00 C3 0D D0 [14:43:09]Write i2c OK [14:43:09]MH_I2C_Read... [14:43:09]Read from MH i2c: 01 [14:43:09]MH_I2C_Read... [14:43:09]Read from MH i2c: 01 07 00 [14:43:09]MH_I2C_Read... [14:43:09]Read from MH i2c: 01 07 00 C3 0D 00 00 00 00 00 FF 0F E5 [14:43:09]RasterBufferAndPrint [14:43:09]line Счет N : (1)507544 [14:43:09]line ИНН: 02508201610067 [14:43:09]line Контрольно-Кассовый Чек [14:43:09]line ПРОДАЖА [14:43:09]line ТРК (МРК, ГНК) : 21 [14:43:09]line Товар: 2710194210 [14:43:09]line ДТ-К-5 [14:43:09]line 20.000 * 74.70 [14:43:09]line = 1494.00 [14:43:09]line НДС 12% НСП 1% [14:43:09]line > о реализуемом товаре [14:43:09]line ИТОГО: 1494.00 [14:43:09]line НСП 1% : 13.22 [14:43:09]line НДС 12% : 158.65 [14:43:09]line Наличными: 1494.00 [14:43:09]line Безнал.: 0.00 [14:43:09]line Место: АЗС № 91 "Партнер Нефть" [14:43:09]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [14:43:09]line СНО: Общий режим [14:43:09]line Чек 94 16.05.2024 14:43 [14:43:09]line Смена: 357 ФФД: 1.0 [14:43:09]line ЗНМ: 0300000119 [14:43:09]line РНМ: 0000000000091845 [14:43:09]line Версия ККМ: 001 [14:43:09]line ФМ: 0000000000871829 [14:43:09]line ФД: 67496 [14:43:09]line ФПД: 119796479752398 [14:43:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T144309&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67496&fm=119796479752398&tin=02508201610067®Number=0000000000091845&sum=149400 [14:43:10]OFD Sender: Processing packet 67496 [packets to send 35, broken 34] [14:43:10]ProducePacketName [14:43:10]name=ofd_packets/00067496 [14:43:10]OFD Sender: To server: pG, [14:43:10]CommunicateWithHost lk.salyk.kg:30040 [14:43:10]ConnectInit lk.salyk.kg [14:43:10]written 0, free lines is 4095 [14:43:10]Connected sock=8 [14: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 38 32 39 0C 01 00 00 4B 62 04 01 93 E3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 98 47 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 47 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 3D 00 00 00 00 07 04 06 00 98 47 02 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 7D 1B 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A8 07 01 00 35 04 06 00 6C F4 4A 9E F8 CE 6C 84 13 B2 F6 D6 1C E1 [14: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 38 32 39 4F 00 00 00 AC 57 47 00 68 D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A8 07 01 00 F4 03 04 00 57 C3 45 66 B6 04 01 00 00 1F E2 C9 1A FF 25 98 56 [14:43:10]CommunicateWithHost err = 0 [14:43:10]CheckOFDResponse [14:43:10]1017 (14) - 77093643461234 [14:43:10]1041 (16) - 0000000000871829 [14:43:10]1040 (4) - 67496 [14:43:10]1012 (4) - 16.05.2024 08:27 [14:43:10]1206 (1) - 0 [14:43:10]OFD Sender: Remove packet 67496 [14:43:10]ProducePacketName [14:43:10]name=ofd_packets/00067496 [14:43:10]NVStorageDeleteData [14:43:10]Write to MH i2c: 01 00 00 EA 0D F7 [14:43:10]Write i2c OK [14:43:10]MH_I2C_Read... [14:43:10]Read from MH i2c: 01 [14:43:10]MH_I2C_Read... [14:43:10]Read from MH i2c: 01 07 00 [14:43:10]MH_I2C_Read... [14:43:10]Read from MH i2c: 01 07 00 EA 0D 00 00 00 00 00 08 0D 13 [14:43:10]RasterBufferAndPrint [14:43:10]line [14:43:10]line [14:43:10]line [14:43:10]line [14:43:10]line [14:43:10]written 0, free lines is 3342 [14:43:10]MH_Cut [14:43:10]Write to MH i2c: D1 01 00 F1 0D 01 D0 [14:43:10]Write i2c OK [14:43:10]MH_I2C_Read... [14:43:10]Read from MH i2c: D1 [14:43:10]MH_I2C_Read... [14:43:10]Read from MH i2c: D1 01 00 [14:43:10]MH_I2C_Read... [14:43:10]Read from MH i2c: D1 01 00 F1 0D 00 CF [14:43:10]Write to MH i2c: 01 00 00 F2 0D FF [14:43:10]Write i2c OK [14:43:10]MH_I2C_Read... [14:43:11]OFD Sender: No OFD packet to send [14:43:11]*** Cut start [14:43:11]*** Purtial cut [14:43:11]*** CUTSNS_PIN = 0 [14:43:11]*** Stage 1: CUTSNS_PIN = 1 [14:43:13]Read from MH i2c: 01 [14:43:13]MH_I2C_Read... [14:43:13]*** Stop cut motor [14:43:13]*** Cut end [14:43:13]Read from MH i2c: 01 07 00 [14:43:13]MH_I2C_Read... [14:43:13]Read from MH i2c: 01 07 00 F2 0D 00 00 00 00 00 FF 0F 14 [14:43:13]process_action close_receipt done [14:43:13]requested_data is exist [14:43:13]produce_requested_data [14:43:13]requested_item fm.sn is exist - process it [14:43:13]wFMCommunicate request_size=4 [14:43:13]MH_SAM_APDU [14:43:13]CAPDU: 80 11 00 00 [14:43:13]Write to MH i2c: E2 08 00 F3 0D 80 11 00 00 00 00 00 00 7A [14:43:13]Write i2c OK [14:43:13]MH_I2C_Read... [14:43:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:13]Read from MH i2c: E2 [14:43:13]MH_I2C_Read... [14:43:13]Read from MH i2c: E2 17 00 [14:43:13]MH_I2C_Read... [14:43:13]Read from MH i2c: E2 17 00 F3 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D0 [14:43:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:43:13]wFMCommunicate OK [14:43:13]requested_item fd.num is exist - process it [14:43:13]SAM_PROTO_GetFieldsCounters [14:43:13]wFMCommunicate request_size=4 [14:43:13]MH_SAM_APDU [14:43:13]CAPDU: 80 13 00 00 [14:43:13]Write to MH i2c: E2 08 00 F4 0D 80 13 00 00 00 00 00 00 7D [14:43:13]Write i2c OK [14:43:13]MH_I2C_Read... [14:43:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:43:13]Read from MH i2c: E2 [14:43:13]MH_I2C_Read... [14:43:13]Read from MH i2c: E2 62 00 [14:43:13]MH_I2C_Read... [14:43:13]Read from MH i2c: E2 62 00 F4 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 A8 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [14:43: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 A8 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:43:13]wFMCommunicate OK [14:43:13]SAM_PROTO_GetFieldsCounters done [14:43:13]requested_item shift.num is exist - process it [14:43:13]requested_item shift.opened is exist - process it [14:43:13]req_shift_opened [14:43:13]FM_GetShiftState [14:43:13]SAM_PROTO_GetShiftState [14:43:13]wFMCommunicate request_size=4 [14:43:13]MH_SAM_APDU [14:43:13]CAPDU: 80 13 01 00 [14:43:13]Write to MH i2c: E2 08 00 F5 0D 80 13 01 00 00 00 00 00 7F [14:43:13]Write i2c OK [14:43:13]MH_I2C_Read... [14:43:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:13]Read from MH i2c: E2 [14:43:13]MH_I2C_Read... [14:43:13]Read from MH i2c: E2 0E 00 [14:43:13]MH_I2C_Read... [14:43:13]Read from MH i2c: E2 0E 00 F5 0D 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 2B [14:43:13]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [14:43:13]wFMCommunicate OK [14:43:13]SAM_PROTO_GetShiftState done [14:43:13]FM_GetShiftState done [14:43:13]req_shift_opened done [14:43:13]requested_item shift.open_date is exist - process it [14:43:13]req_shift_open_date [14:43:13]req_shift_open_date done [14:43:13]produce_requested_data done [14:43:13]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67496,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [14:43:13]process_action_free close_receipt [14:43:13]json_value_free [14:43:13]json_value_free done [14:43:13]process_json_proto returns [14:43:13]Send response to host [14:43:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67496,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [14:43:13]free response buf [14:43:13]execute_script done [14:43:13]execute_script returns [14:43:13]free content buf [14:43:13]Sock 9.Close socket [14:43:13]Sock 9.Thread stoped [14:43:16]OFD Sender: No OFD packet to send [14:43:21]OFD Sender: No OFD packet to send [14:43:26]OFD Sender: No OFD packet to send [14:43:31]OFD Sender: No OFD packet to send [14:43:36]OFD Sender: No OFD packet to send [14:43:41]OFD Sender: No OFD packet to send [14:43:46]OFD Sender: No OFD packet to send [14:43:51]OFD Sender: No OFD packet to send [14:43:56]OFD Sender: No OFD packet to send [14:44:01]OFD Sender: No OFD packet to send [14:44:06]OFD Sender: No OFD packet to send [14:44:11]OFD Sender: No OFD packet to send [14:44:16]OFD Sender: No OFD packet to send [14:44:21]OFD Sender: No OFD packet to send [14:44:26]OFD Sender: No OFD packet to send [14:44:31]OFD Sender: No OFD packet to send [14:44:36]OFD Sender: No OFD packet to send [14:44:41]OFD Sender: No OFD packet to send [14:44:46]OFD Sender: No OFD packet to send [14:44:51]OFD Sender: No OFD packet to send [14:44:56]OFD Sender: No OFD packet to send [14:45:01]OFD Sender: No OFD packet to send [14:45:06]OFD Sender: No OFD packet to send [14:45:11]OFD Sender: No OFD packet to send [14:45:16]OFD Sender: No OFD packet to send [14:45:21]OFD Sender: No OFD packet to send [14:45:26]OFD Sender: No OFD packet to send [14:45:31]OFD Sender: No OFD packet to send [14:45:36]OFD Sender: No OFD packet to send [14:45:41]OFD Sender: No OFD packet to send [14:45:46]OFD Sender: No OFD packet to send [14:45:51]OFD Sender: No OFD packet to send [14:45:56]OFD Sender: No OFD packet to send [14:46:01]OFD Sender: No OFD packet to send [14:46:06]OFD Sender: No OFD packet to send [14:46:11]OFD Sender: No OFD packet to send [14:46:16]OFD Sender: No OFD packet to send [14:46:21]OFD Sender: No OFD packet to send [14:46:26]OFD Sender: No OFD packet to send [14:46:31]OFD Sender: No OFD packet to send [14:46:36]OFD Sender: No OFD packet to send [14:46:41]OFD Sender: No OFD packet to send [14:46:46]OFD Sender: No OFD packet to send [14:46:51]OFD Sender: No OFD packet to send [14:46:56]OFD Sender: No OFD packet to send [14:47:01]OFD Sender: No OFD packet to send [14:47:06]OFD Sender: No OFD packet to send [14:47:11]OFD Sender: No OFD packet to send [14:47:16]OFD Sender: No OFD packet to send [14:47:21]OFD Sender: No OFD packet to send [14:47:26]OFD Sender: No OFD packet to send [14:47:31]OFD Sender: No OFD packet to send [14:47:36]OFD Sender: No OFD packet to send [14:47:41]OFD Sender: No OFD packet to send [14:47:46]OFD Sender: No OFD packet to send [14:47:51]OFD Sender: No OFD packet to send [14:47:56]OFD Sender: No OFD packet to send [14:48:01]OFD Sender: No OFD packet to send [14:48:06]OFD Sender: No OFD packet to send [14:48:11]OFD Sender: No OFD packet to send [14:48:16]OFD Sender: No OFD packet to send [14:48:21]OFD Sender: No OFD packet to send [14:48:26]OFD Sender: No OFD packet to send [14:48:31]OFD Sender: No OFD packet to send [14:48:36]OFD Sender: No OFD packet to send [14:48:41]OFD Sender: No OFD packet to send [14:48:46]OFD Sender: No OFD packet to send [14:48:51]OFD Sender: No OFD packet to send [14:48:56]OFD Sender: No OFD packet to send [14:49:01]OFD Sender: No OFD packet to send [14:49:06]OFD Sender: No OFD packet to send [14:49:11]OFD Sender: No OFD packet to send [14:49:16]OFD Sender: No OFD packet to send [14:49:21]OFD Sender: No OFD packet to send [14:49:26]OFD Sender: No OFD packet to send [14:49:31]OFD Sender: No OFD packet to send [14:49:36]OFD Sender: No OFD packet to send [14:49:41]OFD Sender: No OFD packet to send [14:49:46]OFD Sender: No OFD packet to send [14:49:51]OFD Sender: No OFD packet to send [14:49:56]OFD Sender: No OFD packet to send [14:50:01]OFD Sender: No OFD packet to send [14:50:06]OFD Sender: No OFD packet to send [14:50:11]OFD Sender: No OFD packet to send [14:50:16]OFD Sender: No OFD packet to send [14:50:21]OFD Sender: No OFD packet to send [14:50:26]OFD Sender: No OFD packet to send [14:50:31]OFD Sender: No OFD packet to send [14:50:36]OFD Sender: No OFD packet to send [14:50:41]OFD Sender: No OFD packet to send [14:50:46]OFD Sender: No OFD packet to send [14:50:51]OFD Sender: No OFD packet to send [14:50:56]OFD Sender: No OFD packet to send [14:51:01]OFD Sender: No OFD packet to send [14:51:06]OFD Sender: No OFD packet to send [14:51:11]OFD Sender: No OFD packet to send [14:51:16]OFD Sender: No OFD packet to send [14:51:21]OFD Sender: No OFD packet to send [14:51:26]OFD Sender: No OFD packet to send [14:51:31]OFD Sender: No OFD packet to send [14:51:36]OFD Sender: No OFD packet to send [14:51:41]OFD Sender: No OFD packet to send [14:51:46]OFD Sender: No OFD packet to send [14:51:51]OFD Sender: No OFD packet to send [14:51:56]OFD Sender: No OFD packet to send [14:52:01]OFD Sender: No OFD packet to send [14:52:06]OFD Sender: No OFD packet to send [14:52:11]OFD Sender: No OFD packet to send [14:52:16]OFD Sender: No OFD packet to send [14:52:21]OFD Sender: No OFD packet to send [14:52:26]OFD Sender: No OFD packet to send [14:52:31]OFD Sender: No OFD packet to send [14:52:36]OFD Sender: No OFD packet to send [14:52:41]OFD Sender: No OFD packet to send [14:52:46]OFD Sender: No OFD packet to send [14:52:51]OFD Sender: No OFD packet to send [14:52:56]OFD Sender: No OFD packet to send [14:53:01]OFD Sender: No OFD packet to send [14:53:06]OFD Sender: No OFD packet to send [14:53:11]OFD Sender: No OFD packet to send [14:53:16]OFD Sender: No OFD packet to send [14:53:21]OFD Sender: No OFD packet to send [14:53:26]OFD Sender: No OFD packet to send [14:53:31]OFD Sender: No OFD packet to send [14:53:36]OFD Sender: No OFD packet to send [14:53:41]OFD Sender: No OFD packet to send [14:53:46]OFD Sender: No OFD packet to send [14:53:51]OFD Sender: No OFD packet to send [14:53:56]OFD Sender: No OFD packet to send [14:54:01]OFD Sender: No OFD packet to send [14:54:04]accept exits with 10 [14:54:04]New connection [14:54:04]New thread 3067039076 created [14:54:04]Thread 3067182436 joined [14:54:04]Waiting for new connection... [14:54:04] Sock 10.Parse request [14:54:04]Sock 10.Check first char [14:54:04]Sock 10.First char is OK [14:54:04]request: POST /json_proto HTTP/1.0 [14:54:04]Method: POST [14:54:04]URL: /json_proto [14:54:04]Method is POST - this is cgi request [14:54:04]url: /json_proto [14:54:04]query_string will be loaded in cgi processing [14:54:04]execute_cgi json_proto POST (null) [14:54:04]execute_cgi path=json_proto method=POST [14:54:04]POST find Content-Length [14:54:04]Host: 172.17.41.195:8080 [14:54:04]Content-Length: 800 [14:54:04]Content-Type: application/json [14:54:04] [14:54:04]POST finish read [14:54:04]Found Content-Length = 800 [14:54:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507545", "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" : 74.70, "quantity" : 40.170, "sum" : 3000.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:04]execute_script... [14:54: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)507545", "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" : 74.70, "quantity" : 40.170, "sum" : 3000.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:04]POST & json_proto [14:54:04]process_json_proto [14:54:04]json parsed OK: [14:54:04]protocol is kg_v1.0 [14:54:04]action value=close_receipt [14:54:04]process_action close_receipt [14:54:04]cmd_close_receipt [14:54:04]MH_GetDate [14:54:04]Write to MH i2c: F0 00 00 F6 0D F2 [14:54:04]Write i2c OK [14:54:04]MH_I2C_Read... [14:54:04]Read from MH i2c: F0 [14:54:04]MH_I2C_Read... [14:54:04]Read from MH i2c: F0 09 00 [14:54:04]MH_I2C_Read... [14:54:04]Read from MH i2c: F0 09 00 F6 0D 00 0D 1E 46 66 FC 21 6F 64 C2 [14:54:04]GetLastDocTimeStamp 1715870589 [14:54:04]current date 1715871245 [14:54:04]FM_GetShiftState [14:54:04]SAM_PROTO_GetShiftState [14:54:04]wFMCommunicate request_size=4 [14:54:04]MH_SAM_APDU [14:54:04]CAPDU: 80 13 01 00 [14:54:04]Write to MH i2c: E2 08 00 F7 0D 80 13 01 00 00 00 00 00 81 [14:54:04]Write i2c OK [14:54:04]MH_I2C_Read... [14:54:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:04]Read from MH i2c: E2 [14:54:04]MH_I2C_Read... [14:54:04]Read from MH i2c: E2 0E 00 [14:54:04]MH_I2C_Read... [14:54:04]Read from MH i2c: E2 0E 00 F7 0D 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 2D [14:54:04]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [14:54:04]wFMCommunicate OK [14:54:04]SAM_PROTO_GetShiftState done [14:54:04]FM_GetShiftState done [14:54:04]opened in 1715818916 [14:54:04]opened+sec_in_day 1715905316 [14:54:04]quantity*price = 300069 [14:54:04]sum+1 = 300071 [14:54:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.70 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.70 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 95 16.05.2024 14:54 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67497 ФПД: 16874854663653 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T145405&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67497&fm=16874854663653&tin=02508201610067®Number=0000000000091845&sum=300070 [14:54:05]StoreToDocumentArchive [14:54:05]shift 357 fd 67497 [14:54:05]save to /storage/0357/doc_00067497 [14:54:05]save last doc name /storage/0357/doc_00067497 to /storage/kkm_last_doc_name [14:54:05]save OK [14:54:05]Clear old archive folders... [14:54:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:54:05]tlvbuf is 017D6AA0 [14:54:05]SAM_PROTO_ClearQueue [14:54:05]wFMCommunicate request_size=4 [14:54:05]MH_SAM_APDU [14:54:05]CAPDU: 80 09 00 00 [14:54:05]Write to MH i2c: E2 08 00 04 0E 80 09 00 00 00 00 00 00 84 [14:54:05]Write i2c OK [14:54:05]MH_I2C_Read... [14:54:05]Read from MH i2c: E2 [14:54:05]MH_I2C_Read... [14:54:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:54:05]Read from MH i2c: E2 03 00 [14:54:05]MH_I2C_Read... [14:54:05]Read from MH i2c: E2 03 00 04 0E 00 90 00 86 [14:54:05]RAPDU: 90 00 [14:54:05]wFMCommunicate OK [14:54:05]SAM_PROTO_ClearQueue done [14:54:05]KKMCreateOFDPacket [14:54:05]OFDProtocolAddRootSTLVToBuf [14:54:05]FM_MakeSignedData [14:54:05]FM_MakeSignedData [14:54:05]SAM_PROTO_SignData [14:54:05]wFMCommunicate request_size=4 [14:54:05]MH_SAM_APDU [14:54:05]CAPDU: 80 0D 01 02 [14:54:05]Write to MH i2c: E2 08 00 05 0E 80 0D 01 02 00 00 00 00 8C [14:54:05]Write i2c OK [14:54:05]MH_I2C_Read... [14:54:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:54:05]Read from MH i2c: E2 [14:54:05]MH_I2C_Read... [14:54:05]Read from MH i2c: E2 03 00 [14:54:05]MH_I2C_Read... [14:54:05]Read from MH i2c: E2 03 00 05 0E 00 90 00 87 [14:54:05]RAPDU: 90 00 [14:54:05]wFMCommunicate OK [14:54:05]wFMCommunicate request_size=255 [14:54:05]MH_SAM_APDU [14:54:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 26 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 26 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 0D 1E 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A9 07 01 00 35 04 06 00 0F 58 FB B7 [14:54:05]Write to MH i2c: E2 02 01 06 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 EA 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 26 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 26 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 0D 1E 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A9 07 01 00 35 04 06 00 0F 58 FB B7 00 00 BE [14:54:05]Write i2c OK [14:54:05]MH_I2C_Read... [14:54:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:05]Read from MH i2c: E2 [14:54:05]MH_I2C_Read... [14:54:05]Read from MH i2c: E2 03 00 [14:54:05]MH_I2C_Read... [14:54:05]Read from MH i2c: E2 03 00 06 0E 00 90 00 88 [14:54:05]RAPDU: 90 00 [14:54:05]wFMCommunicate OK [14:54:05]wFMCommunicate request_size=7 [14:54:05]MH_SAM_APDU [14:54:05]CAPDU: 80 0D 02 02 02 C5 E5 [14:54:05]Write to MH i2c: E2 0A 00 07 0E 80 0D 02 02 02 00 C5 E5 00 00 3D [14:54:05]Write i2c OK [14:54:05]MH_I2C_Read... [14:54:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:05]Read from MH i2c: E2 [14:54:05]MH_I2C_Read... [14:54:05]Read from MH i2c: E2 03 00 [14:54:05]MH_I2C_Read... [14:54:05]Read from MH i2c: E2 03 00 07 0E 00 90 00 89 [14:54:05]RAPDU: 90 00 [14:54:05]wFMCommunicate OK [14:54:05]wFMCommunicate request_size=4 [14:54:05]MH_SAM_APDU [14:54:05]CAPDU: 80 0D 03 02 [14:54:05]Write to MH i2c: E2 08 00 08 0E 80 0D 03 02 00 00 00 00 91 [14:54:05]Write i2c OK [14:54:05]MH_I2C_Read... [14:54:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:54:05]Read from MH i2c: E2 [14:54:05]MH_I2C_Read... [14:54:05]Read from MH i2c: E2 0B 00 [14:54:05]MH_I2C_Read... [14:54:05]Read from MH i2c: E2 0B 00 08 0E 00 52 E9 A1 39 C1 F8 F6 08 90 00 5E [14:54:05]RAPDU: 52 E9 A1 39 C1 F8 F6 08 90 00 [14:54:05]wFMCommunicate OK [14:54:05]SAM_PROTO_SignData done [14:54:05]FM_MakeSignedData done [14:54:05]CreateOFDProtocolMessage [14:54:05]wFMCommunicate request_size=4 [14:54:05]MH_SAM_APDU [14:54:05]CAPDU: 80 11 00 00 [14:54:05]Write to MH i2c: E2 08 00 09 0E 80 11 00 00 00 00 00 00 91 [14:54:05]Write i2c OK [14:54:05]MH_I2C_Read... [14:54:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:05]Read from MH i2c: E2 [14:54:05]MH_I2C_Read... [14:54:05]Read from MH i2c: E2 17 00 [14:54:05]MH_I2C_Read... [14:54:05]Read from MH i2c: E2 17 00 09 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E7 [14:54:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:54:05]wFMCommunicate OK [14:54:05]CreateOFDProtocolMessage done [14:54:05]OFDSenderStorePacket 67497 [14:54:05]StoreOFDPacket docnum=67497 [14:54:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 2E B5 04 01 7F 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 EA 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 26 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 26 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 0D 1E 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A9 07 01 00 35 04 06 00 0F 58 FB B7 C5 E5 52 E9 A1 39 C1 F8 F6 08 [14:54:05]CheckFolder [14:54:05]dirname=/storage/ofd_packets [14:54:05]CheckFolder done [14:54:05]ProducePacketName [14:54:05]name=ofd_packets/00067497 [14:54:05]NVStorageSaveData ofd_packets/00067497 [14:54:05]File name is /storage/ofd_packets/00067497 [14:54:05]Write 298 bytes [14:54:05]NVStorageSaveData done [14:54:05]OFDSenderStorePacket done [14:54:05]KKMCreateOFDPacket done [14:54:05]NVStorageSaveData kkm_last_timestamp [14:54:05]File name is /storage/kkm_last_timestamp [14:54:05]Write 4 bytes [14:54:05]NVStorageSaveData done [14:54:05]ExternCall_PrintAddStr [14:54:05]wPrintStart [14:54:05]Write to MH i2c: 01 00 00 0A 0E 18 [14:54:05]Write i2c OK [14:54:05]MH_I2C_Read... [14:54:05]Read from MH i2c: 01 [14:54:05]MH_I2C_Read... [14:54:05]Read from MH i2c: 01 07 00 [14:54:05]MH_I2C_Read... [14:54:05]Read from MH i2c: 01 07 00 0A 0E 00 00 00 00 00 FF 0F 2D [14:54:05]RasterBufferAndPrint [14:54:05]line Счет N : (1)507545 [14:54:05]line ИНН: 02508201610067 [14:54:05]line Контрольно-Кассовый Чек [14:54:05]line ПРОДАЖА [14:54:05]line ТРК (МРК, ГНК) : 21 [14:54:05]line Товар: 2710194210 [14:54:05]line ДТ-К-5 [14:54:05]line 40.170 * 74.70 [14:54:05]line = 3000.70 [14:54:05]line НДС 12% НСП 1% [14:54:05]line > о реализуемом товаре [14:54:05]line ИТОГО: 3000.70 [14:54:05]line НСП 1% : 26.55 [14:54:05]line НДС 12% : 318.66 [14:54:05]line Наличными: 0.00 [14:54:05]line Безнал.: 3000.70 [14:54:05]line Место: АЗС № 91 "Партнер Нефть" [14:54:05]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [14:54:05]line СНО: Общий режим [14:54:05]line Чек 95 16.05.2024 14:54 [14:54:05]line Смена: 357 ФФД: 1.0 [14:54:05]line ЗНМ: 0300000119 [14:54:05]line РНМ: 0000000000091845 [14:54:05]line Версия ККМ: 001 [14:54:05]line Платежная система: O! деньги [14:54:05]line ФМ: 0000000000871829 [14:54:05]line ФД: 67497 [14:54:05]line ФПД: 16874854663653 [14:54:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T145405&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67497&fm=16874854663653&tin=02508201610067®Number=0000000000091845&sum=300070 [14:54:06]OFD Sender: Processing packet 67497 [packets to send 35, broken 34] [14:54:06]ProducePacketName [14:54:06]name=ofd_packets/00067497 [14:54:06]OFD Sender: To server: pG, [14:54:06]CommunicateWithHost lk.salyk.kg:30040 [14:54:06]ConnectInit lk.salyk.kg [14:54:06]written 0, free lines is 4095 [14:54:06]Connected sock=9 [14:54: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 38 32 39 0C 01 00 00 2E B5 04 01 7F 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 EA 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 26 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 26 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 0D 1E 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A9 07 01 00 35 04 06 00 0F 58 FB B7 C5 E5 52 E9 A1 39 C1 F8 F6 08 [14:54:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 51 C0 47 00 00 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A9 07 01 00 F4 03 04 00 E7 C5 45 66 B6 04 01 00 00 8D 0F E9 98 A0 FD AB 5D [14:54:06]CommunicateWithHost err = 0 [14:54:06]CheckOFDResponse [14:54:06]1017 (14) - 77093643461234 [14:54:06]1041 (16) - 0000000000871829 [14:54:06]1040 (4) - 67497 [14:54:06]1012 (4) - 16.05.2024 08:37 [14:54:06]1206 (1) - 0 [14:54:06]OFD Sender: Remove packet 67497 [14:54:06]ProducePacketName [14:54:06]name=ofd_packets/00067497 [14:54:06]NVStorageDeleteData [14:54:06]Write to MH i2c: 01 00 00 33 0E 41 [14:54:06]Write i2c OK [14:54:06]MH_I2C_Read... [14:54:06]Read from MH i2c: 01 [14:54:06]MH_I2C_Read... [14:54:06]Read from MH i2c: 01 07 00 [14:54:06]MH_I2C_Read... [14:54:06]Read from MH i2c: 01 07 00 33 0E 00 00 00 00 00 EB 0C 3F [14:54:06]RasterBufferAndPrint [14:54:06]line [14:54:06]line [14:54:06]line [14:54:06]line [14:54:06]line [14:54:06]written 0, free lines is 3316 [14:54:06]MH_Cut [14:54:06]Write to MH i2c: D1 01 00 3A 0E 01 1A [14:54:06]Write i2c OK [14:54:06]MH_I2C_Read... [14:54:06]Read from MH i2c: D1 [14:54:06]MH_I2C_Read... [14:54:06]Read from MH i2c: D1 01 00 [14:54:06]MH_I2C_Read... [14:54:06]Read from MH i2c: D1 01 00 3A 0E 00 19 [14:54:06]Write to MH i2c: 01 00 00 3B 0E 49 [14:54:06]Write i2c OK [14:54:06]MH_I2C_Read... [14:54:06]OFD Sender: No OFD packet to send [14:54:07]*** Cut start [14:54:07]*** Purtial cut [14:54:07]*** Stage 1: CUTSNS_PIN = 1 [14:54:07]*** Stop cut motor [14:54:07]*** Cut end [14:54:07]Read from MH i2c: 01 [14:54:07]MH_I2C_Read... [14:54:07]Read from MH i2c: 01 07 00 [14:54:07]MH_I2C_Read... [14:54:07]Read from MH i2c: 01 07 00 3B 0E 00 00 00 00 00 FF 0F 5E [14:54:07]process_action close_receipt done [14:54:07]requested_data is exist [14:54:07]produce_requested_data [14:54:07]requested_item fm.sn is exist - process it [14:54:07]wFMCommunicate request_size=4 [14:54:07]MH_SAM_APDU [14:54:07]CAPDU: 80 11 00 00 [14:54:07]Write to MH i2c: E2 08 00 3C 0E 80 11 00 00 00 00 00 00 C4 [14:54:07]Write i2c OK [14:54:07]MH_I2C_Read... [14:54:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:07]Read from MH i2c: E2 [14:54:07]MH_I2C_Read... [14:54:07]Read from MH i2c: E2 17 00 [14:54:07]MH_I2C_Read... [14:54:07]Read from MH i2c: E2 17 00 3C 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 1A [14:54:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:54:07]wFMCommunicate OK [14:54:07]requested_item fd.num is exist - process it [14:54:07]SAM_PROTO_GetFieldsCounters [14:54:07]wFMCommunicate request_size=4 [14:54:07]MH_SAM_APDU [14:54:07]CAPDU: 80 13 00 00 [14:54:07]Write to MH i2c: E2 08 00 3D 0E 80 13 00 00 00 00 00 00 C7 [14:54:07]Write i2c OK [14:54:07]MH_I2C_Read... [14:54:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:54:07]Read from MH i2c: E2 [14:54:07]MH_I2C_Read... [14:54:07]Read from MH i2c: E2 62 00 [14:54:07]MH_I2C_Read... [14:54:07]Read from MH i2c: E2 62 00 3D 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 A9 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [14:54: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 A9 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:54:07]wFMCommunicate OK [14:54:07]SAM_PROTO_GetFieldsCounters done [14:54:07]requested_item shift.num is exist - process it [14:54:07]requested_item shift.opened is exist - process it [14:54:07]req_shift_opened [14:54:07]FM_GetShiftState [14:54:07]SAM_PROTO_GetShiftState [14:54:07]wFMCommunicate request_size=4 [14:54:07]MH_SAM_APDU [14:54:07]CAPDU: 80 13 01 00 [14:54:07]Write to MH i2c: E2 08 00 3E 0E 80 13 01 00 00 00 00 00 C9 [14:54:07]Write i2c OK [14:54:07]MH_I2C_Read... [14:54:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:07]Read from MH i2c: E2 [14:54:07]MH_I2C_Read... [14:54:07]Read from MH i2c: E2 0E 00 [14:54:07]MH_I2C_Read... [14:54:07]Read from MH i2c: E2 0E 00 3E 0E 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 75 [14:54:07]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [14:54:07]wFMCommunicate OK [14:54:07]SAM_PROTO_GetShiftState done [14:54:07]FM_GetShiftState done [14:54:07]req_shift_opened done [14:54:07]requested_item shift.open_date is exist - process it [14:54:07]req_shift_open_date [14:54:07]req_shift_open_date done [14:54:07]produce_requested_data done [14:54:07]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67497,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [14:54:07]process_action_free close_receipt [14:54:07]json_value_free [14:54:07]json_value_free done [14:54:07]process_json_proto returns [14:54:07]Send response to host [14:54:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67497,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [14:54:07]free response buf [14:54:07]execute_script done [14:54:07]execute_script returns [14:54:07]free content buf [14:54:07]Sock 10.Close socket [14:54:07]Sock 10.Thread stoped [14:54:12]OFD Sender: No OFD packet to send [14:54:17]OFD Sender: No OFD packet to send [14:54:22]OFD Sender: No OFD packet to send [14:54:27]OFD Sender: No OFD packet to send [14:54:32]OFD Sender: No OFD packet to send [14:54:37]OFD Sender: No OFD packet to send [14:54:42]OFD Sender: No OFD packet to send [14:54:47]OFD Sender: No OFD packet to send [14:54:52]OFD Sender: No OFD packet to send [14:54:54]accept exits with 8 [14:54:54]New connection [14:54:54]New thread 3067182436 created [14:54:54]Thread 3067039076 joined [14:54:54]Waiting for new connection... [14:54:54] Sock 8.Parse request [14:54:54]Sock 8.Check first char [14:54:54]Sock 8.First char is OK [14:54:54]request: POST /json_proto HTTP/1.0 [14:54:54]Method: POST [14:54:54]URL: /json_proto [14:54:54]Method is POST - this is cgi request [14:54:54]url: /json_proto [14:54:54]query_string will be loaded in cgi processing [14:54:54]execute_cgi json_proto POST (null) [14:54:54]execute_cgi path=json_proto method=POST [14:54:54]POST find Content-Length [14:54:54]Host: 172.17.41.195:8080 [14:54:54]Content-Length: 800 [14:54:54]Content-Type: application/json [14:54:54] [14:54:54]POST finish read [14:54:54]Found Content-Length = 800 [14:54:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507547", "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" : 74.70, "quantity" : 26.780, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:54]execute_script... [14: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)507547", "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" : 74.70, "quantity" : 26.780, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:54]POST & json_proto [14:54:54]process_json_proto [14:54:54]json parsed OK: [14:54:54]protocol is kg_v1.0 [14:54:54]action value=close_receipt [14:54:54]process_action close_receipt [14:54:54]cmd_close_receipt [14:54:54]MH_GetDate [14:54:54]Write to MH i2c: F0 00 00 3F 0E 3C [14:54:54]Write i2c OK [14:54:54]MH_I2C_Read... [14:54:54]Read from MH i2c: F0 [14:54:54]MH_I2C_Read... [14:54:54]Read from MH i2c: F0 09 00 [14:54:54]MH_I2C_Read... [14:54:54]Read from MH i2c: F0 09 00 3F 0E 00 3F 1E 46 66 FC 21 6F 64 3E [14:54:54]GetLastDocTimeStamp 1715871245 [14:54:54]current date 1715871295 [14:54:54]FM_GetShiftState [14:54:54]SAM_PROTO_GetShiftState [14:54:54]wFMCommunicate request_size=4 [14:54:54]MH_SAM_APDU [14:54:54]CAPDU: 80 13 01 00 [14:54:54]Write to MH i2c: E2 08 00 40 0E 80 13 01 00 00 00 00 00 CB [14:54:54]Write i2c OK [14:54:54]MH_I2C_Read... [14:54:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:54]Read from MH i2c: E2 [14:54:54]MH_I2C_Read... [14:54:54]Read from MH i2c: E2 0E 00 [14:54:54]MH_I2C_Read... [14:54:54]Read from MH i2c: E2 0E 00 40 0E 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 77 [14:54:54]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [14:54:54]wFMCommunicate OK [14:54:54]SAM_PROTO_GetShiftState done [14:54:54]FM_GetShiftState done [14:54:54]opened in 1715818916 [14:54:54]opened+sec_in_day 1715905316 [14:54:54]quantity*price = 200046 [14:54:54]sum+1 = 200048 [14:54:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.47 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 0.00 Безнал.: 2000.47 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 96 16.05.2024 14:54 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67498 ФПД: 202861927495319 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T145455&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67498&fm=202861927495319&tin=02508201610067®Number=0000000000091845&sum=200047 [14:54:55]StoreToDocumentArchive [14:54:55]shift 357 fd 67498 [14:54:55]save to /storage/0357/doc_00067498 [14:54:55]save last doc name /storage/0357/doc_00067498 to /storage/kkm_last_doc_name [14:54:55]save OK [14:54:55]Clear old archive folders... [14:54:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:54:55]tlvbuf is 017CE000 [14:54:55]SAM_PROTO_ClearQueue [14:54:55]wFMCommunicate request_size=4 [14:54:55]MH_SAM_APDU [14:54:55]CAPDU: 80 09 00 00 [14:54:55]Write to MH i2c: E2 08 00 4D 0E 80 09 00 00 00 00 00 00 CD [14:54:55]Write i2c OK [14:54:55]MH_I2C_Read... [14:54:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:54:55]Read from MH i2c: E2 [14:54:55]MH_I2C_Read... [14:54:55]Read from MH i2c: E2 03 00 [14:54:55]MH_I2C_Read... [14:54:55]Read from MH i2c: E2 03 00 4D 0E 00 90 00 CF [14:54:55]RAPDU: 90 00 [14:54:55]wFMCommunicate OK [14:54:55]SAM_PROTO_ClearQueue done [14:54:55]KKMCreateOFDPacket [14:54:55]OFDProtocolAddRootSTLVToBuf [14:54:55]FM_MakeSignedData [14:54:55]FM_MakeSignedData [14:54:55]SAM_PROTO_SignData [14:54:55]wFMCommunicate request_size=4 [14:54:55]MH_SAM_APDU [14:54:55]CAPDU: 80 0D 01 02 [14:54:55]Write to MH i2c: E2 08 00 4E 0E 80 0D 01 02 00 00 00 00 D5 [14:54:55]Write i2c OK [14:54:55]MH_I2C_Read... [14:54:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:54:55]Read from MH i2c: E2 [14:54:55]MH_I2C_Read... [14:54:55]Read from MH i2c: E2 03 00 [14:54:55]MH_I2C_Read... [14:54:55]Read from MH i2c: E2 03 00 4E 0E 00 90 00 D0 [14:54:55]RAPDU: 90 00 [14:54:55]wFMCommunicate OK [14:54:55]wFMCommunicate request_size=255 [14:54:55]MH_SAM_APDU [14:54: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 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 3F 1E 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 AA 07 01 00 35 04 06 00 B8 80 79 20 [14:54:55]Write to MH i2c: E2 02 01 4F 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 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 3F 1E 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 AA 07 01 00 35 04 06 00 B8 80 79 20 00 00 93 [14:54:55]Write i2c OK [14:54:55]MH_I2C_Read... [14:54:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:55]Read from MH i2c: E2 [14:54:55]MH_I2C_Read... [14:54:55]Read from MH i2c: E2 03 00 [14:54:55]MH_I2C_Read... [14:54:55]Read from MH i2c: E2 03 00 4F 0E 00 90 00 D1 [14:54:55]RAPDU: 90 00 [14:54:55]wFMCommunicate OK [14:54:55]wFMCommunicate request_size=7 [14:54:55]MH_SAM_APDU [14:54:55]CAPDU: 80 0D 02 02 02 76 97 [14:54:55]Write to MH i2c: E2 0A 00 50 0E 80 0D 02 02 02 00 76 97 00 00 E9 [14:54:55]Write i2c OK [14:54:55]MH_I2C_Read... [14:54:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:55]Read from MH i2c: E2 [14:54:55]MH_I2C_Read... [14:54:55]Read from MH i2c: E2 03 00 [14:54:55]MH_I2C_Read... [14:54:55]Read from MH i2c: E2 03 00 50 0E 00 90 00 D2 [14:54:55]RAPDU: 90 00 [14:54:55]wFMCommunicate OK [14:54:55]wFMCommunicate request_size=4 [14:54:55]MH_SAM_APDU [14:54:55]CAPDU: 80 0D 03 02 [14:54:55]Write to MH i2c: E2 08 00 51 0E 80 0D 03 02 00 00 00 00 DA [14:54:55]Write i2c OK [14:54:55]MH_I2C_Read... [14:54:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:54:55]Read from MH i2c: E2 [14:54:55]MH_I2C_Read... [14:54:55]Read from MH i2c: E2 0B 00 [14:54:55]MH_I2C_Read... [14:54:55]Read from MH i2c: E2 0B 00 51 0E 00 F3 CA 14 B0 65 0B 6F 44 90 00 7F [14:54:55]RAPDU: F3 CA 14 B0 65 0B 6F 44 90 00 [14:54:55]wFMCommunicate OK [14:54:55]SAM_PROTO_SignData done [14:54:55]FM_MakeSignedData done [14:54:55]CreateOFDProtocolMessage [14:54:55]wFMCommunicate request_size=4 [14:54:55]MH_SAM_APDU [14:54:55]CAPDU: 80 11 00 00 [14:54:55]Write to MH i2c: E2 08 00 52 0E 80 11 00 00 00 00 00 00 DA [14:54:55]Write i2c OK [14:54:55]MH_I2C_Read... [14:54:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:55]Read from MH i2c: E2 [14:54:55]MH_I2C_Read... [14:54:55]Read from MH i2c: E2 17 00 [14:54:55]MH_I2C_Read... [14:54:55]Read from MH i2c: E2 17 00 52 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 30 [14:54:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:54:55]wFMCommunicate OK [14:54:55]CreateOFDProtocolMessage done [14:54:55]OFDSenderStorePacket 67498 [14:54:55]StoreOFDPacket docnum=67498 [14:54:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 D0 48 04 01 08 EB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 3F 1E 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 AA 07 01 00 35 04 06 00 B8 80 79 20 76 97 F3 CA 14 B0 65 0B 6F 44 [14:54:55]CheckFolder [14:54:55]dirname=/storage/ofd_packets [14:54:55]CheckFolder done [14:54:55]ProducePacketName [14:54:55]name=ofd_packets/00067498 [14:54:55]NVStorageSaveData ofd_packets/00067498 [14:54:55]File name is /storage/ofd_packets/00067498 [14:54:55]Write 298 bytes [14:54:55]NVStorageSaveData done [14:54:55]OFDSenderStorePacket done [14:54:55]KKMCreateOFDPacket done [14:54:55]NVStorageSaveData kkm_last_timestamp [14:54:55]File name is /storage/kkm_last_timestamp [14:54:55]Write 4 bytes [14:54:55]NVStorageSaveData done [14:54:55]ExternCall_PrintAddStr [14:54:55]wPrintStart [14:54:55]Write to MH i2c: 01 00 00 53 0E 61 [14:54:55]Write i2c OK [14:54:55]MH_I2C_Read... [14:54:55]Read from MH i2c: 01 [14:54:55]MH_I2C_Read... [14:54:55]Read from MH i2c: 01 07 00 [14:54:55]MH_I2C_Read... [14:54:55]Read from MH i2c: 01 07 00 53 0E 00 00 00 00 00 FF 0F 76 [14:54:55]RasterBufferAndPrint [14:54:55]line Счет N : (1)507547 [14:54:55]line ИНН: 02508201610067 [14:54:55]line Контрольно-Кассовый Чек [14:54:55]line ПРОДАЖА [14:54:55]line ТРК (МРК, ГНК) : 11 [14:54:55]line Товар: 2710194210 [14:54:55]line ДТ-К-5 [14:54:55]line 26.780 * 74.70 [14:54:55]line = 2000.47 [14:54:55]line НДС 12% НСП 1% [14:54:55]line > о реализуемом товаре [14:54:55]line ИТОГО: 2000.47 [14:54:55]line НСП 1% : 17.70 [14:54:55]line НДС 12% : 212.44 [14:54:55]line Наличными: 0.00 [14:54:55]line Безнал.: 2000.47 [14:54:55]line Место: АЗС № 91 "Партнер Нефть" [14:54:55]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [14:54:55]line СНО: Общий режим [14:54:55]line Чек 96 16.05.2024 14:54 [14:54:55]line Смена: 357 ФФД: 1.0 [14:54:55]line ЗНМ: 0300000119 [14:54:55]line РНМ: 0000000000091845 [14:54:55]line Версия ККМ: 001 [14:54:56]line Платежная система: O! деньги [14:54:56]line ФМ: 0000000000871829 [14:54:56]line ФД: 67498 [14:54:56]line ФПД: 202861927495319 [14:54:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T145455&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67498&fm=202861927495319&tin=02508201610067®Number=0000000000091845&sum=200047 [14:54:56]OFD Sender: Processing packet 67498 [packets to send 35, broken 34] [14:54:56]ProducePacketName [14:54:56]name=ofd_packets/00067498 [14:54:56]OFD Sender: To server: pG, [14:54:56]CommunicateWithHost lk.salyk.kg:30040 [14:54:56]ConnectInit lk.salyk.kg [14:54:56]written 0, free lines is 4095 [14:54:56]Connected sock=10 [14:54: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 38 32 39 0C 01 00 00 D0 48 04 01 08 EB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 3F 1E 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 AA 07 01 00 35 04 06 00 B8 80 79 20 76 97 F3 CA 14 B0 65 0B 6F 44 [14:54:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 AF 67 47 00 A0 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 38 32 39 10 04 04 00 AA 07 01 00 F4 03 04 00 19 C6 45 66 B6 04 01 00 00 65 69 9C 49 9C 2C 23 42 [14:54:56]CommunicateWithHost err = 0 [14:54:56]CheckOFDResponse [14:54:56]1017 (14) - 77093643461234 [14:54:56]1041 (16) - 0000000000871829 [14:54:56]1040 (4) - 67498 [14:54:56]1012 (4) - 16.05.2024 08:38 [14:54:56]1206 (1) - 0 [14:54:56]OFD Sender: Remove packet 67498 [14:54:56]ProducePacketName [14:54:56]name=ofd_packets/00067498 [14:54:56]NVStorageDeleteData [14:54:56]Write to MH i2c: 01 00 00 7C 0E 8A [14:54:56]Write i2c OK [14:54:56]MH_I2C_Read... [14:54:56]Read from MH i2c: 01 [14:54:56]MH_I2C_Read... [14:54:56]Read from MH i2c: 01 07 00 [14:54:56]MH_I2C_Read... [14:54:56]Read from MH i2c: 01 07 00 7C 0E 00 00 00 00 00 F1 0C 8E [14:54:56]RasterBufferAndPrint [14:54:56]line [14:54:56]line [14:54:56]line [14:54:56]line [14:54:56]line [14:54:56]written 0, free lines is 3319 [14:54:56]MH_Cut [14:54:56]Write to MH i2c: D1 01 00 83 0E 01 63 [14:54:56]Write i2c OK [14:54:56]MH_I2C_Read... [14:54:56]Read from MH i2c: D1 [14:54:56]MH_I2C_Read... [14:54:56]Read from MH i2c: D1 01 00 [14:54:56]MH_I2C_Read... [14:54:56]Read from MH i2c: D1 01 00 83 0E 00 62 [14:54:56]Write to MH i2c: 01 00 00 84 0E 92 [14:54:56]Write i2c OK [14:54:56]MH_I2C_Read... [14:54:56]OFD Sender: No OFD packet to send [14:54:57]*** Cut start [14:54:57]*** Purtial cut [14:54:57]*** CUTSNS_PIN = 0 [14:54:57]*** Stage 1: CUTSNS_PIN = 1 [14:54:59]Read from MH i2c: 01 [14:54:59]MH_I2C_Read... [14:54:59]*** Stop cut motor [14:54:59]*** Cut end [14:54:59]Read from MH i2c: 01 07 00 [14:54:59]MH_I2C_Read... [14:54:59]Read from MH i2c: 01 07 00 84 0E 00 00 00 00 00 FF 0F A7 [14:54:59]process_action close_receipt done [14:54:59]requested_data is exist [14:54:59]produce_requested_data [14:54:59]requested_item fm.sn is exist - process it [14:54:59]wFMCommunicate request_size=4 [14:54:59]MH_SAM_APDU [14:54:59]CAPDU: 80 11 00 00 [14:54:59]Write to MH i2c: E2 08 00 85 0E 80 11 00 00 00 00 00 00 0D [14:54:59]Write i2c OK [14:54:59]MH_I2C_Read... [14:54:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:59]Read from MH i2c: E2 [14:54:59]MH_I2C_Read... [14:54:59]Read from MH i2c: E2 17 00 [14:54:59]MH_I2C_Read... [14:54:59]Read from MH i2c: E2 17 00 85 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 63 [14:54:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:54:59]wFMCommunicate OK [14:54:59]requested_item fd.num is exist - process it [14:54:59]SAM_PROTO_GetFieldsCounters [14:54:59]wFMCommunicate request_size=4 [14:54:59]MH_SAM_APDU [14:54:59]CAPDU: 80 13 00 00 [14:54:59]Write to MH i2c: E2 08 00 86 0E 80 13 00 00 00 00 00 00 10 [14:54:59]Write i2c OK [14:54:59]MH_I2C_Read... [14:54:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:54:59]Read from MH i2c: E2 [14:54:59]MH_I2C_Read... [14:54:59]Read from MH i2c: E2 62 00 [14:54:59]MH_I2C_Read... [14:54:59]Read from MH i2c: E2 62 00 86 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 AA 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [14:54: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 AA 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:54:59]wFMCommunicate OK [14:54:59]SAM_PROTO_GetFieldsCounters done [14:54:59]requested_item shift.num is exist - process it [14:54:59]requested_item shift.opened is exist - process it [14:54:59]req_shift_opened [14:54:59]FM_GetShiftState [14:54:59]SAM_PROTO_GetShiftState [14:54:59]wFMCommunicate request_size=4 [14:54:59]MH_SAM_APDU [14:54:59]CAPDU: 80 13 01 00 [14:54:59]Write to MH i2c: E2 08 00 87 0E 80 13 01 00 00 00 00 00 12 [14:54:59]Write i2c OK [14:54:59]MH_I2C_Read... [14:54:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:59]Read from MH i2c: E2 [14:54:59]MH_I2C_Read... [14:54:59]Read from MH i2c: E2 0E 00 [14:54:59]MH_I2C_Read... [14:54:59]Read from MH i2c: E2 0E 00 87 0E 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 BE [14:54:59]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [14:54:59]wFMCommunicate OK [14:54:59]SAM_PROTO_GetShiftState done [14:54:59]FM_GetShiftState done [14:54:59]req_shift_opened done [14:54:59]requested_item shift.open_date is exist - process it [14:54:59]req_shift_open_date [14:54:59]req_shift_open_date done [14:54:59]produce_requested_data done [14:54:59]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67498,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [14:54:59]process_action_free close_receipt [14:54:59]json_value_free [14:54:59]json_value_free done [14:54:59]process_json_proto returns [14:54:59]Send response to host [14:54:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67498,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [14:54:59]free response buf [14:54:59]execute_script done [14:54:59]execute_script returns [14:54:59]free content buf [14:54:59]Sock 8.Close socket [14:54:59]Sock 8.Thread stoped [14:55:01]OFD Sender: No OFD packet to send [14:55:06]OFD Sender: No OFD packet to send [14:55:11]OFD Sender: No OFD packet to send [14:55:16]OFD Sender: No OFD packet to send [14:55:21]OFD Sender: No OFD packet to send [14:55:26]OFD Sender: No OFD packet to send [14:55:31]OFD Sender: No OFD packet to send [14:55:36]OFD Sender: No OFD packet to send [14:55:41]OFD Sender: No OFD packet to send [14:55:47]OFD Sender: No OFD packet to send [14:55:52]OFD Sender: No OFD packet to send [14:55:57]OFD Sender: No OFD packet to send [14:56:02]OFD Sender: No OFD packet to send [14:56:07]OFD Sender: No OFD packet to send [14:56:12]OFD Sender: No OFD packet to send [14:56:17]OFD Sender: No OFD packet to send [14:56:22]OFD Sender: No OFD packet to send [14:56:27]OFD Sender: No OFD packet to send [14:56:32]OFD Sender: No OFD packet to send [14:56:37]OFD Sender: No OFD packet to send [14:56:42]OFD Sender: No OFD packet to send [14:56:47]OFD Sender: No OFD packet to send [14:56:52]OFD Sender: No OFD packet to send [14:56:57]OFD Sender: No OFD packet to send [14:57:02]OFD Sender: No OFD packet to send [14:57: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:24]accept exits with 9 [14:57:24]New connection [14:57:24]New thread 3067039076 created [14:57:24]Thread 3067182436 joined [14:57:24]Waiting for new connection... [14:57:24] Sock 9.Parse request [14:57:24]Sock 9.Check first char [14:57:24]Sock 9.First char is OK [14:57:24]request: POST /json_proto HTTP/1.0 [14:57:24]Method: POST [14:57:24]URL: /json_proto [14:57:24]Method is POST - this is cgi request [14:57:24]url: /json_proto [14:57:24]query_string will be loaded in cgi processing [14:57:24]execute_cgi json_proto POST (null) [14:57:24]execute_cgi path=json_proto method=POST [14:57:24]POST find Content-Length [14:57:24]Host: 172.17.41.195:8080 [14:57:24]Content-Length: 1227 [14:57:24]Content-Type: application/json [14:57:24] [14:57:24]POST finish read [14:57:24]Found Content-Length = 1227 [14:57:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507546\u000A16.05.2024 14:39\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 110.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 8217.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3973072/75/77/26\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:24]execute_script... [14:57:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507546\u000A16.05.2024 14:39\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 110.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 8217.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3973072/75/77/26\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:24]POST & json_proto [14:57:24]process_json_proto [14:57:24]json parsed OK: [14:57:24]protocol is kg_v1.0 [14:57:24]action value=print_text [14:57:24]process_action print_text [14:57:24]cmd_print_text [14:57:24]ExternCall_PrintAddStr [14:57:24]wPrintStart [14:57:24]Write to MH i2c: 01 00 00 88 0E 96 [14:57:24]Write i2c OK [14:57:24]MH_I2C_Read... [14:57:24]Read from MH i2c: 01 [14:57:24]MH_I2C_Read... [14:57:24]Read from MH i2c: 01 07 00 [14:57:24]MH_I2C_Read... [14:57:24]Read from MH i2c: 01 07 00 88 0E 00 00 00 00 00 FF 0F AB [14:57:24]RasterBufferAndPrint [14:57:24]line *****ТОВАРНЫЙ ЧЕК***** [14:57:24]line АЗС-91 [14:57:24]line Партнер нефть [14:57:24]line 02508201610067 [14:57:24]line Кассир : Пайзулдаева А. [14:57:24]line Счет N : (1)507546 [14:57:24]line 16.05.2024 14:39 [14:57:24]line ПРОДАЖА [14:57:24]line ТРК (МРК, ГНК): 41 [14:57:24]line Вид ГСМ : 2710194210 [14:57:24]line ДТ-К-5 [14:57:24]line 110.000 x 74.70 [14:57:24]line ИТОГ: 8217.00 [14:57:24]line Тип оплаты: Талоны: Топливные Талоны [14:57:24]line 3973072/75/77/26 [14:57:24]line ______________________ [14:57:24]line (подпись) [14:57:24]written 0, free lines is 4095 [14:57:24]Write to MH i2c: 01 00 00 9C 0E AA [14:57:24]Write i2c OK [14:57:24]MH_I2C_Read... [14:57:24]Read from MH i2c: 01 [14:57:24]MH_I2C_Read... [14:57:24]Read from MH i2c: 01 07 00 [14:57:24]MH_I2C_Read... [14:57:24]Read from MH i2c: 01 07 00 9C 0E 00 00 00 00 00 14 0E D3 [14:57:24]RasterBufferAndPrint [14:57:24]line [14:57:24]line [14:57:24]line [14:57:24]line [14:57:24]line [14:57:24]written 0, free lines is 3606 [14:57:24]MH_Cut [14:57:24]Write to MH i2c: D1 01 00 A3 0E 01 83 [14:57:24]Write i2c OK [14:57:24]MH_I2C_Read... [14:57:24]Read from MH i2c: D1 [14:57:24]MH_I2C_Read... [14:57:24]Read from MH i2c: D1 01 00 [14:57:24]MH_I2C_Read... [14:57:24]Read from MH i2c: D1 01 00 A3 0E 00 82 [14:57:24]Write to MH i2c: 01 00 00 A4 0E B2 [14:57:24]Write i2c OK [14:57:24]MH_I2C_Read... [14:57:24]*** Cut start [14:57:24]*** Purtial cut [14:57:24]*** Stage 1: CUTSNS_PIN = 1 [14:57:25]Read from MH i2c: 01 [14:57:25]MH_I2C_Read... [14:57:25]*** Stop cut motor [14:57:25]*** Cut end [14:57:25]Read from MH i2c: 01 07 00 [14:57:25]MH_I2C_Read... [14:57:25]Read from MH i2c: 01 07 00 A4 0E 00 00 00 00 00 FF 0F C7 [14:57:25]process_action print_text done [14:57:25]requested_data is exist [14:57:25]produce_requested_data [14:57:25]requested_item fm.sn is exist - process it [14:57:25]wFMCommunicate request_size=4 [14:57:25]MH_SAM_APDU [14:57:25]CAPDU: 80 11 00 00 [14:57:25]Write to MH i2c: E2 08 00 A5 0E 80 11 00 00 00 00 00 00 2D [14:57:25]Write i2c OK [14:57:25]MH_I2C_Read... [14:57:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:25]Read from MH i2c: E2 [14:57:25]MH_I2C_Read... [14:57:25]Read from MH i2c: E2 17 00 [14:57:25]MH_I2C_Read... [14:57:25]Read from MH i2c: E2 17 00 A5 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 83 [14:57:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:57:25]wFMCommunicate OK [14:57:25]requested_item fd.num is exist - process it [14:57:25]SAM_PROTO_GetFieldsCounters [14:57:25]wFMCommunicate request_size=4 [14:57:25]MH_SAM_APDU [14:57:25]CAPDU: 80 13 00 00 [14:57:25]Write to MH i2c: E2 08 00 A6 0E 80 13 00 00 00 00 00 00 30 [14:57:25]Write i2c OK [14:57:25]MH_I2C_Read... [14:57:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:57:25]Read from MH i2c: E2 [14:57:25]MH_I2C_Read... [14:57:25]Read from MH i2c: E2 62 00 [14:57:25]MH_I2C_Read... [14:57:25]Read from MH i2c: E2 62 00 A6 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 AA 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [14:57: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 AA 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:57:25]wFMCommunicate OK [14:57:25]SAM_PROTO_GetFieldsCounters done [14:57:25]requested_item shift.num is exist - process it [14:57:25]requested_item shift.opened is exist - process it [14:57:25]req_shift_opened [14:57:25]FM_GetShiftState [14:57:25]SAM_PROTO_GetShiftState [14:57:25]wFMCommunicate request_size=4 [14:57:25]MH_SAM_APDU [14:57:25]CAPDU: 80 13 01 00 [14:57:25]Write to MH i2c: E2 08 00 A7 0E 80 13 01 00 00 00 00 00 32 [14:57:25]Write i2c OK [14:57:25]MH_I2C_Read... [14:57:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:25]Read from MH i2c: E2 [14:57:25]MH_I2C_Read... [14:57:25]Read from MH i2c: E2 0E 00 [14:57:25]MH_I2C_Read... [14:57:25]Read from MH i2c: E2 0E 00 A7 0E 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 DE [14:57:25]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [14:57:25]wFMCommunicate OK [14:57:25]SAM_PROTO_GetShiftState done [14:57:25]FM_GetShiftState done [14:57:25]req_shift_opened done [14:57:25]requested_item shift.open_date is exist - process it [14:57:25]req_shift_open_date [14:57:25]req_shift_open_date done [14:57:25]produce_requested_data done [14:57:25]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67498,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [14:57:25]process_action_free print_text [14:57:25]json_value_free [14:57:25]json_value_free done [14:57:25]process_json_proto returns [14:57:25]Send response to host [14:57:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67498,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [14:57:25]free response buf [14:57:25]execute_script done [14:57:25]execute_script returns [14:57:25]free content buf [14:57:25]Sock 9.Close socket [14:57:25]Sock 9.Thread stoped [14:57:27]OFD Sender: No OFD packet to send [14:57:32]OFD Sender: No OFD packet to send [14:57:37]OFD Sender: No OFD packet to send [14:57:42]OFD Sender: No OFD packet to send [14:57:45]accept exits with 8 [14:57:45]New connection [14:57:45]New thread 3067182436 created [14:57:45]Thread 3067039076 joined [14:57:45]Waiting for new connection... [14:57:45] Sock 8.Parse request [14:57:45]Sock 8.Check first char [14:57:45]Sock 8.First char is OK [14:57:45]request: POST /json_proto HTTP/1.0 [14:57:45]Method: POST [14:57:45]URL: /json_proto [14:57:45]Method is POST - this is cgi request [14:57:45]url: /json_proto [14:57:45]query_string will be loaded in cgi processing [14:57:45]execute_cgi json_proto POST (null) [14:57:45]execute_cgi path=json_proto method=POST [14:57:45]POST find Content-Length [14:57:45]Host: 172.17.41.195:8080 [14:57:45]Content-Length: 796 [14:57:45]Content-Type: application/json [14:57:45] [14:57:45]POST finish read [14:57:45]Found Content-Length = 796 [14:57:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507548", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:45]execute_script... [14:57:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507548", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:45]POST & json_proto [14:57:45]process_json_proto [14:57:45]json parsed OK: [14:57:45]protocol is kg_v1.0 [14:57:45]action value=close_receipt [14:57:45]process_action close_receipt [14:57:45]cmd_close_receipt [14:57:45]MH_GetDate [14:57:45]Write to MH i2c: F0 00 00 A8 0E A5 [14:57:45]Write i2c OK [14:57:45]MH_I2C_Read... [14:57:45]Read from MH i2c: F0 [14:57:45]MH_I2C_Read... [14:57:45]Read from MH i2c: F0 09 00 [14:57:45]MH_I2C_Read... [14:57:45]Read from MH i2c: F0 09 00 A8 0E 00 EB 1E 46 66 FC 21 6F 64 53 [14:57:45]GetLastDocTimeStamp 1715871295 [14:57:45]current date 1715871467 [14:57:45]FM_GetShiftState [14:57:45]SAM_PROTO_GetShiftState [14:57:45]wFMCommunicate request_size=4 [14:57:45]MH_SAM_APDU [14:57:45]CAPDU: 80 13 01 00 [14:57:45]Write to MH i2c: E2 08 00 A9 0E 80 13 01 00 00 00 00 00 34 [14:57:45]Write i2c OK [14:57:45]MH_I2C_Read... [14:57:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:45]Read from MH i2c: E2 [14:57:45]MH_I2C_Read... [14:57:45]Read from MH i2c: E2 0E 00 [14:57:45]MH_I2C_Read... [14:57:45]Read from MH i2c: E2 0E 00 A9 0E 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 E0 [14:57:45]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [14:57:45]wFMCommunicate OK [14:57:45]SAM_PROTO_GetShiftState done [14:57:45]FM_GetShiftState done [14:57:45]opened in 1715818916 [14:57:45]opened+sec_in_day 1715905316 [14:57:45]quantity*price = 200010 [14:57:45]sum+1 = 200011 [14:57:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.10 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 0.00 Безнал.: 2000.10 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 97 16.05.2024 14:57 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67499 ФПД: 239713468396720 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T145747&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67499&fm=239713468396720&tin=02508201610067®Number=0000000000091845&sum=200010 [14:57:47]StoreToDocumentArchive [14:57:47]shift 357 fd 67499 [14:57:47]save to /storage/0357/doc_00067499 [14:57:47]save last doc name /storage/0357/doc_00067499 to /storage/kkm_last_doc_name [14:57:47]save OK [14:57:47]Clear old archive folders... [14:57:47]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:57:47]tlvbuf is 01761BA0 [14:57:47]SAM_PROTO_ClearQueue [14:57:47]wFMCommunicate request_size=4 [14:57:47]MH_SAM_APDU [14:57:47]CAPDU: 80 09 00 00 [14:57:47]Write to MH i2c: E2 08 00 B6 0E 80 09 00 00 00 00 00 00 36 [14:57:47]Write i2c OK [14:57:47]MH_I2C_Read... [14:57:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:57:47]OFD Sender: No OFD packet to send [14:57:47]Read from MH i2c: E2 [14:57:47]MH_I2C_Read... [14:57:47]Read from MH i2c: E2 03 00 [14:57:47]MH_I2C_Read... [14:57:47]Read from MH i2c: E2 03 00 B6 0E 00 90 00 38 [14:57:47]RAPDU: 90 00 [14:57:47]wFMCommunicate OK [14:57:47]SAM_PROTO_ClearQueue done [14:57:47]KKMCreateOFDPacket [14:57:47]OFDProtocolAddRootSTLVToBuf [14:57:47]FM_MakeSignedData [14:57:47]FM_MakeSignedData [14:57:47]SAM_PROTO_SignData [14:57:47]wFMCommunicate request_size=4 [14:57:47]MH_SAM_APDU [14:57:47]CAPDU: 80 0D 01 02 [14:57:47]Write to MH i2c: E2 08 00 B7 0E 80 0D 01 02 00 00 00 00 3E [14:57:47]Write i2c OK [14:57:47]MH_I2C_Read... [14:57:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:57:47]Read from MH i2c: E2 [14:57:47]MH_I2C_Read... [14:57:47]Read from MH i2c: E2 03 00 [14:57:47]MH_I2C_Read... [14:57:47]Read from MH i2c: E2 03 00 B7 0E 00 90 00 39 [14:57:47]RAPDU: 90 00 [14:57:47]wFMCommunicate OK [14:57:47]wFMCommunicate request_size=255 [14:57:47]MH_SAM_APDU [14:57:47]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 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 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 EB 1E 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 AB 07 01 00 35 04 06 00 [14:57:47]Write to MH i2c: E2 02 01 B8 0E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 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 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 EB 1E 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 AB 07 01 00 35 04 06 00 00 00 33 [14:57:47]Write i2c OK [14:57:47]MH_I2C_Read... [14:57:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:47]Read from MH i2c: E2 [14:57:47]MH_I2C_Read... [14:57:47]Read from MH i2c: E2 03 00 [14:57:47]MH_I2C_Read... [14:57:47]Read from MH i2c: E2 03 00 B8 0E 00 90 00 3A [14:57:47]RAPDU: 90 00 [14:57:47]wFMCommunicate OK [14:57:47]wFMCommunicate request_size=11 [14:57:47]MH_SAM_APDU [14:57:47]CAPDU: 80 0D 02 02 06 DA 04 A4 21 B4 B0 [14:57:47]Write to MH i2c: E2 0E 00 B9 0E 80 0D 02 02 06 00 DA 04 A4 21 B4 B0 00 00 54 [14:57:47]Write i2c OK [14:57:47]MH_I2C_Read... [14:57:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:47]Read from MH i2c: E2 [14:57:47]MH_I2C_Read... [14:57:47]Read from MH i2c: E2 03 00 [14:57:47]MH_I2C_Read... [14:57:47]Read from MH i2c: E2 03 00 B9 0E 00 90 00 3B [14:57:47]RAPDU: 90 00 [14:57:47]wFMCommunicate OK [14:57:47]wFMCommunicate request_size=4 [14:57:47]MH_SAM_APDU [14:57:47]CAPDU: 80 0D 03 02 [14:57:47]Write to MH i2c: E2 08 00 BA 0E 80 0D 03 02 00 00 00 00 43 [14:57:47]Write i2c OK [14:57:47]MH_I2C_Read... [14:57:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:57:47]Read from MH i2c: E2 [14:57:47]MH_I2C_Read... [14:57:47]Read from MH i2c: E2 0B 00 [14:57:47]MH_I2C_Read... [14:57:47]Read from MH i2c: E2 0B 00 BA 0E 00 35 EB FC D0 B1 EC 76 52 90 00 95 [14:57:47]RAPDU: 35 EB FC D0 B1 EC 76 52 90 00 [14:57:47]wFMCommunicate OK [14:57:47]SAM_PROTO_SignData done [14:57:47]FM_MakeSignedData done [14:57:47]CreateOFDProtocolMessage [14:57:47]wFMCommunicate request_size=4 [14:57:47]MH_SAM_APDU [14:57:47]CAPDU: 80 11 00 00 [14:57:47]Write to MH i2c: E2 08 00 BB 0E 80 11 00 00 00 00 00 00 43 [14:57:47]Write i2c OK [14:57:47]MH_I2C_Read... [14:57:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:47]Read from MH i2c: E2 [14:57:47]MH_I2C_Read... [14:57:47]Read from MH i2c: E2 17 00 [14:57:47]MH_I2C_Read... [14:57:47]Read from MH i2c: E2 17 00 BB 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 99 [14:57:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:57:47]wFMCommunicate OK [14:57:47]CreateOFDProtocolMessage done [14:57:47]OFDSenderStorePacket 67499 [14:57:47]StoreOFDPacket docnum=67499 [14:57:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 F3 C0 08 01 88 4E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 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 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 EB 1E 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 AB 07 01 00 35 04 06 00 DA 04 A4 21 B4 B0 35 EB FC D0 B1 EC 76 52 [14:57:47]CheckFolder [14:57:47]dirname=/storage/ofd_packets [14:57:47]CheckFolder done [14:57:47]ProducePacketName [14:57:47]name=ofd_packets/00067499 [14:57:47]NVStorageSaveData ofd_packets/00067499 [14:57:47]File name is /storage/ofd_packets/00067499 [14:57:47]Write 302 bytes [14:57:47]NVStorageSaveData done [14:57:47]OFDSenderStorePacket done [14:57:47]KKMCreateOFDPacket done [14:57:47]NVStorageSaveData kkm_last_timestamp [14:57:47]File name is /storage/kkm_last_timestamp [14:57:47]Write 4 bytes [14:57:47]NVStorageSaveData done [14:57:47]ExternCall_PrintAddStr [14:57:47]wPrintStart [14:57:47]Write to MH i2c: 01 00 00 BC 0E CA [14:57:47]Write i2c OK [14:57:47]MH_I2C_Read... [14:57:47]Read from MH i2c: 01 [14:57:47]MH_I2C_Read... [14:57:47]Read from MH i2c: 01 07 00 [14:57:47]MH_I2C_Read... [14:57:47]Read from MH i2c: 01 07 00 BC 0E 00 00 00 00 00 FF 0F DF [14:57:47]RasterBufferAndPrint [14:57:47]line Счет N : (1)507548 [14:57:47]line ИНН: 02508201610067 [14:57:47]line Контрольно-Кассовый Чек [14:57:47]line ПРОДАЖА [14:57:47]line ТРК (МРК, ГНК) : 32 [14:57:47]line Товар: 2710124130 [14:57:47]line Super-92-К-5 [14:57:47]line 29.500 * 67.80 [14:57:47]line = 2000.10 [14:57:47]line НДС 12% НСП 1% [14:57:47]line > о реализуемом товаре [14:57:47]line ИТОГО: 2000.10 [14:57:47]line НСП 1% : 17.70 [14:57:47]line НДС 12% : 212.40 [14:57:47]line Наличными: 0.00 [14:57:47]line Безнал.: 2000.10 [14:57:47]line Место: АЗС № 91 "Партнер Нефть" [14:57:47]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [14:57:47]line СНО: Общий режим [14:57:47]line Чек 97 16.05.2024 14:57 [14:57:47]line Смена: 357 ФФД: 1.0 [14:57:47]line ЗНМ: 0300000119 [14:57:47]line РНМ: 0000000000091845 [14:57:47]line Версия ККМ: 001 [14:57:47]line Платежная система: O! деньги [14:57:47]line ФМ: 0000000000871829 [14:57:47]line ФД: 67499 [14:57:47]line ФПД: 239713468396720 [14:57:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T145747&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67499&fm=239713468396720&tin=02508201610067®Number=0000000000091845&sum=200010 [14:57:47]OFD Sender: Processing packet 67499 [packets to send 35, broken 34] [14:57:47]ProducePacketName [14:57:47]name=ofd_packets/00067499 [14:57:47]OFD Sender: To server: pG, [14:57:47]CommunicateWithHost lk.salyk.kg:30040 [14:57:47]ConnectInit lk.salyk.kg [14:57:47]written 0, free lines is 4095 [14:57:48]Connected sock=10 [14: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 38 32 39 10 01 00 00 F3 C0 08 01 88 4E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 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 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 EB 1E 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 AB 07 01 00 35 04 06 00 DA 04 A4 21 B4 B0 35 EB FC D0 B1 EC 76 52 [14: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 38 32 39 4F 00 00 00 17 15 47 00 B1 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 38 32 39 10 04 04 00 AB 07 01 00 F4 03 04 00 C5 C6 45 66 B6 04 01 00 00 26 E0 BF 83 1E AB C1 DF [14:57:48]CommunicateWithHost err = 0 [14:57:48]CheckOFDResponse [14:57:48]1017 (14) - 77093643461234 [14:57:48]1041 (16) - 0000000000871829 [14:57:48]1040 (4) - 67499 [14:57:48]1012 (4) - 16.05.2024 08:41 [14:57:48]1206 (1) - 0 [14:57:48]OFD Sender: Remove packet 67499 [14:57:48]ProducePacketName [14:57:48]name=ofd_packets/00067499 [14:57:48]NVStorageDeleteData [14:57:48]Write to MH i2c: 01 00 00 E5 0E F3 [14:57:48]Write i2c OK [14:57:48]MH_I2C_Read... [14:57:48]Read from MH i2c: 01 [14:57:48]MH_I2C_Read... [14:57:48]Read from MH i2c: 01 07 00 [14:57:48]MH_I2C_Read... [14:57:48]Read from MH i2c: 01 07 00 E5 0E 00 00 00 00 00 E6 0C EC [14:57:48]RasterBufferAndPrint [14:57:48]line [14:57:48]line [14:57:48]line [14:57:48]line [14:57:48]line [14:57:48]written 0, free lines is 3308 [14:57:48]MH_Cut [14:57:48]Write to MH i2c: D1 01 00 EC 0E 01 CC [14:57:48]Write i2c OK [14:57:48]MH_I2C_Read... [14:57:48]Read from MH i2c: D1 [14:57:48]MH_I2C_Read... [14:57:48]Read from MH i2c: D1 01 00 [14:57:48]MH_I2C_Read... [14:57:48]Read from MH i2c: D1 01 00 EC 0E 00 CB [14:57:48]Write to MH i2c: 01 00 00 ED 0E FB [14:57:48]Write i2c OK [14:57:48]MH_I2C_Read... [14:57:48]OFD Sender: No OFD packet to send [14:57:49]*** Cut start [14:57:49]*** Purtial cut [14:57:49]*** CUTSNS_PIN = 0 [14:57:49]*** Stage 1: CUTSNS_PIN = 1 [14:57:51]Read from MH i2c: 01 [14:57:51]MH_I2C_Read... [14:57:51]*** Stop cut motor [14:57:51]*** Cut end [14:57:51]Read from MH i2c: 01 07 00 [14:57:51]MH_I2C_Read... [14:57:51]Read from MH i2c: 01 07 00 ED 0E 00 00 00 00 00 FF 0F 10 [14:57:51]process_action close_receipt done [14:57:51]requested_data is exist [14:57:51]produce_requested_data [14:57:51]requested_item fm.sn is exist - process it [14:57:51]wFMCommunicate request_size=4 [14:57:51]MH_SAM_APDU [14:57:51]CAPDU: 80 11 00 00 [14:57:51]Write to MH i2c: E2 08 00 EE 0E 80 11 00 00 00 00 00 00 76 [14:57:51]Write i2c OK [14:57:51]MH_I2C_Read... [14:57:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:51]Read from MH i2c: E2 [14:57:51]MH_I2C_Read... [14:57:51]Read from MH i2c: E2 17 00 [14:57:51]MH_I2C_Read... [14:57:51]Read from MH i2c: E2 17 00 EE 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 CC [14:57:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:57:51]wFMCommunicate OK [14:57:51]requested_item fd.num is exist - process it [14:57:51]SAM_PROTO_GetFieldsCounters [14:57:51]wFMCommunicate request_size=4 [14:57:51]MH_SAM_APDU [14:57:51]CAPDU: 80 13 00 00 [14:57:51]Write to MH i2c: E2 08 00 EF 0E 80 13 00 00 00 00 00 00 79 [14:57:51]Write i2c OK [14:57:51]MH_I2C_Read... [14:57:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:57:51]Read from MH i2c: E2 [14:57:51]MH_I2C_Read... [14:57:51]Read from MH i2c: E2 62 00 [14:57:51]MH_I2C_Read... [14:57:51]Read from MH i2c: E2 62 00 EF 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 AB 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [14:57: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 AB 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:57:51]wFMCommunicate OK [14:57:51]SAM_PROTO_GetFieldsCounters done [14:57:51]requested_item shift.num is exist - process it [14:57:51]requested_item shift.opened is exist - process it [14:57:51]req_shift_opened [14:57:51]FM_GetShiftState [14:57:51]SAM_PROTO_GetShiftState [14:57:51]wFMCommunicate request_size=4 [14:57:51]MH_SAM_APDU [14:57:51]CAPDU: 80 13 01 00 [14:57:51]Write to MH i2c: E2 08 00 F0 0E 80 13 01 00 00 00 00 00 7B [14:57:51]Write i2c OK [14:57:51]MH_I2C_Read... [14:57:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:51]Read from MH i2c: E2 [14:57:51]MH_I2C_Read... [14:57:51]Read from MH i2c: E2 0E 00 [14:57:51]MH_I2C_Read... [14:57:51]Read from MH i2c: E2 0E 00 F0 0E 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 27 [14:57:51]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [14:57:51]wFMCommunicate OK [14:57:51]SAM_PROTO_GetShiftState done [14:57:51]FM_GetShiftState done [14:57:51]req_shift_opened done [14:57:51]requested_item shift.open_date is exist - process it [14:57:51]req_shift_open_date [14:57:51]req_shift_open_date done [14:57:51]produce_requested_data done [14:57:51]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67499,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [14:57:51]process_action_free close_receipt [14:57:51]json_value_free [14:57:51]json_value_free done [14:57:51]process_json_proto returns [14:57:51]Send response to host [14:57:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67499,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [14:57:51]free response buf [14:57:51]execute_script done [14:57:51]execute_script returns [14:57:51]free content buf [14:57:51]Sock 8.Close socket [14:57:51]Sock 8.Thread stoped [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:26]accept exits with 9 [14:59:26]New connection [14:59:26]New thread 3067039076 created [14:59:26]Thread 3067182436 joined [14:59:26]Waiting for new connection... [14:59:26] Sock 9.Parse request [14:59:26]Sock 9.Check first char [14:59:26]Sock 9.First char is OK [14:59:26]request: POST /json_proto HTTP/1.0 [14:59:26]Method: POST [14:59:26]URL: /json_proto [14:59:26]Method is POST - this is cgi request [14:59:26]url: /json_proto [14:59:26]query_string will be loaded in cgi processing [14:59:26]execute_cgi json_proto POST (null) [14:59:26]execute_cgi path=json_proto method=POST [14:59:26]POST find Content-Length [14:59:26]Host: 172.17.41.195:8080 [14:59:26]Content-Length: 1209 [14:59:26]Content-Type: application/json [14:59:26] [14:59:26]POST finish read [14:59:26]Found Content-Length = 1209 [14:59:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507550\u000A16.05.2024 14:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.390 x 74.70\u000A\u0418\u0422\u041E\u0413: 1000.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:26]execute_script... [14:59:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507550\u000A16.05.2024 14:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.390 x 74.70\u000A\u0418\u0422\u041E\u0413: 1000.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:26]POST & json_proto [14:59:26]process_json_proto [14:59:26]json parsed OK: [14:59:26]protocol is kg_v1.0 [14:59:26]action value=print_text [14:59:26]process_action print_text [14:59:26]cmd_print_text [14:59:26]ExternCall_PrintAddStr [14:59:26]wPrintStart [14:59:26]Write to MH i2c: 01 00 00 F1 0E FF [14:59:26]Write i2c OK [14:59:26]MH_I2C_Read... [14:59:26]Read from MH i2c: 01 [14:59:26]MH_I2C_Read... [14:59:26]Read from MH i2c: 01 07 00 [14:59:26]MH_I2C_Read... [14:59:26]Read from MH i2c: 01 07 00 F1 0E 00 00 00 00 00 FF 0F 14 [14:59:26]RasterBufferAndPrint [14:59:26]line *****ТОВАРНЫЙ ЧЕК***** [14:59:26]line АЗС-91 [14:59:26]line Партнер нефть [14:59:26]line 02508201610067 [14:59:26]line Кассир : Пайзулдаева А. [14:59:26]line Счет N : (1)507550 [14:59:26]line 16.05.2024 14:41 [14:59:26]line ПРОДАЖА [14:59:26]line ТРК (МРК, ГНК): 21 [14:59:26]line Вид ГСМ : 2710194210 [14:59:26]line ДТ-К-5 [14:59:26]line 13.390 x 74.70 [14:59:26]line ИТОГ: 1000.23 [14:59:26]line Тип оплаты: Талоны: Топливная Карта [14:59:26]line 02750 [14:59:26]line ______________________ [14:59:26]line (подпись) [14:59:26]written 0, free lines is 4095 [14:59:26]Write to MH i2c: 01 00 00 05 0F 14 [14:59:26]Write i2c OK [14:59:26]MH_I2C_Read... [14:59:26]Read from MH i2c: 01 [14:59:26]MH_I2C_Read... [14:59:26]Read from MH i2c: 01 07 00 [14:59:26]MH_I2C_Read... [14:59:26]Read from MH i2c: 01 07 00 05 0F 00 00 00 00 00 10 0E 39 [14:59:26]RasterBufferAndPrint [14:59:26]line [14:59:26]line [14:59:26]line [14:59:26]line [14:59:26]line [14:59:26]written 0, free lines is 3601 [14:59:26]MH_Cut [14:59:26]Write to MH i2c: D1 01 00 0C 0F 01 ED [14:59:26]Write i2c OK [14:59:26]MH_I2C_Read... [14:59:26]Read from MH i2c: D1 [14:59:26]MH_I2C_Read... [14:59:26]Read from MH i2c: D1 01 00 [14:59:26]MH_I2C_Read... [14:59:26]Read from MH i2c: D1 01 00 0C 0F 00 EC [14:59:26]Write to MH i2c: 01 00 00 0D 0F 1C [14:59:26]Write i2c OK [14:59:26]MH_I2C_Read... [14:59:27]*** Cut start [14:59:27]*** Purtial cut [14:59:27]*** Stage 1: CUTSNS_PIN = 1 [14:59:27]Read from MH i2c: 01 [14:59:27]MH_I2C_Read... [14:59:27]*** Stop cut motor [14:59:27]*** Cut end [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 0D 0F 00 00 00 00 00 FF 0F 31 [14:59:27]process_action print_text done [14:59:27]requested_data is exist [14:59:27]produce_requested_data [14:59:27]requested_item fm.sn is exist - process it [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 0E 0F 80 11 00 00 00 00 00 00 97 [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 0E 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 ED [14:59:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:59:27]wFMCommunicate OK [14:59:27]requested_item fd.num is exist - process it [14:59:27]SAM_PROTO_GetFieldsCounters [14:59:27]wFMCommunicate request_size=4 [14:59:27]MH_SAM_APDU [14:59:27]CAPDU: 80 13 00 00 [14:59:27]Write to MH i2c: E2 08 00 0F 0F 80 13 00 00 00 00 00 00 9A [14:59:27]Write i2c OK [14:59:27]MH_I2C_Read... [14:59:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:59:27]Read from MH i2c: E2 [14:59:27]MH_I2C_Read... [14:59:27]Read from MH i2c: E2 62 00 [14:59:27]MH_I2C_Read... [14:59:27]Read from MH i2c: E2 62 00 0F 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 AB 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [14:59: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 AB 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:59:27]wFMCommunicate OK [14:59:27]SAM_PROTO_GetFieldsCounters done [14:59:27]requested_item shift.num is exist - process it [14:59:27]requested_item shift.opened is exist - process it [14:59:27]req_shift_opened [14:59:27]FM_GetShiftState [14:59:27]SAM_PROTO_GetShiftState [14:59:27]wFMCommunicate request_size=4 [14:59:27]MH_SAM_APDU [14:59:27]CAPDU: 80 13 01 00 [14:59:27]Write to MH i2c: E2 08 00 10 0F 80 13 01 00 00 00 00 00 9C [14:59:27]Write i2c OK [14:59:27]MH_I2C_Read... [14:59:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:27]Read from MH i2c: E2 [14:59:27]MH_I2C_Read... [14:59:27]Read from MH i2c: E2 0E 00 [14:59:27]MH_I2C_Read... [14:59:27]Read from MH i2c: E2 0E 00 10 0F 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 48 [14:59:27]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [14:59:27]wFMCommunicate OK [14:59:27]SAM_PROTO_GetShiftState done [14:59:27]FM_GetShiftState done [14:59:27]req_shift_opened done [14:59:27]requested_item shift.open_date is exist - process it [14:59:27]req_shift_open_date [14:59:27]req_shift_open_date done [14:59:27]produce_requested_data done [14:59:27]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67499,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [14:59:27]process_action_free print_text [14:59:27]json_value_free [14:59:27]json_value_free done [14:59:27]process_json_proto returns [14:59:27]Send response to host [14:59:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67499,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [14:59:27]free response buf [14:59:27]execute_script done [14:59:27]execute_script returns [14:59:27]free content buf [14:59:27]Sock 9.Close socket [14:59:27]Sock 9.Thread stoped [14:59:28]OFD Sender: No OFD packet to send [14:59:33]OFD Sender: No OFD packet to send [14:59:38]OFD Sender: No OFD packet to send [14:59:43]OFD Sender: No OFD packet to send [14:59:48]OFD Sender: No OFD packet to send [14:59:53]OFD Sender: No OFD packet to send [14:59:58]OFD Sender: No OFD packet to send [15:00:03]OFD Sender: No OFD packet to send [15:00:08]OFD Sender: No OFD packet to send [15:00:13]OFD Sender: No OFD packet to send [15:00:18]OFD Sender: No OFD packet to send [15:00:23]OFD Sender: No OFD packet to send [15:00:28]OFD Sender: No OFD packet to send [15:00:33]OFD Sender: No OFD packet to send [15:00:38]OFD Sender: No OFD packet to send [15:00:43]OFD Sender: No OFD packet to send [15:00:48]OFD Sender: No OFD packet to send [15:00:53]OFD Sender: No OFD packet to send [15:00:58]OFD Sender: No OFD packet to send [15:01:03]OFD Sender: No OFD packet to send [15:01:08]OFD Sender: No OFD packet to send [15:01:13]OFD Sender: No OFD packet to send [15:01:18]OFD Sender: No OFD packet to send [15:01:23]OFD Sender: No OFD packet to send [15:01:28]OFD Sender: No OFD packet to send [15:01:33]OFD Sender: No OFD packet to send [15:01:38]OFD Sender: No OFD packet to send [15:01:43]OFD Sender: No OFD packet to send [15:01:48]OFD Sender: No OFD packet to send [15:01:53]OFD Sender: No OFD packet to send [15:01:58]OFD Sender: No OFD packet to send [15:02:04]OFD Sender: No OFD packet to send [15:02:09]OFD Sender: No OFD packet to send [15:02:14]OFD Sender: No OFD packet to send [15:02:19]OFD Sender: No OFD packet to send [15:02:24]OFD Sender: No OFD packet to send [15:02:29]OFD Sender: No OFD packet to send [15:02:34]OFD Sender: No OFD packet to send [15:02:39]OFD Sender: No OFD packet to send [15:02:44]OFD Sender: No OFD packet to send [15:02:49]OFD Sender: No OFD packet to send [15:02:54]OFD Sender: No OFD packet to send [15:02:59]OFD Sender: No OFD packet to send [15:03:04]OFD Sender: No OFD packet to send [15:03:09]OFD Sender: No OFD packet to send [15:03:14]OFD Sender: No OFD packet to send [15:03:19]OFD Sender: No OFD packet to send [15:03:24]OFD Sender: No OFD packet to send [15:03:29]OFD Sender: No OFD packet to send [15:03:34]OFD Sender: No OFD packet to send [15:03:39]OFD Sender: No OFD packet to send [15:03:44]OFD Sender: No OFD packet to send [15:03:49]OFD Sender: No OFD packet to send [15:03:54]OFD Sender: No OFD packet to send [15:03:59]OFD Sender: No OFD packet to send [15:04:04]OFD Sender: No OFD packet to send [15:04:09]OFD Sender: No OFD packet to send [15:04:14]OFD Sender: No OFD packet to send [15:04:19]OFD Sender: No OFD packet to send [15:04:24]OFD Sender: No OFD packet to send [15:04:29]OFD Sender: No OFD packet to send [15:04:34]OFD Sender: No OFD packet to send [15:04:39]OFD Sender: No OFD packet to send [15:04:44]OFD Sender: No OFD packet to send [15:04:49]OFD Sender: No OFD packet to send [15:04:54]OFD Sender: No OFD packet to send [15:04:59]OFD Sender: No OFD packet to send [15:05:04]OFD Sender: No OFD packet to send [15:05:09]OFD Sender: No OFD packet to send [15:05:14]OFD Sender: No OFD packet to send [15:05:19]OFD Sender: No OFD packet to send [15:05:24]OFD Sender: No OFD packet to send [15:05:29]OFD Sender: No OFD packet to send [15:05:34]OFD Sender: No OFD packet to send [15:05:39]OFD Sender: No OFD packet to send [15:05:44]OFD Sender: No OFD packet to send [15:05:44]accept exits with 8 [15:05:44]New connection [15:05:44]New thread 3067182436 created [15:05:44]Thread 3067039076 joined [15:05:44]Waiting for new connection... [15:05:44] Sock 8.Parse request [15:05:44]Sock 8.Check first char [15:05:44]Sock 8.First char is OK [15:05:44]request: POST /json_proto HTTP/1.0 [15:05:44]Method: POST [15:05:44]URL: /json_proto [15:05:44]Method is POST - this is cgi request [15:05:44]url: /json_proto [15:05:44]query_string will be loaded in cgi processing [15:05:44]execute_cgi json_proto POST (null) [15:05:44]execute_cgi path=json_proto method=POST [15:05:44]POST find Content-Length [15:05:44]Host: 172.17.41.195:8080 [15:05:44]Content-Length: 809 [15:05:44]Content-Type: application/json [15:05:44] [15:05:44]POST finish read [15:05:44]Found Content-Length = 809 [15:05:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507551", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:44]execute_script... [15:05: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)507551", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:44]POST & json_proto [15:05:44]process_json_proto [15:05:44]json parsed OK: [15:05:44]protocol is kg_v1.0 [15:05:44]action value=close_receipt [15:05:44]process_action close_receipt [15:05:44]cmd_close_receipt [15:05:44]MH_GetDate [15:05:44]Write to MH i2c: F0 00 00 11 0F 0F [15:05:44]Write i2c OK [15:05:44]MH_I2C_Read... [15:05:44]Read from MH i2c: F0 [15:05:44]MH_I2C_Read... [15:05:44]Read from MH i2c: F0 09 00 [15:05:44]MH_I2C_Read... [15:05:44]Read from MH i2c: F0 09 00 11 0F 00 CA 20 46 66 FC 21 6F 64 9E [15:05:44]GetLastDocTimeStamp 1715871467 [15:05:44]current date 1715871946 [15:05:44]FM_GetShiftState [15:05:44]SAM_PROTO_GetShiftState [15:05:44]wFMCommunicate request_size=4 [15:05:44]MH_SAM_APDU [15:05:44]CAPDU: 80 13 01 00 [15:05:44]Write to MH i2c: E2 08 00 12 0F 80 13 01 00 00 00 00 00 9E [15:05:44]Write i2c OK [15:05:44]MH_I2C_Read... [15:05:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:44]Read from MH i2c: E2 [15:05:44]MH_I2C_Read... [15:05:44]Read from MH i2c: E2 0E 00 [15:05:44]MH_I2C_Read... [15:05:44]Read from MH i2c: E2 0E 00 12 0F 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 4A [15:05:44]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [15:05:44]wFMCommunicate OK [15:05:44]SAM_PROTO_GetShiftState done [15:05:44]FM_GetShiftState done [15:05:44]opened in 1715818916 [15:05:44]opened+sec_in_day 1715905316 [15:05:44]quantity*price = 50036 [15:05:44]sum+1 = 50037 [15:05:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.36 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.36 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 98 16.05.2024 15:05 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67500 ФПД: 263501985402939 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T150546&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67500&fm=263501985402939&tin=02508201610067®Number=0000000000091845&sum=50036 [15:05:46]StoreToDocumentArchive [15:05:46]shift 357 fd 67500 [15:05:46]save to /storage/0357/doc_00067500 [15:05:46]save last doc name /storage/0357/doc_00067500 to /storage/kkm_last_doc_name [15:05:46]save OK [15:05:46]Clear old archive folders... [15:05:46]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:05:46]tlvbuf is 017919E0 [15:05:46]SAM_PROTO_ClearQueue [15:05:46]wFMCommunicate request_size=4 [15:05:46]MH_SAM_APDU [15:05:46]CAPDU: 80 09 00 00 [15:05:46]Write to MH i2c: E2 08 00 1F 0F 80 09 00 00 00 00 00 00 A0 [15:05:46]Write i2c OK [15:05:46]MH_I2C_Read... [15:05:46]Read from MH i2c: E2 [15:05:46]MH_I2C_Read... [15:05:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:05:46]Read from MH i2c: E2 03 00 [15:05:46]MH_I2C_Read... [15:05:46]Read from MH i2c: E2 03 00 1F 0F 00 90 00 A2 [15:05:46]RAPDU: 90 00 [15:05:46]wFMCommunicate OK [15:05:46]SAM_PROTO_ClearQueue done [15:05:46]KKMCreateOFDPacket [15:05:46]OFDProtocolAddRootSTLVToBuf [15:05:46]FM_MakeSignedData [15:05:46]FM_MakeSignedData [15:05:46]SAM_PROTO_SignData [15:05:46]wFMCommunicate request_size=4 [15:05:46]MH_SAM_APDU [15:05:46]CAPDU: 80 0D 01 02 [15:05:46]Write to MH i2c: E2 08 00 20 0F 80 0D 01 02 00 00 00 00 A8 [15:05:46]Write i2c OK [15:05:46]MH_I2C_Read... [15:05:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:05:46]Read from MH i2c: E2 [15:05:46]MH_I2C_Read... [15:05:46]Read from MH i2c: E2 03 00 [15:05:46]MH_I2C_Read... [15:05:46]Read from MH i2c: E2 03 00 20 0F 00 90 00 A3 [15:05:46]RAPDU: 90 00 [15:05:46]wFMCommunicate OK [15:05:46]wFMCommunicate request_size=255 [15:05:46]MH_SAM_APDU [15:05:46]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 CA 20 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 AC 07 01 00 35 04 06 00 [15:05:46]Write to MH i2c: E2 02 01 21 0F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 CA 20 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 AC 07 01 00 35 04 06 00 00 00 B0 [15:05:46]Write i2c OK [15:05:46]MH_I2C_Read... [15:05:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:46]Read from MH i2c: E2 [15:05:46]MH_I2C_Read... [15:05:46]Read from MH i2c: E2 03 00 [15:05:46]MH_I2C_Read... [15:05:46]Read from MH i2c: E2 03 00 21 0F 00 90 00 A4 [15:05:46]RAPDU: 90 00 [15:05:46]wFMCommunicate OK [15:05:46]wFMCommunicate request_size=11 [15:05:46]MH_SAM_APDU [15:05:46]CAPDU: 80 0D 02 02 06 EF A7 56 3C D0 3B [15:05:46]Write to MH i2c: E2 0E 00 22 0F 80 0D 02 02 06 00 EF A7 56 3C D0 3B 00 00 EA [15:05:46]Write i2c OK [15:05:46]MH_I2C_Read... [15:05:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:46]Read from MH i2c: E2 [15:05:46]MH_I2C_Read... [15:05:46]Read from MH i2c: E2 03 00 [15:05:46]MH_I2C_Read... [15:05:46]Read from MH i2c: E2 03 00 22 0F 00 90 00 A5 [15:05:46]RAPDU: 90 00 [15:05:46]wFMCommunicate OK [15:05:46]wFMCommunicate request_size=4 [15:05:46]MH_SAM_APDU [15:05:46]CAPDU: 80 0D 03 02 [15:05:46]Write to MH i2c: E2 08 00 23 0F 80 0D 03 02 00 00 00 00 AD [15:05:46]Write i2c OK [15:05:46]MH_I2C_Read... [15:05:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:05:46]Read from MH i2c: E2 [15:05:46]MH_I2C_Read... [15:05:46]Read from MH i2c: E2 0B 00 [15:05:46]MH_I2C_Read... [15:05:46]Read from MH i2c: E2 0B 00 23 0F 00 13 0F D4 5B 5F 29 A5 28 90 00 54 [15:05:46]RAPDU: 13 0F D4 5B 5F 29 A5 28 90 00 [15:05:46]wFMCommunicate OK [15:05:46]SAM_PROTO_SignData done [15:05:46]FM_MakeSignedData done [15:05:46]CreateOFDProtocolMessage [15:05:46]wFMCommunicate request_size=4 [15:05:46]MH_SAM_APDU [15:05:46]CAPDU: 80 11 00 00 [15:05:46]Write to MH i2c: E2 08 00 24 0F 80 11 00 00 00 00 00 00 AD [15:05:46]Write i2c OK [15:05:46]MH_I2C_Read... [15:05:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:46]Read from MH i2c: E2 [15:05:46]MH_I2C_Read... [15:05:46]Read from MH i2c: E2 17 00 [15:05:46]MH_I2C_Read... [15:05:46]Read from MH i2c: E2 17 00 24 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 03 [15:05:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:05:46]wFMCommunicate OK [15:05:46]CreateOFDProtocolMessage done [15:05:46]OFDSenderStorePacket 67500 [15:05:46]StoreOFDPacket docnum=67500 [15:05:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 FA 93 08 01 29 F8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 CA 20 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 AC 07 01 00 35 04 06 00 EF A7 56 3C D0 3B 13 0F D4 5B 5F 29 A5 28 [15:05:46]CheckFolder [15:05:46]dirname=/storage/ofd_packets [15:05:46]CheckFolder done [15:05:46]ProducePacketName [15:05:46]name=ofd_packets/00067500 [15:05:46]NVStorageSaveData ofd_packets/00067500 [15:05:46]File name is /storage/ofd_packets/00067500 [15:05:46]Write 302 bytes [15:05:46]NVStorageSaveData done [15:05:46]OFDSenderStorePacket done [15:05:46]KKMCreateOFDPacket done [15:05:46]NVStorageSaveData kkm_last_timestamp [15:05:46]File name is /storage/kkm_last_timestamp [15:05:46]Write 4 bytes [15:05:46]NVStorageSaveData done [15:05:46]ExternCall_PrintAddStr [15:05:46]wPrintStart [15:05:46]Write to MH i2c: 01 00 00 25 0F 34 [15:05:46]Write i2c OK [15:05:46]MH_I2C_Read... [15:05:46]Read from MH i2c: 01 [15:05:46]MH_I2C_Read... [15:05:46]Read from MH i2c: 01 07 00 [15:05:46]MH_I2C_Read... [15:05:46]Read from MH i2c: 01 07 00 25 0F 00 00 00 00 00 FF 0F 49 [15:05:46]RasterBufferAndPrint [15:05:46]line Счет N : (1)507551 [15:05:46]line ИНН: 02508201610067 [15:05:46]line Контрольно-Кассовый Чек [15:05:46]line ПРОДАЖА [15:05:46]line ТРК (МРК, ГНК) : 32 [15:05:46]line Товар: 2710124130 [15:05:46]line Super-92-К-5 [15:05:46]line 7.380 * 67.80 [15:05:46]line = 500.36 [15:05:46]line НДС 12% НСП 1% [15:05:46]line > о реализуемом товаре [15:05:46]line ИТОГО: 500.36 [15:05:46]line НСП 1% : 4.43 [15:05:46]line НДС 12% : 53.14 [15:05:46]line Наличными: 0.00 [15:05:46]line Безнал.: 500.36 [15:05:46]line Место: АЗС № 91 "Партнер Нефть" [15:05:46]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [15:05:46]line СНО: Общий режим [15:05:46]line Чек 98 16.05.2024 15:05 [15:05:46]line Смена: 357 ФФД: 1.0 [15:05:46]line ЗНМ: 0300000119 [15:05:46]line РНМ: 0000000000091845 [15:05:46]line Версия ККМ: 001 [15:05:46]line Платежная система: Бакай Банк [15:05:46]line ФМ: 0000000000871829 [15:05:46]line ФД: 67500 [15:05:46]line ФПД: 263501985402939 [15:05:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T150546&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67500&fm=263501985402939&tin=02508201610067®Number=0000000000091845&sum=50036 [15:05:46]written 0, free lines is 4095 [15:05:46]OFD Sender: Processing packet 67500 [packets to send 35, broken 34] [15:05:46]ProducePacketName [15:05:46]name=ofd_packets/00067500 [15:05:46]OFD Sender: To server: pG, [15:05:46]CommunicateWithHost lk.salyk.kg:30040 [15:05:46]ConnectInit lk.salyk.kg [15:05:46]Connected sock=10 [15:05: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 38 32 39 10 01 00 00 FA 93 08 01 29 F8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 CA 20 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 AC 07 01 00 35 04 06 00 EF A7 56 3C D0 3B 13 0F D4 5B 5F 29 A5 28 [15:05:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 3A E0 47 00 2A 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 38 32 39 10 04 04 00 AC 07 01 00 F4 03 04 00 A4 C8 45 66 B6 04 01 00 00 18 2D 9C D3 7B 2F 9D 09 [15:05:46]CommunicateWithHost err = 0 [15:05:46]CheckOFDResponse [15:05:46]1017 (14) - 77093643461234 [15:05:46]1041 (16) - 0000000000871829 [15:05:46]1040 (4) - 67500 [15:05:46]1012 (4) - 16.05.2024 08:49 [15:05:46]1206 (1) - 0 [15:05:46]OFD Sender: Remove packet 67500 [15:05:46]ProducePacketName [15:05:46]name=ofd_packets/00067500 [15:05:46]NVStorageDeleteData [15:05:47]Write to MH i2c: 01 00 00 4E 0F 5D [15:05:47]Write i2c OK [15:05:47]MH_I2C_Read... [15:05:47]Read from MH i2c: 01 [15:05:47]MH_I2C_Read... [15:05:47]Read from MH i2c: 01 07 00 [15:05:47]MH_I2C_Read... [15:05:47]Read from MH i2c: 01 07 00 4E 0F 00 00 00 00 00 FB 0C 6B [15:05:47]RasterBufferAndPrint [15:05:47]line [15:05:47]line [15:05:47]line [15:05:47]line [15:05:47]line [15:05:47]written 0, free lines is 3329 [15:05:47]MH_Cut [15:05:47]Write to MH i2c: D1 01 00 55 0F 01 36 [15:05:47]Write i2c OK [15:05:47]MH_I2C_Read... [15:05:47]Read from MH i2c: D1 [15:05:47]MH_I2C_Read... [15:05:47]Read from MH i2c: D1 01 00 [15:05:47]MH_I2C_Read... [15:05:47]Read from MH i2c: D1 01 00 55 0F 00 35 [15:05:47]Write to MH i2c: 01 00 00 56 0F 65 [15:05:47]Write i2c OK [15:05:47]MH_I2C_Read... [15:05:47]OFD Sender: No OFD packet to send [15:05:47]*** Cut start [15:05:47]*** Purtial cut [15:05:47]*** CUTSNS_PIN = 0 [15:05:48]*** Stage 1: CUTSNS_PIN = 1 [15:05:49]Read from MH i2c: 01 [15:05:49]MH_I2C_Read... [15:05:49]*** Stop cut motor [15:05:49]*** Cut end [15:05:49]Read from MH i2c: 01 07 00 [15:05:49]MH_I2C_Read... [15:05:49]Read from MH i2c: 01 07 00 56 0F 00 00 00 00 00 FF 0F 7A [15:05:49]process_action close_receipt done [15:05:49]requested_data is exist [15:05:49]produce_requested_data [15:05:49]requested_item fm.sn is exist - process it [15:05:49]wFMCommunicate request_size=4 [15:05:49]MH_SAM_APDU [15:05:49]CAPDU: 80 11 00 00 [15:05:49]Write to MH i2c: E2 08 00 57 0F 80 11 00 00 00 00 00 00 E0 [15:05:49]Write i2c OK [15:05:49]MH_I2C_Read... [15:05:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:49]Read from MH i2c: E2 [15:05:49]MH_I2C_Read... [15:05:49]Read from MH i2c: E2 17 00 [15:05:49]MH_I2C_Read... [15:05:49]Read from MH i2c: E2 17 00 57 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 36 [15:05:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:05:49]wFMCommunicate OK [15:05:49]requested_item fd.num is exist - process it [15:05:49]SAM_PROTO_GetFieldsCounters [15:05:49]wFMCommunicate request_size=4 [15:05:49]MH_SAM_APDU [15:05:49]CAPDU: 80 13 00 00 [15:05:49]Write to MH i2c: E2 08 00 58 0F 80 13 00 00 00 00 00 00 E3 [15:05:49]Write i2c OK [15:05:49]MH_I2C_Read... [15:05:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:05:50]Read from MH i2c: E2 [15:05:50]MH_I2C_Read... [15:05:50]Read from MH i2c: E2 62 00 [15:05:50]MH_I2C_Read... [15:05:50]Read from MH i2c: E2 62 00 58 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 AC 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [15:05: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 AC 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:05:50]wFMCommunicate OK [15:05:50]SAM_PROTO_GetFieldsCounters done [15:05:50]requested_item shift.num is exist - process it [15:05:50]requested_item shift.opened is exist - process it [15:05:50]req_shift_opened [15:05:50]FM_GetShiftState [15:05:50]SAM_PROTO_GetShiftState [15:05:50]wFMCommunicate request_size=4 [15:05:50]MH_SAM_APDU [15:05:50]CAPDU: 80 13 01 00 [15:05:50]Write to MH i2c: E2 08 00 59 0F 80 13 01 00 00 00 00 00 E5 [15:05:50]Write i2c OK [15:05:50]MH_I2C_Read... [15:05:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:50]Read from MH i2c: E2 [15:05:50]MH_I2C_Read... [15:05:50]Read from MH i2c: E2 0E 00 [15:05:50]MH_I2C_Read... [15:05:50]Read from MH i2c: E2 0E 00 59 0F 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 91 [15:05:50]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [15:05:50]wFMCommunicate OK [15:05:50]SAM_PROTO_GetShiftState done [15:05:50]FM_GetShiftState done [15:05:50]req_shift_opened done [15:05:50]requested_item shift.open_date is exist - process it [15:05:50]req_shift_open_date [15:05:50]req_shift_open_date done [15:05:50]produce_requested_data done [15:05:50]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67500,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [15:05:50]process_action_free close_receipt [15:05:50]json_value_free [15:05:50]json_value_free done [15:05:50]process_json_proto returns [15:05:50]Send response to host [15:05:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67500,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [15:05:50]free response buf [15:05:50]execute_script done [15:05:50]execute_script returns [15:05:50]free content buf [15:05:50]Sock 8.Close socket [15:05:50]Sock 8.Thread stoped [15:05:52]OFD Sender: No OFD packet to send [15:05:57]OFD Sender: No OFD packet to send [15:06:02]OFD Sender: No OFD packet to send [15:06:07]OFD Sender: No OFD packet to send [15:06:12]OFD Sender: No OFD packet to send [15:06:17]OFD Sender: No OFD packet to send [15:06:22]OFD Sender: No OFD packet to send [15:06:27]OFD Sender: No OFD packet to send [15:06:32]OFD Sender: No OFD packet to send [15:06:35]accept exits with 9 [15:06:35]New connection [15:06:35]New thread 3067039076 created [15:06:35]Thread 3067182436 joined [15:06:35]Waiting for new connection... [15:06:35] Sock 9.Parse request [15:06:35]Sock 9.Check first char [15:06:35]Sock 9.First char is OK [15:06:35]request: POST /json_proto HTTP/1.0 [15:06:35]Method: POST [15:06:35]URL: /json_proto [15:06:35]Method is POST - this is cgi request [15:06:35]url: /json_proto [15:06:35]query_string will be loaded in cgi processing [15:06:35]execute_cgi json_proto POST (null) [15:06:35]execute_cgi path=json_proto method=POST [15:06:35]POST find Content-Length [15:06:35]Host: 172.17.41.195:8080 [15:06:35]Content-Length: 793 [15:06:35]Content-Type: application/json [15:06:35] [15:06:35]POST finish read [15:06:35]Found Content-Length = 793 [15:06:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507552", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:35]execute_script... [15:06: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)507552", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:35]POST & json_proto [15:06:35]process_json_proto [15:06:35]json parsed OK: [15:06:35]protocol is kg_v1.0 [15:06:35]action value=close_receipt [15:06:35]process_action close_receipt [15:06:35]cmd_close_receipt [15:06:35]MH_GetDate [15:06:35]Write to MH i2c: F0 00 00 5A 0F 58 [15:06:35]Write i2c OK [15:06:35]MH_I2C_Read... [15:06:35]Read from MH i2c: F0 [15:06:35]MH_I2C_Read... [15:06:35]Read from MH i2c: F0 09 00 [15:06:35]MH_I2C_Read... [15:06:35]Read from MH i2c: F0 09 00 5A 0F 00 FC 20 46 66 FC 21 6F 64 19 [15:06:35]GetLastDocTimeStamp 1715871946 [15:06:35]current date 1715871996 [15:06:35]FM_GetShiftState [15:06:35]SAM_PROTO_GetShiftState [15:06:35]wFMCommunicate request_size=4 [15:06:35]MH_SAM_APDU [15:06:35]CAPDU: 80 13 01 00 [15:06:35]Write to MH i2c: E2 08 00 5B 0F 80 13 01 00 00 00 00 00 E7 [15:06:35]Write i2c OK [15:06:35]MH_I2C_Read... [15:06:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:35]Read from MH i2c: E2 [15:06:35]MH_I2C_Read... [15:06:35]Read from MH i2c: E2 0E 00 [15:06:35]MH_I2C_Read... [15:06:35]Read from MH i2c: E2 0E 00 5B 0F 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 93 [15:06:35]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [15:06:35]wFMCommunicate OK [15:06:35]SAM_PROTO_GetShiftState done [15:06:35]FM_GetShiftState done [15:06:35]opened in 1715818916 [15:06:35]opened+sec_in_day 1715905316 [15:06:35]quantity*price = 50036 [15:06:35]sum+1 = 50037 [15:06:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.36 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.36 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 99 16.05.2024 15:06 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67501 ФПД: 110062149235243 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T150637&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67501&fm=110062149235243&tin=02508201610067®Number=0000000000091845&sum=50036 [15:06:36]StoreToDocumentArchive [15:06:36]shift 357 fd 67501 [15:06:36]save to /storage/0357/doc_00067501 [15:06:36]save last doc name /storage/0357/doc_00067501 to /storage/kkm_last_doc_name [15:06:36]save OK [15:06:36]Clear old archive folders... [15:06:36]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:06:36]tlvbuf is 017B1ED0 [15:06:36]SAM_PROTO_ClearQueue [15:06:36]wFMCommunicate request_size=4 [15:06:36]MH_SAM_APDU [15:06:36]CAPDU: 80 09 00 00 [15:06:36]Write to MH i2c: E2 08 00 68 0F 80 09 00 00 00 00 00 00 E9 [15:06:36]Write i2c OK [15:06:36]MH_I2C_Read... [15:06:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:06:36]Read from MH i2c: E2 [15:06:36]MH_I2C_Read... [15:06:36]Read from MH i2c: E2 03 00 [15:06:36]MH_I2C_Read... [15:06:36]Read from MH i2c: E2 03 00 68 0F 00 90 00 EB [15:06:36]RAPDU: 90 00 [15:06:36]wFMCommunicate OK [15:06:36]SAM_PROTO_ClearQueue done [15:06:36]KKMCreateOFDPacket [15:06:36]OFDProtocolAddRootSTLVToBuf [15:06:36]FM_MakeSignedData [15:06:36]FM_MakeSignedData [15:06:36]SAM_PROTO_SignData [15:06:36]wFMCommunicate request_size=4 [15:06:36]MH_SAM_APDU [15:06:36]CAPDU: 80 0D 01 02 [15:06:36]Write to MH i2c: E2 08 00 69 0F 80 0D 01 02 00 00 00 00 F1 [15:06:36]Write i2c OK [15:06:36]MH_I2C_Read... [15:06:36]Read from MH i2c: E2 [15:06:36]MH_I2C_Read... [15:06:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:06:36]Read from MH i2c: E2 03 00 [15:06:36]MH_I2C_Read... [15:06:36]Read from MH i2c: E2 03 00 69 0F 00 90 00 EC [15:06:36]RAPDU: 90 00 [15:06:36]wFMCommunicate OK [15:06:36]wFMCommunicate request_size=255 [15:06:36]MH_SAM_APDU [15:06:36]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 FD 20 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 AD 07 01 00 35 04 06 00 [15:06:36]Write to MH i2c: E2 02 01 6A 0F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 FD 20 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 AD 07 01 00 35 04 06 00 00 00 2E [15:06:36]Write i2c OK [15:06:36]MH_I2C_Read... [15:06:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:37]Read from MH i2c: E2 [15:06:37]MH_I2C_Read... [15:06:37]Read from MH i2c: E2 03 00 [15:06:37]MH_I2C_Read... [15:06:37]Read from MH i2c: E2 03 00 6A 0F 00 90 00 ED [15:06:37]RAPDU: 90 00 [15:06:37]wFMCommunicate OK [15:06:37]wFMCommunicate request_size=11 [15:06:37]MH_SAM_APDU [15:06:37]CAPDU: 80 0D 02 02 06 64 19 D7 4E F2 2B [15:06:37]Write to MH i2c: E2 0E 00 6B 0F 80 0D 02 02 06 00 64 19 D7 4E F2 2B 00 00 BF [15:06:37]Write i2c OK [15:06:37]MH_I2C_Read... [15:06:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:37]Read from MH i2c: E2 [15:06:37]MH_I2C_Read... [15:06:37]Read from MH i2c: E2 03 00 [15:06:37]MH_I2C_Read... [15:06:37]Read from MH i2c: E2 03 00 6B 0F 00 90 00 EE [15:06:37]RAPDU: 90 00 [15:06:37]wFMCommunicate OK [15:06:37]wFMCommunicate request_size=4 [15:06:37]MH_SAM_APDU [15:06:37]CAPDU: 80 0D 03 02 [15:06:37]Write to MH i2c: E2 08 00 6C 0F 80 0D 03 02 00 00 00 00 F6 [15:06:37]Write i2c OK [15:06:37]MH_I2C_Read... [15:06:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:06:37]Read from MH i2c: E2 [15:06:37]MH_I2C_Read... [15:06:37]Read from MH i2c: E2 0B 00 [15:06:37]MH_I2C_Read... [15:06:37]Read from MH i2c: E2 0B 00 6C 0F 00 49 33 B0 E0 37 F4 E7 59 90 00 6E [15:06:37]RAPDU: 49 33 B0 E0 37 F4 E7 59 90 00 [15:06:37]wFMCommunicate OK [15:06:37]SAM_PROTO_SignData done [15:06:37]FM_MakeSignedData done [15:06:37]CreateOFDProtocolMessage [15:06:37]wFMCommunicate request_size=4 [15:06:37]MH_SAM_APDU [15:06:37]CAPDU: 80 11 00 00 [15:06:37]Write to MH i2c: E2 08 00 6D 0F 80 11 00 00 00 00 00 00 F6 [15:06:37]Write i2c OK [15:06:37]MH_I2C_Read... [15:06:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:37]Read from MH i2c: E2 [15:06:37]MH_I2C_Read... [15:06:37]Read from MH i2c: E2 17 00 [15:06:37]MH_I2C_Read... [15:06:37]Read from MH i2c: E2 17 00 6D 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 4C [15:06:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:06:37]wFMCommunicate OK [15:06:37]CreateOFDProtocolMessage done [15:06:37]OFDSenderStorePacket 67501 [15:06:37]StoreOFDPacket docnum=67501 [15:06:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 5B B0 08 01 E5 0D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 FD 20 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 AD 07 01 00 35 04 06 00 64 19 D7 4E F2 2B 49 33 B0 E0 37 F4 E7 59 [15:06:37]CheckFolder [15:06:37]dirname=/storage/ofd_packets [15:06:37]CheckFolder done [15:06:37]ProducePacketName [15:06:37]name=ofd_packets/00067501 [15:06:37]NVStorageSaveData ofd_packets/00067501 [15:06:37]File name is /storage/ofd_packets/00067501 [15:06:37]Write 302 bytes [15:06:37]NVStorageSaveData done [15:06:37]OFDSenderStorePacket done [15:06:37]KKMCreateOFDPacket done [15:06:37]NVStorageSaveData kkm_last_timestamp [15:06:37]File name is /storage/kkm_last_timestamp [15:06:37]Write 4 bytes [15:06:37]NVStorageSaveData done [15:06:37]ExternCall_PrintAddStr [15:06:37]wPrintStart [15:06:37]Write to MH i2c: 01 00 00 6E 0F 7D [15:06:37]Write i2c OK [15:06:37]MH_I2C_Read... [15:06:37]Read from MH i2c: 01 [15:06:37]MH_I2C_Read... [15:06:37]Read from MH i2c: 01 07 00 [15:06:37]MH_I2C_Read... [15:06:37]Read from MH i2c: 01 07 00 6E 0F 00 00 00 00 00 FF 0F 92 [15:06:37]RasterBufferAndPrint [15:06:37]line Счет N : (1)507552 [15:06:37]line ИНН: 02508201610067 [15:06:37]line Контрольно-Кассовый Чек [15:06:37]line ПРОДАЖА [15:06:37]line ТРК (МРК, ГНК) : 32 [15:06:37]line Товар: 2710124130 [15:06:37]line Super-92-К-5 [15:06:37]line 7.380 * 67.80 [15:06:37]line = 500.36 [15:06:37]line НДС 12% НСП 1% [15:06:37]line > о реализуемом товаре [15:06:37]line ИТОГО: 500.36 [15:06:37]line НСП 1% : 4.43 [15:06:37]line НДС 12% : 53.14 [15:06:37]line Наличными: 0.00 [15:06:37]line Безнал.: 500.36 [15:06:37]line Место: АЗС № 91 "Партнер Нефть" [15:06:37]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [15:06:37]line СНО: Общий режим [15:06:37]line Чек 99 16.05.2024 15:06 [15:06:37]line Смена: 357 ФФД: 1.0 [15:06:37]line ЗНМ: 0300000119 [15:06:37]line РНМ: 0000000000091845 [15:06:37]line Версия ККМ: 001 [15:06:37]line Платежная система: O! деньги [15:06:37]line ФМ: 0000000000871829 [15:06:37]line ФД: 67501 [15:06:37]line ФПД: 110062149235243 [15:06:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T150637&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67501&fm=110062149235243&tin=02508201610067®Number=0000000000091845&sum=50036 [15:06:37]OFD Sender: Processing packet 67501 [packets to send 35, broken 34] [15:06:37]ProducePacketName [15:06:37]name=ofd_packets/00067501 [15:06:37]OFD Sender: To server: pG, [15:06:37]CommunicateWithHost lk.salyk.kg:30040 [15:06:37]ConnectInit lk.salyk.kg [15:06:37]written 0, free lines is 4095 [15:06:37]Connected sock=10 [15:06: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 38 32 39 10 01 00 00 5B B0 08 01 E5 0D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 FD 20 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 AD 07 01 00 35 04 06 00 64 19 D7 4E F2 2B 49 33 B0 E0 37 F4 E7 59 [15:06:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 82 70 47 00 47 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 38 32 39 10 04 04 00 AD 07 01 00 F4 03 04 00 D7 C8 45 66 B6 04 01 00 00 32 C6 DD 91 29 AF 8E 1A [15:06:38]CommunicateWithHost err = 0 [15:06:38]CheckOFDResponse [15:06:38]1017 (14) - 77093643461234 [15:06:38]1041 (16) - 0000000000871829 [15:06:38]1040 (4) - 67501 [15:06:38]1012 (4) - 16.05.2024 08:50 [15:06:38]1206 (1) - 0 [15:06:38]OFD Sender: Remove packet 67501 [15:06:38]ProducePacketName [15:06:38]name=ofd_packets/00067501 [15:06:38]NVStorageDeleteData [15:06:38]Write to MH i2c: 01 00 00 97 0F A6 [15:06:38]Write i2c OK [15:06:38]MH_I2C_Read... [15:06:38]Read from MH i2c: 01 [15:06:38]MH_I2C_Read... [15:06:38]Read from MH i2c: 01 07 00 [15:06:38]MH_I2C_Read... [15:06:38]Read from MH i2c: 01 07 00 97 0F 00 00 00 00 00 F4 0C AD [15:06:38]RasterBufferAndPrint [15:06:38]line [15:06:38]line [15:06:38]line [15:06:38]line [15:06:38]line [15:06:38]written 0, free lines is 3323 [15:06:38]MH_Cut [15:06:38]Write to MH i2c: D1 01 00 9E 0F 01 7F [15:06:38]Write i2c OK [15:06:38]MH_I2C_Read... [15:06:38]Read from MH i2c: D1 [15:06:38]MH_I2C_Read... [15:06:38]Read from MH i2c: D1 01 00 [15:06:38]MH_I2C_Read... [15:06:38]Read from MH i2c: D1 01 00 9E 0F 00 7E [15:06:38]Write to MH i2c: 01 00 00 9F 0F AE [15:06:38]Write i2c OK [15:06:38]MH_I2C_Read... [15:06:38]OFD Sender: No OFD packet to send [15:06:38]*** Cut start [15:06:38]*** Purtial cut [15:06:38]*** Stage 1: CUTSNS_PIN = 1 [15:06:39]Read from MH i2c: 01 [15:06:39]MH_I2C_Read... [15:06:39]*** Stop cut motor [15:06:39]*** Cut end [15:06:39]Read from MH i2c: 01 07 00 [15:06:39]MH_I2C_Read... [15:06:39]Read from MH i2c: 01 07 00 9F 0F 00 00 00 00 00 FF 0F C3 [15:06:39]process_action close_receipt done [15:06:39]requested_data is exist [15:06:39]produce_requested_data [15:06:39]requested_item fm.sn is exist - process it [15:06:39]wFMCommunicate request_size=4 [15:06:39]MH_SAM_APDU [15:06:39]CAPDU: 80 11 00 00 [15:06:39]Write to MH i2c: E2 08 00 A0 0F 80 11 00 00 00 00 00 00 29 [15:06:39]Write i2c OK [15:06:39]MH_I2C_Read... [15:06:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:39]Read from MH i2c: E2 [15:06:39]MH_I2C_Read... [15:06:39]Read from MH i2c: E2 17 00 [15:06:39]MH_I2C_Read... [15:06:39]Read from MH i2c: E2 17 00 A0 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7F [15:06:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:06:39]wFMCommunicate OK [15:06:39]requested_item fd.num is exist - process it [15:06:39]SAM_PROTO_GetFieldsCounters [15:06:39]wFMCommunicate request_size=4 [15:06:39]MH_SAM_APDU [15:06:39]CAPDU: 80 13 00 00 [15:06:39]Write to MH i2c: E2 08 00 A1 0F 80 13 00 00 00 00 00 00 2C [15:06:39]Write i2c OK [15:06:39]MH_I2C_Read... [15:06:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:06:39]Read from MH i2c: E2 [15:06:39]MH_I2C_Read... [15:06:39]Read from MH i2c: E2 62 00 [15:06:39]MH_I2C_Read... [15:06:39]Read from MH i2c: E2 62 00 A1 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 AD 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [15:06: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 AD 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:06:39]wFMCommunicate OK [15:06:39]SAM_PROTO_GetFieldsCounters done [15:06:39]requested_item shift.num is exist - process it [15:06:39]requested_item shift.opened is exist - process it [15:06:39]req_shift_opened [15:06:39]FM_GetShiftState [15:06:39]SAM_PROTO_GetShiftState [15:06:39]wFMCommunicate request_size=4 [15:06:39]MH_SAM_APDU [15:06:39]CAPDU: 80 13 01 00 [15:06:39]Write to MH i2c: E2 08 00 A2 0F 80 13 01 00 00 00 00 00 2E [15:06:39]Write i2c OK [15:06:39]MH_I2C_Read... [15:06:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:39]Read from MH i2c: E2 [15:06:39]MH_I2C_Read... [15:06:39]Read from MH i2c: E2 0E 00 [15:06:39]MH_I2C_Read... [15:06:39]Read from MH i2c: E2 0E 00 A2 0F 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 DA [15:06:39]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [15:06:39]wFMCommunicate OK [15:06:39]SAM_PROTO_GetShiftState done [15:06:39]FM_GetShiftState done [15:06:39]req_shift_opened done [15:06:39]requested_item shift.open_date is exist - process it [15:06:39]req_shift_open_date [15:06:39]req_shift_open_date done [15:06:39]produce_requested_data done [15:06:39]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67501,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [15:06:39]process_action_free close_receipt [15:06:39]json_value_free [15:06:39]json_value_free done [15:06:39]process_json_proto returns [15:06:39]Send response to host [15:06:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67501,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [15:06:39]free response buf [15:06:39]execute_script done [15:06:39]execute_script returns [15:06:39]free content buf [15:06:39]Sock 9.Close socket [15:06:39]Sock 9.Thread stoped [15:06:43]OFD Sender: No OFD packet to send [15:06:48]OFD Sender: No OFD packet to send [15:06:53]OFD Sender: No OFD packet to send [15:06:58]OFD Sender: No OFD packet to send [15:07:03]OFD Sender: No OFD packet to send [15:07:08]OFD Sender: No OFD packet to send [15:07:13]OFD Sender: No OFD packet to send [15:07:18]OFD Sender: No OFD packet to send [15:07:23]OFD Sender: No OFD packet to send [15:07:28]OFD Sender: No OFD packet to send [15:07:33]OFD Sender: No OFD packet to send [15:07:38]OFD Sender: No OFD packet to send [15:07:43]OFD Sender: No OFD packet to send [15:07:48]OFD Sender: No OFD packet to send [15:07:53]OFD Sender: No OFD packet to send [15:07:58]OFD Sender: No OFD packet to send [15:08:03]OFD Sender: No OFD packet to send [15:08:08]OFD Sender: No OFD packet to send [15:08:13]OFD Sender: No OFD packet to send [15:08:18]OFD Sender: No OFD packet to send [15:08:23]OFD Sender: No OFD packet to send [15:08:28]OFD Sender: No OFD packet to send [15:08:33]OFD Sender: No OFD packet to send [15:08:38]OFD Sender: No OFD packet to send [15:08:43]OFD Sender: No OFD packet to send [15:08:48]OFD Sender: No OFD packet to send [15:08:53]OFD Sender: No OFD packet to send [15:08:58]OFD Sender: No OFD packet to send [15:09:03]OFD Sender: No OFD packet to send [15:09:08]OFD Sender: No OFD packet to send [15:09:13]OFD Sender: No OFD packet to send [15:09:18]OFD Sender: No OFD packet to send [15:09:23]OFD Sender: No OFD packet to send [15:09:28]OFD Sender: No OFD packet to send [15:09:33]OFD Sender: No OFD packet to send [15:09:38]OFD Sender: No OFD packet to send [15:09:43]OFD Sender: No OFD packet to send [15:09:48]OFD Sender: No OFD packet to send [15:09:53]OFD Sender: No OFD packet to send [15:09:58]OFD Sender: No OFD packet to send [15:10:03]OFD Sender: No OFD packet to send [15:10:08]OFD Sender: No OFD packet to send [15:10:13]OFD Sender: No OFD packet to send [15:10:18]OFD Sender: No OFD packet to send [15:10:23]OFD Sender: No OFD packet to send [15:10:28]OFD Sender: No OFD packet to send [15:10:33]OFD Sender: No OFD packet to send [15:10:38]OFD Sender: No OFD packet to send [15:10:43]OFD Sender: No OFD packet to send [15:10:48]OFD Sender: No OFD packet to send [15:10:53]OFD Sender: No OFD packet to send [15:10:58]OFD Sender: No OFD packet to send [15:11:03]OFD Sender: No OFD packet to send [15:11:08]OFD Sender: No OFD packet to send [15:11:13]OFD Sender: No OFD packet to send [15:11:18]OFD Sender: No OFD packet to send [15:11:23]OFD Sender: No OFD packet to send [15:11:28]OFD Sender: No OFD packet to send [15:11:33]OFD Sender: No OFD packet to send [15:11:38]OFD Sender: No OFD packet to send [15:11:43]OFD Sender: No OFD packet to send [15:11:48]OFD Sender: No OFD packet to send [15:11:53]OFD Sender: No OFD packet to send [15:11:58]OFD Sender: No OFD packet to send [15:12:03]OFD Sender: No OFD packet to send [15:12:08]OFD Sender: No OFD packet to send [15:12:13]OFD Sender: No OFD packet to send [15:12:18]OFD Sender: No OFD packet to send [15:12:23]OFD Sender: No OFD packet to send [15:12:28]OFD Sender: No OFD packet to send [15:12:32]accept exits with 8 [15:12:32]New connection [15:12:32]New thread 3067182436 created [15:12:32]Thread 3067039076 joined [15:12:32]Waiting for new connection... [15:12:32] Sock 8.Parse request [15:12:32]Sock 8.Check first char [15:12:32]Sock 8.First char is OK [15:12:32]request: POST /json_proto HTTP/1.0 [15:12:32]Method: POST [15:12:32]URL: /json_proto [15:12:32]Method is POST - this is cgi request [15:12:32]url: /json_proto [15:12:32]query_string will be loaded in cgi processing [15:12:32]execute_cgi json_proto POST (null) [15:12:32]execute_cgi path=json_proto method=POST [15:12:32]POST find Content-Length [15:12:32]Host: 172.17.41.195:8080 [15:12:32]Content-Length: 674 [15:12:32]Content-Type: application/json [15:12:32] [15:12:32]POST finish read [15:12:32]Found Content-Length = 674 [15:12:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507553", "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" : 74.70, "quantity" : 6.700, "sum" : 500.49, "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:12:32]execute_script... [15:12: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)507553", "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" : 74.70, "quantity" : 6.700, "sum" : 500.49, "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:12:32]POST & json_proto [15:12:32]process_json_proto [15:12:32]json parsed OK: [15:12:32]protocol is kg_v1.0 [15:12:32]action value=close_receipt [15:12:32]process_action close_receipt [15:12:32]cmd_close_receipt [15:12:32]MH_GetDate [15:12:32]Write to MH i2c: F0 00 00 A3 0F A1 [15:12:32]Write i2c OK [15:12:32]MH_I2C_Read... [15:12:32]Read from MH i2c: F0 [15:12:32]MH_I2C_Read... [15:12:32]Read from MH i2c: F0 09 00 [15:12:32]MH_I2C_Read... [15:12:32]Read from MH i2c: F0 09 00 A3 0F 00 61 22 46 66 FC 21 6F 64 C9 [15:12:32]GetLastDocTimeStamp 1715871997 [15:12:32]current date 1715872353 [15:12:32]FM_GetShiftState [15:12:32]SAM_PROTO_GetShiftState [15:12:32]wFMCommunicate request_size=4 [15:12:32]MH_SAM_APDU [15:12:32]CAPDU: 80 13 01 00 [15:12:32]Write to MH i2c: E2 08 00 A4 0F 80 13 01 00 00 00 00 00 30 [15:12:32]Write i2c OK [15:12:32]MH_I2C_Read... [15:12:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:32]Read from MH i2c: E2 [15:12:32]MH_I2C_Read... [15:12:32]Read from MH i2c: E2 0E 00 [15:12:32]MH_I2C_Read... [15:12:32]Read from MH i2c: E2 0E 00 A4 0F 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 DC [15:12:32]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [15:12:32]wFMCommunicate OK [15:12:32]SAM_PROTO_GetShiftState done [15:12:32]FM_GetShiftState done [15:12:32]opened in 1715818916 [15:12:32]opened+sec_in_day 1715905316 [15:12:32]quantity*price = 50049 [15:12:32]sum+1 = 50050 [15:12:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 100 16.05.2024 15:12 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67502 ФПД: 121873731490946 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T151234&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67502&fm=121873731490946&tin=02508201610067®Number=0000000000091845&sum=50000 [15:12:33]StoreToDocumentArchive [15:12:33]shift 357 fd 67502 [15:12:33]save to /storage/0357/doc_00067502 [15:12:33]save last doc name /storage/0357/doc_00067502 to /storage/kkm_last_doc_name [15:12:33]save OK [15:12:33]Clear old archive folders... [15:12:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:12:33]tlvbuf is 01792110 [15:12:33]SAM_PROTO_ClearQueue [15:12:33]wFMCommunicate request_size=4 [15:12:33]MH_SAM_APDU [15:12:33]CAPDU: 80 09 00 00 [15:12:33]Write to MH i2c: E2 08 00 B1 0F 80 09 00 00 00 00 00 00 32 [15:12:33]Write i2c OK [15:12:33]MH_I2C_Read... [15:12:33]Read from MH i2c: E2 [15:12:33]MH_I2C_Read... [15:12:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:12:33]OFD Sender: No OFD packet to send [15:12:33]Read from MH i2c: E2 03 00 [15:12:33]MH_I2C_Read... [15:12:33]Read from MH i2c: E2 03 00 B1 0F 00 90 00 34 [15:12:33]RAPDU: 90 00 [15:12:33]wFMCommunicate OK [15:12:33]SAM_PROTO_ClearQueue done [15:12:33]KKMCreateOFDPacket [15:12:33]OFDProtocolAddRootSTLVToBuf [15:12:33]FM_MakeSignedData [15:12:33]FM_MakeSignedData [15:12:33]SAM_PROTO_SignData [15:12:33]wFMCommunicate request_size=4 [15:12:33]MH_SAM_APDU [15:12:33]CAPDU: 80 0D 01 02 [15:12:33]Write to MH i2c: E2 08 00 B2 0F 80 0D 01 02 00 00 00 00 3A [15:12:33]Write i2c OK [15:12:33]MH_I2C_Read... [15:12:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:12:33]Read from MH i2c: E2 [15:12:33]MH_I2C_Read... [15:12:33]Read from MH i2c: E2 03 00 [15:12:33]MH_I2C_Read... [15:12:33]Read from MH i2c: E2 03 00 B2 0F 00 90 00 35 [15:12:33]RAPDU: 90 00 [15:12:33]wFMCommunicate OK [15:12:33]wFMCommunicate request_size=255 [15:12:33]MH_SAM_APDU [15:12:33]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 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 62 22 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 AE 07 01 00 35 04 06 00 6E D7 F0 79 [15:12:33]Write to MH i2c: E2 02 01 B3 0F 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 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 62 22 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 AE 07 01 00 35 04 06 00 6E D7 F0 79 00 00 88 [15:12:33]Write i2c OK [15:12:33]MH_I2C_Read... [15:12:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:34]Read from MH i2c: E2 [15:12:34]MH_I2C_Read... [15:12:34]Read from MH i2c: E2 03 00 [15:12:34]MH_I2C_Read... [15:12:34]Read from MH i2c: E2 03 00 B3 0F 00 90 00 36 [15:12:34]RAPDU: 90 00 [15:12:34]wFMCommunicate OK [15:12:34]wFMCommunicate request_size=7 [15:12:34]MH_SAM_APDU [15:12:34]CAPDU: 80 0D 02 02 02 14 82 [15:12:34]Write to MH i2c: E2 0A 00 B4 0F 80 0D 02 02 02 00 14 82 00 00 D7 [15:12:34]Write i2c OK [15:12:34]MH_I2C_Read... [15:12:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:34]Read from MH i2c: E2 [15:12:34]MH_I2C_Read... [15:12:34]Read from MH i2c: E2 03 00 [15:12:34]MH_I2C_Read... [15:12:34]Read from MH i2c: E2 03 00 B4 0F 00 90 00 37 [15:12:34]RAPDU: 90 00 [15:12:34]wFMCommunicate OK [15:12:34]wFMCommunicate request_size=4 [15:12:34]MH_SAM_APDU [15:12:34]CAPDU: 80 0D 03 02 [15:12:34]Write to MH i2c: E2 08 00 B5 0F 80 0D 03 02 00 00 00 00 3F [15:12:34]Write i2c OK [15:12:34]MH_I2C_Read... [15:12:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:12:34]Read from MH i2c: E2 [15:12:34]MH_I2C_Read... [15:12:34]Read from MH i2c: E2 0B 00 [15:12:34]MH_I2C_Read... [15:12:34]Read from MH i2c: E2 0B 00 B5 0F 00 55 92 3F BE 91 18 29 45 90 00 3B [15:12:34]RAPDU: 55 92 3F BE 91 18 29 45 90 00 [15:12:34]wFMCommunicate OK [15:12:34]SAM_PROTO_SignData done [15:12:34]FM_MakeSignedData done [15:12:34]CreateOFDProtocolMessage [15:12:34]wFMCommunicate request_size=4 [15:12:34]MH_SAM_APDU [15:12:34]CAPDU: 80 11 00 00 [15:12:34]Write to MH i2c: E2 08 00 B6 0F 80 11 00 00 00 00 00 00 3F [15:12:34]Write i2c OK [15:12:34]MH_I2C_Read... [15:12:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:34]Read from MH i2c: E2 [15:12:34]MH_I2C_Read... [15:12:34]Read from MH i2c: E2 17 00 [15:12:34]MH_I2C_Read... [15:12:34]Read from MH i2c: E2 17 00 B6 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 95 [15:12:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:12:34]wFMCommunicate OK [15:12:34]CreateOFDProtocolMessage done [15:12:34]OFDSenderStorePacket 67502 [15:12:34]StoreOFDPacket docnum=67502 [15:12:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 72 32 04 01 70 BF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 62 22 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 AE 07 01 00 35 04 06 00 6E D7 F0 79 14 82 55 92 3F BE 91 18 29 45 [15:12:34]CheckFolder [15:12:34]dirname=/storage/ofd_packets [15:12:34]CheckFolder done [15:12:34]ProducePacketName [15:12:34]name=ofd_packets/00067502 [15:12:34]NVStorageSaveData ofd_packets/00067502 [15:12:34]File name is /storage/ofd_packets/00067502 [15:12:34]Write 298 bytes [15:12:34]NVStorageSaveData done [15:12:34]OFDSenderStorePacket done [15:12:34]KKMCreateOFDPacket done [15:12:34]NVStorageSaveData kkm_last_timestamp [15:12:34]File name is /storage/kkm_last_timestamp [15:12:34]Write 4 bytes [15:12:34]NVStorageSaveData done [15:12:34]ExternCall_PrintAddStr [15:12:34]wPrintStart [15:12:34]Write to MH i2c: 01 00 00 B7 0F C6 [15:12:34]Write i2c OK [15:12:34]MH_I2C_Read... [15:12:34]Read from MH i2c: 01 [15:12:34]MH_I2C_Read... [15:12:34]Read from MH i2c: 01 07 00 [15:12:34]MH_I2C_Read... [15:12:34]Read from MH i2c: 01 07 00 B7 0F 00 00 00 00 00 FF 0F DB [15:12:34]RasterBufferAndPrint [15:12:34]line Счет N : (1)507553 [15:12:34]line ИНН: 02508201610067 [15:12:34]line Контрольно-Кассовый Чек [15:12:34]line ПРОДАЖА [15:12:34]line ТРК (МРК, ГНК) : 41 [15:12:34]line Товар: 2710194210 [15:12:34]line ДТ-К-5 [15:12:34]line 6.700 * 74.70 [15:12:34]line = 500.49 [15:12:34]line НДС 12% НСП 1% [15:12:34]line > о реализуемом товаре [15:12:34]line ОКРУГЛЕНИЕ: -0.49 [15:12:34]line ИТОГО: 500.00 [15:12:34]line Внесено: 500.00 [15:12:34]line СДАЧА: 0.00 [15:12:34]line НСП 1% : 4.43 [15:12:34]line НДС 12% : 53.15 [15:12:34]line Наличными: 500.00 [15:12:34]line Безнал.: 0.00 [15:12:34]line Место: АЗС № 91 "Партнер Нефть" [15:12:34]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [15:12:34]line СНО: Общий режим [15:12:34]line Чек 100 16.05.2024 15:12 [15:12:34]line Смена: 357 ФФД: 1.0 [15:12:34]line ЗНМ: 0300000119 [15:12:34]line РНМ: 0000000000091845 [15:12:34]line Версия ККМ: 001 [15:12:34]line ФМ: 0000000000871829 [15:12:34]line ФД: 67502 [15:12:34]line ФПД: 121873731490946 [15:12:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T151234&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67502&fm=121873731490946&tin=02508201610067®Number=0000000000091845&sum=50000 [15:12:34]written 0, free lines is 4095 [15:12:34]OFD Sender: Processing packet 67502 [packets to send 35, broken 34] [15:12:34]ProducePacketName [15:12:34]name=ofd_packets/00067502 [15:12:34]OFD Sender: To server: pG, [15:12:34]CommunicateWithHost lk.salyk.kg:30040 [15:12:34]ConnectInit lk.salyk.kg [15:12:34]Connected sock=10 [15:12: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 38 32 39 0C 01 00 00 72 32 04 01 70 BF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 62 22 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 AE 07 01 00 35 04 06 00 6E D7 F0 79 14 82 55 92 3F BE 91 18 29 45 [15:12:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 2F 55 47 00 42 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 38 32 39 10 04 04 00 AE 07 01 00 F4 03 04 00 3C CA 45 66 B6 04 01 00 00 F1 70 CA 6F 1A ED 67 87 [15:12:35]CommunicateWithHost err = 0 [15:12:35]CheckOFDResponse [15:12:35]1017 (14) - 77093643461234 [15:12:35]1041 (16) - 0000000000871829 [15:12:35]1040 (4) - 67502 [15:12:35]1012 (4) - 16.05.2024 08:56 [15:12:35]1206 (1) - 0 [15:12:35]OFD Sender: Remove packet 67502 [15:12:35]ProducePacketName [15:12:35]name=ofd_packets/00067502 [15:12:35]NVStorageDeleteData [15:12:35]Write to MH i2c: 01 00 00 E1 0F F0 [15:12:35]Write i2c OK [15:12:35]MH_I2C_Read... [15:12:35]Read from MH i2c: 01 [15:12:35]MH_I2C_Read... [15:12:35]Read from MH i2c: 01 07 00 [15:12:35]MH_I2C_Read... [15:12:35]Read from MH i2c: 01 07 00 E1 0F 00 00 00 00 00 D9 0C DC [15:12:35]RasterBufferAndPrint [15:12:35]line [15:12:35]line [15:12:35]line [15:12:35]line [15:12:35]line [15:12:35]written 0, free lines is 3299 [15:12:35]MH_Cut [15:12:35]Write to MH i2c: D1 01 00 E8 0F 01 C9 [15:12:35]Write i2c OK [15:12:35]MH_I2C_Read... [15:12:35]Read from MH i2c: D1 [15:12:35]MH_I2C_Read... [15:12:35]Read from MH i2c: D1 01 00 [15:12:35]MH_I2C_Read... [15:12:35]Read from MH i2c: D1 01 00 E8 0F 00 C8 [15:12:35]Write to MH i2c: 01 00 00 E9 0F F8 [15:12:35]Write i2c OK [15:12:35]MH_I2C_Read... [15:12:35]OFD Sender: No OFD packet to send [15:12:35]*** Cut start [15:12:35]*** Purtial cut [15:12:35]*** CUTSNS_PIN = 0 [15:12:36]*** Stage 1: CUTSNS_PIN = 1 [15:12:37]Read from MH i2c: 01 [15:12:37]MH_I2C_Read... [15:12:37]*** Stop cut motor [15:12:37]*** Cut end [15:12:37]Read from MH i2c: 01 07 00 [15:12:37]MH_I2C_Read... [15:12:37]Read from MH i2c: 01 07 00 E9 0F 00 00 00 00 00 FF 0F 0D [15:12:37]process_action close_receipt done [15:12:37]requested_data is exist [15:12:37]produce_requested_data [15:12:37]requested_item fm.sn is exist - process it [15:12:37]wFMCommunicate request_size=4 [15:12:37]MH_SAM_APDU [15:12:37]CAPDU: 80 11 00 00 [15:12:37]Write to MH i2c: E2 08 00 EA 0F 80 11 00 00 00 00 00 00 73 [15:12:37]Write i2c OK [15:12:37]MH_I2C_Read... [15:12:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:38]Read from MH i2c: E2 [15:12:38]MH_I2C_Read... [15:12:38]Read from MH i2c: E2 17 00 [15:12:38]MH_I2C_Read... [15:12:38]Read from MH i2c: E2 17 00 EA 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C9 [15:12:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:12:38]wFMCommunicate OK [15:12:38]requested_item fd.num is exist - process it [15:12:38]SAM_PROTO_GetFieldsCounters [15:12:38]wFMCommunicate request_size=4 [15:12:38]MH_SAM_APDU [15:12:38]CAPDU: 80 13 00 00 [15:12:38]Write to MH i2c: E2 08 00 EB 0F 80 13 00 00 00 00 00 00 76 [15:12:38]Write i2c OK [15:12:38]MH_I2C_Read... [15:12:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:12:38]Read from MH i2c: E2 [15:12:38]MH_I2C_Read... [15:12:38]Read from MH i2c: E2 62 00 [15:12:38]MH_I2C_Read... [15:12:38]Read from MH i2c: E2 62 00 EB 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 AE 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [15:12: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 AE 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:12:38]wFMCommunicate OK [15:12:38]SAM_PROTO_GetFieldsCounters done [15:12:38]requested_item shift.num is exist - process it [15:12:38]requested_item shift.opened is exist - process it [15:12:38]req_shift_opened [15:12:38]FM_GetShiftState [15:12:38]SAM_PROTO_GetShiftState [15:12:38]wFMCommunicate request_size=4 [15:12:38]MH_SAM_APDU [15:12:38]CAPDU: 80 13 01 00 [15:12:38]Write to MH i2c: E2 08 00 EC 0F 80 13 01 00 00 00 00 00 78 [15:12:38]Write i2c OK [15:12:38]MH_I2C_Read... [15:12:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:38]Read from MH i2c: E2 [15:12:38]MH_I2C_Read... [15:12:38]Read from MH i2c: E2 0E 00 [15:12:38]MH_I2C_Read... [15:12:38]Read from MH i2c: E2 0E 00 EC 0F 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 24 [15:12:38]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [15:12:38]wFMCommunicate OK [15:12:38]SAM_PROTO_GetShiftState done [15:12:38]FM_GetShiftState done [15:12:38]req_shift_opened done [15:12:38]requested_item shift.open_date is exist - process it [15:12:38]req_shift_open_date [15:12:38]req_shift_open_date done [15:12:38]produce_requested_data done [15:12:38]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67502,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [15:12:38]process_action_free close_receipt [15:12:38]json_value_free [15:12:38]json_value_free done [15:12:38]process_json_proto returns [15:12:38]Send response to host [15:12:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67502,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [15:12:38]free response buf [15:12:38]execute_script done [15:12:38]execute_script returns [15:12:38]free content buf [15:12:38]Sock 8.Close socket [15:12:38]Sock 8.Thread stoped [15:12:40]OFD Sender: No OFD packet to send [15:12:45]OFD Sender: No OFD packet to send [15:12:50]OFD Sender: No OFD packet to send [15:12:55]OFD Sender: No OFD packet to send [15:13:00]OFD Sender: No OFD packet to send [15:13:05]OFD Sender: No OFD packet to send [15:13:10]OFD Sender: No OFD packet to send [15:13:15]OFD Sender: No OFD packet to send [15:13:20]OFD Sender: No OFD packet to send [15:13:25]OFD Sender: No OFD packet to send [15:13:30]OFD Sender: No OFD packet to send [15:13:35]OFD Sender: No OFD packet to send [15:13:40]OFD Sender: No OFD packet to send [15:13:45]OFD Sender: No OFD packet to send [15:13:50]OFD Sender: No OFD packet to send [15:13:55]OFD Sender: No OFD packet to send [15:14:00]OFD Sender: No OFD packet to send [15:14:05]OFD Sender: No OFD packet to send [15:14:10]OFD Sender: No OFD packet to send [15:14:15]OFD Sender: No OFD packet to send [15:14:20]OFD Sender: No OFD packet to send [15:14:25]OFD Sender: No OFD packet to send [15:14:30]OFD Sender: No OFD packet to send [15:14:35]OFD Sender: No OFD packet to send [15:14:40]OFD Sender: No OFD packet to send [15:14:45]OFD Sender: No OFD packet to send [15:14:50]OFD Sender: No OFD packet to send [15:14:55]OFD Sender: No OFD packet to send [15:15:00]OFD Sender: No OFD packet to send [15:15:05]OFD Sender: No OFD packet to send [15:15:10]OFD Sender: No OFD packet to send [15:15:11]accept exits with 9 [15:15:11]New connection [15:15:11]New thread 3067039076 created [15:15:11]Thread 3067182436 joined [15:15:11]Waiting for new connection... [15:15:11] Sock 9.Parse request [15:15:11]Sock 9.Check first char [15:15:11]Sock 9.First char is OK [15:15:11]request: POST /json_proto HTTP/1.0 [15:15:11]Method: POST [15:15:11]URL: /json_proto [15:15:11]Method is POST - this is cgi request [15:15:11]url: /json_proto [15:15:11]query_string will be loaded in cgi processing [15:15:11]execute_cgi json_proto POST (null) [15:15:11]execute_cgi path=json_proto method=POST [15:15:11]POST find Content-Length [15:15:11]Host: 172.17.41.195:8080 [15:15:11]Content-Length: 637 [15:15:11]Content-Type: application/json [15:15:11] [15:15:11]POST finish read [15:15:11]Found Content-Length = 637 [15:15:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507554", "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" : 74.70, "quantity" : 10.000, "sum" : 747.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 747.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:11]execute_script... [15:15: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)507554", "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" : 74.70, "quantity" : 10.000, "sum" : 747.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 747.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:11]POST & json_proto [15:15:11]process_json_proto [15:15:11]json parsed OK: [15:15:11]protocol is kg_v1.0 [15:15:11]action value=close_receipt [15:15:11]process_action close_receipt [15:15:11]cmd_close_receipt [15:15:11]MH_GetDate [15:15:11]Write to MH i2c: F0 00 00 ED 0F EB [15:15:11]Write i2c OK [15:15:11]MH_I2C_Read... [15:15:11]Read from MH i2c: F0 [15:15:11]MH_I2C_Read... [15:15:11]Read from MH i2c: F0 09 00 [15:15:11]MH_I2C_Read... [15:15:11]Read from MH i2c: F0 09 00 ED 0F 00 00 23 46 66 FC 21 6F 64 B3 [15:15:11]GetLastDocTimeStamp 1715872354 [15:15:11]current date 1715872512 [15:15:11]FM_GetShiftState [15:15:11]SAM_PROTO_GetShiftState [15:15:11]wFMCommunicate request_size=4 [15:15:11]MH_SAM_APDU [15:15:11]CAPDU: 80 13 01 00 [15:15:11]Write to MH i2c: E2 08 00 EE 0F 80 13 01 00 00 00 00 00 7A [15:15:11]Write i2c OK [15:15:11]MH_I2C_Read... [15:15:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:11]Read from MH i2c: E2 [15:15:11]MH_I2C_Read... [15:15:11]Read from MH i2c: E2 0E 00 [15:15:11]MH_I2C_Read... [15:15:11]Read from MH i2c: E2 0E 00 EE 0F 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 26 [15:15:11]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [15:15:11]wFMCommunicate OK [15:15:11]SAM_PROTO_GetShiftState done [15:15:11]FM_GetShiftState done [15:15:11]opened in 1715818916 [15:15:11]opened+sec_in_day 1715905316 [15:15:11]quantity*price = 74700 [15:15:11]sum+1 = 74701 [15:15:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 747.00 НСП 1% : 6.61 НДС 12% : 79.33 Наличными: 747.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 101 16.05.2024 15:15 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67503 ФПД: 127381161101815 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T151512&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67503&fm=127381161101815&tin=02508201610067®Number=0000000000091845&sum=74700 [15:15:12]StoreToDocumentArchive [15:15:12]shift 357 fd 67503 [15:15:12]save to /storage/0357/doc_00067503 [15:15:12]save last doc name /storage/0357/doc_00067503 to /storage/kkm_last_doc_name [15:15:12]save OK [15:15:12]Clear old archive folders... [15:15:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:15:12]tlvbuf is 017D9530 [15:15:12]SAM_PROTO_ClearQueue [15:15:12]wFMCommunicate request_size=4 [15:15:12]MH_SAM_APDU [15:15:12]CAPDU: 80 09 00 00 [15:15:12]Write to MH i2c: E2 08 00 FB 0F 80 09 00 00 00 00 00 00 7C [15:15:12]Write i2c OK [15:15:12]MH_I2C_Read... [15:15:12]Read from MH i2c: E2 [15:15:12]MH_I2C_Read... [15:15:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:15:12]Read from MH i2c: E2 03 00 [15:15:12]MH_I2C_Read... [15:15:12]Read from MH i2c: E2 03 00 FB 0F 00 90 00 7E [15:15:12]RAPDU: 90 00 [15:15:12]wFMCommunicate OK [15:15:12]SAM_PROTO_ClearQueue done [15:15:12]KKMCreateOFDPacket [15:15:12]OFDProtocolAddRootSTLVToBuf [15:15:12]FM_MakeSignedData [15:15:12]FM_MakeSignedData [15:15:12]SAM_PROTO_SignData [15:15:12]wFMCommunicate request_size=4 [15:15:12]MH_SAM_APDU [15:15:12]CAPDU: 80 0D 01 02 [15:15:12]Write to MH i2c: E2 08 00 FC 0F 80 0D 01 02 00 00 00 00 84 [15:15:12]Write i2c OK [15:15:12]MH_I2C_Read... [15:15:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:15:12]Read from MH i2c: E2 [15:15:12]MH_I2C_Read... [15:15:12]Read from MH i2c: E2 03 00 [15:15:12]MH_I2C_Read... [15:15:12]Read from MH i2c: E2 03 00 FC 0F 00 90 00 7F [15:15:12]RAPDU: 90 00 [15:15:12]wFMCommunicate OK [15:15:12]wFMCommunicate request_size=255 [15:15:12]MH_SAM_APDU [15:15: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 10 27 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 CC 23 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 23 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1E 00 00 00 00 07 04 06 00 CC 23 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 00 23 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 AF 07 01 00 35 04 06 00 73 DA 3C DB [15:15:12]Write to MH i2c: E2 02 01 FD 0F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 CC 23 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 23 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1E 00 00 00 00 07 04 06 00 CC 23 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 00 23 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 AF 07 01 00 35 04 06 00 73 DA 3C DB 00 00 9F [15:15:12]Write i2c OK [15:15:12]MH_I2C_Read... [15:15:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:12]Read from MH i2c: E2 [15:15:12]MH_I2C_Read... [15:15:12]Read from MH i2c: E2 03 00 [15:15:12]MH_I2C_Read... [15:15:12]Read from MH i2c: E2 03 00 FD 0F 00 90 00 80 [15:15:12]RAPDU: 90 00 [15:15:12]wFMCommunicate OK [15:15:12]wFMCommunicate request_size=7 [15:15:12]MH_SAM_APDU [15:15:12]CAPDU: 80 0D 02 02 02 C9 F7 [15:15:12]Write to MH i2c: E2 0A 00 FE 0F 80 0D 02 02 02 00 C9 F7 00 00 4B [15:15:12]Write i2c OK [15:15:12]MH_I2C_Read... [15:15:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:12]Read from MH i2c: E2 [15:15:12]MH_I2C_Read... [15:15:12]Read from MH i2c: E2 03 00 [15:15:12]MH_I2C_Read... [15:15:12]Read from MH i2c: E2 03 00 FE 0F 00 90 00 81 [15:15:12]RAPDU: 90 00 [15:15:12]wFMCommunicate OK [15:15:12]wFMCommunicate request_size=4 [15:15:12]MH_SAM_APDU [15:15:12]CAPDU: 80 0D 03 02 [15:15:12]Write to MH i2c: E2 08 00 FF 0F 80 0D 03 02 00 00 00 00 89 [15:15:12]Write i2c OK [15:15:12]MH_I2C_Read... [15:15:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:15:13]Read from MH i2c: E2 [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: E2 0B 00 [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: E2 0B 00 FF 0F 00 7B A1 90 C2 E4 F3 8F 3C 90 00 9A [15:15:13]RAPDU: 7B A1 90 C2 E4 F3 8F 3C 90 00 [15:15:13]wFMCommunicate OK [15:15:13]SAM_PROTO_SignData done [15:15:13]FM_MakeSignedData done [15:15:13]CreateOFDProtocolMessage [15:15:13]wFMCommunicate request_size=4 [15:15:13]MH_SAM_APDU [15:15:13]CAPDU: 80 11 00 00 [15:15:13]Write to MH i2c: E2 08 00 00 10 80 11 00 00 00 00 00 00 8A [15:15:13]Write i2c OK [15:15:13]MH_I2C_Read... [15:15:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:13]Read from MH i2c: E2 [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: E2 17 00 [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: E2 17 00 00 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E0 [15:15:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:15:13]wFMCommunicate OK [15:15:13]CreateOFDProtocolMessage done [15:15:13]OFDSenderStorePacket 67503 [15:15:13]StoreOFDPacket docnum=67503 [15:15:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 A5 49 04 01 9C 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 10 27 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 CC 23 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 23 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1E 00 00 00 00 07 04 06 00 CC 23 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 00 23 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 AF 07 01 00 35 04 06 00 73 DA 3C DB C9 F7 7B A1 90 C2 E4 F3 8F 3C [15:15:13]CheckFolder [15:15:13]dirname=/storage/ofd_packets [15:15:13]CheckFolder done [15:15:13]ProducePacketName [15:15:13]name=ofd_packets/00067503 [15:15:13]NVStorageSaveData ofd_packets/00067503 [15:15:13]File name is /storage/ofd_packets/00067503 [15:15:13]Write 298 bytes [15:15:13]NVStorageSaveData done [15:15:13]OFDSenderStorePacket done [15:15:13]KKMCreateOFDPacket done [15:15:13]NVStorageSaveData kkm_last_timestamp [15:15:13]File name is /storage/kkm_last_timestamp [15:15:13]Write 4 bytes [15:15:13]NVStorageSaveData done [15:15:13]ExternCall_PrintAddStr [15:15:13]wPrintStart [15:15:13]Write to MH i2c: 01 00 00 01 10 11 [15:15:13]Write i2c OK [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: 01 [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: 01 07 00 [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: 01 07 00 01 10 00 00 00 00 00 FF 0F 26 [15:15:13]RasterBufferAndPrint [15:15:13]line Счет N : (1)507554 [15:15:13]line ИНН: 02508201610067 [15:15:13]line Контрольно-Кассовый Чек [15:15:13]line ПРОДАЖА [15:15:13]line ТРК (МРК, ГНК) : 11 [15:15:13]line Товар: 2710194210 [15:15:13]line ДТ-К-5 [15:15:13]line 10.000 * 74.70 [15:15:13]line = 747.00 [15:15:13]line НДС 12% НСП 1% [15:15:13]line > о реализуемом товаре [15:15:13]line ИТОГО: 747.00 [15:15:13]line НСП 1% : 6.61 [15:15:13]line НДС 12% : 79.33 [15:15:13]line Наличными: 747.00 [15:15:13]line Безнал.: 0.00 [15:15:13]line Место: АЗС № 91 "Партнер Нефть" [15:15:13]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [15:15:13]line СНО: Общий режим [15:15:13]line Чек 101 16.05.2024 15:15 [15:15:13]line Смена: 357 ФФД: 1.0 [15:15:13]line ЗНМ: 0300000119 [15:15:13]line РНМ: 0000000000091845 [15:15:13]line Версия ККМ: 001 [15:15:13]line ФМ: 0000000000871829 [15:15:13]line ФД: 67503 [15:15:13]line ФПД: 127381161101815 [15:15:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T151512&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67503&fm=127381161101815&tin=02508201610067®Number=0000000000091845&sum=74700 [15:15:13]OFD Sender: Processing packet 67503 [packets to send 35, broken 34] [15:15:13]ProducePacketName [15:15:13]name=ofd_packets/00067503 [15:15:13]OFD Sender: To server: pG, [15:15:13]CommunicateWithHost lk.salyk.kg:30040 [15:15:13]ConnectInit lk.salyk.kg [15:15:13]written 0, free lines is 4095 [15:15:13]Write to MH i2c: 01 00 00 28 10 38 [15:15:13]Write i2c OK [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: 01 [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: 01 07 00 [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: 01 07 00 28 10 00 00 00 00 00 F6 0C 41 [15:15:13]RasterBufferAndPrint [15:15:13]line [15:15:13]line [15:15:13]line [15:15:13]line [15:15:13]line [15:15:13]written 0, free lines is 3322 [15:15:13]MH_Cut [15:15:13]Write to MH i2c: D1 01 00 2F 10 01 11 [15:15:13]Write i2c OK [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: D1 [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: D1 01 00 [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: D1 01 00 2F 10 00 10 [15:15:13]Write to MH i2c: 01 00 00 30 10 40 [15:15:13]Write i2c OK [15:15:13]MH_I2C_Read... [15:15:14]Connected sock=10 [15:15:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 A5 49 04 01 9C 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 10 27 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 CC 23 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 23 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1E 00 00 00 00 07 04 06 00 CC 23 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 00 23 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 AF 07 01 00 35 04 06 00 73 DA 3C DB C9 F7 7B A1 90 C2 E4 F3 8F 3C [15:15:14]*** Cut start [15:15:14]*** Purtial cut [15:15:14]*** Stage 1: CUTSNS_PIN = 1 [15:15:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 12 AD 47 00 45 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 AF 07 01 00 F4 03 04 00 DC CA 45 66 B6 04 01 00 00 0A 23 08 B6 7E 65 3C 53 [15:15:14]CommunicateWithHost err = 0 [15:15:14]CheckOFDResponse [15:15:14]1017 (14) - 77093643461234 [15:15:14]1041 (16) - 0000000000871829 [15:15:14]1040 (4) - 67503 [15:15:14]1012 (4) - 16.05.2024 08:59 [15:15:14]1206 (1) - 0 [15:15:14]OFD Sender: Remove packet 67503 [15:15:14]ProducePacketName [15:15:14]name=ofd_packets/00067503 [15:15:14]NVStorageDeleteData [15:15:14]Read from MH i2c: 01 [15:15:14]MH_I2C_Read... [15:15:14]*** Stop cut motor [15:15:14]*** Cut end [15:15:14]Read from MH i2c: 01 07 00 [15:15:14]MH_I2C_Read... [15:15:14]Read from MH i2c: 01 07 00 30 10 00 00 00 00 00 FF 0F 55 [15:15:14]process_action close_receipt done [15:15:14]requested_data is exist [15:15:14]produce_requested_data [15:15:14]requested_item fm.sn is exist - process it [15:15:14]wFMCommunicate request_size=4 [15:15:14]MH_SAM_APDU [15:15:14]CAPDU: 80 11 00 00 [15:15:14]Write to MH i2c: E2 08 00 31 10 80 11 00 00 00 00 00 00 BB [15:15:14]Write i2c OK [15:15:14]MH_I2C_Read... [15:15:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:15]Read from MH i2c: E2 [15:15:15]MH_I2C_Read... [15:15:15]Read from MH i2c: E2 17 00 [15:15:15]MH_I2C_Read... [15:15:15]Read from MH i2c: E2 17 00 31 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 11 [15:15:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:15:15]wFMCommunicate OK [15:15:15]requested_item fd.num is exist - process it [15:15:15]SAM_PROTO_GetFieldsCounters [15:15:15]wFMCommunicate request_size=4 [15:15:15]MH_SAM_APDU [15:15:15]CAPDU: 80 13 00 00 [15:15:15]Write to MH i2c: E2 08 00 32 10 80 13 00 00 00 00 00 00 BE [15:15:15]Write i2c OK [15:15:15]MH_I2C_Read... [15:15:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:15:15]Read from MH i2c: E2 [15:15:15]MH_I2C_Read... [15:15:15]Read from MH i2c: E2 62 00 [15:15:15]MH_I2C_Read... [15:15:15]Read from MH i2c: E2 62 00 32 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 AF 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [15:15:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 AF 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:15:15]wFMCommunicate OK [15:15:15]SAM_PROTO_GetFieldsCounters done [15:15:15]requested_item shift.num is exist - process it [15:15:15]requested_item shift.opened is exist - process it [15:15:15]req_shift_opened [15:15:15]FM_GetShiftState [15:15:15]SAM_PROTO_GetShiftState [15:15:15]wFMCommunicate request_size=4 [15:15:15]MH_SAM_APDU [15:15:15]CAPDU: 80 13 01 00 [15:15:15]Write to MH i2c: E2 08 00 33 10 80 13 01 00 00 00 00 00 C0 [15:15:15]Write i2c OK [15:15:15]MH_I2C_Read... [15:15:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:15]Read from MH i2c: E2 [15:15:15]MH_I2C_Read... [15:15:15]Read from MH i2c: E2 0E 00 [15:15:15]MH_I2C_Read... [15:15:15]Read from MH i2c: E2 0E 00 33 10 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 6C [15:15:15]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [15:15:15]wFMCommunicate OK [15:15:15]SAM_PROTO_GetShiftState done [15:15:15]FM_GetShiftState done [15:15:15]req_shift_opened done [15:15:15]requested_item shift.open_date is exist - process it [15:15:15]req_shift_open_date [15:15:15]req_shift_open_date done [15:15:15]produce_requested_data done [15:15:15]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67503,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [15:15:15]process_action_free close_receipt [15:15:15]json_value_free [15:15:15]json_value_free done [15:15:15]process_json_proto returns [15:15:15]Send response to host [15:15:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67503,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [15:15:15]free response buf [15:15:15]execute_script done [15:15:15]execute_script returns [15:15:15]free content buf [15:15:15]Sock 9.Close socket [15:15:15]Sock 9.Thread stoped [15:15:15]OFD Sender: No OFD packet to send [15:15:20]OFD Sender: No OFD packet to send [15:15:25]OFD Sender: No OFD packet to send [15:15:30]OFD Sender: No OFD packet to send [15:15:35]OFD Sender: No OFD packet to send [15:15:40]OFD Sender: No OFD packet to send [15:15:45]OFD Sender: No OFD packet to send [15:15:50]OFD Sender: No OFD packet to send [15:15:55]OFD Sender: No OFD packet to send [15:16:00]OFD Sender: No OFD packet to send [15:16:05]OFD Sender: No OFD packet to send [15:16:10]OFD Sender: No OFD packet to send [15:16:15]OFD Sender: No OFD packet to send [15:16:20]OFD Sender: No OFD packet to send [15:16:25]OFD Sender: No OFD packet to send [15:16:30]OFD Sender: No OFD packet to send [15:16:35]OFD Sender: No OFD packet to send [15:16:40]OFD Sender: No OFD packet to send [15:16:45]OFD Sender: No OFD packet to send [15:16:50]OFD Sender: No OFD packet to send [15:16:55]OFD Sender: No OFD packet to send [15:17:00]OFD Sender: No OFD packet to send [15:17:05]OFD Sender: No OFD packet to send [15:17:10]OFD Sender: No OFD packet to send [15:17:15]OFD Sender: No OFD packet to send [15:17:20]OFD Sender: No OFD packet to send [15:17:25]OFD Sender: No OFD packet to send [15:17:30]OFD Sender: No OFD packet to send [15:17:35]OFD Sender: No OFD packet to send [15:17:40]OFD Sender: No OFD packet to send [15:17:45]OFD Sender: No OFD packet to send [15:17:50]OFD Sender: No OFD packet to send [15:17:55]OFD Sender: No OFD packet to send [15:18:00]OFD Sender: No OFD packet to send [15:18:05]OFD Sender: No OFD packet to send [15:18:10]OFD Sender: No OFD packet to send [15:18:15]OFD Sender: No OFD packet to send [15:18:20]OFD Sender: No OFD packet to send [15:18:25]OFD Sender: No OFD packet to send [15:18:30]OFD Sender: No OFD packet to send [15:18:35]OFD Sender: No OFD packet to send [15:18:40]OFD Sender: No OFD packet to send [15:18:45]OFD Sender: No OFD packet to send [15:18:50]OFD Sender: No OFD packet to send [15:18:55]OFD Sender: No OFD packet to send [15:19:00]OFD Sender: No OFD packet to send [15:19:05]OFD Sender: No OFD packet to send [15:19:10]OFD Sender: No OFD packet to send [15:19:15]OFD Sender: No OFD packet to send [15:19:20]OFD Sender: No OFD packet to send [15:19:25]OFD Sender: No OFD packet to send [15:19:30]OFD Sender: No OFD packet to send [15:19:35]OFD Sender: No OFD packet to send [15:19:40]OFD Sender: No OFD packet to send [15:19:45]OFD Sender: No OFD packet to send [15:19:50]OFD Sender: No OFD packet to send [15:19:55]OFD Sender: No OFD packet to send [15:20:00]OFD Sender: No OFD packet to send [15:20:05]OFD Sender: No OFD packet to send [15:20:10]OFD Sender: No OFD packet to send [15:20:15]OFD Sender: No OFD packet to send [15:20:20]OFD Sender: No OFD packet to send [15:20:25]OFD Sender: No OFD packet to send [15:20:30]OFD Sender: No OFD packet to send [15:20:35]OFD Sender: No OFD packet to send [15:20:40]OFD Sender: No OFD packet to send [15:20:45]OFD Sender: No OFD packet to send [15:20:50]OFD Sender: No OFD packet to send [15:20:55]OFD Sender: No OFD packet to send [15:21:00]OFD Sender: No OFD packet to send [15:21:05]OFD Sender: No OFD packet to send [15:21:10]OFD Sender: No OFD packet to send [15:21:15]OFD Sender: No OFD packet to send [15:21:20]OFD Sender: No OFD packet to send [15:21:25]OFD Sender: No OFD packet to send [15:21:30]OFD Sender: No OFD packet to send [15:21:35]OFD Sender: No OFD packet to send [15:21:40]OFD Sender: No OFD packet to send [15:21:45]OFD Sender: No OFD packet to send [15:21:50]OFD Sender: No OFD packet to send [15:21:55]OFD Sender: No OFD packet to send [15:22:00]OFD Sender: No OFD packet to send [15:22:05]OFD Sender: No OFD packet to send [15:22:10]OFD Sender: No OFD packet to send [15:22:15]OFD Sender: No OFD packet to send [15:22:20]OFD Sender: No OFD packet to send [15:22:25]OFD Sender: No OFD packet to send [15:22:30]OFD Sender: No OFD packet to send [15:22:35]OFD Sender: No OFD packet to send [15:22:40]OFD Sender: No OFD packet to send [15:22:45]OFD Sender: No OFD packet to send [15:22:50]OFD Sender: No OFD packet to send [15:22:55]OFD Sender: No OFD packet to send [15:23:00]OFD Sender: No OFD packet to send [15:23:05]OFD Sender: No OFD packet to send [15:23:10]OFD Sender: No OFD packet to send [15:23:15]OFD Sender: No OFD packet to send [15:23:20]OFD Sender: No OFD packet to send [15:23:25]OFD Sender: No OFD packet to send [15:23:30]OFD Sender: No OFD packet to send [15:23:35]OFD Sender: No OFD packet to send [15:23:40]OFD Sender: No OFD packet to send [15:23:45]OFD Sender: No OFD packet to send [15:23:50]OFD Sender: No OFD packet to send [15:23:55]OFD Sender: No OFD packet to send [15:24:00]OFD Sender: No OFD packet to send [15:24:05]OFD Sender: No OFD packet to send [15:24:10]OFD Sender: No OFD packet to send [15:24:15]OFD Sender: No OFD packet to send [15:24:20]OFD Sender: No OFD packet to send [15:24:25]OFD Sender: No OFD packet to send [15:24:30]OFD Sender: No OFD packet to send [15:24:35]OFD Sender: No OFD packet to send [15:24:40]OFD Sender: No OFD packet to send [15:24:45]OFD Sender: No OFD packet to send [15:24:50]OFD Sender: No OFD packet to send [15:24:55]OFD Sender: No OFD packet to send [15:25:00]OFD Sender: No OFD packet to send [15:25:05]OFD Sender: No OFD packet to send [15:25:10]OFD Sender: No OFD packet to send [15:25:15]OFD Sender: No OFD packet to send [15:25:20]OFD Sender: No OFD packet to send [15:25:25]OFD Sender: No OFD packet to send [15:25:30]OFD Sender: No OFD packet to send [15:25:35]OFD Sender: No OFD packet to send [15:25:40]OFD Sender: No OFD packet to send [15:25:45]OFD Sender: No OFD packet to send [15:25:50]OFD Sender: No OFD packet to send [15:25:55]OFD Sender: No OFD packet to send [15:26:00]OFD Sender: No OFD packet to send [15:26:05]OFD Sender: No OFD packet to send [15:26:10]OFD Sender: No OFD packet to send [15:26:15]OFD Sender: No OFD packet to send [15:26:19]accept exits with 8 [15:26:19]New connection [15:26:19]New thread 3067182436 created [15:26:19]Thread 3067039076 joined [15:26:19]Waiting for new connection... [15:26:19] Sock 8.Parse request [15:26:19]Sock 8.Check first char [15:26:19]Sock 8.First char is OK [15:26:19]request: POST /json_proto HTTP/1.0 [15:26:19]Method: POST [15:26:19]URL: /json_proto [15:26:19]Method is POST - this is cgi request [15:26:19]url: /json_proto [15:26:19]query_string will be loaded in cgi processing [15:26:19]execute_cgi json_proto POST (null) [15:26:19]execute_cgi path=json_proto method=POST [15:26:19]POST find Content-Length [15:26:19]Host: 172.17.41.195:8080 [15:26:19]Content-Length: 1212 [15:26:19]Content-Type: application/json [15:26:19] [15:26:19]POST finish read [15:26:19]Found Content-Length = 1212 [15:26:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507555\u000A16.05.2024 15:08\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 29.940 x 66.80\u000A\u0418\u0422\u041E\u0413: 1999.99\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99642\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:19]execute_script... [15:26:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507555\u000A16.05.2024 15:08\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 29.940 x 66.80\u000A\u0418\u0422\u041E\u0413: 1999.99\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99642\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:19]POST & json_proto [15:26:19]process_json_proto [15:26:19]json parsed OK: [15:26:19]protocol is kg_v1.0 [15:26:19]action value=print_text [15:26:19]process_action print_text [15:26:19]cmd_print_text [15:26:19]ExternCall_PrintAddStr [15:26:19]wPrintStart [15:26:19]Write to MH i2c: 01 00 00 34 10 44 [15:26:19]Write i2c OK [15:26:19]MH_I2C_Read... [15:26:19]Read from MH i2c: 01 [15:26:19]MH_I2C_Read... [15:26:19]Read from MH i2c: 01 07 00 [15:26:19]MH_I2C_Read... [15:26:19]Read from MH i2c: 01 07 00 34 10 00 00 00 00 00 FF 0F 59 [15:26:19]RasterBufferAndPrint [15:26:19]line *****ТОВАРНЫЙ ЧЕК***** [15:26:19]line АЗС-91 [15:26:19]line Партнер нефть [15:26:19]line 02508201610067 [15:26:19]line Кассир : Пайзулдаева А. [15:26:19]line Счет N : (1)507555 [15:26:19]line 16.05.2024 15:08 [15:26:19]line ПРОДАЖА [15:26:19]line ТРК (МРК, ГНК): 33 [15:26:19]line Вид ГСМ : 2710124130 [15:26:19]line Аи-92-К-5 [15:26:19]line 29.940 x 66.80 [15:26:19]line ИТОГ: 1999.99 [15:26:19]line Тип оплаты: Талоны: Топливная Карта [15:26:19]line 99642 [15:26:19]line ______________________ [15:26:19]line (подпись) [15:26:19]written 0, free lines is 4095 [15:26:20]Write to MH i2c: 01 00 00 48 10 58 [15:26:20]Write i2c OK [15:26:20]MH_I2C_Read... [15:26:20]Read from MH i2c: 01 [15:26:20]MH_I2C_Read... [15:26:20]Read from MH i2c: 01 07 00 [15:26:20]MH_I2C_Read... [15:26:20]Read from MH i2c: 01 07 00 48 10 00 00 00 00 00 14 0E 81 [15:26:20]RasterBufferAndPrint [15:26:20]line [15:26:20]line [15:26:20]line [15:26:20]line [15:26:20]line [15:26:20]written 0, free lines is 3606 [15:26:20]MH_Cut [15:26:20]Write to MH i2c: D1 01 00 4F 10 01 31 [15:26:20]Write i2c OK [15:26:20]MH_I2C_Read... [15:26:20]Read from MH i2c: D1 [15:26:20]MH_I2C_Read... [15:26:20]Read from MH i2c: D1 01 00 [15:26:20]MH_I2C_Read... [15:26:20]Read from MH i2c: D1 01 00 4F 10 00 30 [15:26:20]Write to MH i2c: 01 00 00 50 10 60 [15:26:20]Write i2c OK [15:26:20]MH_I2C_Read... [15:26:20]*** Cut start [15:26:20]*** Purtial cut [15:26:20]*** CUTSNS_PIN = 0 [15:26:20]OFD Sender: No OFD packet to send [15:26:20]*** Stage 1: CUTSNS_PIN = 1 [15:26:22]Read from MH i2c: 01 [15:26:22]MH_I2C_Read... [15:26:22]*** Stop cut motor [15:26:22]*** Cut end [15:26:22]Read from MH i2c: 01 07 00 [15:26:22]MH_I2C_Read... [15:26:22]Read from MH i2c: 01 07 00 50 10 00 00 00 00 00 FF 0F 75 [15:26:22]process_action print_text done [15:26:22]requested_data is exist [15:26:22]produce_requested_data [15:26:22]requested_item fm.sn is exist - process it [15:26:22]wFMCommunicate request_size=4 [15:26:22]MH_SAM_APDU [15:26:22]CAPDU: 80 11 00 00 [15:26:22]Write to MH i2c: E2 08 00 51 10 80 11 00 00 00 00 00 00 DB [15:26:22]Write i2c OK [15:26:22]MH_I2C_Read... [15:26:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:22]Read from MH i2c: E2 [15:26:22]MH_I2C_Read... [15:26:22]Read from MH i2c: E2 17 00 [15:26:22]MH_I2C_Read... [15:26:22]Read from MH i2c: E2 17 00 51 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 31 [15:26:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:26:22]wFMCommunicate OK [15:26:22]requested_item fd.num is exist - process it [15:26:22]SAM_PROTO_GetFieldsCounters [15:26:22]wFMCommunicate request_size=4 [15:26:22]MH_SAM_APDU [15:26:22]CAPDU: 80 13 00 00 [15:26:22]Write to MH i2c: E2 08 00 52 10 80 13 00 00 00 00 00 00 DE [15:26:22]Write i2c OK [15:26:22]MH_I2C_Read... [15:26:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:26:22]Read from MH i2c: E2 [15:26:22]MH_I2C_Read... [15:26:22]Read from MH i2c: E2 62 00 [15:26:22]MH_I2C_Read... [15:26:22]Read from MH i2c: E2 62 00 52 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 AF 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [15:26: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 AF 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:26:22]wFMCommunicate OK [15:26:22]SAM_PROTO_GetFieldsCounters done [15:26:22]requested_item shift.num is exist - process it [15:26:22]requested_item shift.opened is exist - process it [15:26:22]req_shift_opened [15:26:22]FM_GetShiftState [15:26:22]SAM_PROTO_GetShiftState [15:26:22]wFMCommunicate request_size=4 [15:26:22]MH_SAM_APDU [15:26:22]CAPDU: 80 13 01 00 [15:26:22]Write to MH i2c: E2 08 00 53 10 80 13 01 00 00 00 00 00 E0 [15:26:22]Write i2c OK [15:26:22]MH_I2C_Read... [15:26:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:22]Read from MH i2c: E2 [15:26:22]MH_I2C_Read... [15:26:22]Read from MH i2c: E2 0E 00 [15:26:22]MH_I2C_Read... [15:26:22]Read from MH i2c: E2 0E 00 53 10 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 8C [15:26:22]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [15:26:22]wFMCommunicate OK [15:26:22]SAM_PROTO_GetShiftState done [15:26:22]FM_GetShiftState done [15:26:22]req_shift_opened done [15:26:22]requested_item shift.open_date is exist - process it [15:26:22]req_shift_open_date [15:26:22]req_shift_open_date done [15:26:22]produce_requested_data done [15:26:22]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67503,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [15:26:22]process_action_free print_text [15:26:22]json_value_free [15:26:22]json_value_free done [15:26:22]process_json_proto returns [15:26:22]Send response to host [15:26:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67503,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [15:26:22]free response buf [15:26:22]execute_script done [15:26:22]execute_script returns [15:26:22]free content buf [15:26:22]Sock 8.Close socket [15:26:22]Sock 8.Thread stoped [15:26:25]OFD Sender: No OFD packet to send [15:26:30]OFD Sender: No OFD packet to send [15:26:35]OFD Sender: No OFD packet to send [15:26:40]OFD Sender: No OFD packet to send [15:26:45]OFD Sender: No OFD packet to send [15:26:50]OFD Sender: No OFD packet to send [15:26:55]OFD Sender: No OFD packet to send [15:27:00]OFD Sender: No OFD packet to send [15:27:05]OFD Sender: No OFD packet to send [15:27:10]OFD Sender: No OFD packet to send [15:27:15]OFD Sender: No OFD packet to send [15:27:20]OFD Sender: No OFD packet to send [15:27:25]OFD Sender: No OFD packet to send [15:27:30]OFD Sender: No OFD packet to send [15:27:35]OFD Sender: No OFD packet to send [15:27:40]OFD Sender: No OFD packet to send [15:27:45]OFD Sender: No OFD packet to send [15:27:50]OFD Sender: No OFD packet to send [15:27:55]OFD Sender: No OFD packet to send [15:28:00]OFD Sender: No OFD packet to send [15:28:05]OFD Sender: No OFD packet to send [15:28:10]OFD Sender: No OFD packet to send [15:28:15]OFD Sender: No OFD packet to send [15:28:20]OFD Sender: No OFD packet to send [15:28:25]OFD Sender: No OFD packet to send [15:28:30]OFD Sender: No OFD packet to send [15:28:35]OFD Sender: No OFD packet to send [15:28:40]OFD Sender: No OFD packet to send [15:28:45]OFD Sender: No OFD packet to send [15:28:50]OFD Sender: No OFD packet to send [15:28:55]OFD Sender: No OFD packet to send [15:29:00]OFD Sender: No OFD packet to send [15:29:05]OFD Sender: No OFD packet to send [15:29:10]OFD Sender: No OFD packet to send [15:29:15]OFD Sender: No OFD packet to send [15:29:20]OFD Sender: No OFD packet to send [15:29:26]OFD Sender: No OFD packet to send [15:29:31]OFD Sender: No OFD packet to send [15:29:36]OFD Sender: No OFD packet to send [15:29:41]OFD Sender: No OFD packet to send [15:29:46]OFD Sender: No OFD packet to send [15:29:47]accept exits with 9 [15:29:47]New connection [15:29:47]New thread 3067039076 created [15:29:47]Thread 3067182436 joined [15:29:47]Waiting for new connection... [15:29:47] Sock 9.Parse request [15:29:47]Sock 9.Check first char [15:29:47]Sock 9.First char is OK [15:29:47]request: POST /json_proto HTTP/1.0 [15:29:47]Method: POST [15:29:47]URL: /json_proto [15:29:47]Method is POST - this is cgi request [15:29:47]url: /json_proto [15:29:47]query_string will be loaded in cgi processing [15:29:47]execute_cgi json_proto POST (null) [15:29:47]execute_cgi path=json_proto method=POST [15:29:47]POST find Content-Length [15:29:47]Host: 172.17.41.195:8080 [15:29:47]Content-Length: 679 [15:29:47]Content-Type: application/json [15:29:47] [15:29:47]POST finish read [15:29:47]Found Content-Length = 679 [15:29:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507556", "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" : 74.70, "quantity" : 16.070, "sum" : 1200.43, "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" ] } } [15:29:47]execute_script... [15:29:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507556", "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" : 74.70, "quantity" : 16.070, "sum" : 1200.43, "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" ] } } [15:29:47]POST & json_proto [15:29:47]process_json_proto [15:29:47]json parsed OK: [15:29:47]protocol is kg_v1.0 [15:29:47]action value=close_receipt [15:29:47]process_action close_receipt [15:29:47]cmd_close_receipt [15:29:47]MH_GetDate [15:29:47]Write to MH i2c: F0 00 00 54 10 53 [15:29:47]Write i2c OK [15:29:47]MH_I2C_Read... [15:29:47]Read from MH i2c: F0 [15:29:47]MH_I2C_Read... [15:29:47]Read from MH i2c: F0 09 00 [15:29:47]MH_I2C_Read... [15:29:47]Read from MH i2c: F0 09 00 54 10 00 6C 26 46 66 FC 21 6F 64 8A [15:29:47]GetLastDocTimeStamp 1715872512 [15:29:47]current date 1715873388 [15:29:47]FM_GetShiftState [15:29:47]SAM_PROTO_GetShiftState [15:29:47]wFMCommunicate request_size=4 [15:29:47]MH_SAM_APDU [15:29:47]CAPDU: 80 13 01 00 [15:29:47]Write to MH i2c: E2 08 00 55 10 80 13 01 00 00 00 00 00 E2 [15:29:47]Write i2c OK [15:29:47]MH_I2C_Read... [15:29:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:47]Read from MH i2c: E2 [15:29:47]MH_I2C_Read... [15:29:47]Read from MH i2c: E2 0E 00 [15:29:47]MH_I2C_Read... [15:29:47]Read from MH i2c: E2 0E 00 55 10 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 8E [15:29:47]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [15:29:47]wFMCommunicate OK [15:29:47]SAM_PROTO_GetShiftState done [15:29:47]FM_GetShiftState done [15:29:47]opened in 1715818916 [15:29:47]opened+sec_in_day 1715905316 [15:29:47]quantity*price = 120042 [15:29:47]sum+1 = 120044 [15:29:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.48 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 102 16.05.2024 15:29 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67504 ФПД: 152530822847832 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T152948&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67504&fm=152530822847832&tin=02508201610067®Number=0000000000091845&sum=120000 [15:29:48]StoreToDocumentArchive [15:29:48]shift 357 fd 67504 [15:29:48]save to /storage/0357/doc_00067504 [15:29:48]save last doc name /storage/0357/doc_00067504 to /storage/kkm_last_doc_name [15:29:48]save OK [15:29:48]Clear old archive folders... [15:29:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:29:48]tlvbuf is 017E8B90 [15:29:48]SAM_PROTO_ClearQueue [15:29:48]wFMCommunicate request_size=4 [15:29:48]MH_SAM_APDU [15:29:48]CAPDU: 80 09 00 00 [15:29:48]Write to MH i2c: E2 08 00 62 10 80 09 00 00 00 00 00 00 E4 [15:29:48]Write i2c OK [15:29:48]MH_I2C_Read... [15:29:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:29:48]Read from MH i2c: E2 [15:29:48]MH_I2C_Read... [15:29:48]Read from MH i2c: E2 03 00 [15:29:48]MH_I2C_Read... [15:29:48]Read from MH i2c: E2 03 00 62 10 00 90 00 E6 [15:29:48]RAPDU: 90 00 [15:29:48]wFMCommunicate OK [15:29:48]SAM_PROTO_ClearQueue done [15:29:48]KKMCreateOFDPacket [15:29:48]OFDProtocolAddRootSTLVToBuf [15:29:48]FM_MakeSignedData [15:29:48]FM_MakeSignedData [15:29:48]SAM_PROTO_SignData [15:29:48]wFMCommunicate request_size=4 [15:29:48]MH_SAM_APDU [15:29:48]CAPDU: 80 0D 01 02 [15:29:48]Write to MH i2c: E2 08 00 63 10 80 0D 01 02 00 00 00 00 EC [15:29:48]Write i2c OK [15:29:48]MH_I2C_Read... [15:29:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:29:48]Read from MH i2c: E2 [15:29:48]MH_I2C_Read... [15:29:48]Read from MH i2c: E2 03 00 [15:29:48]MH_I2C_Read... [15:29:48]Read from MH i2c: E2 03 00 63 10 00 90 00 E7 [15:29:48]RAPDU: 90 00 [15:29:48]wFMCommunicate OK [15:29:48]wFMCommunicate request_size=255 [15:29:48]MH_SAM_APDU [15:29: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 C6 3E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 EB 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 CC 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 66 00 00 00 F4 03 04 00 6C 26 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B0 07 01 00 35 04 06 00 8A B9 D9 83 [15:29:48]Write to MH i2c: E2 02 01 64 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 C6 3E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 EB 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 CC 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 66 00 00 00 F4 03 04 00 6C 26 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B0 07 01 00 35 04 06 00 8A B9 D9 83 00 00 0F [15:29:48]Write i2c OK [15:29:48]MH_I2C_Read... [15:29:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:48]Read from MH i2c: E2 [15:29:48]MH_I2C_Read... [15:29:48]Read from MH i2c: E2 03 00 [15:29:48]MH_I2C_Read... [15:29:48]Read from MH i2c: E2 03 00 64 10 00 90 00 E8 [15:29:48]RAPDU: 90 00 [15:29:48]wFMCommunicate OK [15:29:48]wFMCommunicate request_size=7 [15:29:48]MH_SAM_APDU [15:29:48]CAPDU: 80 0D 02 02 02 5D 58 [15:29:48]Write to MH i2c: E2 0A 00 65 10 80 0D 02 02 02 00 5D 58 00 00 A8 [15:29:48]Write i2c OK [15:29:48]MH_I2C_Read... [15:29:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:48]Read from MH i2c: E2 [15:29:48]MH_I2C_Read... [15:29:48]Read from MH i2c: E2 03 00 [15:29:48]MH_I2C_Read... [15:29:48]Read from MH i2c: E2 03 00 65 10 00 90 00 E9 [15:29:48]RAPDU: 90 00 [15:29:48]wFMCommunicate OK [15:29:48]wFMCommunicate request_size=4 [15:29:48]MH_SAM_APDU [15:29:48]CAPDU: 80 0D 03 02 [15:29:48]Write to MH i2c: E2 08 00 66 10 80 0D 03 02 00 00 00 00 F1 [15:29:48]Write i2c OK [15:29:48]MH_I2C_Read... [15:29:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:29:48]Read from MH i2c: E2 [15:29:48]MH_I2C_Read... [15:29:48]Read from MH i2c: E2 0B 00 [15:29:48]MH_I2C_Read... [15:29:48]Read from MH i2c: E2 0B 00 66 10 00 13 4D 97 C2 0F 56 96 70 90 00 16 [15:29:48]RAPDU: 13 4D 97 C2 0F 56 96 70 90 00 [15:29:48]wFMCommunicate OK [15:29:48]SAM_PROTO_SignData done [15:29:48]FM_MakeSignedData done [15:29:48]CreateOFDProtocolMessage [15:29:48]wFMCommunicate request_size=4 [15:29:48]MH_SAM_APDU [15:29:48]CAPDU: 80 11 00 00 [15:29:48]Write to MH i2c: E2 08 00 67 10 80 11 00 00 00 00 00 00 F1 [15:29:48]Write i2c OK [15:29:48]MH_I2C_Read... [15:29:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:48]Read from MH i2c: E2 [15:29:48]MH_I2C_Read... [15:29:48]Read from MH i2c: E2 17 00 [15:29:48]MH_I2C_Read... [15:29:48]Read from MH i2c: E2 17 00 67 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 47 [15:29:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:29:48]wFMCommunicate OK [15:29:48]CreateOFDProtocolMessage done [15:29:48]OFDSenderStorePacket 67504 [15:29:48]StoreOFDPacket docnum=67504 [15:29:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 66 52 04 01 2C 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 C6 3E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 EB 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 CC 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 66 00 00 00 F4 03 04 00 6C 26 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B0 07 01 00 35 04 06 00 8A B9 D9 83 5D 58 13 4D 97 C2 0F 56 96 70 [15:29:48]CheckFolder [15:29:48]dirname=/storage/ofd_packets [15:29:48]CheckFolder done [15:29:48]ProducePacketName [15:29:48]name=ofd_packets/00067504 [15:29:48]NVStorageSaveData ofd_packets/00067504 [15:29:48]File name is /storage/ofd_packets/00067504 [15:29:48]Write 298 bytes [15:29:48]NVStorageSaveData done [15:29:48]OFDSenderStorePacket done [15:29:48]KKMCreateOFDPacket done [15:29:48]NVStorageSaveData kkm_last_timestamp [15:29:48]File name is /storage/kkm_last_timestamp [15:29:48]Write 4 bytes [15:29:48]NVStorageSaveData done [15:29:48]ExternCall_PrintAddStr [15:29:48]wPrintStart [15:29:48]Write to MH i2c: 01 00 00 68 10 78 [15:29:48]Write i2c OK [15:29:48]MH_I2C_Read... [15:29:48]Read from MH i2c: 01 [15:29:48]MH_I2C_Read... [15:29:48]Read from MH i2c: 01 07 00 [15:29:48]MH_I2C_Read... [15:29:48]Read from MH i2c: 01 07 00 68 10 00 00 00 00 00 FF 0F 8D [15:29:48]RasterBufferAndPrint [15:29:48]line Счет N : (1)507556 [15:29:48]line ИНН: 02508201610067 [15:29:48]line Контрольно-Кассовый Чек [15:29:48]line ПРОДАЖА [15:29:48]line ТРК (МРК, ГНК) : 21 [15:29:48]line Товар: 2710194210 [15:29:48]line ДТ-К-5 [15:29:48]line 16.070 * 74.70 [15:29:48]line = 1200.43 [15:29:48]line НДС 12% НСП 1% [15:29:48]line > о реализуемом товаре [15:29:48]line ОКРУГЛЕНИЕ: -0.43 [15:29:48]line ИТОГО: 1200.00 [15:29:48]line Внесено: 1200.00 [15:29:48]line СДАЧА: 0.00 [15:29:48]line НСП 1% : 10.62 [15:29:48]line НДС 12% : 127.48 [15:29:48]line Наличными: 1200.00 [15:29:48]line Безнал.: 0.00 [15:29:48]line Место: АЗС № 91 "Партнер Нефть" [15:29:48]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [15:29:48]line СНО: Общий режим [15:29:48]line Чек 102 16.05.2024 15:29 [15:29:48]line Смена: 357 ФФД: 1.0 [15:29:48]line ЗНМ: 0300000119 [15:29:48]line РНМ: 0000000000091845 [15:29:48]line Версия ККМ: 001 [15:29:48]line ФМ: 0000000000871829 [15:29:48]line ФД: 67504 [15:29:48]line ФПД: 152530822847832 [15:29:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T152948&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67504&fm=152530822847832&tin=02508201610067®Number=0000000000091845&sum=120000 [15:29:49]OFD Sender: Processing packet 67504 [packets to send 35, broken 34] [15:29:49]ProducePacketName [15:29:49]name=ofd_packets/00067504 [15:29:49]OFD Sender: To server: pG, [15:29:49]CommunicateWithHost lk.salyk.kg:30040 [15:29:49]ConnectInit lk.salyk.kg [15:29:49]written 0, free lines is 4095 [15:29:49]Connected sock=10 [15:29:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 66 52 04 01 2C 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 C6 3E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 EB 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 CC 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 66 00 00 00 F4 03 04 00 6C 26 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B0 07 01 00 35 04 06 00 8A B9 D9 83 5D 58 13 4D 97 C2 0F 56 96 70 [15:29:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 F8 D1 47 00 8A 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 38 32 39 10 04 04 00 B0 07 01 00 F4 03 04 00 47 CE 45 66 B6 04 01 00 00 F6 40 46 60 CD C7 C9 84 [15:29:49]CommunicateWithHost err = 0 [15:29:49]CheckOFDResponse [15:29:49]1017 (14) - 77093643461234 [15:29:49]1041 (16) - 0000000000871829 [15:29:49]1040 (4) - 67504 [15:29:49]1012 (4) - 16.05.2024 09:13 [15:29:49]1206 (1) - 0 [15:29:49]OFD Sender: Remove packet 67504 [15:29:49]ProducePacketName [15:29:49]name=ofd_packets/00067504 [15:29:49]NVStorageDeleteData [15:29:49]Write to MH i2c: 01 00 00 92 10 A2 [15:29:49]Write i2c OK [15:29:49]MH_I2C_Read... [15:29:49]Read from MH i2c: 01 [15:29:49]MH_I2C_Read... [15:29:49]Read from MH i2c: 01 07 00 [15:29:49]MH_I2C_Read... [15:29:49]Read from MH i2c: 01 07 00 92 10 00 00 00 00 00 E2 0C 97 [15:29:49]RasterBufferAndPrint [15:29:49]line [15:29:49]line [15:29:49]line [15:29:49]line [15:29:49]line [15:29:49]written 0, free lines is 3303 [15:29:49]MH_Cut [15:29:49]Write to MH i2c: D1 01 00 99 10 01 7B [15:29:49]Write i2c OK [15:29:49]MH_I2C_Read... [15:29:49]Read from MH i2c: D1 [15:29:49]MH_I2C_Read... [15:29:49]Read from MH i2c: D1 01 00 [15:29:49]MH_I2C_Read... [15:29:49]Read from MH i2c: D1 01 00 99 10 00 7A [15:29:49]Write to MH i2c: 01 00 00 9A 10 AA [15:29:49]Write i2c OK [15:29:49]MH_I2C_Read... [15:29:50]OFD Sender: No OFD packet to send [15:29:50]*** Cut start [15:29:50]*** Purtial cut [15:29:50]*** Stage 1: CUTSNS_PIN = 1 [15:29:50]Read from MH i2c: 01 [15:29:50]MH_I2C_Read... [15:29:50]*** Stop cut motor [15:29:50]*** Cut end [15:29:50]Read from MH i2c: 01 07 00 [15:29:50]MH_I2C_Read... [15:29:50]Read from MH i2c: 01 07 00 9A 10 00 00 00 00 00 FF 0F BF [15:29:50]process_action close_receipt done [15:29:50]requested_data is exist [15:29:50]produce_requested_data [15:29:50]requested_item fm.sn is exist - process it [15:29:50]wFMCommunicate request_size=4 [15:29:50]MH_SAM_APDU [15:29:50]CAPDU: 80 11 00 00 [15:29:50]Write to MH i2c: E2 08 00 9B 10 80 11 00 00 00 00 00 00 25 [15:29:50]Write i2c OK [15:29:50]MH_I2C_Read... [15:29:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:50]Read from MH i2c: E2 [15:29:50]MH_I2C_Read... [15:29:50]Read from MH i2c: E2 17 00 [15:29:50]MH_I2C_Read... [15:29:50]Read from MH i2c: E2 17 00 9B 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7B [15:29:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:29:50]wFMCommunicate OK [15:29:50]requested_item fd.num is exist - process it [15:29:50]SAM_PROTO_GetFieldsCounters [15:29:50]wFMCommunicate request_size=4 [15:29:50]MH_SAM_APDU [15:29:50]CAPDU: 80 13 00 00 [15:29:50]Write to MH i2c: E2 08 00 9C 10 80 13 00 00 00 00 00 00 28 [15:29:50]Write i2c OK [15:29:50]MH_I2C_Read... [15:29:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:29:51]Read from MH i2c: E2 [15:29:51]MH_I2C_Read... [15:29:51]Read from MH i2c: E2 62 00 [15:29:51]MH_I2C_Read... [15:29:51]Read from MH i2c: E2 62 00 9C 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B0 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [15:29:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B0 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:29:51]wFMCommunicate OK [15:29:51]SAM_PROTO_GetFieldsCounters done [15:29:51]requested_item shift.num is exist - process it [15:29:51]requested_item shift.opened is exist - process it [15:29:51]req_shift_opened [15:29:51]FM_GetShiftState [15:29:51]SAM_PROTO_GetShiftState [15:29:51]wFMCommunicate request_size=4 [15:29:51]MH_SAM_APDU [15:29:51]CAPDU: 80 13 01 00 [15:29:51]Write to MH i2c: E2 08 00 9D 10 80 13 01 00 00 00 00 00 2A [15:29:51]Write i2c OK [15:29:51]MH_I2C_Read... [15:29:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:51]Read from MH i2c: E2 [15:29:51]MH_I2C_Read... [15:29:51]Read from MH i2c: E2 0E 00 [15:29:51]MH_I2C_Read... [15:29:51]Read from MH i2c: E2 0E 00 9D 10 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 D6 [15:29:51]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [15:29:51]wFMCommunicate OK [15:29:51]SAM_PROTO_GetShiftState done [15:29:51]FM_GetShiftState done [15:29:51]req_shift_opened done [15:29:51]requested_item shift.open_date is exist - process it [15:29:51]req_shift_open_date [15:29:51]req_shift_open_date done [15:29:51]produce_requested_data done [15:29:51]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67504,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [15:29:51]process_action_free close_receipt [15:29:51]json_value_free [15:29:51]json_value_free done [15:29:51]process_json_proto returns [15:29:51]Send response to host [15:29:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67504,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [15:29:51]free response buf [15:29:51]execute_script done [15:29:51]execute_script returns [15:29:51]free content buf [15:29:51]Sock 9.Close socket [15:29:51]Sock 9.Thread stoped [15:29:55]OFD Sender: No OFD packet to send [15:30:00]OFD Sender: No OFD packet to send [15:30:05]OFD Sender: No OFD packet to send [15:30:10]OFD Sender: No OFD packet to send [15:30:15]OFD Sender: No OFD packet to send [15:30:20]OFD Sender: No OFD packet to send [15:30:25]OFD Sender: No OFD packet to send [15:30:30]OFD Sender: No OFD packet to send [15:30:35]OFD Sender: No OFD packet to send [15:30:40]OFD Sender: No OFD packet to send [15:30:45]OFD Sender: No OFD packet to send [15:30:50]OFD Sender: No OFD packet to send [15:30:55]OFD Sender: No OFD packet to send [15:31:00]OFD Sender: No OFD packet to send [15:31:05]OFD Sender: No OFD packet to send [15:31:10]OFD Sender: No OFD packet to send [15:31:15]OFD Sender: No OFD packet to send [15:31:20]OFD Sender: No OFD packet to send [15:31:25]OFD Sender: No OFD packet to send [15:31:30]OFD Sender: No OFD packet to send [15:31:35]OFD Sender: No OFD packet to send [15:31:40]OFD Sender: No OFD packet to send [15:31:45]OFD Sender: No OFD packet to send [15:31:50]OFD Sender: No OFD packet to send [15:31:55]OFD Sender: No OFD packet to send [15:32:00]OFD Sender: No OFD packet to send [15:32:05]OFD Sender: No OFD packet to send [15:32:10]OFD Sender: No OFD packet to send [15:32:15]OFD Sender: No OFD packet to send [15:32:20]OFD Sender: No OFD packet to send [15:32:25]OFD Sender: No OFD packet to send [15:32:30]OFD Sender: No OFD packet to send [15:32:35]OFD Sender: No OFD packet to send [15:32:40]OFD Sender: No OFD packet to send [15:32:45]OFD Sender: No OFD packet to send [15:32:50]OFD Sender: No OFD packet to send [15:32:55]OFD Sender: No OFD packet to send [15:33:00]OFD Sender: No OFD packet to send [15:33:05]OFD Sender: No OFD packet to send [15:33:10]OFD Sender: No OFD packet to send [15:33:15]OFD Sender: No OFD packet to send [15:33:20]OFD Sender: No OFD packet to send [15:33:25]OFD Sender: No OFD packet to send [15:33:30]OFD Sender: No OFD packet to send [15:33:35]OFD Sender: No OFD packet to send [15:33:40]OFD Sender: No OFD packet to send [15:33:45]OFD Sender: No OFD packet to send [15:33:50]OFD Sender: No OFD packet to send [15:33:55]OFD Sender: No OFD packet to send [15:34:00]OFD Sender: No OFD packet to send [15:34:05]OFD Sender: No OFD packet to send [15:34:10]OFD Sender: No OFD packet to send [15:34:15]OFD Sender: No OFD packet to send [15:34:20]OFD Sender: No OFD packet to send [15:34:25]OFD Sender: No OFD packet to send [15:34:30]OFD Sender: No OFD packet to send [15:34:35]OFD Sender: No OFD packet to send [15:34:40]OFD Sender: No OFD packet to send [15:34:45]OFD Sender: No OFD packet to send [15:34:50]OFD Sender: No OFD packet to send [15:34:55]OFD Sender: No OFD packet to send [15:35:00]OFD Sender: No OFD packet to send [15:35:05]OFD Sender: No OFD packet to send [15:35:10]OFD Sender: No OFD packet to send [15:35:15]OFD Sender: No OFD packet to send [15:35:20]OFD Sender: No OFD packet to send [15:35:25]OFD Sender: No OFD packet to send [15:35:30]OFD Sender: No OFD packet to send [15:35:35]OFD Sender: No OFD packet to send [15:35:40]OFD Sender: No OFD packet to send [15:35:45]OFD Sender: No OFD packet to send [15:35:50]OFD Sender: No OFD packet to send [15:35:55]OFD Sender: No OFD packet to send [15:36:00]OFD Sender: No OFD packet to send [15:36:05]accept exits with 8 [15:36:05]New connection [15:36:05]New thread 3067182436 created [15:36:05]Thread 3067039076 joined [15:36:05]Waiting for new connection... [15:36:05] Sock 8.Parse request [15:36:05]Sock 8.Check first char [15:36:05]Sock 8.First char is OK [15:36:05]request: POST /json_proto HTTP/1.0 [15:36:05]Method: POST [15:36:05]URL: /json_proto [15:36:05]Method is POST - this is cgi request [15:36:05]url: /json_proto [15:36:05]query_string will be loaded in cgi processing [15:36:05]execute_cgi json_proto POST (null) [15:36:05]execute_cgi path=json_proto method=POST [15:36:05]POST find Content-Length [15:36:05]Host: 172.17.41.195:8080 [15:36:05]Content-Length: 677 [15:36:05]Content-Type: application/json [15:36:05] [15:36:05]POST finish read [15:36:05]Found Content-Length = 677 [15:36:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507557", "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.80, "quantity" : 4.500, "sum" : 300.60, "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:36:05]execute_script... [15:36: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)507557", "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.80, "quantity" : 4.500, "sum" : 300.60, "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:36:05]POST & json_proto [15:36:05]process_json_proto [15:36:05]json parsed OK: [15:36:05]protocol is kg_v1.0 [15:36:05]action value=close_receipt [15:36:05]process_action close_receipt [15:36:05]cmd_close_receipt [15:36:05]MH_GetDate [15:36:05]Write to MH i2c: F0 00 00 9E 10 9D [15:36:05]Write i2c OK [15:36:05]MH_I2C_Read... [15:36:05]Read from MH i2c: F0 [15:36:05]MH_I2C_Read... [15:36:05]Read from MH i2c: F0 09 00 [15:36:05]MH_I2C_Read... [15:36:05]Read from MH i2c: F0 09 00 9E 10 00 E6 27 46 66 FC 21 6F 64 4F [15:36:05]GetLastDocTimeStamp 1715873388 [15:36:05]current date 1715873766 [15:36:05]FM_GetShiftState [15:36:05]SAM_PROTO_GetShiftState [15:36:05]wFMCommunicate request_size=4 [15:36:05]MH_SAM_APDU [15:36:05]CAPDU: 80 13 01 00 [15:36:05]Write to MH i2c: E2 08 00 9F 10 80 13 01 00 00 00 00 00 2C [15:36:05]Write i2c OK [15:36:05]MH_I2C_Read... [15:36:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:05]Read from MH i2c: E2 [15:36:05]MH_I2C_Read... [15:36:05]Read from MH i2c: E2 0E 00 [15:36:05]MH_I2C_Read... [15:36:05]Read from MH i2c: E2 0E 00 9F 10 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 D8 [15:36:05]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [15:36:05]wFMCommunicate OK [15:36:05]SAM_PROTO_GetShiftState done [15:36:05]FM_GetShiftState done [15:36:05]opened in 1715818916 [15:36:05]opened+sec_in_day 1715905316 [15:36:05]quantity*price = 30060 [15:36:05]sum+1 = 30061 [15:36:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 103 16.05.2024 15:36 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67505 ФПД: 214167681552613 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T153606&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67505&fm=214167681552613&tin=02508201610067®Number=0000000000091845&sum=30000 [15:36:06]StoreToDocumentArchive [15:36:06]shift 357 fd 67505 [15:36:06]save to /storage/0357/doc_00067505 [15:36:06]save last doc name /storage/0357/doc_00067505 to /storage/kkm_last_doc_name [15:36:06]save OK [15:36:06]Clear old archive folders... [15:36:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:36:06]tlvbuf is B6EF9260 [15:36:06]SAM_PROTO_ClearQueue [15:36:06]wFMCommunicate request_size=4 [15:36:06]MH_SAM_APDU [15:36:06]CAPDU: 80 09 00 00 [15:36:06]Write to MH i2c: E2 08 00 AC 10 80 09 00 00 00 00 00 00 2E [15:36:06]Write i2c OK [15:36:06]MH_I2C_Read... [15:36:06]Read from MH i2c: E2 [15:36:06]MH_I2C_Read... [15:36:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:36:06]Read from MH i2c: E2 03 00 [15:36:06]MH_I2C_Read... [15:36:06]Read from MH i2c: E2 03 00 AC 10 00 90 00 30 [15:36:06]RAPDU: 90 00 [15:36:06]wFMCommunicate OK [15:36:06]SAM_PROTO_ClearQueue done [15:36:06]KKMCreateOFDPacket [15:36:06]OFDProtocolAddRootSTLVToBuf [15:36:06]FM_MakeSignedData [15:36:06]FM_MakeSignedData [15:36:06]SAM_PROTO_SignData [15:36:06]wFMCommunicate request_size=4 [15:36:06]MH_SAM_APDU [15:36:06]CAPDU: 80 0D 01 02 [15:36:06]Write to MH i2c: E2 08 00 AD 10 80 0D 01 02 00 00 00 00 36 [15:36:06]Write i2c OK [15:36:06]MH_I2C_Read... [15:36:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:36:06]Read from MH i2c: E2 [15:36:06]MH_I2C_Read... [15:36:06]Read from MH i2c: E2 03 00 [15:36:06]MH_I2C_Read... [15:36:06]Read from MH i2c: E2 03 00 AD 10 00 90 00 31 [15:36:06]RAPDU: 90 00 [15:36:06]wFMCommunicate OK [15:36:06]wFMCommunicate request_size=255 [15:36:06]MH_SAM_APDU [15:36:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 11 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 E6 27 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B1 07 01 00 35 04 06 00 C2 [15:36:06]Write to MH i2c: E2 02 01 AE 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 94 11 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 E6 27 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B1 07 01 00 35 04 06 00 C2 00 00 D7 [15:36:06]Write i2c OK [15:36:06]MH_I2C_Read... [15:36:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:06]Read from MH i2c: E2 [15:36:06]MH_I2C_Read... [15:36:06]Read from MH i2c: E2 03 00 [15:36:06]MH_I2C_Read... [15:36:06]Read from MH i2c: E2 03 00 AE 10 00 90 00 32 [15:36:06]RAPDU: 90 00 [15:36:06]wFMCommunicate OK [15:36:06]wFMCommunicate request_size=10 [15:36:06]MH_SAM_APDU [15:36:06]CAPDU: 80 0D 02 02 05 C8 CC 94 D0 E5 [15:36:06]Write to MH i2c: E2 0D 00 AF 10 80 0D 02 02 05 00 C8 CC 94 D0 E5 00 00 20 [15:36:06]Write i2c OK [15:36:06]MH_I2C_Read... [15:36:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:06]Read from MH i2c: E2 [15:36:06]MH_I2C_Read... [15:36:06]Read from MH i2c: E2 03 00 [15:36:06]MH_I2C_Read... [15:36:06]Read from MH i2c: E2 03 00 AF 10 00 90 00 33 [15:36:06]RAPDU: 90 00 [15:36:06]wFMCommunicate OK [15:36:06]wFMCommunicate request_size=4 [15:36:06]MH_SAM_APDU [15:36:06]CAPDU: 80 0D 03 02 [15:36:06]Write to MH i2c: E2 08 00 B0 10 80 0D 03 02 00 00 00 00 3B [15:36:06]Write i2c OK [15:36:06]MH_I2C_Read... [15:36:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:36:06]Read from MH i2c: E2 [15:36:06]MH_I2C_Read... [15:36:06]Read from MH i2c: E2 0B 00 [15:36:06]MH_I2C_Read... [15:36:06]Read from MH i2c: E2 0B 00 B0 10 00 3C DD 5C DA 12 4A 9F 86 90 00 0C [15:36:06]RAPDU: 3C DD 5C DA 12 4A 9F 86 90 00 [15:36:06]wFMCommunicate OK [15:36:06]SAM_PROTO_SignData done [15:36:06]FM_MakeSignedData done [15:36:06]CreateOFDProtocolMessage [15:36:06]wFMCommunicate request_size=4 [15:36:06]MH_SAM_APDU [15:36:06]CAPDU: 80 11 00 00 [15:36:06]Write to MH i2c: E2 08 00 B1 10 80 11 00 00 00 00 00 00 3B [15:36:06]Write i2c OK [15:36:06]MH_I2C_Read... [15:36:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:06]Read from MH i2c: E2 [15:36:06]MH_I2C_Read... [15:36:06]Read from MH i2c: E2 17 00 [15:36:06]MH_I2C_Read... [15:36:06]Read from MH i2c: E2 17 00 B1 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 91 [15:36:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:36:06]wFMCommunicate OK [15:36:06]CreateOFDProtocolMessage done [15:36:06]OFDSenderStorePacket 67505 [15:36:06]StoreOFDPacket docnum=67505 [15:36:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 41 38 07 01 7E 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 94 11 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 E6 27 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B1 07 01 00 35 04 06 00 C2 C8 CC 94 D0 E5 3C DD 5C DA 12 4A 9F 86 [15:36:06]CheckFolder [15:36:06]dirname=/storage/ofd_packets [15:36:06]CheckFolder done [15:36:06]ProducePacketName [15:36:06]name=ofd_packets/00067505 [15:36:06]NVStorageSaveData ofd_packets/00067505 [15:36:06]File name is /storage/ofd_packets/00067505 [15:36:06]Write 301 bytes [15:36:06]NVStorageSaveData done [15:36:06]OFDSenderStorePacket done [15:36:06]KKMCreateOFDPacket done [15:36:06]NVStorageSaveData kkm_last_timestamp [15:36:06]File name is /storage/kkm_last_timestamp [15:36:06]Write 4 bytes [15:36:06]NVStorageSaveData done [15:36:06]ExternCall_PrintAddStr [15:36:06]wPrintStart [15:36:06]Write to MH i2c: 01 00 00 B2 10 C2 [15:36:06]Write i2c OK [15:36:06]MH_I2C_Read... [15:36:06]Read from MH i2c: 01 [15:36:06]MH_I2C_Read... [15:36:06]Read from MH i2c: 01 07 00 [15:36:06]MH_I2C_Read... [15:36:06]Read from MH i2c: 01 07 00 B2 10 00 00 00 00 00 FF 0F D7 [15:36:06]RasterBufferAndPrint [15:36:06]line Счет N : (1)507557 [15:36:06]line ИНН: 02508201610067 [15:36:06]line Контрольно-Кассовый Чек [15:36:06]line ПРОДАЖА [15:36:06]line ТРК (МРК, ГНК) : 33 [15:36:06]line Товар: 2710124130 [15:36:06]line Аи-92-К-5 [15:36:06]line 4.500 * 66.80 [15:36:06]line = 300.60 [15:36:06]line НДС 12% НСП 1% [15:36:06]line > о реализуемом товаре [15:36:06]line ОКРУГЛЕНИЕ: -0.60 [15:36:06]line ИТОГО: 300.00 [15:36:06]line Внесено: 300.00 [15:36:06]line СДАЧА: 0.00 [15:36:06]line НСП 1% : 2.66 [15:36:06]line НДС 12% : 31.92 [15:36:06]line Наличными: 300.00 [15:36:06]line Безнал.: 0.00 [15:36:06]line Место: АЗС № 91 "Партнер Нефть" [15:36:06]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [15:36:06]line СНО: Общий режим [15:36:06]line Чек 103 16.05.2024 15:36 [15:36:06]line Смена: 357 ФФД: 1.0 [15:36:06]line ЗНМ: 0300000119 [15:36:06]line РНМ: 0000000000091845 [15:36:06]line Версия ККМ: 001 [15:36:06]line ФМ: 0000000000871829 [15:36:06]line ФД: 67505 [15:36:06]line ФПД: 214167681552613 [15:36:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T153606&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67505&fm=214167681552613&tin=02508201610067®Number=0000000000091845&sum=30000 [15:36:07]written 0, free lines is 4095 [15:36:07]OFD Sender: Processing packet 67505 [packets to send 35, broken 34] [15:36:07]ProducePacketName [15:36:07]name=ofd_packets/00067505 [15:36:07]OFD Sender: To server: pG, [15:36:07]CommunicateWithHost lk.salyk.kg:30040 [15:36:07]ConnectInit lk.salyk.kg [15:36:07]Connected sock=9 [15:36: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 38 32 39 0F 01 00 00 41 38 07 01 7E 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 94 11 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 E6 27 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B1 07 01 00 35 04 06 00 C2 C8 CC 94 D0 E5 3C DD 5C DA 12 4A 9F 86 [15:36:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 BE 4F 47 00 0B 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 38 32 39 10 04 04 00 B1 07 01 00 F4 03 04 00 C0 CF 45 66 B6 04 01 00 00 B8 A8 32 32 65 35 93 29 [15:36:07]CommunicateWithHost err = 0 [15:36:07]CheckOFDResponse [15:36:07]1017 (14) - 77093643461234 [15:36:07]1041 (16) - 0000000000871829 [15:36:07]1040 (4) - 67505 [15:36:07]1012 (4) - 16.05.2024 09:20 [15:36:07]1206 (1) - 0 [15:36:07]OFD Sender: Remove packet 67505 [15:36:07]ProducePacketName [15:36:07]name=ofd_packets/00067505 [15:36:07]NVStorageDeleteData [15:36:07]Write to MH i2c: 01 00 00 DC 10 EC [15:36:07]Write i2c OK [15:36:07]MH_I2C_Read... [15:36:07]Read from MH i2c: 01 [15:36:07]MH_I2C_Read... [15:36:07]Read from MH i2c: 01 07 00 [15:36:07]MH_I2C_Read... [15:36:07]Read from MH i2c: 01 07 00 DC 10 00 00 00 00 00 C8 0C C7 [15:36:07]RasterBufferAndPrint [15:36:07]line [15:36:07]line [15:36:07]line [15:36:07]line [15:36:07]line [15:36:07]written 0, free lines is 3278 [15:36:07]MH_Cut [15:36:07]Write to MH i2c: D1 01 00 E3 10 01 C5 [15:36:07]Write i2c OK [15:36:07]MH_I2C_Read... [15:36:07]Read from MH i2c: D1 [15:36:07]MH_I2C_Read... [15:36:07]Read from MH i2c: D1 01 00 [15:36:07]MH_I2C_Read... [15:36:07]Read from MH i2c: D1 01 00 E3 10 00 C4 [15:36:07]Write to MH i2c: 01 00 00 E4 10 F4 [15:36:07]Write i2c OK [15:36:07]MH_I2C_Read... [15:36:07]OFD Sender: No OFD packet to send [15:36:08]*** Cut start [15:36:08]*** Purtial cut [15:36:08]*** CUTSNS_PIN = 0 [15:36:08]*** Stage 1: CUTSNS_PIN = 1 [15:36:10]Read from MH i2c: 01 [15:36:10]MH_I2C_Read... [15:36:10]*** Stop cut motor [15:36:10]*** Cut end [15:36:10]Read from MH i2c: 01 07 00 [15:36:10]MH_I2C_Read... [15:36:10]Read from MH i2c: 01 07 00 E4 10 00 00 00 00 00 FF 0F 09 [15:36:10]process_action close_receipt done [15:36:10]requested_data is exist [15:36:10]produce_requested_data [15:36:10]requested_item fm.sn is exist - process it [15:36:10]wFMCommunicate request_size=4 [15:36:10]MH_SAM_APDU [15:36:10]CAPDU: 80 11 00 00 [15:36:10]Write to MH i2c: E2 08 00 E5 10 80 11 00 00 00 00 00 00 6F [15:36:10]Write i2c OK [15:36:10]MH_I2C_Read... [15:36:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:10]Read from MH i2c: E2 [15:36:10]MH_I2C_Read... [15:36:10]Read from MH i2c: E2 17 00 [15:36:10]MH_I2C_Read... [15:36:10]Read from MH i2c: E2 17 00 E5 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C5 [15:36:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:36:10]wFMCommunicate OK [15:36:10]requested_item fd.num is exist - process it [15:36:10]SAM_PROTO_GetFieldsCounters [15:36:10]wFMCommunicate request_size=4 [15:36:10]MH_SAM_APDU [15:36:10]CAPDU: 80 13 00 00 [15:36:10]Write to MH i2c: E2 08 00 E6 10 80 13 00 00 00 00 00 00 72 [15:36:10]Write i2c OK [15:36:10]MH_I2C_Read... [15:36:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:36:10]Read from MH i2c: E2 [15:36:10]MH_I2C_Read... [15:36:10]Read from MH i2c: E2 62 00 [15:36:10]MH_I2C_Read... [15:36:10]Read from MH i2c: E2 62 00 E6 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B1 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [15:36: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B1 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:36:10]wFMCommunicate OK [15:36:10]SAM_PROTO_GetFieldsCounters done [15:36:10]requested_item shift.num is exist - process it [15:36:10]requested_item shift.opened is exist - process it [15:36:10]req_shift_opened [15:36:10]FM_GetShiftState [15:36:10]SAM_PROTO_GetShiftState [15:36:10]wFMCommunicate request_size=4 [15:36:10]MH_SAM_APDU [15:36:10]CAPDU: 80 13 01 00 [15:36:10]Write to MH i2c: E2 08 00 E7 10 80 13 01 00 00 00 00 00 74 [15:36:10]Write i2c OK [15:36:10]MH_I2C_Read... [15:36:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:10]Read from MH i2c: E2 [15:36:10]MH_I2C_Read... [15:36:10]Read from MH i2c: E2 0E 00 [15:36:10]MH_I2C_Read... [15:36:10]Read from MH i2c: E2 0E 00 E7 10 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 20 [15:36:10]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [15:36:10]wFMCommunicate OK [15:36:10]SAM_PROTO_GetShiftState done [15:36:10]FM_GetShiftState done [15:36:10]req_shift_opened done [15:36:10]requested_item shift.open_date is exist - process it [15:36:10]req_shift_open_date [15:36:10]req_shift_open_date done [15:36:10]produce_requested_data done [15:36:10]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67505,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [15:36:10]process_action_free close_receipt [15:36:10]json_value_free [15:36:10]json_value_free done [15:36:10]process_json_proto returns [15:36:10]Send response to host [15:36:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67505,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [15:36:10]free response buf [15:36:10]execute_script done [15:36:10]execute_script returns [15:36:10]free content buf [15:36:10]Sock 8.Close socket [15:36:10]Sock 8.Thread stoped [15:36:12]OFD Sender: No OFD packet to send [15:36:17]OFD Sender: No OFD packet to send [15:36:22]OFD Sender: No OFD packet to send [15:36:27]OFD Sender: No OFD packet to send [15:36:32]OFD Sender: No OFD packet to send [15:36:37]OFD Sender: No OFD packet to send [15:36:42]OFD Sender: No OFD packet to send [15:36:47]OFD Sender: No OFD packet to send [15:36:52]OFD Sender: No OFD packet to send [15:36:57]OFD Sender: No OFD packet to send [15:37:02]OFD Sender: No OFD packet to send [15:37:07]OFD Sender: No OFD packet to send [15:37:12]OFD Sender: No OFD packet to send [15:37:17]OFD Sender: No OFD packet to send [15:37:22]OFD Sender: No OFD packet to send [15:37:27]OFD Sender: No OFD packet to send [15:37:32]OFD Sender: No OFD packet to send [15:37:37]OFD Sender: No OFD packet to send [15:37:42]OFD Sender: No OFD packet to send [15:37:47]OFD Sender: No OFD packet to send [15:37:53]OFD Sender: No OFD packet to send [15:37:58]OFD Sender: No OFD packet to send [15:37:59]accept exits with 10 [15:37:59]New connection [15:37:59]New thread 3067039076 created [15:37:59]Thread 3067182436 joined [15:37:59]Waiting for new connection... [15:37:59] Sock 10.Parse request [15:37:59]Sock 10.Check first char [15:37:59]Sock 10.First char is OK [15:37:59]request: POST /json_proto HTTP/1.0 [15:37:59]Method: POST [15:37:59]URL: /json_proto [15:37:59]Method is POST - this is cgi request [15:37:59]url: /json_proto [15:37:59]query_string will be loaded in cgi processing [15:37:59]execute_cgi json_proto POST (null) [15:37:59]execute_cgi path=json_proto method=POST [15:37:59]POST find Content-Length [15:37:59]Host: 172.17.41.195:8080 [15:37:59]Content-Length: 677 [15:37:59]Content-Type: application/json [15:37:59] [15:37:59]POST finish read [15:37:59]Found Content-Length = 677 [15:37:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507558", "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.80, "quantity" : 7.490, "sum" : 500.33, "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:37:59]execute_script... [15: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)507558", "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.80, "quantity" : 7.490, "sum" : 500.33, "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:37:59]POST & json_proto [15:37:59]process_json_proto [15:37:59]json parsed OK: [15:37:59]protocol is kg_v1.0 [15:37:59]action value=close_receipt [15:37:59]process_action close_receipt [15:37:59]cmd_close_receipt [15:37:59]MH_GetDate [15:37:59]Write to MH i2c: F0 00 00 E8 10 E7 [15:37:59]Write i2c OK [15:37:59]MH_I2C_Read... [15:37:59]Read from MH i2c: F0 [15:37:59]MH_I2C_Read... [15:37:59]Read from MH i2c: F0 09 00 [15:37:59]MH_I2C_Read... [15:37:59]Read from MH i2c: F0 09 00 E8 10 00 59 28 46 66 FC 21 6F 64 0D [15:37:59]GetLastDocTimeStamp 1715873766 [15:37:59]current date 1715873881 [15:37:59]FM_GetShiftState [15:37:59]SAM_PROTO_GetShiftState [15:37:59]wFMCommunicate request_size=4 [15:37:59]MH_SAM_APDU [15:37:59]CAPDU: 80 13 01 00 [15:37:59]Write to MH i2c: E2 08 00 E9 10 80 13 01 00 00 00 00 00 76 [15:37:59]Write i2c OK [15:37:59]MH_I2C_Read... [15:37:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:59]Read from MH i2c: E2 [15:37:59]MH_I2C_Read... [15:37:59]Read from MH i2c: E2 0E 00 [15:37:59]MH_I2C_Read... [15:37:59]Read from MH i2c: E2 0E 00 E9 10 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 22 [15:37:59]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [15:37:59]wFMCommunicate OK [15:37:59]SAM_PROTO_GetShiftState done [15:37:59]FM_GetShiftState done [15:37:59]opened in 1715818916 [15:37:59]opened+sec_in_day 1715905316 [15:37:59]quantity*price = 50033 [15:37:59]sum+1 = 50034 [15:37:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 104 16.05.2024 15:38 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67506 ФПД: 87524013693956 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T153801&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67506&fm=87524013693956&tin=02508201610067®Number=0000000000091845&sum=50000 [15:38:01]StoreToDocumentArchive [15:38:01]shift 357 fd 67506 [15:38:01]save to /storage/0357/doc_00067506 [15:38:01]save last doc name /storage/0357/doc_00067506 to /storage/kkm_last_doc_name [15:38:01]save OK [15:38:01]Clear old archive folders... [15:38:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:38:01]tlvbuf is 017D99F0 [15:38:01]SAM_PROTO_ClearQueue [15:38:01]wFMCommunicate request_size=4 [15:38:01]MH_SAM_APDU [15:38:01]CAPDU: 80 09 00 00 [15:38:01]Write to MH i2c: E2 08 00 F6 10 80 09 00 00 00 00 00 00 78 [15:38:01]Write i2c OK [15:38:01]MH_I2C_Read... [15:38:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:38:01]Read from MH i2c: E2 [15:38:01]MH_I2C_Read... [15:38:01]Read from MH i2c: E2 03 00 [15:38:01]MH_I2C_Read... [15:38:01]Read from MH i2c: E2 03 00 F6 10 00 90 00 7A [15:38:01]RAPDU: 90 00 [15:38:01]wFMCommunicate OK [15:38:01]SAM_PROTO_ClearQueue done [15:38:01]KKMCreateOFDPacket [15:38:01]OFDProtocolAddRootSTLVToBuf [15:38:01]FM_MakeSignedData [15:38:01]FM_MakeSignedData [15:38:01]SAM_PROTO_SignData [15:38:01]wFMCommunicate request_size=4 [15:38:01]MH_SAM_APDU [15:38:01]CAPDU: 80 0D 01 02 [15:38:01]Write to MH i2c: E2 08 00 F7 10 80 0D 01 02 00 00 00 00 80 [15:38:01]Write i2c OK [15:38:01]MH_I2C_Read... [15:38:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:38:01]Read from MH i2c: E2 [15:38:01]MH_I2C_Read... [15:38:01]Read from MH i2c: E2 03 00 [15:38:01]MH_I2C_Read... [15:38:01]Read from MH i2c: E2 03 00 F7 10 00 90 00 7B [15:38:01]RAPDU: 90 00 [15:38:01]wFMCommunicate OK [15:38:01]wFMCommunicate request_size=255 [15:38:01]MH_SAM_APDU [15:38: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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 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 59 28 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B2 07 01 00 35 04 06 00 4F [15:38:01]Write to MH i2c: E2 02 01 F8 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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 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 59 28 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B2 07 01 00 35 04 06 00 4F 00 00 0F [15:38:01]Write i2c OK [15:38:01]MH_I2C_Read... [15:38:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:01]Read from MH i2c: E2 [15:38:01]MH_I2C_Read... [15:38:01]Read from MH i2c: E2 03 00 [15:38:01]MH_I2C_Read... [15:38:01]Read from MH i2c: E2 03 00 F8 10 00 90 00 7C [15:38:01]RAPDU: 90 00 [15:38:01]wFMCommunicate OK [15:38:01]wFMCommunicate request_size=10 [15:38:01]MH_SAM_APDU [15:38:01]CAPDU: 80 0D 02 02 05 9A 45 BE DC 04 [15:38:01]Write to MH i2c: E2 0D 00 F9 10 80 0D 02 02 05 00 9A 45 BE DC 04 00 00 0A [15:38:01]Write i2c OK [15:38:01]MH_I2C_Read... [15:38:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:01]Read from MH i2c: E2 [15:38:01]MH_I2C_Read... [15:38:01]Read from MH i2c: E2 03 00 [15:38:01]MH_I2C_Read... [15:38:01]Read from MH i2c: E2 03 00 F9 10 00 90 00 7D [15:38:01]RAPDU: 90 00 [15:38:01]wFMCommunicate OK [15:38:01]wFMCommunicate request_size=4 [15:38:01]MH_SAM_APDU [15:38:01]CAPDU: 80 0D 03 02 [15:38:01]Write to MH i2c: E2 08 00 FA 10 80 0D 03 02 00 00 00 00 85 [15:38:01]Write i2c OK [15:38:01]MH_I2C_Read... [15:38:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:38:01]Read from MH i2c: E2 [15:38:01]MH_I2C_Read... [15:38:01]Read from MH i2c: E2 0B 00 [15:38:01]MH_I2C_Read... [15:38:01]Read from MH i2c: E2 0B 00 FA 10 00 82 34 BA 26 D3 21 08 2B 90 00 43 [15:38:01]RAPDU: 82 34 BA 26 D3 21 08 2B 90 00 [15:38:01]wFMCommunicate OK [15:38:01]SAM_PROTO_SignData done [15:38:01]FM_MakeSignedData done [15:38:01]CreateOFDProtocolMessage [15:38:01]wFMCommunicate request_size=4 [15:38:01]MH_SAM_APDU [15:38:01]CAPDU: 80 11 00 00 [15:38:01]Write to MH i2c: E2 08 00 FB 10 80 11 00 00 00 00 00 00 85 [15:38:01]Write i2c OK [15:38:01]MH_I2C_Read... [15:38:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:01]Read from MH i2c: E2 [15:38:01]MH_I2C_Read... [15:38:01]Read from MH i2c: E2 17 00 [15:38:01]MH_I2C_Read... [15:38:01]Read from MH i2c: E2 17 00 FB 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DB [15:38:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:38:01]wFMCommunicate OK [15:38:01]CreateOFDProtocolMessage done [15:38:01]OFDSenderStorePacket 67506 [15:38:01]StoreOFDPacket docnum=67506 [15:38:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 9E E4 07 01 A3 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 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 59 28 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B2 07 01 00 35 04 06 00 4F 9A 45 BE DC 04 82 34 BA 26 D3 21 08 2B [15:38:01]CheckFolder [15:38:01]dirname=/storage/ofd_packets [15:38:01]CheckFolder done [15:38:01]ProducePacketName [15:38:01]name=ofd_packets/00067506 [15:38:01]NVStorageSaveData ofd_packets/00067506 [15:38:01]File name is /storage/ofd_packets/00067506 [15:38:01]Write 301 bytes [15:38:01]NVStorageSaveData done [15:38:01]OFDSenderStorePacket done [15:38:01]KKMCreateOFDPacket done [15:38:01]NVStorageSaveData kkm_last_timestamp [15:38:01]File name is /storage/kkm_last_timestamp [15:38:01]Write 4 bytes [15:38:01]NVStorageSaveData done [15:38:01]ExternCall_PrintAddStr [15:38:01]wPrintStart [15:38:01]Write to MH i2c: 01 00 00 FC 10 0C [15:38:01]Write i2c OK [15:38:01]MH_I2C_Read... [15:38:01]Read from MH i2c: 01 [15:38:01]MH_I2C_Read... [15:38:01]Read from MH i2c: 01 07 00 [15:38:01]MH_I2C_Read... [15:38:01]Read from MH i2c: 01 07 00 FC 10 00 00 00 00 00 FF 0F 21 [15:38:01]RasterBufferAndPrint [15:38:01]line Счет N : (1)507558 [15:38:01]line ИНН: 02508201610067 [15:38:01]line Контрольно-Кассовый Чек [15:38:01]line ПРОДАЖА [15:38:01]line ТРК (МРК, ГНК) : 33 [15:38:01]line Товар: 2710124130 [15:38:01]line Аи-92-К-5 [15:38:01]line 7.490 * 66.80 [15:38:01]line = 500.33 [15:38:01]line НДС 12% НСП 1% [15:38:01]line > о реализуемом товаре [15:38:01]line ОКРУГЛЕНИЕ: -0.33 [15:38:01]line ИТОГО: 500.00 [15:38:01]line Внесено: 500.00 [15:38:01]line СДАЧА: 0.00 [15:38:01]line НСП 1% : 4.43 [15:38:01]line НДС 12% : 53.13 [15:38:01]line Наличными: 500.00 [15:38:01]line Безнал.: 0.00 [15:38:01]line Место: АЗС № 91 "Партнер Нефть" [15:38:01]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [15:38:01]line СНО: Общий режим [15:38:01]line Чек 104 16.05.2024 15:38 [15:38:01]line Смена: 357 ФФД: 1.0 [15:38:01]line ЗНМ: 0300000119 [15:38:01]line РНМ: 0000000000091845 [15:38:01]line Версия ККМ: 001 [15:38:01]line ФМ: 0000000000871829 [15:38:01]line ФД: 67506 [15:38:01]line ФПД: 87524013693956 [15:38:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T153801&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67506&fm=87524013693956&tin=02508201610067®Number=0000000000091845&sum=50000 [15:38:01]OFD Sender: Processing packet 67506 [packets to send 35, broken 34] [15:38:01]ProducePacketName [15:38:01]name=ofd_packets/00067506 [15:38:01]OFD Sender: To server: pG, [15:38:01]CommunicateWithHost lk.salyk.kg:30040 [15:38:01]ConnectInit lk.salyk.kg [15:38:01]written 0, free lines is 4095 [15:38:02]Connected sock=9 [15:38: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 38 32 39 0F 01 00 00 9E E4 07 01 A3 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 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 59 28 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B2 07 01 00 35 04 06 00 4F 9A 45 BE DC 04 82 34 BA 26 D3 21 08 2B [15:38:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 8C F5 47 00 0E 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 38 32 39 10 04 04 00 B2 07 01 00 F4 03 04 00 33 D0 45 66 B6 04 01 00 00 A6 11 AF 3A 56 91 01 1D [15:38:02]CommunicateWithHost err = 0 [15:38:02]CheckOFDResponse [15:38:02]1017 (14) - 77093643461234 [15:38:02]1041 (16) - 0000000000871829 [15:38:02]1040 (4) - 67506 [15:38:02]1012 (4) - 16.05.2024 09:21 [15:38:02]1206 (1) - 0 [15:38:02]OFD Sender: Remove packet 67506 [15:38:02]ProducePacketName [15:38:02]name=ofd_packets/00067506 [15:38:02]NVStorageDeleteData [15:38:02]Write to MH i2c: 01 00 00 26 11 37 [15:38:02]Write i2c OK [15:38:02]MH_I2C_Read... [15:38:02]Read from MH i2c: 01 [15:38:02]MH_I2C_Read... [15:38:02]Read from MH i2c: 01 07 00 [15:38:02]MH_I2C_Read... [15:38:02]Read from MH i2c: 01 07 00 26 11 00 00 00 00 00 CD 0C 17 [15:38:02]RasterBufferAndPrint [15:38:02]line [15:38:02]line [15:38:02]line [15:38:02]line [15:38:02]line [15:38:02]written 0, free lines is 3283 [15:38:02]MH_Cut [15:38:02]Write to MH i2c: D1 01 00 2D 11 01 10 [15:38:02]Write i2c OK [15:38:02]MH_I2C_Read... [15:38:02]Read from MH i2c: D1 [15:38:02]MH_I2C_Read... [15:38:02]Read from MH i2c: D1 01 00 [15:38:02]MH_I2C_Read... [15:38:02]Read from MH i2c: D1 01 00 2D 11 00 0F [15:38:02]Write to MH i2c: 01 00 00 2E 11 3F [15:38:02]Write i2c OK [15:38:02]MH_I2C_Read... [15:38:02]OFD Sender: No OFD packet to send [15:38:03]*** Cut start [15:38:03]*** Purtial cut [15:38:03]*** Stage 1: CUTSNS_PIN = 1 [15:38:03]Read from MH i2c: 01 [15:38:03]MH_I2C_Read... [15:38:03]*** Stop cut motor [15:38:03]*** Cut end [15:38:03]Read from MH i2c: 01 07 00 [15:38:03]MH_I2C_Read... [15:38:03]Read from MH i2c: 01 07 00 2E 11 00 00 00 00 00 FF 0F 54 [15:38:03]process_action close_receipt done [15:38:03]requested_data is exist [15:38:03]produce_requested_data [15:38:03]requested_item fm.sn is exist - process it [15:38:03]wFMCommunicate request_size=4 [15:38:03]MH_SAM_APDU [15:38:03]CAPDU: 80 11 00 00 [15:38:03]Write to MH i2c: E2 08 00 2F 11 80 11 00 00 00 00 00 00 BA [15:38:03]Write i2c OK [15:38:03]MH_I2C_Read... [15:38:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:03]Read from MH i2c: E2 [15:38:03]MH_I2C_Read... [15:38:03]Read from MH i2c: E2 17 00 [15:38:03]MH_I2C_Read... [15:38:03]Read from MH i2c: E2 17 00 2F 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 10 [15:38:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:38:03]wFMCommunicate OK [15:38:03]requested_item fd.num is exist - process it [15:38:03]SAM_PROTO_GetFieldsCounters [15:38:03]wFMCommunicate request_size=4 [15:38:03]MH_SAM_APDU [15:38:03]CAPDU: 80 13 00 00 [15:38:03]Write to MH i2c: E2 08 00 30 11 80 13 00 00 00 00 00 00 BD [15:38:03]Write i2c OK [15:38:03]MH_I2C_Read... [15:38:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:38:03]Read from MH i2c: E2 [15:38:03]MH_I2C_Read... [15:38:03]Read from MH i2c: E2 62 00 [15:38:03]MH_I2C_Read... [15:38:03]Read from MH i2c: E2 62 00 30 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B2 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [15: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B2 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:38:03]wFMCommunicate OK [15:38:03]SAM_PROTO_GetFieldsCounters done [15:38:03]requested_item shift.num is exist - process it [15:38:03]requested_item shift.opened is exist - process it [15:38:03]req_shift_opened [15:38:03]FM_GetShiftState [15:38:03]SAM_PROTO_GetShiftState [15:38:03]wFMCommunicate request_size=4 [15:38:03]MH_SAM_APDU [15:38:03]CAPDU: 80 13 01 00 [15:38:03]Write to MH i2c: E2 08 00 31 11 80 13 01 00 00 00 00 00 BF [15:38:03]Write i2c OK [15:38:03]MH_I2C_Read... [15:38:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:03]Read from MH i2c: E2 [15:38:03]MH_I2C_Read... [15:38:03]Read from MH i2c: E2 0E 00 [15:38:03]MH_I2C_Read... [15:38:03]Read from MH i2c: E2 0E 00 31 11 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 6B [15:38:03]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [15:38:03]wFMCommunicate OK [15:38:03]SAM_PROTO_GetShiftState done [15:38:03]FM_GetShiftState done [15:38:03]req_shift_opened done [15:38:03]requested_item shift.open_date is exist - process it [15:38:03]req_shift_open_date [15:38:03]req_shift_open_date done [15:38:03]produce_requested_data done [15:38:03]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67506,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [15:38:03]process_action_free close_receipt [15:38:03]json_value_free [15:38:03]json_value_free done [15:38:03]process_json_proto returns [15:38:03]Send response to host [15:38:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67506,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [15:38:03]free response buf [15:38:03]execute_script done [15:38:03]execute_script returns [15:38:03]free content buf [15:38:03]Sock 10.Close socket [15:38:03]Sock 10.Thread stoped [15:38:07]OFD Sender: No OFD packet to send [15:38:12]OFD Sender: No OFD packet to send [15:38:17]OFD Sender: No OFD packet to send [15:38:22]OFD Sender: No OFD packet to send [15:38:27]OFD Sender: No OFD packet to send [15:38:32]OFD Sender: No OFD packet to send [15:38:37]OFD Sender: No OFD packet to send [15:38:42]OFD Sender: No OFD packet to send [15:38:47]OFD Sender: No OFD packet to send [15:38:52]OFD Sender: No OFD packet to send [15:38:57]OFD Sender: No OFD packet to send [15:39:02]OFD Sender: No OFD packet to send [15:39:07]OFD Sender: No OFD packet to send [15:39:12]OFD Sender: No OFD packet to send [15:39:17]OFD Sender: No OFD packet to send [15:39:22]OFD Sender: No OFD packet to send [15:39:27]OFD Sender: No OFD packet to send [15:39:32]OFD Sender: No OFD packet to send [15:39:37]OFD Sender: No OFD packet to send [15:39:42]OFD Sender: No OFD packet to send [15:39:47]OFD Sender: No OFD packet to send [15:39:52]OFD Sender: No OFD packet to send [15:39:57]OFD Sender: No OFD packet to send [15:40:02]OFD Sender: No OFD packet to send [15:40:07]OFD Sender: No OFD packet to send [15:40:12]OFD Sender: No OFD packet to send [15:40:17]OFD Sender: No OFD packet to send [15:40:22]OFD Sender: No OFD packet to send [15:40:27]OFD Sender: No OFD packet to send [15:40:32]OFD Sender: No OFD packet to send [15:40:37]OFD Sender: No OFD packet to send [15:40:42]OFD Sender: No OFD packet to send [15:40:47]OFD Sender: No OFD packet to send [15:40:52]OFD Sender: No OFD packet to send [15:40:57]OFD Sender: No OFD packet to send [15:41:02]OFD Sender: No OFD packet to send [15:41:07]OFD Sender: No OFD packet to send [15:41:12]OFD Sender: No OFD packet to send [15:41:17]OFD Sender: No OFD packet to send [15:41:22]OFD Sender: No OFD packet to send [15:41:27]OFD Sender: No OFD packet to send [15:41:32]OFD Sender: No OFD packet to send [15:41:37]OFD Sender: No OFD packet to send [15:41:42]OFD Sender: No OFD packet to send [15:41:47]OFD Sender: No OFD packet to send [15:41:52]OFD Sender: No OFD packet to send [15:41:57]OFD Sender: No OFD packet to send [15:42:02]OFD Sender: No OFD packet to send [15:42:07]OFD Sender: No OFD packet to send [15:42:12]OFD Sender: No OFD packet to send [15:42:17]OFD Sender: No OFD packet to send [15:42:22]OFD Sender: No OFD packet to send [15:42:27]OFD Sender: No OFD packet to send [15:42:32]OFD Sender: No OFD packet to send [15:42:37]OFD Sender: No OFD packet to send [15:42:42]OFD Sender: No OFD packet to send [15:42:47]OFD Sender: No OFD packet to send [15:42:52]OFD Sender: No OFD packet to send [15:42: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:18]accept exits with 8 [15:43:18]New connection [15:43:18]New thread 3067182436 created [15:43:18]Thread 3067039076 joined [15:43:18]Waiting for new connection... [15:43:18] Sock 8.Parse request [15:43:18]Sock 8.Check first char [15:43:18]Sock 8.First char is OK [15:43:18]request: POST /json_proto HTTP/1.0 [15:43:18]Method: POST [15:43:18]URL: /json_proto [15:43:18]Method is POST - this is cgi request [15:43:18]url: /json_proto [15:43:18]query_string will be loaded in cgi processing [15:43:18]execute_cgi json_proto POST (null) [15:43:18]execute_cgi path=json_proto method=POST [15:43:18]POST find Content-Length [15:43:18]Host: 172.17.41.195:8080 [15:43:18]Content-Length: 803 [15:43:18]Content-Type: application/json [15:43:18] [15:43:18]POST finish read [15:43:18]Found Content-Length = 803 [15:43:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507559", "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.80, "quantity" : 19.470, "sum" : 1300.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1300.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:18]execute_script... [15:43:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507559", "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.80, "quantity" : 19.470, "sum" : 1300.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1300.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:18]POST & json_proto [15:43:18]process_json_proto [15:43:18]json parsed OK: [15:43:18]protocol is kg_v1.0 [15:43:18]action value=close_receipt [15:43:18]process_action close_receipt [15:43:18]cmd_close_receipt [15:43:18]MH_GetDate [15:43:18]Write to MH i2c: F0 00 00 32 11 32 [15:43:18]Write i2c OK [15:43:18]MH_I2C_Read... [15:43:18]Read from MH i2c: F0 [15:43:18]MH_I2C_Read... [15:43:18]Read from MH i2c: F0 09 00 [15:43:18]MH_I2C_Read... [15:43:18]Read from MH i2c: F0 09 00 32 11 00 98 29 46 66 FC 21 6F 64 98 [15:43:18]GetLastDocTimeStamp 1715873881 [15:43:18]current date 1715874200 [15:43:18]FM_GetShiftState [15:43:18]SAM_PROTO_GetShiftState [15:43:18]wFMCommunicate request_size=4 [15:43:18]MH_SAM_APDU [15:43:18]CAPDU: 80 13 01 00 [15:43:18]Write to MH i2c: E2 08 00 33 11 80 13 01 00 00 00 00 00 C1 [15:43:18]Write i2c OK [15:43:18]MH_I2C_Read... [15:43:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:18]Read from MH i2c: E2 [15:43:18]MH_I2C_Read... [15:43:18]Read from MH i2c: E2 0E 00 [15:43:18]MH_I2C_Read... [15:43:18]Read from MH i2c: E2 0E 00 33 11 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 6D [15:43:18]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [15:43:18]wFMCommunicate OK [15:43:18]SAM_PROTO_GetShiftState done [15:43:18]FM_GetShiftState done [15:43:18]opened in 1715818916 [15:43:18]opened+sec_in_day 1715905316 [15:43:18]quantity*price = 130059 [15:43:18]sum+1 = 130061 [15:43:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1300.60 НСП 1% : 11.51 НДС 12% : 138.12 Наличными: 0.00 Безнал.: 1300.60 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 105 16.05.2024 15:43 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67507 ФПД: 258658852419664 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T154320&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67507&fm=258658852419664&tin=02508201610067®Number=0000000000091845&sum=130060 [15:43:20]StoreToDocumentArchive [15:43:20]shift 357 fd 67507 [15:43:20]save to /storage/0357/doc_00067507 [15:43:20]save last doc name /storage/0357/doc_00067507 to /storage/kkm_last_doc_name [15:43:20]save OK [15:43:20]Clear old archive folders... [15:43:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:43:20]tlvbuf is 017EB0E0 [15:43:20]SAM_PROTO_ClearQueue [15:43:20]wFMCommunicate request_size=4 [15:43:20]MH_SAM_APDU [15:43:20]CAPDU: 80 09 00 00 [15:43:20]Write to MH i2c: E2 08 00 40 11 80 09 00 00 00 00 00 00 C3 [15:43:20]Write i2c OK [15:43:20]MH_I2C_Read... [15:43:20]Read from MH i2c: E2 [15:43:20]MH_I2C_Read... [15:43:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:43:20]Read from MH i2c: E2 03 00 [15:43:20]MH_I2C_Read... [15:43:20]Read from MH i2c: E2 03 00 40 11 00 90 00 C5 [15:43:20]RAPDU: 90 00 [15:43:20]wFMCommunicate OK [15:43:20]SAM_PROTO_ClearQueue done [15:43:20]KKMCreateOFDPacket [15:43:20]OFDProtocolAddRootSTLVToBuf [15:43:20]FM_MakeSignedData [15:43:20]FM_MakeSignedData [15:43:20]SAM_PROTO_SignData [15:43:20]wFMCommunicate request_size=4 [15:43:20]MH_SAM_APDU [15:43:20]CAPDU: 80 0D 01 02 [15:43:20]Write to MH i2c: E2 08 00 41 11 80 0D 01 02 00 00 00 00 CB [15:43:20]Write i2c OK [15:43:20]MH_I2C_Read... [15:43:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:43:20]Read from MH i2c: E2 [15:43:20]MH_I2C_Read... [15:43:20]Read from MH i2c: E2 03 00 [15:43:20]MH_I2C_Read... [15:43:20]Read from MH i2c: E2 03 00 41 11 00 90 00 C6 [15:43:20]RAPDU: 90 00 [15:43:20]wFMCommunicate OK [15:43:20]wFMCommunicate request_size=255 [15:43:20]MH_SAM_APDU [15:43:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 4C 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 0C FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 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 F4 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C FC 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 98 29 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B3 07 01 00 35 04 06 00 EB [15:43:20]Write to MH i2c: E2 02 01 42 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 0E 4C 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 0C FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 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 F4 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C FC 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 98 29 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B3 07 01 00 35 04 06 00 EB 00 00 0F [15:43:20]Write i2c OK [15:43:20]MH_I2C_Read... [15:43:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:20]Read from MH i2c: E2 [15:43:20]MH_I2C_Read... [15:43:20]Read from MH i2c: E2 03 00 [15:43:20]MH_I2C_Read... [15:43:20]Read from MH i2c: E2 03 00 42 11 00 90 00 C7 [15:43:20]RAPDU: 90 00 [15:43:20]wFMCommunicate OK [15:43:20]wFMCommunicate request_size=10 [15:43:20]MH_SAM_APDU [15:43:20]CAPDU: 80 0D 02 02 05 3F B5 04 38 50 [15:43:20]Write to MH i2c: E2 0D 00 43 11 80 0D 02 02 05 00 3F B5 04 38 50 00 00 58 [15:43:20]Write i2c OK [15:43:20]MH_I2C_Read... [15:43:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:20]Read from MH i2c: E2 [15:43:20]MH_I2C_Read... [15:43:20]Read from MH i2c: E2 03 00 [15:43:20]MH_I2C_Read... [15:43:20]Read from MH i2c: E2 03 00 43 11 00 90 00 C8 [15:43:20]RAPDU: 90 00 [15:43:20]wFMCommunicate OK [15:43:20]wFMCommunicate request_size=4 [15:43:20]MH_SAM_APDU [15:43:20]CAPDU: 80 0D 03 02 [15:43:20]Write to MH i2c: E2 08 00 44 11 80 0D 03 02 00 00 00 00 D0 [15:43:20]Write i2c OK [15:43:20]MH_I2C_Read... [15:43:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:43:20]Read from MH i2c: E2 [15:43:20]MH_I2C_Read... [15:43:20]Read from MH i2c: E2 0B 00 [15:43:20]MH_I2C_Read... [15:43:20]Read from MH i2c: E2 0B 00 44 11 00 0E D5 B1 31 50 45 FD 1A 90 00 42 [15:43:20]RAPDU: 0E D5 B1 31 50 45 FD 1A 90 00 [15:43:20]wFMCommunicate OK [15:43:20]SAM_PROTO_SignData done [15:43:20]FM_MakeSignedData done [15:43:20]CreateOFDProtocolMessage [15:43:20]wFMCommunicate request_size=4 [15:43:20]MH_SAM_APDU [15:43:20]CAPDU: 80 11 00 00 [15:43:20]Write to MH i2c: E2 08 00 45 11 80 11 00 00 00 00 00 00 D0 [15:43:20]Write i2c OK [15:43:20]MH_I2C_Read... [15:43:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:20]Read from MH i2c: E2 [15:43:20]MH_I2C_Read... [15:43:20]Read from MH i2c: E2 17 00 [15:43:20]MH_I2C_Read... [15:43:20]Read from MH i2c: E2 17 00 45 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 26 [15:43:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:43:20]wFMCommunicate OK [15:43:20]CreateOFDProtocolMessage done [15:43:20]OFDSenderStorePacket 67507 [15:43:20]StoreOFDPacket docnum=67507 [15:43:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 F8 3A 07 01 54 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 0E 4C 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 0C FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 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 F4 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C FC 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 98 29 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B3 07 01 00 35 04 06 00 EB 3F B5 04 38 50 0E D5 B1 31 50 45 FD 1A [15:43:20]CheckFolder [15:43:20]dirname=/storage/ofd_packets [15:43:20]CheckFolder done [15:43:20]ProducePacketName [15:43:20]name=ofd_packets/00067507 [15:43:20]NVStorageSaveData ofd_packets/00067507 [15:43:20]File name is /storage/ofd_packets/00067507 [15:43:20]Write 301 bytes [15:43:20]NVStorageSaveData done [15:43:20]OFDSenderStorePacket done [15:43:20]KKMCreateOFDPacket done [15:43:20]NVStorageSaveData kkm_last_timestamp [15:43:20]File name is /storage/kkm_last_timestamp [15:43:20]Write 4 bytes [15:43:20]NVStorageSaveData done [15:43:20]ExternCall_PrintAddStr [15:43:20]wPrintStart [15:43:20]Write to MH i2c: 01 00 00 46 11 57 [15:43:20]Write i2c OK [15:43:20]MH_I2C_Read... [15:43:20]Read from MH i2c: 01 [15:43:20]MH_I2C_Read... [15:43:20]Read from MH i2c: 01 07 00 [15:43:20]MH_I2C_Read... [15:43:20]Read from MH i2c: 01 07 00 46 11 00 00 00 00 00 FF 0F 6C [15:43:20]RasterBufferAndPrint [15:43:20]line Счет N : (1)507559 [15:43:20]line ИНН: 02508201610067 [15:43:20]line Контрольно-Кассовый Чек [15:43:20]line ПРОДАЖА [15:43:20]line ТРК (МРК, ГНК) : 43 [15:43:20]line Товар: 2710124130 [15:43:20]line Аи-92-К-5 [15:43:20]line 19.470 * 66.80 [15:43:20]line = 1300.60 [15:43:20]line НДС 12% НСП 1% [15:43:20]line > о реализуемом товаре [15:43:20]line ИТОГО: 1300.60 [15:43:20]line НСП 1% : 11.51 [15:43:20]line НДС 12% : 138.12 [15:43:20]line Наличными: 0.00 [15:43:20]line Безнал.: 1300.60 [15:43:20]line Место: АЗС № 91 "Партнер Нефть" [15:43:20]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [15:43:20]line СНО: Общий режим [15:43:20]line Чек 105 16.05.2024 15:43 [15:43:20]line Смена: 357 ФФД: 1.0 [15:43:20]line ЗНМ: 0300000119 [15:43:20]line РНМ: 0000000000091845 [15:43:20]line Версия ККМ: 001 [15:43:20]line Платежная система: O! деньги [15:43:20]line ФМ: 0000000000871829 [15:43:20]line ФД: 67507 [15:43:20]line ФПД: 258658852419664 [15:43:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T154320&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67507&fm=258658852419664&tin=02508201610067®Number=0000000000091845&sum=130060 [15:43:20]OFD Sender: Processing packet 67507 [packets to send 35, broken 34] [15:43:20]ProducePacketName [15:43:20]name=ofd_packets/00067507 [15:43:20]OFD Sender: To server: pG, [15:43:20]CommunicateWithHost lk.salyk.kg:30040 [15:43:20]ConnectInit lk.salyk.kg [15:43:20]written 0, free lines is 4095 [15:43:20]Connected sock=10 [15:43: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 38 32 39 0F 01 00 00 F8 3A 07 01 54 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 0E 4C 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 0C FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 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 F4 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C FC 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 98 29 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B3 07 01 00 35 04 06 00 EB 3F B5 04 38 50 0E D5 B1 31 50 45 FD 1A [15:43:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 11 EA 47 00 E9 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 38 32 39 10 04 04 00 B3 07 01 00 F4 03 04 00 72 D1 45 66 B6 04 01 00 00 B0 15 F0 60 14 48 E9 FA [15:43:21]CommunicateWithHost err = 0 [15:43:21]CheckOFDResponse [15:43:21]1017 (14) - 77093643461234 [15:43:21]1041 (16) - 0000000000871829 [15:43:21]1040 (4) - 67507 [15:43:21]1012 (4) - 16.05.2024 09:27 [15:43:21]1206 (1) - 0 [15:43:21]OFD Sender: Remove packet 67507 [15:43:21]ProducePacketName [15:43:21]name=ofd_packets/00067507 [15:43:21]NVStorageDeleteData [15:43:21]Write to MH i2c: 01 00 00 6F 11 80 [15:43:21]Write i2c OK [15:43:21]MH_I2C_Read... [15:43:21]Read from MH i2c: 01 [15:43:21]MH_I2C_Read... [15:43:21]Read from MH i2c: 01 07 00 [15:43:21]MH_I2C_Read... [15:43:21]Read from MH i2c: 01 07 00 6F 11 00 00 00 00 00 DA 0C 6D [15:43:21]RasterBufferAndPrint [15:43:21]line [15:43:21]line [15:43:21]line [15:43:21]line [15:43:21]line [15:43:21]written 0, free lines is 3297 [15:43:21]MH_Cut [15:43:21]Write to MH i2c: D1 01 00 76 11 01 59 [15:43:21]Write i2c OK [15:43:21]MH_I2C_Read... [15:43:21]Read from MH i2c: D1 [15:43:21]MH_I2C_Read... [15:43:21]Read from MH i2c: D1 01 00 [15:43:21]MH_I2C_Read... [15:43:21]Read from MH i2c: D1 01 00 76 11 00 58 [15:43:21]Write to MH i2c: 01 00 00 77 11 88 [15:43:21]Write i2c OK [15:43:21]MH_I2C_Read... [15:43:21]OFD Sender: No OFD packet to send [15:43:22]*** Cut start [15:43:22]*** Purtial cut [15:43:22]*** CUTSNS_PIN = 0 [15:43:22]*** Stage 1: CUTSNS_PIN = 1 [15:43:24]Read from MH i2c: 01 [15:43:24]MH_I2C_Read... [15:43:24]*** Stop cut motor [15:43:24]*** Cut end [15:43:24]Read from MH i2c: 01 07 00 [15:43:24]MH_I2C_Read... [15:43:24]Read from MH i2c: 01 07 00 77 11 00 00 00 00 00 FF 0F 9D [15:43:24]process_action close_receipt done [15:43:24]requested_data is exist [15:43:24]produce_requested_data [15:43:24]requested_item fm.sn is exist - process it [15:43:24]wFMCommunicate request_size=4 [15:43:24]MH_SAM_APDU [15:43:24]CAPDU: 80 11 00 00 [15:43:24]Write to MH i2c: E2 08 00 78 11 80 11 00 00 00 00 00 00 03 [15:43:24]Write i2c OK [15:43:24]MH_I2C_Read... [15:43:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:24]Read from MH i2c: E2 [15:43:24]MH_I2C_Read... [15:43:24]Read from MH i2c: E2 17 00 [15:43:24]MH_I2C_Read... [15:43:24]Read from MH i2c: E2 17 00 78 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 59 [15:43:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:43:24]wFMCommunicate OK [15:43:24]requested_item fd.num is exist - process it [15:43:24]SAM_PROTO_GetFieldsCounters [15:43:24]wFMCommunicate request_size=4 [15:43:24]MH_SAM_APDU [15:43:24]CAPDU: 80 13 00 00 [15:43:24]Write to MH i2c: E2 08 00 79 11 80 13 00 00 00 00 00 00 06 [15:43:24]Write i2c OK [15:43:24]MH_I2C_Read... [15:43:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:43:24]Read from MH i2c: E2 [15:43:24]MH_I2C_Read... [15:43:24]Read from MH i2c: E2 62 00 [15:43:24]MH_I2C_Read... [15:43:24]Read from MH i2c: E2 62 00 79 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B3 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [15:43: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B3 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:43:24]wFMCommunicate OK [15:43:24]SAM_PROTO_GetFieldsCounters done [15:43:24]requested_item shift.num is exist - process it [15:43:24]requested_item shift.opened is exist - process it [15:43:24]req_shift_opened [15:43:24]FM_GetShiftState [15:43:24]SAM_PROTO_GetShiftState [15:43:24]wFMCommunicate request_size=4 [15:43:24]MH_SAM_APDU [15:43:24]CAPDU: 80 13 01 00 [15:43:24]Write to MH i2c: E2 08 00 7A 11 80 13 01 00 00 00 00 00 08 [15:43:24]Write i2c OK [15:43:24]MH_I2C_Read... [15:43:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:24]Read from MH i2c: E2 [15:43:24]MH_I2C_Read... [15:43:24]Read from MH i2c: E2 0E 00 [15:43:24]MH_I2C_Read... [15:43:24]Read from MH i2c: E2 0E 00 7A 11 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 B4 [15:43:24]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [15:43:24]wFMCommunicate OK [15:43:24]SAM_PROTO_GetShiftState done [15:43:24]FM_GetShiftState done [15:43:24]req_shift_opened done [15:43:24]requested_item shift.open_date is exist - process it [15:43:24]req_shift_open_date [15:43:24]req_shift_open_date done [15:43:24]produce_requested_data done [15:43:24]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67507,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [15:43:24]process_action_free close_receipt [15:43:24]json_value_free [15:43:24]json_value_free done [15:43:24]process_json_proto returns [15:43:24]Send response to host [15:43:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67507,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [15:43:24]free response buf [15:43:24]execute_script done [15:43:24]execute_script returns [15:43:24]free content buf [15:43:24]Sock 8.Close socket [15:43:24]Sock 8.Thread stoped [15:43:26]OFD Sender: No OFD packet to send [15:43:31]OFD Sender: No OFD packet to send [15:43:36]OFD Sender: No OFD packet to send [15:43:41]OFD Sender: No OFD packet to send [15:43:46]OFD Sender: No OFD packet to send [15:43:51]OFD Sender: No OFD packet to send [15:43:56]OFD Sender: No OFD packet to send [15:44:01]OFD Sender: No OFD packet to send [15:44:06]OFD Sender: No OFD packet to send [15:44:11]OFD Sender: No OFD packet to send [15:44:16]OFD Sender: No OFD packet to send [15:44:21]OFD Sender: No OFD packet to send [15:44:26]OFD Sender: No OFD packet to send [15:44:31]OFD Sender: No OFD packet to send [15:44:36]OFD Sender: No OFD packet to send [15:44:41]OFD Sender: No OFD packet to send [15:44:46]OFD Sender: No OFD packet to send [15:44:51]OFD Sender: No OFD packet to send [15:44:56]OFD Sender: No OFD packet to send [15:45:01]OFD Sender: No OFD packet to send [15:45:06]OFD Sender: No OFD packet to send [15:45:11]OFD Sender: No OFD packet to send [15:45:16]OFD Sender: No OFD packet to send [15:45:21]OFD Sender: No OFD packet to send [15:45:26]OFD Sender: No OFD packet to send [15:45:31]OFD Sender: No OFD packet to send [15:45:36]OFD Sender: No OFD packet to send [15:45:41]OFD Sender: No OFD packet to send [15:45:46]OFD Sender: No OFD packet to send [15:45:51]OFD Sender: No OFD packet to send [15:45:56]OFD Sender: No OFD packet to send [15:46:01]OFD Sender: No OFD packet to send [15:46:06]OFD Sender: No OFD packet to send [15:46:11]OFD Sender: No OFD packet to send [15:46:16]OFD Sender: No OFD packet to send [15:46:21]OFD Sender: No OFD packet to send [15:46:26]OFD Sender: No OFD packet to send [15:46:31]OFD Sender: No OFD packet to send [15:46:36]OFD Sender: No OFD packet to send [15:46:41]OFD Sender: No OFD packet to send [15:46:46]OFD Sender: No OFD packet to send [15:46:51]OFD Sender: No OFD packet to send [15:46:56]OFD Sender: No OFD packet to send [15:47:01]OFD Sender: No OFD packet to send [15:47:06]OFD Sender: No OFD packet to send [15:47:11]OFD Sender: No OFD packet to send [15:47:16]OFD Sender: No OFD packet to send [15:47:21]OFD Sender: No OFD packet to send [15:47:26]OFD Sender: No OFD packet to send [15:47:31]OFD Sender: No OFD packet to send [15:47:36]OFD Sender: No OFD packet to send [15:47:41]OFD Sender: No OFD packet to send [15:47:46]OFD Sender: No OFD packet to send [15:47:51]OFD Sender: No OFD packet to send [15:47:56]OFD Sender: No OFD packet to send [15:48:01]OFD Sender: No OFD packet to send [15:48:06]OFD Sender: No OFD packet to send [15:48:11]OFD Sender: No OFD packet to send [15:48:16]OFD Sender: No OFD packet to send [15:48:21]OFD Sender: No OFD packet to send [15:48:26]OFD Sender: No OFD packet to send [15:48:31]OFD Sender: No OFD packet to send [15:48:36]OFD Sender: No OFD packet to send [15:48:41]OFD Sender: No OFD packet to send [15:48:46]OFD Sender: No OFD packet to send [15:48:52]OFD Sender: No OFD packet to send [15:48:57]OFD Sender: No OFD packet to send [15:49:02]OFD Sender: No OFD packet to send [15:49:07]OFD Sender: No OFD packet to send [15:49:12]OFD Sender: No OFD packet to send [15:49:17]OFD Sender: No OFD packet to send [15:49:22]OFD Sender: No OFD packet to send [15:49:27]OFD Sender: No OFD packet to send [15:49:32]OFD Sender: No OFD packet to send [15:49:37]OFD Sender: No OFD packet to send [15:49:42]OFD Sender: No OFD packet to send [15:49:47]OFD Sender: No OFD packet to send [15:49:52]OFD Sender: No OFD packet to send [15:49:57]OFD Sender: No OFD packet to send [15:50:02]OFD Sender: No OFD packet to send [15:50:07]OFD Sender: No OFD packet to send [15:50:12]OFD Sender: No OFD packet to send [15:50:17]OFD Sender: No OFD packet to send [15:50:22]OFD Sender: No OFD packet to send [15:50:27]OFD Sender: No OFD packet to send [15:50:32]OFD Sender: No OFD packet to send [15:50:37]OFD Sender: No OFD packet to send [15:50:42]OFD Sender: No OFD packet to send [15:50:47]OFD Sender: No OFD packet to send [15:50:52]OFD Sender: No OFD packet to send [15:50:57]OFD Sender: No OFD packet to send [15:51:02]OFD Sender: No OFD packet to send [15:51:07]OFD Sender: No OFD packet to send [15:51:12]OFD Sender: No OFD packet to send [15:51:17]OFD Sender: No OFD packet to send [15:51:22]OFD Sender: No OFD packet to send [15:51:27]OFD Sender: No OFD packet to send [15:51:32]OFD Sender: No OFD packet to send [15:51:37]OFD Sender: No OFD packet to send [15:51:42]OFD Sender: No OFD packet to send [15:51:47]OFD Sender: No OFD packet to send [15:51:52]OFD Sender: No OFD packet to send [15:51:57]OFD Sender: No OFD packet to send [15:52:02]OFD Sender: No OFD packet to send [15:52:07]OFD Sender: No OFD packet to send [15:52:12]OFD Sender: No OFD packet to send [15:52:17]OFD Sender: No OFD packet to send [15:52:22]OFD Sender: No OFD packet to send [15:52:27]OFD Sender: No OFD packet to send [15:52:32]OFD Sender: No OFD packet to send [15:52:37]OFD Sender: No OFD packet to send [15:52:42]OFD Sender: No OFD packet to send [15:52:43]accept exits with 9 [15:52:43]New connection [15:52:43]New thread 3067039076 created [15:52:43]Thread 3067182436 joined [15:52:43]Waiting for new connection... [15:52:43] Sock 9.Parse request [15:52:43]Sock 9.Check first char [15:52:43]Sock 9.First char is OK [15:52:43]request: POST /json_proto HTTP/1.0 [15:52:43]Method: POST [15:52:43]URL: /json_proto [15:52:43]Method is POST - this is cgi request [15:52:43]url: /json_proto [15:52:43]query_string will be loaded in cgi processing [15:52:43]execute_cgi json_proto POST (null) [15:52:43]execute_cgi path=json_proto method=POST [15:52:43]POST find Content-Length [15:52:43]Host: 172.17.41.195:8080 [15:52:43]Content-Length: 1207 [15:52:43]Content-Type: application/json [15:52:43] [15:52:43]POST finish read [15:52:43]Found Content-Length = 1207 [15:52:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507560\u000A16.05.2024 15:35\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 6.700 x 74.70\u000A\u0418\u0422\u041E\u0413: 500.49\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:43]execute_script... [15:52:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507560\u000A16.05.2024 15:35\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 6.700 x 74.70\u000A\u0418\u0422\u041E\u0413: 500.49\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:43]POST & json_proto [15:52:43]process_json_proto [15:52:43]json parsed OK: [15:52:43]protocol is kg_v1.0 [15:52:43]action value=print_text [15:52:43]process_action print_text [15:52:43]cmd_print_text [15:52:43]ExternCall_PrintAddStr [15:52:43]wPrintStart [15:52:43]Write to MH i2c: 01 00 00 7B 11 8C [15:52:43]Write i2c OK [15:52:43]MH_I2C_Read... [15:52:43]Read from MH i2c: 01 [15:52:43]MH_I2C_Read... [15:52:43]Read from MH i2c: 01 07 00 [15:52:43]MH_I2C_Read... [15:52:43]Read from MH i2c: 01 07 00 7B 11 00 00 00 00 00 FF 0F A1 [15:52:43]RasterBufferAndPrint [15:52:43]line *****ТОВАРНЫЙ ЧЕК***** [15:52:43]line АЗС-91 [15:52:43]line Партнер нефть [15:52:43]line 02508201610067 [15:52:43]line Кассир : Пайзулдаева А. [15:52:43]line Счет N : (1)507560 [15:52:43]line 16.05.2024 15:35 [15:52:43]line ПРОДАЖА [15:52:43]line ТРК (МРК, ГНК): 21 [15:52:43]line Вид ГСМ : 2710194210 [15:52:43]line ДТ-К-5 [15:52:43]line 6.700 x 74.70 [15:52:43]line ИТОГ: 500.49 [15:52:43]line Тип оплаты: Талоны: Топливная Карта [15:52:43]line 02750 [15:52:43]line ______________________ [15:52:43]line (подпись) [15:52:43]written 0, free lines is 4095 [15:52:43]Write to MH i2c: 01 00 00 8F 11 A0 [15:52:43]Write i2c OK [15:52:43]MH_I2C_Read... [15:52:43]Read from MH i2c: 01 [15:52:43]MH_I2C_Read... [15:52:43]Read from MH i2c: 01 07 00 [15:52:43]MH_I2C_Read... [15:52:43]Read from MH i2c: 01 07 00 8F 11 00 00 00 00 00 0D 0E C2 [15:52:43]RasterBufferAndPrint [15:52:43]line [15:52:43]line [15:52:43]line [15:52:43]line [15:52:43]line [15:52:43]written 0, free lines is 3599 [15:52:43]MH_Cut [15:52:43]Write to MH i2c: D1 01 00 96 11 01 79 [15:52:43]Write i2c OK [15:52:43]MH_I2C_Read... [15:52:43]Read from MH i2c: D1 [15:52:43]MH_I2C_Read... [15:52:43]Read from MH i2c: D1 01 00 [15:52:43]MH_I2C_Read... [15:52:43]Read from MH i2c: D1 01 00 96 11 00 78 [15:52:43]Write to MH i2c: 01 00 00 97 11 A8 [15:52:43]Write i2c OK [15:52:43]MH_I2C_Read... [15:52:44]*** Cut start [15:52:44]*** Purtial cut [15:52:44]*** Stage 1: CUTSNS_PIN = 1 [15:52:44]Read from MH i2c: 01 [15:52:44]MH_I2C_Read... [15:52:44]Read from MH i2c: 01 07 00 [15:52:44]MH_I2C_Read... [15:52:44]*** Stop cut motor [15:52:44]*** Cut end [15:52:44]Read from MH i2c: 01 07 00 97 11 00 00 00 00 00 FF 0F BD [15:52:44]process_action print_text done [15:52:44]requested_data is exist [15:52:44]produce_requested_data [15:52:44]requested_item fm.sn is exist - process it [15:52:44]wFMCommunicate request_size=4 [15:52:44]MH_SAM_APDU [15:52:44]CAPDU: 80 11 00 00 [15:52:44]Write to MH i2c: E2 08 00 98 11 80 11 00 00 00 00 00 00 23 [15:52:44]Write i2c OK [15:52:44]MH_I2C_Read... [15:52:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:44]Read from MH i2c: E2 [15:52:44]MH_I2C_Read... [15:52:44]Read from MH i2c: E2 17 00 [15:52:44]MH_I2C_Read... [15:52:44]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 38 32 39 90 00 79 [15:52:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:52:44]wFMCommunicate OK [15:52:44]requested_item fd.num is exist - process it [15:52:44]SAM_PROTO_GetFieldsCounters [15:52:44]wFMCommunicate request_size=4 [15:52:44]MH_SAM_APDU [15:52:44]CAPDU: 80 13 00 00 [15:52:44]Write to MH i2c: E2 08 00 99 11 80 13 00 00 00 00 00 00 26 [15:52:44]Write i2c OK [15:52:44]MH_I2C_Read... [15:52:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:52:44]Read from MH i2c: E2 [15:52:44]MH_I2C_Read... [15:52:44]Read from MH i2c: E2 62 00 [15:52:44]MH_I2C_Read... [15:52:44]Read from MH i2c: E2 62 00 99 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B3 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [15: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B3 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:52:44]wFMCommunicate OK [15:52:44]SAM_PROTO_GetFieldsCounters done [15:52:44]requested_item shift.num is exist - process it [15:52:44]requested_item shift.opened is exist - process it [15:52:44]req_shift_opened [15:52:44]FM_GetShiftState [15:52:44]SAM_PROTO_GetShiftState [15:52:44]wFMCommunicate request_size=4 [15:52:44]MH_SAM_APDU [15:52:44]CAPDU: 80 13 01 00 [15:52:44]Write to MH i2c: E2 08 00 9A 11 80 13 01 00 00 00 00 00 28 [15:52:44]Write i2c OK [15:52:44]MH_I2C_Read... [15:52:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:44]Read from MH i2c: E2 [15:52:44]MH_I2C_Read... [15:52:44]Read from MH i2c: E2 0E 00 [15:52:44]MH_I2C_Read... [15:52:44]Read from MH i2c: E2 0E 00 9A 11 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 D4 [15:52:44]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [15:52:44]wFMCommunicate OK [15:52:44]SAM_PROTO_GetShiftState done [15:52:44]FM_GetShiftState done [15:52:44]req_shift_opened done [15:52:44]requested_item shift.open_date is exist - process it [15:52:44]req_shift_open_date [15:52:44]req_shift_open_date done [15:52:44]produce_requested_data done [15:52:44]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67507,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [15:52:44]process_action_free print_text [15:52:44]json_value_free [15:52:44]json_value_free done [15:52:44]process_json_proto returns [15:52:44]Send response to host [15:52:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67507,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [15:52:44]free response buf [15:52:44]execute_script done [15:52:44]execute_script returns [15:52:44]free content buf [15:52:44]Sock 9.Close socket [15:52:44]Sock 9.Thread stoped [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:26]accept exits with 8 [15:53:26]New connection [15:53:26]New thread 3067182436 created [15:53:26]Thread 3067039076 joined [15:53:26]Waiting for new connection... [15:53:26] Sock 8.Parse request [15:53:26]Sock 8.Check first char [15:53:26]Sock 8.First char is OK [15:53:26]request: POST /json_proto HTTP/1.0 [15:53:26]Method: POST [15:53:26]URL: /json_proto [15:53:26]Method is POST - this is cgi request [15:53:26]url: /json_proto [15:53:26]query_string will be loaded in cgi processing [15:53:26]execute_cgi json_proto POST (null) [15:53:26]execute_cgi path=json_proto method=POST [15:53:26]POST find Content-Length [15:53:26]Host: 172.17.41.195:8080 [15:53:26]Content-Length: 675 [15:53:26]Content-Type: application/json [15:53:26] [15:53:26]POST finish read [15:53:26]Found Content-Length = 675 [15:53:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507561", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:53:26]execute_script... [15:53: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)507561", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:53:26]POST & json_proto [15:53:26]process_json_proto [15:53:26]json parsed OK: [15:53:26]protocol is kg_v1.0 [15:53:26]action value=close_receipt [15:53:26]process_action close_receipt [15:53:26]cmd_close_receipt [15:53:26]MH_GetDate [15:53:26]Write to MH i2c: F0 00 00 9B 11 9B [15:53:26]Write i2c OK [15:53:26]MH_I2C_Read... [15:53:26]Read from MH i2c: F0 [15:53:26]MH_I2C_Read... [15:53:26]Read from MH i2c: F0 09 00 [15:53:26]MH_I2C_Read... [15:53:26]Read from MH i2c: F0 09 00 9B 11 00 F8 2B 46 66 FC 21 6F 64 63 [15:53:26]GetLastDocTimeStamp 1715874200 [15:53:26]current date 1715874808 [15:53:26]FM_GetShiftState [15:53:26]SAM_PROTO_GetShiftState [15:53:26]wFMCommunicate request_size=4 [15:53:26]MH_SAM_APDU [15:53:26]CAPDU: 80 13 01 00 [15:53:26]Write to MH i2c: E2 08 00 9C 11 80 13 01 00 00 00 00 00 2A [15:53:26]Write i2c OK [15:53:26]MH_I2C_Read... [15:53:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:27]Read from MH i2c: E2 [15:53:27]MH_I2C_Read... [15:53:27]Read from MH i2c: E2 0E 00 [15:53:27]MH_I2C_Read... [15:53:27]Read from MH i2c: E2 0E 00 9C 11 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 D6 [15:53:27]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [15:53:27]wFMCommunicate OK [15:53:27]SAM_PROTO_GetShiftState done [15:53:27]FM_GetShiftState done [15:53:27]opened in 1715818916 [15:53:27]opened+sec_in_day 1715905316 [15:53:27]quantity*price = 100005 [15:53:27]sum+1 = 100006 [15:53:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 106 16.05.2024 15:53 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67508 ФПД: 194792499554778 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T155328&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67508&fm=194792499554778&tin=02508201610067®Number=0000000000091845&sum=100000 [15:53:28]StoreToDocumentArchive [15:53:28]shift 357 fd 67508 [15:53:28]save to /storage/0357/doc_00067508 [15:53:28]save last doc name /storage/0357/doc_00067508 to /storage/kkm_last_doc_name [15:53:28]save OK [15:53:28]Clear old archive folders... [15:53:28]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:53:28]tlvbuf is 01780B00 [15:53:28]SAM_PROTO_ClearQueue [15:53:28]wFMCommunicate request_size=4 [15:53:28]MH_SAM_APDU [15:53:28]CAPDU: 80 09 00 00 [15:53:28]Write to MH i2c: E2 08 00 A9 11 80 09 00 00 00 00 00 00 2C [15:53:28]Write i2c OK [15:53:28]MH_I2C_Read... [15:53:28]Read from MH i2c: E2 [15:53:28]MH_I2C_Read... [15:53:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:53:28]Read from MH i2c: E2 03 00 [15:53:28]MH_I2C_Read... [15:53:28]Read from MH i2c: E2 03 00 A9 11 00 90 00 2E [15:53:28]RAPDU: 90 00 [15:53:28]wFMCommunicate OK [15:53:28]SAM_PROTO_ClearQueue done [15:53:28]KKMCreateOFDPacket [15:53:28]OFDProtocolAddRootSTLVToBuf [15:53:28]FM_MakeSignedData [15:53:28]FM_MakeSignedData [15:53:28]SAM_PROTO_SignData [15:53:28]wFMCommunicate request_size=4 [15:53:28]MH_SAM_APDU [15:53:28]CAPDU: 80 0D 01 02 [15:53:28]Write to MH i2c: E2 08 00 AA 11 80 0D 01 02 00 00 00 00 34 [15:53:28]Write i2c OK [15:53:28]MH_I2C_Read... [15:53:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:53:28]Read from MH i2c: E2 [15:53:28]MH_I2C_Read... [15:53:28]Read from MH i2c: E2 03 00 [15:53:28]MH_I2C_Read... [15:53:28]Read from MH i2c: E2 03 00 AA 11 00 90 00 2F [15:53:28]RAPDU: 90 00 [15:53:28]wFMCommunicate OK [15:53:28]wFMCommunicate request_size=255 [15:53:28]MH_SAM_APDU [15:53:28]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 F8 2B 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B4 07 01 00 35 04 06 00 [15:53:28]Write to MH i2c: E2 02 01 AB 11 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 F8 2B 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B4 07 01 00 35 04 06 00 00 00 CC [15:53:28]Write i2c OK [15:53:28]MH_I2C_Read... [15:53:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:28]Read from MH i2c: E2 [15:53:28]MH_I2C_Read... [15:53:28]Read from MH i2c: E2 03 00 [15:53:28]MH_I2C_Read... [15:53:28]Read from MH i2c: E2 03 00 AB 11 00 90 00 30 [15:53:28]RAPDU: 90 00 [15:53:28]wFMCommunicate OK [15:53:28]wFMCommunicate request_size=11 [15:53:28]MH_SAM_APDU [15:53:28]CAPDU: 80 0D 02 02 06 B1 29 A9 BD A9 DA [15:53:28]Write to MH i2c: E2 0E 00 AC 11 80 0D 02 02 06 00 B1 29 A9 BD A9 DA 00 00 06 [15:53:28]Write i2c OK [15:53:28]MH_I2C_Read... [15:53:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:28]Read from MH i2c: E2 [15:53:28]MH_I2C_Read... [15:53:28]Read from MH i2c: E2 03 00 [15:53:28]MH_I2C_Read... [15:53:28]Read from MH i2c: E2 03 00 AC 11 00 90 00 31 [15:53:28]RAPDU: 90 00 [15:53:28]wFMCommunicate OK [15:53:28]wFMCommunicate request_size=4 [15:53:28]MH_SAM_APDU [15:53:28]CAPDU: 80 0D 03 02 [15:53:28]Write to MH i2c: E2 08 00 AD 11 80 0D 03 02 00 00 00 00 39 [15:53:28]Write i2c OK [15:53:28]MH_I2C_Read... [15:53:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:53:28]Read from MH i2c: E2 [15:53:28]MH_I2C_Read... [15:53:28]Read from MH i2c: E2 0B 00 [15:53:28]MH_I2C_Read... [15:53:28]Read from MH i2c: E2 0B 00 AD 11 00 F6 4F A6 E3 69 76 7F 56 90 00 BC [15:53:28]RAPDU: F6 4F A6 E3 69 76 7F 56 90 00 [15:53:28]wFMCommunicate OK [15:53:28]SAM_PROTO_SignData done [15:53:28]FM_MakeSignedData done [15:53:28]CreateOFDProtocolMessage [15:53:28]wFMCommunicate request_size=4 [15:53:28]MH_SAM_APDU [15:53:28]CAPDU: 80 11 00 00 [15:53:28]Write to MH i2c: E2 08 00 AE 11 80 11 00 00 00 00 00 00 39 [15:53:28]Write i2c OK [15:53:28]MH_I2C_Read... [15:53:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:28]Read from MH i2c: E2 [15:53:28]MH_I2C_Read... [15:53:28]Read from MH i2c: E2 17 00 [15:53:28]MH_I2C_Read... [15:53:28]Read from MH i2c: E2 17 00 AE 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 8F [15:53:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:53:28]wFMCommunicate OK [15:53:28]CreateOFDProtocolMessage done [15:53:28]OFDSenderStorePacket 67508 [15:53:28]StoreOFDPacket docnum=67508 [15:53:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 A1 08 08 01 99 6E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 F8 2B 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B4 07 01 00 35 04 06 00 B1 29 A9 BD A9 DA F6 4F A6 E3 69 76 7F 56 [15:53:28]CheckFolder [15:53:28]dirname=/storage/ofd_packets [15:53:28]CheckFolder done [15:53:28]ProducePacketName [15:53:28]name=ofd_packets/00067508 [15:53:28]NVStorageSaveData ofd_packets/00067508 [15:53:28]File name is /storage/ofd_packets/00067508 [15:53:28]Write 302 bytes [15:53:28]NVStorageSaveData done [15:53:28]OFDSenderStorePacket done [15:53:28]KKMCreateOFDPacket done [15:53:28]NVStorageSaveData kkm_last_timestamp [15:53:28]File name is /storage/kkm_last_timestamp [15:53:28]Write 4 bytes [15:53:28]NVStorageSaveData done [15:53:28]ExternCall_PrintAddStr [15:53:28]wPrintStart [15:53:28]Write to MH i2c: 01 00 00 AF 11 C0 [15:53:28]Write i2c OK [15:53:28]MH_I2C_Read... [15:53:28]Read from MH i2c: 01 [15:53:28]MH_I2C_Read... [15:53:28]Read from MH i2c: 01 07 00 [15:53:28]MH_I2C_Read... [15:53:28]Read from MH i2c: 01 07 00 AF 11 00 00 00 00 00 FF 0F D5 [15:53:28]RasterBufferAndPrint [15:53:28]line Счет N : (1)507561 [15:53:28]line ИНН: 02508201610067 [15:53:28]line Контрольно-Кассовый Чек [15:53:28]line ПРОДАЖА [15:53:28]line ТРК (МРК, ГНК) : 42 [15:53:28]line Товар: 2710124130 [15:53:28]line Super-92-К-5 [15:53:28]line 14.750 * 67.80 [15:53:28]line = 1000.05 [15:53:28]line НДС 12% НСП 1% [15:53:28]line > о реализуемом товаре [15:53:28]line ОКРУГЛЕНИЕ: -0.05 [15:53:28]line ИТОГО: 1000.00 [15:53:28]line Внесено: 1000.00 [15:53:28]line СДАЧА: 0.00 [15:53:28]line НСП 1% : 8.85 [15:53:28]line НДС 12% : 106.20 [15:53:28]line Наличными: 1000.00 [15:53:28]line Безнал.: 0.00 [15:53:28]line Место: АЗС № 91 "Партнер Нефть" [15:53:28]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [15:53:28]line СНО: Общий режим [15:53:28]line Чек 106 16.05.2024 15:53 [15:53:28]line Смена: 357 ФФД: 1.0 [15:53:28]line ЗНМ: 0300000119 [15:53:28]line РНМ: 0000000000091845 [15:53:28]line Версия ККМ: 001 [15:53:28]line ФМ: 0000000000871829 [15:53:28]line ФД: 67508 [15:53:28]line ФПД: 194792499554778 [15:53:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T155328&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67508&fm=194792499554778&tin=02508201610067®Number=0000000000091845&sum=100000 [15:53:29]OFD Sender: Processing packet 67508 [packets to send 35, broken 34] [15:53:29]ProducePacketName [15:53:29]name=ofd_packets/00067508 [15:53:29]OFD Sender: To server: pG, [15:53:29]CommunicateWithHost lk.salyk.kg:30040 [15:53:29]ConnectInit lk.salyk.kg [15:53:29]written 0, free lines is 4095 [15:53:29]Connected sock=10 [15:53: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 38 32 39 10 01 00 00 A1 08 08 01 99 6E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 F8 2B 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B4 07 01 00 35 04 06 00 B1 29 A9 BD A9 DA F6 4F A6 E3 69 76 7F 56 [15:53:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 13 F3 47 00 0D 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 38 32 39 10 04 04 00 B4 07 01 00 F4 03 04 00 D2 D3 45 66 B6 04 01 00 00 24 AC 57 07 0B 1E 91 81 [15:53:29]CommunicateWithHost err = 0 [15:53:29]CheckOFDResponse [15:53:29]1017 (14) - 77093643461234 [15:53:29]1041 (16) - 0000000000871829 [15:53:29]1040 (4) - 67508 [15:53:29]1012 (4) - 16.05.2024 09:37 [15:53:29]1206 (1) - 0 [15:53:29]OFD Sender: Remove packet 67508 [15:53:29]ProducePacketName [15:53:29]name=ofd_packets/00067508 [15:53:29]NVStorageDeleteData [15:53:29]Write to MH i2c: 01 00 00 D9 11 EA [15:53:29]Write i2c OK [15:53:29]MH_I2C_Read... [15:53:29]Read from MH i2c: 01 [15:53:29]MH_I2C_Read... [15:53:29]Read from MH i2c: 01 07 00 [15:53:29]MH_I2C_Read... [15:53:29]Read from MH i2c: 01 07 00 D9 11 00 00 00 00 00 D0 0C CD [15:53:29]RasterBufferAndPrint [15:53:29]line [15:53:29]line [15:53:29]line [15:53:29]line [15:53:29]line [15:53:29]written 0, free lines is 3289 [15:53:29]MH_Cut [15:53:29]Write to MH i2c: D1 01 00 E0 11 01 C3 [15:53:29]Write i2c OK [15:53:29]MH_I2C_Read... [15:53:29]Read from MH i2c: D1 [15:53:29]MH_I2C_Read... [15:53:29]Read from MH i2c: D1 01 00 [15:53:29]MH_I2C_Read... [15:53:29]Read from MH i2c: D1 01 00 E0 11 00 C2 [15:53:29]Write to MH i2c: 01 00 00 E1 11 F2 [15:53:29]Write i2c OK [15:53:29]MH_I2C_Read... [15:53:29]OFD Sender: No OFD packet to send [15:53:30]*** Cut start [15:53:30]*** Purtial cut [15:53:30]*** CUTSNS_PIN = 0 [15:53:30]*** Stage 1: CUTSNS_PIN = 1 [15:53:32]Read from MH i2c: 01 [15:53:32]MH_I2C_Read... [15:53:32]*** Stop cut motor [15:53:32]*** Cut end [15:53:32]Read from MH i2c: 01 07 00 [15:53:32]MH_I2C_Read... [15:53:32]Read from MH i2c: 01 07 00 E1 11 00 00 00 00 00 FF 0F 07 [15:53:32]process_action close_receipt done [15:53:32]requested_data is exist [15:53:32]produce_requested_data [15:53:32]requested_item fm.sn is exist - process it [15:53:32]wFMCommunicate request_size=4 [15:53:32]MH_SAM_APDU [15:53:32]CAPDU: 80 11 00 00 [15:53:32]Write to MH i2c: E2 08 00 E2 11 80 11 00 00 00 00 00 00 6D [15:53:32]Write i2c OK [15:53:32]MH_I2C_Read... [15:53:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:32]Read from MH i2c: E2 [15:53:32]MH_I2C_Read... [15:53:32]Read from MH i2c: E2 17 00 [15:53:32]MH_I2C_Read... [15:53:32]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 38 32 39 90 00 C3 [15:53:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:53:32]wFMCommunicate OK [15:53:32]requested_item fd.num is exist - process it [15:53:32]SAM_PROTO_GetFieldsCounters [15:53:32]wFMCommunicate request_size=4 [15:53:32]MH_SAM_APDU [15:53:32]CAPDU: 80 13 00 00 [15:53:32]Write to MH i2c: E2 08 00 E3 11 80 13 00 00 00 00 00 00 70 [15:53:32]Write i2c OK [15:53:32]MH_I2C_Read... [15:53:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:53:32]Read from MH i2c: E2 [15:53:32]MH_I2C_Read... [15:53:32]Read from MH i2c: E2 62 00 [15:53:32]MH_I2C_Read... [15:53:32]Read from MH i2c: E2 62 00 E3 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B4 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [15: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B4 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:53:32]wFMCommunicate OK [15:53:32]SAM_PROTO_GetFieldsCounters done [15:53:32]requested_item shift.num is exist - process it [15:53:32]requested_item shift.opened is exist - process it [15:53:32]req_shift_opened [15:53:32]FM_GetShiftState [15:53:32]SAM_PROTO_GetShiftState [15:53:32]wFMCommunicate request_size=4 [15:53:32]MH_SAM_APDU [15:53:32]CAPDU: 80 13 01 00 [15:53:32]Write to MH i2c: E2 08 00 E4 11 80 13 01 00 00 00 00 00 72 [15:53:32]Write i2c OK [15:53:32]MH_I2C_Read... [15:53:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:32]Read from MH i2c: E2 [15:53:32]MH_I2C_Read... [15:53:32]Read from MH i2c: E2 0E 00 [15:53:32]MH_I2C_Read... [15:53:32]Read from MH i2c: E2 0E 00 E4 11 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 1E [15:53:32]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [15:53:32]wFMCommunicate OK [15:53:32]SAM_PROTO_GetShiftState done [15:53:32]FM_GetShiftState done [15:53:32]req_shift_opened done [15:53:32]requested_item shift.open_date is exist - process it [15:53:32]req_shift_open_date [15:53:32]req_shift_open_date done [15:53:32]produce_requested_data done [15:53:32]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67508,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [15:53:32]process_action_free close_receipt [15:53:32]json_value_free [15:53:32]json_value_free done [15:53:32]process_json_proto returns [15:53:32]Send response to host [15:53:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67508,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [15:53:32]free response buf [15:53:32]execute_script done [15:53:32]execute_script returns [15:53:32]free content buf [15:53:32]Sock 8.Close socket [15:53:32]Sock 8.Thread stoped [15:53:34]OFD Sender: No OFD packet to send [15:53:39]OFD Sender: No OFD packet to send [15:53:44]OFD Sender: No OFD packet to send [15:53:49]OFD Sender: No OFD packet to send [15:53:54]OFD Sender: No OFD packet to send [15:53:59]OFD Sender: No OFD packet to send [15:54:04]OFD Sender: No OFD packet to send [15:54:09]OFD Sender: No OFD packet to send [15:54:14]OFD Sender: No OFD packet to send [15:54:19]OFD Sender: No OFD packet to send [15:54:24]OFD Sender: No OFD packet to send [15:54:29]OFD Sender: No OFD packet to send [15:54:34]OFD Sender: No OFD packet to send [15:54:39]OFD Sender: No OFD packet to send [15:54:44]OFD Sender: No OFD packet to send [15:54:49]OFD Sender: No OFD packet to send [15:54:54]OFD Sender: No OFD packet to send [15:54:59]OFD Sender: No OFD packet to send [15:55:04]OFD Sender: No OFD packet to send [15:55:09]OFD Sender: No OFD packet to send [15:55:14]OFD Sender: No OFD packet to send [15:55:19]OFD Sender: No OFD packet to send [15:55:24]OFD Sender: No OFD packet to send [15:55:29]OFD Sender: No OFD packet to send [15:55:34]OFD Sender: No OFD packet to send [15:55:39]OFD Sender: No OFD packet to send [15:55:44]OFD Sender: No OFD packet to send [15:55:49]OFD Sender: No OFD packet to send [15:55:54]OFD Sender: No OFD packet to send [15:55:59]OFD Sender: No OFD packet to send [15:56:04]OFD Sender: No OFD packet to send [15:56:09]OFD Sender: No OFD packet to send [15:56:14]OFD Sender: No OFD packet to send [15:56:19]OFD Sender: No OFD packet to send [15:56:24]OFD Sender: No OFD packet to send [15:56:29]accept exits with 9 [15:56:29]New connection [15:56:29]New thread 3067039076 created [15:56:29]Thread 3067182436 joined [15:56:29]Waiting for new connection... [15:56:29] Sock 9.Parse request [15:56:29]Sock 9.Check first char [15:56:29]Sock 9.First char is OK [15:56:29]request: POST /json_proto HTTP/1.0 [15:56:29]Method: POST [15:56:29]URL: /json_proto [15:56:29]Method is POST - this is cgi request [15:56:29]url: /json_proto [15:56:29]query_string will be loaded in cgi processing [15:56:29]execute_cgi json_proto POST (null) [15:56:29]execute_cgi path=json_proto method=POST [15:56:29]POST find Content-Length [15:56:29]Host: 172.17.41.195:8080 [15:56:29]Content-Length: 1209 [15:56:29]Content-Type: application/json [15:56:29] [15:56:29]POST finish read [15:56:29]Found Content-Length = 1209 [15:56:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507563\u000A16.05.2024 15:39\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.390 x 74.70\u000A\u0418\u0422\u041E\u0413: 1000.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:29]execute_script... [15:56:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507563\u000A16.05.2024 15:39\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.390 x 74.70\u000A\u0418\u0422\u041E\u0413: 1000.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:29]POST & json_proto [15:56:29]process_json_proto [15:56:29]json parsed OK: [15:56:29]protocol is kg_v1.0 [15:56:29]action value=print_text [15:56:29]process_action print_text [15:56:29]cmd_print_text [15:56:29]ExternCall_PrintAddStr [15:56:29]wPrintStart [15:56:29]Write to MH i2c: 01 00 00 E5 11 F6 [15:56:29]Write i2c OK [15:56:29]MH_I2C_Read... [15:56:29]Read from MH i2c: 01 [15:56:29]MH_I2C_Read... [15:56:29]Read from MH i2c: 01 07 00 [15:56:29]MH_I2C_Read... [15:56:29]Read from MH i2c: 01 07 00 E5 11 00 00 00 00 00 FF 0F 0B [15:56:29]RasterBufferAndPrint [15:56:29]line *****ТОВАРНЫЙ ЧЕК***** [15:56:29]line АЗС-91 [15:56:29]line Партнер нефть [15:56:29]line 02508201610067 [15:56:29]line Кассир : Пайзулдаева А. [15:56:29]line Счет N : (1)507563 [15:56:29]line 16.05.2024 15:39 [15:56:29]line ПРОДАЖА [15:56:29]line ТРК (МРК, ГНК): 41 [15:56:29]line Вид ГСМ : 2710194210 [15:56:29]line ДТ-К-5 [15:56:29]line 13.390 x 74.70 [15:56:29]line ИТОГ: 1000.23 [15:56:29]line Тип оплаты: Талоны: Топливная Карта [15:56:29]line 02750 [15:56:29]line ______________________ [15:56:29]line (подпись) [15:56:29]written 0, free lines is 4095 [15:56:29]Write to MH i2c: 01 00 00 F9 11 0A [15:56:29]Write i2c OK [15:56:29]MH_I2C_Read... [15:56:29]Read from MH i2c: 01 [15:56:29]MH_I2C_Read... [15:56:29]Read from MH i2c: 01 07 00 [15:56:29]MH_I2C_Read... [15:56:29]Read from MH i2c: 01 07 00 F9 11 00 00 00 00 00 0F 0E 2E [15:56:29]RasterBufferAndPrint [15:56:29]line [15:56:29]line [15:56:29]line [15:56:29]line [15:56:29]line [15:56:29]written 0, free lines is 3600 [15:56:29]MH_Cut [15:56:29]Write to MH i2c: D1 01 00 00 12 01 E4 [15:56:29]Write i2c OK [15:56:29]MH_I2C_Read... [15:56:29]Read from MH i2c: D1 [15:56:29]MH_I2C_Read... [15:56:29]Read from MH i2c: D1 01 00 [15:56:29]MH_I2C_Read... [15:56:29]Read from MH i2c: D1 01 00 00 12 00 E3 [15:56:29]Write to MH i2c: 01 00 00 01 12 13 [15:56:29]Write i2c OK [15:56:29]MH_I2C_Read... [15:56:29]OFD Sender: No OFD packet to send [15:56:30]*** Cut start [15:56:30]*** Purtial cut [15:56:30]*** Stage 1: CUTSNS_PIN = 1 [15:56:30]Read from MH i2c: 01 [15:56:30]MH_I2C_Read... [15:56:30]Read from MH i2c: 01 07 00 [15:56:30]MH_I2C_Read... [15:56:30]*** Stop cut motor [15:56:30]*** Cut end [15:56:30]Read from MH i2c: 01 07 00 01 12 00 00 00 00 00 FF 0F 28 [15:56:30]process_action print_text done [15:56:30]requested_data is exist [15:56:30]produce_requested_data [15:56:30]requested_item fm.sn is exist - process it [15:56:30]wFMCommunicate request_size=4 [15:56:30]MH_SAM_APDU [15:56:30]CAPDU: 80 11 00 00 [15:56:30]Write to MH i2c: E2 08 00 02 12 80 11 00 00 00 00 00 00 8E [15:56:30]Write i2c OK [15:56:30]MH_I2C_Read... [15:56:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:30]Read from MH i2c: E2 [15:56:30]MH_I2C_Read... [15:56:30]Read from MH i2c: E2 17 00 [15:56:30]MH_I2C_Read... [15:56:30]Read from MH i2c: E2 17 00 02 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E4 [15:56:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:56:30]wFMCommunicate OK [15:56:30]requested_item fd.num is exist - process it [15:56:30]SAM_PROTO_GetFieldsCounters [15:56:30]wFMCommunicate request_size=4 [15:56:30]MH_SAM_APDU [15:56:30]CAPDU: 80 13 00 00 [15:56:30]Write to MH i2c: E2 08 00 03 12 80 13 00 00 00 00 00 00 91 [15:56:30]Write i2c OK [15:56:30]MH_I2C_Read... [15:56:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:56:30]Read from MH i2c: E2 [15:56:30]MH_I2C_Read... [15:56:30]Read from MH i2c: E2 62 00 [15:56:30]MH_I2C_Read... [15:56:30]Read from MH i2c: E2 62 00 03 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B4 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [15: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B4 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:56:30]wFMCommunicate OK [15:56:30]SAM_PROTO_GetFieldsCounters done [15:56:30]requested_item shift.num is exist - process it [15:56:30]requested_item shift.opened is exist - process it [15:56:30]req_shift_opened [15:56:30]FM_GetShiftState [15:56:30]SAM_PROTO_GetShiftState [15:56:30]wFMCommunicate request_size=4 [15:56:30]MH_SAM_APDU [15:56:30]CAPDU: 80 13 01 00 [15:56:30]Write to MH i2c: E2 08 00 04 12 80 13 01 00 00 00 00 00 93 [15:56:30]Write i2c OK [15:56:30]MH_I2C_Read... [15:56:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:30]Read from MH i2c: E2 [15:56:30]MH_I2C_Read... [15:56:30]Read from MH i2c: E2 0E 00 [15:56:30]MH_I2C_Read... [15:56:30]Read from MH i2c: E2 0E 00 04 12 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 3F [15:56:30]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [15:56:30]wFMCommunicate OK [15:56:30]SAM_PROTO_GetShiftState done [15:56:30]FM_GetShiftState done [15:56:30]req_shift_opened done [15:56:30]requested_item shift.open_date is exist - process it [15:56:30]req_shift_open_date [15:56:30]req_shift_open_date done [15:56:30]produce_requested_data done [15:56:30]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67508,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [15:56:30]process_action_free print_text [15:56:30]json_value_free [15:56:30]json_value_free done [15:56:30]process_json_proto returns [15:56:30]Send response to host [15:56:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67508,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [15:56:30]free response buf [15:56:30]execute_script done [15:56:30]execute_script returns [15:56:30]free content buf [15:56:30]Sock 9.Close socket [15:56:30]Sock 9.Thread stoped [15:56:35]OFD Sender: No OFD packet to send [15:56:40]OFD Sender: No OFD packet to send [15:56:45]OFD Sender: No OFD packet to send [15:56:50]OFD Sender: No OFD packet to send [15:56:55]OFD Sender: No OFD packet to send [15:57:00]OFD Sender: No OFD packet to send [15:57:02]accept exits with 8 [15:57:02]New connection [15:57:02]New thread 3067182436 created [15:57:02]Thread 3067039076 joined [15:57:02]Waiting for new connection... [15:57:02] Sock 8.Parse request [15:57:02]Sock 8.Check first char [15:57:02]Sock 8.First char is OK [15:57:02]request: POST /json_proto HTTP/1.0 [15:57:02]Method: POST [15:57:02]URL: /json_proto [15:57:02]Method is POST - this is cgi request [15:57:02]url: /json_proto [15:57:02]query_string will be loaded in cgi processing [15:57:02]execute_cgi json_proto POST (null) [15:57:02]execute_cgi path=json_proto method=POST [15:57:02]POST find Content-Length [15:57:02]Host: 172.17.41.195:8080 [15:57:02]Content-Length: 677 [15:57:02]Content-Type: application/json [15:57:02] [15:57:02]POST finish read [15:57:02]Found Content-Length = 677 [15:57:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507565", "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.80, "quantity" : 7.490, "sum" : 500.33, "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:57:02]execute_script... [15:57: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)507565", "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.80, "quantity" : 7.490, "sum" : 500.33, "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:57:02]POST & json_proto [15:57:02]process_json_proto [15:57:02]json parsed OK: [15:57:02]protocol is kg_v1.0 [15:57:02]action value=close_receipt [15:57:02]process_action close_receipt [15:57:02]cmd_close_receipt [15:57:02]MH_GetDate [15:57:02]Write to MH i2c: F0 00 00 05 12 06 [15:57:02]Write i2c OK [15:57:02]MH_I2C_Read... [15:57:02]Read from MH i2c: F0 [15:57:02]MH_I2C_Read... [15:57:02]Read from MH i2c: F0 09 00 [15:57:02]MH_I2C_Read... [15:57:02]Read from MH i2c: F0 09 00 05 12 00 CF 2C 46 66 FC 21 6F 64 A6 [15:57:02]GetLastDocTimeStamp 1715874808 [15:57:02]current date 1715875023 [15:57:02]FM_GetShiftState [15:57:02]SAM_PROTO_GetShiftState [15:57:02]wFMCommunicate request_size=4 [15:57:02]MH_SAM_APDU [15:57:02]CAPDU: 80 13 01 00 [15:57:02]Write to MH i2c: E2 08 00 06 12 80 13 01 00 00 00 00 00 95 [15:57:02]Write i2c OK [15:57:02]MH_I2C_Read... [15:57:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:02]Read from MH i2c: E2 [15:57:02]MH_I2C_Read... [15:57:02]Read from MH i2c: E2 0E 00 [15:57:02]MH_I2C_Read... [15:57:02]Read from MH i2c: E2 0E 00 06 12 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 41 [15:57:02]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [15:57:02]wFMCommunicate OK [15:57:02]SAM_PROTO_GetShiftState done [15:57:02]FM_GetShiftState done [15:57:02]opened in 1715818916 [15:57:02]opened+sec_in_day 1715905316 [15:57:02]quantity*price = 50033 [15:57:02]sum+1 = 50034 [15:57:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 107 16.05.2024 15:57 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67509 ФПД: 82345766177886 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T155703&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67509&fm=82345766177886&tin=02508201610067®Number=0000000000091845&sum=50000 [15:57:03]StoreToDocumentArchive [15:57:03]shift 357 fd 67509 [15:57:03]save to /storage/0357/doc_00067509 [15:57:03]save last doc name /storage/0357/doc_00067509 to /storage/kkm_last_doc_name [15:57:03]save OK [15:57:03]Clear old archive folders... [15:57:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:57:03]tlvbuf is 017EAF50 [15:57:03]SAM_PROTO_ClearQueue [15:57:03]wFMCommunicate request_size=4 [15:57:03]MH_SAM_APDU [15:57:03]CAPDU: 80 09 00 00 [15:57:03]Write to MH i2c: E2 08 00 13 12 80 09 00 00 00 00 00 00 97 [15:57:03]Write i2c OK [15:57:03]MH_I2C_Read... [15:57:03]Read from MH i2c: E2 [15:57:03]MH_I2C_Read... [15:57:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:57:03]Read from MH i2c: E2 03 00 [15:57:03]MH_I2C_Read... [15:57:03]Read from MH i2c: E2 03 00 13 12 00 90 00 99 [15:57:03]RAPDU: 90 00 [15:57:03]wFMCommunicate OK [15:57:03]SAM_PROTO_ClearQueue done [15:57:03]KKMCreateOFDPacket [15:57:03]OFDProtocolAddRootSTLVToBuf [15:57:03]FM_MakeSignedData [15:57:03]FM_MakeSignedData [15:57:03]SAM_PROTO_SignData [15:57:03]wFMCommunicate request_size=4 [15:57:03]MH_SAM_APDU [15:57:03]CAPDU: 80 0D 01 02 [15:57:03]Write to MH i2c: E2 08 00 14 12 80 0D 01 02 00 00 00 00 9F [15:57:03]Write i2c OK [15:57:03]MH_I2C_Read... [15:57:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:57:03]Read from MH i2c: E2 [15:57:03]MH_I2C_Read... [15:57:03]Read from MH i2c: E2 03 00 [15:57:03]MH_I2C_Read... [15:57:03]Read from MH i2c: E2 03 00 14 12 00 90 00 9A [15:57:03]RAPDU: 90 00 [15:57:03]wFMCommunicate OK [15:57:03]wFMCommunicate request_size=255 [15:57:03]MH_SAM_APDU [15:57: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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 CF 2C 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B5 07 01 00 35 04 06 00 4A [15:57:03]Write to MH i2c: E2 02 01 15 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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 CF 2C 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B5 07 01 00 35 04 06 00 4A 00 00 A9 [15:57:03]Write i2c OK [15:57:03]MH_I2C_Read... [15:57:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:03]Read from MH i2c: E2 [15:57:03]MH_I2C_Read... [15:57:03]Read from MH i2c: E2 03 00 [15:57:03]MH_I2C_Read... [15:57:03]Read from MH i2c: E2 03 00 15 12 00 90 00 9B [15:57:03]RAPDU: 90 00 [15:57:03]wFMCommunicate OK [15:57:03]wFMCommunicate request_size=10 [15:57:03]MH_SAM_APDU [15:57:03]CAPDU: 80 0D 02 02 05 E4 9E 24 4C 5E [15:57:03]Write to MH i2c: E2 0D 00 16 12 80 0D 02 02 05 00 E4 9E 24 4C 5E 00 00 FC [15:57:03]Write i2c OK [15:57:03]MH_I2C_Read... [15:57:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:04]Read from MH i2c: E2 [15:57:04]MH_I2C_Read... [15:57:04]Read from MH i2c: E2 03 00 [15:57:04]MH_I2C_Read... [15:57:04]Read from MH i2c: E2 03 00 16 12 00 90 00 9C [15:57:04]RAPDU: 90 00 [15:57:04]wFMCommunicate OK [15:57:04]wFMCommunicate request_size=4 [15:57:04]MH_SAM_APDU [15:57:04]CAPDU: 80 0D 03 02 [15:57:04]Write to MH i2c: E2 08 00 17 12 80 0D 03 02 00 00 00 00 A4 [15:57:04]Write i2c OK [15:57:04]MH_I2C_Read... [15:57:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:57:04]Read from MH i2c: E2 [15:57:04]MH_I2C_Read... [15:57:04]Read from MH i2c: E2 0B 00 [15:57:04]MH_I2C_Read... [15:57:04]Read from MH i2c: E2 0B 00 17 12 00 B9 17 AE 1A 25 7F BF 72 90 00 12 [15:57:04]RAPDU: B9 17 AE 1A 25 7F BF 72 90 00 [15:57:04]wFMCommunicate OK [15:57:04]SAM_PROTO_SignData done [15:57:04]FM_MakeSignedData done [15:57:04]CreateOFDProtocolMessage [15:57:04]wFMCommunicate request_size=4 [15:57:04]MH_SAM_APDU [15:57:04]CAPDU: 80 11 00 00 [15:57:04]Write to MH i2c: E2 08 00 18 12 80 11 00 00 00 00 00 00 A4 [15:57:04]Write i2c OK [15:57:04]MH_I2C_Read... [15:57:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:04]Read from MH i2c: E2 [15:57:04]MH_I2C_Read... [15:57:04]Read from MH i2c: E2 17 00 [15:57:04]MH_I2C_Read... [15:57:04]Read from MH i2c: E2 17 00 18 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 FA [15:57:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:57:04]wFMCommunicate OK [15:57:04]CreateOFDProtocolMessage done [15:57:04]OFDSenderStorePacket 67509 [15:57:04]StoreOFDPacket docnum=67509 [15:57:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 0A 43 07 01 61 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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 CF 2C 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B5 07 01 00 35 04 06 00 4A E4 9E 24 4C 5E B9 17 AE 1A 25 7F BF 72 [15:57:04]CheckFolder [15:57:04]dirname=/storage/ofd_packets [15:57:04]CheckFolder done [15:57:04]ProducePacketName [15:57:04]name=ofd_packets/00067509 [15:57:04]NVStorageSaveData ofd_packets/00067509 [15:57:04]File name is /storage/ofd_packets/00067509 [15:57:04]Write 301 bytes [15:57:04]NVStorageSaveData done [15:57:04]OFDSenderStorePacket done [15:57:04]KKMCreateOFDPacket done [15:57:04]NVStorageSaveData kkm_last_timestamp [15:57:04]File name is /storage/kkm_last_timestamp [15:57:04]Write 4 bytes [15:57:04]NVStorageSaveData done [15:57:04]ExternCall_PrintAddStr [15:57:04]wPrintStart [15:57:04]Write to MH i2c: 01 00 00 19 12 2B [15:57:04]Write i2c OK [15:57:04]MH_I2C_Read... [15:57:04]Read from MH i2c: 01 [15:57:04]MH_I2C_Read... [15:57:04]Read from MH i2c: 01 07 00 [15:57:04]MH_I2C_Read... [15:57:04]Read from MH i2c: 01 07 00 19 12 00 00 00 00 00 FF 0F 40 [15:57:04]RasterBufferAndPrint [15:57:04]line Счет N : (1)507565 [15:57:04]line ИНН: 02508201610067 [15:57:04]line Контрольно-Кассовый Чек [15:57:04]line ПРОДАЖА [15:57:04]line ТРК (МРК, ГНК) : 23 [15:57:04]line Товар: 2710124130 [15:57:04]line Аи-92-К-5 [15:57:04]line 7.490 * 66.80 [15:57:04]line = 500.33 [15:57:04]line НДС 12% НСП 1% [15:57:04]line > о реализуемом товаре [15:57:04]line ОКРУГЛЕНИЕ: -0.33 [15:57:04]line ИТОГО: 500.00 [15:57:04]line Внесено: 500.00 [15:57:04]line СДАЧА: 0.00 [15:57:04]line НСП 1% : 4.43 [15:57:04]line НДС 12% : 53.13 [15:57:04]line Наличными: 500.00 [15:57:04]line Безнал.: 0.00 [15:57:04]line Место: АЗС № 91 "Партнер Нефть" [15:57:04]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [15:57:04]line СНО: Общий режим [15:57:04]line Чек 107 16.05.2024 15:57 [15:57:04]line Смена: 357 ФФД: 1.0 [15:57:04]line ЗНМ: 0300000119 [15:57:04]line РНМ: 0000000000091845 [15:57:04]line Версия ККМ: 001 [15:57:04]line ФМ: 0000000000871829 [15:57:04]line ФД: 67509 [15:57:04]line ФПД: 82345766177886 [15:57:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T155703&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67509&fm=82345766177886&tin=02508201610067®Number=0000000000091845&sum=50000 [15:57:04]OFD Sender: Processing packet 67509 [packets to send 35, broken 34] [15:57:04]ProducePacketName [15:57:04]name=ofd_packets/00067509 [15:57:04]OFD Sender: To server: pG, [15:57:04]CommunicateWithHost lk.salyk.kg:30040 [15:57:04]ConnectInit lk.salyk.kg [15:57:04]written 0, free lines is 4095 [15:57:04]Connected sock=10 [15:57:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 0A 43 07 01 61 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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 CF 2C 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B5 07 01 00 35 04 06 00 4A E4 9E 24 4C 5E B9 17 AE 1A 25 7F BF 72 [15:57:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 D4 A8 47 00 49 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B5 07 01 00 F4 03 04 00 AA D4 45 66 B6 04 01 00 00 5E 09 E2 64 B8 E0 93 53 [15:57:04]CommunicateWithHost err = 0 [15:57:04]CheckOFDResponse [15:57:04]1017 (14) - 77093643461234 [15:57:04]1041 (16) - 0000000000871829 [15:57:04]1040 (4) - 67509 [15:57:04]1012 (4) - 16.05.2024 09:40 [15:57:04]1206 (1) - 0 [15:57:04]OFD Sender: Remove packet 67509 [15:57:04]ProducePacketName [15:57:04]name=ofd_packets/00067509 [15:57:04]NVStorageDeleteData [15:57:04]Write to MH i2c: 01 00 00 43 12 55 [15:57:04]Write i2c OK [15:57:04]MH_I2C_Read... [15:57:04]Read from MH i2c: 01 [15:57:04]MH_I2C_Read... [15:57:04]Read from MH i2c: 01 07 00 [15:57:04]MH_I2C_Read... [15:57:04]Read from MH i2c: 01 07 00 43 12 00 00 00 00 00 D8 0C 40 [15:57:04]RasterBufferAndPrint [15:57:04]line [15:57:04]line [15:57:04]line [15:57:04]line [15:57:04]line [15:57:04]written 0, free lines is 3295 [15:57:04]MH_Cut [15:57:04]Write to MH i2c: D1 01 00 4A 12 01 2E [15:57:04]Write i2c OK [15:57:04]MH_I2C_Read... [15:57:04]Read from MH i2c: D1 [15:57:04]MH_I2C_Read... [15:57:04]Read from MH i2c: D1 01 00 [15:57:04]MH_I2C_Read... [15:57:04]Read from MH i2c: D1 01 00 4A 12 00 2D [15:57:04]Write to MH i2c: 01 00 00 4B 12 5D [15:57:04]Write i2c OK [15:57:04]MH_I2C_Read... [15:57:05]OFD Sender: No OFD packet to send [15:57:05]*** Cut start [15:57:05]*** Purtial cut [15:57:05]*** CUTSNS_PIN = 0 [15:57:05]*** Stage 1: CUTSNS_PIN = 1 [15:57:07]Read from MH i2c: 01 [15:57:07]MH_I2C_Read... [15:57:07]*** Stop cut motor [15:57:07]*** Cut end [15:57:07]Read from MH i2c: 01 07 00 [15:57:07]MH_I2C_Read... [15:57:07]Read from MH i2c: 01 07 00 4B 12 00 00 00 00 00 FF 0F 72 [15:57:07]process_action close_receipt done [15:57:07]requested_data is exist [15:57:07]produce_requested_data [15:57:07]requested_item fm.sn is exist - process it [15:57:07]wFMCommunicate request_size=4 [15:57:07]MH_SAM_APDU [15:57:07]CAPDU: 80 11 00 00 [15:57:07]Write to MH i2c: E2 08 00 4C 12 80 11 00 00 00 00 00 00 D8 [15:57:07]Write i2c OK [15:57:07]MH_I2C_Read... [15:57:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:07]Read from MH i2c: E2 [15:57:07]MH_I2C_Read... [15:57:07]Read from MH i2c: E2 17 00 [15:57:07]MH_I2C_Read... [15:57:07]Read from MH i2c: E2 17 00 4C 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2E [15:57:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:57:07]wFMCommunicate OK [15:57:07]requested_item fd.num is exist - process it [15:57:07]SAM_PROTO_GetFieldsCounters [15:57:07]wFMCommunicate request_size=4 [15:57:07]MH_SAM_APDU [15:57:07]CAPDU: 80 13 00 00 [15:57:07]Write to MH i2c: E2 08 00 4D 12 80 13 00 00 00 00 00 00 DB [15:57:07]Write i2c OK [15:57:07]MH_I2C_Read... [15:57:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:57:07]Read from MH i2c: E2 [15:57:07]MH_I2C_Read... [15:57:07]Read from MH i2c: E2 62 00 [15:57:07]MH_I2C_Read... [15:57:07]Read from MH i2c: E2 62 00 4D 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B5 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [15:57: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B5 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:57:07]wFMCommunicate OK [15:57:07]SAM_PROTO_GetFieldsCounters done [15:57:07]requested_item shift.num is exist - process it [15:57:07]requested_item shift.opened is exist - process it [15:57:07]req_shift_opened [15:57:07]FM_GetShiftState [15:57:07]SAM_PROTO_GetShiftState [15:57:07]wFMCommunicate request_size=4 [15:57:07]MH_SAM_APDU [15:57:07]CAPDU: 80 13 01 00 [15:57:07]Write to MH i2c: E2 08 00 4E 12 80 13 01 00 00 00 00 00 DD [15:57:07]Write i2c OK [15:57:07]MH_I2C_Read... [15:57:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:07]Read from MH i2c: E2 [15:57:07]MH_I2C_Read... [15:57:07]Read from MH i2c: E2 0E 00 [15:57:07]MH_I2C_Read... [15:57:07]Read from MH i2c: E2 0E 00 4E 12 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 89 [15:57:07]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [15:57:07]wFMCommunicate OK [15:57:07]SAM_PROTO_GetShiftState done [15:57:07]FM_GetShiftState done [15:57:07]req_shift_opened done [15:57:07]requested_item shift.open_date is exist - process it [15:57:07]req_shift_open_date [15:57:07]req_shift_open_date done [15:57:07]produce_requested_data done [15:57:07]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67509,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [15:57:07]process_action_free close_receipt [15:57:07]json_value_free [15:57:07]json_value_free done [15:57:07]process_json_proto returns [15:57:07]Send response to host [15:57:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67509,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [15:57:07]free response buf [15:57:07]execute_script done [15:57:07]execute_script returns [15:57:07]free content buf [15:57:07]Sock 8.Close socket [15:57:07]Sock 8.Thread stoped [15:57:10]OFD Sender: No OFD packet to send [15:57:15]OFD Sender: No OFD packet to send [15:57:20]OFD Sender: No OFD packet to send [15:57:25]OFD Sender: No OFD packet to send [15:57:30]OFD Sender: No OFD packet to send [15:57:35]OFD Sender: No OFD packet to send [15:57:40]OFD Sender: No OFD packet to send [15:57:45]OFD Sender: No OFD packet to send [15:57:50]OFD Sender: No OFD packet to send [15:57:55]OFD Sender: No OFD packet to send [15:58:00]OFD Sender: No OFD packet to send [15:58:05]OFD Sender: No OFD packet to send [15:58:10]OFD Sender: No OFD packet to send [15:58:15]OFD Sender: No OFD packet to send [15:58:20]OFD Sender: No OFD packet to send [15:58:25]OFD Sender: No OFD packet to send [15:58:30]OFD Sender: No OFD packet to send [15:58:35]OFD Sender: No OFD packet to send [15:58:40]OFD Sender: No OFD packet to send [15:58:45]OFD Sender: No OFD packet to send [15:58:50]OFD Sender: No OFD packet to send [15:58:55]OFD Sender: No OFD packet to send [15:59:00]OFD Sender: No OFD packet to send [15:59:00]accept exits with 9 [15:59:00]New connection [15:59:00]New thread 3067039076 created [15:59:00]Thread 3067182436 joined [15:59:00]Waiting for new connection... [15:59:00] Sock 9.Parse request [15:59:00]Sock 9.Check first char [15:59:00]Sock 9.First char is OK [15:59:00]request: POST /json_proto HTTP/1.0 [15:59:00]Method: POST [15:59:00]URL: /json_proto [15:59:00]Method is POST - this is cgi request [15:59:00]url: /json_proto [15:59:00]query_string will be loaded in cgi processing [15:59:00]execute_cgi json_proto POST (null) [15:59:00]execute_cgi path=json_proto method=POST [15:59:00]POST find Content-Length [15:59:00]Host: 172.17.41.195:8080 [15:59:00]Content-Length: 1224 [15:59:00]Content-Type: application/json [15:59:00] [15:59:00]POST finish read [15:59:00]Found Content-Length = 1224 [15:59:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507562\u000A16.05.2024 15:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 120.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 8964.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3472444/45/22\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:00]execute_script... [15:59:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507562\u000A16.05.2024 15:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 120.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 8964.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3472444/45/22\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:00]POST & json_proto [15:59:00]process_json_proto [15:59:00]json parsed OK: [15:59:00]protocol is kg_v1.0 [15:59:00]action value=print_text [15:59:00]process_action print_text [15:59:00]cmd_print_text [15:59:00]ExternCall_PrintAddStr [15:59:00]wPrintStart [15:59:00]Write to MH i2c: 01 00 00 4F 12 61 [15:59:00]Write i2c OK [15:59:00]MH_I2C_Read... [15:59:00]Read from MH i2c: 01 [15:59:00]MH_I2C_Read... [15:59:00]Read from MH i2c: 01 07 00 [15:59:00]MH_I2C_Read... [15:59:00]Read from MH i2c: 01 07 00 4F 12 00 00 00 00 00 FF 0F 76 [15:59:00]RasterBufferAndPrint [15:59:00]line *****ТОВАРНЫЙ ЧЕК***** [15:59:00]line АЗС-91 [15:59:00]line Партнер нефть [15:59:00]line 02508201610067 [15:59:00]line Кассир : Пайзулдаева А. [15:59:00]line Счет N : (1)507562 [15:59:00]line 16.05.2024 15:41 [15:59:00]line ПРОДАЖА [15:59:00]line ТРК (МРК, ГНК): 11 [15:59:00]line Вид ГСМ : 2710194210 [15:59:00]line ДТ-К-5 [15:59:00]line 120.000 x 74.70 [15:59:00]line ИТОГ: 8964.00 [15:59:00]line Тип оплаты: Талоны: Топливные Талоны [15:59:00]line 3472444/45/22 [15:59:00]line ______________________ [15:59:00]line (подпись) [15:59:00]written 0, free lines is 4095 [15:59:01]Write to MH i2c: 01 00 00 63 12 75 [15:59:01]Write i2c OK [15:59:01]MH_I2C_Read... [15:59:01]Read from MH i2c: 01 [15:59:01]MH_I2C_Read... [15:59:01]Read from MH i2c: 01 07 00 [15:59:01]MH_I2C_Read... [15:59:01]Read from MH i2c: 01 07 00 63 12 00 00 00 00 00 12 0E 9C [15:59:01]RasterBufferAndPrint [15:59:01]line [15:59:01]line [15:59:01]line [15:59:01]line [15:59:01]line [15:59:01]written 0, free lines is 3603 [15:59:01]MH_Cut [15:59:01]Write to MH i2c: D1 01 00 6A 12 01 4E [15:59:01]Write i2c OK [15:59:01]MH_I2C_Read... [15:59:01]Read from MH i2c: D1 [15:59:01]MH_I2C_Read... [15:59:01]Read from MH i2c: D1 01 00 [15:59:01]MH_I2C_Read... [15:59:01]Read from MH i2c: D1 01 00 6A 12 00 4D [15:59:01]Write to MH i2c: 01 00 00 6B 12 7D [15:59:01]Write i2c OK [15:59:01]MH_I2C_Read... [15:59:01]*** Cut start [15:59:01]*** Purtial cut [15:59:01]*** Stage 1: CUTSNS_PIN = 1 [15:59:01]Read from MH i2c: 01 [15:59:01]MH_I2C_Read... [15:59:01]Read from MH i2c: 01 07 00 [15:59:01]MH_I2C_Read... [15:59:01]*** Stop cut motor [15:59:01]*** Cut end [15:59:01]Read from MH i2c: 01 07 00 6B 12 00 00 00 00 00 FF 0F 92 [15:59:01]process_action print_text done [15:59:01]requested_data is exist [15:59:01]produce_requested_data [15:59:01]requested_item fm.sn is exist - process it [15:59:01]wFMCommunicate request_size=4 [15:59:01]MH_SAM_APDU [15:59:01]CAPDU: 80 11 00 00 [15:59:01]Write to MH i2c: E2 08 00 6C 12 80 11 00 00 00 00 00 00 F8 [15:59:01]Write i2c OK [15:59:01]MH_I2C_Read... [15:59:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:02]Read from MH i2c: E2 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: E2 17 00 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: E2 17 00 6C 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 4E [15:59:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:59:02]wFMCommunicate OK [15:59:02]requested_item fd.num is exist - process it [15:59:02]SAM_PROTO_GetFieldsCounters [15:59:02]wFMCommunicate request_size=4 [15:59:02]MH_SAM_APDU [15:59:02]CAPDU: 80 13 00 00 [15:59:02]Write to MH i2c: E2 08 00 6D 12 80 13 00 00 00 00 00 00 FB [15:59:02]Write i2c OK [15:59:02]MH_I2C_Read... [15:59:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:59:02]Read from MH i2c: E2 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: E2 62 00 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: E2 62 00 6D 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B5 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [15:59:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B5 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:59:02]wFMCommunicate OK [15:59:02]SAM_PROTO_GetFieldsCounters done [15:59:02]requested_item shift.num is exist - process it [15:59:02]requested_item shift.opened is exist - process it [15:59:02]req_shift_opened [15:59:02]FM_GetShiftState [15:59:02]SAM_PROTO_GetShiftState [15:59:02]wFMCommunicate request_size=4 [15:59:02]MH_SAM_APDU [15:59:02]CAPDU: 80 13 01 00 [15:59:02]Write to MH i2c: E2 08 00 6E 12 80 13 01 00 00 00 00 00 FD [15:59:02]Write i2c OK [15:59:02]MH_I2C_Read... [15:59:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:02]Read from MH i2c: E2 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: E2 0E 00 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: E2 0E 00 6E 12 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 A9 [15:59:02]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [15:59:02]wFMCommunicate OK [15:59:02]SAM_PROTO_GetShiftState done [15:59:02]FM_GetShiftState done [15:59:02]req_shift_opened done [15:59:02]requested_item shift.open_date is exist - process it [15:59:02]req_shift_open_date [15:59:02]req_shift_open_date done [15:59:02]produce_requested_data done [15:59:02]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67509,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [15:59:02]process_action_free print_text [15:59:02]json_value_free [15:59:02]json_value_free done [15:59:02]process_json_proto returns [15:59:02]Send response to host [15:59:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67509,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [15:59:02]free response buf [15:59:02]execute_script done [15:59:02]execute_script returns [15:59:02]free content buf [15:59:02]Sock 9.Close socket [15:59:02]Sock 9.Thread stoped [15:59:05]OFD Sender: No OFD packet to send [15:59:06]int [15:59:06]Write to MH i2c: 01 00 00 6F 12 81 [15:59:06]*** FLAG_PRN_PAP1 set [15:59:06]Write i2c OK [15:59:06]MH_I2C_Read... [15:59:06]Read from MH i2c: 01 [15:59:06]MH_I2C_Read... [15:59:06]Read from MH i2c: 01 07 00 [15:59:06]MH_I2C_Read... [15:59:06]Read from MH i2c: 01 07 00 6F 12 00 01 00 00 00 FF 0F 97 [15:59:06]state=0 [15:59:06]No paper [15:59:07]int [15:59:07]Write to MH i2c: 01 00 00 70 12 82 [15:59:07]*** FLAG_PRN_PAP1 reset [15:59:07]Write i2c OK [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: 01 [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: 01 07 00 [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: 01 07 00 70 12 00 00 00 00 00 FF 0F 97 [15:59:07]state=0 [15:59:09]int [15:59:09]Write to MH i2c: 01 00 00 71 12 83 [15:59:09]*** FLAG_PRN_PAP1 set [15:59:09]Write i2c OK [15:59:09]MH_I2C_Read... [15:59:09]Read from MH i2c: 01 [15:59:09]MH_I2C_Read... [15:59:09]Read from MH i2c: 01 07 00 [15:59:09]MH_I2C_Read... [15:59:09]Read from MH i2c: 01 07 00 71 12 00 01 00 00 00 FF 0F 99 [15:59:09]state=0 [15:59:09]No paper [15:59:10]OFD Sender: No OFD packet to send [15:59:14]int [15:59:14]Write to MH i2c: 01 00 00 72 12 84 [15:59:14]*** FLAG_PRN_PAP1 reset [15:59:14]Write i2c OK [15:59:14]MH_I2C_Read... [15:59:14]Read from MH i2c: 01 [15:59:14]MH_I2C_Read... [15:59:14]Read from MH i2c: 01 07 00 [15:59:14]MH_I2C_Read... [15:59:14]Read from MH i2c: 01 07 00 72 12 00 00 00 00 00 FF 0F 99 [15:59:14]state=0 [15:59:15]OFD Sender: No OFD packet to send [15:59:20]OFD Sender: No OFD packet to send [15:59:25]OFD Sender: No OFD packet to send [15:59:30]OFD Sender: No OFD packet to send [15:59:35]OFD Sender: No OFD packet to send [15:59:40]OFD Sender: No OFD packet to send [15:59:45]OFD Sender: No OFD packet to send [15:59:50]OFD Sender: No OFD packet to send [15:59:55]OFD Sender: No OFD packet to send [16:00:00]OFD Sender: No OFD packet to send [16:00:05]OFD Sender: No OFD packet to send [16:00:10]OFD Sender: No OFD packet to send [16:00:15]OFD Sender: No OFD packet to send [16:00:20]OFD Sender: No OFD packet to send [16:00:25]OFD Sender: No OFD packet to send [16:00:30]OFD Sender: No OFD packet to send [16:00:35]OFD Sender: No OFD packet to send [16:00:40]OFD Sender: No OFD packet to send [16:00:45]OFD Sender: No OFD packet to send [16:00:50]OFD Sender: No OFD packet to send [16:00:55]OFD Sender: No OFD packet to send [16:01:00]OFD Sender: No OFD packet to send [16:01:05]OFD Sender: No OFD packet to send [16:01:10]OFD Sender: No OFD packet to send [16:01:15]OFD Sender: No OFD packet to send [16:01:20]OFD Sender: No OFD packet to send [16:01:25]OFD Sender: No OFD packet to send [16:01:30]OFD Sender: No OFD packet to send [16:01:35]OFD Sender: No OFD packet to send [16:01:40]OFD Sender: No OFD packet to send [16:01:45]OFD Sender: No OFD packet to send [16:01:50]OFD Sender: No OFD packet to send [16:01:55]OFD Sender: No OFD packet to send [16:02:00]OFD Sender: No OFD packet to send [16:02:02]accept exits with 8 [16:02:02]New connection [16:02:02]New thread 3067182436 created [16:02:02]Thread 3067039076 joined [16:02:02]Waiting for new connection... [16:02:02] Sock 8.Parse request [16:02:02]Sock 8.Check first char [16:02:02]Sock 8.First char is OK [16:02:02]request: POST /json_proto HTTP/1.0 [16:02:02]Method: POST [16:02:02]URL: /json_proto [16:02:02]Method is POST - this is cgi request [16:02:02]url: /json_proto [16:02:02]query_string will be loaded in cgi processing [16:02:02]execute_cgi json_proto POST (null) [16:02:02]execute_cgi path=json_proto method=POST [16:02:02]POST find Content-Length [16:02:02]Host: 172.17.41.195:8080 [16:02:02]Content-Length: 670 [16:02:02]Content-Type: application/json [16:02:02] [16:02:02]POST finish read [16:02:02]Found Content-Length = 670 [16:02:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507567", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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" ] } } [16:02:02]execute_script... [16:02: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)507567", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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" ] } } [16:02:02]POST & json_proto [16:02:02]process_json_proto [16:02:02]json parsed OK: [16:02:02]protocol is kg_v1.0 [16:02:02]action value=close_receipt [16:02:02]process_action close_receipt [16:02:02]cmd_close_receipt [16:02:02]MH_GetDate [16:02:02]Write to MH i2c: F0 00 00 73 12 74 [16:02:02]Write i2c OK [16:02:02]MH_I2C_Read... [16:02:02]Read from MH i2c: F0 [16:02:02]MH_I2C_Read... [16:02:02]Read from MH i2c: F0 09 00 [16:02:02]MH_I2C_Read... [16:02:02]Read from MH i2c: F0 09 00 73 12 00 FC 2D 46 66 FC 21 6F 64 42 [16:02:02]GetLastDocTimeStamp 1715875023 [16:02:02]current date 1715875324 [16:02:02]FM_GetShiftState [16:02:02]SAM_PROTO_GetShiftState [16:02:02]wFMCommunicate request_size=4 [16:02:02]MH_SAM_APDU [16:02:02]CAPDU: 80 13 01 00 [16:02:02]Write to MH i2c: E2 08 00 74 12 80 13 01 00 00 00 00 00 03 [16:02:02]Write i2c OK [16:02:02]MH_I2C_Read... [16:02:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:02]Read from MH i2c: E2 [16:02:02]MH_I2C_Read... [16:02:02]Read from MH i2c: E2 0E 00 [16:02:02]MH_I2C_Read... [16:02:02]Read from MH i2c: E2 0E 00 74 12 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 AF [16:02:02]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [16:02:02]wFMCommunicate OK [16:02:02]SAM_PROTO_GetShiftState done [16:02:02]FM_GetShiftState done [16:02:02]opened in 1715818916 [16:02:02]opened+sec_in_day 1715905316 [16:02:02]quantity*price = 60003 [16:02:02]sum+1 = 60004 [16:02:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 108 16.05.2024 16:02 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67510 ФПД: 79322730700834 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T160204&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67510&fm=79322730700834&tin=02508201610067®Number=0000000000091845&sum=60000 [16:02:03]StoreToDocumentArchive [16:02:03]shift 357 fd 67510 [16:02:03]save to /storage/0357/doc_00067510 [16:02:03]save last doc name /storage/0357/doc_00067510 to /storage/kkm_last_doc_name [16:02:03]save OK [16:02:03]Clear old archive folders... [16:02:03]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:02:03]tlvbuf is 01780970 [16:02:03]SAM_PROTO_ClearQueue [16:02:03]wFMCommunicate request_size=4 [16:02:03]MH_SAM_APDU [16:02:03]CAPDU: 80 09 00 00 [16:02:03]Write to MH i2c: E2 08 00 81 12 80 09 00 00 00 00 00 00 05 [16:02:03]Write i2c OK [16:02:03]MH_I2C_Read... [16:02:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:02:03]Read from MH i2c: E2 [16:02:03]MH_I2C_Read... [16:02:03]Read from MH i2c: E2 03 00 [16:02:03]MH_I2C_Read... [16:02:03]Read from MH i2c: E2 03 00 81 12 00 90 00 07 [16:02:03]RAPDU: 90 00 [16:02:03]wFMCommunicate OK [16:02:03]SAM_PROTO_ClearQueue done [16:02:03]KKMCreateOFDPacket [16:02:03]OFDProtocolAddRootSTLVToBuf [16:02:03]FM_MakeSignedData [16:02:03]FM_MakeSignedData [16:02:03]SAM_PROTO_SignData [16:02:03]wFMCommunicate request_size=4 [16:02:03]MH_SAM_APDU [16:02:03]CAPDU: 80 0D 01 02 [16:02:03]Write to MH i2c: E2 08 00 82 12 80 0D 01 02 00 00 00 00 0D [16:02:03]Write i2c OK [16:02:03]MH_I2C_Read... [16:02:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:02:03]Read from MH i2c: E2 [16:02:03]MH_I2C_Read... [16:02:03]Read from MH i2c: E2 03 00 [16:02:03]MH_I2C_Read... [16:02:03]Read from MH i2c: E2 03 00 82 12 00 90 00 08 [16:02:03]RAPDU: 90 00 [16:02:03]wFMCommunicate OK [16:02:03]wFMCommunicate request_size=255 [16:02:03]MH_SAM_APDU [16:02:03]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 6C 00 00 00 F4 03 04 00 FC 2D 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B6 07 01 00 35 04 06 00 [16:02:03]Write to MH i2c: E2 02 01 83 12 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 6C 00 00 00 F4 03 04 00 FC 2D 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B6 07 01 00 35 04 06 00 00 00 E7 [16:02:03]Write i2c OK [16:02:03]MH_I2C_Read... [16:02:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:04]Read from MH i2c: E2 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: E2 03 00 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: E2 03 00 83 12 00 90 00 09 [16:02:04]RAPDU: 90 00 [16:02:04]wFMCommunicate OK [16:02:04]wFMCommunicate request_size=11 [16:02:04]MH_SAM_APDU [16:02:04]CAPDU: 80 0D 02 02 06 48 24 C3 2F A0 22 [16:02:04]Write to MH i2c: E2 0E 00 84 12 80 0D 02 02 06 00 48 24 C3 2F A0 22 00 00 3C [16:02:04]Write i2c OK [16:02:04]MH_I2C_Read... [16:02:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:04]Read from MH i2c: E2 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: E2 03 00 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: E2 03 00 84 12 00 90 00 0A [16:02:04]RAPDU: 90 00 [16:02:04]wFMCommunicate OK [16:02:04]wFMCommunicate request_size=4 [16:02:04]MH_SAM_APDU [16:02:04]CAPDU: 80 0D 03 02 [16:02:04]Write to MH i2c: E2 08 00 85 12 80 0D 03 02 00 00 00 00 12 [16:02:04]Write i2c OK [16:02:04]MH_I2C_Read... [16:02:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:02:04]Read from MH i2c: E2 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: E2 0B 00 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: E2 0B 00 85 12 00 6C B3 32 4C D2 7E 67 A4 90 00 0B [16:02:04]RAPDU: 6C B3 32 4C D2 7E 67 A4 90 00 [16:02:04]wFMCommunicate OK [16:02:04]SAM_PROTO_SignData done [16:02:04]FM_MakeSignedData done [16:02:04]CreateOFDProtocolMessage [16:02:04]wFMCommunicate request_size=4 [16:02:04]MH_SAM_APDU [16:02:04]CAPDU: 80 11 00 00 [16:02:04]Write to MH i2c: E2 08 00 86 12 80 11 00 00 00 00 00 00 12 [16:02:04]Write i2c OK [16:02:04]MH_I2C_Read... [16:02:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:04]Read from MH i2c: E2 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: E2 17 00 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: E2 17 00 86 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 68 [16:02:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:02:04]wFMCommunicate OK [16:02:04]CreateOFDProtocolMessage done [16:02:04]OFDSenderStorePacket 67510 [16:02:04]StoreOFDPacket docnum=67510 [16:02:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 30 C9 08 01 06 C7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 6C 00 00 00 F4 03 04 00 FC 2D 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B6 07 01 00 35 04 06 00 48 24 C3 2F A0 22 6C B3 32 4C D2 7E 67 A4 [16:02:04]CheckFolder [16:02:04]dirname=/storage/ofd_packets [16:02:04]CheckFolder done [16:02:04]ProducePacketName [16:02:04]name=ofd_packets/00067510 [16:02:04]NVStorageSaveData ofd_packets/00067510 [16:02:04]File name is /storage/ofd_packets/00067510 [16:02:04]Write 302 bytes [16:02:04]NVStorageSaveData done [16:02:04]OFDSenderStorePacket done [16:02:04]KKMCreateOFDPacket done [16:02:04]NVStorageSaveData kkm_last_timestamp [16:02:04]File name is /storage/kkm_last_timestamp [16:02:04]Write 4 bytes [16:02:04]NVStorageSaveData done [16:02:04]ExternCall_PrintAddStr [16:02:04]wPrintStart [16:02:04]Write to MH i2c: 01 00 00 87 12 99 [16:02:04]Write i2c OK [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: 01 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: 01 07 00 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: 01 07 00 87 12 00 00 00 00 00 FF 0F AE [16:02:04]RasterBufferAndPrint [16:02:04]line Счет N : (1)507567 [16:02:04]line ИНН: 02508201610067 [16:02:04]line Контрольно-Кассовый Чек [16:02:04]line ПРОДАЖА [16:02:04]line ТРК (МРК, ГНК) : 42 [16:02:04]line Товар: 2710124130 [16:02:04]line Super-92-К-5 [16:02:04]line 8.850 * 67.80 [16:02:04]line = 600.03 [16:02:04]line НДС 12% НСП 1% [16:02:04]line > о реализуемом товаре [16:02:04]line ОКРУГЛЕНИЕ: -0.03 [16:02:04]line ИТОГО: 600.00 [16:02:04]line Внесено: 600.00 [16:02:04]line СДАЧА: 0.00 [16:02:04]line НСП 1% : 5.31 [16:02:04]line НДС 12% : 63.72 [16:02:04]line Наличными: 600.00 [16:02:04]line Безнал.: 0.00 [16:02:04]line Место: АЗС № 91 "Партнер Нефть" [16:02:04]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [16:02:04]line СНО: Общий режим [16:02:04]line Чек 108 16.05.2024 16:02 [16:02:04]line Смена: 357 ФФД: 1.0 [16:02:04]line ЗНМ: 0300000119 [16:02:04]line РНМ: 0000000000091845 [16:02:04]line Версия ККМ: 001 [16:02:04]line ФМ: 0000000000871829 [16:02:04]line ФД: 67510 [16:02:04]line ФПД: 79322730700834 [16:02:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T160204&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67510&fm=79322730700834&tin=02508201610067®Number=0000000000091845&sum=60000 [16:02:04]OFD Sender: Processing packet 67510 [packets to send 35, broken 34] [16:02:04]ProducePacketName [16:02:04]name=ofd_packets/00067510 [16:02:04]OFD Sender: To server: pG, [16:02:04]CommunicateWithHost lk.salyk.kg:30040 [16:02:04]ConnectInit lk.salyk.kg [16:02:04]written 0, free lines is 4095 [16:02:04]Connected sock=10 [16:02: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 38 32 39 10 01 00 00 30 C9 08 01 06 C7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 6C 00 00 00 F4 03 04 00 FC 2D 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B6 07 01 00 35 04 06 00 48 24 C3 2F A0 22 6C B3 32 4C D2 7E 67 A4 [16:02:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 01 1E 47 00 8D 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 38 32 39 10 04 04 00 B6 07 01 00 F4 03 04 00 D6 D5 45 66 B6 04 01 00 00 D2 2F 2D B6 AB B1 FE 54 [16:02:05]CommunicateWithHost err = 0 [16:02:05]CheckOFDResponse [16:02:05]1017 (14) - 77093643461234 [16:02:05]1041 (16) - 0000000000871829 [16:02:05]1040 (4) - 67510 [16:02:05]1012 (4) - 16.05.2024 09:45 [16:02:05]1206 (1) - 0 [16:02:05]OFD Sender: Remove packet 67510 [16:02:05]ProducePacketName [16:02:05]name=ofd_packets/00067510 [16:02:05]NVStorageDeleteData [16:02:05]Write to MH i2c: 01 00 00 B1 12 C3 [16:02:05]Write i2c OK [16:02:05]MH_I2C_Read... [16:02:05]Read from MH i2c: 01 [16:02:05]MH_I2C_Read... [16:02:05]Read from MH i2c: 01 07 00 [16:02:05]MH_I2C_Read... [16:02:05]Read from MH i2c: 01 07 00 B1 12 00 00 00 00 00 CB 0C A1 [16:02:05]RasterBufferAndPrint [16:02:05]line [16:02:05]line [16:02:05]line [16:02:05]line [16:02:05]line [16:02:05]written 0, free lines is 3281 [16:02:05]MH_Cut [16:02:05]Write to MH i2c: D1 01 00 B8 12 01 9C [16:02:05]Write i2c OK [16:02:05]MH_I2C_Read... [16:02:05]Read from MH i2c: D1 [16:02:05]MH_I2C_Read... [16:02:05]Read from MH i2c: D1 01 00 [16:02:05]MH_I2C_Read... [16:02:05]Read from MH i2c: D1 01 00 B8 12 00 9B [16:02:05]Write to MH i2c: 01 00 00 B9 12 CB [16:02:05]Write i2c OK [16:02:05]MH_I2C_Read... [16:02:05]OFD Sender: No OFD packet to send [16:02:05]*** Cut start [16:02:05]*** Purtial cut [16:02:05]*** CUTSNS_PIN = 0 [16:02:06]*** Stage 1: CUTSNS_PIN = 1 [16:02:07]Read from MH i2c: 01 [16:02:08]MH_I2C_Read... [16:02:08]*** Stop cut motor [16:02:08]*** Cut end [16:02:08]Read from MH i2c: 01 07 00 [16:02:08]MH_I2C_Read... [16:02:08]Read from MH i2c: 01 07 00 B9 12 00 00 00 00 00 FF 0F E0 [16:02:08]process_action close_receipt done [16:02:08]requested_data is exist [16:02:08]produce_requested_data [16:02:08]requested_item fm.sn is exist - process it [16:02:08]wFMCommunicate request_size=4 [16:02:08]MH_SAM_APDU [16:02:08]CAPDU: 80 11 00 00 [16:02:08]Write to MH i2c: E2 08 00 BA 12 80 11 00 00 00 00 00 00 46 [16:02:08]Write i2c OK [16:02:08]MH_I2C_Read... [16:02:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:08]Read from MH i2c: E2 [16:02:08]MH_I2C_Read... [16:02:08]Read from MH i2c: E2 17 00 [16:02:08]MH_I2C_Read... [16:02:08]Read from MH i2c: E2 17 00 BA 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 9C [16:02:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:02:08]wFMCommunicate OK [16:02:08]requested_item fd.num is exist - process it [16:02:08]SAM_PROTO_GetFieldsCounters [16:02:08]wFMCommunicate request_size=4 [16:02:08]MH_SAM_APDU [16:02:08]CAPDU: 80 13 00 00 [16:02:08]Write to MH i2c: E2 08 00 BB 12 80 13 00 00 00 00 00 00 49 [16:02:08]Write i2c OK [16:02:08]MH_I2C_Read... [16:02:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:02:08]Read from MH i2c: E2 [16:02:08]MH_I2C_Read... [16:02:08]Read from MH i2c: E2 62 00 [16:02:08]MH_I2C_Read... [16:02:08]Read from MH i2c: E2 62 00 BB 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B6 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [16:02: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B6 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:02:08]wFMCommunicate OK [16:02:08]SAM_PROTO_GetFieldsCounters done [16:02:08]requested_item shift.num is exist - process it [16:02:08]requested_item shift.opened is exist - process it [16:02:08]req_shift_opened [16:02:08]FM_GetShiftState [16:02:08]SAM_PROTO_GetShiftState [16:02:08]wFMCommunicate request_size=4 [16:02:08]MH_SAM_APDU [16:02:08]CAPDU: 80 13 01 00 [16:02:08]Write to MH i2c: E2 08 00 BC 12 80 13 01 00 00 00 00 00 4B [16:02:08]Write i2c OK [16:02:08]MH_I2C_Read... [16:02:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:08]Read from MH i2c: E2 [16:02:08]MH_I2C_Read... [16:02:08]Read from MH i2c: E2 0E 00 [16:02:08]MH_I2C_Read... [16:02:08]Read from MH i2c: E2 0E 00 BC 12 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 F7 [16:02:08]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [16:02:08]wFMCommunicate OK [16:02:08]SAM_PROTO_GetShiftState done [16:02:08]FM_GetShiftState done [16:02:08]req_shift_opened done [16:02:08]requested_item shift.open_date is exist - process it [16:02:08]req_shift_open_date [16:02:08]req_shift_open_date done [16:02:08]produce_requested_data done [16:02:08]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67510,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [16:02:08]process_action_free close_receipt [16:02:08]json_value_free [16:02:08]json_value_free done [16:02:08]process_json_proto returns [16:02:08]Send response to host [16:02:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67510,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [16:02:08]free response buf [16:02:08]execute_script done [16:02:08]execute_script returns [16:02:08]free content buf [16:02:08]Sock 8.Close socket [16:02:08]Sock 8.Thread stoped [16:02:10]OFD Sender: No OFD packet to send [16:02:15]OFD Sender: No OFD packet to send [16:02:20]OFD Sender: No OFD packet to send [16:02:25]OFD Sender: No OFD packet to send [16:02:30]OFD Sender: No OFD packet to send [16:02:35]OFD Sender: No OFD packet to send [16:02:40]OFD Sender: No OFD packet to send [16:02:45]OFD Sender: No OFD packet to send [16:02:50]OFD Sender: No OFD packet to send [16:02:55]OFD Sender: No OFD packet to send [16:03:00]OFD Sender: No OFD packet to send [16:03:05]OFD Sender: No OFD packet to send [16:03:10]OFD Sender: No OFD packet to send [16:03:15]OFD Sender: No OFD packet to send [16:03:20]OFD Sender: No OFD packet to send [16:03:25]OFD Sender: No OFD packet to send [16:03:29]accept exits with 9 [16:03:29]New connection [16:03:29]New thread 3067039076 created [16:03:29]Thread 3067182436 joined [16:03:29]Waiting for new connection... [16:03:29] Sock 9.Parse request [16:03:29]Sock 9.Check first char [16:03:29]Sock 9.First char is OK [16:03:29]request: POST /json_proto HTTP/1.0 [16:03:29]Method: POST [16:03:29]URL: /json_proto [16:03:29]Method is POST - this is cgi request [16:03:29]url: /json_proto [16:03:29]query_string will be loaded in cgi processing [16:03:29]execute_cgi json_proto POST (null) [16:03:29]execute_cgi path=json_proto method=POST [16:03:29]POST find Content-Length [16:03:29]Host: 172.17.41.195:8080 [16:03:29]Content-Length: 677 [16:03:29]Content-Type: application/json [16:03:29] [16:03:29]POST finish read [16:03:29]Found Content-Length = 677 [16:03:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507568", "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.80, "quantity" : 7.490, "sum" : 500.33, "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:03:29]execute_script... [16:03: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)507568", "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.80, "quantity" : 7.490, "sum" : 500.33, "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:03:29]POST & json_proto [16:03:29]process_json_proto [16:03:29]json parsed OK: [16:03:29]protocol is kg_v1.0 [16:03:29]action value=close_receipt [16:03:29]process_action close_receipt [16:03:29]cmd_close_receipt [16:03:29]MH_GetDate [16:03:29]Write to MH i2c: F0 00 00 BD 12 BE [16:03:29]Write i2c OK [16:03:29]MH_I2C_Read... [16:03:29]Read from MH i2c: F0 [16:03:29]MH_I2C_Read... [16:03:29]Read from MH i2c: F0 09 00 [16:03:29]MH_I2C_Read... [16:03:29]Read from MH i2c: F0 09 00 BD 12 00 52 2E 46 66 FC 21 6F 64 E3 [16:03:29]GetLastDocTimeStamp 1715875324 [16:03:29]current date 1715875410 [16:03:29]FM_GetShiftState [16:03:29]SAM_PROTO_GetShiftState [16:03:29]wFMCommunicate request_size=4 [16:03:29]MH_SAM_APDU [16:03:29]CAPDU: 80 13 01 00 [16:03:29]Write to MH i2c: E2 08 00 BE 12 80 13 01 00 00 00 00 00 4D [16:03:29]Write i2c OK [16:03:29]MH_I2C_Read... [16:03:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:29]Read from MH i2c: E2 [16:03:29]MH_I2C_Read... [16:03:29]Read from MH i2c: E2 0E 00 [16:03:29]MH_I2C_Read... [16:03:29]Read from MH i2c: E2 0E 00 BE 12 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 F9 [16:03:29]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [16:03:29]wFMCommunicate OK [16:03:29]SAM_PROTO_GetShiftState done [16:03:29]FM_GetShiftState done [16:03:29]opened in 1715818916 [16:03:29]opened+sec_in_day 1715905316 [16:03:29]quantity*price = 50033 [16:03:29]sum+1 = 50034 [16:03:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 109 16.05.2024 16:03 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67511 ФПД: 63352860103843 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T160330&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67511&fm=63352860103843&tin=02508201610067®Number=0000000000091845&sum=50000 [16:03:30]StoreToDocumentArchive [16:03:30]shift 357 fd 67511 [16:03:30]save to /storage/0357/doc_00067511 [16:03:30]save last doc name /storage/0357/doc_00067511 to /storage/kkm_last_doc_name [16:03:30]save OK [16:03:30]Clear old archive folders... [16:03:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:03:30]tlvbuf is 017DA4E0 [16:03:30]SAM_PROTO_ClearQueue [16:03:30]wFMCommunicate request_size=4 [16:03:30]MH_SAM_APDU [16:03:30]CAPDU: 80 09 00 00 [16:03:30]Write to MH i2c: E2 08 00 CB 12 80 09 00 00 00 00 00 00 4F [16:03:30]Write i2c OK [16:03:30]MH_I2C_Read... [16:03:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:03:30]Read from MH i2c: E2 [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: E2 03 00 [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: E2 03 00 CB 12 00 90 00 51 [16:03:30]RAPDU: 90 00 [16:03:30]wFMCommunicate OK [16:03:30]SAM_PROTO_ClearQueue done [16:03:30]KKMCreateOFDPacket [16:03:30]OFDProtocolAddRootSTLVToBuf [16:03:30]FM_MakeSignedData [16:03:30]FM_MakeSignedData [16:03:30]SAM_PROTO_SignData [16:03:30]wFMCommunicate request_size=4 [16:03:30]MH_SAM_APDU [16:03:30]CAPDU: 80 0D 01 02 [16:03:30]Write to MH i2c: E2 08 00 CC 12 80 0D 01 02 00 00 00 00 57 [16:03:30]Write i2c OK [16:03:30]MH_I2C_Read... [16:03:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:03:30]Read from MH i2c: E2 [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: E2 03 00 [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: E2 03 00 CC 12 00 90 00 52 [16:03:30]RAPDU: 90 00 [16:03:30]wFMCommunicate OK [16:03:30]wFMCommunicate request_size=255 [16:03:30]MH_SAM_APDU [16: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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 52 2E 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B7 07 01 00 35 04 06 00 39 [16:03:30]Write to MH i2c: E2 02 01 CD 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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 52 2E 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B7 07 01 00 35 04 06 00 39 00 00 D9 [16:03:30]Write i2c OK [16:03:30]MH_I2C_Read... [16:03:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:30]Read from MH i2c: E2 [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: E2 03 00 [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: E2 03 00 CD 12 00 90 00 53 [16:03:30]RAPDU: 90 00 [16:03:30]wFMCommunicate OK [16:03:30]wFMCommunicate request_size=10 [16:03:30]MH_SAM_APDU [16:03:30]CAPDU: 80 0D 02 02 05 9E 7C B8 D4 A3 [16:03:30]Write to MH i2c: E2 0D 00 CE 12 80 0D 02 02 05 00 9E 7C B8 D4 A3 00 00 AD [16:03:30]Write i2c OK [16:03:30]MH_I2C_Read... [16:03:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:30]Read from MH i2c: E2 [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: E2 03 00 [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: E2 03 00 CE 12 00 90 00 54 [16:03:30]RAPDU: 90 00 [16:03:30]wFMCommunicate OK [16:03:30]wFMCommunicate request_size=4 [16:03:30]MH_SAM_APDU [16:03:30]CAPDU: 80 0D 03 02 [16:03:30]Write to MH i2c: E2 08 00 CF 12 80 0D 03 02 00 00 00 00 5C [16:03:30]Write i2c OK [16:03:30]MH_I2C_Read... [16:03:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:03:30]Read from MH i2c: E2 [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: E2 0B 00 [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: E2 0B 00 CF 12 00 65 AA C3 F7 9D 8C F8 9D 90 00 E4 [16:03:30]RAPDU: 65 AA C3 F7 9D 8C F8 9D 90 00 [16:03:30]wFMCommunicate OK [16:03:30]SAM_PROTO_SignData done [16:03:30]FM_MakeSignedData done [16:03:30]CreateOFDProtocolMessage [16:03:30]wFMCommunicate request_size=4 [16:03:30]MH_SAM_APDU [16:03:30]CAPDU: 80 11 00 00 [16:03:30]Write to MH i2c: E2 08 00 D0 12 80 11 00 00 00 00 00 00 5C [16:03:30]Write i2c OK [16:03:30]MH_I2C_Read... [16:03:30]OFD Sender: No OFD packet to send [16:03:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:30]Read from MH i2c: E2 [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: E2 17 00 [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: E2 17 00 D0 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B2 [16:03:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:03:30]wFMCommunicate OK [16:03:30]CreateOFDProtocolMessage done [16:03:30]OFDSenderStorePacket 67511 [16:03:30]StoreOFDPacket docnum=67511 [16:03:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 ED 76 07 01 D5 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 52 2E 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B7 07 01 00 35 04 06 00 39 9E 7C B8 D4 A3 65 AA C3 F7 9D 8C F8 9D [16:03:30]CheckFolder [16:03:30]dirname=/storage/ofd_packets [16:03:30]CheckFolder done [16:03:30]ProducePacketName [16:03:30]name=ofd_packets/00067511 [16:03:30]NVStorageSaveData ofd_packets/00067511 [16:03:30]File name is /storage/ofd_packets/00067511 [16:03:30]Write 301 bytes [16:03:30]NVStorageSaveData done [16:03:30]OFDSenderStorePacket done [16:03:30]KKMCreateOFDPacket done [16:03:30]NVStorageSaveData kkm_last_timestamp [16:03:30]File name is /storage/kkm_last_timestamp [16:03:30]Write 4 bytes [16:03:30]NVStorageSaveData done [16:03:30]ExternCall_PrintAddStr [16:03:30]wPrintStart [16:03:30]Write to MH i2c: 01 00 00 D1 12 E3 [16:03:30]Write i2c OK [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: 01 [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: 01 07 00 [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: 01 07 00 D1 12 00 00 00 00 00 FF 0F F8 [16:03:30]RasterBufferAndPrint [16:03:30]line Счет N : (1)507568 [16:03:30]line ИНН: 02508201610067 [16:03:30]line Контрольно-Кассовый Чек [16:03:30]line ПРОДАЖА [16:03:30]line ТРК (МРК, ГНК) : 23 [16:03:30]line Товар: 2710124130 [16:03:30]line Аи-92-К-5 [16:03:30]line 7.490 * 66.80 [16:03:30]line = 500.33 [16:03:30]line НДС 12% НСП 1% [16:03:30]line > о реализуемом товаре [16:03:30]line ОКРУГЛЕНИЕ: -0.33 [16:03:30]line ИТОГО: 500.00 [16:03:30]line Внесено: 500.00 [16:03:30]line СДАЧА: 0.00 [16:03:30]line НСП 1% : 4.43 [16:03:30]line НДС 12% : 53.13 [16:03:30]line Наличными: 500.00 [16:03:30]line Безнал.: 0.00 [16:03:30]line Место: АЗС № 91 "Партнер Нефть" [16:03:30]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [16:03:30]line СНО: Общий режим [16:03:30]line Чек 109 16.05.2024 16:03 [16:03:30]line Смена: 357 ФФД: 1.0 [16:03:30]line ЗНМ: 0300000119 [16:03:30]line РНМ: 0000000000091845 [16:03:30]line Версия ККМ: 001 [16:03:30]line ФМ: 0000000000871829 [16:03:30]line ФД: 67511 [16:03:30]line ФПД: 63352860103843 [16:03:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T160330&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67511&fm=63352860103843&tin=02508201610067®Number=0000000000091845&sum=50000 [16:03:31]OFD Sender: Processing packet 67511 [packets to send 35, broken 34] [16:03:31]ProducePacketName [16:03:31]name=ofd_packets/00067511 [16:03:31]OFD Sender: To server: pG, [16:03:31]CommunicateWithHost lk.salyk.kg:30040 [16:03:31]ConnectInit lk.salyk.kg [16:03:31]written 0, free lines is 4095 [16:03:31]Connected sock=10 [16: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 38 32 39 0F 01 00 00 ED 76 07 01 D5 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 52 2E 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B7 07 01 00 35 04 06 00 39 9E 7C B8 D4 A3 65 AA C3 F7 9D 8C F8 9D [16: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 38 32 39 4F 00 00 00 D8 37 47 00 33 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 38 32 39 10 04 04 00 B7 07 01 00 F4 03 04 00 2C D6 45 66 B6 04 01 00 00 94 14 99 7E 68 7B CA B8 [16:03:31]CommunicateWithHost err = 0 [16:03:31]CheckOFDResponse [16:03:31]1017 (14) - 77093643461234 [16:03:31]1041 (16) - 0000000000871829 [16:03:31]1040 (4) - 67511 [16:03:31]1012 (4) - 16.05.2024 09:47 [16:03:31]1206 (1) - 0 [16:03:31]OFD Sender: Remove packet 67511 [16:03:31]ProducePacketName [16:03:31]name=ofd_packets/00067511 [16:03:31]NVStorageDeleteData [16:03:31]Write to MH i2c: 01 00 00 FB 12 0D [16:03:31]Write i2c OK [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: 01 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: 01 07 00 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: 01 07 00 FB 12 00 00 00 00 00 C0 0C E0 [16:03:31]RasterBufferAndPrint [16:03:31]line [16:03:31]line [16:03:31]line [16:03:31]line [16:03:31]line [16:03:31]written 0, free lines is 3272 [16:03:31]MH_Cut [16:03:31]Write to MH i2c: D1 01 00 02 13 01 E7 [16:03:31]Write i2c OK [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: D1 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: D1 01 00 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: D1 01 00 02 13 00 E6 [16:03:31]Write to MH i2c: 01 00 00 03 13 16 [16:03:31]Write i2c OK [16:03:31]MH_I2C_Read... [16:03:31]OFD Sender: No OFD packet to send [16:03:32]*** Cut start [16:03:32]*** Purtial cut [16:03:32]*** Stage 1: CUTSNS_PIN = 1 [16:03:32]Read from MH i2c: 01 [16:03:32]MH_I2C_Read... [16:03:32]*** Stop cut motor [16:03:32]*** Cut end [16:03:32]Read from MH i2c: 01 07 00 [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: 01 07 00 03 13 00 00 00 00 00 FF 0F 2B [16:03:32]process_action close_receipt done [16:03:32]requested_data is exist [16:03:32]produce_requested_data [16:03:32]requested_item fm.sn is exist - process it [16:03:32]wFMCommunicate request_size=4 [16:03:32]MH_SAM_APDU [16:03:32]CAPDU: 80 11 00 00 [16:03:32]Write to MH i2c: E2 08 00 04 13 80 11 00 00 00 00 00 00 91 [16:03:32]Write i2c OK [16:03:32]MH_I2C_Read... [16:03:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:32]Read from MH i2c: E2 [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: E2 17 00 [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: E2 17 00 04 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E7 [16:03:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:03:32]wFMCommunicate OK [16:03:32]requested_item fd.num is exist - process it [16:03:32]SAM_PROTO_GetFieldsCounters [16:03:32]wFMCommunicate request_size=4 [16:03:32]MH_SAM_APDU [16:03:32]CAPDU: 80 13 00 00 [16:03:32]Write to MH i2c: E2 08 00 05 13 80 13 00 00 00 00 00 00 94 [16:03:32]Write i2c OK [16:03:32]MH_I2C_Read... [16:03:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:03:32]Read from MH i2c: E2 [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: E2 62 00 [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: E2 62 00 05 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B7 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [16:03: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B7 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:03:32]wFMCommunicate OK [16:03:32]SAM_PROTO_GetFieldsCounters done [16:03:32]requested_item shift.num is exist - process it [16:03:32]requested_item shift.opened is exist - process it [16:03:32]req_shift_opened [16:03:32]FM_GetShiftState [16:03:32]SAM_PROTO_GetShiftState [16:03:32]wFMCommunicate request_size=4 [16:03:32]MH_SAM_APDU [16:03:32]CAPDU: 80 13 01 00 [16:03:32]Write to MH i2c: E2 08 00 06 13 80 13 01 00 00 00 00 00 96 [16:03:32]Write i2c OK [16:03:32]MH_I2C_Read... [16:03:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:32]Read from MH i2c: E2 [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: E2 0E 00 [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: E2 0E 00 06 13 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 42 [16:03:32]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [16:03:32]wFMCommunicate OK [16:03:32]SAM_PROTO_GetShiftState done [16:03:32]FM_GetShiftState done [16:03:32]req_shift_opened done [16:03:32]requested_item shift.open_date is exist - process it [16:03:32]req_shift_open_date [16:03:32]req_shift_open_date done [16:03:32]produce_requested_data done [16:03:32]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67511,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [16:03:32]process_action_free close_receipt [16:03:32]json_value_free [16:03:32]json_value_free done [16:03:32]process_json_proto returns [16:03:32]Send response to host [16:03:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67511,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [16:03:32]free response buf [16:03:32]execute_script done [16:03:32]execute_script returns [16:03:32]free content buf [16:03:32]Sock 9.Close socket [16:03:32]Sock 9.Thread stoped [16:03:36]OFD Sender: No OFD packet to send [16:03:41]OFD Sender: No OFD packet to send [16:03:46]OFD Sender: No OFD packet to send [16:03:51]OFD Sender: No OFD packet to send [16:03:56]OFD Sender: No OFD packet to send [16:04:01]OFD Sender: No OFD packet to send [16:04:06]OFD Sender: No OFD packet to send [16:04:11]OFD Sender: No OFD packet to send [16:04:16]OFD Sender: No OFD packet to send [16:04:21]OFD Sender: No OFD packet to send [16:04:26]OFD Sender: No OFD packet to send [16:04:31]OFD Sender: No OFD packet to send [16:04:36]OFD Sender: No OFD packet to send [16:04:41]OFD Sender: No OFD packet to send [16:04:46]OFD Sender: No OFD packet to send [16:04:51]OFD Sender: No OFD packet to send [16:04:56]OFD Sender: No OFD packet to send [16:05:01]OFD Sender: No OFD packet to send [16:05:06]OFD Sender: No OFD packet to send [16:05:11]OFD Sender: No OFD packet to send [16:05:16]OFD Sender: No OFD packet to send [16:05:20]accept exits with 8 [16:05:20]New connection [16:05:20]New thread 3067182436 created [16:05:20]Thread 3067039076 joined [16:05:20]Waiting for new connection... [16:05:20] Sock 8.Parse request [16:05:20]Sock 8.Check first char [16:05:20]Sock 8.First char is OK [16:05:20]request: POST /json_proto HTTP/1.0 [16:05:20]Method: POST [16:05:20]URL: /json_proto [16:05:20]Method is POST - this is cgi request [16:05:20]url: /json_proto [16:05:20]query_string will be loaded in cgi processing [16:05:20]execute_cgi json_proto POST (null) [16:05:20]execute_cgi path=json_proto method=POST [16:05:20]POST find Content-Length [16:05:20]Host: 172.17.41.195:8080 [16:05:20]Content-Length: 1221 [16:05:20]Content-Type: application/json [16:05:20] [16:05:20]POST finish read [16:05:20]Found Content-Length = 1221 [16:05:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507566\u000A16.05.2024 15:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 7470.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3472448/49\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:20]execute_script... [16:05:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507566\u000A16.05.2024 15:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 7470.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3472448/49\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:20]POST & json_proto [16:05:20]process_json_proto [16:05:20]json parsed OK: [16:05:20]protocol is kg_v1.0 [16:05:20]action value=print_text [16:05:20]process_action print_text [16:05:20]cmd_print_text [16:05:20]ExternCall_PrintAddStr [16:05:20]wPrintStart [16:05:20]Write to MH i2c: 01 00 00 07 13 1A [16:05:20]Write i2c OK [16:05:20]MH_I2C_Read... [16:05:20]Read from MH i2c: 01 [16:05:20]MH_I2C_Read... [16:05:20]Read from MH i2c: 01 07 00 [16:05:20]MH_I2C_Read... [16:05:20]Read from MH i2c: 01 07 00 07 13 00 00 00 00 00 FF 0F 2F [16:05:20]RasterBufferAndPrint [16:05:20]line *****ТОВАРНЫЙ ЧЕК***** [16:05:20]line АЗС-91 [16:05:20]line Партнер нефть [16:05:20]line 02508201610067 [16:05:20]line Кассир : Пайзулдаева А. [16:05:20]line Счет N : (1)507566 [16:05:20]line 16.05.2024 15:47 [16:05:20]line ПРОДАЖА [16:05:20]line ТРК (МРК, ГНК): 11 [16:05:20]line Вид ГСМ : 2710194210 [16:05:20]line ДТ-К-5 [16:05:20]line 100.000 x 74.70 [16:05:20]line ИТОГ: 7470.00 [16:05:20]line Тип оплаты: Талоны: Топливные Талоны [16:05:20]line 3472448/49 [16:05:20]line ______________________ [16:05:20]line (подпись) [16:05:20]written 0, free lines is 4095 [16:05:20]Write to MH i2c: 01 00 00 1B 13 2E [16:05:20]Write i2c OK [16:05:20]MH_I2C_Read... [16:05:20]Read from MH i2c: 01 [16:05:20]MH_I2C_Read... [16:05:20]Read from MH i2c: 01 07 00 [16:05:20]MH_I2C_Read... [16:05:20]Read from MH i2c: 01 07 00 1B 13 00 00 00 00 00 10 0E 53 [16:05:20]RasterBufferAndPrint [16:05:20]line [16:05:20]line [16:05:20]line [16:05:20]line [16:05:20]line [16:05:20]written 0, free lines is 3602 [16:05:20]MH_Cut [16:05:20]Write to MH i2c: D1 01 00 22 13 01 07 [16:05:20]Write i2c OK [16:05:20]MH_I2C_Read... [16:05:20]Read from MH i2c: D1 [16:05:20]MH_I2C_Read... [16:05:20]Read from MH i2c: D1 01 00 [16:05:20]MH_I2C_Read... [16:05:20]Read from MH i2c: D1 01 00 22 13 00 06 [16:05:20]Write to MH i2c: 01 00 00 23 13 36 [16:05:20]Write i2c OK [16:05:20]MH_I2C_Read... [16:05:21]*** Cut start [16:05:21]*** Purtial cut [16:05:21]*** CUTSNS_PIN = 0 [16:05:21]*** Stage 1: CUTSNS_PIN = 1 [16:05:21]OFD Sender: No OFD packet to send [16:05:23]Read from MH i2c: 01 [16:05:23]MH_I2C_Read... [16:05:23]*** Stop cut motor [16:05:23]*** Cut end [16:05:23]Read from MH i2c: 01 07 00 [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: 01 07 00 23 13 00 00 00 00 00 FF 0F 4B [16:05:23]process_action print_text done [16:05:23]requested_data is exist [16:05:23]produce_requested_data [16:05:23]requested_item fm.sn is exist - process it [16:05:23]wFMCommunicate request_size=4 [16:05:23]MH_SAM_APDU [16:05:23]CAPDU: 80 11 00 00 [16:05:23]Write to MH i2c: E2 08 00 24 13 80 11 00 00 00 00 00 00 B1 [16:05:23]Write i2c OK [16:05:23]MH_I2C_Read... [16:05:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:23]Read from MH i2c: E2 [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: E2 17 00 [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: E2 17 00 24 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 07 [16:05:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:05:23]wFMCommunicate OK [16:05:23]requested_item fd.num is exist - process it [16:05:23]SAM_PROTO_GetFieldsCounters [16:05:23]wFMCommunicate request_size=4 [16:05:23]MH_SAM_APDU [16:05:23]CAPDU: 80 13 00 00 [16:05:23]Write to MH i2c: E2 08 00 25 13 80 13 00 00 00 00 00 00 B4 [16:05:23]Write i2c OK [16:05:23]MH_I2C_Read... [16:05:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:05:23]Read from MH i2c: E2 [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: E2 62 00 [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: E2 62 00 25 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B7 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [16: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B7 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:05:23]wFMCommunicate OK [16:05:23]SAM_PROTO_GetFieldsCounters done [16:05:23]requested_item shift.num is exist - process it [16:05:23]requested_item shift.opened is exist - process it [16:05:23]req_shift_opened [16:05:23]FM_GetShiftState [16:05:23]SAM_PROTO_GetShiftState [16:05:23]wFMCommunicate request_size=4 [16:05:23]MH_SAM_APDU [16:05:23]CAPDU: 80 13 01 00 [16:05:23]Write to MH i2c: E2 08 00 26 13 80 13 01 00 00 00 00 00 B6 [16:05:23]Write i2c OK [16:05:23]MH_I2C_Read... [16:05:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:23]Read from MH i2c: E2 [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: E2 0E 00 [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: E2 0E 00 26 13 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 62 [16:05:23]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [16:05:23]wFMCommunicate OK [16:05:23]SAM_PROTO_GetShiftState done [16:05:23]FM_GetShiftState done [16:05:23]req_shift_opened done [16:05:23]requested_item shift.open_date is exist - process it [16:05:23]req_shift_open_date [16:05:23]req_shift_open_date done [16:05:23]produce_requested_data done [16:05:23]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67511,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [16:05:23]process_action_free print_text [16:05:23]json_value_free [16:05:23]json_value_free done [16:05:23]process_json_proto returns [16:05:23]Send response to host [16:05:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67511,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [16:05:23]free response buf [16:05:23]execute_script done [16:05:23]execute_script returns [16:05:23]free content buf [16:05:23]Sock 8.Close socket [16:05:23]Sock 8.Thread stoped [16:05:26]OFD Sender: No OFD packet to send [16:05:31]OFD Sender: No OFD packet to send [16:05:36]OFD Sender: No OFD packet to send [16:05:41]OFD Sender: No OFD packet to send [16:05:46]OFD Sender: No OFD packet to send [16:05:51]OFD Sender: No OFD packet to send [16:05:56]OFD Sender: No OFD packet to send [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:22]OFD Sender: No OFD packet to send [16:06:27]OFD Sender: No OFD packet to send [16:06:32]OFD Sender: No OFD packet to send [16:06:37]OFD Sender: No OFD packet to send [16:06:42]OFD Sender: No OFD packet to send [16:06:47]OFD Sender: No OFD packet to send [16:06:52]OFD Sender: No OFD packet to send [16:06:57]OFD Sender: No OFD packet to send [16:07:02]OFD Sender: No OFD packet to send [16:07:07]OFD Sender: No OFD packet to send [16:07:12]OFD Sender: No OFD packet to send [16:07:17]OFD Sender: No OFD packet to send [16:07:22]OFD Sender: No OFD packet to send [16:07:27]OFD Sender: No OFD packet to send [16:07:32]OFD Sender: No OFD packet to send [16:07:37]OFD Sender: No OFD packet to send [16:07:42]OFD Sender: No OFD packet to send [16:07:47]OFD Sender: No OFD packet to send [16:07:52]OFD Sender: No OFD packet to send [16:07:57]OFD Sender: No OFD packet to send [16:08:02]OFD Sender: No OFD packet to send [16:08:07]OFD Sender: No OFD packet to send [16:08:12]OFD Sender: No OFD packet to send [16:08:17]OFD Sender: No OFD packet to send [16:08:22]OFD Sender: No OFD packet to send [16:08:27]OFD Sender: No OFD packet to send [16:08:32]OFD Sender: No OFD packet to send [16:08:37]OFD Sender: No OFD packet to send [16:08:42]OFD Sender: No OFD packet to send [16:08:47]OFD Sender: No OFD packet to send [16:08:52]OFD Sender: No OFD packet to send [16:08:57]OFD Sender: No OFD packet to send [16:09:02]OFD Sender: No OFD packet to send [16:09:07]OFD Sender: No OFD packet to send [16:09:12]OFD Sender: No OFD packet to send [16:09:17]OFD Sender: No OFD packet to send [16:09:22]OFD Sender: No OFD packet to send [16:09:27]OFD Sender: No OFD packet to send [16:09:32]OFD Sender: No OFD packet to send [16:09:37]OFD Sender: No OFD packet to send [16:09:42]OFD Sender: No OFD packet to send [16:09:47]OFD Sender: No OFD packet to send [16:09:52]OFD Sender: No OFD packet to send [16:09:57]OFD Sender: No OFD packet to send [16:10:01]accept exits with 9 [16:10:01]New connection [16:10:01]New thread 3067039076 created [16:10:01]Thread 3067182436 joined [16:10:01]Waiting for new connection... [16:10:01] Sock 9.Parse request [16:10:01]Sock 9.Check first char [16:10:01]Sock 9.First char is OK [16:10:01]request: POST /json_proto HTTP/1.0 [16:10:01]Method: POST [16:10:01]URL: /json_proto [16:10:01]Method is POST - this is cgi request [16:10:01]url: /json_proto [16:10:01]query_string will be loaded in cgi processing [16:10:01]execute_cgi json_proto POST (null) [16:10:01]execute_cgi path=json_proto method=POST [16:10:01]POST find Content-Length [16:10:01]Host: 172.17.41.195:8080 [16:10:01]Content-Length: 678 [16:10:01]Content-Type: application/json [16:10:01] [16:10:01]POST finish read [16:10:01]Found Content-Length = 678 [16:10:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507570", "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.80, "quantity" : 10.480, "sum" : 700.06, "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" ] } } [16:10:01]execute_script... [16:10:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507570", "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.80, "quantity" : 10.480, "sum" : 700.06, "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" ] } } [16:10:01]POST & json_proto [16:10:01]process_json_proto [16:10:01]json parsed OK: [16:10:01]protocol is kg_v1.0 [16:10:01]action value=close_receipt [16:10:01]process_action close_receipt [16:10:01]cmd_close_receipt [16:10:01]MH_GetDate [16:10:01]Write to MH i2c: F0 00 00 27 13 29 [16:10:01]Write i2c OK [16:10:01]MH_I2C_Read... [16:10:01]Read from MH i2c: F0 [16:10:01]MH_I2C_Read... [16:10:01]Read from MH i2c: F0 09 00 [16:10:01]MH_I2C_Read... [16:10:01]Read from MH i2c: F0 09 00 27 13 00 DA 2F 46 66 FC 21 6F 64 D7 [16:10:01]GetLastDocTimeStamp 1715875410 [16:10:01]current date 1715875802 [16:10:01]FM_GetShiftState [16:10:01]SAM_PROTO_GetShiftState [16:10:01]wFMCommunicate request_size=4 [16:10:01]MH_SAM_APDU [16:10:01]CAPDU: 80 13 01 00 [16:10:01]Write to MH i2c: E2 08 00 28 13 80 13 01 00 00 00 00 00 B8 [16:10:01]Write i2c OK [16:10:01]MH_I2C_Read... [16:10:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:01]Read from MH i2c: E2 [16:10:01]MH_I2C_Read... [16:10:01]Read from MH i2c: E2 0E 00 [16:10:01]MH_I2C_Read... [16:10:01]Read from MH i2c: E2 0E 00 28 13 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 64 [16:10:01]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [16:10:01]wFMCommunicate OK [16:10:01]SAM_PROTO_GetShiftState done [16:10:01]FM_GetShiftState done [16:10:01]opened in 1715818916 [16:10:01]opened+sec_in_day 1715905316 [16:10:01]quantity*price = 70006 [16:10:01]sum+1 = 70007 [16:10:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.19 НДС 12% : 74.34 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 110 16.05.2024 16:10 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67512 ФПД: 186040879917480 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T161003&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67512&fm=186040879917480&tin=02508201610067®Number=0000000000091845&sum=70000 [16:10:02]StoreToDocumentArchive [16:10:02]shift 357 fd 67512 [16:10:02]save to /storage/0357/doc_00067512 [16:10:02]save last doc name /storage/0357/doc_00067512 to /storage/kkm_last_doc_name [16:10:02]save OK [16:10:02]Clear old archive folders... [16:10:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:10:02]tlvbuf is 01783C20 [16:10:02]SAM_PROTO_ClearQueue [16:10:02]wFMCommunicate request_size=4 [16:10:02]MH_SAM_APDU [16:10:02]CAPDU: 80 09 00 00 [16:10:02]Write to MH i2c: E2 08 00 35 13 80 09 00 00 00 00 00 00 BA [16:10:02]Write i2c OK [16:10:02]MH_I2C_Read... [16:10:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:10:02]Read from MH i2c: E2 [16:10:02]MH_I2C_Read... [16:10:02]Read from MH i2c: E2 03 00 [16:10:02]MH_I2C_Read... [16:10:02]Read from MH i2c: E2 03 00 35 13 00 90 00 BC [16:10:02]RAPDU: 90 00 [16:10:02]wFMCommunicate OK [16:10:02]SAM_PROTO_ClearQueue done [16:10:02]KKMCreateOFDPacket [16:10:02]OFDProtocolAddRootSTLVToBuf [16:10:02]FM_MakeSignedData [16:10:02]FM_MakeSignedData [16:10:02]SAM_PROTO_SignData [16:10:02]wFMCommunicate request_size=4 [16:10:02]MH_SAM_APDU [16:10:02]CAPDU: 80 0D 01 02 [16:10:02]Write to MH i2c: E2 08 00 36 13 80 0D 01 02 00 00 00 00 C2 [16:10:02]Write i2c OK [16:10:02]MH_I2C_Read... [16:10:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:10:02]Read from MH i2c: E2 [16:10:02]MH_I2C_Read... [16:10:02]Read from MH i2c: E2 03 00 [16:10:02]MH_I2C_Read... [16:10:02]Read from MH i2c: E2 03 00 36 13 00 90 00 BD [16:10:02]RAPDU: 90 00 [16:10:02]wFMCommunicate OK [16:10:02]wFMCommunicate request_size=255 [16:10:02]MH_SAM_APDU [16:10:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 28 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 76 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 6E 00 00 00 F4 03 04 00 DB 2F 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B8 07 01 00 35 04 06 00 A9 [16:10:02]Write to MH i2c: E2 02 01 37 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 F0 28 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 76 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 6E 00 00 00 F4 03 04 00 DB 2F 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B8 07 01 00 35 04 06 00 A9 00 00 2E [16:10:02]Write i2c OK [16:10:02]MH_I2C_Read... [16:10:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:03]Read from MH i2c: E2 [16:10:03]MH_I2C_Read... [16:10:03]Read from MH i2c: E2 03 00 [16:10:03]MH_I2C_Read... [16:10:03]Read from MH i2c: E2 03 00 37 13 00 90 00 BE [16:10:03]RAPDU: 90 00 [16:10:03]wFMCommunicate OK [16:10:03]wFMCommunicate request_size=10 [16:10:03]MH_SAM_APDU [16:10:03]CAPDU: 80 0D 02 02 05 34 04 8F A9 A8 [16:10:03]Write to MH i2c: E2 0D 00 38 13 80 0D 02 02 05 00 34 04 8F A9 A8 00 00 E7 [16:10:03]Write i2c OK [16:10:03]MH_I2C_Read... [16:10:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:03]Read from MH i2c: E2 [16:10:03]MH_I2C_Read... [16:10:03]Read from MH i2c: E2 03 00 [16:10:03]MH_I2C_Read... [16:10:03]Read from MH i2c: E2 03 00 38 13 00 90 00 BF [16:10:03]RAPDU: 90 00 [16:10:03]wFMCommunicate OK [16:10:03]wFMCommunicate request_size=4 [16:10:03]MH_SAM_APDU [16:10:03]CAPDU: 80 0D 03 02 [16:10:03]Write to MH i2c: E2 08 00 39 13 80 0D 03 02 00 00 00 00 C7 [16:10:03]Write i2c OK [16:10:03]MH_I2C_Read... [16:10:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:10:03]Read from MH i2c: E2 [16:10:03]MH_I2C_Read... [16:10:03]Read from MH i2c: E2 0B 00 [16:10:03]MH_I2C_Read... [16:10:03]Read from MH i2c: E2 0B 00 39 13 00 C5 EC E0 AE 59 C5 F0 69 90 00 7E [16:10:03]RAPDU: C5 EC E0 AE 59 C5 F0 69 90 00 [16:10:03]wFMCommunicate OK [16:10:03]SAM_PROTO_SignData done [16:10:03]FM_MakeSignedData done [16:10:03]CreateOFDProtocolMessage [16:10:03]wFMCommunicate request_size=4 [16:10:03]MH_SAM_APDU [16:10:03]CAPDU: 80 11 00 00 [16:10:03]Write to MH i2c: E2 08 00 3A 13 80 11 00 00 00 00 00 00 C7 [16:10:03]Write i2c OK [16:10:03]MH_I2C_Read... [16:10:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:03]Read from MH i2c: E2 [16:10:03]MH_I2C_Read... [16:10:03]Read from MH i2c: E2 17 00 [16:10:03]MH_I2C_Read... [16:10:03]Read from MH i2c: E2 17 00 3A 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 1D [16:10:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:10:03]wFMCommunicate OK [16:10:03]CreateOFDProtocolMessage done [16:10:03]OFDSenderStorePacket 67512 [16:10:03]StoreOFDPacket docnum=67512 [16:10:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 13 03 07 01 4A C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 28 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 76 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 6E 00 00 00 F4 03 04 00 DB 2F 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B8 07 01 00 35 04 06 00 A9 34 04 8F A9 A8 C5 EC E0 AE 59 C5 F0 69 [16:10:03]CheckFolder [16:10:03]dirname=/storage/ofd_packets [16:10:03]CheckFolder done [16:10:03]ProducePacketName [16:10:03]name=ofd_packets/00067512 [16:10:03]NVStorageSaveData ofd_packets/00067512 [16:10:03]File name is /storage/ofd_packets/00067512 [16:10:03]Write 301 bytes [16:10:03]NVStorageSaveData done [16:10:03]OFDSenderStorePacket done [16:10:03]KKMCreateOFDPacket done [16:10:03]NVStorageSaveData kkm_last_timestamp [16:10:03]File name is /storage/kkm_last_timestamp [16:10:03]Write 4 bytes [16:10:03]NVStorageSaveData done [16:10:03]ExternCall_PrintAddStr [16:10:03]wPrintStart [16:10:03]Write to MH i2c: 01 00 00 3B 13 4E [16:10:03]Write i2c OK [16:10:03]MH_I2C_Read... [16:10:03]Read from MH i2c: 01 [16:10:03]MH_I2C_Read... [16:10:03]Read from MH i2c: 01 07 00 [16:10:03]MH_I2C_Read... [16:10:03]Read from MH i2c: 01 07 00 3B 13 00 00 00 00 00 FF 0F 63 [16:10:03]RasterBufferAndPrint [16:10:03]line Счет N : (1)507570 [16:10:03]line ИНН: 02508201610067 [16:10:03]line Контрольно-Кассовый Чек [16:10:03]line ПРОДАЖА [16:10:03]line ТРК (МРК, ГНК) : 43 [16:10:03]line Товар: 2710124130 [16:10:03]line Аи-92-К-5 [16:10:03]line 10.480 * 66.80 [16:10:03]line = 700.06 [16:10:03]line НДС 12% НСП 1% [16:10:03]line > о реализуемом товаре [16:10:03]line ОКРУГЛЕНИЕ: -0.06 [16:10:03]line ИТОГО: 700.00 [16:10:03]line Внесено: 700.00 [16:10:03]line СДАЧА: 0.00 [16:10:03]line НСП 1% : 6.19 [16:10:03]line НДС 12% : 74.34 [16:10:03]line Наличными: 700.00 [16:10:03]line Безнал.: 0.00 [16:10:03]line Место: АЗС № 91 "Партнер Нефть" [16:10:03]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [16:10:03]line СНО: Общий режим [16:10:03]line Чек 110 16.05.2024 16:10 [16:10:03]line Смена: 357 ФФД: 1.0 [16:10:03]line ЗНМ: 0300000119 [16:10:03]line РНМ: 0000000000091845 [16:10:03]line Версия ККМ: 001 [16:10:03]line ФМ: 0000000000871829 [16:10:03]line ФД: 67512 [16:10:03]line ФПД: 186040879917480 [16:10:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T161003&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67512&fm=186040879917480&tin=02508201610067®Number=0000000000091845&sum=70000 [16:10:03]OFD Sender: Processing packet 67512 [packets to send 35, broken 34] [16:10:03]ProducePacketName [16:10:03]name=ofd_packets/00067512 [16:10:03]OFD Sender: To server: pG, [16:10:03]CommunicateWithHost lk.salyk.kg:30040 [16:10:03]ConnectInit lk.salyk.kg [16:10:03]written 0, free lines is 4095 [16:10:03]Connected sock=10 [16:10:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 13 03 07 01 4A C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 28 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 76 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 6E 00 00 00 F4 03 04 00 DB 2F 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B8 07 01 00 35 04 06 00 A9 34 04 8F A9 A8 C5 EC E0 AE 59 C5 F0 69 [16:10:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 46 2B 47 00 C2 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 38 32 39 10 04 04 00 B8 07 01 00 F4 03 04 00 B5 D7 45 66 B6 04 01 00 00 6A FF B8 A3 AA 4F 26 AE [16:10:03]CommunicateWithHost err = 0 [16:10:03]CheckOFDResponse [16:10:03]1017 (14) - 77093643461234 [16:10:03]1041 (16) - 0000000000871829 [16:10:03]1040 (4) - 67512 [16:10:03]1012 (4) - 16.05.2024 09:53 [16:10:03]1206 (1) - 0 [16:10:03]OFD Sender: Remove packet 67512 [16:10:03]ProducePacketName [16:10:03]name=ofd_packets/00067512 [16:10:03]NVStorageDeleteData [16:10:03]Write to MH i2c: 01 00 00 65 13 78 [16:10:03]Write i2c OK [16:10:03]MH_I2C_Read... [16:10:03]Read from MH i2c: 01 [16:10:03]MH_I2C_Read... [16:10:03]Read from MH i2c: 01 07 00 [16:10:03]MH_I2C_Read... [16:10:03]Read from MH i2c: 01 07 00 65 13 00 00 00 00 00 CB 0C 56 [16:10:03]RasterBufferAndPrint [16:10:03]line [16:10:03]line [16:10:03]line [16:10:03]line [16:10:03]line [16:10:03]written 0, free lines is 3282 [16:10:03]MH_Cut [16:10:03]Write to MH i2c: D1 01 00 6C 13 01 51 [16:10:03]Write i2c OK [16:10:03]MH_I2C_Read... [16:10:03]Read from MH i2c: D1 [16:10:03]MH_I2C_Read... [16:10:03]Read from MH i2c: D1 01 00 [16:10:03]MH_I2C_Read... [16:10:03]Read from MH i2c: D1 01 00 6C 13 00 50 [16:10:03]Write to MH i2c: 01 00 00 6D 13 80 [16:10:03]Write i2c OK [16:10:03]MH_I2C_Read... [16:10:04]OFD Sender: No OFD packet to send [16:10:04]*** Cut start [16:10:04]*** Purtial cut [16:10:04]*** Stage 1: CUTSNS_PIN = 1 [16:10:05]Read from MH i2c: 01 [16:10:05]MH_I2C_Read... [16:10:05]*** Stop cut motor [16:10:05]*** Cut end [16:10:05]Read from MH i2c: 01 07 00 [16:10:05]MH_I2C_Read... [16:10:05]Read from MH i2c: 01 07 00 6D 13 00 00 00 00 00 FF 0F 95 [16:10:05]process_action close_receipt done [16:10:05]requested_data is exist [16:10:05]produce_requested_data [16:10:05]requested_item fm.sn is exist - process it [16:10:05]wFMCommunicate request_size=4 [16:10:05]MH_SAM_APDU [16:10:05]CAPDU: 80 11 00 00 [16:10:05]Write to MH i2c: E2 08 00 6E 13 80 11 00 00 00 00 00 00 FB [16:10:05]Write i2c OK [16:10:05]MH_I2C_Read... [16:10:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:05]Read from MH i2c: E2 [16:10:05]MH_I2C_Read... [16:10:05]Read from MH i2c: E2 17 00 [16:10:05]MH_I2C_Read... [16:10:05]Read from MH i2c: E2 17 00 6E 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 51 [16:10:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:10:05]wFMCommunicate OK [16:10:05]requested_item fd.num is exist - process it [16:10:05]SAM_PROTO_GetFieldsCounters [16:10:05]wFMCommunicate request_size=4 [16:10:05]MH_SAM_APDU [16:10:05]CAPDU: 80 13 00 00 [16:10:05]Write to MH i2c: E2 08 00 6F 13 80 13 00 00 00 00 00 00 FE [16:10:05]Write i2c OK [16:10:05]MH_I2C_Read... [16:10:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:10:05]Read from MH i2c: E2 [16:10:05]MH_I2C_Read... [16:10:05]Read from MH i2c: E2 62 00 [16:10:05]MH_I2C_Read... [16:10:05]Read from MH i2c: E2 62 00 6F 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B8 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [16:10:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B8 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:10:05]wFMCommunicate OK [16:10:05]SAM_PROTO_GetFieldsCounters done [16:10:05]requested_item shift.num is exist - process it [16:10:05]requested_item shift.opened is exist - process it [16:10:05]req_shift_opened [16:10:05]FM_GetShiftState [16:10:05]SAM_PROTO_GetShiftState [16:10:05]wFMCommunicate request_size=4 [16:10:05]MH_SAM_APDU [16:10:05]CAPDU: 80 13 01 00 [16:10:05]Write to MH i2c: E2 08 00 70 13 80 13 01 00 00 00 00 00 00 [16:10:05]Write i2c OK [16:10:05]MH_I2C_Read... [16:10:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:05]Read from MH i2c: E2 [16:10:05]MH_I2C_Read... [16:10:05]Read from MH i2c: E2 0E 00 [16:10:05]MH_I2C_Read... [16:10:05]Read from MH i2c: E2 0E 00 70 13 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 AC [16:10:05]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [16:10:05]wFMCommunicate OK [16:10:05]SAM_PROTO_GetShiftState done [16:10:05]FM_GetShiftState done [16:10:05]req_shift_opened done [16:10:05]requested_item shift.open_date is exist - process it [16:10:05]req_shift_open_date [16:10:05]req_shift_open_date done [16:10:05]produce_requested_data done [16:10:05]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67512,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [16:10:05]process_action_free close_receipt [16:10:05]json_value_free [16:10:05]json_value_free done [16:10:05]process_json_proto returns [16:10:05]Send response to host [16:10:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67512,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [16:10:05]free response buf [16:10:05]execute_script done [16:10:05]execute_script returns [16:10:05]free content buf [16:10:05]Sock 9.Close socket [16:10:05]Sock 9.Thread stoped [16:10:09]OFD Sender: No OFD packet to send [16:10:14]OFD Sender: No OFD packet to send [16:10:19]OFD Sender: No OFD packet to send [16:10:22]accept exits with 8 [16:10:22]New connection [16:10:22]New thread 3067182436 created [16:10:22]Thread 3067039076 joined [16:10:22]Waiting for new connection... [16:10:22] Sock 8.Parse request [16:10:22]Sock 8.Check first char [16:10:22]Sock 8.First char is OK [16:10:22]request: POST /json_proto HTTP/1.0 [16:10:22]Method: POST [16:10:22]URL: /json_proto [16:10:22]Method is POST - this is cgi request [16:10:22]url: /json_proto [16:10:22]query_string will be loaded in cgi processing [16:10:22]execute_cgi json_proto POST (null) [16:10:22]execute_cgi path=json_proto method=POST [16:10:22]POST find Content-Length [16:10:22]Host: 172.17.41.195:8080 [16:10:22]Content-Length: 1221 [16:10:22]Content-Type: application/json [16:10:22] [16:10:22]POST finish read [16:10:22]Found Content-Length = 1221 [16:10:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507569\u000A16.05.2024 15:52\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 7470.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3472446/47\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:10:22]execute_script... [16:10:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507569\u000A16.05.2024 15:52\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 7470.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3472446/47\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:10:22]POST & json_proto [16:10:22]process_json_proto [16:10:22]json parsed OK: [16:10:22]protocol is kg_v1.0 [16:10:22]action value=print_text [16:10:22]process_action print_text [16:10:22]cmd_print_text [16:10:22]ExternCall_PrintAddStr [16:10:22]wPrintStart [16:10:22]Write to MH i2c: 01 00 00 71 13 84 [16:10:22]Write i2c OK [16:10:22]MH_I2C_Read... [16:10:22]Read from MH i2c: 01 [16:10:22]MH_I2C_Read... [16:10:22]Read from MH i2c: 01 07 00 [16:10:22]MH_I2C_Read... [16:10:22]Read from MH i2c: 01 07 00 71 13 00 00 00 00 00 FF 0F 99 [16:10:22]RasterBufferAndPrint [16:10:22]line *****ТОВАРНЫЙ ЧЕК***** [16:10:22]line АЗС-91 [16:10:22]line Партнер нефть [16:10:22]line 02508201610067 [16:10:22]line Кассир : Пайзулдаева А. [16:10:22]line Счет N : (1)507569 [16:10:22]line 16.05.2024 15:52 [16:10:22]line ПРОДАЖА [16:10:22]line ТРК (МРК, ГНК): 11 [16:10:22]line Вид ГСМ : 2710194210 [16:10:22]line ДТ-К-5 [16:10:22]line 100.000 x 74.70 [16:10:22]line ИТОГ: 7470.00 [16:10:22]line Тип оплаты: Талоны: Топливные Талоны [16:10:22]line 3472446/47 [16:10:22]line ______________________ [16:10:22]line (подпись) [16:10:22]written 0, free lines is 4095 [16:10:22]Write to MH i2c: 01 00 00 85 13 98 [16:10:22]Write i2c OK [16:10:22]MH_I2C_Read... [16:10:22]Read from MH i2c: 01 [16:10:22]MH_I2C_Read... [16:10:22]Read from MH i2c: 01 07 00 [16:10:22]MH_I2C_Read... [16:10:22]Read from MH i2c: 01 07 00 85 13 00 00 00 00 00 10 0E BD [16:10:22]RasterBufferAndPrint [16:10:22]line [16:10:22]line [16:10:22]line [16:10:22]line [16:10:22]line [16:10:22]written 0, free lines is 3602 [16:10:22]MH_Cut [16:10:22]Write to MH i2c: D1 01 00 8C 13 01 71 [16:10:22]Write i2c OK [16:10:22]MH_I2C_Read... [16:10:22]Read from MH i2c: D1 [16:10:22]MH_I2C_Read... [16:10:22]Read from MH i2c: D1 01 00 [16:10:22]MH_I2C_Read... [16:10:22]Read from MH i2c: D1 01 00 8C 13 00 70 [16:10:22]Write to MH i2c: 01 00 00 8D 13 A0 [16:10:22]Write i2c OK [16:10:22]MH_I2C_Read... [16:10:22]*** Cut start [16:10:22]*** Purtial cut [16:10:22]*** CUTSNS_PIN = 0 [16:10:23]*** Stage 1: CUTSNS_PIN = 1 [16:10:24]OFD Sender: No OFD packet to send [16:10:24]Read from MH i2c: 01 [16:10:24]MH_I2C_Read... [16:10:24]Read from MH i2c: 01 07 00 [16:10:24]MH_I2C_Read... [16:10:24]*** Stop cut motor [16:10:24]*** Cut end [16:10:24]Read from MH i2c: 01 07 00 8D 13 00 00 00 00 00 FF 0F B5 [16:10:24]process_action print_text done [16:10:24]requested_data is exist [16:10:24]produce_requested_data [16:10:24]requested_item fm.sn is exist - process it [16:10:24]wFMCommunicate request_size=4 [16:10:24]MH_SAM_APDU [16:10:24]CAPDU: 80 11 00 00 [16:10:24]Write to MH i2c: E2 08 00 8E 13 80 11 00 00 00 00 00 00 1B [16:10:24]Write i2c OK [16:10:24]MH_I2C_Read... [16:10:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:24]Read from MH i2c: E2 [16:10:24]MH_I2C_Read... [16:10:24]Read from MH i2c: E2 17 00 [16:10:24]MH_I2C_Read... [16:10:24]Read from MH i2c: E2 17 00 8E 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 71 [16:10:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:10:24]wFMCommunicate OK [16:10:24]requested_item fd.num is exist - process it [16:10:24]SAM_PROTO_GetFieldsCounters [16:10:24]wFMCommunicate request_size=4 [16:10:24]MH_SAM_APDU [16:10:24]CAPDU: 80 13 00 00 [16:10:24]Write to MH i2c: E2 08 00 8F 13 80 13 00 00 00 00 00 00 1E [16:10:24]Write i2c OK [16:10:24]MH_I2C_Read... [16:10:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:10:25]Read from MH i2c: E2 [16:10:25]MH_I2C_Read... [16:10:25]Read from MH i2c: E2 62 00 [16:10:25]MH_I2C_Read... [16:10:25]Read from MH i2c: E2 62 00 8F 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B8 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [16:10: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B8 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:10:25]wFMCommunicate OK [16:10:25]SAM_PROTO_GetFieldsCounters done [16:10:25]requested_item shift.num is exist - process it [16:10:25]requested_item shift.opened is exist - process it [16:10:25]req_shift_opened [16:10:25]FM_GetShiftState [16:10:25]SAM_PROTO_GetShiftState [16:10:25]wFMCommunicate request_size=4 [16:10:25]MH_SAM_APDU [16:10:25]CAPDU: 80 13 01 00 [16:10:25]Write to MH i2c: E2 08 00 90 13 80 13 01 00 00 00 00 00 20 [16:10:25]Write i2c OK [16:10:25]MH_I2C_Read... [16:10:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:25]Read from MH i2c: E2 [16:10:25]MH_I2C_Read... [16:10:25]Read from MH i2c: E2 0E 00 [16:10:25]MH_I2C_Read... [16:10:25]Read from MH i2c: E2 0E 00 90 13 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 CC [16:10:25]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [16:10:25]wFMCommunicate OK [16:10:25]SAM_PROTO_GetShiftState done [16:10:25]FM_GetShiftState done [16:10:25]req_shift_opened done [16:10:25]requested_item shift.open_date is exist - process it [16:10:25]req_shift_open_date [16:10:25]req_shift_open_date done [16:10:25]produce_requested_data done [16:10:25]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67512,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [16:10:25]process_action_free print_text [16:10:25]json_value_free [16:10:25]json_value_free done [16:10:25]process_json_proto returns [16:10:25]Send response to host [16:10:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67512,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [16:10:25]free response buf [16:10:25]execute_script done [16:10:25]execute_script returns [16:10:25]free content buf [16:10:25]Sock 8.Close socket [16:10:25]Sock 8.Thread stoped [16:10:29]OFD Sender: No OFD packet to send [16:10:34]OFD Sender: No OFD packet to send [16:10:39]OFD Sender: No OFD packet to send [16:10:44]OFD Sender: No OFD packet to send [16:10:49]OFD Sender: No OFD packet to send [16:10:54]OFD Sender: No OFD packet to send [16:10:59]OFD Sender: No OFD packet to send [16:11:04]OFD Sender: No OFD packet to send [16:11:09]OFD Sender: No OFD packet to send [16:11:14]OFD Sender: No OFD packet to send [16:11:19]OFD Sender: No OFD packet to send [16:11:24]OFD Sender: No OFD packet to send [16:11:29]OFD Sender: No OFD packet to send [16:11:34]OFD Sender: No OFD packet to send [16:11:39]OFD Sender: No OFD packet to send [16:11:44]OFD Sender: No OFD packet to send [16:11:49]OFD Sender: No OFD packet to send [16:11:54]OFD Sender: No OFD packet to send [16:11:59]OFD Sender: No OFD packet to send [16:12:04]OFD Sender: No OFD packet to send [16:12:09]OFD Sender: No OFD packet to send [16:12:14]OFD Sender: No OFD packet to send [16:12:19]OFD Sender: No OFD packet to send [16:12:24]OFD Sender: No OFD packet to send [16:12:29]OFD Sender: No OFD packet to send [16:12:34]OFD Sender: No OFD packet to send [16:12:39]OFD Sender: No OFD packet to send [16:12:44]OFD Sender: No OFD packet to send [16:12:49]OFD Sender: No OFD packet to send [16:12:54]OFD Sender: No OFD packet to send [16:12:59]OFD Sender: No OFD packet to send [16:13:04]OFD Sender: No OFD packet to send [16:13:06]accept exits with 9 [16:13:06]New connection [16:13:06]New thread 3067039076 created [16:13:06]Thread 3067182436 joined [16:13:06]Waiting for new connection... [16:13:06] Sock 9.Parse request [16:13:06]Sock 9.Check first char [16:13:06]Sock 9.First char is OK [16:13:06]request: POST /json_proto HTTP/1.0 [16:13:06]Method: POST [16:13:06]URL: /json_proto [16:13:06]Method is POST - this is cgi request [16:13:06]url: /json_proto [16:13:06]query_string will be loaded in cgi processing [16:13:06]execute_cgi json_proto POST (null) [16:13:06]execute_cgi path=json_proto method=POST [16:13:06]POST find Content-Length [16:13:06]Host: 172.17.41.195:8080 [16:13:06]Content-Length: 678 [16:13:06]Content-Type: application/json [16:13:06] [16:13:06]POST finish read [16:13:06]Found Content-Length = 678 [16:13:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507571", "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.80, "quantity" : 10.780, "sum" : 720.10, "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" ] } } [16:13:06]execute_script... [16:13: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)507571", "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.80, "quantity" : 10.780, "sum" : 720.10, "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" ] } } [16:13:06]POST & json_proto [16:13:06]process_json_proto [16:13:06]json parsed OK: [16:13:06]protocol is kg_v1.0 [16:13:06]action value=close_receipt [16:13:06]process_action close_receipt [16:13:06]cmd_close_receipt [16:13:06]MH_GetDate [16:13:06]Write to MH i2c: F0 00 00 91 13 93 [16:13:06]Write i2c OK [16:13:06]MH_I2C_Read... [16:13:06]Read from MH i2c: F0 [16:13:06]MH_I2C_Read... [16:13:06]Read from MH i2c: F0 09 00 [16:13:06]MH_I2C_Read... [16:13:06]Read from MH i2c: F0 09 00 91 13 00 94 30 46 66 FC 21 6F 64 FC [16:13:06]GetLastDocTimeStamp 1715875803 [16:13:06]current date 1715875988 [16:13:06]FM_GetShiftState [16:13:06]SAM_PROTO_GetShiftState [16:13:06]wFMCommunicate request_size=4 [16:13:06]MH_SAM_APDU [16:13:06]CAPDU: 80 13 01 00 [16:13:06]Write to MH i2c: E2 08 00 92 13 80 13 01 00 00 00 00 00 22 [16:13:06]Write i2c OK [16:13:06]MH_I2C_Read... [16:13:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:06]Read from MH i2c: E2 [16:13:06]MH_I2C_Read... [16:13:06]Read from MH i2c: E2 0E 00 [16:13:06]MH_I2C_Read... [16:13:06]Read from MH i2c: E2 0E 00 92 13 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 CE [16:13:06]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [16:13:06]wFMCommunicate OK [16:13:06]SAM_PROTO_GetShiftState done [16:13:06]FM_GetShiftState done [16:13:06]opened in 1715818916 [16:13:06]opened+sec_in_day 1715905316 [16:13:06]quantity*price = 72010 [16:13:06]sum+1 = 72011 [16:13:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 720.00 Внесено: 720.00 СДАЧА: 0.00 НСП 1% : 6.37 НДС 12% : 76.47 Наличными: 720.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 111 16.05.2024 16:13 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67513 ФПД: 59634589073465 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T161308&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67513&fm=59634589073465&tin=02508201610067®Number=0000000000091845&sum=72000 [16:13:07]StoreToDocumentArchive [16:13:07]shift 357 fd 67513 [16:13:07]save to /storage/0357/doc_00067513 [16:13:07]save last doc name /storage/0357/doc_00067513 to /storage/kkm_last_doc_name [16:13:07]save OK [16:13:07]Clear old archive folders... [16:13:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:13:07]tlvbuf is 017E8D00 [16:13:07]SAM_PROTO_ClearQueue [16:13:07]wFMCommunicate request_size=4 [16:13:07]MH_SAM_APDU [16:13:07]CAPDU: 80 09 00 00 [16:13:07]Write to MH i2c: E2 08 00 9F 13 80 09 00 00 00 00 00 00 24 [16:13:07]Write i2c OK [16:13:07]MH_I2C_Read... [16:13:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:13:07]Read from MH i2c: E2 [16:13:07]MH_I2C_Read... [16:13:07]Read from MH i2c: E2 03 00 [16:13:07]MH_I2C_Read... [16:13:07]Read from MH i2c: E2 03 00 9F 13 00 90 00 26 [16:13:07]RAPDU: 90 00 [16:13:07]wFMCommunicate OK [16:13:07]SAM_PROTO_ClearQueue done [16:13:07]KKMCreateOFDPacket [16:13:07]OFDProtocolAddRootSTLVToBuf [16:13:07]FM_MakeSignedData [16:13:07]FM_MakeSignedData [16:13:07]SAM_PROTO_SignData [16:13:07]wFMCommunicate request_size=4 [16:13:07]MH_SAM_APDU [16:13:07]CAPDU: 80 0D 01 02 [16:13:07]Write to MH i2c: E2 08 00 A0 13 80 0D 01 02 00 00 00 00 2C [16:13:07]Write i2c OK [16:13:07]MH_I2C_Read... [16:13:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:13:07]Read from MH i2c: E2 [16:13:07]MH_I2C_Read... [16:13:07]Read from MH i2c: E2 03 00 [16:13:07]MH_I2C_Read... [16:13:07]Read from MH i2c: E2 03 00 A0 13 00 90 00 27 [16:13:07]RAPDU: 90 00 [16:13:07]wFMCommunicate OK [16:13:07]wFMCommunicate request_size=255 [16:13:07]MH_SAM_APDU [16:13: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 1C 2A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4A 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 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 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 6F 00 00 00 F4 03 04 00 94 30 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B9 07 01 00 35 04 06 00 36 [16:13:07]Write to MH i2c: E2 02 01 A1 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 1C 2A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4A 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 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 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 6F 00 00 00 F4 03 04 00 94 30 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B9 07 01 00 35 04 06 00 36 00 00 82 [16:13:07]Write i2c OK [16:13:07]MH_I2C_Read... [16:13:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:08]Read from MH i2c: E2 [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: E2 03 00 [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: E2 03 00 A1 13 00 90 00 28 [16:13:08]RAPDU: 90 00 [16:13:08]wFMCommunicate OK [16:13:08]wFMCommunicate request_size=10 [16:13:08]MH_SAM_APDU [16:13:08]CAPDU: 80 0D 02 02 05 3C C2 7F 80 39 [16:13:08]Write to MH i2c: E2 0D 00 A2 13 80 0D 02 02 05 00 3C C2 7F 80 39 00 00 6F [16:13:08]Write i2c OK [16:13:08]MH_I2C_Read... [16:13:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:08]Read from MH i2c: E2 [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: E2 03 00 [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: E2 03 00 A2 13 00 90 00 29 [16:13:08]RAPDU: 90 00 [16:13:08]wFMCommunicate OK [16:13:08]wFMCommunicate request_size=4 [16:13:08]MH_SAM_APDU [16:13:08]CAPDU: 80 0D 03 02 [16:13:08]Write to MH i2c: E2 08 00 A3 13 80 0D 03 02 00 00 00 00 31 [16:13:08]Write i2c OK [16:13:08]MH_I2C_Read... [16:13:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:13:08]Read from MH i2c: E2 [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: E2 0B 00 [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: E2 0B 00 A3 13 00 44 15 94 D9 A8 FD 2C B9 90 00 82 [16:13:08]RAPDU: 44 15 94 D9 A8 FD 2C B9 90 00 [16:13:08]wFMCommunicate OK [16:13:08]SAM_PROTO_SignData done [16:13:08]FM_MakeSignedData done [16:13:08]CreateOFDProtocolMessage [16:13:08]wFMCommunicate request_size=4 [16:13:08]MH_SAM_APDU [16:13:08]CAPDU: 80 11 00 00 [16:13:08]Write to MH i2c: E2 08 00 A4 13 80 11 00 00 00 00 00 00 31 [16:13:08]Write i2c OK [16:13:08]MH_I2C_Read... [16:13:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:08]Read from MH i2c: E2 [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: E2 17 00 [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: E2 17 00 A4 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 87 [16:13:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:13:08]wFMCommunicate OK [16:13:08]CreateOFDProtocolMessage done [16:13:08]OFDSenderStorePacket 67513 [16:13:08]StoreOFDPacket docnum=67513 [16:13:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 E1 98 07 01 F8 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 1C 2A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4A 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 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 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 6F 00 00 00 F4 03 04 00 94 30 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B9 07 01 00 35 04 06 00 36 3C C2 7F 80 39 44 15 94 D9 A8 FD 2C B9 [16:13:08]CheckFolder [16:13:08]dirname=/storage/ofd_packets [16:13:08]CheckFolder done [16:13:08]ProducePacketName [16:13:08]name=ofd_packets/00067513 [16:13:08]NVStorageSaveData ofd_packets/00067513 [16:13:08]File name is /storage/ofd_packets/00067513 [16:13:08]Write 301 bytes [16:13:08]NVStorageSaveData done [16:13:08]OFDSenderStorePacket done [16:13:08]KKMCreateOFDPacket done [16:13:08]NVStorageSaveData kkm_last_timestamp [16:13:08]File name is /storage/kkm_last_timestamp [16:13:08]Write 4 bytes [16:13:08]NVStorageSaveData done [16:13:08]ExternCall_PrintAddStr [16:13:08]wPrintStart [16:13:08]Write to MH i2c: 01 00 00 A5 13 B8 [16:13:08]Write i2c OK [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: 01 [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: 01 07 00 [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: 01 07 00 A5 13 00 00 00 00 00 FF 0F CD [16:13:08]RasterBufferAndPrint [16:13:08]line Счет N : (1)507571 [16:13:08]line ИНН: 02508201610067 [16:13:08]line Контрольно-Кассовый Чек [16:13:08]line ПРОДАЖА [16:13:08]line ТРК (МРК, ГНК) : 43 [16:13:08]line Товар: 2710124130 [16:13:08]line Аи-92-К-5 [16:13:08]line 10.780 * 66.80 [16:13:08]line = 720.10 [16:13:08]line НДС 12% НСП 1% [16:13:08]line > о реализуемом товаре [16:13:08]line ОКРУГЛЕНИЕ: -0.10 [16:13:08]line ИТОГО: 720.00 [16:13:08]line Внесено: 720.00 [16:13:08]line СДАЧА: 0.00 [16:13:08]line НСП 1% : 6.37 [16:13:08]line НДС 12% : 76.47 [16:13:08]line Наличными: 720.00 [16:13:08]line Безнал.: 0.00 [16:13:08]line Место: АЗС № 91 "Партнер Нефть" [16:13:08]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [16:13:08]line СНО: Общий режим [16:13:08]line Чек 111 16.05.2024 16:13 [16:13:08]line Смена: 357 ФФД: 1.0 [16:13:08]line ЗНМ: 0300000119 [16:13:08]line РНМ: 0000000000091845 [16:13:08]line Версия ККМ: 001 [16:13:08]line ФМ: 0000000000871829 [16:13:08]line ФД: 67513 [16:13:08]line ФПД: 59634589073465 [16:13:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T161308&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67513&fm=59634589073465&tin=02508201610067®Number=0000000000091845&sum=72000 [16:13:08]OFD Sender: Processing packet 67513 [packets to send 35, broken 34] [16:13:08]ProducePacketName [16:13:08]name=ofd_packets/00067513 [16:13:08]OFD Sender: To server: pG, [16:13:08]CommunicateWithHost lk.salyk.kg:30040 [16:13:08]ConnectInit lk.salyk.kg [16:13:08]written 0, free lines is 4095 [16:13:08]Connected sock=10 [16:13: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 38 32 39 0F 01 00 00 E1 98 07 01 F8 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 1C 2A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4A 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 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 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 6F 00 00 00 F4 03 04 00 94 30 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B9 07 01 00 35 04 06 00 36 3C C2 7F 80 39 44 15 94 D9 A8 FD 2C B9 [16:13:09]Write to MH i2c: 01 00 00 CF 13 E2 [16:13:09]Write i2c OK [16:13:09]MH_I2C_Read... [16:13:09]Read from MH i2c: 01 [16:13:09]MH_I2C_Read... [16:13:09]Read from MH i2c: 01 07 00 [16:13:09]MH_I2C_Read... [16:13:09]Read from MH i2c: 01 07 00 CF 13 00 00 00 00 00 D0 0C C5 [16:13:09]RasterBufferAndPrint [16:13:09]line [16:13:09]line [16:13:09]line [16:13:09]line [16:13:09]line [16:13:09]written 0, free lines is 3286 [16:13:09]MH_Cut [16:13:09]Write to MH i2c: D1 01 00 D6 13 01 BB [16:13:09]Write i2c OK [16:13:09]MH_I2C_Read... [16:13:09]Read from MH i2c: D1 [16:13:09]MH_I2C_Read... [16:13:09]Read from MH i2c: D1 01 00 [16:13:09]MH_I2C_Read... [16:13:09]Read from MH i2c: D1 01 00 D6 13 00 BA [16:13:09]Write to MH i2c: 01 00 00 D7 13 EA [16:13:09]Write i2c OK [16:13:09]MH_I2C_Read... [16:13:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 74 2F 47 00 14 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 38 32 39 10 04 04 00 B9 07 01 00 F4 03 04 00 6E D8 45 66 B6 04 01 00 00 21 8A 6A A2 B4 E2 2B F8 [16:13:09]CommunicateWithHost err = 0 [16:13:09]CheckOFDResponse [16:13:09]1017 (14) - 77093643461234 [16:13:09]1041 (16) - 0000000000871829 [16:13:09]1040 (4) - 67513 [16:13:09]1012 (4) - 16.05.2024 09:57 [16:13:09]1206 (1) - 0 [16:13:09]OFD Sender: Remove packet 67513 [16:13:09]ProducePacketName [16:13:09]name=ofd_packets/00067513 [16:13:09]NVStorageDeleteData [16:13:09]OFD Sender: No OFD packet to send [16:13:09]*** Cut start [16:13:09]*** Purtial cut [16:13:09]*** Stage 1: CUTSNS_PIN = 1 [16:13:10]Read from MH i2c: 01 [16:13:10]MH_I2C_Read... [16:13:10]*** Stop cut motor [16:13:10]*** Cut end [16:13:10]Read from MH i2c: 01 07 00 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: 01 07 00 D7 13 00 00 00 00 00 FF 0F FF [16:13:10]process_action close_receipt done [16:13:10]requested_data is exist [16:13:10]produce_requested_data [16:13:10]requested_item fm.sn is exist - process it [16:13:10]wFMCommunicate request_size=4 [16:13:10]MH_SAM_APDU [16:13:10]CAPDU: 80 11 00 00 [16:13:10]Write to MH i2c: E2 08 00 D8 13 80 11 00 00 00 00 00 00 65 [16:13:10]Write i2c OK [16:13:10]MH_I2C_Read... [16:13:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:10]Read from MH i2c: E2 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: E2 17 00 [16:13:10]MH_I2C_Read... [16:13:10]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 38 32 39 90 00 BB [16:13:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:13:10]wFMCommunicate OK [16:13:10]requested_item fd.num is exist - process it [16:13:10]SAM_PROTO_GetFieldsCounters [16:13:10]wFMCommunicate request_size=4 [16:13:10]MH_SAM_APDU [16:13:10]CAPDU: 80 13 00 00 [16:13:10]Write to MH i2c: E2 08 00 D9 13 80 13 00 00 00 00 00 00 68 [16:13:10]Write i2c OK [16:13:10]MH_I2C_Read... [16:13:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:13:10]Read from MH i2c: E2 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: E2 62 00 [16:13:10]MH_I2C_Read... [16:13:10]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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B9 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [16:13: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B9 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:13:10]wFMCommunicate OK [16:13:10]SAM_PROTO_GetFieldsCounters done [16:13:10]requested_item shift.num is exist - process it [16:13:10]requested_item shift.opened is exist - process it [16:13:10]req_shift_opened [16:13:10]FM_GetShiftState [16:13:10]SAM_PROTO_GetShiftState [16:13:10]wFMCommunicate request_size=4 [16:13:10]MH_SAM_APDU [16:13:10]CAPDU: 80 13 01 00 [16:13:10]Write to MH i2c: E2 08 00 DA 13 80 13 01 00 00 00 00 00 6A [16:13:10]Write i2c OK [16:13:10]MH_I2C_Read... [16:13:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:10]Read from MH i2c: E2 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: E2 0E 00 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: E2 0E 00 DA 13 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 16 [16:13:10]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [16:13:10]wFMCommunicate OK [16:13:10]SAM_PROTO_GetShiftState done [16:13:10]FM_GetShiftState done [16:13:10]req_shift_opened done [16:13:10]requested_item shift.open_date is exist - process it [16:13:10]req_shift_open_date [16:13:10]req_shift_open_date done [16:13:10]produce_requested_data done [16:13:10]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67513,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [16:13:10]process_action_free close_receipt [16:13:10]json_value_free [16:13:10]json_value_free done [16:13:10]process_json_proto returns [16:13:10]Send response to host [16:13:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67513,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [16:13:10]free response buf [16:13:10]execute_script done [16:13:10]execute_script returns [16:13:10]free content buf [16:13:10]Sock 9.Close socket [16:13:10]Sock 9.Thread stoped [16:13:14]OFD Sender: No OFD packet to send [16:13:19]OFD Sender: No OFD packet to send [16:13:24]OFD Sender: No OFD packet to send [16:13:29]OFD Sender: No OFD packet to send [16:13:34]OFD Sender: No OFD packet to send [16:13:39]OFD Sender: No OFD packet to send [16:13:44]OFD Sender: No OFD packet to send [16:13:49]OFD Sender: No OFD packet to send [16:13:54]OFD Sender: No OFD packet to send [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:50]accept exits with 8 [16:14:50]New connection [16:14:50]New thread 3067182436 created [16:14:50]Thread 3067039076 joined [16:14:50]Waiting for new connection... [16:14:50] Sock 8.Parse request [16:14:50]Sock 8.Check first char [16:14:50]Sock 8.First char is OK [16:14:50]request: POST /json_proto HTTP/1.0 [16:14:50]Method: POST [16:14:50]URL: /json_proto [16:14:50]Method is POST - this is cgi request [16:14:50]url: /json_proto [16:14:50]query_string will be loaded in cgi processing [16:14:50]execute_cgi json_proto POST (null) [16:14:50]execute_cgi path=json_proto method=POST [16:14:50]POST find Content-Length [16:14:50]Host: 172.17.41.195:8080 [16:14:50]Content-Length: 800 [16:14:50]Content-Type: application/json [16:14:50] [16:14:50]POST finish read [16:14:50]Found Content-Length = 800 [16:14:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507572", "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" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:50]execute_script... [16:14:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507572", "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" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:50]POST & json_proto [16:14:50]process_json_proto [16:14:50]json parsed OK: [16:14:50]protocol is kg_v1.0 [16:14:50]action value=close_receipt [16:14:50]process_action close_receipt [16:14:50]cmd_close_receipt [16:14:50]MH_GetDate [16:14:50]Write to MH i2c: F0 00 00 DB 13 DD [16:14:50]Write i2c OK [16:14:50]MH_I2C_Read... [16:14:50]Read from MH i2c: F0 [16:14:50]MH_I2C_Read... [16:14:50]Read from MH i2c: F0 09 00 [16:14:50]MH_I2C_Read... [16:14:50]Read from MH i2c: F0 09 00 DB 13 00 FC 30 46 66 FC 21 6F 64 AE [16:14:50]GetLastDocTimeStamp 1715875988 [16:14:50]current date 1715876092 [16:14:50]FM_GetShiftState [16:14:50]SAM_PROTO_GetShiftState [16:14:50]wFMCommunicate request_size=4 [16:14:50]MH_SAM_APDU [16:14:50]CAPDU: 80 13 01 00 [16:14:50]Write to MH i2c: E2 08 00 DC 13 80 13 01 00 00 00 00 00 6C [16:14:50]Write i2c OK [16:14:50]MH_I2C_Read... [16:14:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:50]Read from MH i2c: E2 [16:14:50]MH_I2C_Read... [16:14:50]Read from MH i2c: E2 0E 00 [16:14:50]MH_I2C_Read... [16:14:50]Read from MH i2c: E2 0E 00 DC 13 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 18 [16:14:50]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [16:14:50]wFMCommunicate OK [16:14:50]SAM_PROTO_GetShiftState done [16:14:50]FM_GetShiftState done [16:14:50]opened in 1715818916 [16:14:50]opened+sec_in_day 1715905316 [16:14:50]quantity*price = 100023 [16:14:50]sum+1 = 100024 [16:14:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.23 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.23 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 112 16.05.2024 16:14 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67514 ФПД: 168974007528448 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T161452&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67514&fm=168974007528448&tin=02508201610067®Number=0000000000091845&sum=100023 [16:14:51]StoreToDocumentArchive [16:14:51]shift 357 fd 67514 [16:14:51]save to /storage/0357/doc_00067514 [16:14:51]save last doc name /storage/0357/doc_00067514 to /storage/kkm_last_doc_name [16:14:51]save OK [16:14:51]Clear old archive folders... [16:14:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:14:51]tlvbuf is 0177E120 [16:14:51]SAM_PROTO_ClearQueue [16:14:51]wFMCommunicate request_size=4 [16:14:51]MH_SAM_APDU [16:14:51]CAPDU: 80 09 00 00 [16:14:51]Write to MH i2c: E2 08 00 E9 13 80 09 00 00 00 00 00 00 6E [16:14:51]Write i2c OK [16:14:51]MH_I2C_Read... [16:14:52]Read from MH i2c: E2 [16:14:52]MH_I2C_Read... [16:14:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:14:52]Read from MH i2c: E2 03 00 [16:14:52]MH_I2C_Read... [16:14:52]Read from MH i2c: E2 03 00 E9 13 00 90 00 70 [16:14:52]RAPDU: 90 00 [16:14:52]wFMCommunicate OK [16:14:52]SAM_PROTO_ClearQueue done [16:14:52]KKMCreateOFDPacket [16:14:52]OFDProtocolAddRootSTLVToBuf [16:14:52]FM_MakeSignedData [16:14:52]FM_MakeSignedData [16:14:52]SAM_PROTO_SignData [16:14:52]wFMCommunicate request_size=4 [16:14:52]MH_SAM_APDU [16:14:52]CAPDU: 80 0D 01 02 [16:14:52]Write to MH i2c: E2 08 00 EA 13 80 0D 01 02 00 00 00 00 76 [16:14:52]Write i2c OK [16:14:52]MH_I2C_Read... [16:14:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:14:52]Read from MH i2c: E2 [16:14:52]MH_I2C_Read... [16:14:52]Read from MH i2c: E2 03 00 [16:14:52]MH_I2C_Read... [16:14:52]Read from MH i2c: E2 03 00 EA 13 00 90 00 71 [16:14:52]RAPDU: 90 00 [16:14:52]wFMCommunicate OK [16:14:52]wFMCommunicate request_size=255 [16:14:52]MH_SAM_APDU [16:14: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 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 FC 30 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BA 07 01 00 35 04 06 00 99 AE 53 B1 [16:14:52]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 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 FC 30 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BA 07 01 00 35 04 06 00 99 AE 53 B1 00 00 39 [16:14:52]Write i2c OK [16:14:52]MH_I2C_Read... [16:14:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:52]Read from MH i2c: E2 [16:14:52]MH_I2C_Read... [16:14:52]Read from MH i2c: E2 03 00 [16:14:52]MH_I2C_Read... [16:14:52]Read from MH i2c: E2 03 00 EB 13 00 90 00 72 [16:14:52]RAPDU: 90 00 [16:14:52]wFMCommunicate OK [16:14:52]wFMCommunicate request_size=7 [16:14:52]MH_SAM_APDU [16:14:52]CAPDU: 80 0D 02 02 02 EC 00 [16:14:52]Write to MH i2c: E2 0A 00 EC 13 80 0D 02 02 02 00 EC 00 00 00 69 [16:14:52]Write i2c OK [16:14:52]MH_I2C_Read... [16:14:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:52]Read from MH i2c: E2 [16:14:52]MH_I2C_Read... [16:14:52]Read from MH i2c: E2 03 00 [16:14:52]MH_I2C_Read... [16:14:52]Read from MH i2c: E2 03 00 EC 13 00 90 00 73 [16:14:52]RAPDU: 90 00 [16:14:52]wFMCommunicate OK [16:14:52]wFMCommunicate request_size=4 [16:14:52]MH_SAM_APDU [16:14:52]CAPDU: 80 0D 03 02 [16:14:52]Write to MH i2c: E2 08 00 ED 13 80 0D 03 02 00 00 00 00 7B [16:14:52]Write i2c OK [16:14:52]MH_I2C_Read... [16:14:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:14:52]Read from MH i2c: E2 [16:14:52]MH_I2C_Read... [16:14:52]Read from MH i2c: E2 0B 00 [16:14:52]MH_I2C_Read... [16:14:52]Read from MH i2c: E2 0B 00 ED 13 00 7B AC 0B 63 2A 88 CD CC 90 00 5C [16:14:52]RAPDU: 7B AC 0B 63 2A 88 CD CC 90 00 [16:14:52]wFMCommunicate OK [16:14:52]SAM_PROTO_SignData done [16:14:52]FM_MakeSignedData done [16:14:52]CreateOFDProtocolMessage [16:14:52]wFMCommunicate request_size=4 [16:14:52]MH_SAM_APDU [16:14:52]CAPDU: 80 11 00 00 [16:14:52]Write to MH i2c: E2 08 00 EE 13 80 11 00 00 00 00 00 00 7B [16:14:52]Write i2c OK [16:14:52]MH_I2C_Read... [16:14:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:52]Read from MH i2c: E2 [16:14:52]MH_I2C_Read... [16:14:52]Read from MH i2c: E2 17 00 [16:14:52]MH_I2C_Read... [16:14:52]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 38 32 39 90 00 D1 [16:14:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:14:52]wFMCommunicate OK [16:14:52]CreateOFDProtocolMessage done [16:14:52]OFDSenderStorePacket 67514 [16:14:52]StoreOFDPacket docnum=67514 [16:14:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 50 E3 04 01 AD 92 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 FC 30 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BA 07 01 00 35 04 06 00 99 AE 53 B1 EC 00 7B AC 0B 63 2A 88 CD CC [16:14:52]CheckFolder [16:14:52]dirname=/storage/ofd_packets [16:14:52]CheckFolder done [16:14:52]ProducePacketName [16:14:52]name=ofd_packets/00067514 [16:14:52]NVStorageSaveData ofd_packets/00067514 [16:14:52]File name is /storage/ofd_packets/00067514 [16:14:52]Write 298 bytes [16:14:52]NVStorageSaveData done [16:14:52]OFDSenderStorePacket done [16:14:52]KKMCreateOFDPacket done [16:14:52]NVStorageSaveData kkm_last_timestamp [16:14:52]File name is /storage/kkm_last_timestamp [16:14:52]Write 4 bytes [16:14:52]NVStorageSaveData done [16:14:52]ExternCall_PrintAddStr [16:14:52]wPrintStart [16:14:52]Write to MH i2c: 01 00 00 EF 13 02 [16:14:52]Write i2c OK [16:14:52]MH_I2C_Read... [16:14:52]Read from MH i2c: 01 [16:14:52]MH_I2C_Read... [16:14:52]Read from MH i2c: 01 07 00 [16:14:52]MH_I2C_Read... [16:14:52]Read from MH i2c: 01 07 00 EF 13 00 00 00 00 00 FF 0F 17 [16:14:52]RasterBufferAndPrint [16:14:52]line Счет N : (1)507572 [16:14:52]line ИНН: 02508201610067 [16:14:52]line Контрольно-Кассовый Чек [16:14:52]line ПРОДАЖА [16:14:52]line ТРК (МРК, ГНК) : 31 [16:14:52]line Товар: 2710194210 [16:14:52]line ДТ-К-5 [16:14:52]line 13.390 * 74.70 [16:14:52]line = 1000.23 [16:14:52]line НДС 12% НСП 1% [16:14:52]line > о реализуемом товаре [16:14:52]line ИТОГО: 1000.23 [16:14:52]line НСП 1% : 8.85 [16:14:52]line НДС 12% : 106.22 [16:14:52]line Наличными: 0.00 [16:14:52]line Безнал.: 1000.23 [16:14:52]line Место: АЗС № 91 "Партнер Нефть" [16:14:52]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [16:14:52]line СНО: Общий режим [16:14:52]line Чек 112 16.05.2024 16:14 [16:14:52]line Смена: 357 ФФД: 1.0 [16:14:52]line ЗНМ: 0300000119 [16:14:52]line РНМ: 0000000000091845 [16:14:52]line Версия ККМ: 001 [16:14:52]line Платежная система: O! деньги [16:14:52]line ФМ: 0000000000871829 [16:14:52]line ФД: 67514 [16:14:52]line ФПД: 168974007528448 [16:14:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T161452&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67514&fm=168974007528448&tin=02508201610067®Number=0000000000091845&sum=100023 [16:14:52]OFD Sender: Processing packet 67514 [packets to send 35, broken 34] [16:14:52]ProducePacketName [16:14:52]name=ofd_packets/00067514 [16:14:52]OFD Sender: To server: pG, [16:14:52]CommunicateWithHost lk.salyk.kg:30040 [16:14:52]ConnectInit lk.salyk.kg [16:14:52]written 0, free lines is 4095 [16:14:52]Connected sock=10 [16:14:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 50 E3 04 01 AD 92 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 FC 30 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BA 07 01 00 35 04 06 00 99 AE 53 B1 EC 00 7B AC 0B 63 2A 88 CD CC [16:14:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 EF F0 47 00 6E 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 38 32 39 10 04 04 00 BA 07 01 00 F4 03 04 00 D6 D8 45 66 B6 04 01 00 00 7A 25 E7 9C 4B 3A 26 6E [16:14:53]CommunicateWithHost err = 0 [16:14:53]CheckOFDResponse [16:14:53]1017 (14) - 77093643461234 [16:14:53]1041 (16) - 0000000000871829 [16:14:53]1040 (4) - 67514 [16:14:53]1012 (4) - 16.05.2024 09:58 [16:14:53]1206 (1) - 0 [16:14:53]OFD Sender: Remove packet 67514 [16:14:53]ProducePacketName [16:14:53]name=ofd_packets/00067514 [16:14:53]NVStorageDeleteData [16:14:53]Write to MH i2c: 01 00 00 18 14 2C [16:14:53]Write i2c OK [16:14:53]MH_I2C_Read... [16:14:53]Read from MH i2c: 01 [16:14:53]MH_I2C_Read... [16:14:53]Read from MH i2c: 01 07 00 [16:14:53]MH_I2C_Read... [16:14:53]Read from MH i2c: 01 07 00 18 14 00 00 00 00 00 DE 0C 1D [16:14:53]RasterBufferAndPrint [16:14:53]line [16:14:53]line [16:14:53]line [16:14:53]line [16:14:53]line [16:14:53]written 0, free lines is 3300 [16:14:53]MH_Cut [16:14:53]Write to MH i2c: D1 01 00 1F 14 01 05 [16:14:53]Write i2c OK [16:14:53]MH_I2C_Read... [16:14:53]Read from MH i2c: D1 [16:14:53]MH_I2C_Read... [16:14:53]Read from MH i2c: D1 01 00 [16:14:53]MH_I2C_Read... [16:14:53]Read from MH i2c: D1 01 00 1F 14 00 04 [16:14:53]Write to MH i2c: 01 00 00 20 14 34 [16:14:53]Write i2c OK [16:14:53]MH_I2C_Read... [16:14:53]OFD Sender: No OFD packet to send [16:14:54]*** Cut start [16:14:54]*** Purtial cut [16:14:54]*** CUTSNS_PIN = 0 [16:14:54]*** Stage 1: CUTSNS_PIN = 1 [16:14:56]Read from MH i2c: 01 [16:14:56]MH_I2C_Read... [16:14:56]*** Stop cut motor [16:14:56]*** Cut end [16:14:56]Read from MH i2c: 01 07 00 [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: 01 07 00 20 14 00 00 00 00 00 FF 0F 49 [16:14:56]process_action close_receipt done [16:14:56]requested_data is exist [16:14:56]produce_requested_data [16:14:56]requested_item fm.sn is exist - process it [16:14:56]wFMCommunicate request_size=4 [16:14:56]MH_SAM_APDU [16:14:56]CAPDU: 80 11 00 00 [16:14:56]Write to MH i2c: E2 08 00 21 14 80 11 00 00 00 00 00 00 AF [16:14:56]Write i2c OK [16:14:56]MH_I2C_Read... [16:14:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:56]Read from MH i2c: E2 [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: E2 17 00 [16:14:56]MH_I2C_Read... [16:14:56]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 38 32 39 90 00 05 [16:14:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:14:56]wFMCommunicate OK [16:14:56]requested_item fd.num is exist - process it [16:14:56]SAM_PROTO_GetFieldsCounters [16:14:56]wFMCommunicate request_size=4 [16:14:56]MH_SAM_APDU [16:14:56]CAPDU: 80 13 00 00 [16:14:56]Write to MH i2c: E2 08 00 22 14 80 13 00 00 00 00 00 00 B2 [16:14:56]Write i2c OK [16:14:56]MH_I2C_Read... [16:14:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:14:56]Read from MH i2c: E2 [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: E2 62 00 [16:14:56]MH_I2C_Read... [16:14:56]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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 BA 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [16:14: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 BA 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:14:56]wFMCommunicate OK [16:14:56]SAM_PROTO_GetFieldsCounters done [16:14:56]requested_item shift.num is exist - process it [16:14:56]requested_item shift.opened is exist - process it [16:14:56]req_shift_opened [16:14:56]FM_GetShiftState [16:14:56]SAM_PROTO_GetShiftState [16:14:56]wFMCommunicate request_size=4 [16:14:56]MH_SAM_APDU [16:14:56]CAPDU: 80 13 01 00 [16:14:56]Write to MH i2c: E2 08 00 23 14 80 13 01 00 00 00 00 00 B4 [16:14:56]Write i2c OK [16:14:56]MH_I2C_Read... [16:14:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:56]Read from MH i2c: E2 [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: E2 0E 00 [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: E2 0E 00 23 14 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 60 [16:14:56]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [16:14:56]wFMCommunicate OK [16:14:56]SAM_PROTO_GetShiftState done [16:14:56]FM_GetShiftState done [16:14:56]req_shift_opened done [16:14:56]requested_item shift.open_date is exist - process it [16:14:56]req_shift_open_date [16:14:56]req_shift_open_date done [16:14:56]produce_requested_data done [16:14:56]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67514,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [16:14:56]process_action_free close_receipt [16:14:56]json_value_free [16:14:56]json_value_free done [16:14:56]process_json_proto returns [16:14:56]Send response to host [16:14:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67514,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [16:14:56]free response buf [16:14:56]execute_script done [16:14:56]execute_script returns [16:14:56]free content buf [16:14:56]Sock 8.Close socket [16:14:56]Sock 8.Thread stoped [16:14:58]OFD Sender: No OFD packet to send [16:15:03]OFD Sender: No OFD packet to send [16:15:08]OFD Sender: No OFD packet to send [16:15:13]OFD Sender: No OFD packet to send [16:15:18]OFD Sender: No OFD packet to send [16:15:23]OFD Sender: No OFD packet to send [16:15:28]OFD Sender: No OFD packet to send [16:15:33]OFD Sender: No OFD packet to send [16:15:38]OFD Sender: No OFD packet to send [16:15:43]OFD Sender: No OFD packet to send [16:15:48]OFD Sender: No OFD packet to send [16:15:53]OFD Sender: No OFD packet to send [16:15:58]OFD Sender: No OFD packet to send [16:16:03]OFD Sender: No OFD packet to send [16:16:08]OFD Sender: No OFD packet to send [16:16:13]OFD Sender: No OFD packet to send [16:16:18]OFD Sender: No OFD packet to send [16:16:18]accept exits with 9 [16:16:18]New connection [16:16:18]New thread 3067039076 created [16:16:18]Thread 3067182436 joined [16:16:18]Waiting for new connection... [16:16:18] Sock 9.Parse request [16:16:18]Sock 9.Check first char [16:16:18]Sock 9.First char is OK [16:16:18]request: POST /json_proto HTTP/1.0 [16:16:18]Method: POST [16:16:18]URL: /json_proto [16:16:18]Method is POST - this is cgi request [16:16:18]url: /json_proto [16:16:18]query_string will be loaded in cgi processing [16:16:18]execute_cgi json_proto POST (null) [16:16:18]execute_cgi path=json_proto method=POST [16:16:18]POST find Content-Length [16:16:18]Host: 172.17.41.195:8080 [16:16:18]Content-Length: 670 [16:16:18]Content-Type: application/json [16:16:18] [16:16:18]POST finish read [16:16:18]Found Content-Length = 670 [16:16:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507573", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:16:18]execute_script... [16: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)507573", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:16:18]POST & json_proto [16:16:18]process_json_proto [16:16:18]json parsed OK: [16:16:18]protocol is kg_v1.0 [16:16:18]action value=close_receipt [16:16:18]process_action close_receipt [16:16:18]cmd_close_receipt [16:16:18]MH_GetDate [16:16:18]Write to MH i2c: F0 00 00 24 14 27 [16:16:18]Write i2c OK [16:16:18]MH_I2C_Read... [16:16:18]Read from MH i2c: F0 [16:16:18]MH_I2C_Read... [16:16:18]Read from MH i2c: F0 09 00 [16:16:18]MH_I2C_Read... [16:16:18]Read from MH i2c: F0 09 00 24 14 00 54 31 46 66 FC 21 6F 64 51 [16:16:18]GetLastDocTimeStamp 1715876092 [16:16:18]current date 1715876180 [16:16:18]FM_GetShiftState [16:16:18]SAM_PROTO_GetShiftState [16:16:18]wFMCommunicate request_size=4 [16:16:18]MH_SAM_APDU [16:16:18]CAPDU: 80 13 01 00 [16:16:18]Write to MH i2c: E2 08 00 25 14 80 13 01 00 00 00 00 00 B6 [16:16:18]Write i2c OK [16:16:18]MH_I2C_Read... [16:16:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:18]Read from MH i2c: E2 [16:16:18]MH_I2C_Read... [16:16:18]Read from MH i2c: E2 0E 00 [16:16:18]MH_I2C_Read... [16:16:18]Read from MH i2c: E2 0E 00 25 14 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 62 [16:16:18]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [16:16:18]wFMCommunicate OK [16:16:18]SAM_PROTO_GetShiftState done [16:16:18]FM_GetShiftState done [16:16:18]opened in 1715818916 [16:16:18]opened+sec_in_day 1715905316 [16:16:18]quantity*price = 50036 [16:16:18]sum+1 = 50037 [16:16:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 113 16.05.2024 16:16 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67515 ФПД: 252645346899885 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T161620&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67515&fm=252645346899885&tin=02508201610067®Number=0000000000091845&sum=50000 [16:16:19]StoreToDocumentArchive [16:16:19]shift 357 fd 67515 [16:16:19]save to /storage/0357/doc_00067515 [16:16:19]save last doc name /storage/0357/doc_00067515 to /storage/kkm_last_doc_name [16:16:19]save OK [16:16:19]Clear old archive folders... [16:16:19]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:16:19]tlvbuf is 017D9DD0 [16:16:19]SAM_PROTO_ClearQueue [16:16:19]wFMCommunicate request_size=4 [16:16:19]MH_SAM_APDU [16:16:19]CAPDU: 80 09 00 00 [16:16:19]Write to MH i2c: E2 08 00 32 14 80 09 00 00 00 00 00 00 B8 [16:16:19]Write i2c OK [16:16:19]MH_I2C_Read... [16:16:20]Read from MH i2c: E2 [16:16:20]MH_I2C_Read... [16:16:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:16:20]Read from MH i2c: E2 03 00 [16:16:20]MH_I2C_Read... [16:16:20]Read from MH i2c: E2 03 00 32 14 00 90 00 BA [16:16:20]RAPDU: 90 00 [16:16:20]wFMCommunicate OK [16:16:20]SAM_PROTO_ClearQueue done [16:16:20]KKMCreateOFDPacket [16:16:20]OFDProtocolAddRootSTLVToBuf [16:16:20]FM_MakeSignedData [16:16:20]FM_MakeSignedData [16:16:20]SAM_PROTO_SignData [16:16:20]wFMCommunicate request_size=4 [16:16:20]MH_SAM_APDU [16:16:20]CAPDU: 80 0D 01 02 [16:16:20]Write to MH i2c: E2 08 00 33 14 80 0D 01 02 00 00 00 00 C0 [16:16:20]Write i2c OK [16:16:20]MH_I2C_Read... [16:16:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:16:20]Read from MH i2c: E2 [16:16:20]MH_I2C_Read... [16:16:20]Read from MH i2c: E2 03 00 [16:16:20]MH_I2C_Read... [16:16:20]Read from MH i2c: E2 03 00 33 14 00 90 00 BB [16:16:20]RAPDU: 90 00 [16:16:20]wFMCommunicate OK [16:16:20]wFMCommunicate request_size=255 [16:16:20]MH_SAM_APDU [16:16:20]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 71 00 00 00 F4 03 04 00 54 31 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BB 07 01 00 35 04 06 00 [16:16:20]Write to MH i2c: E2 02 01 34 14 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 71 00 00 00 F4 03 04 00 54 31 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BB 07 01 00 35 04 06 00 00 00 39 [16:16:20]Write i2c OK [16:16:20]MH_I2C_Read... [16:16:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:20]Read from MH i2c: E2 [16:16:20]MH_I2C_Read... [16:16:20]Read from MH i2c: E2 03 00 [16:16:20]MH_I2C_Read... [16:16:20]Read from MH i2c: E2 03 00 34 14 00 90 00 BC [16:16:20]RAPDU: 90 00 [16:16:20]wFMCommunicate OK [16:16:20]wFMCommunicate request_size=11 [16:16:20]MH_SAM_APDU [16:16:20]CAPDU: 80 0D 02 02 06 E5 C7 94 27 F7 AD [16:16:20]Write to MH i2c: E2 0E 00 35 14 80 0D 02 02 06 00 E5 C7 94 27 F7 AD 00 00 DA [16:16:20]Write i2c OK [16:16:20]MH_I2C_Read... [16:16:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:20]Read from MH i2c: E2 [16:16:20]MH_I2C_Read... [16:16:20]Read from MH i2c: E2 03 00 [16:16:20]MH_I2C_Read... [16:16:20]Read from MH i2c: E2 03 00 35 14 00 90 00 BD [16:16:20]RAPDU: 90 00 [16:16:20]wFMCommunicate OK [16:16:20]wFMCommunicate request_size=4 [16:16:20]MH_SAM_APDU [16:16:20]CAPDU: 80 0D 03 02 [16:16:20]Write to MH i2c: E2 08 00 36 14 80 0D 03 02 00 00 00 00 C5 [16:16:20]Write i2c OK [16:16:20]MH_I2C_Read... [16:16:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:16:20]Read from MH i2c: E2 [16:16:20]MH_I2C_Read... [16:16:20]Read from MH i2c: E2 0B 00 [16:16:20]MH_I2C_Read... [16:16:20]Read from MH i2c: E2 0B 00 36 14 00 60 C8 DD 85 FE A1 16 C5 90 00 CA [16:16:20]RAPDU: 60 C8 DD 85 FE A1 16 C5 90 00 [16:16:20]wFMCommunicate OK [16:16:20]SAM_PROTO_SignData done [16:16:20]FM_MakeSignedData done [16:16:20]CreateOFDProtocolMessage [16:16:20]wFMCommunicate request_size=4 [16:16:20]MH_SAM_APDU [16:16:20]CAPDU: 80 11 00 00 [16:16:20]Write to MH i2c: E2 08 00 37 14 80 11 00 00 00 00 00 00 C5 [16:16:20]Write i2c OK [16:16:20]MH_I2C_Read... [16:16:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:20]Read from MH i2c: E2 [16:16:20]MH_I2C_Read... [16:16:20]Read from MH i2c: E2 17 00 [16:16:20]MH_I2C_Read... [16:16:20]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 38 32 39 90 00 1B [16:16:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:16:20]wFMCommunicate OK [16:16:20]CreateOFDProtocolMessage done [16:16:20]OFDSenderStorePacket 67515 [16:16:20]StoreOFDPacket docnum=67515 [16:16:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 9E 9B 08 01 15 3F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 71 00 00 00 F4 03 04 00 54 31 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BB 07 01 00 35 04 06 00 E5 C7 94 27 F7 AD 60 C8 DD 85 FE A1 16 C5 [16:16:20]CheckFolder [16:16:20]dirname=/storage/ofd_packets [16:16:20]CheckFolder done [16:16:20]ProducePacketName [16:16:20]name=ofd_packets/00067515 [16:16:20]NVStorageSaveData ofd_packets/00067515 [16:16:20]File name is /storage/ofd_packets/00067515 [16:16:20]Write 302 bytes [16:16:20]NVStorageSaveData done [16:16:20]OFDSenderStorePacket done [16:16:20]KKMCreateOFDPacket done [16:16:20]NVStorageSaveData kkm_last_timestamp [16:16:20]File name is /storage/kkm_last_timestamp [16:16:20]Write 4 bytes [16:16:20]NVStorageSaveData done [16:16:20]ExternCall_PrintAddStr [16:16:20]wPrintStart [16:16:20]Write to MH i2c: 01 00 00 38 14 4C [16:16:20]Write i2c OK [16:16:20]MH_I2C_Read... [16:16:20]Read from MH i2c: 01 [16:16:20]MH_I2C_Read... [16:16:20]Read from MH i2c: 01 07 00 [16:16:20]MH_I2C_Read... [16:16:20]Read from MH i2c: 01 07 00 38 14 00 00 00 00 00 FF 0F 61 [16:16:20]RasterBufferAndPrint [16:16:20]line Счет N : (1)507573 [16:16:20]line ИНН: 02508201610067 [16:16:20]line Контрольно-Кассовый Чек [16:16:20]line ПРОДАЖА [16:16:20]line ТРК (МРК, ГНК) : 42 [16:16:20]line Товар: 2710124130 [16:16:20]line Super-92-К-5 [16:16:20]line 7.380 * 67.80 [16:16:20]line = 500.36 [16:16:20]line НДС 12% НСП 1% [16:16:20]line > о реализуемом товаре [16:16:20]line ОКРУГЛЕНИЕ: -0.36 [16:16:20]line ИТОГО: 500.00 [16:16:20]line Внесено: 500.00 [16:16:20]line СДАЧА: 0.00 [16:16:20]line НСП 1% : 4.43 [16:16:20]line НДС 12% : 53.14 [16:16:20]line Наличными: 500.00 [16:16:20]line Безнал.: 0.00 [16:16:20]line Место: АЗС № 91 "Партнер Нефть" [16:16:20]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [16:16:20]line СНО: Общий режим [16:16:20]line Чек 113 16.05.2024 16:16 [16:16:20]line Смена: 357 ФФД: 1.0 [16:16:20]line ЗНМ: 0300000119 [16:16:20]line РНМ: 0000000000091845 [16:16:20]line Версия ККМ: 001 [16:16:20]line ФМ: 0000000000871829 [16:16:20]line ФД: 67515 [16:16:20]line ФПД: 252645346899885 [16:16:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T161620&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67515&fm=252645346899885&tin=02508201610067®Number=0000000000091845&sum=50000 [16:16:20]OFD Sender: Processing packet 67515 [packets to send 35, broken 34] [16:16:20]ProducePacketName [16:16:20]name=ofd_packets/00067515 [16:16:20]OFD Sender: To server: pG, [16:16:20]CommunicateWithHost lk.salyk.kg:30040 [16:16:20]ConnectInit lk.salyk.kg [16:16:20]written 0, free lines is 4095 [16:16:20]Connected sock=10 [16:16: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 38 32 39 10 01 00 00 9E 9B 08 01 15 3F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 71 00 00 00 F4 03 04 00 54 31 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BB 07 01 00 35 04 06 00 E5 C7 94 27 F7 AD 60 C8 DD 85 FE A1 16 C5 [16: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 38 32 39 4F 00 00 00 08 2E 47 00 9C 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 38 32 39 10 04 04 00 BB 07 01 00 F4 03 04 00 2E D9 45 66 B6 04 01 00 00 FF 38 9D AC 14 19 09 BB [16:16:21]CommunicateWithHost err = 0 [16:16:21]CheckOFDResponse [16:16:21]1017 (14) - 77093643461234 [16:16:21]1041 (16) - 0000000000871829 [16:16:21]1040 (4) - 67515 [16:16:21]1012 (4) - 16.05.2024 10:00 [16:16:21]1206 (1) - 0 [16:16:21]OFD Sender: Remove packet 67515 [16:16:21]ProducePacketName [16:16:21]name=ofd_packets/00067515 [16:16:21]NVStorageDeleteData [16:16:21]Write to MH i2c: 01 00 00 62 14 76 [16:16:21]Write i2c OK [16:16:21]MH_I2C_Read... [16:16:21]Read from MH i2c: 01 [16:16:21]MH_I2C_Read... [16:16:21]Read from MH i2c: 01 07 00 [16:16:21]MH_I2C_Read... [16:16:21]Read from MH i2c: 01 07 00 62 14 00 00 00 00 00 CB 0C 54 [16:16:21]RasterBufferAndPrint [16:16:21]line [16:16:21]line [16:16:21]line [16:16:21]line [16:16:21]line [16:16:21]written 0, free lines is 3281 [16:16:21]MH_Cut [16:16:21]Write to MH i2c: D1 01 00 69 14 01 4F [16:16:21]Write i2c OK [16:16:21]MH_I2C_Read... [16:16:21]Read from MH i2c: D1 [16:16:21]MH_I2C_Read... [16:16:21]Read from MH i2c: D1 01 00 [16:16:21]MH_I2C_Read... [16:16:21]Read from MH i2c: D1 01 00 69 14 00 4E [16:16:21]Write to MH i2c: 01 00 00 6A 14 7E [16:16:21]Write i2c OK [16:16:21]MH_I2C_Read... [16:16:21]OFD Sender: No OFD packet to send [16:16:22]*** Cut start [16:16:22]*** Purtial cut [16:16:22]*** Stage 1: CUTSNS_PIN = 1 [16:16:22]Read from MH i2c: 01 [16:16:22]MH_I2C_Read... [16:16:22]*** Stop cut motor [16:16:22]*** Cut end [16:16:22]Read from MH i2c: 01 07 00 [16:16:22]MH_I2C_Read... [16:16:22]Read from MH i2c: 01 07 00 6A 14 00 00 00 00 00 FF 0F 93 [16:16:22]process_action close_receipt done [16:16:22]requested_data is exist [16:16:22]produce_requested_data [16:16:22]requested_item fm.sn is exist - process it [16:16:22]wFMCommunicate request_size=4 [16:16:22]MH_SAM_APDU [16:16:22]CAPDU: 80 11 00 00 [16:16:22]Write to MH i2c: E2 08 00 6B 14 80 11 00 00 00 00 00 00 F9 [16:16:22]Write i2c OK [16:16:22]MH_I2C_Read... [16:16:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:22]Read from MH i2c: E2 [16:16:22]MH_I2C_Read... [16:16:22]Read from MH i2c: E2 17 00 [16:16:22]MH_I2C_Read... [16:16:22]Read from MH i2c: E2 17 00 6B 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 4F [16:16:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:16:22]wFMCommunicate OK [16:16:22]requested_item fd.num is exist - process it [16:16:22]SAM_PROTO_GetFieldsCounters [16:16:22]wFMCommunicate request_size=4 [16:16:22]MH_SAM_APDU [16:16:22]CAPDU: 80 13 00 00 [16:16:22]Write to MH i2c: E2 08 00 6C 14 80 13 00 00 00 00 00 00 FC [16:16:22]Write i2c OK [16:16:22]MH_I2C_Read... [16:16:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:16:22]Read from MH i2c: E2 [16:16:22]MH_I2C_Read... [16:16:22]Read from MH i2c: E2 62 00 [16:16:22]MH_I2C_Read... [16:16:22]Read from MH i2c: E2 62 00 6C 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 BB 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [16:16: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 BB 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:16:22]wFMCommunicate OK [16:16:22]SAM_PROTO_GetFieldsCounters done [16:16:22]requested_item shift.num is exist - process it [16:16:22]requested_item shift.opened is exist - process it [16:16:22]req_shift_opened [16:16:22]FM_GetShiftState [16:16:22]SAM_PROTO_GetShiftState [16:16:22]wFMCommunicate request_size=4 [16:16:22]MH_SAM_APDU [16:16:22]CAPDU: 80 13 01 00 [16:16:22]Write to MH i2c: E2 08 00 6D 14 80 13 01 00 00 00 00 00 FE [16:16:22]Write i2c OK [16:16:22]MH_I2C_Read... [16:16:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:22]Read from MH i2c: E2 [16:16:22]MH_I2C_Read... [16:16:22]Read from MH i2c: E2 0E 00 [16:16:22]MH_I2C_Read... [16:16:22]Read from MH i2c: E2 0E 00 6D 14 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 AA [16:16:22]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [16:16:22]wFMCommunicate OK [16:16:22]SAM_PROTO_GetShiftState done [16:16:22]FM_GetShiftState done [16:16:22]req_shift_opened done [16:16:22]requested_item shift.open_date is exist - process it [16:16:22]req_shift_open_date [16:16:22]req_shift_open_date done [16:16:22]produce_requested_data done [16:16:22]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67515,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [16:16:22]process_action_free close_receipt [16:16:22]json_value_free [16:16:22]json_value_free done [16:16:22]process_json_proto returns [16:16:22]Send response to host [16:16:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67515,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [16:16:22]free response buf [16:16:22]execute_script done [16:16:22]execute_script returns [16:16:22]free content buf [16:16:22]Sock 9.Close socket [16:16:22]Sock 9.Thread stoped [16:16:26]OFD Sender: No OFD packet to send [16:16:31]OFD Sender: No OFD packet to send [16:16:36]OFD Sender: No OFD packet to send [16:16:41]OFD Sender: No OFD packet to send [16:16:46]OFD Sender: No OFD packet to send [16:16:51]OFD Sender: No OFD packet to send [16:16:56]OFD Sender: No OFD packet to send [16:17:01]OFD Sender: No OFD packet to send [16:17:06]OFD Sender: No OFD packet to send [16:17:11]OFD Sender: No OFD packet to send [16:17:16]OFD Sender: No OFD packet to send [16:17:21]OFD Sender: No OFD packet to send [16:17:26]OFD Sender: No OFD packet to send [16:17:31]OFD Sender: No OFD packet to send [16:17:36]OFD Sender: No OFD packet to send [16:17:41]OFD Sender: No OFD packet to send [16:17:46]OFD Sender: No OFD packet to send [16:17:51]OFD Sender: No OFD packet to send [16:17:56]OFD Sender: No OFD packet to send [16:18:01]OFD Sender: No OFD packet to send [16:18:06]OFD Sender: No OFD packet to send [16:18:11]OFD Sender: No OFD packet to send [16:18:16]OFD Sender: No OFD packet to send [16:18:21]OFD Sender: No OFD packet to send [16:18:26]OFD Sender: No OFD packet to send [16:18:31]OFD Sender: No OFD packet to send [16:18:36]OFD Sender: No OFD packet to send [16:18:41]OFD Sender: No OFD packet to send [16:18:46]OFD Sender: No OFD packet to send [16:18:51]OFD Sender: No OFD packet to send [16:18:56]OFD Sender: No OFD packet to send [16:19:01]OFD Sender: No OFD packet to send [16:19:06]OFD Sender: No OFD packet to send [16:19:11]OFD Sender: No OFD packet to send [16:19:16]OFD Sender: No OFD packet to send [16:19:21]OFD Sender: No OFD packet to send [16:19:26]OFD Sender: No OFD packet to send [16:19:31]OFD Sender: No OFD packet to send [16:19:36]OFD Sender: No OFD packet to send [16:19:41]OFD Sender: No OFD packet to send [16:19:46]OFD Sender: No OFD packet to send [16:19:51]OFD Sender: No OFD packet to send [16:19:56]OFD Sender: No OFD packet to send [16:20:01]OFD Sender: No OFD packet to send [16:20:06]OFD Sender: No OFD packet to send [16:20:11]OFD Sender: No OFD packet to send [16:20:16]OFD Sender: No OFD packet to send [16:20:21]OFD Sender: No OFD packet to send [16:20:26]OFD Sender: No OFD packet to send [16:20:31]OFD Sender: No OFD packet to send [16:20:36]OFD Sender: No OFD packet to send [16:20:41]OFD Sender: No OFD packet to send [16:20:46]OFD Sender: No OFD packet to send [16:20:51]OFD Sender: No OFD packet to send [16:20:56]OFD Sender: No OFD packet to send [16:21:01]OFD Sender: No OFD packet to send [16:21:06]OFD Sender: No OFD packet to send [16:21:11]OFD Sender: No OFD packet to send [16:21:16]OFD Sender: No OFD packet to send [16:21:19]accept exits with 8 [16:21:19]New connection [16:21:19]New thread 3067182436 created [16:21:19]Thread 3067039076 joined [16:21:19]Waiting for new connection... [16:21:19] Sock 8.Parse request [16:21:19]Sock 8.Check first char [16:21:19]Sock 8.First char is OK [16:21:19]request: POST /json_proto HTTP/1.0 [16:21:19]Method: POST [16:21:19]URL: /json_proto [16:21:19]Method is POST - this is cgi request [16:21:19]url: /json_proto [16:21:19]query_string will be loaded in cgi processing [16:21:19]execute_cgi json_proto POST (null) [16:21:19]execute_cgi path=json_proto method=POST [16:21:19]POST find Content-Length [16:21:19]Host: 172.17.41.195:8080 [16:21:19]Content-Length: 800 [16:21:19]Content-Type: application/json [16:21:19] [16:21:19]POST finish read [16:21:19]Found Content-Length = 800 [16:21:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507574", "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" : 74.70, "quantity" : 26.780, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:19]execute_script... [16:21:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507574", "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" : 74.70, "quantity" : 26.780, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:19]POST & json_proto [16:21:19]process_json_proto [16:21:19]json parsed OK: [16:21:19]protocol is kg_v1.0 [16:21:19]action value=close_receipt [16:21:19]process_action close_receipt [16:21:19]cmd_close_receipt [16:21:19]MH_GetDate [16:21:19]Write to MH i2c: F0 00 00 6E 14 71 [16:21:19]Write i2c OK [16:21:19]MH_I2C_Read... [16:21:19]Read from MH i2c: F0 [16:21:19]MH_I2C_Read... [16:21:19]Read from MH i2c: F0 09 00 [16:21:19]MH_I2C_Read... [16:21:19]Read from MH i2c: F0 09 00 6E 14 00 81 32 46 66 FC 21 6F 64 C9 [16:21:19]GetLastDocTimeStamp 1715876180 [16:21:19]current date 1715876481 [16:21:19]FM_GetShiftState [16:21:19]SAM_PROTO_GetShiftState [16:21:19]wFMCommunicate request_size=4 [16:21:19]MH_SAM_APDU [16:21:19]CAPDU: 80 13 01 00 [16:21:19]Write to MH i2c: E2 08 00 6F 14 80 13 01 00 00 00 00 00 00 [16:21:19]Write i2c OK [16:21:19]MH_I2C_Read... [16:21:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:19]Read from MH i2c: E2 [16:21:19]MH_I2C_Read... [16:21:19]Read from MH i2c: E2 0E 00 [16:21:19]MH_I2C_Read... [16:21:19]Read from MH i2c: E2 0E 00 6F 14 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 AC [16:21:19]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [16:21:19]wFMCommunicate OK [16:21:19]SAM_PROTO_GetShiftState done [16:21:19]FM_GetShiftState done [16:21:19]opened in 1715818916 [16:21:19]opened+sec_in_day 1715905316 [16:21:19]quantity*price = 200046 [16:21:19]sum+1 = 200048 [16:21:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.47 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 0.00 Безнал.: 2000.47 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 114 16.05.2024 16:21 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67516 ФПД: 232492922049066 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T162121&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67516&fm=232492922049066&tin=02508201610067®Number=0000000000091845&sum=200047 [16:21:20]StoreToDocumentArchive [16:21:20]shift 357 fd 67516 [16:21:20]save to /storage/0357/doc_00067516 [16:21:20]save last doc name /storage/0357/doc_00067516 to /storage/kkm_last_doc_name [16:21:20]save OK [16:21:20]Clear old archive folders... [16:21:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:21:20]tlvbuf is 0177E070 [16:21:20]SAM_PROTO_ClearQueue [16:21:20]wFMCommunicate request_size=4 [16:21:20]MH_SAM_APDU [16:21:20]CAPDU: 80 09 00 00 [16:21:20]Write to MH i2c: E2 08 00 7C 14 80 09 00 00 00 00 00 00 02 [16:21:20]Write i2c OK [16:21:20]MH_I2C_Read... [16:21:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:21:20]Read from MH i2c: E2 [16:21:20]MH_I2C_Read... [16:21:20]Read from MH i2c: E2 03 00 [16:21:20]MH_I2C_Read... [16:21:20]Read from MH i2c: E2 03 00 7C 14 00 90 00 04 [16:21:20]RAPDU: 90 00 [16:21:20]wFMCommunicate OK [16:21:20]SAM_PROTO_ClearQueue done [16:21:20]KKMCreateOFDPacket [16:21:20]OFDProtocolAddRootSTLVToBuf [16:21:20]FM_MakeSignedData [16:21:20]FM_MakeSignedData [16:21:20]SAM_PROTO_SignData [16:21:20]wFMCommunicate request_size=4 [16:21:20]MH_SAM_APDU [16:21:20]CAPDU: 80 0D 01 02 [16:21:20]Write to MH i2c: E2 08 00 7D 14 80 0D 01 02 00 00 00 00 0A [16:21:20]Write i2c OK [16:21:20]MH_I2C_Read... [16:21:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:21:20]Read from MH i2c: E2 [16:21:20]MH_I2C_Read... [16:21:20]Read from MH i2c: E2 03 00 [16:21:20]MH_I2C_Read... [16:21:20]Read from MH i2c: E2 03 00 7D 14 00 90 00 05 [16:21:20]RAPDU: 90 00 [16:21:20]wFMCommunicate OK [16:21:20]wFMCommunicate request_size=255 [16:21:20]MH_SAM_APDU [16:21: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 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 81 32 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BC 07 01 00 35 04 06 00 D3 73 7A 08 [16:21:20]Write to MH i2c: E2 02 01 7E 14 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 81 32 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BC 07 01 00 35 04 06 00 D3 73 7A 08 00 00 39 [16:21:20]Write i2c OK [16:21:20]MH_I2C_Read... [16:21:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:21]Read from MH i2c: E2 [16:21:21]MH_I2C_Read... [16:21:21]Read from MH i2c: E2 03 00 [16:21:21]MH_I2C_Read... [16:21:21]Read from MH i2c: E2 03 00 7E 14 00 90 00 06 [16:21:21]RAPDU: 90 00 [16:21:21]wFMCommunicate OK [16:21:21]wFMCommunicate request_size=7 [16:21:21]MH_SAM_APDU [16:21:21]CAPDU: 80 0D 02 02 02 12 2A [16:21:21]Write to MH i2c: E2 0A 00 7F 14 80 0D 02 02 02 00 12 2A 00 00 4D [16:21:21]Write i2c OK [16:21:21]MH_I2C_Read... [16:21:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:21]Read from MH i2c: E2 [16:21:21]MH_I2C_Read... [16:21:21]Read from MH i2c: E2 03 00 [16:21:21]MH_I2C_Read... [16:21:21]Read from MH i2c: E2 03 00 7F 14 00 90 00 07 [16:21:21]RAPDU: 90 00 [16:21:21]wFMCommunicate OK [16:21:21]wFMCommunicate request_size=4 [16:21:21]MH_SAM_APDU [16:21:21]CAPDU: 80 0D 03 02 [16:21:21]Write to MH i2c: E2 08 00 80 14 80 0D 03 02 00 00 00 00 0F [16:21:21]Write i2c OK [16:21:21]MH_I2C_Read... [16:21:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:21:21]Read from MH i2c: E2 [16:21:21]MH_I2C_Read... [16:21:21]Read from MH i2c: E2 0B 00 [16:21:21]MH_I2C_Read... [16:21:21]Read from MH i2c: E2 0B 00 80 14 00 7E 75 87 69 84 B0 D1 B9 90 00 B1 [16:21:21]RAPDU: 7E 75 87 69 84 B0 D1 B9 90 00 [16:21:21]wFMCommunicate OK [16:21:21]SAM_PROTO_SignData done [16:21:21]FM_MakeSignedData done [16:21:21]CreateOFDProtocolMessage [16:21:21]wFMCommunicate request_size=4 [16:21:21]MH_SAM_APDU [16:21:21]CAPDU: 80 11 00 00 [16:21:21]Write to MH i2c: E2 08 00 81 14 80 11 00 00 00 00 00 00 0F [16:21:21]Write i2c OK [16:21:21]MH_I2C_Read... [16:21:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:21]Read from MH i2c: E2 [16:21:21]MH_I2C_Read... [16:21:21]Read from MH i2c: E2 17 00 [16:21:21]MH_I2C_Read... [16:21:21]Read from MH i2c: E2 17 00 81 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 65 [16:21:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:21:21]wFMCommunicate OK [16:21:21]CreateOFDProtocolMessage done [16:21:21]OFDSenderStorePacket 67516 [16:21:21]StoreOFDPacket docnum=67516 [16:21:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 BC 17 04 01 55 65 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 81 32 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BC 07 01 00 35 04 06 00 D3 73 7A 08 12 2A 7E 75 87 69 84 B0 D1 B9 [16:21:21]CheckFolder [16:21:21]dirname=/storage/ofd_packets [16:21:21]CheckFolder done [16:21:21]ProducePacketName [16:21:21]name=ofd_packets/00067516 [16:21:21]NVStorageSaveData ofd_packets/00067516 [16:21:21]File name is /storage/ofd_packets/00067516 [16:21:21]Write 298 bytes [16:21:21]NVStorageSaveData done [16:21:21]OFDSenderStorePacket done [16:21:21]KKMCreateOFDPacket done [16:21:21]NVStorageSaveData kkm_last_timestamp [16:21:21]File name is /storage/kkm_last_timestamp [16:21:21]Write 4 bytes [16:21:21]NVStorageSaveData done [16:21:21]ExternCall_PrintAddStr [16:21:21]wPrintStart [16:21:21]Write to MH i2c: 01 00 00 82 14 96 [16:21:21]Write i2c OK [16:21:21]MH_I2C_Read... [16:21:21]Read from MH i2c: 01 [16:21:21]MH_I2C_Read... [16:21:21]Read from MH i2c: 01 07 00 [16:21:21]MH_I2C_Read... [16:21:21]Read from MH i2c: 01 07 00 82 14 00 00 00 00 00 FF 0F AB [16:21:21]RasterBufferAndPrint [16:21:21]line Счет N : (1)507574 [16:21:21]line ИНН: 02508201610067 [16:21:21]line Контрольно-Кассовый Чек [16:21:21]line ПРОДАЖА [16:21:21]line ТРК (МРК, ГНК) : 31 [16:21:21]line Товар: 2710194210 [16:21:21]line ДТ-К-5 [16:21:21]line 26.780 * 74.70 [16:21:21]line = 2000.47 [16:21:21]line НДС 12% НСП 1% [16:21:21]line > о реализуемом товаре [16:21:21]line ИТОГО: 2000.47 [16:21:21]line НСП 1% : 17.70 [16:21:21]line НДС 12% : 212.44 [16:21:21]line Наличными: 0.00 [16:21:21]line Безнал.: 2000.47 [16:21:21]line Место: АЗС № 91 "Партнер Нефть" [16:21:21]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [16:21:21]line СНО: Общий режим [16:21:21]line Чек 114 16.05.2024 16:21 [16:21:21]line Смена: 357 ФФД: 1.0 [16:21:21]line ЗНМ: 0300000119 [16:21:21]line РНМ: 0000000000091845 [16:21:21]line Версия ККМ: 001 [16:21:21]line Платежная система: O! деньги [16:21:21]line ФМ: 0000000000871829 [16:21:21]line ФД: 67516 [16:21:21]line ФПД: 232492922049066 [16:21:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T162121&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67516&fm=232492922049066&tin=02508201610067®Number=0000000000091845&sum=200047 [16:21:21]OFD Sender: Processing packet 67516 [packets to send 35, broken 34] [16:21:21]ProducePacketName [16:21:21]name=ofd_packets/00067516 [16:21:21]OFD Sender: To server: pG, [16:21:21]CommunicateWithHost lk.salyk.kg:30040 [16:21:21]ConnectInit lk.salyk.kg [16:21:21]written 0, free lines is 4095 [16:21:21]Connected sock=10 [16:21:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 BC 17 04 01 55 65 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 81 32 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BC 07 01 00 35 04 06 00 D3 73 7A 08 12 2A 7E 75 87 69 84 B0 D1 B9 [16:21:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 B8 16 47 00 B6 B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BC 07 01 00 F4 03 04 00 5B DA 45 66 B6 04 01 00 00 9B C0 C5 E3 C5 F7 EB 8F [16:21:21]CommunicateWithHost err = 0 [16:21:21]CheckOFDResponse [16:21:21]1017 (14) - 77093643461234 [16:21:21]1041 (16) - 0000000000871829 [16:21:21]1040 (4) - 67516 [16:21:21]1012 (4) - 16.05.2024 10:05 [16:21:21]1206 (1) - 0 [16:21:21]OFD Sender: Remove packet 67516 [16:21:21]ProducePacketName [16:21:21]name=ofd_packets/00067516 [16:21:21]NVStorageDeleteData [16:21:21]Write to MH i2c: 01 00 00 AB 14 BF [16:21:21]Write i2c OK [16:21:21]MH_I2C_Read... [16:21:21]Read from MH i2c: 01 [16:21:21]MH_I2C_Read... [16:21:21]Read from MH i2c: 01 07 00 [16:21:21]MH_I2C_Read... [16:21:21]Read from MH i2c: 01 07 00 AB 14 00 00 00 00 00 E6 0C B8 [16:21:21]RasterBufferAndPrint [16:21:21]line [16:21:21]line [16:21:21]line [16:21:21]line [16:21:21]line [16:21:21]written 0, free lines is 3309 [16:21:21]MH_Cut [16:21:21]Write to MH i2c: D1 01 00 B2 14 01 98 [16:21:21]Write i2c OK [16:21:21]MH_I2C_Read... [16:21:21]Read from MH i2c: D1 [16:21:21]MH_I2C_Read... [16:21:21]Read from MH i2c: D1 01 00 [16:21:21]MH_I2C_Read... [16:21:21]Read from MH i2c: D1 01 00 B2 14 00 97 [16:21:21]Write to MH i2c: 01 00 00 B3 14 C7 [16:21:21]Write i2c OK [16:21:21]MH_I2C_Read... [16:21:22]OFD Sender: No OFD packet to send [16:21:22]*** Cut start [16:21:22]*** Purtial cut [16:21:22]*** CUTSNS_PIN = 0 [16:21:22]*** Stage 1: CUTSNS_PIN = 1 [16:21:24]Read from MH i2c: 01 [16:21:24]MH_I2C_Read... [16:21:24]*** Stop cut motor [16:21:24]*** Cut end [16:21:24]Read from MH i2c: 01 07 00 [16:21:24]MH_I2C_Read... [16:21:24]Read from MH i2c: 01 07 00 B3 14 00 00 00 00 00 FF 0F DC [16:21:24]process_action close_receipt done [16:21:24]requested_data is exist [16:21:24]produce_requested_data [16:21:24]requested_item fm.sn is exist - process it [16:21:24]wFMCommunicate request_size=4 [16:21:24]MH_SAM_APDU [16:21:24]CAPDU: 80 11 00 00 [16:21:24]Write to MH i2c: E2 08 00 B4 14 80 11 00 00 00 00 00 00 42 [16:21:24]Write i2c OK [16:21:24]MH_I2C_Read... [16:21:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:24]Read from MH i2c: E2 [16:21:24]MH_I2C_Read... [16:21:24]Read from MH i2c: E2 17 00 [16:21:24]MH_I2C_Read... [16:21:24]Read from MH i2c: E2 17 00 B4 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 98 [16:21:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:21:24]wFMCommunicate OK [16:21:24]requested_item fd.num is exist - process it [16:21:24]SAM_PROTO_GetFieldsCounters [16:21:24]wFMCommunicate request_size=4 [16:21:24]MH_SAM_APDU [16:21:24]CAPDU: 80 13 00 00 [16:21:24]Write to MH i2c: E2 08 00 B5 14 80 13 00 00 00 00 00 00 45 [16:21:24]Write i2c OK [16:21:24]MH_I2C_Read... [16:21:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:21:24]Read from MH i2c: E2 [16:21:24]MH_I2C_Read... [16:21:24]Read from MH i2c: E2 62 00 [16:21:24]MH_I2C_Read... [16:21:24]Read from MH i2c: E2 62 00 B5 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 BC 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [16:21: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 BC 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:21:24]wFMCommunicate OK [16:21:24]SAM_PROTO_GetFieldsCounters done [16:21:24]requested_item shift.num is exist - process it [16:21:24]requested_item shift.opened is exist - process it [16:21:24]req_shift_opened [16:21:24]FM_GetShiftState [16:21:24]SAM_PROTO_GetShiftState [16:21:24]wFMCommunicate request_size=4 [16:21:24]MH_SAM_APDU [16:21:24]CAPDU: 80 13 01 00 [16:21:24]Write to MH i2c: E2 08 00 B6 14 80 13 01 00 00 00 00 00 47 [16:21:24]Write i2c OK [16:21:24]MH_I2C_Read... [16:21:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:25]Read from MH i2c: E2 [16:21:25]MH_I2C_Read... [16:21:25]Read from MH i2c: E2 0E 00 [16:21:25]MH_I2C_Read... [16:21:25]Read from MH i2c: E2 0E 00 B6 14 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 F3 [16:21:25]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [16:21:25]wFMCommunicate OK [16:21:25]SAM_PROTO_GetShiftState done [16:21:25]FM_GetShiftState done [16:21:25]req_shift_opened done [16:21:25]requested_item shift.open_date is exist - process it [16:21:25]req_shift_open_date [16:21:25]req_shift_open_date done [16:21:25]produce_requested_data done [16:21:25]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67516,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [16:21:25]process_action_free close_receipt [16:21:25]json_value_free [16:21:25]json_value_free done [16:21:25]process_json_proto returns [16:21:25]Send response to host [16:21:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67516,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [16:21:25]free response buf [16:21:25]execute_script done [16:21:25]execute_script returns [16:21:25]free content buf [16:21:25]Sock 8.Close socket [16:21:25]Sock 8.Thread stoped [16:21:25]accept exits with 9 [16:21:25]New connection [16:21:25]New thread 3067039076 created [16:21:25]Thread 3067182436 joined [16:21:25]Waiting for new connection... [16:21:25] Sock 9.Parse request [16:21:25]Sock 9.Check first char [16:21:25]Sock 9.First char is OK [16:21:25]request: POST /json_proto HTTP/1.0 [16:21:25]Method: POST [16:21:25]URL: /json_proto [16:21:25]Method is POST - this is cgi request [16:21:25]url: /json_proto [16:21:25]query_string will be loaded in cgi processing [16:21:25]execute_cgi json_proto POST (null) [16:21:25]execute_cgi path=json_proto method=POST [16:21:25]POST find Content-Length [16:21:25]Host: 172.17.41.195:8080 [16:21:25]Content-Length: 671 [16:21:25]Content-Type: application/json [16:21:25] [16:21:25]POST finish read [16:21:25]Found Content-Length = 671 [16:21:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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" ] } } [16:21:25]execute_script... [16:21: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)507575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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" ] } } [16:21:25]POST & json_proto [16:21:25]process_json_proto [16:21:25]json parsed OK: [16:21:25]protocol is kg_v1.0 [16:21:25]action value=close_receipt [16:21:25]process_action close_receipt [16:21:25]cmd_close_receipt [16:21:25]MH_GetDate [16:21:25]Write to MH i2c: F0 00 00 B7 14 BA [16:21:25]Write i2c OK [16:21:25]MH_I2C_Read... [16:21:25]Read from MH i2c: F0 [16:21:25]MH_I2C_Read... [16:21:25]Read from MH i2c: F0 09 00 [16:21:25]MH_I2C_Read... [16:21:25]Read from MH i2c: F0 09 00 B7 14 00 87 32 46 66 FC 21 6F 64 18 [16:21:25]GetLastDocTimeStamp 1715876481 [16:21:25]current date 1715876487 [16:21:25]FM_GetShiftState [16:21:25]SAM_PROTO_GetShiftState [16:21:25]wFMCommunicate request_size=4 [16:21:25]MH_SAM_APDU [16:21:25]CAPDU: 80 13 01 00 [16:21:25]Write to MH i2c: E2 08 00 B8 14 80 13 01 00 00 00 00 00 49 [16:21:25]Write i2c OK [16:21:25]MH_I2C_Read... [16:21:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:25]Read from MH i2c: E2 [16:21:25]MH_I2C_Read... [16:21:25]Read from MH i2c: E2 0E 00 [16:21:25]MH_I2C_Read... [16:21:25]Read from MH i2c: E2 0E 00 B8 14 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 F5 [16:21:25]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [16:21:25]wFMCommunicate OK [16:21:25]SAM_PROTO_GetShiftState done [16:21:25]FM_GetShiftState done [16:21:25]opened in 1715818916 [16:21:25]opened+sec_in_day 1715905316 [16:21:25]quantity*price = 70037 [16:21:25]sum+1 = 70038 [16:21:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 115 16.05.2024 16:21 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67517 ФПД: 129025777594382 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T162127&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67517&fm=129025777594382&tin=02508201610067®Number=0000000000091845&sum=70000 [16:21:27]StoreToDocumentArchive [16:21:27]shift 357 fd 67517 [16:21:27]save to /storage/0357/doc_00067517 [16:21:27]save last doc name /storage/0357/doc_00067517 to /storage/kkm_last_doc_name [16:21:27]save OK [16:21:27]Clear old archive folders... [16:21:27]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:21:27]tlvbuf is 01808D90 [16:21:27]SAM_PROTO_ClearQueue [16:21:27]wFMCommunicate request_size=4 [16:21:27]MH_SAM_APDU [16:21:27]CAPDU: 80 09 00 00 [16:21:27]Write to MH i2c: E2 08 00 C5 14 80 09 00 00 00 00 00 00 4B [16:21:27]Write i2c OK [16:21:27]MH_I2C_Read... [16:21:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:21:27]Read from MH i2c: E2 [16:21:27]MH_I2C_Read... [16:21:27]Read from MH i2c: E2 03 00 [16:21:27]MH_I2C_Read... [16:21:27]Read from MH i2c: E2 03 00 C5 14 00 90 00 4D [16:21:27]RAPDU: 90 00 [16:21:27]wFMCommunicate OK [16:21:27]SAM_PROTO_ClearQueue done [16:21:27]KKMCreateOFDPacket [16:21:27]OFDProtocolAddRootSTLVToBuf [16:21:27]FM_MakeSignedData [16:21:27]FM_MakeSignedData [16:21:27]SAM_PROTO_SignData [16:21:27]wFMCommunicate request_size=4 [16:21:27]MH_SAM_APDU [16:21:27]CAPDU: 80 0D 01 02 [16:21:27]Write to MH i2c: E2 08 00 C6 14 80 0D 01 02 00 00 00 00 53 [16:21:27]Write i2c OK [16:21:27]MH_I2C_Read... [16:21:27]OFD Sender: No OFD packet to send [16:21:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:21:27]Read from MH i2c: E2 [16:21:27]MH_I2C_Read... [16:21:27]Read from MH i2c: E2 03 00 [16:21:27]MH_I2C_Read... [16:21:27]Read from MH i2c: E2 03 00 C6 14 00 90 00 4E [16:21:27]RAPDU: 90 00 [16:21:27]wFMCommunicate OK [16:21:27]wFMCommunicate request_size=255 [16:21:27]MH_SAM_APDU [16:21:27]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 87 32 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BD 07 01 00 35 04 06 00 [16:21:27]Write to MH i2c: E2 02 01 C7 14 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 87 32 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BD 07 01 00 35 04 06 00 00 00 EB [16:21:27]Write i2c OK [16:21:27]MH_I2C_Read... [16:21:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:27]Read from MH i2c: E2 [16:21:27]MH_I2C_Read... [16:21:27]Read from MH i2c: E2 03 00 [16:21:27]MH_I2C_Read... [16:21:27]Read from MH i2c: E2 03 00 C7 14 00 90 00 4F [16:21:27]RAPDU: 90 00 [16:21:27]wFMCommunicate OK [16:21:27]wFMCommunicate request_size=11 [16:21:27]MH_SAM_APDU [16:21:27]CAPDU: 80 0D 02 02 06 75 59 27 A3 F0 0E [16:21:27]Write to MH i2c: E2 0E 00 C8 14 80 0D 02 02 06 00 75 59 27 A3 F0 0E 00 00 F8 [16:21:27]Write i2c OK [16:21:27]MH_I2C_Read... [16:21:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:27]Read from MH i2c: E2 [16:21:27]MH_I2C_Read... [16:21:27]Read from MH i2c: E2 03 00 [16:21:27]MH_I2C_Read... [16:21:27]Read from MH i2c: E2 03 00 C8 14 00 90 00 50 [16:21:27]RAPDU: 90 00 [16:21:27]wFMCommunicate OK [16:21:27]wFMCommunicate request_size=4 [16:21:27]MH_SAM_APDU [16:21:27]CAPDU: 80 0D 03 02 [16:21:27]Write to MH i2c: E2 08 00 C9 14 80 0D 03 02 00 00 00 00 58 [16:21:27]Write i2c OK [16:21:27]MH_I2C_Read... [16:21:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:21:27]Read from MH i2c: E2 [16:21:27]MH_I2C_Read... [16:21:27]Read from MH i2c: E2 0B 00 [16:21:27]MH_I2C_Read... [16:21:27]Read from MH i2c: E2 0B 00 C9 14 00 8B 8D CE C3 C3 24 83 71 90 00 DD [16:21:27]RAPDU: 8B 8D CE C3 C3 24 83 71 90 00 [16:21:27]wFMCommunicate OK [16:21:27]SAM_PROTO_SignData done [16:21:27]FM_MakeSignedData done [16:21:27]CreateOFDProtocolMessage [16:21:27]wFMCommunicate request_size=4 [16:21:27]MH_SAM_APDU [16:21:27]CAPDU: 80 11 00 00 [16:21:27]Write to MH i2c: E2 08 00 CA 14 80 11 00 00 00 00 00 00 58 [16:21:27]Write i2c OK [16:21:27]MH_I2C_Read... [16:21:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:27]Read from MH i2c: E2 [16:21:27]MH_I2C_Read... [16:21:27]Read from MH i2c: E2 17 00 [16:21:27]MH_I2C_Read... [16:21:27]Read from MH i2c: E2 17 00 CA 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AE [16:21:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:21:27]wFMCommunicate OK [16:21:27]CreateOFDProtocolMessage done [16:21:27]OFDSenderStorePacket 67517 [16:21:27]StoreOFDPacket docnum=67517 [16:21:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 C9 4D 08 01 7A 14 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 87 32 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BD 07 01 00 35 04 06 00 75 59 27 A3 F0 0E 8B 8D CE C3 C3 24 83 71 [16:21:27]CheckFolder [16:21:27]dirname=/storage/ofd_packets [16:21:27]CheckFolder done [16:21:27]ProducePacketName [16:21:27]name=ofd_packets/00067517 [16:21:27]NVStorageSaveData ofd_packets/00067517 [16:21:27]File name is /storage/ofd_packets/00067517 [16:21:27]Write 302 bytes [16:21:27]NVStorageSaveData done [16:21:27]OFDSenderStorePacket done [16:21:27]KKMCreateOFDPacket done [16:21:27]NVStorageSaveData kkm_last_timestamp [16:21:27]File name is /storage/kkm_last_timestamp [16:21:27]Write 4 bytes [16:21:27]NVStorageSaveData done [16:21:27]ExternCall_PrintAddStr [16:21:27]wPrintStart [16:21:27]Write to MH i2c: 01 00 00 CB 14 DF [16:21:27]Write i2c OK [16:21:27]MH_I2C_Read... [16:21:27]Read from MH i2c: 01 [16:21:27]MH_I2C_Read... [16:21:27]Read from MH i2c: 01 07 00 [16:21:27]MH_I2C_Read... [16:21:27]Read from MH i2c: 01 07 00 CB 14 00 00 00 00 00 FF 0F F4 [16:21:27]RasterBufferAndPrint [16:21:27]line Счет N : (1)507575 [16:21:27]line ИНН: 02508201610067 [16:21:27]line Контрольно-Кассовый Чек [16:21:27]line ПРОДАЖА [16:21:27]line ТРК (МРК, ГНК) : 12 [16:21:27]line Товар: 2710124130 [16:21:27]line Super-92-К-5 [16:21:27]line 10.330 * 67.80 [16:21:27]line = 700.37 [16:21:27]line НДС 12% НСП 1% [16:21:27]line > о реализуемом товаре [16:21:27]line ОКРУГЛЕНИЕ: -0.37 [16:21:27]line ИТОГО: 700.00 [16:21:27]line Внесено: 700.00 [16:21:27]line СДАЧА: 0.00 [16:21:27]line НСП 1% : 6.20 [16:21:27]line НДС 12% : 74.38 [16:21:27]line Наличными: 700.00 [16:21:27]line Безнал.: 0.00 [16:21:27]line Место: АЗС № 91 "Партнер Нефть" [16:21:27]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [16:21:27]line СНО: Общий режим [16:21:27]line Чек 115 16.05.2024 16:21 [16:21:27]line Смена: 357 ФФД: 1.0 [16:21:27]line ЗНМ: 0300000119 [16:21:27]line РНМ: 0000000000091845 [16:21:27]line Версия ККМ: 001 [16:21:27]line ФМ: 0000000000871829 [16:21:27]line ФД: 67517 [16:21:27]line ФПД: 129025777594382 [16:21:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T162127&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67517&fm=129025777594382&tin=02508201610067®Number=0000000000091845&sum=70000 [16:21:27]written 0, free lines is 4095 [16:21:27]OFD Sender: Processing packet 67517 [packets to send 35, broken 34] [16:21:28]ProducePacketName [16:21:28]name=ofd_packets/00067517 [16:21:28]OFD Sender: To server: pG, [16:21:28]CommunicateWithHost lk.salyk.kg:30040 [16:21:28]ConnectInit lk.salyk.kg [16:21:28]Connected sock=10 [16:21: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 38 32 39 10 01 00 00 C9 4D 08 01 7A 14 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 87 32 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BD 07 01 00 35 04 06 00 75 59 27 A3 F0 0E 8B 8D CE C3 C3 24 83 71 [16:21:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 CD F9 47 00 62 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BD 07 01 00 F4 03 04 00 61 DA 45 66 B6 04 01 00 00 DF A7 38 54 B1 9D 88 54 [16:21:28]CommunicateWithHost err = 0 [16:21:28]CheckOFDResponse [16:21:28]1017 (14) - 77093643461234 [16:21:28]1041 (16) - 0000000000871829 [16:21:28]1040 (4) - 67517 [16:21:28]1012 (4) - 16.05.2024 10:05 [16:21:28]1206 (1) - 0 [16:21:28]OFD Sender: Remove packet 67517 [16:21:28]ProducePacketName [16:21:28]name=ofd_packets/00067517 [16:21:28]NVStorageDeleteData [16:21:28]Write to MH i2c: 01 00 00 F5 14 09 [16:21:28]Write i2c OK [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: 01 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: 01 07 00 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: 01 07 00 F5 14 00 00 00 00 00 D8 0C F4 [16:21:28]RasterBufferAndPrint [16:21:28]line [16:21:28]line [16:21:28]line [16:21:28]line [16:21:28]line [16:21:28]written 0, free lines is 3298 [16:21:28]MH_Cut [16:21:28]Write to MH i2c: D1 01 00 FC 14 01 E2 [16:21:28]Write i2c OK [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: D1 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: D1 01 00 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: D1 01 00 FC 14 00 E1 [16:21:28]Write to MH i2c: 01 00 00 FD 14 11 [16:21:28]Write i2c OK [16:21:28]MH_I2C_Read... [16:21:28]OFD Sender: No OFD packet to send [16:21:29]*** Cut start [16:21:29]*** Purtial cut [16:21:29]*** Stage 1: CUTSNS_PIN = 1 [16:21:29]Read from MH i2c: 01 [16:21:29]MH_I2C_Read... [16:21:29]*** Stop cut motor [16:21:29]*** Cut end [16:21:29]Read from MH i2c: 01 07 00 [16:21:29]MH_I2C_Read... [16:21:29]Read from MH i2c: 01 07 00 FD 14 00 00 00 00 00 FF 0F 26 [16:21:29]process_action close_receipt done [16:21:29]requested_data is exist [16:21:29]produce_requested_data [16:21:29]requested_item fm.sn is exist - process it [16:21:29]wFMCommunicate request_size=4 [16:21:29]MH_SAM_APDU [16:21:29]CAPDU: 80 11 00 00 [16:21:29]Write to MH i2c: E2 08 00 FE 14 80 11 00 00 00 00 00 00 8C [16:21:29]Write i2c OK [16:21:29]MH_I2C_Read... [16:21:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:29]Read from MH i2c: E2 [16:21:29]MH_I2C_Read... [16:21:29]Read from MH i2c: E2 17 00 [16:21:29]MH_I2C_Read... [16:21:29]Read from MH i2c: E2 17 00 FE 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E2 [16:21:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:21:29]wFMCommunicate OK [16:21:29]requested_item fd.num is exist - process it [16:21:29]SAM_PROTO_GetFieldsCounters [16:21:29]wFMCommunicate request_size=4 [16:21:29]MH_SAM_APDU [16:21:29]CAPDU: 80 13 00 00 [16:21:29]Write to MH i2c: E2 08 00 FF 14 80 13 00 00 00 00 00 00 8F [16:21:29]Write i2c OK [16:21:29]MH_I2C_Read... [16:21:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:21:29]Read from MH i2c: E2 [16:21:29]MH_I2C_Read... [16:21:29]Read from MH i2c: E2 62 00 [16:21:29]MH_I2C_Read... [16:21:29]Read from MH i2c: E2 62 00 FF 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 BD 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [16:21: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 BD 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:21:29]wFMCommunicate OK [16:21:29]SAM_PROTO_GetFieldsCounters done [16:21:29]requested_item shift.num is exist - process it [16:21:29]requested_item shift.opened is exist - process it [16:21:29]req_shift_opened [16:21:29]FM_GetShiftState [16:21:29]SAM_PROTO_GetShiftState [16:21:29]wFMCommunicate request_size=4 [16:21:29]MH_SAM_APDU [16:21:29]CAPDU: 80 13 01 00 [16:21:29]Write to MH i2c: E2 08 00 00 15 80 13 01 00 00 00 00 00 92 [16:21:29]Write i2c OK [16:21:29]MH_I2C_Read... [16:21:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:29]Read from MH i2c: E2 [16:21:29]MH_I2C_Read... [16:21:29]Read from MH i2c: E2 0E 00 [16:21:29]MH_I2C_Read... [16:21:29]Read from MH i2c: E2 0E 00 00 15 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 3E [16:21:29]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [16:21:29]wFMCommunicate OK [16:21:29]SAM_PROTO_GetShiftState done [16:21:29]FM_GetShiftState done [16:21:29]req_shift_opened done [16:21:29]requested_item shift.open_date is exist - process it [16:21:29]req_shift_open_date [16:21:29]req_shift_open_date done [16:21:29]produce_requested_data done [16:21:29]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67517,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [16:21:29]process_action_free close_receipt [16:21:29]json_value_free [16:21:29]json_value_free done [16:21:29]process_json_proto returns [16:21:29]Send response to host [16:21:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67517,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [16:21:29]free response buf [16:21:29]execute_script done [16:21:29]execute_script returns [16:21:29]free content buf [16:21:29]Sock 9.Close socket [16:21:29]Sock 9.Thread stoped [16:21:33]OFD Sender: No OFD packet to send [16:21:38]OFD Sender: No OFD packet to send [16:21:43]OFD Sender: No OFD packet to send [16:21:48]OFD Sender: No OFD packet to send [16:21:53]OFD Sender: No OFD packet to send [16:21:58]OFD Sender: No OFD packet to send [16:22:03]OFD Sender: No OFD packet to send [16:22:08]OFD Sender: No OFD packet to send [16:22:13]OFD Sender: No OFD packet to send [16:22:18]OFD Sender: No OFD packet to send [16:22:23]OFD Sender: No OFD packet to send [16:22:28]OFD Sender: No OFD packet to send [16:22:33]OFD Sender: No OFD packet to send [16:22:38]OFD Sender: No OFD packet to send [16:22:43]OFD Sender: No OFD packet to send [16:22:48]OFD Sender: No OFD packet to send [16:22:53]OFD Sender: No OFD packet to send [16:22:58]OFD Sender: No OFD packet to send [16:23:03]OFD Sender: No OFD packet to send [16:23:05]accept exits with 8 [16:23:05]New connection [16:23:05]New thread 3067182436 created [16:23:05]Thread 3067039076 joined [16:23:05]Waiting for new connection... [16:23:05] Sock 8.Parse request [16:23:05]Sock 8.Check first char [16:23:05]Sock 8.First char is OK [16:23:05]request: POST /json_proto HTTP/1.0 [16:23:05]Method: POST [16:23:05]URL: /json_proto [16:23:05]Method is POST - this is cgi request [16:23:05]url: /json_proto [16:23:05]query_string will be loaded in cgi processing [16:23:05]execute_cgi json_proto POST (null) [16:23:05]execute_cgi path=json_proto method=POST [16:23:05]POST find Content-Length [16:23:05]Host: 172.17.41.195:8080 [16:23:05]Content-Length: 670 [16:23:05]Content-Type: application/json [16:23:05] [16:23:05]POST finish read [16:23:05]Found Content-Length = 670 [16:23:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507576", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 9.000, "sum" : 610.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 610.00, "total" : 610.00, "payments": [ { "type": 0, "sum" : 610.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:05]execute_script... [16:23: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)507576", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 9.000, "sum" : 610.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 610.00, "total" : 610.00, "payments": [ { "type": 0, "sum" : 610.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:05]POST & json_proto [16:23:05]process_json_proto [16:23:05]json parsed OK: [16:23:05]protocol is kg_v1.0 [16:23:05]action value=close_receipt [16:23:05]process_action close_receipt [16:23:05]cmd_close_receipt [16:23:05]MH_GetDate [16:23:05]Write to MH i2c: F0 00 00 01 15 05 [16:23:05]Write i2c OK [16:23:05]MH_I2C_Read... [16:23:05]Read from MH i2c: F0 [16:23:05]MH_I2C_Read... [16:23:05]Read from MH i2c: F0 09 00 [16:23:05]MH_I2C_Read... [16:23:05]Read from MH i2c: F0 09 00 01 15 00 EB 32 46 66 FC 21 6F 64 C7 [16:23:05]GetLastDocTimeStamp 1715876487 [16:23:05]current date 1715876587 [16:23:05]FM_GetShiftState [16:23:05]SAM_PROTO_GetShiftState [16:23:05]wFMCommunicate request_size=4 [16:23:05]MH_SAM_APDU [16:23:05]CAPDU: 80 13 01 00 [16:23:05]Write to MH i2c: E2 08 00 02 15 80 13 01 00 00 00 00 00 94 [16:23:05]Write i2c OK [16:23:05]MH_I2C_Read... [16:23:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:05]Read from MH i2c: E2 [16:23:05]MH_I2C_Read... [16:23:05]Read from MH i2c: E2 0E 00 [16:23:05]MH_I2C_Read... [16:23:05]Read from MH i2c: E2 0E 00 02 15 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 40 [16:23:05]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [16:23:05]wFMCommunicate OK [16:23:05]SAM_PROTO_GetShiftState done [16:23:05]FM_GetShiftState done [16:23:05]opened in 1715818916 [16:23:05]opened+sec_in_day 1715905316 [16:23:05]quantity*price = 61020 [16:23:05]sum+1 = 61021 [16:23:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 610.00 Внесено: 610.00 СДАЧА: 0.00 НСП 1% : 5.40 НДС 12% : 64.80 Наличными: 610.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 116 16.05.2024 16:23 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67518 ФПД: 258834701762269 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T162307&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67518&fm=258834701762269&tin=02508201610067®Number=0000000000091845&sum=61000 [16:23:06]StoreToDocumentArchive [16:23:06]shift 357 fd 67518 [16:23:06]save to /storage/0357/doc_00067518 [16:23:06]save last doc name /storage/0357/doc_00067518 to /storage/kkm_last_doc_name [16:23:06]save OK [16:23:06]Clear old archive folders... [16:23:06]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:23:06]tlvbuf is 017DA390 [16:23:06]SAM_PROTO_ClearQueue [16:23:06]wFMCommunicate request_size=4 [16:23:06]MH_SAM_APDU [16:23:06]CAPDU: 80 09 00 00 [16:23:06]Write to MH i2c: E2 08 00 0F 15 80 09 00 00 00 00 00 00 96 [16:23:06]Write i2c OK [16:23:06]MH_I2C_Read... [16:23:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:23:06]Read from MH i2c: E2 [16:23:06]MH_I2C_Read... [16:23:06]Read from MH i2c: E2 03 00 [16:23:06]MH_I2C_Read... [16:23:06]Read from MH i2c: E2 03 00 0F 15 00 90 00 98 [16:23:06]RAPDU: 90 00 [16:23:06]wFMCommunicate OK [16:23:06]SAM_PROTO_ClearQueue done [16:23:06]KKMCreateOFDPacket [16:23:06]OFDProtocolAddRootSTLVToBuf [16:23:06]FM_MakeSignedData [16:23:06]FM_MakeSignedData [16:23:06]SAM_PROTO_SignData [16:23:06]wFMCommunicate request_size=4 [16:23:06]MH_SAM_APDU [16:23:06]CAPDU: 80 0D 01 02 [16:23:06]Write to MH i2c: E2 08 00 10 15 80 0D 01 02 00 00 00 00 9E [16:23:06]Write i2c OK [16:23:06]MH_I2C_Read... [16:23:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:23:07]Read from MH i2c: E2 [16:23:07]MH_I2C_Read... [16:23:07]Read from MH i2c: E2 03 00 [16:23:07]MH_I2C_Read... [16:23:07]Read from MH i2c: E2 03 00 10 15 00 90 00 99 [16:23:07]RAPDU: 90 00 [16:23:07]wFMCommunicate OK [16:23:07]wFMCommunicate request_size=255 [16:23:07]MH_SAM_APDU [16:23:07]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 23 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 5C EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 19 00 00 00 00 07 04 06 00 48 EE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 EB 32 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BE 07 01 00 35 04 06 00 [16:23:07]Write to MH i2c: E2 02 01 11 15 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 23 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 5C EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 19 00 00 00 00 07 04 06 00 48 EE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 EB 32 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BE 07 01 00 35 04 06 00 00 00 5E [16:23:07]Write i2c OK [16:23:07]MH_I2C_Read... [16:23:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:07]Read from MH i2c: E2 [16:23:07]MH_I2C_Read... [16:23:07]Read from MH i2c: E2 03 00 [16:23:07]MH_I2C_Read... [16:23:07]Read from MH i2c: E2 03 00 11 15 00 90 00 9A [16:23:07]RAPDU: 90 00 [16:23:07]wFMCommunicate OK [16:23:07]wFMCommunicate request_size=11 [16:23:07]MH_SAM_APDU [16:23:07]CAPDU: 80 0D 02 02 06 EB 68 A6 74 3E DD [16:23:07]Write to MH i2c: E2 0E 00 12 15 80 0D 02 02 06 00 EB 68 A6 74 3E DD 00 00 35 [16:23:07]Write i2c OK [16:23:07]MH_I2C_Read... [16:23:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:07]Read from MH i2c: E2 [16:23:07]MH_I2C_Read... [16:23:07]Read from MH i2c: E2 03 00 [16:23:07]MH_I2C_Read... [16:23:07]Read from MH i2c: E2 03 00 12 15 00 90 00 9B [16:23:07]RAPDU: 90 00 [16:23:07]wFMCommunicate OK [16:23:07]wFMCommunicate request_size=4 [16:23:07]MH_SAM_APDU [16:23:07]CAPDU: 80 0D 03 02 [16:23:07]Write to MH i2c: E2 08 00 13 15 80 0D 03 02 00 00 00 00 A3 [16:23:07]Write i2c OK [16:23:07]MH_I2C_Read... [16:23:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:23:07]Read from MH i2c: E2 [16:23:07]MH_I2C_Read... [16:23:07]Read from MH i2c: E2 0B 00 [16:23:07]MH_I2C_Read... [16:23:07]Read from MH i2c: E2 0B 00 13 15 00 62 AB 1F 60 F9 D7 80 D2 90 00 52 [16:23:07]RAPDU: 62 AB 1F 60 F9 D7 80 D2 90 00 [16:23:07]wFMCommunicate OK [16:23:07]SAM_PROTO_SignData done [16:23:07]FM_MakeSignedData done [16:23:07]CreateOFDProtocolMessage [16:23:07]wFMCommunicate request_size=4 [16:23:07]MH_SAM_APDU [16:23:07]CAPDU: 80 11 00 00 [16:23:07]Write to MH i2c: E2 08 00 14 15 80 11 00 00 00 00 00 00 A3 [16:23:07]Write i2c OK [16:23:07]MH_I2C_Read... [16:23:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:07]Read from MH i2c: E2 [16:23:07]MH_I2C_Read... [16:23:07]Read from MH i2c: E2 17 00 [16:23:07]MH_I2C_Read... [16:23:07]Read from MH i2c: E2 17 00 14 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F9 [16:23:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:23:07]wFMCommunicate OK [16:23:07]CreateOFDProtocolMessage done [16:23:07]OFDSenderStorePacket 67518 [16:23:07]StoreOFDPacket docnum=67518 [16:23:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 EA A4 08 01 5D 93 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 23 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 5C EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 19 00 00 00 00 07 04 06 00 48 EE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 EB 32 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BE 07 01 00 35 04 06 00 EB 68 A6 74 3E DD 62 AB 1F 60 F9 D7 80 D2 [16:23:07]CheckFolder [16:23:07]dirname=/storage/ofd_packets [16:23:07]CheckFolder done [16:23:07]ProducePacketName [16:23:07]name=ofd_packets/00067518 [16:23:07]NVStorageSaveData ofd_packets/00067518 [16:23:07]File name is /storage/ofd_packets/00067518 [16:23:07]Write 302 bytes [16:23:07]NVStorageSaveData done [16:23:07]OFDSenderStorePacket done [16:23:07]KKMCreateOFDPacket done [16:23:07]NVStorageSaveData kkm_last_timestamp [16:23:07]File name is /storage/kkm_last_timestamp [16:23:07]Write 4 bytes [16:23:07]NVStorageSaveData done [16:23:07]ExternCall_PrintAddStr [16:23:07]wPrintStart [16:23:07]Write to MH i2c: 01 00 00 15 15 2A [16:23:07]Write i2c OK [16:23:07]MH_I2C_Read... [16:23:07]Read from MH i2c: 01 [16:23:07]MH_I2C_Read... [16:23:07]Read from MH i2c: 01 07 00 [16:23:07]MH_I2C_Read... [16:23:07]Read from MH i2c: 01 07 00 15 15 00 00 00 00 00 FF 0F 3F [16:23:07]RasterBufferAndPrint [16:23:07]line Счет N : (1)507576 [16:23:07]line ИНН: 02508201610067 [16:23:07]line Контрольно-Кассовый Чек [16:23:07]line ПРОДАЖА [16:23:07]line ТРК (МРК, ГНК) : 12 [16:23:07]line Товар: 2710124130 [16:23:07]line Super-92-К-5 [16:23:07]line 9.000 * 67.80 [16:23:07]line = 610.20 [16:23:07]line НДС 12% НСП 1% [16:23:07]line > о реализуемом товаре [16:23:07]line ОКРУГЛЕНИЕ: -0.20 [16:23:07]line ИТОГО: 610.00 [16:23:07]line Внесено: 610.00 [16:23:07]line СДАЧА: 0.00 [16:23:07]line НСП 1% : 5.40 [16:23:07]line НДС 12% : 64.80 [16:23:07]line Наличными: 610.00 [16:23:07]line Безнал.: 0.00 [16:23:07]line Место: АЗС № 91 "Партнер Нефть" [16:23:07]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [16:23:07]line СНО: Общий режим [16:23:07]line Чек 116 16.05.2024 16:23 [16:23:07]line Смена: 357 ФФД: 1.0 [16:23:07]line ЗНМ: 0300000119 [16:23:07]line РНМ: 0000000000091845 [16:23:07]line Версия ККМ: 001 [16:23:07]line ФМ: 0000000000871829 [16:23:07]line ФД: 67518 [16:23:07]line ФПД: 258834701762269 [16:23:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T162307&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67518&fm=258834701762269&tin=02508201610067®Number=0000000000091845&sum=61000 [16:23:07]written 0, free lines is 4095 [16:23:07]OFD Sender: Processing packet 67518 [packets to send 35, broken 34] [16:23:07]ProducePacketName [16:23:07]name=ofd_packets/00067518 [16:23:07]OFD Sender: To server: pG, [16:23:07]CommunicateWithHost lk.salyk.kg:30040 [16:23:07]ConnectInit lk.salyk.kg [16:23:07]Connected sock=10 [16:23: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 38 32 39 10 01 00 00 EA A4 08 01 5D 93 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 23 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 5C EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 19 00 00 00 00 07 04 06 00 48 EE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 EB 32 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BE 07 01 00 35 04 06 00 EB 68 A6 74 3E DD 62 AB 1F 60 F9 D7 80 D2 [16:23:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 83 2D 47 00 9E 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 38 32 39 10 04 04 00 BE 07 01 00 F4 03 04 00 C5 DA 45 66 B6 04 01 00 00 F7 C3 B4 63 84 9E B8 85 [16:23:08]CommunicateWithHost err = 0 [16:23:08]CheckOFDResponse [16:23:08]1017 (14) - 77093643461234 [16:23:08]1041 (16) - 0000000000871829 [16:23:08]1040 (4) - 67518 [16:23:08]1012 (4) - 16.05.2024 10:07 [16:23:08]1206 (1) - 0 [16:23:08]OFD Sender: Remove packet 67518 [16:23:08]ProducePacketName [16:23:08]name=ofd_packets/00067518 [16:23:08]NVStorageDeleteData [16:23:08]Write to MH i2c: 01 00 00 3F 15 54 [16:23:08]Write i2c OK [16:23:08]MH_I2C_Read... [16:23:08]Read from MH i2c: 01 [16:23:08]MH_I2C_Read... [16:23:08]Read from MH i2c: 01 07 00 [16:23:08]MH_I2C_Read... [16:23:08]Read from MH i2c: 01 07 00 3F 15 00 00 00 00 00 CB 0C 32 [16:23:08]RasterBufferAndPrint [16:23:08]line [16:23:08]line [16:23:08]line [16:23:08]line [16:23:08]line [16:23:08]written 0, free lines is 3281 [16:23:08]MH_Cut [16:23:08]Write to MH i2c: D1 01 00 46 15 01 2D [16:23:08]Write i2c OK [16:23:08]MH_I2C_Read... [16:23:08]Read from MH i2c: D1 [16:23:08]MH_I2C_Read... [16:23:08]Read from MH i2c: D1 01 00 [16:23:08]MH_I2C_Read... [16:23:08]Read from MH i2c: D1 01 00 46 15 00 2C [16:23:08]Write to MH i2c: 01 00 00 47 15 5C [16:23:08]Write i2c OK [16:23:08]MH_I2C_Read... [16:23:08]OFD Sender: No OFD packet to send [16:23:09]*** Cut start [16:23:09]*** Purtial cut [16:23:09]*** CUTSNS_PIN = 0 [16:23:09]*** Stage 1: CUTSNS_PIN = 1 [16:23:11]Read from MH i2c: 01 [16:23:11]MH_I2C_Read... [16:23:11]*** Stop cut motor [16:23:11]*** Cut end [16:23:11]Read from MH i2c: 01 07 00 [16:23:11]MH_I2C_Read... [16:23:11]Read from MH i2c: 01 07 00 47 15 00 00 00 00 00 FF 0F 71 [16:23:11]process_action close_receipt done [16:23:11]requested_data is exist [16:23:11]produce_requested_data [16:23:11]requested_item fm.sn is exist - process it [16:23:11]wFMCommunicate request_size=4 [16:23:11]MH_SAM_APDU [16:23:11]CAPDU: 80 11 00 00 [16:23:11]Write to MH i2c: E2 08 00 48 15 80 11 00 00 00 00 00 00 D7 [16:23:11]Write i2c OK [16:23:11]MH_I2C_Read... [16:23:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:11]Read from MH i2c: E2 [16:23:11]MH_I2C_Read... [16:23:11]Read from MH i2c: E2 17 00 [16:23:11]MH_I2C_Read... [16:23:11]Read from MH i2c: E2 17 00 48 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2D [16:23:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:23:11]wFMCommunicate OK [16:23:11]requested_item fd.num is exist - process it [16:23:11]SAM_PROTO_GetFieldsCounters [16:23:11]wFMCommunicate request_size=4 [16:23:11]MH_SAM_APDU [16:23:11]CAPDU: 80 13 00 00 [16:23:11]Write to MH i2c: E2 08 00 49 15 80 13 00 00 00 00 00 00 DA [16:23:11]Write i2c OK [16:23:11]MH_I2C_Read... [16:23:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:23:11]Read from MH i2c: E2 [16:23:11]MH_I2C_Read... [16:23:11]Read from MH i2c: E2 62 00 [16:23:11]MH_I2C_Read... [16:23:11]Read from MH i2c: E2 62 00 49 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 BE 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [16:23: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 BE 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:23:11]wFMCommunicate OK [16:23:11]SAM_PROTO_GetFieldsCounters done [16:23:11]requested_item shift.num is exist - process it [16:23:11]requested_item shift.opened is exist - process it [16:23:11]req_shift_opened [16:23:11]FM_GetShiftState [16:23:11]SAM_PROTO_GetShiftState [16:23:11]wFMCommunicate request_size=4 [16:23:11]MH_SAM_APDU [16:23:11]CAPDU: 80 13 01 00 [16:23:11]Write to MH i2c: E2 08 00 4A 15 80 13 01 00 00 00 00 00 DC [16:23:11]Write i2c OK [16:23:11]MH_I2C_Read... [16:23:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:11]Read from MH i2c: E2 [16:23:11]MH_I2C_Read... [16:23:11]Read from MH i2c: E2 0E 00 [16:23:11]MH_I2C_Read... [16:23:11]Read from MH i2c: E2 0E 00 4A 15 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 88 [16:23:11]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [16:23:11]wFMCommunicate OK [16:23:11]SAM_PROTO_GetShiftState done [16:23:11]FM_GetShiftState done [16:23:11]req_shift_opened done [16:23:11]requested_item shift.open_date is exist - process it [16:23:11]req_shift_open_date [16:23:11]req_shift_open_date done [16:23:11]produce_requested_data done [16:23:11]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67518,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [16:23:11]process_action_free close_receipt [16:23:11]json_value_free [16:23:11]json_value_free done [16:23:11]process_json_proto returns [16:23:11]Send response to host [16:23:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67518,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [16:23:11]free response buf [16:23:11]execute_script done [16:23:11]execute_script returns [16:23:11]free content buf [16:23:11]Sock 8.Close socket [16:23:11]Sock 8.Thread stoped [16:23:13]OFD Sender: No OFD packet to send [16:23:18]OFD Sender: No OFD packet to send [16:23:23]OFD Sender: No OFD packet to send [16:23:28]OFD Sender: No OFD packet to send [16:23:33]OFD Sender: No OFD packet to send [16:23:38]OFD Sender: No OFD packet to send [16:23:43]OFD Sender: No OFD packet to send [16:23:48]OFD Sender: No OFD packet to send [16:23:53]OFD Sender: No OFD packet to send [16:23:58]OFD Sender: No OFD packet to send [16:24:03]OFD Sender: No OFD packet to send [16:24:08]OFD Sender: No OFD packet to send [16:24:13]OFD Sender: No OFD packet to send [16:24:18]OFD Sender: No OFD packet to send [16:24:23]OFD Sender: No OFD packet to send [16:24:28]OFD Sender: No OFD packet to send [16:24:33]OFD Sender: No OFD packet to send [16:24:38]OFD Sender: No OFD packet to send [16:24:43]OFD Sender: No OFD packet to send [16:24:48]OFD Sender: No OFD packet to send [16:24:53]OFD Sender: No OFD packet to send [16:24:58]OFD Sender: No OFD packet to send [16:25:03]OFD Sender: No OFD packet to send [16:25:08]OFD Sender: No OFD packet to send [16:25:13]OFD Sender: No OFD packet to send [16:25:18]OFD Sender: No OFD packet to send [16:25:23]OFD Sender: No OFD packet to send [16:25:28]OFD Sender: No OFD packet to send [16:25:33]OFD Sender: No OFD packet to send [16:25:38]OFD Sender: No OFD packet to send [16:25:43]OFD Sender: No OFD packet to send [16:25:48]OFD Sender: No OFD packet to send [16:25:53]OFD Sender: No OFD packet to send [16:25:58]OFD Sender: No OFD packet to send [16:26:03]OFD Sender: No OFD packet to send [16:26:08]OFD Sender: No OFD packet to send [16:26:13]OFD Sender: No OFD packet to send [16:26:18]OFD Sender: No OFD packet to send [16:26:23]OFD Sender: No OFD packet to send [16:26:28]OFD Sender: No OFD packet to send [16:26:33]OFD Sender: No OFD packet to send [16:26:38]OFD Sender: No OFD packet to send [16:26:43]OFD Sender: No OFD packet to send [16:26:48]OFD Sender: No OFD packet to send [16:26:53]OFD Sender: No OFD packet to send [16:26:58]OFD Sender: No OFD packet to send [16:27:03]OFD Sender: No OFD packet to send [16:27:08]OFD Sender: No OFD packet to send [16:27:13]OFD Sender: No OFD packet to send [16:27:18]OFD Sender: No OFD packet to send [16:27:23]OFD Sender: No OFD packet to send [16:27:28]OFD Sender: No OFD packet to send [16:27:33]OFD Sender: No OFD packet to send [16:27:38]OFD Sender: No OFD packet to send [16:27:43]OFD Sender: No OFD packet to send [16:27:48]OFD Sender: No OFD packet to send [16:27:53]OFD Sender: No OFD packet to send [16:27:58]OFD Sender: No OFD packet to send [16:28:03]OFD Sender: No OFD packet to send [16:28:08]OFD Sender: No OFD packet to send [16:28:13]OFD Sender: No OFD packet to send [16:28:18]OFD Sender: No OFD packet to send [16:28:23]OFD Sender: No OFD packet to send [16:28:28]OFD Sender: No OFD packet to send [16:28:33]OFD Sender: No OFD packet to send [16:28:38]OFD Sender: No OFD packet to send [16:28:43]OFD Sender: No OFD packet to send [16:28:48]OFD Sender: No OFD packet to send [16:28:53]OFD Sender: No OFD packet to send [16:28:58]OFD Sender: No OFD packet to send [16:29:03]OFD Sender: No OFD packet to send [16:29:08]OFD Sender: No OFD packet to send [16:29:13]OFD Sender: No OFD packet to send [16:29:18]OFD Sender: No OFD packet to send [16:29:23]OFD Sender: No OFD packet to send [16:29:28]OFD Sender: No OFD packet to send [16:29:33]OFD Sender: No OFD packet to send [16:29:38]OFD Sender: No OFD packet to send [16:29:43]OFD Sender: No OFD packet to send [16:29:48]OFD Sender: No OFD packet to send [16:29:53]OFD Sender: No OFD packet to send [16:29:58]OFD Sender: No OFD packet to send [16:30:03]OFD Sender: No OFD packet to send [16:30:08]OFD Sender: No OFD packet to send [16:30:13]OFD Sender: No OFD packet to send [16:30:19]OFD Sender: No OFD packet to send [16:30:24]OFD Sender: No OFD packet to send [16:30:29]OFD Sender: No OFD packet to send [16:30:34]OFD Sender: No OFD packet to send [16:30:39]OFD Sender: No OFD packet to send [16:30:44]OFD Sender: No OFD packet to send [16:30:49]OFD Sender: No OFD packet to send [16:30:54]OFD Sender: No OFD packet to send [16:30:59]OFD Sender: No OFD packet to send [16:31:04]OFD Sender: No OFD packet to send [16:31:09]OFD Sender: No OFD packet to send [16:31:14]OFD Sender: No OFD packet to send [16:31:19]OFD Sender: No OFD packet to send [16:31:24]OFD Sender: No OFD packet to send [16:31:29]OFD Sender: No OFD packet to send [16:31:34]OFD Sender: No OFD packet to send [16:31:39]OFD Sender: No OFD packet to send [16:31:44]OFD Sender: No OFD packet to send [16:31:49]OFD Sender: No OFD packet to send [16:31:54]OFD Sender: No OFD packet to send [16:31:59]OFD Sender: No OFD packet to send [16:32:04]OFD Sender: No OFD packet to send [16:32:09]OFD Sender: No OFD packet to send [16:32:14]OFD Sender: No OFD packet to send [16:32:19]OFD Sender: No OFD packet to send [16:32:24]OFD Sender: No OFD packet to send [16:32:29]OFD Sender: No OFD packet to send [16:32:34]OFD Sender: No OFD packet to send [16:32:39]OFD Sender: No OFD packet to send [16:32:44]OFD Sender: No OFD packet to send [16:32:49]OFD Sender: No OFD packet to send [16:32:54]OFD Sender: No OFD packet to send [16:32:59]OFD Sender: No OFD packet to send [16:33:04]OFD Sender: No OFD packet to send [16:33:09]OFD Sender: No OFD packet to send [16:33:11]accept exits with 9 [16:33:11]New connection [16:33:11]New thread 3067039076 created [16:33:11]Thread 3067182436 joined [16:33:11]Waiting for new connection... [16:33:11] Sock 9.Parse request [16:33:11]Sock 9.Check first char [16:33:11]Sock 9.First char is OK [16:33:11]request: POST /json_proto HTTP/1.0 [16:33:11]Method: POST [16:33:11]URL: /json_proto [16:33:11]Method is POST - this is cgi request [16:33:11]url: /json_proto [16:33:11]query_string will be loaded in cgi processing [16:33:11]execute_cgi json_proto POST (null) [16:33:11]execute_cgi path=json_proto method=POST [16:33:11]POST find Content-Length [16:33:11]Host: 172.17.41.195:8080 [16:33:11]Content-Length: 1171 [16:33:11]Content-Type: application/json [16:33:11] [16:33:11]POST finish read [16:33:11]Found Content-Length = 1171 [16:33:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507577\u000A16.05.2024 16:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 60.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 4482.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30059895\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:33:11]execute_script... [16:33:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507577\u000A16.05.2024 16:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 60.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 4482.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30059895\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:33:11]POST & json_proto [16:33:11]process_json_proto [16:33:11]json parsed OK: [16:33:11]protocol is kg_v1.0 [16:33:11]action value=print_text [16:33:11]process_action print_text [16:33:11]cmd_print_text [16:33:11]ExternCall_PrintAddStr [16:33:11]wPrintStart [16:33:11]Write to MH i2c: 01 00 00 4B 15 60 [16:33:11]Write i2c OK [16:33:11]MH_I2C_Read... [16:33:11]Read from MH i2c: 01 [16:33:11]MH_I2C_Read... [16:33:11]Read from MH i2c: 01 07 00 [16:33:11]MH_I2C_Read... [16:33:11]Read from MH i2c: 01 07 00 4B 15 00 00 00 00 00 FF 0F 75 [16:33:11]RasterBufferAndPrint [16:33:11]line *****ТОВАРНЫЙ ЧЕК***** [16:33:11]line АЗС-91 [16:33:11]line Партнер нефть [16:33:11]line 02508201610067 [16:33:11]line Кассир : Пайзулдаева А. [16:33:11]line Счет N : (1)507577 [16:33:11]line 16.05.2024 16:15 [16:33:11]line ПРОДАЖА [16:33:11]line ТРК (МРК, ГНК): 41 [16:33:11]line Вид ГСМ : 2710194210 [16:33:11]line ДТ-К-5 [16:33:11]line 60.000 x 74.70 [16:33:11]line ИТОГ: 4482.00 [16:33:11]line Тип оплаты: Талоны: ТК ГПНА Online [16:33:11]line 30059895 [16:33:11]line ______________________ [16:33:11]line (подпись) [16:33:11]written 0, free lines is 4095 [16:33:11]Write to MH i2c: 01 00 00 5F 15 74 [16:33:11]Write i2c OK [16:33:11]MH_I2C_Read... [16:33:11]Read from MH i2c: 01 [16:33:11]MH_I2C_Read... [16:33:11]Read from MH i2c: 01 07 00 [16:33:11]MH_I2C_Read... [16:33:11]Read from MH i2c: 01 07 00 5F 15 00 00 00 00 00 0F 0E 98 [16:33:11]RasterBufferAndPrint [16:33:11]line [16:33:11]line [16:33:11]line [16:33:11]line [16:33:11]line [16:33:11]written 0, free lines is 3600 [16:33:11]MH_Cut [16:33:11]Write to MH i2c: D1 01 00 66 15 01 4D [16:33:11]Write i2c OK [16:33:11]MH_I2C_Read... [16:33:11]Read from MH i2c: D1 [16:33:11]MH_I2C_Read... [16:33:11]Read from MH i2c: D1 01 00 [16:33:11]MH_I2C_Read... [16:33:11]Read from MH i2c: D1 01 00 66 15 00 4C [16:33:11]Write to MH i2c: 01 00 00 67 15 7C [16:33:11]Write i2c OK [16:33:11]MH_I2C_Read... [16:33:12]*** Cut start [16:33:12]*** Purtial cut [16:33:12]*** Stage 1: CUTSNS_PIN = 1 [16:33:12]Read from MH i2c: 01 [16:33:12]MH_I2C_Read... [16:33:12]Read from MH i2c: 01 07 00 [16:33:12]MH_I2C_Read... [16:33:12]*** Stop cut motor [16:33:12]*** Cut end [16:33:12]Read from MH i2c: 01 07 00 67 15 00 00 00 00 00 FF 0F 91 [16:33:12]process_action print_text done [16:33:12]requested_data is exist [16:33:12]produce_requested_data [16:33:12]requested_item fm.sn is exist - process it [16:33:12]wFMCommunicate request_size=4 [16:33:12]MH_SAM_APDU [16:33:12]CAPDU: 80 11 00 00 [16:33:12]Write to MH i2c: E2 08 00 68 15 80 11 00 00 00 00 00 00 F7 [16:33:12]Write i2c OK [16:33:12]MH_I2C_Read... [16:33:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:12]Read from MH i2c: E2 [16:33:12]MH_I2C_Read... [16:33:12]Read from MH i2c: E2 17 00 [16:33:12]MH_I2C_Read... [16:33:12]Read from MH i2c: E2 17 00 68 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 4D [16:33:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:33:12]wFMCommunicate OK [16:33:12]requested_item fd.num is exist - process it [16:33:12]SAM_PROTO_GetFieldsCounters [16:33:12]wFMCommunicate request_size=4 [16:33:12]MH_SAM_APDU [16:33:12]CAPDU: 80 13 00 00 [16:33:12]Write to MH i2c: E2 08 00 69 15 80 13 00 00 00 00 00 00 FA [16:33:12]Write i2c OK [16:33:12]MH_I2C_Read... [16:33:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:33:12]Read from MH i2c: E2 [16:33:12]MH_I2C_Read... [16:33:12]Read from MH i2c: E2 62 00 [16:33:12]MH_I2C_Read... [16:33:12]Read from MH i2c: E2 62 00 69 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 BE 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [16:33: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 BE 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:33:12]wFMCommunicate OK [16:33:12]SAM_PROTO_GetFieldsCounters done [16:33:12]requested_item shift.num is exist - process it [16:33:12]requested_item shift.opened is exist - process it [16:33:12]req_shift_opened [16:33:12]FM_GetShiftState [16:33:12]SAM_PROTO_GetShiftState [16:33:12]wFMCommunicate request_size=4 [16:33:12]MH_SAM_APDU [16:33:12]CAPDU: 80 13 01 00 [16:33:12]Write to MH i2c: E2 08 00 6A 15 80 13 01 00 00 00 00 00 FC [16:33:12]Write i2c OK [16:33:12]MH_I2C_Read... [16:33:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:12]Read from MH i2c: E2 [16:33:12]MH_I2C_Read... [16:33:12]Read from MH i2c: E2 0E 00 [16:33:12]MH_I2C_Read... [16:33:12]Read from MH i2c: E2 0E 00 6A 15 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 A8 [16:33:12]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [16:33:12]wFMCommunicate OK [16:33:12]SAM_PROTO_GetShiftState done [16:33:12]FM_GetShiftState done [16:33:12]req_shift_opened done [16:33:12]requested_item shift.open_date is exist - process it [16:33:12]req_shift_open_date [16:33:12]req_shift_open_date done [16:33:12]produce_requested_data done [16:33:12]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67518,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [16:33:12]process_action_free print_text [16:33:12]json_value_free [16:33:12]json_value_free done [16:33:12]process_json_proto returns [16:33:12]Send response to host [16:33:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67518,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [16:33:12]free response buf [16:33:12]execute_script done [16:33:12]execute_script returns [16:33:12]free content buf [16:33:12]Sock 9.Close socket [16:33:12]Sock 9.Thread stoped [16:33:14]OFD Sender: No OFD packet to send [16:33:19]OFD Sender: No OFD packet to send [16:33:19]int [16:33:19]Write to MH i2c: 01 00 00 6B 15 80 [16:33:19]*** FLAG_PRN_PAP1 set [16:33:19]Write i2c OK [16:33:19]MH_I2C_Read... [16:33:19]Read from MH i2c: 01 [16:33:19]MH_I2C_Read... [16:33:19]Read from MH i2c: 01 07 00 [16:33:19]MH_I2C_Read... [16:33:19]Read from MH i2c: 01 07 00 6B 15 00 01 00 00 00 FF 0F 96 [16:33:19]state=0 [16:33:19]No paper [16:33:24]OFD Sender: No OFD packet to send [16:33:29]OFD Sender: No OFD packet to send [16:33:34]OFD Sender: No OFD packet to send [16:33:39]OFD Sender: No OFD packet to send [16:33:44]OFD Sender: No OFD packet to send [16:33:49]OFD Sender: No OFD packet to send [16:33:54]OFD Sender: No OFD packet to send [16:33:56]int [16:33:56]Write to MH i2c: 01 00 00 6C 15 81 [16:33:56]*** FLAG_PRN_PAP1 reset [16:33:56]Write i2c OK [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: 01 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: 01 07 00 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: 01 07 00 6C 15 00 00 00 00 00 FF 0F 96 [16:33:56]state=0 [16:33:59]OFD Sender: No OFD packet to send [16:34:04]OFD Sender: No OFD packet to send [16:34:09]OFD Sender: No OFD packet to send [16:34:14]OFD Sender: No OFD packet to send [16:34:19]OFD Sender: No OFD packet to send [16:34:24]OFD Sender: No OFD packet to send [16:34:29]OFD Sender: No OFD packet to send [16:34:34]OFD Sender: No OFD packet to send [16:34:39]OFD Sender: No OFD packet to send [16:34:44]OFD Sender: No OFD packet to send [16:34:49]OFD Sender: No OFD packet to send [16:34:54]OFD Sender: No OFD packet to send [16:34:59]OFD Sender: No OFD packet to send [16:35:04]OFD Sender: No OFD packet to send [16:35:09]OFD Sender: No OFD packet to send [16:35:10]accept exits with 8 [16:35:10]New connection [16:35:10]New thread 3067182436 created [16:35:10]Thread 3067039076 joined [16:35:10]Waiting for new connection... [16:35:10] Sock 8.Parse request [16:35:10]Sock 8.Check first char [16:35:10]Sock 8.First char is OK [16:35:10]request: POST /json_proto HTTP/1.0 [16:35:10]Method: POST [16:35:10]URL: /json_proto [16:35:10]Method is POST - this is cgi request [16:35:10]url: /json_proto [16:35:10]query_string will be loaded in cgi processing [16:35:10]execute_cgi json_proto POST (null) [16:35:10]execute_cgi path=json_proto method=POST [16:35:10]POST find Content-Length [16:35:10]Host: 172.17.41.195:8080 [16:35:10]Content-Length: 679 [16:35:10]Content-Type: application/json [16:35:10] [16:35:10]POST finish read [16:35:10]Found Content-Length = 679 [16:35:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507578", "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" : 74.70, "quantity" : 46.990, "sum" : 3510.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3510.00, "total" : 3510.00, "payments": [ { "type": 0, "sum" : 3510.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:10]execute_script... [16:35: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)507578", "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" : 74.70, "quantity" : 46.990, "sum" : 3510.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3510.00, "total" : 3510.00, "payments": [ { "type": 0, "sum" : 3510.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:10]POST & json_proto [16:35:10]process_json_proto [16:35:10]json parsed OK: [16:35:10]protocol is kg_v1.0 [16:35:10]action value=close_receipt [16:35:10]process_action close_receipt [16:35:10]cmd_close_receipt [16:35:10]MH_GetDate [16:35:10]Write to MH i2c: F0 00 00 6D 15 71 [16:35:10]Write i2c OK [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: F0 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: F0 09 00 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: F0 09 00 6D 15 00 C0 35 46 66 FC 21 6F 64 0B [16:35:10]GetLastDocTimeStamp 1715876587 [16:35:10]current date 1715877312 [16:35:10]FM_GetShiftState [16:35:10]SAM_PROTO_GetShiftState [16:35:10]wFMCommunicate request_size=4 [16:35:10]MH_SAM_APDU [16:35:10]CAPDU: 80 13 01 00 [16:35:10]Write to MH i2c: E2 08 00 6E 15 80 13 01 00 00 00 00 00 00 [16:35:10]Write i2c OK [16:35:10]MH_I2C_Read... [16:35:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:10]Read from MH i2c: E2 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: E2 0E 00 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: E2 0E 00 6E 15 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 AC [16:35:10]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [16:35:10]wFMCommunicate OK [16:35:10]SAM_PROTO_GetShiftState done [16:35:10]FM_GetShiftState done [16:35:10]opened in 1715818916 [16:35:10]opened+sec_in_day 1715905316 [16:35:10]quantity*price = 351015 [16:35:10]sum+1 = 351016 [16:35:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 3510.00 Внесено: 3510.00 СДАЧА: 0.00 НСП 1% : 31.06 НДС 12% : 372.76 Наличными: 3510.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 117 16.05.2024 16:35 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67519 ФПД: 91634177190453 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T163512&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67519&fm=91634177190453&tin=02508201610067®Number=0000000000091845&sum=351000 [16:35:11]StoreToDocumentArchive [16:35:11]shift 357 fd 67519 [16:35:11]save to /storage/0357/doc_00067519 [16:35:11]save last doc name /storage/0357/doc_00067519 to /storage/kkm_last_doc_name [16:35:11]save OK [16:35:11]Clear old archive folders... [16:35:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:35:11]tlvbuf is 017979E0 [16:35:11]SAM_PROTO_ClearQueue [16:35:11]wFMCommunicate request_size=4 [16:35:11]MH_SAM_APDU [16:35:11]CAPDU: 80 09 00 00 [16:35:11]Write to MH i2c: E2 08 00 7B 15 80 09 00 00 00 00 00 00 02 [16:35:11]Write i2c OK [16:35:11]MH_I2C_Read... [16:35:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:35:11]Read from MH i2c: E2 [16:35:11]MH_I2C_Read... [16:35:11]Read from MH i2c: E2 03 00 [16:35:11]MH_I2C_Read... [16:35:11]Read from MH i2c: E2 03 00 7B 15 00 90 00 04 [16:35:11]RAPDU: 90 00 [16:35:11]wFMCommunicate OK [16:35:11]SAM_PROTO_ClearQueue done [16:35:11]KKMCreateOFDPacket [16:35:11]OFDProtocolAddRootSTLVToBuf [16:35:11]FM_MakeSignedData [16:35:11]FM_MakeSignedData [16:35:11]SAM_PROTO_SignData [16:35:11]wFMCommunicate request_size=4 [16:35:11]MH_SAM_APDU [16:35:11]CAPDU: 80 0D 01 02 [16:35:11]Write to MH i2c: E2 08 00 7C 15 80 0D 01 02 00 00 00 00 0A [16:35:11]Write i2c OK [16:35:11]MH_I2C_Read... [16:35:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:35:11]Read from MH i2c: E2 [16:35:11]MH_I2C_Read... [16:35:11]Read from MH i2c: E2 03 00 [16:35:11]MH_I2C_Read... [16:35:11]Read from MH i2c: E2 03 00 7C 15 00 90 00 05 [16:35:11]RAPDU: 90 00 [16:35:11]wFMCommunicate OK [16:35:11]wFMCommunicate request_size=255 [16:35:11]MH_SAM_APDU [16:35: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 8E B7 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 27 5B 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 5B 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 22 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 91 00 00 00 00 07 04 06 00 18 5B 05 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 C0 35 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BF 07 01 00 35 04 06 00 53 57 3E 94 [16:35:11]Write to MH i2c: E2 02 01 7D 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 8E B7 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 27 5B 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 5B 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 22 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 91 00 00 00 00 07 04 06 00 18 5B 05 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 C0 35 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BF 07 01 00 35 04 06 00 53 57 3E 94 00 00 8D [16:35:11]Write i2c OK [16:35:11]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 7D 15 00 90 00 06 [16:35:12]RAPDU: 90 00 [16:35:12]wFMCommunicate OK [16:35:12]wFMCommunicate request_size=7 [16:35:12]MH_SAM_APDU [16:35:12]CAPDU: 80 0D 02 02 02 AA 35 [16:35:12]Write to MH i2c: E2 0A 00 7E 15 80 0D 02 02 02 00 AA 35 00 00 F0 [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 7E 15 00 90 00 07 [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 7F 15 80 0D 03 02 00 00 00 00 0F [16:35:12]Write i2c OK [16:35:12]MH_I2C_Read... [16:35:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:35:12]Read from MH i2c: E2 [16:35:12]MH_I2C_Read... [16:35:12]Read from MH i2c: E2 0B 00 [16:35:12]MH_I2C_Read... [16:35:12]Read from MH i2c: E2 0B 00 7F 15 00 87 6A 6F 83 2A C0 3C 86 90 00 9F [16:35:12]RAPDU: 87 6A 6F 83 2A C0 3C 86 90 00 [16:35:12]wFMCommunicate OK [16:35:12]SAM_PROTO_SignData done [16:35:12]FM_MakeSignedData done [16:35:12]CreateOFDProtocolMessage [16:35:12]wFMCommunicate request_size=4 [16:35:12]MH_SAM_APDU [16:35:12]CAPDU: 80 11 00 00 [16:35:12]Write to MH i2c: E2 08 00 80 15 80 11 00 00 00 00 00 00 0F [16:35:12]Write i2c OK [16:35:12]MH_I2C_Read... [16:35:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:12]Read from MH i2c: E2 [16:35:12]MH_I2C_Read... [16:35:12]Read from MH i2c: E2 17 00 [16:35:12]MH_I2C_Read... [16:35:12]Read from MH i2c: E2 17 00 80 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 65 [16:35:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:35:12]wFMCommunicate OK [16:35:12]CreateOFDProtocolMessage done [16:35:12]OFDSenderStorePacket 67519 [16:35:12]StoreOFDPacket docnum=67519 [16:35:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 7D EF 04 01 77 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 8E B7 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 27 5B 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 5B 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 22 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 91 00 00 00 00 07 04 06 00 18 5B 05 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 C0 35 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BF 07 01 00 35 04 06 00 53 57 3E 94 AA 35 87 6A 6F 83 2A C0 3C 86 [16:35:12]CheckFolder [16:35:12]dirname=/storage/ofd_packets [16:35:12]CheckFolder done [16:35:12]ProducePacketName [16:35:12]name=ofd_packets/00067519 [16:35:12]NVStorageSaveData ofd_packets/00067519 [16:35:12]File name is /storage/ofd_packets/00067519 [16:35:12]Write 298 bytes [16:35:12]NVStorageSaveData done [16:35:12]OFDSenderStorePacket done [16:35:12]KKMCreateOFDPacket done [16:35:12]NVStorageSaveData kkm_last_timestamp [16:35:12]File name is /storage/kkm_last_timestamp [16:35:12]Write 4 bytes [16:35:12]NVStorageSaveData done [16:35:12]ExternCall_PrintAddStr [16:35:12]wPrintStart [16:35:12]Write to MH i2c: 01 00 00 81 15 96 [16:35:12]Write i2c OK [16:35:12]MH_I2C_Read... [16:35:12]Read from MH i2c: 01 [16:35:12]MH_I2C_Read... [16:35:12]Read from MH i2c: 01 07 00 [16:35:12]MH_I2C_Read... [16:35:12]Read from MH i2c: 01 07 00 81 15 00 00 00 00 00 FF 0F AB [16:35:12]RasterBufferAndPrint [16:35:12]line Счет N : (1)507578 [16:35:12]line ИНН: 02508201610067 [16:35:12]line Контрольно-Кассовый Чек [16:35:12]line ПРОДАЖА [16:35:12]line ТРК (МРК, ГНК) : 11 [16:35:12]line Товар: 2710194210 [16:35:12]line ДТ-К-5 [16:35:12]line 46.990 * 74.70 [16:35:12]line = 3510.15 [16:35:12]line НДС 12% НСП 1% [16:35:12]line > о реализуемом товаре [16:35:12]line ОКРУГЛЕНИЕ: -0.15 [16:35:12]line ИТОГО: 3510.00 [16:35:12]line Внесено: 3510.00 [16:35:12]line СДАЧА: 0.00 [16:35:12]line НСП 1% : 31.06 [16:35:12]line НДС 12% : 372.76 [16:35:12]line Наличными: 3510.00 [16:35:12]line Безнал.: 0.00 [16:35:12]line Место: АЗС № 91 "Партнер Нефть" [16:35:12]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [16:35:12]line СНО: Общий режим [16:35:12]line Чек 117 16.05.2024 16:35 [16:35:12]line Смена: 357 ФФД: 1.0 [16:35:12]line ЗНМ: 0300000119 [16:35:12]line РНМ: 0000000000091845 [16:35:12]line Версия ККМ: 001 [16:35:12]line ФМ: 0000000000871829 [16:35:12]line ФД: 67519 [16:35:12]line ФПД: 91634177190453 [16:35:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T163512&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67519&fm=91634177190453&tin=02508201610067®Number=0000000000091845&sum=351000 [16:35:12]OFD Sender: Processing packet 67519 [packets to send 35, broken 34] [16:35:12]ProducePacketName [16:35:12]name=ofd_packets/00067519 [16:35:12]OFD Sender: To server: pG, [16:35:12]CommunicateWithHost lk.salyk.kg:30040 [16:35:12]ConnectInit lk.salyk.kg [16:35:12]written 0, free lines is 4095 [16:35:12]Connected sock=10 [16:35: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 38 32 39 0C 01 00 00 7D EF 04 01 77 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 8E B7 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 27 5B 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 5B 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 22 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 91 00 00 00 00 07 04 06 00 18 5B 05 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 C0 35 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BF 07 01 00 35 04 06 00 53 57 3E 94 AA 35 87 6A 6F 83 2A C0 3C 86 [16:35:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 90 B9 47 00 86 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 38 32 39 10 04 04 00 BF 07 01 00 F4 03 04 00 9A DD 45 66 B6 04 01 00 00 03 86 9D 48 BC 97 0F 4A [16:35:12]CommunicateWithHost err = 0 [16:35:12]CheckOFDResponse [16:35:12]1017 (14) - 77093643461234 [16:35:12]1041 (16) - 0000000000871829 [16:35:12]1040 (4) - 67519 [16:35:12]1012 (4) - 16.05.2024 10:19 [16:35:12]1206 (1) - 0 [16:35:12]OFD Sender: Remove packet 67519 [16:35:12]ProducePacketName [16:35:12]name=ofd_packets/00067519 [16:35:12]NVStorageDeleteData [16:35:13]Write to MH i2c: 01 00 00 AB 15 C0 [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 AB 15 00 00 00 00 00 C8 0C 9B [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 3278 [16:35:13]MH_Cut [16:35:13]Write to MH i2c: D1 01 00 B2 15 01 99 [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 B2 15 00 98 [16:35:13]Write to MH i2c: 01 00 00 B3 15 C8 [16:35:13]Write i2c OK [16:35:13]MH_I2C_Read... [16:35:13]OFD Sender: No OFD packet to send [16:35:13]*** Cut start [16:35:13]*** Purtial cut [16:35:13]*** CUTSNS_PIN = 0 [16:35:14]*** Stage 1: CUTSNS_PIN = 1 [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 B3 15 00 00 00 00 00 FF 0F DD [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 B4 15 80 11 00 00 00 00 00 00 43 [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 B4 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 99 [16:35:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 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 B5 15 80 13 00 00 00 00 00 00 46 [16:35:15]Write i2c OK [16:35:15]MH_I2C_Read... [16:35:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:35:16]Read from MH i2c: E2 [16:35:16]MH_I2C_Read... [16:35:16]Read from MH i2c: E2 62 00 [16:35:16]MH_I2C_Read... [16:35:16]Read from MH i2c: E2 62 00 B5 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 BF 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [16:35: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 BF 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:35:16]wFMCommunicate OK [16:35:16]SAM_PROTO_GetFieldsCounters done [16:35:16]requested_item shift.num is exist - process it [16:35:16]requested_item shift.opened is exist - process it [16:35:16]req_shift_opened [16:35:16]FM_GetShiftState [16:35:16]SAM_PROTO_GetShiftState [16:35:16]wFMCommunicate request_size=4 [16:35:16]MH_SAM_APDU [16:35:16]CAPDU: 80 13 01 00 [16:35:16]Write to MH i2c: E2 08 00 B6 15 80 13 01 00 00 00 00 00 48 [16:35:16]Write i2c OK [16:35:16]MH_I2C_Read... [16:35:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:16]Read from MH i2c: E2 [16:35:16]MH_I2C_Read... [16:35:16]Read from MH i2c: E2 0E 00 [16:35:16]MH_I2C_Read... [16:35:16]Read from MH i2c: E2 0E 00 B6 15 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 F4 [16:35:16]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [16:35:16]wFMCommunicate OK [16:35:16]SAM_PROTO_GetShiftState done [16:35:16]FM_GetShiftState done [16:35:16]req_shift_opened done [16:35:16]requested_item shift.open_date is exist - process it [16:35:16]req_shift_open_date [16:35:16]req_shift_open_date done [16:35:16]produce_requested_data done [16:35:16]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67519,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [16:35:16]process_action_free close_receipt [16:35:16]json_value_free [16:35:16]json_value_free done [16:35:16]process_json_proto returns [16:35:16]Send response to host [16:35:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67519,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [16:35:16]free response buf [16:35:16]execute_script done [16:35:16]execute_script returns [16:35:16]free content buf [16:35:16]Sock 8.Close socket [16:35:16]Sock 8.Thread stoped [16:35:18]OFD Sender: No OFD packet to send [16:35:23]OFD Sender: No OFD packet to send [16:35:28]OFD Sender: No OFD packet to send [16:35:33]OFD Sender: No OFD packet to send [16:35:38]OFD Sender: No OFD packet to send [16:35:43]OFD Sender: No OFD packet to send [16:35:48]OFD Sender: No OFD packet to send [16:35:53]OFD Sender: No OFD packet to send [16:35:58]OFD Sender: No OFD packet to send [16:36:03]OFD Sender: No OFD packet to send [16:36:08]OFD Sender: No OFD packet to send [16:36:13]OFD Sender: No OFD packet to send [16:36:18]OFD Sender: No OFD packet to send [16:36:23]OFD Sender: No OFD packet to send [16:36:28]OFD Sender: No OFD packet to send [16:36:33]OFD Sender: No OFD packet to send [16:36:38]OFD Sender: No OFD packet to send [16:36:43]OFD Sender: No OFD packet to send [16:36:48]OFD Sender: No OFD packet to send [16:36:53]OFD Sender: No OFD packet to send [16:36:58]OFD Sender: No OFD packet to send [16:37:03]OFD Sender: No OFD packet to send [16:37:08]OFD Sender: No OFD packet to send [16:37:13]OFD Sender: No OFD packet to send [16:37:18]OFD Sender: No OFD packet to send [16:37:23]OFD Sender: No OFD packet to send [16:37:28]OFD Sender: No OFD packet to send [16:37:33]OFD Sender: No OFD packet to send [16:37:38]OFD Sender: No OFD packet to send [16:37:43]OFD Sender: No OFD packet to send [16:37:47]accept exits with 9 [16:37:47]New connection [16:37:47]New thread 3067039076 created [16:37:47]Thread 3067182436 joined [16:37:47]Waiting for new connection... [16:37:47] Sock 9.Parse request [16:37:47]Sock 9.Check first char [16:37:47]Sock 9.First char is OK [16:37:47]request: POST /json_proto HTTP/1.0 [16:37:47]Method: POST [16:37:47]URL: /json_proto [16:37:47]Method is POST - this is cgi request [16:37:47]url: /json_proto [16:37:47]query_string will be loaded in cgi processing [16:37:47]execute_cgi json_proto POST (null) [16:37:47]execute_cgi path=json_proto method=POST [16:37:47]POST find Content-Length [16:37:47]Host: 172.17.41.195:8080 [16:37:47]Content-Length: 622 [16:37:47]Content-Type: application/json [16:37:47] [16:37:47]POST finish read [16:37:47]Found Content-Length = 622 [16:37:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12092", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 128.00, "quantity" : 1.000, "sum" : 128.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 128.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:47]execute_script... [16:37:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12092", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 128.00, "quantity" : 1.000, "sum" : 128.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 128.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:47]POST & json_proto [16:37:47]process_json_proto [16:37:47]json parsed OK: [16:37:47]protocol is kg_v1.0 [16:37:47]action value=close_receipt [16:37:47]process_action close_receipt [16:37:47]cmd_close_receipt [16:37:47]MH_GetDate [16:37:47]Write to MH i2c: F0 00 00 B7 15 BB [16:37:47]Write i2c OK [16:37:47]MH_I2C_Read... [16:37:47]Read from MH i2c: F0 [16:37:47]MH_I2C_Read... [16:37:47]Read from MH i2c: F0 09 00 [16:37:47]MH_I2C_Read... [16:37:47]Read from MH i2c: F0 09 00 B7 15 00 5D 36 46 66 FC 21 6F 64 F3 [16:37:47]GetLastDocTimeStamp 1715877312 [16:37:47]current date 1715877469 [16:37:47]FM_GetShiftState [16:37:47]SAM_PROTO_GetShiftState [16:37:47]wFMCommunicate request_size=4 [16:37:47]MH_SAM_APDU [16:37:47]CAPDU: 80 13 01 00 [16:37:47]Write to MH i2c: E2 08 00 B8 15 80 13 01 00 00 00 00 00 4A [16:37:47]Write i2c OK [16:37:47]MH_I2C_Read... [16:37:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:47]Read from MH i2c: E2 [16:37:47]MH_I2C_Read... [16:37:47]Read from MH i2c: E2 0E 00 [16:37:47]MH_I2C_Read... [16:37:47]Read from MH i2c: E2 0E 00 B8 15 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 F6 [16:37:47]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [16:37:47]wFMCommunicate OK [16:37:47]SAM_PROTO_GetShiftState done [16:37:47]FM_GetShiftState done [16:37:47]opened in 1715818916 [16:37:47]opened+sec_in_day 1715905316 [16:37:47]quantity*price = 12800 [16:37:47]sum+1 = 12801 [16:37:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 128.00 НСП 1% : 1.13 НДС 12% : 13.59 Наличными: 128.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 118 16.05.2024 16:37 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67520 ФПД: 204198497822550 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T163749&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67520&fm=204198497822550&tin=02508201610067®Number=0000000000091845&sum=12800 0 [16:37:49]StoreToDocumentArchive [16:37:49]shift 357 fd 67520 [16:37:49]save to /storage/0357/doc_00067520 [16:37:49]save last doc name /storage/0357/doc_00067520 to /storage/kkm_last_doc_name [16:37:49]save OK [16:37:49]Clear old archive folders... [16:37:49]ProcessDocumentItem done err = 0, tmpTLVsize=275 [16:37:49]tlvbuf is 017C2170 [16:37:49]SAM_PROTO_ClearQueue [16:37:49]wFMCommunicate request_size=4 [16:37:49]MH_SAM_APDU [16:37:49]CAPDU: 80 09 00 00 [16:37:49]Write to MH i2c: E2 08 00 C5 15 80 09 00 00 00 00 00 00 4C [16:37:49]Write i2c OK [16:37:49]MH_I2C_Read... [16:37:49]Read from MH i2c: E2 [16:37:49]MH_I2C_Read... [16:37:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:37:49]Read from MH i2c: E2 03 00 [16:37:49]MH_I2C_Read... [16:37:49]Read from MH i2c: E2 03 00 C5 15 00 90 00 4E [16:37:49]RAPDU: 90 00 [16:37:49]wFMCommunicate OK [16:37:49]SAM_PROTO_ClearQueue done [16:37:49]KKMCreateOFDPacket [16:37:49]OFDProtocolAddRootSTLVToBuf [16:37:49]FM_MakeSignedData [16:37:49]FM_MakeSignedData [16:37:49]SAM_PROTO_SignData [16:37:49]wFMCommunicate request_size=4 [16:37:49]MH_SAM_APDU [16:37:49]CAPDU: 80 0D 01 02 [16:37:49]Write to MH i2c: E2 08 00 C6 15 80 0D 01 02 00 00 00 00 54 [16:37:49]Write i2c OK [16:37:49]MH_I2C_Read... [16:37:49]Read from MH i2c: E2 [16:37:49]MH_I2C_Read... [16:37:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:37:49]Read from MH i2c: E2 03 00 [16:37:49]MH_I2C_Read... [16:37:49]Read from MH i2c: E2 03 00 C6 15 00 90 00 4F [16:37:49]RAPDU: 90 00 [16:37:49]wFMCommunicate OK [16:37:49]wFMCommunicate request_size=255 [16:37:49]MH_SAM_APDU [16:37:49]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 32 00 00 00 00 13 04 06 00 00 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 05 00 00 00 00 07 04 06 00 00 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 5D 36 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 [16:37:49]Write to MH i2c: E2 02 01 C7 15 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 32 00 00 00 00 13 04 06 00 00 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 05 00 00 00 00 07 04 06 00 00 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 5D 36 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 00 00 A6 [16:37:49]Write i2c OK [16:37:49]MH_I2C_Read... [16:37:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:49]Read from MH i2c: E2 [16:37:49]MH_I2C_Read... [16:37:49]Read from MH i2c: E2 03 00 [16:37:49]MH_I2C_Read... [16:37:49]Read from MH i2c: E2 03 00 C7 15 00 90 00 50 [16:37:49]RAPDU: 90 00 [16:37:49]wFMCommunicate OK [16:37:49]wFMCommunicate request_size=34 [16:37:49]MH_SAM_APDU [16:37:49]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C0 07 01 00 35 04 06 00 B9 B7 AA ED 27 56 [16:37:49]Write to MH i2c: E2 25 00 C8 15 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C0 07 01 00 35 04 06 00 B9 B7 AA ED 27 56 00 00 67 [16:37:49]Write i2c OK [16:37:49]MH_I2C_Read... [16:37:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:49]Read from MH i2c: E2 [16:37:49]MH_I2C_Read... [16:37:49]Read from MH i2c: E2 03 00 [16:37:49]MH_I2C_Read... [16:37:49]Read from MH i2c: E2 03 00 C8 15 00 90 00 51 [16:37:49]RAPDU: 90 00 [16:37:49]wFMCommunicate OK [16:37:49]wFMCommunicate request_size=4 [16:37:49]MH_SAM_APDU [16:37:49]CAPDU: 80 0D 03 02 [16:37:49]Write to MH i2c: E2 08 00 C9 15 80 0D 03 02 00 00 00 00 59 [16:37:49]Write i2c OK [16:37:49]MH_I2C_Read... [16:37:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:37:49]Read from MH i2c: E2 [16:37:49]MH_I2C_Read... [16:37:49]Read from MH i2c: E2 0B 00 [16:37:49]MH_I2C_Read... [16:37:49]Read from MH i2c: E2 0B 00 C9 15 00 F0 A5 60 73 34 58 EF D0 90 00 0D [16:37:49]RAPDU: F0 A5 60 73 34 58 EF D0 90 00 [16:37:49]wFMCommunicate OK [16:37:49]SAM_PROTO_SignData done [16:37:49]FM_MakeSignedData done [16:37:49]CreateOFDProtocolMessage [16:37:49]wFMCommunicate request_size=4 [16:37:49]MH_SAM_APDU [16:37:49]CAPDU: 80 11 00 00 [16:37:49]Write to MH i2c: E2 08 00 CA 15 80 11 00 00 00 00 00 00 59 [16:37:49]Write i2c OK [16:37:49]MH_I2C_Read... [16:37:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:49]Read from MH i2c: E2 [16:37:49]MH_I2C_Read... [16:37:49]Read from MH i2c: E2 17 00 [16:37:49]MH_I2C_Read... [16:37:49]Read from MH i2c: E2 17 00 CA 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AF [16:37:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:37:49]wFMCommunicate OK [16:37:49]CreateOFDProtocolMessage done [16:37:49]OFDSenderStorePacket 67520 [16:37:49]StoreOFDPacket docnum=67520 [16:37:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 27 01 00 00 DB FE 1F 01 10 BD 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 32 00 00 00 00 13 04 06 00 00 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 05 00 00 00 00 07 04 06 00 00 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 5D 36 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C0 07 01 00 35 04 06 00 B9 B7 AA ED 27 56 F0 A5 60 73 34 58 EF D0 [16:37:49]CheckFolder [16:37:49]dirname=/storage/ofd_packets [16:37:49]CheckFolder done [16:37:49]ProducePacketName [16:37:49]name=ofd_packets/00067520 [16:37:49]NVStorageSaveData ofd_packets/00067520 [16:37:49]File name is /storage/ofd_packets/00067520 [16:37:49]Write 325 bytes [16:37:49]NVStorageSaveData done [16:37:49]OFDSenderStorePacket done [16:37:49]KKMCreateOFDPacket done [16:37:49]NVStorageSaveData kkm_last_timestamp [16:37:49]File name is /storage/kkm_last_timestamp [16:37:49]Write 4 bytes [16:37:49]NVStorageSaveData done [16:37:49]ExternCall_PrintAddStr [16:37:49]wPrintStart [16:37:49]Write to MH i2c: 01 00 00 CB 15 E0 [16:37:49]Write i2c OK [16:37:49]MH_I2C_Read... [16:37:49]Read from MH i2c: 01 [16:37:49]MH_I2C_Read... [16:37:49]Read from MH i2c: 01 07 00 [16:37:49]MH_I2C_Read... [16:37:49]Read from MH i2c: 01 07 00 CB 15 00 00 00 00 00 FF 0F F5 [16:37:49]RasterBufferAndPrint [16:37:49]line Счет N : (3)12092 [16:37:49]line ИНН: 02508201610067 [16:37:49]line Контрольно-Кассовый Чек [16:37:49]line ПРОДАЖА [16:37:49]line Товар: 48743587 [16:37:49]line Сигареты Winston XStyle Silver [16:37:49]line 1.000 * 128.00 [16:37:49]line = 128.00 [16:37:49]line НДС 12% НСП 1% [16:37:49]line > о реализуемом товаре [16:37:49]line ИТОГО: 128.00 [16:37:49]line НСП 1% : 1.13 [16:37:49]line НДС 12% : 13.59 [16:37:49]line Наличными: 128.00 [16:37:49]line Безнал.: 0.00 [16:37:49]line Место: АЗС № 91 "Партнер Нефть" [16:37:49]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [16:37:49]line СНО: Общий режим [16:37:49]line Чек 118 16.05.2024 16:37 [16:37:49]line Смена: 357 ФФД: 1.0 [16:37:49]line ЗНМ: 0300000119 [16:37:49]line РНМ: 0000000000091845 [16:37:49]line Версия ККМ: 001 [16:37:49]line ФМ: 0000000000871829 [16:37:49]line ФД: 67520 [16:37:49]line ФПД: 204198497822550 [16:37:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T163749&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67520&fm=204198497822550&tin=02508201610067®Number=0000000000091845&sum=12800 [16:37:49]line 0 [16:37:49]written 0, free lines is 4095 [16:37:49]OFD Sender: Processing packet 67520 [packets to send 35, broken 34] [16:37:49]ProducePacketName [16:37:49]name=ofd_packets/00067520 [16:37:49]OFD Sender: To server: pG, [16:37:49]CommunicateWithHost lk.salyk.kg:30040 [16:37:49]ConnectInit lk.salyk.kg [16:37:50]Connected sock=10 [16:37: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 38 32 39 27 01 00 00 DB FE 1F 01 10 BD 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 32 00 00 00 00 13 04 06 00 00 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 05 00 00 00 00 07 04 06 00 00 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 5D 36 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C0 07 01 00 35 04 06 00 B9 B7 AA ED 27 56 F0 A5 60 73 34 58 EF D0 [16:37:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 FF EA 47 00 4E 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 38 32 39 10 04 04 00 C0 07 01 00 F4 03 04 00 37 DE 45 66 B6 04 01 00 00 86 ED 53 C9 F7 D6 5E 66 [16:37:50]CommunicateWithHost err = 0 [16:37:50]CheckOFDResponse [16:37:50]1017 (14) - 77093643461234 [16:37:50]1041 (16) - 0000000000871829 [16:37:50]1040 (4) - 67520 [16:37:50]1012 (4) - 16.05.2024 10:21 [16:37:50]1206 (1) - 0 [16:37:50]OFD Sender: Remove packet 67520 [16:37:50]ProducePacketName [16:37:50]name=ofd_packets/00067520 [16:37:50]NVStorageDeleteData [16:37:50]Write to MH i2c: 01 00 00 F3 15 08 [16:37:50]Write i2c OK [16:37:50]MH_I2C_Read... [16:37:50]Read from MH i2c: 01 [16:37:50]MH_I2C_Read... [16:37:50]Read from MH i2c: 01 07 00 [16:37:50]MH_I2C_Read... [16:37:50]Read from MH i2c: 01 07 00 F3 15 00 00 00 00 00 D8 0C F3 [16:37:50]RasterBufferAndPrint [16:37:50]line [16:37:50]line [16:37:50]line [16:37:50]line [16:37:50]line [16:37:50]written 0, free lines is 3292 [16:37:50]MH_Cut [16:37:50]Write to MH i2c: D1 01 00 FA 15 01 E1 [16:37:50]Write i2c OK [16:37:50]MH_I2C_Read... [16:37:50]Read from MH i2c: D1 [16:37:50]MH_I2C_Read... [16:37:50]Read from MH i2c: D1 01 00 [16:37:50]MH_I2C_Read... [16:37:50]Read from MH i2c: D1 01 00 FA 15 00 E0 [16:37:50]Write to MH i2c: 01 00 00 FB 15 10 [16:37:50]Write i2c OK [16:37:50]MH_I2C_Read... [16:37:50]OFD Sender: No OFD packet to send [16:37:51]*** Cut start [16:37:51]*** Purtial cut [16:37:51]*** Stage 1: CUTSNS_PIN = 1 [16:37:51]Read from MH i2c: 01 [16:37:51]MH_I2C_Read... [16:37:51]*** Stop cut motor [16:37:51]*** Cut end [16:37:51]Read from MH i2c: 01 07 00 [16:37:51]MH_I2C_Read... [16:37:51]Read from MH i2c: 01 07 00 FB 15 00 00 00 00 00 FF 0F 25 [16:37:51]process_action close_receipt done [16:37:51]requested_data is exist [16:37:51]produce_requested_data [16:37:51]requested_item fm.sn is exist - process it [16:37:51]wFMCommunicate request_size=4 [16:37:51]MH_SAM_APDU [16:37:51]CAPDU: 80 11 00 00 [16:37:51]Write to MH i2c: E2 08 00 FC 15 80 11 00 00 00 00 00 00 8B [16:37:51]Write i2c OK [16:37:51]MH_I2C_Read... [16:37:51]Read from MH i2c: E2 [16:37:51]MH_I2C_Read... [16:37:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:51]Read from MH i2c: E2 17 00 [16:37:51]MH_I2C_Read... [16:37:51]Read from MH i2c: E2 17 00 FC 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E1 [16:37:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:37:51]wFMCommunicate OK [16:37:51]requested_item fd.num is exist - process it [16:37:51]SAM_PROTO_GetFieldsCounters [16:37:51]wFMCommunicate request_size=4 [16:37:51]MH_SAM_APDU [16:37:51]CAPDU: 80 13 00 00 [16:37:51]Write to MH i2c: E2 08 00 FD 15 80 13 00 00 00 00 00 00 8E [16:37:51]Write i2c OK [16:37:51]MH_I2C_Read... [16:37:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:37:51]Read from MH i2c: E2 [16:37:51]MH_I2C_Read... [16:37:51]Read from MH i2c: E2 62 00 [16:37:51]MH_I2C_Read... [16:37:51]Read from MH i2c: E2 62 00 FD 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C0 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [16:37: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C0 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:37:51]wFMCommunicate OK [16:37:51]SAM_PROTO_GetFieldsCounters done [16:37:51]requested_item shift.num is exist - process it [16:37:51]requested_item shift.opened is exist - process it [16:37:51]req_shift_opened [16:37:51]FM_GetShiftState [16:37:51]SAM_PROTO_GetShiftState [16:37:51]wFMCommunicate request_size=4 [16:37:51]MH_SAM_APDU [16:37:51]CAPDU: 80 13 01 00 [16:37:51]Write to MH i2c: E2 08 00 FE 15 80 13 01 00 00 00 00 00 90 [16:37:51]Write i2c OK [16:37:51]MH_I2C_Read... [16:37:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:51]Read from MH i2c: E2 [16:37:51]MH_I2C_Read... [16:37:51]Read from MH i2c: E2 0E 00 [16:37:51]MH_I2C_Read... [16:37:51]Read from MH i2c: E2 0E 00 FE 15 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 3C [16:37:51]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [16:37:51]wFMCommunicate OK [16:37:51]SAM_PROTO_GetShiftState done [16:37:51]FM_GetShiftState done [16:37:51]req_shift_opened done [16:37:51]requested_item shift.open_date is exist - process it [16:37:51]req_shift_open_date [16:37:51]req_shift_open_date done [16:37:51]produce_requested_data done [16:37:51]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67520,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [16:37:51]process_action_free close_receipt [16:37:51]json_value_free [16:37:51]json_value_free done [16:37:51]process_json_proto returns [16:37:51]Send response to host [16:37:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67520,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [16:37:51]free response buf [16:37:51]execute_script done [16:37:51]execute_script returns [16:37:51]free content buf [16:37:51]Sock 9.Close socket [16:37:51]Sock 9.Thread stoped [16:37:52]accept exits with 8 [16:37:52]New connection [16:37:52]New thread 3067182436 created [16:37:52]Thread 3067039076 joined [16:37:52]Waiting for new connection... [16:37:52] Sock 8.Parse request [16:37:52]Sock 8.Check first char [16:37:52]Sock 8.First char is OK [16:37:52]request: POST /json_proto HTTP/1.0 [16:37:52]Method: POST [16:37:52]URL: /json_proto [16:37:52]Method is POST - this is cgi request [16:37:52]url: /json_proto [16:37:52]query_string will be loaded in cgi processing [16:37:52]execute_cgi json_proto POST (null) [16:37:52]execute_cgi path=json_proto method=POST [16:37:52]POST find Content-Length [16:37:52]Host: 172.17.41.195:8080 [16:37:52]Content-Length: 800 [16:37:52]Content-Type: application/json [16:37:52] [16:37:52]POST finish read [16:37:52]Found Content-Length = 800 [16:37:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507579", "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" : 74.70, "quantity" : 53.550, "sum" : 4000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 4000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:52]execute_script... [16:37: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)507579", "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" : 74.70, "quantity" : 53.550, "sum" : 4000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 4000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:52]POST & json_proto [16:37:52]process_json_proto [16:37:52]json parsed OK: [16:37:52]protocol is kg_v1.0 [16:37:52]action value=close_receipt [16:37:52]process_action close_receipt [16:37:52]cmd_close_receipt [16:37:52]MH_GetDate [16:37:52]Write to MH i2c: F0 00 00 FF 15 03 [16:37:52]Write i2c OK [16:37:52]MH_I2C_Read... [16:37:52]Read from MH i2c: F0 [16:37:52]MH_I2C_Read... [16:37:52]Read from MH i2c: F0 09 00 [16:37:52]MH_I2C_Read... [16:37:52]Read from MH i2c: F0 09 00 FF 15 00 62 36 46 66 FC 21 6F 64 40 [16:37:52]GetLastDocTimeStamp 1715877469 [16:37:52]current date 1715877474 [16:37:52]FM_GetShiftState [16:37:52]SAM_PROTO_GetShiftState [16:37:52]wFMCommunicate request_size=4 [16:37:52]MH_SAM_APDU [16:37:52]CAPDU: 80 13 01 00 [16:37:52]Write to MH i2c: E2 08 00 00 16 80 13 01 00 00 00 00 00 93 [16:37:52]Write i2c OK [16:37:52]MH_I2C_Read... [16:37:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:52]Read from MH i2c: E2 [16:37:52]MH_I2C_Read... [16:37:52]Read from MH i2c: E2 0E 00 [16:37:52]MH_I2C_Read... [16:37:52]Read from MH i2c: E2 0E 00 00 16 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 3F [16:37:52]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [16:37:52]wFMCommunicate OK [16:37:52]SAM_PROTO_GetShiftState done [16:37:52]FM_GetShiftState done [16:37:52]opened in 1715818916 [16:37:52]opened+sec_in_day 1715905316 [16:37:52]quantity*price = 400018 [16:37:52]sum+1 = 400020 [16:37:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.19 НСП 1% : 35.40 НДС 12% : 424.80 Наличными: 0.00 Безнал.: 4000.19 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 119 16.05.2024 16:37 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67521 ФПД: 8651575598302 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T163754&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67521&fm=8651575598302&tin=02508201610067®Number=0000000000091845&sum=400019 [16:37:54]StoreToDocumentArchive [16:37:54]shift 357 fd 67521 [16:37:54]save to /storage/0357/doc_00067521 [16:37:54]save last doc name /storage/0357/doc_00067521 to /storage/kkm_last_doc_name [16:37:54]save OK [16:37:54]Clear old archive folders... [16:37:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:37:54]tlvbuf is 01817970 [16:37:54]SAM_PROTO_ClearQueue [16:37:54]wFMCommunicate request_size=4 [16:37:54]MH_SAM_APDU [16:37:54]CAPDU: 80 09 00 00 [16:37:54]Write to MH i2c: E2 08 00 0D 16 80 09 00 00 00 00 00 00 95 [16:37:54]Write i2c OK [16:37:54]MH_I2C_Read... [16:37:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:37:54]Read from MH i2c: E2 [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: E2 03 00 [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: E2 03 00 0D 16 00 90 00 97 [16:37:54]RAPDU: 90 00 [16:37:54]wFMCommunicate OK [16:37:54]SAM_PROTO_ClearQueue done [16:37:54]KKMCreateOFDPacket [16:37:54]OFDProtocolAddRootSTLVToBuf [16:37:54]FM_MakeSignedData [16:37:54]FM_MakeSignedData [16:37:54]SAM_PROTO_SignData [16:37:54]wFMCommunicate request_size=4 [16:37:54]MH_SAM_APDU [16:37:54]CAPDU: 80 0D 01 02 [16:37:54]Write to MH i2c: E2 08 00 0E 16 80 0D 01 02 00 00 00 00 9D [16:37:54]Write i2c OK [16:37:54]MH_I2C_Read... [16:37:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:37:54]Read from MH i2c: E2 [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: E2 03 00 [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: E2 03 00 0E 16 00 90 00 98 [16:37:54]RAPDU: 90 00 [16:37:54]wFMCommunicate OK [16:37:54]wFMCommunicate request_size=255 [16:37:54]MH_SAM_APDU [16:37: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 2E D1 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 93 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 93 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 93 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 62 36 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C1 07 01 00 35 04 06 00 07 DE 5A 17 [16:37:54]Write to MH i2c: E2 02 01 0F 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 2E D1 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 93 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 93 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 93 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 62 36 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C1 07 01 00 35 04 06 00 07 DE 5A 17 00 00 18 [16:37:54]Write i2c OK [16:37:54]MH_I2C_Read... [16:37:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:54]Read from MH i2c: E2 [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: E2 03 00 [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: E2 03 00 0F 16 00 90 00 99 [16:37:54]RAPDU: 90 00 [16:37:54]wFMCommunicate OK [16:37:54]wFMCommunicate request_size=7 [16:37:54]MH_SAM_APDU [16:37:54]CAPDU: 80 0D 02 02 02 1C DE [16:37:54]Write to MH i2c: E2 0A 00 10 16 80 0D 02 02 02 00 1C DE 00 00 9E [16:37:54]Write i2c OK [16:37:54]MH_I2C_Read... [16:37:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:54]Read from MH i2c: E2 [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: E2 03 00 [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: E2 03 00 10 16 00 90 00 9A [16:37:54]RAPDU: 90 00 [16:37:54]wFMCommunicate OK [16:37:54]wFMCommunicate request_size=4 [16:37:54]MH_SAM_APDU [16:37:54]CAPDU: 80 0D 03 02 [16:37:54]Write to MH i2c: E2 08 00 11 16 80 0D 03 02 00 00 00 00 A2 [16:37:54]Write i2c OK [16:37:54]MH_I2C_Read... [16:37:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:37:54]Read from MH i2c: E2 [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: E2 0B 00 [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: E2 0B 00 11 16 00 76 10 65 79 EC AF 97 3F 90 00 78 [16:37:54]RAPDU: 76 10 65 79 EC AF 97 3F 90 00 [16:37:54]wFMCommunicate OK [16:37:54]SAM_PROTO_SignData done [16:37:54]FM_MakeSignedData done [16:37:54]CreateOFDProtocolMessage [16:37:54]wFMCommunicate request_size=4 [16:37:54]MH_SAM_APDU [16:37:54]CAPDU: 80 11 00 00 [16:37:54]Write to MH i2c: E2 08 00 12 16 80 11 00 00 00 00 00 00 A2 [16:37:54]Write i2c OK [16:37:54]MH_I2C_Read... [16:37:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:55]Read from MH i2c: E2 [16:37:55]MH_I2C_Read... [16:37:55]Read from MH i2c: E2 17 00 [16:37:55]MH_I2C_Read... [16:37:55]Read from MH i2c: E2 17 00 12 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F8 [16:37:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:37:55]wFMCommunicate OK [16:37:55]CreateOFDProtocolMessage done [16:37:55]OFDSenderStorePacket 67521 [16:37:55]StoreOFDPacket docnum=67521 [16:37:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 F1 11 04 01 26 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 2E D1 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 93 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 93 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 93 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 62 36 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C1 07 01 00 35 04 06 00 07 DE 5A 17 1C DE 76 10 65 79 EC AF 97 3F [16:37:55]CheckFolder [16:37:55]dirname=/storage/ofd_packets [16:37:55]CheckFolder done [16:37:55]ProducePacketName [16:37:55]name=ofd_packets/00067521 [16:37:55]NVStorageSaveData ofd_packets/00067521 [16:37:55]File name is /storage/ofd_packets/00067521 [16:37:55]Write 298 bytes [16:37:55]NVStorageSaveData done [16:37:55]OFDSenderStorePacket done [16:37:55]KKMCreateOFDPacket done [16:37:55]NVStorageSaveData kkm_last_timestamp [16:37:55]File name is /storage/kkm_last_timestamp [16:37:55]Write 4 bytes [16:37:55]NVStorageSaveData done [16:37:55]ExternCall_PrintAddStr [16:37:55]wPrintStart [16:37:55]Write to MH i2c: 01 00 00 13 16 29 [16:37:55]Write i2c OK [16:37:55]MH_I2C_Read... [16:37:55]Read from MH i2c: 01 [16:37:55]MH_I2C_Read... [16:37:55]Read from MH i2c: 01 07 00 [16:37:55]MH_I2C_Read... [16:37:55]Read from MH i2c: 01 07 00 13 16 00 00 00 00 00 FF 0F 3E [16:37:55]RasterBufferAndPrint [16:37:55]line Счет N : (1)507579 [16:37:55]line ИНН: 02508201610067 [16:37:55]line Контрольно-Кассовый Чек [16:37:55]line ПРОДАЖА [16:37:55]line ТРК (МРК, ГНК) : 31 [16:37:55]line Товар: 2710194210 [16:37:55]line ДТ-К-5 [16:37:55]line 53.550 * 74.70 [16:37:55]line = 4000.19 [16:37:55]line НДС 12% НСП 1% [16:37:55]line > о реализуемом товаре [16:37:55]line ИТОГО: 4000.19 [16:37:55]line НСП 1% : 35.40 [16:37:55]line НДС 12% : 424.80 [16:37:55]line Наличными: 0.00 [16:37:55]line Безнал.: 4000.19 [16:37:55]line Место: АЗС № 91 "Партнер Нефть" [16:37:55]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [16:37:55]line СНО: Общий режим [16:37:55]line Чек 119 16.05.2024 16:37 [16:37:55]line Смена: 357 ФФД: 1.0 [16:37:55]line ЗНМ: 0300000119 [16:37:55]line РНМ: 0000000000091845 [16:37:55]line Версия ККМ: 001 [16:37:55]line Платежная система: O! деньги [16:37:55]line ФМ: 0000000000871829 [16:37:55]line ФД: 67521 [16:37:55]line ФПД: 8651575598302 [16:37:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T163754&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67521&fm=8651575598302&tin=02508201610067®Number=0000000000091845&sum=400019 [16:37:55]written 0, free lines is 4095 [16:37:55]OFD Sender: Processing packet 67521 [packets to send 35, broken 34] [16:37:55]ProducePacketName [16:37:55]name=ofd_packets/00067521 [16:37:55]OFD Sender: To server: pG, [16:37:55]CommunicateWithHost lk.salyk.kg:30040 [16:37:55]ConnectInit lk.salyk.kg [16:37:55]Connected sock=11 [16:37: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 38 32 39 0C 01 00 00 F1 11 04 01 26 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 2E D1 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 93 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 93 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 93 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 62 36 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C1 07 01 00 35 04 06 00 07 DE 5A 17 1C DE 76 10 65 79 EC AF 97 3F [16:37:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 B0 28 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 38 32 39 10 04 04 00 C1 07 01 00 F4 03 04 00 3C DE 45 66 B6 04 01 00 00 10 1B 5E 45 69 DB 79 4B [16:37:55]CommunicateWithHost err = 0 [16:37:55]CheckOFDResponse [16:37:55]1017 (14) - 77093643461234 [16:37:55]1041 (16) - 0000000000871829 [16:37:55]1040 (4) - 67521 [16:37:55]1012 (4) - 16.05.2024 10:21 [16:37:55]1206 (1) - 0 [16:37:55]OFD Sender: Remove packet 67521 [16:37:55]ProducePacketName [16:37:55]name=ofd_packets/00067521 [16:37:55]NVStorageDeleteData [16:37:55]Write to MH i2c: 01 00 00 3C 16 52 [16:37:55]Write i2c OK [16:37:55]MH_I2C_Read... [16:37:55]Read from MH i2c: 01 [16:37:55]MH_I2C_Read... [16:37:55]Read from MH i2c: 01 07 00 [16:37:55]MH_I2C_Read... [16:37:55]Read from MH i2c: 01 07 00 3C 16 00 00 00 00 00 F7 0C 5C [16:37:55]RasterBufferAndPrint [16:37:55]line [16:37:55]line [16:37:55]line [16:37:55]line [16:37:55]line [16:37:55]written 0, free lines is 3328 [16:37:55]MH_Cut [16:37:55]Write to MH i2c: D1 01 00 43 16 01 2B [16:37:55]Write i2c OK [16:37:55]MH_I2C_Read... [16:37:55]Read from MH i2c: D1 [16:37:55]MH_I2C_Read... [16:37:55]Read from MH i2c: D1 01 00 [16:37:55]MH_I2C_Read... [16:37:55]Read from MH i2c: D1 01 00 43 16 00 2A [16:37:55]Write to MH i2c: 01 00 00 44 16 5A [16:37:55]Write i2c OK [16:37:55]MH_I2C_Read... [16:37:55]OFD Sender: No OFD packet to send [16:37:56]*** Cut start [16:37:56]*** Purtial cut [16:37:56]*** CUTSNS_PIN = 0 [16:37:56]*** Stage 1: CUTSNS_PIN = 1 [16:37:58]Read from MH i2c: 01 [16:37:58]MH_I2C_Read... [16:37:58]*** Stop cut motor [16:37:58]*** Cut end [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 44 16 00 00 00 00 00 FF 0F 6F [16:37:58]process_action close_receipt done [16:37:58]requested_data is exist [16:37:58]produce_requested_data [16:37:58]requested_item fm.sn is exist - process it [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 45 16 80 11 00 00 00 00 00 00 D5 [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 45 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2B [16:37:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:37:58]wFMCommunicate OK [16:37:58]requested_item fd.num is exist - process it [16:37:58]SAM_PROTO_GetFieldsCounters [16:37:58]wFMCommunicate request_size=4 [16:37:58]MH_SAM_APDU [16:37:58]CAPDU: 80 13 00 00 [16:37:58]Write to MH i2c: E2 08 00 46 16 80 13 00 00 00 00 00 00 D8 [16:37:58]Write i2c OK [16:37:58]MH_I2C_Read... [16:37:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:37:58]Read from MH i2c: E2 [16:37:58]MH_I2C_Read... [16:37:58]Read from MH i2c: E2 62 00 [16:37:58]MH_I2C_Read... [16:37:58]Read from MH i2c: E2 62 00 46 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C1 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [16:37:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C1 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:37:58]wFMCommunicate OK [16:37:58]SAM_PROTO_GetFieldsCounters done [16:37:58]requested_item shift.num is exist - process it [16:37:58]requested_item shift.opened is exist - process it [16:37:58]req_shift_opened [16:37:58]FM_GetShiftState [16:37:58]SAM_PROTO_GetShiftState [16:37:58]wFMCommunicate request_size=4 [16:37:58]MH_SAM_APDU [16:37:58]CAPDU: 80 13 01 00 [16:37:58]Write to MH i2c: E2 08 00 47 16 80 13 01 00 00 00 00 00 DA [16:37:58]Write i2c OK [16:37:58]MH_I2C_Read... [16:37:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:58]Read from MH i2c: E2 [16:37:58]MH_I2C_Read... [16:37:58]Read from MH i2c: E2 0E 00 [16:37:58]MH_I2C_Read... [16:37:58]Read from MH i2c: E2 0E 00 47 16 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 86 [16:37:58]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [16:37:58]wFMCommunicate OK [16:37:58]SAM_PROTO_GetShiftState done [16:37:58]FM_GetShiftState done [16:37:58]req_shift_opened done [16:37:58]requested_item shift.open_date is exist - process it [16:37:58]req_shift_open_date [16:37:58]req_shift_open_date done [16:37:58]produce_requested_data done [16:37:58]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67521,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [16:37:58]process_action_free close_receipt [16:37:58]json_value_free [16:37:58]json_value_free done [16:37:58]process_json_proto returns [16:37:58]Send response to host [16:37:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67521,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [16:37:58]free response buf [16:37:58]execute_script done [16:37:58]execute_script returns [16:37:58]free content buf [16:37:58]Sock 8.Close socket [16:37:58]Sock 8.Thread stoped [16:38:00]OFD Sender: No OFD packet to send [16:38:05]OFD Sender: No OFD packet to send [16:38:10]OFD Sender: No OFD packet to send [16:38:15]OFD Sender: No OFD packet to send [16:38:20]OFD Sender: No OFD packet to send [16:38:25]OFD Sender: No OFD packet to send [16:38:30]OFD Sender: No OFD packet to send [16:38:35]OFD Sender: No OFD packet to send [16:38:40]OFD Sender: No OFD packet to send [16:38:45]OFD Sender: No OFD packet to send [16:38:50]OFD Sender: No OFD packet to send [16:38:55]OFD Sender: No OFD packet to send [16:39:00]OFD Sender: No OFD packet to send [16:39:05]OFD Sender: No OFD packet to send [16:39:10]OFD Sender: No OFD packet to send [16:39:15]OFD Sender: No OFD packet to send [16:39:20]OFD Sender: No OFD packet to send [16:39:25]OFD Sender: No OFD packet to send [16:39:30]OFD Sender: No OFD packet to send [16:39:35]OFD Sender: No OFD packet to send [16:39:40]OFD Sender: No OFD packet to send [16:39:45]OFD Sender: No OFD packet to send [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:06]OFD Sender: No OFD packet to send [16:40:11]OFD Sender: No OFD packet to send [16:40:16]OFD Sender: No OFD packet to send [16:40:21]OFD Sender: No OFD packet to send [16:40:26]OFD Sender: No OFD packet to send [16:40:31]OFD Sender: No OFD packet to send [16:40:36]OFD Sender: No OFD packet to send [16:40:41]OFD Sender: No OFD packet to send [16:40:46]OFD Sender: No OFD packet to send [16:40:51]OFD Sender: No OFD packet to send [16:40:56]OFD Sender: No OFD packet to send [16:41:01]OFD Sender: No OFD packet to send [16:41:06]OFD Sender: No OFD packet to send [16:41:11]OFD Sender: No OFD packet to send [16:41:16]OFD Sender: No OFD packet to send [16:41:21]OFD Sender: No OFD packet to send [16:41:26]OFD Sender: No OFD packet to send [16:41:31]OFD Sender: No OFD packet to send [16:41:36]OFD Sender: No OFD packet to send [16:41:41]OFD Sender: No OFD packet to send [16:41:46]OFD Sender: No OFD packet to send [16:41:51]OFD Sender: No OFD packet to send [16:41:56]OFD Sender: No OFD packet to send [16:42:01]OFD Sender: No OFD packet to send [16:42:06]OFD Sender: No OFD packet to send [16:42:11]OFD Sender: No OFD packet to send [16:42:16]OFD Sender: No OFD packet to send [16:42:21]OFD Sender: No OFD packet to send [16:42:26]OFD Sender: No OFD packet to send [16:42:31]OFD Sender: No OFD packet to send [16:42:36]OFD Sender: No OFD packet to send [16:42:41]OFD Sender: No OFD packet to send [16:42:46]OFD Sender: No OFD packet to send [16:42:51]OFD Sender: No OFD packet to send [16:42:56]OFD Sender: No OFD packet to send [16:43:01]OFD Sender: No OFD packet to send [16:43:06]OFD Sender: No OFD packet to send [16:43:11]OFD Sender: No OFD packet to send [16:43:16]OFD Sender: No OFD packet to send [16:43:21]OFD Sender: No OFD packet to send [16:43:26]OFD Sender: No OFD packet to send [16:43:31]OFD Sender: No OFD packet to send [16:43:36]OFD Sender: No OFD packet to send [16:43:41]OFD Sender: No OFD packet to send [16:43:45]accept exits with 9 [16:43:45]New connection [16:43:45]New thread 3067039076 created [16:43:45]Thread 3067182436 joined [16:43:45]Waiting for new connection... [16:43:45] Sock 9.Parse request [16:43:45]Sock 9.Check first char [16:43:45]Sock 9.First char is OK [16:43:45]request: POST /json_proto HTTP/1.0 [16:43:45]Method: POST [16:43:45]URL: /json_proto [16:43:45]Method is POST - this is cgi request [16:43:45]url: /json_proto [16:43:45]query_string will be loaded in cgi processing [16:43:45]execute_cgi json_proto POST (null) [16:43:45]execute_cgi path=json_proto method=POST [16:43:45]POST find Content-Length [16:43:45]Host: 172.17.41.195:8080 [16:43:45]Content-Length: 631 [16:43:45]Content-Type: application/json [16:43:45] [16:43:45]POST finish read [16:43:45]Found Content-Length = 631 [16:43:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12093", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 55.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:43:45]execute_script... [16:43:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12093", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 55.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:43:45]POST & json_proto [16:43:45]process_json_proto [16:43:45]json parsed OK: [16:43:45]protocol is kg_v1.0 [16:43:45]action value=close_receipt [16:43:45]process_action close_receipt [16:43:45]cmd_close_receipt [16:43:45]MH_GetDate [16:43:45]Write to MH i2c: F0 00 00 48 16 4D [16:43:45]Write i2c OK [16:43:45]MH_I2C_Read... [16:43:45]Read from MH i2c: F0 [16:43:45]MH_I2C_Read... [16:43:45]Read from MH i2c: F0 09 00 [16:43:45]MH_I2C_Read... [16:43:45]Read from MH i2c: F0 09 00 48 16 00 C3 37 46 66 FC 21 6F 64 EC [16:43:45]GetLastDocTimeStamp 1715877474 [16:43:45]current date 1715877827 [16:43:45]FM_GetShiftState [16:43:45]SAM_PROTO_GetShiftState [16:43:45]wFMCommunicate request_size=4 [16:43:45]MH_SAM_APDU [16:43:45]CAPDU: 80 13 01 00 [16:43:45]Write to MH i2c: E2 08 00 49 16 80 13 01 00 00 00 00 00 DC [16:43:45]Write i2c OK [16:43:45]MH_I2C_Read... [16:43:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:45]Read from MH i2c: E2 [16:43:45]MH_I2C_Read... [16:43:45]Read from MH i2c: E2 0E 00 [16:43:45]MH_I2C_Read... [16:43:45]Read from MH i2c: E2 0E 00 49 16 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 88 [16:43:45]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [16:43:45]wFMCommunicate OK [16:43:45]SAM_PROTO_GetShiftState done [16:43:45]FM_GetShiftState done [16:43:45]opened in 1715818916 [16:43:45]opened+sec_in_day 1715905316 [16:43:45]quantity*price = 5500 [16:43:45]sum+1 = 5501 [16:43:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 55.00 НСП 1% : 0.49 НДС 12% : 5.84 Наличными: 55.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 120 16.05.2024 16:43 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67522 ФПД: 69821081356533 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T164347&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67522&fm=69821081356533&tin=02508201610067®Number=0000000000091845&sum=5500 0 [16:43:47]StoreToDocumentArchive [16:43:47]shift 357 fd 67522 [16:43:47]save to /storage/0357/doc_00067522 [16:43:47]save last doc name /storage/0357/doc_00067522 to /storage/kkm_last_doc_name [16:43:47]save OK [16:43:47]Clear old archive folders... [16:43:47]ProcessDocumentItem done err = 0, tmpTLVsize=271 [16:43:47]tlvbuf is 017FDD90 [16:43:47]SAM_PROTO_ClearQueue [16:43:47]wFMCommunicate request_size=4 [16:43:47]MH_SAM_APDU [16:43:47]CAPDU: 80 09 00 00 [16:43:47]Write to MH i2c: E2 08 00 56 16 80 09 00 00 00 00 00 00 DE [16:43:47]Write i2c OK [16:43:47]MH_I2C_Read... [16:43:47]Read from MH i2c: E2 [16:43:47]MH_I2C_Read... [16:43:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:43:47]Read from MH i2c: E2 03 00 [16:43:47]MH_I2C_Read... [16:43:47]Read from MH i2c: E2 03 00 56 16 00 90 00 E0 [16:43:47]RAPDU: 90 00 [16:43:47]wFMCommunicate OK [16:43:47]SAM_PROTO_ClearQueue done [16:43:47]KKMCreateOFDPacket [16:43:47]OFDProtocolAddRootSTLVToBuf [16:43:47]FM_MakeSignedData [16:43:47]FM_MakeSignedData [16:43:47]SAM_PROTO_SignData [16:43:47]wFMCommunicate request_size=4 [16:43:47]MH_SAM_APDU [16:43:47]CAPDU: 80 0D 01 02 [16:43:47]Write to MH i2c: E2 08 00 57 16 80 0D 01 02 00 00 00 00 E6 [16:43:47]Write i2c OK [16:43:47]MH_I2C_Read... [16:43:47]Read from MH i2c: E2 [16:43:47]MH_I2C_Read... [16:43:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:43:47]Read from MH i2c: E2 03 00 [16:43:47]MH_I2C_Read... [16:43:47]Read from MH i2c: E2 03 00 57 16 00 90 00 E1 [16:43:47]RAPDU: 90 00 [16:43:47]wFMCommunicate OK [16:43:47]wFMCommunicate request_size=255 [16:43:47]MH_SAM_APDU [16:43:47]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 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 C3 37 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 [16:43:47]Write to MH i2c: E2 02 01 58 16 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 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 C3 37 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 8A [16:43:47]Write i2c OK [16:43:47]MH_I2C_Read... [16:43:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:47]Read from MH i2c: E2 [16:43:47]MH_I2C_Read... [16:43:47]Read from MH i2c: E2 03 00 [16:43:47]MH_I2C_Read... [16:43:47]Read from MH i2c: E2 03 00 58 16 00 90 00 E2 [16:43:47]RAPDU: 90 00 [16:43:47]wFMCommunicate OK [16:43:47]wFMCommunicate request_size=30 [16:43:47]MH_SAM_APDU [16:43:47]CAPDU: 80 0D 02 02 19 30 38 37 31 38 32 39 10 04 04 00 C2 07 01 00 35 04 06 00 3F 80 7C C0 88 F5 [16:43:47]Write to MH i2c: E2 21 00 59 16 80 0D 02 02 19 00 30 38 37 31 38 32 39 10 04 04 00 C2 07 01 00 35 04 06 00 3F 80 7C C0 88 F5 00 00 27 [16:43:47]Write i2c OK [16:43:47]MH_I2C_Read... [16:43:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:47]Read from MH i2c: E2 [16:43:47]MH_I2C_Read... [16:43:47]Read from MH i2c: E2 03 00 [16:43:47]MH_I2C_Read... [16:43:47]Read from MH i2c: E2 03 00 59 16 00 90 00 E3 [16:43:47]RAPDU: 90 00 [16:43:47]wFMCommunicate OK [16:43:47]wFMCommunicate request_size=4 [16:43:47]MH_SAM_APDU [16:43:47]CAPDU: 80 0D 03 02 [16:43:47]Write to MH i2c: E2 08 00 5A 16 80 0D 03 02 00 00 00 00 EB [16:43:47]Write i2c OK [16:43:47]MH_I2C_Read... [16:43:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:43:47]Read from MH i2c: E2 [16:43:47]MH_I2C_Read... [16:43:47]Read from MH i2c: E2 0B 00 [16:43:47]MH_I2C_Read... [16:43:47]Read from MH i2c: E2 0B 00 5A 16 00 FC 7C 39 3C 3B 43 22 64 90 00 DD [16:43:47]RAPDU: FC 7C 39 3C 3B 43 22 64 90 00 [16:43:47]wFMCommunicate OK [16:43:47]SAM_PROTO_SignData done [16:43:47]FM_MakeSignedData done [16:43:47]CreateOFDProtocolMessage [16:43:47]wFMCommunicate request_size=4 [16:43:47]MH_SAM_APDU [16:43:47]CAPDU: 80 11 00 00 [16:43:47]Write to MH i2c: E2 08 00 5B 16 80 11 00 00 00 00 00 00 EB [16:43:47]Write i2c OK [16:43:47]MH_I2C_Read... [16:43:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:47]Read from MH i2c: E2 [16:43:47]MH_I2C_Read... [16:43:47]Read from MH i2c: E2 17 00 [16:43:47]MH_I2C_Read... [16:43:47]Read from MH i2c: E2 17 00 5B 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 41 [16:43:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:43:47]wFMCommunicate OK [16:43:47]CreateOFDProtocolMessage done [16:43:47]OFDSenderStorePacket 67522 [16:43:47]StoreOFDPacket docnum=67522 [16:43:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 23 01 00 00 19 EA 1B 01 09 53 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 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 C3 37 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C2 07 01 00 35 04 06 00 3F 80 7C C0 88 F5 FC 7C 39 3C 3B 43 22 64 [16:43:47]CheckFolder [16:43:47]dirname=/storage/ofd_packets [16:43:47]CheckFolder done [16:43:47]ProducePacketName [16:43:47]name=ofd_packets/00067522 [16:43:47]NVStorageSaveData ofd_packets/00067522 [16:43:47]File name is /storage/ofd_packets/00067522 [16:43:47]Write 321 bytes [16:43:47]NVStorageSaveData done [16:43:47]OFDSenderStorePacket done [16:43:47]KKMCreateOFDPacket done [16:43:47]NVStorageSaveData kkm_last_timestamp [16:43:47]File name is /storage/kkm_last_timestamp [16:43:47]Write 4 bytes [16:43:47]NVStorageSaveData done [16:43:47]ExternCall_PrintAddStr [16:43:47]wPrintStart [16:43:47]Write to MH i2c: 01 00 00 5C 16 72 [16:43:47]Write i2c OK [16:43:47]MH_I2C_Read... [16:43:47]Read from MH i2c: 01 [16:43:47]MH_I2C_Read... [16:43:47]Read from MH i2c: 01 07 00 [16:43:47]MH_I2C_Read... [16:43:47]Read from MH i2c: 01 07 00 5C 16 00 00 00 00 00 FF 0F 87 [16:43:47]RasterBufferAndPrint [16:43:47]line Счет N : (3)12093 [16:43:47]line ИНН: 02508201610067 [16:43:47]line Контрольно-Кассовый Чек [16:43:47]line ПРОДАЖА [16:43:47]line Товар: 4700000160204 [16:43:47]line Вода Легенда 1,5л [16:43:47]line 1.000 * 55.00 [16:43:47]line = 55.00 [16:43:47]line НДС 12% НСП 1% [16:43:47]line > о реализуемом товаре [16:43:47]line ИТОГО: 55.00 [16:43:47]line НСП 1% : 0.49 [16:43:47]line НДС 12% : 5.84 [16:43:47]line Наличными: 55.00 [16:43:47]line Безнал.: 0.00 [16:43:47]line Место: АЗС № 91 "Партнер Нефть" [16:43:47]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [16:43:47]line СНО: Общий режим [16:43:47]line Чек 120 16.05.2024 16:43 [16:43:47]line Смена: 357 ФФД: 1.0 [16:43:47]line ЗНМ: 0300000119 [16:43:47]line РНМ: 0000000000091845 [16:43:47]line Версия ККМ: 001 [16:43:47]line ФМ: 0000000000871829 [16:43:47]line ФД: 67522 [16:43:47]line ФПД: 69821081356533 [16:43:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T164347&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67522&fm=69821081356533&tin=02508201610067®Number=0000000000091845&sum=5500 [16:43:47]line 0 [16:43:47]written 0, free lines is 4095 [16:43:47]OFD Sender: Processing packet 67522 [packets to send 35, broken 34] [16:43:47]ProducePacketName [16:43:47]name=ofd_packets/00067522 [16:43:47]OFD Sender: To server: pG, [16:43:48]CommunicateWithHost lk.salyk.kg:30040 [16:43:48]ConnectInit lk.salyk.kg [16:43:48]Write to MH i2c: 01 00 00 83 16 99 [16:43:48]Write i2c OK [16:43:48]MH_I2C_Read... [16:43:48]Read from MH i2c: 01 [16:43:48]MH_I2C_Read... [16:43:48]Read from MH i2c: 01 07 00 [16:43:48]MH_I2C_Read... [16:43:48]Read from MH i2c: 01 07 00 83 16 00 00 00 00 00 EB 0C 97 [16:43:48]RasterBufferAndPrint [16:43:48]line [16:43:48]line [16:43:48]line [16:43:48]line [16:43:48]line [16:43:48]written 0, free lines is 3311 [16:43:48]MH_Cut [16:43:48]Write to MH i2c: D1 01 00 8A 16 01 72 [16:43:48]Write i2c OK [16:43:48]MH_I2C_Read... [16:43:48]Read from MH i2c: D1 [16:43:48]MH_I2C_Read... [16:43:48]Read from MH i2c: D1 01 00 [16:43:48]MH_I2C_Read... [16:43:48]Read from MH i2c: D1 01 00 8A 16 00 71 [16:43:48]Write to MH i2c: 01 00 00 8B 16 A1 [16:43:48]Write i2c OK [16:43:48]MH_I2C_Read... [16:43:48]Connected sock=10 [16:43: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 38 32 39 23 01 00 00 19 EA 1B 01 09 53 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 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 C3 37 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C2 07 01 00 35 04 06 00 3F 80 7C C0 88 F5 FC 7C 39 3C 3B 43 22 64 [16:43:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 33 97 47 00 56 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 38 32 39 10 04 04 00 C2 07 01 00 F4 03 04 00 9D DF 45 66 B6 04 01 00 00 99 D7 E0 2C 25 D2 C8 68 [16:43:48]CommunicateWithHost err = 0 [16:43:48]CheckOFDResponse [16:43:48]1017 (14) - 77093643461234 [16:43:48]1041 (16) - 0000000000871829 [16:43:48]1040 (4) - 67522 [16:43:48]1012 (4) - 16.05.2024 10:27 [16:43:48]1206 (1) - 0 [16:43:48]OFD Sender: Remove packet 67522 [16:43:48]ProducePacketName [16:43:48]name=ofd_packets/00067522 [16:43:48]NVStorageDeleteData [16:43:48]OFD Sender: No OFD packet to send [16:43:48]*** Cut start [16:43:48]*** Purtial cut [16:43:48]*** Stage 1: CUTSNS_PIN = 1 [16:43:49]Read from MH i2c: 01 [16:43:49]*** Stop cut motor [16:43:49]*** Cut end [16:43:49]MH_I2C_Read... [16:43:49]Read from MH i2c: 01 07 00 [16:43:49]MH_I2C_Read... [16:43:49]Read from MH i2c: 01 07 00 8B 16 00 00 00 00 00 FF 0F B6 [16:43:49]process_action close_receipt done [16:43:49]requested_data is exist [16:43:49]produce_requested_data [16:43:49]requested_item fm.sn is exist - process it [16:43:49]wFMCommunicate request_size=4 [16:43:49]MH_SAM_APDU [16:43:49]CAPDU: 80 11 00 00 [16:43:49]Write to MH i2c: E2 08 00 8C 16 80 11 00 00 00 00 00 00 1C [16:43:49]Write i2c OK [16:43:49]MH_I2C_Read... [16:43:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:49]Read from MH i2c: E2 [16:43:49]MH_I2C_Read... [16:43:49]Read from MH i2c: E2 17 00 [16:43:49]MH_I2C_Read... [16:43:49]Read from MH i2c: E2 17 00 8C 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 72 [16:43:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:43:49]wFMCommunicate OK [16:43:49]requested_item fd.num is exist - process it [16:43:49]SAM_PROTO_GetFieldsCounters [16:43:49]wFMCommunicate request_size=4 [16:43:49]MH_SAM_APDU [16:43:49]CAPDU: 80 13 00 00 [16:43:49]Write to MH i2c: E2 08 00 8D 16 80 13 00 00 00 00 00 00 1F [16:43:49]Write i2c OK [16:43:49]MH_I2C_Read... [16:43:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:43:49]Read from MH i2c: E2 [16:43:49]MH_I2C_Read... [16:43:49]Read from MH i2c: E2 62 00 [16:43:49]MH_I2C_Read... [16:43:49]Read from MH i2c: E2 62 00 8D 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C2 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [16:43: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C2 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:43:49]wFMCommunicate OK [16:43:49]SAM_PROTO_GetFieldsCounters done [16:43:49]requested_item shift.num is exist - process it [16:43:49]requested_item shift.opened is exist - process it [16:43:49]req_shift_opened [16:43:49]FM_GetShiftState [16:43:49]SAM_PROTO_GetShiftState [16:43:49]wFMCommunicate request_size=4 [16:43:49]MH_SAM_APDU [16:43:49]CAPDU: 80 13 01 00 [16:43:49]Write to MH i2c: E2 08 00 8E 16 80 13 01 00 00 00 00 00 21 [16:43:49]Write i2c OK [16:43:49]MH_I2C_Read... [16:43:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:49]Read from MH i2c: E2 [16:43:49]MH_I2C_Read... [16:43:49]Read from MH i2c: E2 0E 00 [16:43:49]MH_I2C_Read... [16:43:49]Read from MH i2c: E2 0E 00 8E 16 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 CD [16:43:49]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [16:43:49]wFMCommunicate OK [16:43:49]SAM_PROTO_GetShiftState done [16:43:49]FM_GetShiftState done [16:43:49]req_shift_opened done [16:43:49]requested_item shift.open_date is exist - process it [16:43:49]req_shift_open_date [16:43:49]req_shift_open_date done [16:43:49]produce_requested_data done [16:43:49]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67522,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [16:43:49]process_action_free close_receipt [16:43:49]json_value_free [16:43:49]json_value_free done [16:43:49]process_json_proto returns [16:43:49]Send response to host [16:43:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67522,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [16:43:49]free response buf [16:43:49]execute_script done [16:43:49]execute_script returns [16:43:49]free content buf [16:43:49]Sock 9.Close socket [16:43:49]Sock 9.Thread stoped [16:43:51]int [16:43:51]Write to MH i2c: 01 00 00 8F 16 A5 [16:43:51]*** FLAG_PRN_PAP1 set [16:43:51]Write i2c OK [16:43:51]MH_I2C_Read... [16:43:51]Read from MH i2c: 01 [16:43:51]MH_I2C_Read... [16:43:51]Read from MH i2c: 01 07 00 [16:43:51]MH_I2C_Read... [16:43:51]Read from MH i2c: 01 07 00 8F 16 00 01 00 00 00 FF 0F BB [16:43:51]state=0 [16:43:51]No paper [16:43:53]OFD Sender: No OFD packet to send [16:43:58]OFD Sender: No OFD packet to send [16:43:59]int [16:43:59]Write to MH i2c: 01 00 00 90 16 A6 [16:43:59]*** FLAG_PRN_PAP1 reset [16:43:59]Write i2c OK [16:43:59]MH_I2C_Read... [16:43:59]Read from MH i2c: 01 [16:43:59]MH_I2C_Read... [16:43:59]Read from MH i2c: 01 07 00 [16:43:59]MH_I2C_Read... [16:43:59]Read from MH i2c: 01 07 00 90 16 00 00 00 00 00 FF 0F BB [16:43:59]state=0 [16:44:03]OFD Sender: No OFD packet to send [16:44:08]OFD Sender: No OFD packet to send [16:44:13]OFD Sender: No OFD packet to send [16:44:18]OFD Sender: No OFD packet to send [16:44:23]OFD Sender: No OFD packet to send [16:44:28]OFD Sender: No OFD packet to send [16:44:33]OFD Sender: No OFD packet to send [16:44:38]OFD Sender: No OFD packet to send [16:44:43]OFD Sender: No OFD packet to send [16:44:48]OFD Sender: No OFD packet to send [16:44:53]OFD Sender: No OFD packet to send [16:44:58]OFD Sender: No OFD packet to send [16:45:03]OFD Sender: No OFD packet to send [16:45:08]OFD Sender: No OFD packet to send [16:45:13]OFD Sender: No OFD packet to send [16:45:18]OFD Sender: No OFD packet to send [16:45:23]OFD Sender: No OFD packet to send [16:45:28]OFD Sender: No OFD packet to send [16:45:33]OFD Sender: No OFD packet to send [16:45:38]OFD Sender: No OFD packet to send [16:45:43]OFD Sender: No OFD packet to send [16:45:48]OFD Sender: No OFD packet to send [16:45:53]OFD Sender: No OFD packet to send [16:45:58]OFD Sender: No OFD packet to send [16:46:03]OFD Sender: No OFD packet to send [16:46:08]OFD Sender: No OFD packet to send [16:46:13]OFD Sender: No OFD packet to send [16:46:18]OFD Sender: No OFD packet to send [16:46:23]OFD Sender: No OFD packet to send [16:46:28]OFD Sender: No OFD packet to send [16:46:33]OFD Sender: No OFD packet to send [16:46:38]OFD Sender: No OFD packet to send [16:46:43]OFD Sender: No OFD packet to send [16:46:48]OFD Sender: No OFD packet to send [16:46:53]OFD Sender: No OFD packet to send [16:46:58]OFD Sender: No OFD packet to send [16:47:03]OFD Sender: No OFD packet to send [16:47:08]OFD Sender: No OFD packet to send [16:47:13]OFD Sender: No OFD packet to send [16:47:19]OFD Sender: No OFD packet to send [16:47:24]OFD Sender: No OFD packet to send [16:47:29]OFD Sender: No OFD packet to send [16:47:34]OFD Sender: No OFD packet to send [16:47:39]OFD Sender: No OFD packet to send [16:47:42]accept exits with 8 [16:47:42]New connection [16:47:42]New thread 3067182436 created [16:47:42]Thread 3067039076 joined [16:47:42]Waiting for new connection... [16:47:42] Sock 8.Parse request [16:47:42]Sock 8.Check first char [16:47:42]Sock 8.First char is OK [16:47:42]request: POST /json_proto HTTP/1.0 [16:47:42]Method: POST [16:47:42]URL: /json_proto [16:47:42]Method is POST - this is cgi request [16:47:42]url: /json_proto [16:47:42]query_string will be loaded in cgi processing [16:47:42]execute_cgi json_proto POST (null) [16:47:42]execute_cgi path=json_proto method=POST [16:47:42]POST find Content-Length [16:47:42]Host: 172.17.41.195:8080 [16:47:42]Content-Length: 1209 [16:47:42]Content-Type: application/json [16:47:42] [16:47:42]POST finish read [16:47:42]Found Content-Length = 1209 [16:47:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507581\u000A16.05.2024 16:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 15.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1120.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:42]execute_script... [16:47:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507581\u000A16.05.2024 16:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 15.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1120.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:42]POST & json_proto [16:47:42]process_json_proto [16:47:42]json parsed OK: [16:47:42]protocol is kg_v1.0 [16:47:42]action value=print_text [16:47:42]process_action print_text [16:47:42]cmd_print_text [16:47:42]ExternCall_PrintAddStr [16:47:42]wPrintStart [16:47:42]Write to MH i2c: 01 00 00 91 16 A7 [16:47:42]Write i2c OK [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: 01 [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: 01 07 00 [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: 01 07 00 91 16 00 00 00 00 00 FF 0F BC [16:47:42]RasterBufferAndPrint [16:47:42]line *****ТОВАРНЫЙ ЧЕК***** [16:47:42]line АЗС-91 [16:47:42]line Партнер нефть [16:47:42]line 02508201610067 [16:47:42]line Кассир : Пайзулдаева А. [16:47:42]line Счет N : (1)507581 [16:47:42]line 16.05.2024 16:30 [16:47:42]line ПРОДАЖА [16:47:42]line ТРК (МРК, ГНК): 31 [16:47:42]line Вид ГСМ : 2710194210 [16:47:42]line ДТ-К-5 [16:47:42]line 15.000 x 74.70 [16:47:42]line ИТОГ: 1120.50 [16:47:42]line Тип оплаты: Талоны: Топливная Карта [16:47:42]line 02750 [16:47:42]line ______________________ [16:47:42]line (подпись) [16:47:42]written 0, free lines is 4095 [16:47:42]Write to MH i2c: 01 00 00 A5 16 BB [16:47:42]Write i2c OK [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: 01 [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: 01 07 00 [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: 01 07 00 A5 16 00 00 00 00 00 0F 0E DF [16:47:42]RasterBufferAndPrint [16:47:42]line [16:47:42]line [16:47:42]line [16:47:42]line [16:47:42]line [16:47:42]written 0, free lines is 3601 [16:47:42]MH_Cut [16:47:42]Write to MH i2c: D1 01 00 AC 16 01 94 [16:47:42]Write i2c OK [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: D1 [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: D1 01 00 [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: D1 01 00 AC 16 00 93 [16:47:42]Write to MH i2c: 01 00 00 AD 16 C3 [16:47:42]Write i2c OK [16:47:42]MH_I2C_Read... [16:47:43]*** Cut start [16:47:43]*** Purtial cut [16:47:43]*** CUTSNS_PIN = 0 [16:47:43]*** Stage 1: CUTSNS_PIN = 1 [16:47:44]OFD Sender: No OFD packet to send [16:47:45]Read from MH i2c: 01 [16:47:45]MH_I2C_Read... [16:47:45]*** Stop cut motor [16:47:45]*** Cut end [16:47:45]Read from MH i2c: 01 07 00 [16:47:45]MH_I2C_Read... [16:47:45]Read from MH i2c: 01 07 00 AD 16 00 00 00 00 00 FF 0F D8 [16:47:45]process_action print_text done [16:47:45]requested_data is exist [16:47:45]produce_requested_data [16:47:45]requested_item fm.sn is exist - process it [16:47:45]wFMCommunicate request_size=4 [16:47:45]MH_SAM_APDU [16:47:45]CAPDU: 80 11 00 00 [16:47:45]Write to MH i2c: E2 08 00 AE 16 80 11 00 00 00 00 00 00 3E [16:47:45]Write i2c OK [16:47:45]MH_I2C_Read... [16:47:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:45]Read from MH i2c: E2 [16:47:45]MH_I2C_Read... [16:47:45]Read from MH i2c: E2 17 00 [16:47:45]MH_I2C_Read... [16:47:45]Read from MH i2c: E2 17 00 AE 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 94 [16:47:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:47:45]wFMCommunicate OK [16:47:45]requested_item fd.num is exist - process it [16:47:45]SAM_PROTO_GetFieldsCounters [16:47:45]wFMCommunicate request_size=4 [16:47:45]MH_SAM_APDU [16:47:45]CAPDU: 80 13 00 00 [16:47:45]Write to MH i2c: E2 08 00 AF 16 80 13 00 00 00 00 00 00 41 [16:47:45]Write i2c OK [16:47:45]MH_I2C_Read... [16:47:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:47:45]Read from MH i2c: E2 [16:47:45]MH_I2C_Read... [16:47:45]Read from MH i2c: E2 62 00 [16:47:45]MH_I2C_Read... [16:47:45]Read from MH i2c: E2 62 00 AF 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C2 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [16:47: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C2 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:47:45]wFMCommunicate OK [16:47:45]SAM_PROTO_GetFieldsCounters done [16:47:45]requested_item shift.num is exist - process it [16:47:45]requested_item shift.opened is exist - process it [16:47:45]req_shift_opened [16:47:45]FM_GetShiftState [16:47:45]SAM_PROTO_GetShiftState [16:47:45]wFMCommunicate request_size=4 [16:47:45]MH_SAM_APDU [16:47:45]CAPDU: 80 13 01 00 [16:47:45]Write to MH i2c: E2 08 00 B0 16 80 13 01 00 00 00 00 00 43 [16:47:45]Write i2c OK [16:47:45]MH_I2C_Read... [16:47:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:45]Read from MH i2c: E2 [16:47:45]MH_I2C_Read... [16:47:45]Read from MH i2c: E2 0E 00 [16:47:45]MH_I2C_Read... [16:47:45]Read from MH i2c: E2 0E 00 B0 16 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 EF [16:47:45]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [16:47:45]wFMCommunicate OK [16:47:45]SAM_PROTO_GetShiftState done [16:47:45]FM_GetShiftState done [16:47:45]req_shift_opened done [16:47:45]requested_item shift.open_date is exist - process it [16:47:45]req_shift_open_date [16:47:45]req_shift_open_date done [16:47:45]produce_requested_data done [16:47:45]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67522,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [16:47:45]process_action_free print_text [16:47:45]json_value_free [16:47:45]json_value_free done [16:47:45]process_json_proto returns [16:47:45]Send response to host [16:47:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67522,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [16:47:45]free response buf [16:47:45]execute_script done [16:47:45]execute_script returns [16:47:45]free content buf [16:47:45]Sock 8.Close socket [16:47:45]Sock 8.Thread stoped [16:47:49]OFD Sender: No OFD packet to send [16:47:54]OFD Sender: No OFD packet to send [16:47:59]OFD Sender: No OFD packet to send [16:48:04]OFD Sender: No OFD packet to send [16:48:09]OFD Sender: No OFD packet to send [16:48:14]OFD Sender: No OFD packet to send [16:48:19]OFD Sender: No OFD packet to send [16:48:24]OFD Sender: No OFD packet to send [16:48:29]OFD Sender: No OFD packet to send [16:48:34]OFD Sender: No OFD packet to send [16:48:37]accept exits with 9 [16:48:37]New connection [16:48:37]New thread 3067039076 created [16:48:37]Thread 3067182436 joined [16:48:37]Waiting for new connection... [16:48:37] Sock 9.Parse request [16:48:37]Sock 9.Check first char [16:48:37]Sock 9.First char is OK [16:48:37]request: POST /json_proto HTTP/1.0 [16:48:37]Method: POST [16:48:37]URL: /json_proto [16:48:37]Method is POST - this is cgi request [16:48:37]url: /json_proto [16:48:37]query_string will be loaded in cgi processing [16:48:37]execute_cgi json_proto POST (null) [16:48:37]execute_cgi path=json_proto method=POST [16:48:37]POST find Content-Length [16:48:37]Host: 172.17.41.195:8080 [16:48:37]Content-Length: 677 [16:48:37]Content-Type: application/json [16:48:37] [16:48:37]POST finish read [16:48:37]Found Content-Length = 677 [16:48:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507582", "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.80, "quantity" : 8.990, "sum" : 600.53, "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" ] } } [16:48:37]execute_script... [16:48:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507582", "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.80, "quantity" : 8.990, "sum" : 600.53, "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" ] } } [16:48:37]POST & json_proto [16:48:37]process_json_proto [16:48:37]json parsed OK: [16:48:37]protocol is kg_v1.0 [16:48:37]action value=close_receipt [16:48:37]process_action close_receipt [16:48:37]cmd_close_receipt [16:48:37]MH_GetDate [16:48:37]Write to MH i2c: F0 00 00 B1 16 B6 [16:48:37]Write i2c OK [16:48:37]MH_I2C_Read... [16:48:37]Read from MH i2c: F0 [16:48:37]MH_I2C_Read... [16:48:37]Read from MH i2c: F0 09 00 [16:48:37]MH_I2C_Read... [16:48:37]Read from MH i2c: F0 09 00 B1 16 00 E6 38 46 66 FC 21 6F 64 79 [16:48:37]GetLastDocTimeStamp 1715877827 [16:48:37]current date 1715878118 [16:48:37]FM_GetShiftState [16:48:37]SAM_PROTO_GetShiftState [16:48:37]wFMCommunicate request_size=4 [16:48:37]MH_SAM_APDU [16:48:37]CAPDU: 80 13 01 00 [16:48:37]Write to MH i2c: E2 08 00 B2 16 80 13 01 00 00 00 00 00 45 [16:48:37]Write i2c OK [16:48:37]MH_I2C_Read... [16:48:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:37]Read from MH i2c: E2 [16:48:37]MH_I2C_Read... [16:48:37]Read from MH i2c: E2 0E 00 [16:48:37]MH_I2C_Read... [16:48:37]Read from MH i2c: E2 0E 00 B2 16 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 F1 [16:48:37]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [16:48:37]wFMCommunicate OK [16:48:37]SAM_PROTO_GetShiftState done [16:48:37]FM_GetShiftState done [16:48:37]opened in 1715818916 [16:48:37]opened+sec_in_day 1715905316 [16:48:37]quantity*price = 60053 [16:48:37]sum+1 = 60054 [16:48:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 121 16.05.2024 16:48 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67523 ФПД: 198952004427680 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T164838&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67523&fm=198952004427680&tin=02508201610067®Number=0000000000091845&sum=60000 [16:48:38]StoreToDocumentArchive [16:48:38]shift 357 fd 67523 [16:48:38]save to /storage/0357/doc_00067523 [16:48:38]save last doc name /storage/0357/doc_00067523 to /storage/kkm_last_doc_name [16:48:38]save OK [16:48:38]Clear old archive folders... [16:48:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:48:38]tlvbuf is 0179E8A0 [16:48:38]SAM_PROTO_ClearQueue [16:48:38]wFMCommunicate request_size=4 [16:48:38]MH_SAM_APDU [16:48:38]CAPDU: 80 09 00 00 [16:48:38]Write to MH i2c: E2 08 00 BF 16 80 09 00 00 00 00 00 00 47 [16:48:38]Write i2c OK [16:48:38]MH_I2C_Read... [16:48:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:38]Read from MH i2c: E2 [16:48:38]MH_I2C_Read... [16:48:38]Read from MH i2c: E2 03 00 [16:48:38]MH_I2C_Read... [16:48:38]Read from MH i2c: E2 03 00 BF 16 00 90 00 49 [16:48:38]RAPDU: 90 00 [16:48:38]wFMCommunicate OK [16:48:38]SAM_PROTO_ClearQueue done [16:48:38]KKMCreateOFDPacket [16:48:38]OFDProtocolAddRootSTLVToBuf [16:48:38]FM_MakeSignedData [16:48:38]FM_MakeSignedData [16:48:38]SAM_PROTO_SignData [16:48:38]wFMCommunicate request_size=4 [16:48:38]MH_SAM_APDU [16:48:38]CAPDU: 80 0D 01 02 [16:48:38]Write to MH i2c: E2 08 00 C0 16 80 0D 01 02 00 00 00 00 4F [16:48:38]Write i2c OK [16:48:38]MH_I2C_Read... [16:48:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:48:38]Read from MH i2c: E2 [16:48:38]MH_I2C_Read... [16:48:38]Read from MH i2c: E2 03 00 [16:48:38]MH_I2C_Read... [16:48:38]Read from MH i2c: E2 03 00 C0 16 00 90 00 4A [16:48:38]RAPDU: 90 00 [16:48:38]wFMCommunicate OK [16:48:38]wFMCommunicate request_size=255 [16:48:38]MH_SAM_APDU [16:48: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 1E 23 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 95 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 79 00 00 00 F4 03 04 00 E6 38 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C3 07 01 00 35 04 06 00 B4 [16:48:38]Write to MH i2c: E2 02 01 C1 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 1E 23 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 95 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 79 00 00 00 F4 03 04 00 E6 38 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C3 07 01 00 35 04 06 00 B4 00 00 22 [16:48:38]Write i2c OK [16:48:38]MH_I2C_Read... [16:48:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:38]Read from MH i2c: E2 [16:48:38]MH_I2C_Read... [16:48:38]Read from MH i2c: E2 03 00 [16:48:38]MH_I2C_Read... [16:48:38]Read from MH i2c: E2 03 00 C1 16 00 90 00 4B [16:48:38]RAPDU: 90 00 [16:48:38]wFMCommunicate OK [16:48:38]wFMCommunicate request_size=10 [16:48:38]MH_SAM_APDU [16:48:38]CAPDU: 80 0D 02 02 05 F2 1F 8D 1F A0 [16:48:38]Write to MH i2c: E2 0D 00 C2 16 80 0D 02 02 05 00 F2 1F 8D 1F A0 00 00 B9 [16:48:38]Write i2c OK [16:48:38]MH_I2C_Read... [16:48:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:38]Read from MH i2c: E2 [16:48:38]MH_I2C_Read... [16:48:38]Read from MH i2c: E2 03 00 [16:48:38]MH_I2C_Read... [16:48:38]Read from MH i2c: E2 03 00 C2 16 00 90 00 4C [16:48:38]RAPDU: 90 00 [16:48:38]wFMCommunicate OK [16:48:38]wFMCommunicate request_size=4 [16:48:38]MH_SAM_APDU [16:48:38]CAPDU: 80 0D 03 02 [16:48:38]Write to MH i2c: E2 08 00 C3 16 80 0D 03 02 00 00 00 00 54 [16:48:38]Write i2c OK [16:48:38]MH_I2C_Read... [16:48:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:48:38]Read from MH i2c: E2 [16:48:38]MH_I2C_Read... [16:48:38]Read from MH i2c: E2 0B 00 [16:48:38]MH_I2C_Read... [16:48:38]Read from MH i2c: E2 0B 00 C3 16 00 86 8E 94 E2 30 0A D0 36 90 00 1F [16:48:38]RAPDU: 86 8E 94 E2 30 0A D0 36 90 00 [16:48:38]wFMCommunicate OK [16:48:38]SAM_PROTO_SignData done [16:48:38]FM_MakeSignedData done [16:48:38]CreateOFDProtocolMessage [16:48:38]wFMCommunicate request_size=4 [16:48:38]MH_SAM_APDU [16:48:38]CAPDU: 80 11 00 00 [16:48:38]Write to MH i2c: E2 08 00 C4 16 80 11 00 00 00 00 00 00 54 [16:48:38]Write i2c OK [16:48:38]MH_I2C_Read... [16:48:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:38]Read from MH i2c: E2 [16:48:38]MH_I2C_Read... [16:48:38]Read from MH i2c: E2 17 00 [16:48:38]MH_I2C_Read... [16:48:38]Read from MH i2c: E2 17 00 C4 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AA [16:48:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:48:38]wFMCommunicate OK [16:48:38]CreateOFDProtocolMessage done [16:48:38]OFDSenderStorePacket 67523 [16:48:38]StoreOFDPacket docnum=67523 [16:48:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 4E 8C 07 01 FD 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 23 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 95 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 79 00 00 00 F4 03 04 00 E6 38 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C3 07 01 00 35 04 06 00 B4 F2 1F 8D 1F A0 86 8E 94 E2 30 0A D0 36 [16:48:38]CheckFolder [16:48:38]dirname=/storage/ofd_packets [16:48:38]CheckFolder done [16:48:38]ProducePacketName [16:48:38]name=ofd_packets/00067523 [16:48:38]NVStorageSaveData ofd_packets/00067523 [16:48:38]File name is /storage/ofd_packets/00067523 [16:48:38]Write 301 bytes [16:48:38]NVStorageSaveData done [16:48:38]OFDSenderStorePacket done [16:48:38]KKMCreateOFDPacket done [16:48:38]NVStorageSaveData kkm_last_timestamp [16:48:38]File name is /storage/kkm_last_timestamp [16:48:38]Write 4 bytes [16:48:38]NVStorageSaveData done [16:48:38]ExternCall_PrintAddStr [16:48:38]wPrintStart [16:48:38]Write to MH i2c: 01 00 00 C5 16 DB [16:48:38]Write i2c OK [16:48:38]MH_I2C_Read... [16:48:38]Read from MH i2c: 01 [16:48:38]MH_I2C_Read... [16:48:38]Read from MH i2c: 01 07 00 [16:48:38]MH_I2C_Read... [16:48:38]Read from MH i2c: 01 07 00 C5 16 00 00 00 00 00 FF 0F F0 [16:48:38]RasterBufferAndPrint [16:48:38]line Счет N : (1)507582 [16:48:38]line ИНН: 02508201610067 [16:48:38]line Контрольно-Кассовый Чек [16:48:38]line ПРОДАЖА [16:48:38]line ТРК (МРК, ГНК) : 43 [16:48:38]line Товар: 2710124130 [16:48:38]line Аи-92-К-5 [16:48:38]line 8.990 * 66.80 [16:48:38]line = 600.53 [16:48:38]line НДС 12% НСП 1% [16:48:38]line > о реализуемом товаре [16:48:38]line ОКРУГЛЕНИЕ: -0.53 [16:48:38]line ИТОГО: 600.00 [16:48:38]line Внесено: 600.00 [16:48:38]line СДАЧА: 0.00 [16:48:38]line НСП 1% : 5.31 [16:48:38]line НДС 12% : 63.77 [16:48:38]line Наличными: 600.00 [16:48:38]line Безнал.: 0.00 [16:48:38]line Место: АЗС № 91 "Партнер Нефть" [16:48:38]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [16:48:38]line СНО: Общий режим [16:48:38]line Чек 121 16.05.2024 16:48 [16:48:38]line Смена: 357 ФФД: 1.0 [16:48:38]line ЗНМ: 0300000119 [16:48:38]line РНМ: 0000000000091845 [16:48:38]line Версия ККМ: 001 [16:48:38]line ФМ: 0000000000871829 [16:48:38]line ФД: 67523 [16:48:38]line ФПД: 198952004427680 [16:48:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T164838&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67523&fm=198952004427680&tin=02508201610067®Number=0000000000091845&sum=60000 [16:48:39]OFD Sender: Processing packet 67523 [packets to send 35, broken 34] [16:48:39]ProducePacketName [16:48:39]name=ofd_packets/00067523 [16:48:39]OFD Sender: To server: pG, [16:48:39]CommunicateWithHost lk.salyk.kg:30040 [16:48:39]ConnectInit lk.salyk.kg [16:48:39]written 0, free lines is 4095 [16:48:39]Connected sock=10 [16:48:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 4E 8C 07 01 FD 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 23 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 95 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 79 00 00 00 F4 03 04 00 E6 38 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C3 07 01 00 35 04 06 00 B4 F2 1F 8D 1F A0 86 8E 94 E2 30 0A D0 36 [16:48:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 A9 C4 47 00 74 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 38 32 39 10 04 04 00 C3 07 01 00 F4 03 04 00 C1 E0 45 66 B6 04 01 00 00 1F 9A 9D 4B 02 56 05 4F [16:48:39]CommunicateWithHost err = 0 [16:48:39]CheckOFDResponse [16:48:39]1017 (14) - 77093643461234 [16:48:39]1041 (16) - 0000000000871829 [16:48:39]1040 (4) - 67523 [16:48:39]1012 (4) - 16.05.2024 10:32 [16:48:39]1206 (1) - 0 [16:48:39]OFD Sender: Remove packet 67523 [16:48:39]ProducePacketName [16:48:39]name=ofd_packets/00067523 [16:48:39]NVStorageDeleteData [16:48:39]Write to MH i2c: 01 00 00 EF 16 05 [16:48:39]Write i2c OK [16:48:39]MH_I2C_Read... [16:48:39]Read from MH i2c: 01 [16:48:39]MH_I2C_Read... [16:48:39]Read from MH i2c: 01 07 00 [16:48:39]MH_I2C_Read... [16:48:39]Read from MH i2c: 01 07 00 EF 16 00 00 00 00 00 DE 0C F6 [16:48:39]RasterBufferAndPrint [16:48:39]line [16:48:39]line [16:48:39]line [16:48:39]line [16:48:39]line [16:48:39]written 0, free lines is 3300 [16:48:39]MH_Cut [16:48:39]Write to MH i2c: D1 01 00 F6 16 01 DE [16:48:39]Write i2c OK [16:48:39]MH_I2C_Read... [16:48:39]Read from MH i2c: D1 [16:48:39]MH_I2C_Read... [16:48:39]Read from MH i2c: D1 01 00 [16:48:39]MH_I2C_Read... [16:48:39]Read from MH i2c: D1 01 00 F6 16 00 DD [16:48:39]Write to MH i2c: 01 00 00 F7 16 0D [16:48:39]Write i2c OK [16:48:39]MH_I2C_Read... [16:48:40]OFD Sender: No OFD packet to send [16:48:40]*** Cut start [16:48:40]*** Purtial cut [16:48:40]*** Stage 1: CUTSNS_PIN = 1 [16:48:40]Read from MH i2c: 01 [16:48:40]MH_I2C_Read... [16:48:40]*** Stop cut motor [16:48:40]*** Cut end [16:48:40]Read from MH i2c: 01 07 00 [16:48:40]MH_I2C_Read... [16:48:40]Read from MH i2c: 01 07 00 F7 16 00 00 00 00 00 FF 0F 22 [16:48:40]process_action close_receipt done [16:48:40]requested_data is exist [16:48:40]produce_requested_data [16:48:40]requested_item fm.sn is exist - process it [16:48:40]wFMCommunicate request_size=4 [16:48:40]MH_SAM_APDU [16:48:40]CAPDU: 80 11 00 00 [16:48:40]Write to MH i2c: E2 08 00 F8 16 80 11 00 00 00 00 00 00 88 [16:48:40]Write i2c OK [16:48:40]MH_I2C_Read... [16:48:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:40]Read from MH i2c: E2 [16:48:40]MH_I2C_Read... [16:48:40]Read from MH i2c: E2 17 00 [16:48:40]MH_I2C_Read... [16:48:40]Read from MH i2c: E2 17 00 F8 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DE [16:48:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:48:40]wFMCommunicate OK [16:48:40]requested_item fd.num is exist - process it [16:48:40]SAM_PROTO_GetFieldsCounters [16:48:40]wFMCommunicate request_size=4 [16:48:40]MH_SAM_APDU [16:48:40]CAPDU: 80 13 00 00 [16:48:40]Write to MH i2c: E2 08 00 F9 16 80 13 00 00 00 00 00 00 8B [16:48:40]Write i2c OK [16:48:40]MH_I2C_Read... [16:48:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:40]Read from MH i2c: E2 [16:48:40]MH_I2C_Read... [16:48:40]Read from MH i2c: E2 62 00 [16:48:40]MH_I2C_Read... [16:48:40]Read from MH i2c: E2 62 00 F9 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C3 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [16:48: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C3 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:48:40]wFMCommunicate OK [16:48:40]SAM_PROTO_GetFieldsCounters done [16:48:40]requested_item shift.num is exist - process it [16:48:40]requested_item shift.opened is exist - process it [16:48:40]req_shift_opened [16:48:40]FM_GetShiftState [16:48:40]SAM_PROTO_GetShiftState [16:48:40]wFMCommunicate request_size=4 [16:48:40]MH_SAM_APDU [16:48:40]CAPDU: 80 13 01 00 [16:48:40]Write to MH i2c: E2 08 00 FA 16 80 13 01 00 00 00 00 00 8D [16:48:40]Write i2c OK [16:48:40]MH_I2C_Read... [16:48:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:41]Read from MH i2c: E2 [16:48:41]MH_I2C_Read... [16:48:41]Read from MH i2c: E2 0E 00 [16:48:41]MH_I2C_Read... [16:48:41]Read from MH i2c: E2 0E 00 FA 16 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 39 [16:48:41]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [16:48:41]wFMCommunicate OK [16:48:41]SAM_PROTO_GetShiftState done [16:48:41]FM_GetShiftState done [16:48:41]req_shift_opened done [16:48:41]requested_item shift.open_date is exist - process it [16:48:41]req_shift_open_date [16:48:41]req_shift_open_date done [16:48:41]produce_requested_data done [16:48:41]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67523,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [16:48:41]process_action_free close_receipt [16:48:41]json_value_free [16:48:41]json_value_free done [16:48:41]process_json_proto returns [16:48:41]Send response to host [16:48:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67523,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [16:48:41]free response buf [16:48:41]execute_script done [16:48:41]execute_script returns [16:48:41]free content buf [16:48:41]Sock 9.Close socket [16:48:41]Sock 9.Thread stoped [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:55]OFD Sender: No OFD packet to send [16:52:00]OFD Sender: No OFD packet to send [16:52:05]OFD Sender: No OFD packet to send [16:52:10]OFD Sender: No OFD packet to send [16:52:15]OFD Sender: No OFD packet to send [16:52:20]OFD Sender: No OFD packet to send [16:52:25]OFD Sender: No OFD packet to send [16:52:30]OFD Sender: No OFD packet to send [16:52:35]OFD Sender: No OFD packet to send [16:52:40]OFD Sender: No OFD packet to send [16:52:45]OFD Sender: No OFD packet to send [16:52:50]OFD Sender: No OFD packet to send [16:52:55]OFD Sender: No OFD packet to send [16:53:00]OFD Sender: No OFD packet to send [16:53:05]OFD Sender: No OFD packet to send [16:53:10]OFD Sender: No OFD packet to send [16:53:15]OFD Sender: No OFD packet to send [16:53:20]OFD Sender: No OFD packet to send [16:53:25]OFD Sender: No OFD packet to send [16:53:30]OFD Sender: No OFD packet to send [16:53:35]OFD Sender: No OFD packet to send [16:53:40]OFD Sender: No OFD packet to send [16:53:45]OFD Sender: No OFD packet to send [16:53:50]OFD Sender: No OFD packet to send [16:53:55]OFD Sender: No OFD packet to send [16:54:00]OFD Sender: No OFD packet to send [16:54:05]OFD Sender: No OFD packet to send [16:54:10]OFD Sender: No OFD packet to send [16:54:15]OFD Sender: No OFD packet to send [16:54:20]OFD Sender: No OFD packet to send [16:54:25]OFD Sender: No OFD packet to send [16:54:30]OFD Sender: No OFD packet to send [16:54:35]OFD Sender: No OFD packet to send [16:54:40]OFD Sender: No OFD packet to send [16:54:45]OFD Sender: No OFD packet to send [16:54:50]OFD Sender: No OFD packet to send [16:54:55]OFD Sender: No OFD packet to send [16:55:00]OFD Sender: No OFD packet to send [16:55:05]OFD Sender: No OFD packet to send [16:55:10]OFD Sender: No OFD packet to send [16:55:15]OFD Sender: No OFD packet to send [16:55:20]OFD Sender: No OFD packet to send [16:55:25]OFD Sender: No OFD packet to send [16:55:30]OFD Sender: No OFD packet to send [16:55:35]OFD Sender: No OFD packet to send [16:55:40]OFD Sender: No OFD packet to send [16:55:45]OFD Sender: No OFD packet to send [16:55:50]OFD Sender: No OFD packet to send [16:55:55]OFD Sender: No OFD packet to send [16:56:00]OFD Sender: No OFD packet to send [16:56:05]OFD Sender: No OFD packet to send [16:56:10]OFD Sender: No OFD packet to send [16:56:15]OFD Sender: No OFD packet to send [16:56:20]OFD Sender: No OFD packet to send [16:56:25]OFD Sender: No OFD packet to send [16:56:30]OFD Sender: No OFD packet to send [16:56:35]OFD Sender: No OFD packet to send [16:56:40]OFD Sender: No OFD packet to send [16:56:45]OFD Sender: No OFD packet to send [16:56:50]OFD Sender: No OFD packet to send [16:56:55]OFD Sender: No OFD packet to send [16:57:00]OFD Sender: No OFD packet to send [16:57:05]OFD Sender: No OFD packet to send [16:57:10]OFD Sender: No OFD packet to send [16:57:15]OFD Sender: No OFD packet to send [16:57:20]OFD Sender: No OFD packet to send [16:57:25]OFD Sender: No OFD packet to send [16:57:30]OFD Sender: No OFD packet to send [16:57:35]OFD Sender: No OFD packet to send [16:57:40]OFD Sender: No OFD packet to send [16:57:45]OFD Sender: No OFD packet to send [16:57:50]OFD Sender: No OFD packet to send [16:57:55]OFD Sender: No OFD packet to send [16:58:00]OFD Sender: No OFD packet to send [16:58:05]OFD Sender: No OFD packet to send [16:58:10]OFD Sender: No OFD packet to send [16:58:15]OFD Sender: No OFD packet to send [16:58:18]accept exits with 8 [16:58:18]New connection [16:58:18]New thread 3067182436 created [16:58:18]Thread 3067039076 joined [16:58:18]Waiting for new connection... [16:58:18] Sock 8.Parse request [16:58:18]Sock 8.Check first char [16:58:18]Sock 8.First char is OK [16:58:18]request: POST /json_proto HTTP/1.0 [16:58:18]Method: POST [16:58:18]URL: /json_proto [16:58:18]Method is POST - this is cgi request [16:58:18]url: /json_proto [16:58:18]query_string will be loaded in cgi processing [16:58:18]execute_cgi json_proto POST (null) [16:58:18]execute_cgi path=json_proto method=POST [16:58:18]POST find Content-Length [16:58:18]Host: 172.17.41.195:8080 [16:58:18]Content-Length: 803 [16:58:18]Content-Type: application/json [16:58:18] [16:58:18]POST finish read [16:58:18]Found Content-Length = 803 [16:58:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507583", "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.80, "quantity" : 14.980, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:58:18]execute_script... [16:58: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)507583", "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.80, "quantity" : 14.980, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:58:18]POST & json_proto [16:58:18]process_json_proto [16:58:18]json parsed OK: [16:58:18]protocol is kg_v1.0 [16:58:18]action value=close_receipt [16:58:18]process_action close_receipt [16:58:18]cmd_close_receipt [16:58:18]MH_GetDate [16:58:18]Write to MH i2c: F0 00 00 FB 16 00 [16:58:18]Write i2c OK [16:58:18]MH_I2C_Read... [16:58:18]Read from MH i2c: F0 [16:58:18]MH_I2C_Read... [16:58:18]Read from MH i2c: F0 09 00 [16:58:18]MH_I2C_Read... [16:58:18]Read from MH i2c: F0 09 00 FB 16 00 2B 3B 46 66 FC 21 6F 64 0B [16:58:18]GetLastDocTimeStamp 1715878118 [16:58:18]current date 1715878699 [16:58:18]FM_GetShiftState [16:58:18]SAM_PROTO_GetShiftState [16:58:18]wFMCommunicate request_size=4 [16:58:18]MH_SAM_APDU [16:58:18]CAPDU: 80 13 01 00 [16:58:18]Write to MH i2c: E2 08 00 FC 16 80 13 01 00 00 00 00 00 8F [16:58:18]Write i2c OK [16:58:18]MH_I2C_Read... [16:58:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:18]Read from MH i2c: E2 [16:58:18]MH_I2C_Read... [16:58:18]Read from MH i2c: E2 0E 00 [16:58:18]MH_I2C_Read... [16:58:18]Read from MH i2c: E2 0E 00 FC 16 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 3B [16:58:18]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [16:58:18]wFMCommunicate OK [16:58:18]SAM_PROTO_GetShiftState done [16:58:18]FM_GetShiftState done [16:58:18]opened in 1715818916 [16:58:18]opened+sec_in_day 1715905316 [16:58:18]quantity*price = 100066 [16:58:18]sum+1 = 100067 [16:58:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.66 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.66 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 122 16.05.2024 16:58 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67524 ФПД: 13249852227651 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T165819&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67524&fm=13249852227651&tin=02508201610067®Number=0000000000091845&sum=100066 [16:58:19]StoreToDocumentArchive [16:58:19]shift 357 fd 67524 [16:58:19]save to /storage/0357/doc_00067524 [16:58:19]save last doc name /storage/0357/doc_00067524 to /storage/kkm_last_doc_name [16:58:19]save OK [16:58:19]Clear old archive folders... [16:58:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:58:19]tlvbuf is B6F8D870 [16:58:19]SAM_PROTO_ClearQueue [16:58:19]wFMCommunicate request_size=4 [16:58:19]MH_SAM_APDU [16:58:19]CAPDU: 80 09 00 00 [16:58:19]Write to MH i2c: E2 08 00 09 17 80 09 00 00 00 00 00 00 92 [16:58:19]Write i2c OK [16:58:19]MH_I2C_Read... [16:58:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:58:19]Read from MH i2c: E2 [16:58:19]MH_I2C_Read... [16:58:19]Read from MH i2c: E2 03 00 [16:58:19]MH_I2C_Read... [16:58:19]Read from MH i2c: E2 03 00 09 17 00 90 00 94 [16:58:19]RAPDU: 90 00 [16:58:19]wFMCommunicate OK [16:58:19]SAM_PROTO_ClearQueue done [16:58:19]KKMCreateOFDPacket [16:58:19]OFDProtocolAddRootSTLVToBuf [16:58:19]FM_MakeSignedData [16:58:19]FM_MakeSignedData [16:58:19]SAM_PROTO_SignData [16:58:19]wFMCommunicate request_size=4 [16:58:19]MH_SAM_APDU [16:58:19]CAPDU: 80 0D 01 02 [16:58:19]Write to MH i2c: E2 08 00 0A 17 80 0D 01 02 00 00 00 00 9A [16:58:19]Write i2c OK [16:58:19]MH_I2C_Read... [16:58:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:58:19]Read from MH i2c: E2 [16:58:19]MH_I2C_Read... [16:58:19]Read from MH i2c: E2 03 00 [16:58:19]MH_I2C_Read... [16:58:19]Read from MH i2c: E2 03 00 0A 17 00 90 00 95 [16:58:19]RAPDU: 90 00 [16:58:19]wFMCommunicate OK [16:58:19]wFMCommunicate request_size=255 [16:58:19]MH_SAM_APDU [16:58: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 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 2B 3B 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C4 07 01 00 35 04 06 00 0C [16:58:19]Write to MH i2c: E2 02 01 0B 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 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 2B 3B 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C4 07 01 00 35 04 06 00 0C 00 00 C1 [16:58:19]Write i2c OK [16:58:19]MH_I2C_Read... [16:58:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:19]Read from MH i2c: E2 [16:58:19]MH_I2C_Read... [16:58:19]Read from MH i2c: E2 03 00 [16:58:19]MH_I2C_Read... [16:58:19]Read from MH i2c: E2 03 00 0B 17 00 90 00 96 [16:58:19]RAPDU: 90 00 [16:58:19]wFMCommunicate OK [16:58:19]wFMCommunicate request_size=10 [16:58:19]MH_SAM_APDU [16:58:19]CAPDU: 80 0D 02 02 05 0C F8 BC 40 43 [16:58:19]Write to MH i2c: E2 0D 00 0C 17 80 0D 02 02 05 00 0C F8 BC 40 43 00 00 EA [16:58:19]Write i2c OK [16:58:19]MH_I2C_Read... [16:58:19]Read from MH i2c: E2 [16:58:19]MH_I2C_Read... [16:58:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:19]Read from MH i2c: E2 03 00 [16:58:19]MH_I2C_Read... [16:58:19]Read from MH i2c: E2 03 00 0C 17 00 90 00 97 [16:58:19]RAPDU: 90 00 [16:58:19]wFMCommunicate OK [16:58:19]wFMCommunicate request_size=4 [16:58:19]MH_SAM_APDU [16:58:19]CAPDU: 80 0D 03 02 [16:58:19]Write to MH i2c: E2 08 00 0D 17 80 0D 03 02 00 00 00 00 9F [16:58:19]Write i2c OK [16:58:19]MH_I2C_Read... [16:58:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:58:19]Read from MH i2c: E2 [16:58:19]MH_I2C_Read... [16:58:19]Read from MH i2c: E2 0B 00 [16:58:19]MH_I2C_Read... [16:58:19]Read from MH i2c: E2 0B 00 0D 17 00 AC EF DB F8 3D E2 0B F6 90 00 2E [16:58:19]RAPDU: AC EF DB F8 3D E2 0B F6 90 00 [16:58:19]wFMCommunicate OK [16:58:19]SAM_PROTO_SignData done [16:58:19]FM_MakeSignedData done [16:58:19]CreateOFDProtocolMessage [16:58:19]wFMCommunicate request_size=4 [16:58:19]MH_SAM_APDU [16:58:19]CAPDU: 80 11 00 00 [16:58:19]Write to MH i2c: E2 08 00 0E 17 80 11 00 00 00 00 00 00 9F [16:58:19]Write i2c OK [16:58:19]MH_I2C_Read... [16:58:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:19]Read from MH i2c: E2 [16:58:19]MH_I2C_Read... [16:58:19]Read from MH i2c: E2 17 00 [16:58:19]MH_I2C_Read... [16:58:19]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 38 32 39 90 00 F5 [16:58:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:58:19]wFMCommunicate OK [16:58:19]CreateOFDProtocolMessage done [16:58:19]OFDSenderStorePacket 67524 [16:58:19]StoreOFDPacket docnum=67524 [16:58:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 28 DA 07 01 2D 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 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 2B 3B 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C4 07 01 00 35 04 06 00 0C 0C F8 BC 40 43 AC EF DB F8 3D E2 0B F6 [16:58:19]CheckFolder [16:58:19]dirname=/storage/ofd_packets [16:58:19]CheckFolder done [16:58:19]ProducePacketName [16:58:19]name=ofd_packets/00067524 [16:58:19]NVStorageSaveData ofd_packets/00067524 [16:58:19]File name is /storage/ofd_packets/00067524 [16:58:19]Write 301 bytes [16:58:19]NVStorageSaveData done [16:58:19]OFDSenderStorePacket done [16:58:19]KKMCreateOFDPacket done [16:58:19]NVStorageSaveData kkm_last_timestamp [16:58:19]File name is /storage/kkm_last_timestamp [16:58:19]Write 4 bytes [16:58:19]NVStorageSaveData done [16:58:19]ExternCall_PrintAddStr [16:58:19]wPrintStart [16:58:19]Write to MH i2c: 01 00 00 0F 17 26 [16:58:19]Write i2c OK [16:58:19]MH_I2C_Read... [16:58:19]Read from MH i2c: 01 [16:58:19]MH_I2C_Read... [16:58:19]Read from MH i2c: 01 07 00 [16:58:19]MH_I2C_Read... [16:58:19]Read from MH i2c: 01 07 00 0F 17 00 00 00 00 00 FF 0F 3B [16:58:19]RasterBufferAndPrint [16:58:19]line Счет N : (1)507583 [16:58:19]line ИНН: 02508201610067 [16:58:19]line Контрольно-Кассовый Чек [16:58:19]line ПРОДАЖА [16:58:19]line ТРК (МРК, ГНК) : 43 [16:58:19]line Товар: 2710124130 [16:58:19]line Аи-92-К-5 [16:58:19]line 14.980 * 66.80 [16:58:19]line = 1000.66 [16:58:19]line НДС 12% НСП 1% [16:58:19]line > о реализуемом товаре [16:58:19]line ИТОГО: 1000.66 [16:58:19]line НСП 1% : 8.85 [16:58:19]line НДС 12% : 106.26 [16:58:19]line Наличными: 0.00 [16:58:19]line Безнал.: 1000.66 [16:58:19]line Место: АЗС № 91 "Партнер Нефть" [16:58:19]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [16:58:19]line СНО: Общий режим [16:58:19]line Чек 122 16.05.2024 16:58 [16:58:19]line Смена: 357 ФФД: 1.0 [16:58:19]line ЗНМ: 0300000119 [16:58:19]line РНМ: 0000000000091845 [16:58:19]line Версия ККМ: 001 [16:58:19]line Платежная система: O! деньги [16:58:19]line ФМ: 0000000000871829 [16:58:19]line ФД: 67524 [16:58:19]line ФПД: 13249852227651 [16:58:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T165819&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67524&fm=13249852227651&tin=02508201610067®Number=0000000000091845&sum=100066 [16:58:20]OFD Sender: Processing packet 67524 [packets to send 35, broken 34] [16:58:20]ProducePacketName [16:58:20]name=ofd_packets/00067524 [16:58:20]OFD Sender: To server: pG, [16:58:20]CommunicateWithHost lk.salyk.kg:30040 [16:58:20]ConnectInit lk.salyk.kg [16:58:20]written 0, free lines is 4095 [16:58:20]Connected sock=10 [16:58: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 38 32 39 0F 01 00 00 28 DA 07 01 2D 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 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 2B 3B 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C4 07 01 00 35 04 06 00 0C 0C F8 BC 40 43 AC EF DB F8 3D E2 0B F6 [16:58:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 F2 D1 47 00 70 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 38 32 39 10 04 04 00 C4 07 01 00 F4 03 04 00 05 E3 45 66 B6 04 01 00 00 B7 94 AF 49 C0 9D 36 56 [16:58:20]CommunicateWithHost err = 0 [16:58:20]CheckOFDResponse [16:58:20]1017 (14) - 77093643461234 [16:58:20]1041 (16) - 0000000000871829 [16:58:20]1040 (4) - 67524 [16:58:20]1012 (4) - 16.05.2024 10:42 [16:58:20]1206 (1) - 0 [16:58:20]OFD Sender: Remove packet 67524 [16:58:20]ProducePacketName [16:58:20]name=ofd_packets/00067524 [16:58:20]NVStorageDeleteData [16:58:20]Write to MH i2c: 01 00 00 38 17 4F [16:58:20]Write i2c OK [16:58:20]MH_I2C_Read... [16:58:20]Read from MH i2c: 01 [16:58:20]MH_I2C_Read... [16:58:20]Read from MH i2c: 01 07 00 [16:58:20]MH_I2C_Read... [16:58:20]Read from MH i2c: 01 07 00 38 17 00 00 00 00 00 E1 0C 43 [16:58:20]RasterBufferAndPrint [16:58:20]line [16:58:20]line [16:58:20]line [16:58:20]line [16:58:20]line [16:58:20]written 0, free lines is 3302 [16:58:20]MH_Cut [16:58:20]Write to MH i2c: D1 01 00 3F 17 01 28 [16:58:20]Write i2c OK [16:58:20]MH_I2C_Read... [16:58:20]Read from MH i2c: D1 [16:58:20]MH_I2C_Read... [16:58:20]Read from MH i2c: D1 01 00 [16:58:20]MH_I2C_Read... [16:58:20]Read from MH i2c: D1 01 00 3F 17 00 27 [16:58:20]Write to MH i2c: 01 00 00 40 17 57 [16:58:20]Write i2c OK [16:58:20]MH_I2C_Read... [16:58:20]OFD Sender: No OFD packet to send [16:58:21]*** Cut start [16:58:21]*** Purtial cut [16:58:21]*** CUTSNS_PIN = 0 [16:58:21]*** Stage 1: CUTSNS_PIN = 1 [16:58:23]Read from MH i2c: 01 [16:58:23]MH_I2C_Read... [16:58:23]*** Stop cut motor [16:58:23]*** Cut end [16:58:23]Read from MH i2c: 01 07 00 [16:58:23]MH_I2C_Read... [16:58:23]Read from MH i2c: 01 07 00 40 17 00 00 00 00 00 FF 0F 6C [16:58:23]process_action close_receipt done [16:58:23]requested_data is exist [16:58:23]produce_requested_data [16:58:23]requested_item fm.sn is exist - process it [16:58:23]wFMCommunicate request_size=4 [16:58:23]MH_SAM_APDU [16:58:23]CAPDU: 80 11 00 00 [16:58:23]Write to MH i2c: E2 08 00 41 17 80 11 00 00 00 00 00 00 D2 [16:58:23]Write i2c OK [16:58:23]MH_I2C_Read... [16:58:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:23]Read from MH i2c: E2 [16:58:23]MH_I2C_Read... [16:58:23]Read from MH i2c: E2 17 00 [16:58:23]MH_I2C_Read... [16:58:23]Read from MH i2c: E2 17 00 41 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 28 [16:58:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:58:23]wFMCommunicate OK [16:58:23]requested_item fd.num is exist - process it [16:58:23]SAM_PROTO_GetFieldsCounters [16:58:23]wFMCommunicate request_size=4 [16:58:23]MH_SAM_APDU [16:58:23]CAPDU: 80 13 00 00 [16:58:23]Write to MH i2c: E2 08 00 42 17 80 13 00 00 00 00 00 00 D5 [16:58:23]Write i2c OK [16:58:23]MH_I2C_Read... [16:58:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:58:23]Read from MH i2c: E2 [16:58:23]MH_I2C_Read... [16:58:23]Read from MH i2c: E2 62 00 [16:58:23]MH_I2C_Read... [16:58:23]Read from MH i2c: E2 62 00 42 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C4 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [16:58: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C4 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:58:23]wFMCommunicate OK [16:58:23]SAM_PROTO_GetFieldsCounters done [16:58:23]requested_item shift.num is exist - process it [16:58:23]requested_item shift.opened is exist - process it [16:58:23]req_shift_opened [16:58:23]FM_GetShiftState [16:58:23]SAM_PROTO_GetShiftState [16:58:23]wFMCommunicate request_size=4 [16:58:23]MH_SAM_APDU [16:58:23]CAPDU: 80 13 01 00 [16:58:23]Write to MH i2c: E2 08 00 43 17 80 13 01 00 00 00 00 00 D7 [16:58:23]Write i2c OK [16:58:23]MH_I2C_Read... [16:58:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:23]Read from MH i2c: E2 [16:58:23]MH_I2C_Read... [16:58:23]Read from MH i2c: E2 0E 00 [16:58:23]MH_I2C_Read... [16:58:23]Read from MH i2c: E2 0E 00 43 17 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 83 [16:58:23]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [16:58:23]wFMCommunicate OK [16:58:23]SAM_PROTO_GetShiftState done [16:58:23]FM_GetShiftState done [16:58:23]req_shift_opened done [16:58:23]requested_item shift.open_date is exist - process it [16:58:23]req_shift_open_date [16:58:23]req_shift_open_date done [16:58:23]produce_requested_data done [16:58:23]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67524,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [16:58:23]process_action_free close_receipt [16:58:23]json_value_free [16:58:23]json_value_free done [16:58:23]process_json_proto returns [16:58:23]Send response to host [16:58:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67524,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [16:58:23]free response buf [16:58:23]execute_script done [16:58:23]execute_script returns [16:58:23]free content buf [16:58:23]Sock 8.Close socket [16:58:23]Sock 8.Thread stoped [16:58:25]OFD Sender: No OFD packet to send [16:58:30]OFD Sender: No OFD packet to send [16:58:35]OFD Sender: No OFD packet to send [16:58:40]OFD Sender: No OFD packet to send [16:58:45]OFD Sender: No OFD packet to send [16:58:50]OFD Sender: No OFD packet to send [16:58:55]OFD Sender: No OFD packet to send [16:59:00]OFD Sender: No OFD packet to send [16:59:05]OFD Sender: No OFD packet to send [16:59:10]OFD Sender: No OFD packet to send [16:59:15]OFD Sender: No OFD packet to send [16:59:20]OFD Sender: No OFD packet to send [16:59:25]OFD Sender: No OFD packet to send [16:59:30]OFD Sender: No OFD packet to send [16:59:35]OFD Sender: No OFD packet to send [16:59:40]OFD Sender: No OFD packet to send [16:59:45]OFD Sender: No OFD packet to send [16:59:50]OFD Sender: No OFD packet to send [16:59:55]OFD Sender: No OFD packet to send [17:00:00]OFD Sender: No OFD packet to send [17:00:05]OFD Sender: No OFD packet to send [17:00:10]OFD Sender: No OFD packet to send [17:00:15]OFD Sender: No OFD packet to send [17:00:20]OFD Sender: No OFD packet to send [17:00:25]accept exits with 9 [17:00:25]New connection [17:00:25]New thread 3067039076 created [17:00:25]Thread 3067182436 joined [17:00:25]Waiting for new connection... [17:00:25] Sock 9.Parse request [17:00:25]Sock 9.Check first char [17:00:25]Sock 9.First char is OK [17:00:25]request: POST /json_proto HTTP/1.0 [17:00:25]Method: POST [17:00:25]URL: /json_proto [17:00:25]Method is POST - this is cgi request [17:00:25]url: /json_proto [17:00:25]query_string will be loaded in cgi processing [17:00:25]execute_cgi json_proto POST (null) [17:00:25]execute_cgi path=json_proto method=POST [17:00:25]POST find Content-Length [17:00:25]Host: 172.17.41.195:8080 [17:00:25]Content-Length: 800 [17:00:25]Content-Type: application/json [17:00:25] [17:00:25]POST finish read [17:00:25]Found Content-Length = 800 [17:00:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507584", "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" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:00:25]execute_script... [17:00: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)507584", "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" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:00:25]POST & json_proto [17:00:25]process_json_proto [17:00:25]json parsed OK: [17:00:25]protocol is kg_v1.0 [17:00:25]action value=close_receipt [17:00:25]process_action close_receipt [17:00:25]cmd_close_receipt [17:00:25]MH_GetDate [17:00:25]Write to MH i2c: F0 00 00 44 17 4A [17:00:25]Write i2c OK [17:00:25]MH_I2C_Read... [17:00:25]Read from MH i2c: F0 [17:00:25]MH_I2C_Read... [17:00:25]Read from MH i2c: F0 09 00 [17:00:25]MH_I2C_Read... [17:00:25]Read from MH i2c: F0 09 00 44 17 00 AA 3B 46 66 FC 21 6F 64 D4 [17:00:25]GetLastDocTimeStamp 1715878699 [17:00:25]current date 1715878826 [17:00:25]FM_GetShiftState [17:00:25]SAM_PROTO_GetShiftState [17:00:25]wFMCommunicate request_size=4 [17:00:25]MH_SAM_APDU [17:00:25]CAPDU: 80 13 01 00 [17:00:25]Write to MH i2c: E2 08 00 45 17 80 13 01 00 00 00 00 00 D9 [17:00:25]Write i2c OK [17:00:25]MH_I2C_Read... [17:00:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:00:25]Read from MH i2c: E2 [17:00:25]MH_I2C_Read... [17:00:25]Read from MH i2c: E2 0E 00 [17:00:25]MH_I2C_Read... [17:00:25]Read from MH i2c: E2 0E 00 45 17 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 85 [17:00:25]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [17:00:25]wFMCommunicate OK [17:00:25]SAM_PROTO_GetShiftState done [17:00:25]FM_GetShiftState done [17:00:25]opened in 1715818916 [17:00:25]opened+sec_in_day 1715905316 [17:00:25]quantity*price = 100023 [17:00:25]sum+1 = 100024 [17:00:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.23 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.23 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 123 16.05.2024 17:00 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67525 ФПД: 90567586086365 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T170026&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67525&fm=90567586086365&tin=02508201610067®Number=0000000000091845&sum=100023 [17:00:26]StoreToDocumentArchive [17:00:26]shift 357 fd 67525 [17:00:26]save to /storage/0357/doc_00067525 [17:00:26]save last doc name /storage/0357/doc_00067525 to /storage/kkm_last_doc_name [17:00:26]save OK [17:00:26]Clear old archive folders... [17:00:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:00:26]tlvbuf is 017D98B0 [17:00:26]SAM_PROTO_ClearQueue [17:00:26]wFMCommunicate request_size=4 [17:00:26]MH_SAM_APDU [17:00:26]CAPDU: 80 09 00 00 [17:00:26]Write to MH i2c: E2 08 00 52 17 80 09 00 00 00 00 00 00 DB [17:00:26]Write i2c OK [17:00:26]MH_I2C_Read... [17:00:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:00:26]Read from MH i2c: E2 [17:00:26]MH_I2C_Read... [17:00:26]Read from MH i2c: E2 03 00 [17:00:26]MH_I2C_Read... [17:00:26]Read from MH i2c: E2 03 00 52 17 00 90 00 DD [17:00:26]RAPDU: 90 00 [17:00:26]wFMCommunicate OK [17:00:26]SAM_PROTO_ClearQueue done [17:00:26]KKMCreateOFDPacket [17:00:26]OFDProtocolAddRootSTLVToBuf [17:00:26]FM_MakeSignedData [17:00:26]FM_MakeSignedData [17:00:26]SAM_PROTO_SignData [17:00:26]wFMCommunicate request_size=4 [17:00:26]MH_SAM_APDU [17:00:26]CAPDU: 80 0D 01 02 [17:00:26]Write to MH i2c: E2 08 00 53 17 80 0D 01 02 00 00 00 00 E3 [17:00:26]Write i2c OK [17:00:26]MH_I2C_Read... [17:00:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:00:26]Read from MH i2c: E2 [17:00:26]MH_I2C_Read... [17:00:26]Read from MH i2c: E2 03 00 [17:00:26]MH_I2C_Read... [17:00:26]Read from MH i2c: E2 03 00 53 17 00 90 00 DE [17:00:26]RAPDU: 90 00 [17:00:26]wFMCommunicate OK [17:00:26]wFMCommunicate request_size=255 [17:00:26]MH_SAM_APDU [17:00: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 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 AA 3B 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C5 07 01 00 35 04 06 00 52 5E E8 CB [17:00:26]Write to MH i2c: E2 02 01 54 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 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 AA 3B 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C5 07 01 00 35 04 06 00 52 5E E8 CB 00 00 8D [17:00:26]Write i2c OK [17:00:26]MH_I2C_Read... [17:00:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:00:26]Read from MH i2c: E2 [17:00:26]MH_I2C_Read... [17:00:26]Read from MH i2c: E2 03 00 [17:00:26]MH_I2C_Read... [17:00:26]Read from MH i2c: E2 03 00 54 17 00 90 00 DF [17:00:26]RAPDU: 90 00 [17:00:26]wFMCommunicate OK [17:00:26]wFMCommunicate request_size=7 [17:00:26]MH_SAM_APDU [17:00:26]CAPDU: 80 0D 02 02 02 FD DD [17:00:26]Write to MH i2c: E2 0A 00 55 17 80 0D 02 02 02 00 FD DD 00 00 C4 [17:00:26]Write i2c OK [17:00:26]MH_I2C_Read... [17:00:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:00:26]Read from MH i2c: E2 [17:00:26]MH_I2C_Read... [17:00:26]Read from MH i2c: E2 03 00 [17:00:26]MH_I2C_Read... [17:00:26]Read from MH i2c: E2 03 00 55 17 00 90 00 E0 [17:00:26]RAPDU: 90 00 [17:00:26]wFMCommunicate OK [17:00:26]wFMCommunicate request_size=4 [17:00:26]MH_SAM_APDU [17:00:26]CAPDU: 80 0D 03 02 [17:00:26]Write to MH i2c: E2 08 00 56 17 80 0D 03 02 00 00 00 00 E8 [17:00:26]Write i2c OK [17:00:26]MH_I2C_Read... [17:00:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:00:26]Read from MH i2c: E2 [17:00:26]MH_I2C_Read... [17:00:26]Read from MH i2c: E2 0B 00 [17:00:26]MH_I2C_Read... [17:00:26]Read from MH i2c: E2 0B 00 56 17 00 75 F6 C6 23 5C 42 DE C5 90 00 7E [17:00:26]RAPDU: 75 F6 C6 23 5C 42 DE C5 90 00 [17:00:26]wFMCommunicate OK [17:00:26]SAM_PROTO_SignData done [17:00:26]FM_MakeSignedData done [17:00:26]CreateOFDProtocolMessage [17:00:26]wFMCommunicate request_size=4 [17:00:26]MH_SAM_APDU [17:00:26]CAPDU: 80 11 00 00 [17:00:26]Write to MH i2c: E2 08 00 57 17 80 11 00 00 00 00 00 00 E8 [17:00:26]Write i2c OK [17:00:26]MH_I2C_Read... [17:00:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:00:26]Read from MH i2c: E2 [17:00:26]MH_I2C_Read... [17:00:26]Read from MH i2c: E2 17 00 [17:00:26]MH_I2C_Read... [17:00:26]Read from MH i2c: E2 17 00 57 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3E [17:00:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:00:26]wFMCommunicate OK [17:00:26]CreateOFDProtocolMessage done [17:00:26]OFDSenderStorePacket 67525 [17:00:26]StoreOFDPacket docnum=67525 [17:00:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 84 2F 04 01 2F 3E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 AA 3B 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C5 07 01 00 35 04 06 00 52 5E E8 CB FD DD 75 F6 C6 23 5C 42 DE C5 [17:00:26]CheckFolder [17:00:26]dirname=/storage/ofd_packets [17:00:26]CheckFolder done [17:00:26]ProducePacketName [17:00:26]name=ofd_packets/00067525 [17:00:26]NVStorageSaveData ofd_packets/00067525 [17:00:26]File name is /storage/ofd_packets/00067525 [17:00:26]Write 298 bytes [17:00:26]NVStorageSaveData done [17:00:26]OFDSenderStorePacket done [17:00:26]KKMCreateOFDPacket done [17:00:26]NVStorageSaveData kkm_last_timestamp [17:00:26]File name is /storage/kkm_last_timestamp [17:00:26]Write 4 bytes [17:00:26]NVStorageSaveData done [17:00:26]ExternCall_PrintAddStr [17:00:26]wPrintStart [17:00:26]Write to MH i2c: 01 00 00 58 17 6F [17:00:26]Write i2c OK [17:00:26]MH_I2C_Read... [17:00:26]Read from MH i2c: 01 [17:00:26]MH_I2C_Read... [17:00:26]Read from MH i2c: 01 07 00 [17:00:26]MH_I2C_Read... [17:00:26]Read from MH i2c: 01 07 00 58 17 00 00 00 00 00 FF 0F 84 [17:00:26]RasterBufferAndPrint [17:00:26]line Счет N : (1)507584 [17:00:26]line ИНН: 02508201610067 [17:00:26]line Контрольно-Кассовый Чек [17:00:26]line ПРОДАЖА [17:00:26]line ТРК (МРК, ГНК) : 21 [17:00:26]line Товар: 2710194210 [17:00:26]line ДТ-К-5 [17:00:26]line 13.390 * 74.70 [17:00:26]line = 1000.23 [17:00:26]line НДС 12% НСП 1% [17:00:26]line > о реализуемом товаре [17:00:26]line ИТОГО: 1000.23 [17:00:26]line НСП 1% : 8.85 [17:00:26]line НДС 12% : 106.22 [17:00:26]line Наличными: 0.00 [17:00:26]line Безнал.: 1000.23 [17:00:26]line Место: АЗС № 91 "Партнер Нефть" [17:00:26]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:00:26]line СНО: Общий режим [17:00:26]line Чек 123 16.05.2024 17:00 [17:00:26]line Смена: 357 ФФД: 1.0 [17:00:26]line ЗНМ: 0300000119 [17:00:26]line РНМ: 0000000000091845 [17:00:26]line Версия ККМ: 001 [17:00:27]line Платежная система: O! деньги [17:00:27]line ФМ: 0000000000871829 [17:00:27]line ФД: 67525 [17:00:27]line ФПД: 90567586086365 [17:00:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T170026&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67525&fm=90567586086365&tin=02508201610067®Number=0000000000091845&sum=100023 [17:00:27]OFD Sender: Processing packet 67525 [packets to send 35, broken 34] [17:00:27]ProducePacketName [17:00:27]name=ofd_packets/00067525 [17:00:27]OFD Sender: To server: pG, [17:00:27]CommunicateWithHost lk.salyk.kg:30040 [17:00:27]ConnectInit lk.salyk.kg [17:00:27]written 0, free lines is 4095 [17:00:27]Connected sock=10 [17:00: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 38 32 39 0C 01 00 00 84 2F 04 01 2F 3E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 AA 3B 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C5 07 01 00 35 04 06 00 52 5E E8 CB FD DD 75 F6 C6 23 5C 42 DE C5 [17:00:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 D9 6A 47 00 EA 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 38 32 39 10 04 04 00 C5 07 01 00 F4 03 04 00 85 E3 45 66 B6 04 01 00 00 1D 45 AF 67 81 98 B0 D8 [17:00:27]CommunicateWithHost err = 0 [17:00:27]CheckOFDResponse [17:00:27]1017 (14) - 77093643461234 [17:00:27]1041 (16) - 0000000000871829 [17:00:27]1040 (4) - 67525 [17:00:27]1012 (4) - 16.05.2024 10:44 [17:00:27]1206 (1) - 0 [17:00:27]OFD Sender: Remove packet 67525 [17:00:27]ProducePacketName [17:00:27]name=ofd_packets/00067525 [17:00:27]NVStorageDeleteData [17:00:27]Write to MH i2c: 01 00 00 81 17 98 [17:00:27]Write i2c OK [17:00:27]MH_I2C_Read... [17:00:27]Read from MH i2c: 01 [17:00:27]MH_I2C_Read... [17:00:27]Read from MH i2c: 01 07 00 [17:00:27]MH_I2C_Read... [17:00:27]Read from MH i2c: 01 07 00 81 17 00 00 00 00 00 DF 0C 8A [17:00:27]RasterBufferAndPrint [17:00:27]line [17:00:27]line [17:00:27]line [17:00:27]line [17:00:27]line [17:00:27]written 0, free lines is 3299 [17:00:27]MH_Cut [17:00:27]Write to MH i2c: D1 01 00 88 17 01 71 [17:00:27]Write i2c OK [17:00:27]MH_I2C_Read... [17:00:27]Read from MH i2c: D1 [17:00:27]MH_I2C_Read... [17:00:27]Read from MH i2c: D1 01 00 [17:00:27]MH_I2C_Read... [17:00:27]Read from MH i2c: D1 01 00 88 17 00 70 [17:00:27]Write to MH i2c: 01 00 00 89 17 A0 [17:00:27]Write i2c OK [17:00:27]MH_I2C_Read... [17:00:28]OFD Sender: No OFD packet to send [17:00:28]*** Cut start [17:00:28]*** Purtial cut [17:00:28]*** Stage 1: CUTSNS_PIN = 1 [17:00:28]Read from MH i2c: 01 [17:00:28]MH_I2C_Read... [17:00:28]*** Stop cut motor [17:00:28]*** Cut end [17:00:28]Read from MH i2c: 01 07 00 [17:00:28]MH_I2C_Read... [17:00:28]Read from MH i2c: 01 07 00 89 17 00 00 00 00 00 FF 0F B5 [17:00:28]process_action close_receipt done [17:00:28]requested_data is exist [17:00:28]produce_requested_data [17:00:28]requested_item fm.sn is exist - process it [17:00:28]wFMCommunicate request_size=4 [17:00:28]MH_SAM_APDU [17:00:28]CAPDU: 80 11 00 00 [17:00:28]Write to MH i2c: E2 08 00 8A 17 80 11 00 00 00 00 00 00 1B [17:00:28]Write i2c OK [17:00:28]MH_I2C_Read... [17:00:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:00:28]Read from MH i2c: E2 [17:00:28]MH_I2C_Read... [17:00:28]Read from MH i2c: E2 17 00 [17:00:28]MH_I2C_Read... [17:00:28]Read from MH i2c: E2 17 00 8A 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 71 [17:00:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:00:28]wFMCommunicate OK [17:00:28]requested_item fd.num is exist - process it [17:00:28]SAM_PROTO_GetFieldsCounters [17:00:28]wFMCommunicate request_size=4 [17:00:28]MH_SAM_APDU [17:00:28]CAPDU: 80 13 00 00 [17:00:28]Write to MH i2c: E2 08 00 8B 17 80 13 00 00 00 00 00 00 1E [17:00:28]Write i2c OK [17:00:28]MH_I2C_Read... [17:00:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:00:29]Read from MH i2c: E2 [17:00:29]MH_I2C_Read... [17:00:29]Read from MH i2c: E2 62 00 [17:00:29]MH_I2C_Read... [17:00:29]Read from MH i2c: E2 62 00 8B 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C5 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [17:00: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C5 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:00:29]wFMCommunicate OK [17:00:29]SAM_PROTO_GetFieldsCounters done [17:00:29]requested_item shift.num is exist - process it [17:00:29]requested_item shift.opened is exist - process it [17:00:29]req_shift_opened [17:00:29]FM_GetShiftState [17:00:29]SAM_PROTO_GetShiftState [17:00:29]wFMCommunicate request_size=4 [17:00:29]MH_SAM_APDU [17:00:29]CAPDU: 80 13 01 00 [17:00:29]Write to MH i2c: E2 08 00 8C 17 80 13 01 00 00 00 00 00 20 [17:00:29]Write i2c OK [17:00:29]MH_I2C_Read... [17:00:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:00:29]Read from MH i2c: E2 [17:00:29]MH_I2C_Read... [17:00:29]Read from MH i2c: E2 0E 00 [17:00:29]MH_I2C_Read... [17:00:29]Read from MH i2c: E2 0E 00 8C 17 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 CC [17:00:29]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [17:00:29]wFMCommunicate OK [17:00:29]SAM_PROTO_GetShiftState done [17:00:29]FM_GetShiftState done [17:00:29]req_shift_opened done [17:00:29]requested_item shift.open_date is exist - process it [17:00:29]req_shift_open_date [17:00:29]req_shift_open_date done [17:00:29]produce_requested_data done [17:00:29]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67525,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [17:00:29]process_action_free close_receipt [17:00:29]json_value_free [17:00:29]json_value_free done [17:00:29]process_json_proto returns [17:00:29]Send response to host [17:00:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67525,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [17:00:29]free response buf [17:00:29]execute_script done [17:00:29]execute_script returns [17:00:29]free content buf [17:00:29]Sock 9.Close socket [17:00:29]Sock 9.Thread stoped [17:00:33]OFD Sender: No OFD packet to send [17:00:38]OFD Sender: No OFD packet to send [17:00:43]OFD Sender: No OFD packet to send [17:00:48]OFD Sender: No OFD packet to send [17:00:53]OFD Sender: No OFD packet to send [17:00:58]OFD Sender: No OFD packet to send [17:01:03]OFD Sender: No OFD packet to send [17:01:08]OFD Sender: No OFD packet to send [17:01:13]OFD Sender: No OFD packet to send [17:01:18]OFD Sender: No OFD packet to send [17:01:23]OFD Sender: No OFD packet to send [17:01:28]OFD Sender: No OFD packet to send [17:01:33]OFD Sender: No OFD packet to send [17:01:38]OFD Sender: No OFD packet to send [17:01:43]OFD Sender: No OFD packet to send [17:01:48]OFD Sender: No OFD packet to send [17:01:53]OFD Sender: No OFD packet to send [17:01:58]OFD Sender: No OFD packet to send [17:02:03]OFD Sender: No OFD packet to send [17:02:08]OFD Sender: No OFD packet to send [17:02:13]OFD Sender: No OFD packet to send [17:02:18]OFD Sender: No OFD packet to send [17:02:23]OFD Sender: No OFD packet to send [17:02:28]OFD Sender: No OFD packet to send [17:02:33]OFD Sender: No OFD packet to send [17:02:38]OFD Sender: No OFD packet to send [17:02:43]OFD Sender: No OFD packet to send [17:02:48]OFD Sender: No OFD packet to send [17:02:53]OFD Sender: No OFD packet to send [17:02:58]OFD Sender: No OFD packet to send [17:03:03]OFD Sender: No OFD packet to send [17:03:08]OFD Sender: No OFD packet to send [17:03:13]OFD Sender: No OFD packet to send [17:03:18]OFD Sender: No OFD packet to send [17:03:23]OFD Sender: No OFD packet to send [17:03:28]OFD Sender: No OFD packet to send [17:03:33]OFD Sender: No OFD packet to send [17:03:38]OFD Sender: No OFD packet to send [17:03:43]OFD Sender: No OFD packet to send [17:03:48]OFD Sender: No OFD packet to send [17:03:53]OFD Sender: No OFD packet to send [17:03:58]OFD Sender: No OFD packet to send [17:04:03]OFD Sender: No OFD packet to send [17:04:08]OFD Sender: No OFD packet to send [17:04:13]OFD Sender: No OFD packet to send [17:04:18]OFD Sender: No OFD packet to send [17:04:23]OFD Sender: No OFD packet to send [17:04:28]OFD Sender: No OFD packet to send [17:04:33]OFD Sender: No OFD packet to send [17:04:38]OFD Sender: No OFD packet to send [17:04:41]accept exits with 8 [17:04:41]New connection [17:04:41]New thread 3067182436 created [17:04:41]Thread 3067039076 joined [17:04:41]Waiting for new connection... [17:04:41] Sock 8.Parse request [17:04:41]Sock 8.Check first char [17:04:41]Sock 8.First char is OK [17:04:41]request: POST /json_proto HTTP/1.0 [17:04:41]Method: POST [17:04:41]URL: /json_proto [17:04:41]Method is POST - this is cgi request [17:04:41]url: /json_proto [17:04:41]query_string will be loaded in cgi processing [17:04:41]execute_cgi json_proto POST (null) [17:04:41]execute_cgi path=json_proto method=POST [17:04:41]POST find Content-Length [17:04:41]Host: 172.17.41.195:8080 [17:04:41]Content-Length: 800 [17:04:41]Content-Type: application/json [17:04:41] [17:04:41]POST finish read [17:04:41]Found Content-Length = 800 [17:04:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507585", "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" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:04:41]execute_script... [17:04: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)507585", "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" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:04:41]POST & json_proto [17:04:41]process_json_proto [17:04:41]json parsed OK: [17:04:41]protocol is kg_v1.0 [17:04:41]action value=close_receipt [17:04:41]process_action close_receipt [17:04:41]cmd_close_receipt [17:04:41]MH_GetDate [17:04:41]Write to MH i2c: F0 00 00 8D 17 93 [17:04:41]Write i2c OK [17:04:41]MH_I2C_Read... [17:04:41]Read from MH i2c: F0 [17:04:41]MH_I2C_Read... [17:04:41]Read from MH i2c: F0 09 00 [17:04:41]MH_I2C_Read... [17:04:41]Read from MH i2c: F0 09 00 8D 17 00 AB 3C 46 66 FC 21 6F 64 1F [17:04:41]GetLastDocTimeStamp 1715878826 [17:04:41]current date 1715879083 [17:04:41]FM_GetShiftState [17:04:41]SAM_PROTO_GetShiftState [17:04:41]wFMCommunicate request_size=4 [17:04:41]MH_SAM_APDU [17:04:41]CAPDU: 80 13 01 00 [17:04:41]Write to MH i2c: E2 08 00 8E 17 80 13 01 00 00 00 00 00 22 [17:04:41]Write i2c OK [17:04:41]MH_I2C_Read... [17:04:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:41]Read from MH i2c: E2 [17:04:41]MH_I2C_Read... [17:04:41]Read from MH i2c: E2 0E 00 [17:04:41]MH_I2C_Read... [17:04:41]Read from MH i2c: E2 0E 00 8E 17 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 CE [17:04:41]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [17:04:41]wFMCommunicate OK [17:04:41]SAM_PROTO_GetShiftState done [17:04:41]FM_GetShiftState done [17:04:41]opened in 1715818916 [17:04:41]opened+sec_in_day 1715905316 [17:04:41]quantity*price = 100023 [17:04:41]sum+1 = 100024 [17:04:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.23 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.23 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 124 16.05.2024 17:04 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67526 ФПД: 106301570786187 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T170443&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67526&fm=106301570786187&tin=02508201610067®Number=0000000000091845&sum=100023 [17:04:42]StoreToDocumentArchive [17:04:42]shift 357 fd 67526 [17:04:42]save to /storage/0357/doc_00067526 [17:04:42]save last doc name /storage/0357/doc_00067526 to /storage/kkm_last_doc_name [17:04:42]save OK [17:04:42]Clear old archive folders... [17:04:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:04:42]tlvbuf is 017DEB80 [17:04:42]SAM_PROTO_ClearQueue [17:04:42]wFMCommunicate request_size=4 [17:04:42]MH_SAM_APDU [17:04:42]CAPDU: 80 09 00 00 [17:04:42]Write to MH i2c: E2 08 00 9B 17 80 09 00 00 00 00 00 00 24 [17:04:42]Write i2c OK [17:04:42]MH_I2C_Read... [17:04:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:04:42]Read from MH i2c: E2 [17:04:42]MH_I2C_Read... [17:04:42]Read from MH i2c: E2 03 00 [17:04:42]MH_I2C_Read... [17:04:42]Read from MH i2c: E2 03 00 9B 17 00 90 00 26 [17:04:42]RAPDU: 90 00 [17:04:42]wFMCommunicate OK [17:04:42]SAM_PROTO_ClearQueue done [17:04:42]KKMCreateOFDPacket [17:04:42]OFDProtocolAddRootSTLVToBuf [17:04:42]FM_MakeSignedData [17:04:42]FM_MakeSignedData [17:04:42]SAM_PROTO_SignData [17:04:42]wFMCommunicate request_size=4 [17:04:42]MH_SAM_APDU [17:04:42]CAPDU: 80 0D 01 02 [17:04:42]Write to MH i2c: E2 08 00 9C 17 80 0D 01 02 00 00 00 00 2C [17:04:42]Write i2c OK [17:04:42]MH_I2C_Read... [17:04:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:04:42]Read from MH i2c: E2 [17:04:42]MH_I2C_Read... [17:04:42]Read from MH i2c: E2 03 00 [17:04:42]MH_I2C_Read... [17:04:42]Read from MH i2c: E2 03 00 9C 17 00 90 00 27 [17:04:42]RAPDU: 90 00 [17:04:42]wFMCommunicate OK [17:04:42]wFMCommunicate request_size=255 [17:04:42]MH_SAM_APDU [17:04: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 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 AB 3C 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C6 07 01 00 35 04 06 00 60 AE 43 5D [17:04:42]Write to MH i2c: E2 02 01 9D 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 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 AB 3C 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C6 07 01 00 35 04 06 00 60 AE 43 5D 00 00 25 [17:04:42]Write i2c OK [17:04:42]MH_I2C_Read... [17:04:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:04:43]Read from MH i2c: E2 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: E2 03 00 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: E2 03 00 9D 17 00 90 00 28 [17:04:43]RAPDU: 90 00 [17:04:43]wFMCommunicate OK [17:04:43]wFMCommunicate request_size=7 [17:04:43]MH_SAM_APDU [17:04:43]CAPDU: 80 0D 02 02 02 A3 8B [17:04:43]Write to MH i2c: E2 0A 00 9E 17 80 0D 02 02 02 00 A3 8B 00 00 61 [17:04:43]Write i2c OK [17:04:43]MH_I2C_Read... [17:04:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:04:43]Read from MH i2c: E2 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: E2 03 00 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: E2 03 00 9E 17 00 90 00 29 [17:04:43]RAPDU: 90 00 [17:04:43]wFMCommunicate OK [17:04:43]wFMCommunicate request_size=4 [17:04:43]MH_SAM_APDU [17:04:43]CAPDU: 80 0D 03 02 [17:04:43]Write to MH i2c: E2 08 00 9F 17 80 0D 03 02 00 00 00 00 31 [17:04:43]Write i2c OK [17:04:43]MH_I2C_Read... [17:04:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:04:43]Read from MH i2c: E2 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: E2 0B 00 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: E2 0B 00 9F 17 00 57 FA 7F BA 9A C2 B7 04 90 00 D3 [17:04:43]RAPDU: 57 FA 7F BA 9A C2 B7 04 90 00 [17:04:43]wFMCommunicate OK [17:04:43]SAM_PROTO_SignData done [17:04:43]FM_MakeSignedData done [17:04:43]CreateOFDProtocolMessage [17:04:43]wFMCommunicate request_size=4 [17:04:43]MH_SAM_APDU [17:04:43]CAPDU: 80 11 00 00 [17:04:43]Write to MH i2c: E2 08 00 A0 17 80 11 00 00 00 00 00 00 31 [17:04:43]Write i2c OK [17:04:43]MH_I2C_Read... [17:04:43]OFD Sender: No OFD packet to send [17:04:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:43]Read from MH i2c: E2 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: E2 17 00 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: E2 17 00 A0 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 87 [17:04:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:04:43]wFMCommunicate OK [17:04:43]CreateOFDProtocolMessage done [17:04:43]OFDSenderStorePacket 67526 [17:04:43]StoreOFDPacket docnum=67526 [17:04:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 3B 96 04 01 47 67 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 AB 3C 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C6 07 01 00 35 04 06 00 60 AE 43 5D A3 8B 57 FA 7F BA 9A C2 B7 04 [17:04:43]CheckFolder [17:04:43]dirname=/storage/ofd_packets [17:04:43]CheckFolder done [17:04:43]ProducePacketName [17:04:43]name=ofd_packets/00067526 [17:04:43]NVStorageSaveData ofd_packets/00067526 [17:04:43]File name is /storage/ofd_packets/00067526 [17:04:43]Write 298 bytes [17:04:43]NVStorageSaveData done [17:04:43]OFDSenderStorePacket done [17:04:43]KKMCreateOFDPacket done [17:04:43]NVStorageSaveData kkm_last_timestamp [17:04:43]File name is /storage/kkm_last_timestamp [17:04:43]Write 4 bytes [17:04:43]NVStorageSaveData done [17:04:43]ExternCall_PrintAddStr [17:04:43]wPrintStart [17:04:43]Write to MH i2c: 01 00 00 A1 17 B8 [17:04:43]Write i2c OK [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: 01 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: 01 07 00 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: 01 07 00 A1 17 00 00 00 00 00 FF 0F CD [17:04:43]RasterBufferAndPrint [17:04:43]line Счет N : (1)507585 [17:04:43]line ИНН: 02508201610067 [17:04:43]line Контрольно-Кассовый Чек [17:04:43]line ПРОДАЖА [17:04:43]line ТРК (МРК, ГНК) : 41 [17:04:43]line Товар: 2710194210 [17:04:43]line ДТ-К-5 [17:04:43]line 13.390 * 74.70 [17:04:43]line = 1000.23 [17:04:43]line НДС 12% НСП 1% [17:04:43]line > о реализуемом товаре [17:04:43]line ИТОГО: 1000.23 [17:04:43]line НСП 1% : 8.85 [17:04:43]line НДС 12% : 106.22 [17:04:43]line Наличными: 0.00 [17:04:43]line Безнал.: 1000.23 [17:04:43]line Место: АЗС № 91 "Партнер Нефть" [17:04:43]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:04:43]line СНО: Общий режим [17:04:43]line Чек 124 16.05.2024 17:04 [17:04:43]line Смена: 357 ФФД: 1.0 [17:04:43]line ЗНМ: 0300000119 [17:04:43]line РНМ: 0000000000091845 [17:04:43]line Версия ККМ: 001 [17:04:43]line Платежная система: O! деньги [17:04:43]line ФМ: 0000000000871829 [17:04:43]line ФД: 67526 [17:04:43]line ФПД: 106301570786187 [17:04:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T170443&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67526&fm=106301570786187&tin=02508201610067®Number=0000000000091845&sum=100023 [17:04:43]OFD Sender: Processing packet 67526 [packets to send 35, broken 34] [17:04:43]ProducePacketName [17:04:43]name=ofd_packets/00067526 [17:04:43]OFD Sender: To server: pG, [17:04:43]CommunicateWithHost lk.salyk.kg:30040 [17:04:43]ConnectInit lk.salyk.kg [17:04:43]written 0, free lines is 4095 [17:04:43]Connected sock=10 [17:04: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 38 32 39 0C 01 00 00 3B 96 04 01 47 67 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 AB 3C 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C6 07 01 00 35 04 06 00 60 AE 43 5D A3 8B 57 FA 7F BA 9A C2 B7 04 [17: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 38 32 39 4F 00 00 00 2B 61 47 00 EE 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 38 32 39 10 04 04 00 C6 07 01 00 F4 03 04 00 85 E4 45 66 B6 04 01 00 00 B9 18 C3 25 6B C8 3E 47 [17:04:43]CommunicateWithHost err = 0 [17:04:43]CheckOFDResponse [17:04:43]1017 (14) - 77093643461234 [17:04:43]1041 (16) - 0000000000871829 [17:04:43]1040 (4) - 67526 [17:04:43]1012 (4) - 16.05.2024 10:48 [17:04:43]1206 (1) - 0 [17:04:43]OFD Sender: Remove packet 67526 [17:04:43]ProducePacketName [17:04:43]name=ofd_packets/00067526 [17:04:43]NVStorageDeleteData [17:04:44]Write to MH i2c: 01 00 00 CA 17 E1 [17:04:44]Write i2c OK [17:04:44]MH_I2C_Read... [17:04:44]Read from MH i2c: 01 [17:04:44]MH_I2C_Read... [17:04:44]Read from MH i2c: 01 07 00 [17:04:44]MH_I2C_Read... [17:04:44]Read from MH i2c: 01 07 00 CA 17 00 00 00 00 00 DA 0C CE [17:04:44]RasterBufferAndPrint [17:04:44]line [17:04:44]line [17:04:44]line [17:04:44]line [17:04:44]line [17:04:44]written 0, free lines is 3297 [17:04:44]MH_Cut [17:04:44]Write to MH i2c: D1 01 00 D1 17 01 BA [17:04:44]Write i2c OK [17:04:44]MH_I2C_Read... [17:04:44]Read from MH i2c: D1 [17:04:44]MH_I2C_Read... [17:04:44]Read from MH i2c: D1 01 00 [17:04:44]MH_I2C_Read... [17:04:44]Read from MH i2c: D1 01 00 D1 17 00 B9 [17:04:44]Write to MH i2c: 01 00 00 D2 17 E9 [17:04:44]Write i2c OK [17:04:44]MH_I2C_Read... [17:04:44]OFD Sender: No OFD packet to send [17:04:44]*** Cut start [17:04:44]*** Purtial cut [17:04:44]*** CUTSNS_PIN = 0 [17:04:45]*** Stage 1: CUTSNS_PIN = 1 [17:04:46]Read from MH i2c: 01 [17:04:46]MH_I2C_Read... [17:04:46]*** Stop cut motor [17:04:46]*** Cut end [17:04:46]Read from MH i2c: 01 07 00 [17:04:46]MH_I2C_Read... [17:04:46]Read from MH i2c: 01 07 00 D2 17 00 00 00 00 00 FF 0F FE [17:04:46]process_action close_receipt done [17:04:46]requested_data is exist [17:04:46]produce_requested_data [17:04:46]requested_item fm.sn is exist - process it [17:04:46]wFMCommunicate request_size=4 [17:04:46]MH_SAM_APDU [17:04:46]CAPDU: 80 11 00 00 [17:04:46]Write to MH i2c: E2 08 00 D3 17 80 11 00 00 00 00 00 00 64 [17:04:46]Write i2c OK [17:04:46]MH_I2C_Read... [17:04:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:47]Read from MH i2c: E2 [17:04:47]MH_I2C_Read... [17:04:47]Read from MH i2c: E2 17 00 [17:04:47]MH_I2C_Read... [17:04:47]Read from MH i2c: E2 17 00 D3 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BA [17:04:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:04:47]wFMCommunicate OK [17:04:47]requested_item fd.num is exist - process it [17:04:47]SAM_PROTO_GetFieldsCounters [17:04:47]wFMCommunicate request_size=4 [17:04:47]MH_SAM_APDU [17:04:47]CAPDU: 80 13 00 00 [17:04:47]Write to MH i2c: E2 08 00 D4 17 80 13 00 00 00 00 00 00 67 [17:04:47]Write i2c OK [17:04:47]MH_I2C_Read... [17:04:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:04:47]Read from MH i2c: E2 [17:04:47]MH_I2C_Read... [17:04:47]Read from MH i2c: E2 62 00 [17:04:47]MH_I2C_Read... [17:04:47]Read from MH i2c: E2 62 00 D4 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C6 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [17:04: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C6 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:04:47]wFMCommunicate OK [17:04:47]SAM_PROTO_GetFieldsCounters done [17:04:47]requested_item shift.num is exist - process it [17:04:47]requested_item shift.opened is exist - process it [17:04:47]req_shift_opened [17:04:47]FM_GetShiftState [17:04:47]SAM_PROTO_GetShiftState [17:04:47]wFMCommunicate request_size=4 [17:04:47]MH_SAM_APDU [17:04:47]CAPDU: 80 13 01 00 [17:04:47]Write to MH i2c: E2 08 00 D5 17 80 13 01 00 00 00 00 00 69 [17:04:47]Write i2c OK [17:04:47]MH_I2C_Read... [17:04:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:47]Read from MH i2c: E2 [17:04:47]MH_I2C_Read... [17:04:47]Read from MH i2c: E2 0E 00 [17:04:47]MH_I2C_Read... [17:04:47]Read from MH i2c: E2 0E 00 D5 17 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 15 [17:04:47]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [17:04:47]wFMCommunicate OK [17:04:47]SAM_PROTO_GetShiftState done [17:04:47]FM_GetShiftState done [17:04:47]req_shift_opened done [17:04:47]requested_item shift.open_date is exist - process it [17:04:47]req_shift_open_date [17:04:47]req_shift_open_date done [17:04:47]produce_requested_data done [17:04:47]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67526,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [17:04:47]process_action_free close_receipt [17:04:47]json_value_free [17:04:47]json_value_free done [17:04:47]process_json_proto returns [17:04:47]Send response to host [17:04:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67526,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [17:04:47]free response buf [17:04:47]execute_script done [17:04:47]execute_script returns [17:04:47]free content buf [17:04:47]Sock 8.Close socket [17:04:47]Sock 8.Thread stoped [17:04:49]OFD Sender: No OFD packet to send [17:04:54]int [17:04:54]Write to MH i2c: 01 00 00 D6 17 ED [17:04:54]*** FLAG_PRN_PAP1 set [17:04:54]Write i2c OK [17:04:54]MH_I2C_Read... [17:04:54]Read from MH i2c: 01 [17:04:54]MH_I2C_Read... [17:04:54]Read from MH i2c: 01 07 00 [17:04:54]MH_I2C_Read... [17:04:54]Read from MH i2c: 01 07 00 D6 17 00 01 00 00 00 FF 0F 03 [17:04:54]state=0 [17:04:54]No paper [17:04:54]OFD Sender: No OFD packet to send [17:04:54]int [17:04:54]Write to MH i2c: 01 00 00 D7 17 EE [17:04:54]*** FLAG_PRN_PAP2 set [17:04:54]Write i2c OK [17:04:54]MH_I2C_Read... [17:04:54]Read from MH i2c: 01 [17:04:54]MH_I2C_Read... [17:04:54]Read from MH i2c: 01 07 00 [17:04:54]MH_I2C_Read... [17:04:54]Read from MH i2c: 01 07 00 D7 17 00 03 00 00 00 FF 0F 06 [17:04:54]state=0 [17:04:54]No paper [17:04:54]Cover opened [17:04:55]int [17:04:55]Write to MH i2c: 01 00 00 D8 17 EF [17:04:55]*** FLAG_PRN_PAP2 reset [17:04:55]Write i2c OK [17:04:55]MH_I2C_Read... [17:04:55]Read from MH i2c: 01 [17:04:55]MH_I2C_Read... [17:04:55]Read from MH i2c: 01 07 00 [17:04:55]MH_I2C_Read... [17:04:55]Read from MH i2c: 01 07 00 D8 17 00 01 00 00 00 FF 0F 05 [17:04:55]state=3 [17:04:55]No paper [17:04:55]Cover closed [17:04:55]int [17:04:55]Write to MH i2c: 01 00 00 D9 17 F0 [17:04:55]*** FLAG_PRN_PAP2 set [17:04:55]Write i2c OK [17:04:55]MH_I2C_Read... [17:04:55]Read from MH i2c: 01 [17:04:55]MH_I2C_Read... [17:04:55]Read from MH i2c: 01 07 00 [17:04:55]MH_I2C_Read... [17:04:55]Read from MH i2c: 01 07 00 D9 17 00 03 00 00 00 FF 0F 08 [17:04:55]state=0 [17:04:55]No paper [17:04:55]Cover opened [17:04:59]OFD Sender: No OFD packet to send [17:05:00]Write to MH i2c: 01 00 00 DA 17 F1 [17:05:00]Write i2c OK [17:05:00]MH_I2C_Read... [17:05:00]Read from MH i2c: 01 [17:05:00]MH_I2C_Read... [17:05:00]Read from MH i2c: 01 07 00 [17:05:00]MH_I2C_Read... [17:05:00]Read from MH i2c: 01 07 00 DA 17 00 03 00 00 00 FF 0F 09 [17:05:00]state=3 [17:05:00]No paper [17:05:00]Cover opened [17:05:04]OFD Sender: No OFD packet to send [17:05:05]Write to MH i2c: 01 00 00 DB 17 F2 [17:05:05]Write i2c OK [17:05:05]MH_I2C_Read... [17:05:05]Read from MH i2c: 01 [17:05:05]MH_I2C_Read... [17:05:05]Read from MH i2c: 01 07 00 [17:05:05]MH_I2C_Read... [17:05:05]Read from MH i2c: 01 07 00 DB 17 00 03 00 00 00 FF 0F 0A [17:05:05]state=3 [17:05:05]No paper [17:05:05]Cover opened [17:05:06]int [17:05:06]Write to MH i2c: 01 00 00 DC 17 F3 [17:05:06]*** FLAG_PRN_PAP2 reset [17:05:06]Write i2c OK [17:05:06]MH_I2C_Read... [17:05:06]Read from MH i2c: 01 [17:05:06]MH_I2C_Read... [17:05:06]Read from MH i2c: 01 07 00 [17:05:06]MH_I2C_Read... [17:05:06]Read from MH i2c: 01 07 00 DC 17 00 01 00 00 00 FF 0F 09 [17:05:06]state=3 [17:05:06]No paper [17:05:06]Cover closed [17:05:06]int [17:05:06]Write to MH i2c: 01 00 00 DD 17 F4 [17:05:06]*** FLAG_PRN_PAP2 set [17:05:06]Write i2c OK [17:05:06]MH_I2C_Read... [17:05:06]Read from MH i2c: 01 [17:05:06]MH_I2C_Read... [17:05:06]Read from MH i2c: 01 07 00 [17:05:06]MH_I2C_Read... [17:05:06]Read from MH i2c: 01 07 00 DD 17 00 03 00 00 00 FF 0F 0C [17:05:06]state=0 [17:05:06]No paper [17:05:06]Cover opened [17:05:09]OFD Sender: No OFD packet to send [17:05:11]Write to MH i2c: 01 00 00 DE 17 F5 [17:05:11]Write i2c OK [17:05:11]MH_I2C_Read... [17:05:11]Read from MH i2c: 01 [17:05:11]MH_I2C_Read... [17:05:11]Read from MH i2c: 01 07 00 [17:05:11]MH_I2C_Read... [17:05:11]Read from MH i2c: 01 07 00 DE 17 00 03 00 00 00 FF 0F 0D [17:05:11]state=3 [17:05:11]No paper [17:05:11]Cover opened [17:05:14]OFD Sender: No OFD packet to send [17:05:16]Write to MH i2c: 01 00 00 DF 17 F6 [17:05:16]Write i2c OK [17:05:16]MH_I2C_Read... [17:05:16]Read from MH i2c: 01 [17:05:16]MH_I2C_Read... [17:05:16]Read from MH i2c: 01 07 00 [17:05:16]MH_I2C_Read... [17:05:16]Read from MH i2c: 01 07 00 DF 17 00 03 00 00 00 FF 0F 0E [17:05:16]state=3 [17:05:16]No paper [17:05:16]Cover opened [17:05:19]OFD Sender: No OFD packet to send [17:05:21]Write to MH i2c: 01 00 00 E0 17 F7 [17:05:21]Write i2c OK [17:05:21]MH_I2C_Read... [17:05:21]Read from MH i2c: 01 [17:05:21]MH_I2C_Read... [17:05:21]Read from MH i2c: 01 07 00 [17:05:21]MH_I2C_Read... [17:05:21]Read from MH i2c: 01 07 00 E0 17 00 03 00 00 00 FF 0F 0F [17:05:21]state=3 [17:05:21]No paper [17:05:21]Cover opened [17:05:24]OFD Sender: No OFD packet to send [17:05:26]Write to MH i2c: 01 00 00 E1 17 F8 [17:05:26]Write i2c OK [17:05:26]MH_I2C_Read... [17:05:26]Read from MH i2c: 01 [17:05:26]MH_I2C_Read... [17:05:26]Read from MH i2c: 01 07 00 [17:05:26]MH_I2C_Read... [17:05:26]Read from MH i2c: 01 07 00 E1 17 00 03 00 00 00 FF 0F 10 [17:05:26]state=3 [17:05:26]No paper [17:05:26]Cover opened [17:05:29]OFD Sender: No OFD packet to send [17:05:31]Write to MH i2c: 01 00 00 E2 17 F9 [17:05:31]Write i2c OK [17:05:31]MH_I2C_Read... [17:05:31]Read from MH i2c: 01 [17:05:31]MH_I2C_Read... [17:05:31]Read from MH i2c: 01 07 00 [17:05:31]MH_I2C_Read... [17:05:31]Read from MH i2c: 01 07 00 E2 17 00 03 00 00 00 FF 0F 11 [17:05:31]state=3 [17:05:31]No paper [17:05:31]Cover opened [17:05:33]int [17:05:33]Write to MH i2c: 01 00 00 E3 17 FA [17:05:33]*** FLAG_PRN_PAP1 reset [17:05:33]*** FLAG_PRN_PAP2 reset [17:05:33]Write i2c OK [17:05:33]MH_I2C_Read... [17:05:33]Read from MH i2c: 01 [17:05:33]MH_I2C_Read... [17:05:33]Read from MH i2c: 01 07 00 [17:05:33]MH_I2C_Read... [17:05:33]Read from MH i2c: 01 07 00 E3 17 00 00 00 00 00 FF 0F 0F [17:05:33]state=3 [17:05:33]Cover closed [17:05:34]int [17:05:34]Write to MH i2c: 01 00 00 E4 17 FB [17:05:34]*** FLAG_PRN_KEY set [17:05:34]Write i2c OK [17:05:34]MH_I2C_Read... [17:05:34]Read from MH i2c: 01 [17:05:34]MH_I2C_Read... [17:05:34]Read from MH i2c: 01 07 00 [17:05:34]MH_I2C_Read... [17:05:34]Read from MH i2c: 01 07 00 E4 17 00 08 00 00 00 FF 0F 18 [17:05:34]state=0 [17:05:34]Key pressed [17:05:34]Feed [17:05:34]Write to MH i2c: D8 00 00 E5 17 D3 [17:05:34]Write i2c OK [17:05:34]MH_I2C_Read... [17:05:34]Read from MH i2c: D8 [17:05:34]MH_I2C_Read... [17:05:34]Read from MH i2c: D8 01 00 [17:05:34]MH_I2C_Read... [17:05:34]Read from MH i2c: D8 01 00 E5 17 00 D4 [17:05:34]int [17:05:34]Write to MH i2c: 01 00 00 E6 17 FD [17:05:34]Write i2c OK [17:05:34]MH_I2C_Read... [17:05:34]Read from MH i2c: 01 [17:05:34]MH_I2C_Read... [17:05:34]Read from MH i2c: 01 07 00 [17:05:34]MH_I2C_Read... [17:05:34]Read from MH i2c: 01 07 00 E6 17 00 48 00 00 00 3C 00 88 [17:05:34]state=2 [17:05:34]Key pressed [17:05:34]OFD Sender: No OFD packet to send [17:05:34]int [17:05:34]Write to MH i2c: 01 00 00 E7 17 FE [17:05:34]*** FLAG_PRN_KEY reset [17:05:34]Write i2c OK [17:05:34]MH_I2C_Read... [17:05:34]Read from MH i2c: 01 [17:05:34]MH_I2C_Read... [17:05:34]Read from MH i2c: 01 07 00 [17:05:34]MH_I2C_Read... [17:05:34]Read from MH i2c: 01 07 00 E7 17 00 00 00 00 00 F6 0F 0A [17:05:34]state=2 [17:05:34]Stop feed [17:05:39]OFD Sender: No OFD packet to send [17:05:44]OFD Sender: No OFD packet to send [17:05:49]OFD Sender: No OFD packet to send [17:05:54]OFD Sender: No OFD packet to send [17:05:59]OFD Sender: No OFD packet to send [17:06:04]OFD Sender: No OFD packet to send [17:06:09]OFD Sender: No OFD packet to send [17:06:14]OFD Sender: No OFD packet to send [17:06:19]OFD Sender: No OFD packet to send [17:06:24]OFD Sender: No OFD packet to send [17:06:29]OFD Sender: No OFD packet to send [17:06:34]OFD Sender: No OFD packet to send [17:06:39]OFD Sender: No OFD packet to send [17:06:44]OFD Sender: No OFD packet to send [17:06:49]OFD Sender: No OFD packet to send [17:06:54]OFD Sender: No OFD packet to send [17:06:59]OFD Sender: No OFD packet to send [17:07:04]OFD Sender: No OFD packet to send [17:07:09]OFD Sender: No OFD packet to send [17:07:14]OFD Sender: No OFD packet to send [17:07:19]OFD Sender: No OFD packet to send [17:07:24]OFD Sender: No OFD packet to send [17:07:29]OFD Sender: No OFD packet to send [17:07:34]OFD Sender: No OFD packet to send [17:07:39]OFD Sender: No OFD packet to send [17:07:44]OFD Sender: No OFD packet to send [17:07:49]OFD Sender: No OFD packet to send [17:07:54]OFD Sender: No OFD packet to send [17:07:59]OFD Sender: No OFD packet to send [17:08:04]OFD Sender: No OFD packet to send [17:08:09]OFD Sender: No OFD packet to send [17:08:14]OFD Sender: No OFD packet to send [17:08:19]OFD Sender: No OFD packet to send [17:08:24]OFD Sender: No OFD packet to send [17:08:29]OFD Sender: No OFD packet to send [17:08:34]OFD Sender: No OFD packet to send [17:08:39]OFD Sender: No OFD packet to send [17:08:44]OFD Sender: No OFD packet to send [17:08:49]OFD Sender: No OFD packet to send [17:08:53]accept exits with 9 [17:08:53]New connection [17:08:53]New thread 3067039076 created [17:08:53]Thread 3067182436 joined [17:08:53]Waiting for new connection... [17:08:53] Sock 9.Parse request [17:08:53]Sock 9.Check first char [17:08:53]Sock 9.First char is OK [17:08:53]request: POST /json_proto HTTP/1.0 [17:08:53]Method: POST [17:08:53]URL: /json_proto [17:08:53]Method is POST - this is cgi request [17:08:53]url: /json_proto [17:08:53]query_string will be loaded in cgi processing [17:08:53]execute_cgi json_proto POST (null) [17:08:53]execute_cgi path=json_proto method=POST [17:08:53]POST find Content-Length [17:08:53]Host: 172.17.41.195:8080 [17:08:53]Content-Length: 803 [17:08:53]Content-Type: application/json [17:08:53] [17:08:53]POST finish read [17:08:53]Found Content-Length = 803 [17:08:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507586", "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.80, "quantity" : 14.980, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:53]execute_script... [17: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)507586", "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.80, "quantity" : 14.980, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:53]POST & json_proto [17:08:53]process_json_proto [17:08:53]json parsed OK: [17:08:53]protocol is kg_v1.0 [17:08:53]action value=close_receipt [17:08:53]process_action close_receipt [17:08:53]cmd_close_receipt [17:08:53]MH_GetDate [17:08:53]Write to MH i2c: F0 00 00 E8 17 EE [17:08:53]Write i2c OK [17:08:53]MH_I2C_Read... [17:08:53]Read from MH i2c: F0 [17:08:53]MH_I2C_Read... [17:08:53]Read from MH i2c: F0 09 00 [17:08:53]MH_I2C_Read... [17:08:53]Read from MH i2c: F0 09 00 E8 17 00 A7 3D 46 66 FC 21 6F 64 77 [17:08:53]GetLastDocTimeStamp 1715879083 [17:08:53]current date 1715879335 [17:08:53]FM_GetShiftState [17:08:53]SAM_PROTO_GetShiftState [17:08:53]wFMCommunicate request_size=4 [17:08:53]MH_SAM_APDU [17:08:53]CAPDU: 80 13 01 00 [17:08:53]Write to MH i2c: E2 08 00 E9 17 80 13 01 00 00 00 00 00 7D [17:08:53]Write i2c OK [17:08:53]MH_I2C_Read... [17:08:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:53]Read from MH i2c: E2 [17:08:53]MH_I2C_Read... [17:08:53]Read from MH i2c: E2 0E 00 [17:08:53]MH_I2C_Read... [17:08:53]Read from MH i2c: E2 0E 00 E9 17 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 29 [17:08:53]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [17:08:53]wFMCommunicate OK [17:08:53]SAM_PROTO_GetShiftState done [17:08:53]FM_GetShiftState done [17:08:53]opened in 1715818916 [17:08:53]opened+sec_in_day 1715905316 [17:08:53]quantity*price = 100066 [17:08:53]sum+1 = 100067 [17:08:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.66 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.66 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 125 16.05.2024 17:08 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67527 ФПД: 218793753332501 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T170855&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67527&fm=218793753332501&tin=02508201610067®Number=0000000000091845&sum=100066 [17:08:54]StoreToDocumentArchive [17:08:54]shift 357 fd 67527 [17:08:54]save to /storage/0357/doc_00067527 [17:08:54]save last doc name /storage/0357/doc_00067527 to /storage/kkm_last_doc_name [17:08:54]save OK [17:08:54]Clear old archive folders... [17:08:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:08:54]tlvbuf is 017FD8B0 [17:08:54]SAM_PROTO_ClearQueue [17:08:54]wFMCommunicate request_size=4 [17:08:54]MH_SAM_APDU [17:08:54]CAPDU: 80 09 00 00 [17:08:54]Write to MH i2c: E2 08 00 F6 17 80 09 00 00 00 00 00 00 7F [17:08:54]Write i2c OK [17:08:54]MH_I2C_Read... [17:08:54]Read from MH i2c: E2 [17:08:54]MH_I2C_Read... [17:08:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:08:54]Read from MH i2c: E2 03 00 [17:08:54]MH_I2C_Read... [17:08:54]Read from MH i2c: E2 03 00 F6 17 00 90 00 81 [17:08:54]RAPDU: 90 00 [17:08:54]wFMCommunicate OK [17:08:54]SAM_PROTO_ClearQueue done [17:08:54]KKMCreateOFDPacket [17:08:54]OFDProtocolAddRootSTLVToBuf [17:08:54]FM_MakeSignedData [17:08:54]FM_MakeSignedData [17:08:54]SAM_PROTO_SignData [17:08:54]wFMCommunicate request_size=4 [17:08:54]MH_SAM_APDU [17:08:54]CAPDU: 80 0D 01 02 [17:08:54]Write to MH i2c: E2 08 00 F7 17 80 0D 01 02 00 00 00 00 87 [17:08:54]Write i2c OK [17:08:54]MH_I2C_Read... [17:08:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:08:54]Read from MH i2c: E2 [17:08:54]MH_I2C_Read... [17:08:54]Read from MH i2c: E2 03 00 [17:08:54]MH_I2C_Read... [17:08:54]Read from MH i2c: E2 03 00 F7 17 00 90 00 82 [17:08:54]RAPDU: 90 00 [17:08:54]wFMCommunicate OK [17:08:54]wFMCommunicate request_size=255 [17:08:54]MH_SAM_APDU [17:08: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 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 A7 3D 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C7 07 01 00 35 04 06 00 C6 [17:08:54]Write to MH i2c: E2 02 01 F8 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 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 A7 3D 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C7 07 01 00 35 04 06 00 C6 00 00 EC [17:08:54]Write i2c OK [17:08:54]MH_I2C_Read... [17:08:54]OFD Sender: No OFD packet to send [17:08:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:54]Read from MH i2c: E2 [17:08:54]MH_I2C_Read... [17:08:54]Read from MH i2c: E2 03 00 [17:08:54]MH_I2C_Read... [17:08:54]Read from MH i2c: E2 03 00 F8 17 00 90 00 83 [17:08:54]RAPDU: 90 00 [17:08:54]wFMCommunicate OK [17:08:54]wFMCommunicate request_size=10 [17:08:54]MH_SAM_APDU [17:08:54]CAPDU: 80 0D 02 02 05 FD E3 F2 4B 15 [17:08:54]Write to MH i2c: E2 0D 00 F9 17 80 0D 02 02 05 00 FD E3 F2 4B 15 00 00 C6 [17:08:54]Write i2c OK [17:08:54]MH_I2C_Read... [17:08:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:54]Read from MH i2c: E2 [17:08:54]MH_I2C_Read... [17:08:54]Read from MH i2c: E2 03 00 [17:08:54]MH_I2C_Read... [17:08:54]Read from MH i2c: E2 03 00 F9 17 00 90 00 84 [17:08:54]RAPDU: 90 00 [17:08:54]wFMCommunicate OK [17:08:54]wFMCommunicate request_size=4 [17:08:54]MH_SAM_APDU [17:08:54]CAPDU: 80 0D 03 02 [17:08:54]Write to MH i2c: E2 08 00 FA 17 80 0D 03 02 00 00 00 00 8C [17:08:54]Write i2c OK [17:08:54]MH_I2C_Read... [17:08:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:08:54]Read from MH i2c: E2 [17:08:54]MH_I2C_Read... [17:08:54]Read from MH i2c: E2 0B 00 [17:08:54]MH_I2C_Read... [17:08:54]Read from MH i2c: E2 0B 00 FA 17 00 9E AF 30 30 D9 93 9A 4F 90 00 8F [17:08:54]RAPDU: 9E AF 30 30 D9 93 9A 4F 90 00 [17:08:54]wFMCommunicate OK [17:08:54]SAM_PROTO_SignData done [17:08:54]FM_MakeSignedData done [17:08:54]CreateOFDProtocolMessage [17:08:54]wFMCommunicate request_size=4 [17:08:54]MH_SAM_APDU [17:08:54]CAPDU: 80 11 00 00 [17:08:54]Write to MH i2c: E2 08 00 FB 17 80 11 00 00 00 00 00 00 8C [17:08:54]Write i2c OK [17:08:54]MH_I2C_Read... [17:08:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:54]Read from MH i2c: E2 [17:08:54]MH_I2C_Read... [17:08:54]Read from MH i2c: E2 17 00 [17:08:54]MH_I2C_Read... [17:08:54]Read from MH i2c: E2 17 00 FB 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E2 [17:08:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:08:54]wFMCommunicate OK [17:08:54]CreateOFDProtocolMessage done [17:08:54]OFDSenderStorePacket 67527 [17:08:54]StoreOFDPacket docnum=67527 [17:08:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 90 F4 07 01 42 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 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 A7 3D 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C7 07 01 00 35 04 06 00 C6 FD E3 F2 4B 15 9E AF 30 30 D9 93 9A 4F [17:08:54]CheckFolder [17:08:54]dirname=/storage/ofd_packets [17:08:54]CheckFolder done [17:08:54]ProducePacketName [17:08:54]name=ofd_packets/00067527 [17:08:54]NVStorageSaveData ofd_packets/00067527 [17:08:54]File name is /storage/ofd_packets/00067527 [17:08:54]Write 301 bytes [17:08:54]NVStorageSaveData done [17:08:54]OFDSenderStorePacket done [17:08:54]KKMCreateOFDPacket done [17:08:54]NVStorageSaveData kkm_last_timestamp [17:08:54]File name is /storage/kkm_last_timestamp [17:08:54]Write 4 bytes [17:08:54]NVStorageSaveData done [17:08:54]ExternCall_PrintAddStr [17:08:54]wPrintStart [17:08:54]Write to MH i2c: 01 00 00 FC 17 13 [17:08:54]Write i2c OK [17:08:54]MH_I2C_Read... [17:08:54]Read from MH i2c: 01 [17:08:54]MH_I2C_Read... [17:08:54]Read from MH i2c: 01 07 00 [17:08:54]MH_I2C_Read... [17:08:54]Read from MH i2c: 01 07 00 FC 17 00 00 00 00 00 FF 0F 28 [17:08:55]RasterBufferAndPrint [17:08:55]line Счет N : (1)507586 [17:08:55]line ИНН: 02508201610067 [17:08:55]line Контрольно-Кассовый Чек [17:08:55]line ПРОДАЖА [17:08:55]line ТРК (МРК, ГНК) : 43 [17:08:55]line Товар: 2710124130 [17:08:55]line Аи-92-К-5 [17:08:55]line 14.980 * 66.80 [17:08:55]line = 1000.66 [17:08:55]line НДС 12% НСП 1% [17:08:55]line > о реализуемом товаре [17:08:55]line ИТОГО: 1000.66 [17:08:55]line НСП 1% : 8.85 [17:08:55]line НДС 12% : 106.26 [17:08:55]line Наличными: 0.00 [17:08:55]line Безнал.: 1000.66 [17:08:55]line Место: АЗС № 91 "Партнер Нефть" [17:08:55]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:08:55]line СНО: Общий режим [17:08:55]line Чек 125 16.05.2024 17:08 [17:08:55]line Смена: 357 ФФД: 1.0 [17:08:55]line ЗНМ: 0300000119 [17:08:55]line РНМ: 0000000000091845 [17:08:55]line Версия ККМ: 001 [17:08:55]line Платежная система: O! деньги [17:08:55]line ФМ: 0000000000871829 [17:08:55]line ФД: 67527 [17:08:55]line ФПД: 218793753332501 [17:08:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T170855&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67527&fm=218793753332501&tin=02508201610067®Number=0000000000091845&sum=100066 [17:08:55]OFD Sender: Processing packet 67527 [packets to send 35, broken 34] [17:08:55]ProducePacketName [17:08:55]name=ofd_packets/00067527 [17:08:55]OFD Sender: To server: pG, [17:08:55]CommunicateWithHost lk.salyk.kg:30040 [17:08:55]ConnectInit lk.salyk.kg [17:08:55]written 0, free lines is 4095 [17:08:55]Connected sock=10 [17: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 38 32 39 0F 01 00 00 90 F4 07 01 42 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 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 A7 3D 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C7 07 01 00 35 04 06 00 C6 FD E3 F2 4B 15 9E AF 30 30 D9 93 9A 4F [17: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 38 32 39 4F 00 00 00 A1 28 47 00 89 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 38 32 39 10 04 04 00 C7 07 01 00 F4 03 04 00 81 E5 45 66 B6 04 01 00 00 7B 8E FD F2 5B 55 BC A4 [17:08:55]CommunicateWithHost err = 0 [17:08:55]CheckOFDResponse [17:08:55]1017 (14) - 77093643461234 [17:08:55]1041 (16) - 0000000000871829 [17:08:55]1040 (4) - 67527 [17:08:55]1012 (4) - 16.05.2024 10:52 [17:08:55]1206 (1) - 0 [17:08:55]OFD Sender: Remove packet 67527 [17:08:55]ProducePacketName [17:08:55]name=ofd_packets/00067527 [17:08:55]NVStorageDeleteData [17:08:55]Write to MH i2c: 01 00 00 25 18 3D [17:08:55]Write i2c OK [17:08:55]MH_I2C_Read... [17:08:55]Read from MH i2c: 01 [17:08:55]MH_I2C_Read... [17:08:55]Read from MH i2c: 01 07 00 [17:08:55]MH_I2C_Read... [17:08:55]Read from MH i2c: 01 07 00 25 18 00 00 00 00 00 E6 0C 36 [17:08:55]RasterBufferAndPrint [17:08:55]line [17:08:55]line [17:08:55]line [17:08:55]line [17:08:55]line [17:08:55]written 0, free lines is 3309 [17:08:55]MH_Cut [17:08:55]Write to MH i2c: D1 01 00 2C 18 01 16 [17:08:55]Write i2c OK [17:08:55]MH_I2C_Read... [17:08:55]Read from MH i2c: D1 [17:08:55]MH_I2C_Read... [17:08:55]Read from MH i2c: D1 01 00 [17:08:55]MH_I2C_Read... [17:08:55]Read from MH i2c: D1 01 00 2C 18 00 15 [17:08:55]Write to MH i2c: 01 00 00 2D 18 45 [17:08:55]Write i2c OK [17:08:55]MH_I2C_Read... [17:08:56]OFD Sender: No OFD packet to send [17:08:56]*** Cut start [17:08:56]*** Purtial cut [17:08:56]*** Stage 1: CUTSNS_PIN = 1 [17:08:56]Read from MH i2c: 01 [17:08:56]MH_I2C_Read... [17:08:56]*** Stop cut motor [17:08:56]*** Cut end [17:08:56]Read from MH i2c: 01 07 00 [17:08:56]MH_I2C_Read... [17:08:56]Read from MH i2c: 01 07 00 2D 18 00 00 00 00 00 FF 0F 5A [17:08:56]process_action close_receipt done [17:08:56]requested_data is exist [17:08:56]produce_requested_data [17:08:56]requested_item fm.sn is exist - process it [17:08:56]wFMCommunicate request_size=4 [17:08:56]MH_SAM_APDU [17:08:56]CAPDU: 80 11 00 00 [17:08:56]Write to MH i2c: E2 08 00 2E 18 80 11 00 00 00 00 00 00 C0 [17:08:56]Write i2c OK [17:08:56]MH_I2C_Read... [17:08:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:56]Read from MH i2c: E2 [17:08:56]MH_I2C_Read... [17:08:56]Read from MH i2c: E2 17 00 [17:08:56]MH_I2C_Read... [17:08:56]Read from MH i2c: E2 17 00 2E 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 16 [17:08:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:08:56]wFMCommunicate OK [17:08:56]requested_item fd.num is exist - process it [17:08:56]SAM_PROTO_GetFieldsCounters [17:08:56]wFMCommunicate request_size=4 [17:08:56]MH_SAM_APDU [17:08:56]CAPDU: 80 13 00 00 [17:08:56]Write to MH i2c: E2 08 00 2F 18 80 13 00 00 00 00 00 00 C3 [17:08:56]Write i2c OK [17:08:56]MH_I2C_Read... [17:08:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:08:57]Read from MH i2c: E2 [17:08:57]MH_I2C_Read... [17:08:57]Read from MH i2c: E2 62 00 [17:08:57]MH_I2C_Read... [17:08:57]Read from MH i2c: E2 62 00 2F 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C7 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [17: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C7 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:08:57]wFMCommunicate OK [17:08:57]SAM_PROTO_GetFieldsCounters done [17:08:57]requested_item shift.num is exist - process it [17:08:57]requested_item shift.opened is exist - process it [17:08:57]req_shift_opened [17:08:57]FM_GetShiftState [17:08:57]SAM_PROTO_GetShiftState [17:08:57]wFMCommunicate request_size=4 [17:08:57]MH_SAM_APDU [17:08:57]CAPDU: 80 13 01 00 [17:08:57]Write to MH i2c: E2 08 00 30 18 80 13 01 00 00 00 00 00 C5 [17:08:57]Write i2c OK [17:08:57]MH_I2C_Read... [17:08:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:57]Read from MH i2c: E2 [17:08:57]MH_I2C_Read... [17:08:57]Read from MH i2c: E2 0E 00 [17:08:57]MH_I2C_Read... [17:08:57]Read from MH i2c: E2 0E 00 30 18 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 71 [17:08:57]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [17:08:57]wFMCommunicate OK [17:08:57]SAM_PROTO_GetShiftState done [17:08:57]FM_GetShiftState done [17:08:57]req_shift_opened done [17:08:57]requested_item shift.open_date is exist - process it [17:08:57]req_shift_open_date [17:08:57]req_shift_open_date done [17:08:57]produce_requested_data done [17:08:57]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67527,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [17:08:57]process_action_free close_receipt [17:08:57]json_value_free [17:08:57]json_value_free done [17:08:57]process_json_proto returns [17:08:57]Send response to host [17:08:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67527,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [17:08:57]free response buf [17:08:57]execute_script done [17:08:57]execute_script returns [17:08:57]free content buf [17:08:57]Sock 9.Close socket [17:08:57]Sock 9.Thread stoped [17:09:01]OFD Sender: No OFD packet to send [17:09:06]OFD Sender: No OFD packet to send [17:09:11]OFD Sender: No OFD packet to send [17:09:16]OFD Sender: No OFD packet to send [17:09:21]OFD Sender: No OFD packet to send [17:09:26]OFD Sender: No OFD packet to send [17:09:31]OFD Sender: No OFD packet to send [17:09:36]OFD Sender: No OFD packet to send [17:09:41]OFD Sender: No OFD packet to send [17:09:46]OFD Sender: No OFD packet to send [17:09:51]OFD Sender: No OFD packet to send [17:09:56]OFD Sender: No OFD packet to send [17:10:01]OFD Sender: No OFD packet to send [17:10:06]OFD Sender: No OFD packet to send [17:10:11]OFD Sender: No OFD packet to send [17:10:16]OFD Sender: No OFD packet to send [17:10:21]OFD Sender: No OFD packet to send [17:10:26]OFD Sender: No OFD packet to send [17:10:31]OFD Sender: No OFD packet to send [17:10:36]OFD Sender: No OFD packet to send [17:10:41]OFD Sender: No OFD packet to send [17:10:43]accept exits with 8 [17:10:43]New connection [17:10:43]New thread 3067182436 created [17:10:43]Thread 3067039076 joined [17:10:43]Waiting for new connection... [17:10:43] Sock 8.Parse request [17:10:43]Sock 8.Check first char [17:10:43]Sock 8.First char is OK [17:10:43]request: POST /json_proto HTTP/1.0 [17:10:43]Method: POST [17:10:43]URL: /json_proto [17:10:43]Method is POST - this is cgi request [17:10:43]url: /json_proto [17:10:43]query_string will be loaded in cgi processing [17:10:43]execute_cgi json_proto POST (null) [17:10:43]execute_cgi path=json_proto method=POST [17:10:43]POST find Content-Length [17:10:43]Host: 172.17.41.195:8080 [17:10:43]Content-Length: 800 [17:10:43]Content-Type: application/json [17:10:43] [17:10:43]POST finish read [17:10:43]Found Content-Length = 800 [17:10:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507587", "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" : 74.70, "quantity" : 26.780, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:43]execute_script... [17:10: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)507587", "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" : 74.70, "quantity" : 26.780, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:43]POST & json_proto [17:10:43]process_json_proto [17:10:43]json parsed OK: [17:10:43]protocol is kg_v1.0 [17:10:43]action value=close_receipt [17:10:43]process_action close_receipt [17:10:43]cmd_close_receipt [17:10:43]MH_GetDate [17:10:43]Write to MH i2c: F0 00 00 31 18 38 [17:10:43]Write i2c OK [17:10:43]MH_I2C_Read... [17:10:43]Read from MH i2c: F0 [17:10:43]MH_I2C_Read... [17:10:43]Read from MH i2c: F0 09 00 [17:10:43]MH_I2C_Read... [17:10:43]Read from MH i2c: F0 09 00 31 18 00 14 3E 46 66 FC 21 6F 64 2F [17:10:43]GetLastDocTimeStamp 1715879335 [17:10:43]current date 1715879444 [17:10:43]FM_GetShiftState [17:10:43]SAM_PROTO_GetShiftState [17:10:43]wFMCommunicate request_size=4 [17:10:43]MH_SAM_APDU [17:10:43]CAPDU: 80 13 01 00 [17:10:43]Write to MH i2c: E2 08 00 32 18 80 13 01 00 00 00 00 00 C7 [17:10:43]Write i2c OK [17:10:43]MH_I2C_Read... [17:10:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:43]Read from MH i2c: E2 [17:10:43]MH_I2C_Read... [17:10:43]Read from MH i2c: E2 0E 00 [17:10:43]MH_I2C_Read... [17:10:43]Read from MH i2c: E2 0E 00 32 18 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 73 [17:10:43]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [17:10:43]wFMCommunicate OK [17:10:43]SAM_PROTO_GetShiftState done [17:10:43]FM_GetShiftState done [17:10:43]opened in 1715818916 [17:10:43]opened+sec_in_day 1715905316 [17:10:43]quantity*price = 200046 [17:10:43]sum+1 = 200048 [17:10:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.47 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 0.00 Безнал.: 2000.47 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 126 16.05.2024 17:10 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67528 ФПД: 227247756165074 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T171044&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67528&fm=227247756165074&tin=02508201610067®Number=0000000000091845&sum=200047 [17:10:44]StoreToDocumentArchive [17:10:44]shift 357 fd 67528 [17:10:44]save to /storage/0357/doc_00067528 [17:10:44]save last doc name /storage/0357/doc_00067528 to /storage/kkm_last_doc_name [17:10:44]save OK [17:10:44]Clear old archive folders... [17:10:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:10:44]tlvbuf is B6EF98E0 [17:10:44]SAM_PROTO_ClearQueue [17:10:44]wFMCommunicate request_size=4 [17:10:44]MH_SAM_APDU [17:10:44]CAPDU: 80 09 00 00 [17:10:44]Write to MH i2c: E2 08 00 3F 18 80 09 00 00 00 00 00 00 C9 [17:10:44]Write i2c OK [17:10:44]MH_I2C_Read... [17:10:44]Read from MH i2c: E2 [17:10:44]MH_I2C_Read... [17:10:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:10:44]Read from MH i2c: E2 03 00 [17:10:44]MH_I2C_Read... [17:10:44]Read from MH i2c: E2 03 00 3F 18 00 90 00 CB [17:10:44]RAPDU: 90 00 [17:10:44]wFMCommunicate OK [17:10:44]SAM_PROTO_ClearQueue done [17:10:44]KKMCreateOFDPacket [17:10:44]OFDProtocolAddRootSTLVToBuf [17:10:44]FM_MakeSignedData [17:10:44]FM_MakeSignedData [17:10:44]SAM_PROTO_SignData [17:10:44]wFMCommunicate request_size=4 [17:10:44]MH_SAM_APDU [17:10:44]CAPDU: 80 0D 01 02 [17:10:44]Write to MH i2c: E2 08 00 40 18 80 0D 01 02 00 00 00 00 D1 [17:10:44]Write i2c OK [17:10:44]MH_I2C_Read... [17:10:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:10:44]Read from MH i2c: E2 [17:10:44]MH_I2C_Read... [17:10:44]Read from MH i2c: E2 03 00 [17:10:44]MH_I2C_Read... [17:10:44]Read from MH i2c: E2 03 00 40 18 00 90 00 CC [17:10:44]RAPDU: 90 00 [17:10:44]wFMCommunicate OK [17:10:44]wFMCommunicate request_size=255 [17:10:44]MH_SAM_APDU [17:10:44]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 14 3E 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C8 07 01 00 35 04 06 00 CE AE 3D C8 [17:10:44]Write to MH i2c: E2 02 01 41 18 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 14 3E 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C8 07 01 00 35 04 06 00 CE AE 3D C8 00 00 70 [17:10:44]Write i2c OK [17:10:44]MH_I2C_Read... [17:10:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:44]Read from MH i2c: E2 [17:10:44]MH_I2C_Read... [17:10:44]Read from MH i2c: E2 03 00 [17:10:44]MH_I2C_Read... [17:10:44]Read from MH i2c: E2 03 00 41 18 00 90 00 CD [17:10:44]RAPDU: 90 00 [17:10:44]wFMCommunicate OK [17:10:44]wFMCommunicate request_size=7 [17:10:44]MH_SAM_APDU [17:10:44]CAPDU: 80 0D 02 02 02 3F D2 [17:10:44]Write to MH i2c: E2 0A 00 42 18 80 0D 02 02 02 00 3F D2 00 00 E9 [17:10:44]Write i2c OK [17:10:44]MH_I2C_Read... [17:10:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:44]Read from MH i2c: E2 [17:10:44]MH_I2C_Read... [17:10:44]Read from MH i2c: E2 03 00 [17:10:44]MH_I2C_Read... [17:10:44]Read from MH i2c: E2 03 00 42 18 00 90 00 CE [17:10:44]RAPDU: 90 00 [17:10:44]wFMCommunicate OK [17:10:44]wFMCommunicate request_size=4 [17:10:44]MH_SAM_APDU [17:10:44]CAPDU: 80 0D 03 02 [17:10:44]Write to MH i2c: E2 08 00 43 18 80 0D 03 02 00 00 00 00 D6 [17:10:44]Write i2c OK [17:10:44]MH_I2C_Read... [17:10:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:10:44]Read from MH i2c: E2 [17:10:44]MH_I2C_Read... [17:10:44]Read from MH i2c: E2 0B 00 [17:10:44]MH_I2C_Read... [17:10:44]Read from MH i2c: E2 0B 00 43 18 00 76 4A 2B B9 BC 8A 1B 95 90 00 71 [17:10:44]RAPDU: 76 4A 2B B9 BC 8A 1B 95 90 00 [17:10:44]wFMCommunicate OK [17:10:44]SAM_PROTO_SignData done [17:10:44]FM_MakeSignedData done [17:10:44]CreateOFDProtocolMessage [17:10:44]wFMCommunicate request_size=4 [17:10:44]MH_SAM_APDU [17:10:44]CAPDU: 80 11 00 00 [17:10:44]Write to MH i2c: E2 08 00 44 18 80 11 00 00 00 00 00 00 D6 [17:10:44]Write i2c OK [17:10:44]MH_I2C_Read... [17:10:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:44]Read from MH i2c: E2 [17:10:44]MH_I2C_Read... [17:10:44]Read from MH i2c: E2 17 00 [17:10:44]MH_I2C_Read... [17:10:44]Read from MH i2c: E2 17 00 44 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2C [17:10:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:10:44]wFMCommunicate OK [17:10:44]CreateOFDProtocolMessage done [17:10:44]OFDSenderStorePacket 67528 [17:10:44]StoreOFDPacket docnum=67528 [17:10:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 74 B5 04 01 53 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 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 14 3E 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C8 07 01 00 35 04 06 00 CE AE 3D C8 3F D2 76 4A 2B B9 BC 8A 1B 95 [17:10:44]CheckFolder [17:10:44]dirname=/storage/ofd_packets [17:10:44]CheckFolder done [17:10:44]ProducePacketName [17:10:44]name=ofd_packets/00067528 [17:10:44]NVStorageSaveData ofd_packets/00067528 [17:10:44]File name is /storage/ofd_packets/00067528 [17:10:44]Write 298 bytes [17:10:44]NVStorageSaveData done [17:10:44]OFDSenderStorePacket done [17:10:44]KKMCreateOFDPacket done [17:10:44]NVStorageSaveData kkm_last_timestamp [17:10:44]File name is /storage/kkm_last_timestamp [17:10:44]Write 4 bytes [17:10:44]NVStorageSaveData done [17:10:44]ExternCall_PrintAddStr [17:10:44]wPrintStart [17:10:44]Write to MH i2c: 01 00 00 45 18 5D [17:10:44]Write i2c OK [17:10:44]MH_I2C_Read... [17:10:44]Read from MH i2c: 01 [17:10:44]MH_I2C_Read... [17:10:44]Read from MH i2c: 01 07 00 [17:10:44]MH_I2C_Read... [17:10:44]Read from MH i2c: 01 07 00 45 18 00 00 00 00 00 FF 0F 72 [17:10:44]RasterBufferAndPrint [17:10:44]line Счет N : (1)507587 [17:10:44]line ИНН: 02508201610067 [17:10:44]line Контрольно-Кассовый Чек [17:10:44]line ПРОДАЖА [17:10:44]line ТРК (МРК, ГНК) : 21 [17:10:44]line Товар: 2710194210 [17:10:44]line ДТ-К-5 [17:10:44]line 26.780 * 74.70 [17:10:44]line = 2000.47 [17:10:44]line НДС 12% НСП 1% [17:10:44]line > о реализуемом товаре [17:10:44]line ИТОГО: 2000.47 [17:10:44]line НСП 1% : 17.70 [17:10:44]line НДС 12% : 212.44 [17:10:44]line Наличными: 0.00 [17:10:44]line Безнал.: 2000.47 [17:10:44]line Место: АЗС № 91 "Партнер Нефть" [17:10:44]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:10:44]line СНО: Общий режим [17:10:44]line Чек 126 16.05.2024 17:10 [17:10:44]line Смена: 357 ФФД: 1.0 [17:10:44]line ЗНМ: 0300000119 [17:10:44]line РНМ: 0000000000091845 [17:10:44]line Версия ККМ: 001 [17:10:44]line Платежная система: O! деньги [17:10:44]line ФМ: 0000000000871829 [17:10:44]line ФД: 67528 [17:10:44]line ФПД: 227247756165074 [17:10:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T171044&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67528&fm=227247756165074&tin=02508201610067®Number=0000000000091845&sum=200047 [17:10:45]OFD Sender: Processing packet 67528 [packets to send 35, broken 34] [17:10:45]ProducePacketName [17:10:45]name=ofd_packets/00067528 [17:10:45]OFD Sender: To server: pG, [17:10:45]CommunicateWithHost lk.salyk.kg:30040 [17:10:45]ConnectInit lk.salyk.kg [17:10:45]written 0, free lines is 4095 [17:10:45]Connected sock=9 [17:10: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 38 32 39 0C 01 00 00 74 B5 04 01 53 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 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 14 3E 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C8 07 01 00 35 04 06 00 CE AE 3D C8 3F D2 76 4A 2B B9 BC 8A 1B 95 [17:10:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 64 C0 47 00 F4 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C8 07 01 00 F4 03 04 00 EF E5 45 66 B6 04 01 00 00 48 F0 C4 DC CC CF 2C BE [17:10:45]CommunicateWithHost err = 0 [17:10:45]CheckOFDResponse [17:10:45]1017 (14) - 77093643461234 [17:10:45]1041 (16) - 0000000000871829 [17:10:45]1040 (4) - 67528 [17:10:45]1012 (4) - 16.05.2024 10:54 [17:10:45]1206 (1) - 0 [17:10:45]OFD Sender: Remove packet 67528 [17:10:45]ProducePacketName [17:10:45]name=ofd_packets/00067528 [17:10:45]NVStorageDeleteData [17:10:45]Write to MH i2c: 01 00 00 6E 18 86 [17:10:45]Write i2c OK [17:10:45]MH_I2C_Read... [17:10:45]Read from MH i2c: 01 [17:10:45]MH_I2C_Read... [17:10:45]Read from MH i2c: 01 07 00 [17:10:45]MH_I2C_Read... [17:10:45]Read from MH i2c: 01 07 00 6E 18 00 00 00 00 00 DA 0C 73 [17:10:45]RasterBufferAndPrint [17:10:45]line [17:10:45]line [17:10:45]line [17:10:45]line [17:10:45]line [17:10:45]written 0, free lines is 3297 [17:10:45]MH_Cut [17:10:45]Write to MH i2c: D1 01 00 75 18 01 5F [17:10:45]Write i2c OK [17:10:45]MH_I2C_Read... [17:10:45]Read from MH i2c: D1 [17:10:45]MH_I2C_Read... [17:10:45]Read from MH i2c: D1 01 00 [17:10:45]MH_I2C_Read... [17:10:45]Read from MH i2c: D1 01 00 75 18 00 5E [17:10:45]Write to MH i2c: 01 00 00 76 18 8E [17:10:45]Write i2c OK [17:10:45]MH_I2C_Read... [17:10:45]OFD Sender: No OFD packet to send [17:10:46]*** Cut start [17:10:46]*** Purtial cut [17:10:46]*** CUTSNS_PIN = 0 [17:10:46]*** Stage 1: CUTSNS_PIN = 1 [17:10:48]*** Stop cut motor [17:10:48]*** Cut end [17:10:48]Read from MH i2c: 01 [17:10:48]MH_I2C_Read... [17:10:48]Read from MH i2c: 01 07 00 [17:10:48]MH_I2C_Read... [17:10:48]Read from MH i2c: 01 07 00 76 18 00 00 00 00 00 FF 0F A3 [17:10:48]process_action close_receipt done [17:10:48]requested_data is exist [17:10:48]produce_requested_data [17:10:48]requested_item fm.sn is exist - process it [17:10:48]wFMCommunicate request_size=4 [17:10:48]MH_SAM_APDU [17:10:48]CAPDU: 80 11 00 00 [17:10:48]Write to MH i2c: E2 08 00 77 18 80 11 00 00 00 00 00 00 09 [17:10:48]Write i2c OK [17:10:48]MH_I2C_Read... [17:10:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:48]Read from MH i2c: E2 [17:10:48]MH_I2C_Read... [17:10:48]Read from MH i2c: E2 17 00 [17:10:48]MH_I2C_Read... [17:10:48]Read from MH i2c: E2 17 00 77 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 5F [17:10:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:10:48]wFMCommunicate OK [17:10:48]requested_item fd.num is exist - process it [17:10:48]SAM_PROTO_GetFieldsCounters [17:10:48]wFMCommunicate request_size=4 [17:10:48]MH_SAM_APDU [17:10:48]CAPDU: 80 13 00 00 [17:10:48]Write to MH i2c: E2 08 00 78 18 80 13 00 00 00 00 00 00 0C [17:10:48]Write i2c OK [17:10:48]MH_I2C_Read... [17:10:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:10:48]Read from MH i2c: E2 [17:10:48]MH_I2C_Read... [17:10:48]Read from MH i2c: E2 62 00 [17:10:48]MH_I2C_Read... [17:10:48]Read from MH i2c: E2 62 00 78 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C8 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [17:10: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C8 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:10:48]wFMCommunicate OK [17:10:48]SAM_PROTO_GetFieldsCounters done [17:10:48]requested_item shift.num is exist - process it [17:10:48]requested_item shift.opened is exist - process it [17:10:48]req_shift_opened [17:10:48]FM_GetShiftState [17:10:48]SAM_PROTO_GetShiftState [17:10:48]wFMCommunicate request_size=4 [17:10:48]MH_SAM_APDU [17:10:48]CAPDU: 80 13 01 00 [17:10:48]Write to MH i2c: E2 08 00 79 18 80 13 01 00 00 00 00 00 0E [17:10:48]Write i2c OK [17:10:48]MH_I2C_Read... [17:10:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:48]Read from MH i2c: E2 [17:10:48]MH_I2C_Read... [17:10:48]Read from MH i2c: E2 0E 00 [17:10:48]MH_I2C_Read... [17:10:48]Read from MH i2c: E2 0E 00 79 18 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 BA [17:10:48]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [17:10:48]wFMCommunicate OK [17:10:48]SAM_PROTO_GetShiftState done [17:10:48]FM_GetShiftState done [17:10:48]req_shift_opened done [17:10:48]requested_item shift.open_date is exist - process it [17:10:48]req_shift_open_date [17:10:48]req_shift_open_date done [17:10:48]produce_requested_data done [17:10:48]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67528,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [17:10:48]process_action_free close_receipt [17:10:48]json_value_free [17:10:48]json_value_free done [17:10:48]process_json_proto returns [17:10:48]Send response to host [17:10:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67528,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [17:10:48]free response buf [17:10:48]execute_script done [17:10:48]execute_script returns [17:10:48]free content buf [17:10:48]Sock 8.Close socket [17:10:48]Sock 8.Thread stoped [17:10:50]OFD Sender: No OFD packet to send [17:10:55]OFD Sender: No OFD packet to send [17:11:00]OFD Sender: No OFD packet to send [17:11:05]OFD Sender: No OFD packet to send [17:11:10]OFD Sender: No OFD packet to send [17:11:15]OFD Sender: No OFD packet to send [17:11:20]OFD Sender: No OFD packet to send [17:11:25]OFD Sender: No OFD packet to send [17:11:30]OFD Sender: No OFD packet to send [17:11:36]OFD Sender: No OFD packet to send [17:11:41]OFD Sender: No OFD packet to send [17:11:46]OFD Sender: No OFD packet to send [17:11:51]OFD Sender: No OFD packet to send [17:11:56]OFD Sender: No OFD packet to send [17:12:01]OFD Sender: No OFD packet to send [17:12:06]OFD Sender: No OFD packet to send [17:12:11]OFD Sender: No OFD packet to send [17:12:16]OFD Sender: No OFD packet to send [17:12:21]OFD Sender: No OFD packet to send [17:12:26]OFD Sender: No OFD packet to send [17:12:31]OFD Sender: No OFD packet to send [17:12:36]OFD Sender: No OFD packet to send [17:12:41]OFD Sender: No OFD packet to send [17:12:46]OFD Sender: No OFD packet to send [17:12:51]OFD Sender: No OFD packet to send [17:12:56]OFD Sender: No OFD packet to send [17:13:01]OFD Sender: No OFD packet to send [17:13:06]OFD Sender: No OFD packet to send [17:13:11]OFD Sender: No OFD packet to send [17:13:16]OFD Sender: No OFD packet to send [17:13:21]OFD Sender: No OFD packet to send [17:13:26]OFD Sender: No OFD packet to send [17:13:31]OFD Sender: No OFD packet to send [17:13:36]OFD Sender: No OFD packet to send [17:13:41]OFD Sender: No OFD packet to send [17:13:46]OFD Sender: No OFD packet to send [17:13:51]OFD Sender: No OFD packet to send [17:13:56]OFD Sender: No OFD packet to send [17:14:01]OFD Sender: No OFD packet to send [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]accept exits with 10 [17:15:56]New connection [17:15:56]New thread 3067039076 created [17:15:56]Thread 3067182436 joined [17:15:56]Waiting for new connection... [17:15:56] Sock 10.Parse request [17:15:56]Sock 10.Check first char [17:15:56]Sock 10.First char is OK [17:15:56]request: POST /json_proto HTTP/1.0 [17:15:56]Method: POST [17:15:56]URL: /json_proto [17:15:56]Method is POST - this is cgi request [17:15:56]url: /json_proto [17:15:56]query_string will be loaded in cgi processing [17:15:56]execute_cgi json_proto POST (null) [17:15:56]execute_cgi path=json_proto method=POST [17:15:56]POST find Content-Length [17:15:56]Host: 172.17.41.195:8080 [17:15:56]Content-Length: 1209 [17:15:56]Content-Type: application/json [17:15:56] [17:15:56]POST finish read [17:15:56]Found Content-Length = 1209 [17:15:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507588\u000A16.05.2024 16:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.020 x 74.70\u000A\u0418\u0422\u041E\u0413: 1495.49\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:15:56]execute_script... [17:15:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507588\u000A16.05.2024 16:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.020 x 74.70\u000A\u0418\u0422\u041E\u0413: 1495.49\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:15:56]POST & json_proto [17:15:56]process_json_proto [17:15:56]json parsed OK: [17:15:56]protocol is kg_v1.0 [17:15:56]action value=print_text [17:15:56]process_action print_text [17:15:56]cmd_print_text [17:15:56]ExternCall_PrintAddStr [17:15:56]wPrintStart [17:15:56]Write to MH i2c: 01 00 00 7A 18 92 [17:15:56]Write i2c OK [17:15:56]MH_I2C_Read... [17:15:56]Read from MH i2c: 01 [17:15:56]MH_I2C_Read... [17:15:56]Read from MH i2c: 01 07 00 [17:15:56]MH_I2C_Read... [17:15:56]Read from MH i2c: 01 07 00 7A 18 00 00 00 00 00 FF 0F A7 [17:15:56]RasterBufferAndPrint [17:15:56]line *****ТОВАРНЫЙ ЧЕК***** [17:15:56]line АЗС-91 [17:15:56]line Партнер нефть [17:15:56]line 02508201610067 [17:15:56]line Кассир : Пайзулдаева А. [17:15:56]line Счет N : (1)507588 [17:15:56]line 16.05.2024 16:58 [17:15:56]line ПРОДАЖА [17:15:56]line ТРК (МРК, ГНК): 41 [17:15:56]line Вид ГСМ : 2710194210 [17:15:56]line ДТ-К-5 [17:15:56]line 20.020 x 74.70 [17:15:56]line ИТОГ: 1495.49 [17:15:56]line Тип оплаты: Талоны: Топливная Карта [17:15:56]line 02750 [17:15:56]line ______________________ [17:15:56]line (подпись) [17:15:56]written 0, free lines is 4095 [17:15:56]OFD Sender: No OFD packet to send [17:15:56]Write to MH i2c: 01 00 00 8E 18 A6 [17:15:56]Write i2c OK [17:15:56]MH_I2C_Read... [17:15:56]Read from MH i2c: 01 [17:15:56]MH_I2C_Read... [17:15:56]Read from MH i2c: 01 07 00 [17:15:56]MH_I2C_Read... [17:15:56]Read from MH i2c: 01 07 00 8E 18 00 00 00 00 00 0F 0E CA [17:15:56]RasterBufferAndPrint [17:15:56]line [17:15:56]line [17:15:56]line [17:15:56]line [17:15:56]line [17:15:56]written 0, free lines is 3601 [17:15:56]MH_Cut [17:15:56]Write to MH i2c: D1 01 00 95 18 01 7F [17:15:56]Write i2c OK [17:15:56]MH_I2C_Read... [17:15:56]Read from MH i2c: D1 [17:15:56]MH_I2C_Read... [17:15:56]Read from MH i2c: D1 01 00 [17:15:56]MH_I2C_Read... [17:15:56]Read from MH i2c: D1 01 00 95 18 00 7E [17:15:56]Write to MH i2c: 01 00 00 96 18 AE [17:15:56]Write i2c OK [17:15:56]MH_I2C_Read... [17:15:56]*** Cut start [17:15:56]*** Purtial cut [17:15:56]*** Stage 1: CUTSNS_PIN = 1 [17:15:57]Read from MH i2c: 01 [17:15:57]MH_I2C_Read... [17:15:57]*** Stop cut motor [17:15:57]*** Cut end [17:15:57]Read from MH i2c: 01 07 00 [17:15:57]MH_I2C_Read... [17:15:57]Read from MH i2c: 01 07 00 96 18 00 00 00 00 00 FF 0F C3 [17:15:57]process_action print_text done [17:15:57]requested_data is exist [17:15:57]produce_requested_data [17:15:57]requested_item fm.sn is exist - process it [17:15:57]wFMCommunicate request_size=4 [17:15:57]MH_SAM_APDU [17:15:57]CAPDU: 80 11 00 00 [17:15:57]Write to MH i2c: E2 08 00 97 18 80 11 00 00 00 00 00 00 29 [17:15:57]Write i2c OK [17:15:57]MH_I2C_Read... [17:15:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:57]Read from MH i2c: E2 [17:15:57]MH_I2C_Read... [17:15:57]Read from MH i2c: E2 17 00 [17:15:57]MH_I2C_Read... [17:15:57]Read from MH i2c: E2 17 00 97 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7F [17:15:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:15:57]wFMCommunicate OK [17:15:57]requested_item fd.num is exist - process it [17:15:57]SAM_PROTO_GetFieldsCounters [17:15:57]wFMCommunicate request_size=4 [17:15:57]MH_SAM_APDU [17:15:57]CAPDU: 80 13 00 00 [17:15:57]Write to MH i2c: E2 08 00 98 18 80 13 00 00 00 00 00 00 2C [17:15:57]Write i2c OK [17:15:57]MH_I2C_Read... [17:15:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:15:57]Read from MH i2c: E2 [17:15:57]MH_I2C_Read... [17:15:57]Read from MH i2c: E2 62 00 [17:15:57]MH_I2C_Read... [17:15:57]Read from MH i2c: E2 62 00 98 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C8 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [17:15: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C8 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:15:57]wFMCommunicate OK [17:15:57]SAM_PROTO_GetFieldsCounters done [17:15:57]requested_item shift.num is exist - process it [17:15:57]requested_item shift.opened is exist - process it [17:15:57]req_shift_opened [17:15:57]FM_GetShiftState [17:15:57]SAM_PROTO_GetShiftState [17:15:57]wFMCommunicate request_size=4 [17:15:57]MH_SAM_APDU [17:15:57]CAPDU: 80 13 01 00 [17:15:57]Write to MH i2c: E2 08 00 99 18 80 13 01 00 00 00 00 00 2E [17:15:57]Write i2c OK [17:15:57]MH_I2C_Read... [17:15:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:57]Read from MH i2c: E2 [17:15:57]MH_I2C_Read... [17:15:57]Read from MH i2c: E2 0E 00 [17:15:57]MH_I2C_Read... [17:15:57]Read from MH i2c: E2 0E 00 99 18 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 DA [17:15:57]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [17:15:57]wFMCommunicate OK [17:15:57]SAM_PROTO_GetShiftState done [17:15:57]FM_GetShiftState done [17:15:57]req_shift_opened done [17:15:57]requested_item shift.open_date is exist - process it [17:15:57]req_shift_open_date [17:15:57]req_shift_open_date done [17:15:57]produce_requested_data done [17:15:57]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67528,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [17:15:57]process_action_free print_text [17:15:57]json_value_free [17:15:57]json_value_free done [17:15:57]process_json_proto returns [17:15:57]Send response to host [17:15:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67528,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [17:15:57]free response buf [17:15:57]execute_script done [17:15:57]execute_script returns [17:15:57]free content buf [17:15:57]Sock 10.Close socket [17:15:57]Sock 10.Thread stoped [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:33]accept exits with 8 [17:16:33]New connection [17:16:33]New thread 3067182436 created [17:16:33]Thread 3067039076 joined [17:16:33]Waiting for new connection... [17:16:33] Sock 8.Parse request [17:16:33]Sock 8.Check first char [17:16:33]Sock 8.First char is OK [17:16:33]request: POST /json_proto HTTP/1.0 [17:16:33]Method: POST [17:16:33]URL: /json_proto [17:16:33]Method is POST - this is cgi request [17:16:33]url: /json_proto [17:16:33]query_string will be loaded in cgi processing [17:16:33]execute_cgi json_proto POST (null) [17:16:33]execute_cgi path=json_proto method=POST [17:16:33]POST find Content-Length [17:16:33]Host: 172.17.41.195:8080 [17:16:33]Content-Length: 1209 [17:16:33]Content-Type: application/json [17:16:33] [17:16:33]POST finish read [17:16:33]Found Content-Length = 1209 [17:16:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507589\u000A16.05.2024 16:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 26.780 x 74.70\u000A\u0418\u0422\u041E\u0413: 2000.47\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:33]execute_script... [17:16:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507589\u000A16.05.2024 16:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 26.780 x 74.70\u000A\u0418\u0422\u041E\u0413: 2000.47\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:33]POST & json_proto [17:16:33]process_json_proto [17:16:33]json parsed OK: [17:16:33]protocol is kg_v1.0 [17:16:33]action value=print_text [17:16:33]process_action print_text [17:16:33]cmd_print_text [17:16:33]ExternCall_PrintAddStr [17:16:33]wPrintStart [17:16:33]Write to MH i2c: 01 00 00 9A 18 B2 [17:16:33]Write i2c OK [17:16:33]MH_I2C_Read... [17:16:33]Read from MH i2c: 01 [17:16:33]MH_I2C_Read... [17:16:33]Read from MH i2c: 01 07 00 [17:16:33]MH_I2C_Read... [17:16:33]Read from MH i2c: 01 07 00 9A 18 00 00 00 00 00 FF 0F C7 [17:16:33]RasterBufferAndPrint [17:16:33]line *****ТОВАРНЫЙ ЧЕК***** [17:16:33]line АЗС-91 [17:16:33]line Партнер нефть [17:16:33]line 02508201610067 [17:16:33]line Кассир : Пайзулдаева А. [17:16:33]line Счет N : (1)507589 [17:16:33]line 16.05.2024 16:59 [17:16:33]line ПРОДАЖА [17:16:33]line ТРК (МРК, ГНК): 21 [17:16:33]line Вид ГСМ : 2710194210 [17:16:33]line ДТ-К-5 [17:16:33]line 26.780 x 74.70 [17:16:33]line ИТОГ: 2000.47 [17:16:33]line Тип оплаты: Талоны: Топливная Карта [17:16:33]line 02750 [17:16:33]line ______________________ [17:16:33]line (подпись) [17:16:33]written 0, free lines is 4095 [17:16:33]Write to MH i2c: 01 00 00 AE 18 C6 [17:16:33]Write i2c OK [17:16:33]MH_I2C_Read... [17:16:33]Read from MH i2c: 01 [17:16:33]MH_I2C_Read... [17:16:33]Read from MH i2c: 01 07 00 [17:16:33]MH_I2C_Read... [17:16:33]Read from MH i2c: 01 07 00 AE 18 00 00 00 00 00 10 0E EB [17:16:33]RasterBufferAndPrint [17:16:33]line [17:16:33]line [17:16:33]line [17:16:33]line [17:16:33]line [17:16:34]written 0, free lines is 3601 [17:16:34]MH_Cut [17:16:34]Write to MH i2c: D1 01 00 B5 18 01 9F [17:16:34]Write i2c OK [17:16:34]MH_I2C_Read... [17:16:34]Read from MH i2c: D1 [17:16:34]MH_I2C_Read... [17:16:34]Read from MH i2c: D1 01 00 [17:16:34]MH_I2C_Read... [17:16:34]Read from MH i2c: D1 01 00 B5 18 00 9E [17:16:34]Write to MH i2c: 01 00 00 B6 18 CE [17:16:34]Write i2c OK [17:16:34]MH_I2C_Read... [17:16:34]*** Cut start [17:16:34]*** Purtial cut [17:16:34]*** CUTSNS_PIN = 0 [17:16:34]*** Stage 1: CUTSNS_PIN = 1 [17:16:36]OFD Sender: No OFD packet to send [17:16:36]Read from MH i2c: 01 [17:16:36]MH_I2C_Read... [17:16:36]Read from MH i2c: 01 07 00 [17:16:36]MH_I2C_Read... [17:16:36]*** Stop cut motor [17:16:36]*** Cut end [17:16:36]Read from MH i2c: 01 07 00 B6 18 00 00 00 00 00 FF 0F E3 [17:16:36]process_action print_text done [17:16:36]requested_data is exist [17:16:36]produce_requested_data [17:16:36]requested_item fm.sn is exist - process it [17:16:36]wFMCommunicate request_size=4 [17:16:36]MH_SAM_APDU [17:16:36]CAPDU: 80 11 00 00 [17:16:36]Write to MH i2c: E2 08 00 B7 18 80 11 00 00 00 00 00 00 49 [17:16:36]Write i2c OK [17:16:36]MH_I2C_Read... [17:16:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:36]Read from MH i2c: E2 [17:16:36]MH_I2C_Read... [17:16:36]Read from MH i2c: E2 17 00 [17:16:36]MH_I2C_Read... [17:16:36]Read from MH i2c: E2 17 00 B7 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 9F [17:16:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:16:36]wFMCommunicate OK [17:16:36]requested_item fd.num is exist - process it [17:16:36]SAM_PROTO_GetFieldsCounters [17:16:36]wFMCommunicate request_size=4 [17:16:36]MH_SAM_APDU [17:16:36]CAPDU: 80 13 00 00 [17:16:36]Write to MH i2c: E2 08 00 B8 18 80 13 00 00 00 00 00 00 4C [17:16:36]Write i2c OK [17:16:36]MH_I2C_Read... [17:16:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:16:36]Read from MH i2c: E2 [17:16:36]MH_I2C_Read... [17:16:36]Read from MH i2c: E2 62 00 [17:16:36]MH_I2C_Read... [17:16:36]Read from MH i2c: E2 62 00 B8 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C8 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [17:16: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C8 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:16:36]wFMCommunicate OK [17:16:36]SAM_PROTO_GetFieldsCounters done [17:16:36]requested_item shift.num is exist - process it [17:16:36]requested_item shift.opened is exist - process it [17:16:36]req_shift_opened [17:16:36]FM_GetShiftState [17:16:36]SAM_PROTO_GetShiftState [17:16:36]wFMCommunicate request_size=4 [17:16:36]MH_SAM_APDU [17:16:36]CAPDU: 80 13 01 00 [17:16:36]Write to MH i2c: E2 08 00 B9 18 80 13 01 00 00 00 00 00 4E [17:16:36]Write i2c OK [17:16:36]MH_I2C_Read... [17:16:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:36]Read from MH i2c: E2 [17:16:36]MH_I2C_Read... [17:16:36]Read from MH i2c: E2 0E 00 [17:16:36]MH_I2C_Read... [17:16:36]Read from MH i2c: E2 0E 00 B9 18 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 FA [17:16:36]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [17:16:36]wFMCommunicate OK [17:16:36]SAM_PROTO_GetShiftState done [17:16:36]FM_GetShiftState done [17:16:36]req_shift_opened done [17:16:36]requested_item shift.open_date is exist - process it [17:16:36]req_shift_open_date [17:16:36]req_shift_open_date done [17:16:36]produce_requested_data done [17:16:36]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67528,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [17:16:36]process_action_free print_text [17:16:36]json_value_free [17:16:36]json_value_free done [17:16:36]process_json_proto returns [17:16:36]Send response to host [17:16:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67528,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [17:16:36]free response buf [17:16:36]execute_script done [17:16:36]execute_script returns [17:16:36]free content buf [17:16:36]Sock 8.Close socket [17:16:36]Sock 8.Thread stoped [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:56]OFD Sender: No OFD packet to send [17:18:01]OFD Sender: No OFD packet to send [17:18:06]OFD Sender: No OFD packet to send [17:18:11]OFD Sender: No OFD packet to send [17:18:16]OFD Sender: No OFD packet to send [17:18:21]OFD Sender: No OFD packet to send [17:18:26]OFD Sender: No OFD packet to send [17:18:31]OFD Sender: No OFD packet to send [17:18:36]accept exits with 9 [17:18:36]New connection [17:18:36]New thread 3067039076 created [17:18:36]Thread 3067182436 joined [17:18:36]Waiting for new connection... [17:18:36] Sock 9.Parse request [17:18:36]Sock 9.Check first char [17:18:36]Sock 9.First char is OK [17:18:36]request: POST /json_proto HTTP/1.0 [17:18:36]Method: POST [17:18:36]URL: /json_proto [17:18:36]Method is POST - this is cgi request [17:18:36]url: /json_proto [17:18:36]query_string will be loaded in cgi processing [17:18:36]execute_cgi json_proto POST (null) [17:18:36]execute_cgi path=json_proto method=POST [17:18:36]POST find Content-Length [17:18:36]Host: 172.17.41.195:8080 [17:18:36]Content-Length: 1210 [17:18:36]Content-Type: application/json [17:18:36] [17:18:36]POST finish read [17:18:36]Found Content-Length = 1210 [17:18:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507590\u000A16.05.2024 17:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 5.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 334.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:18:36]execute_script... [17:18:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507590\u000A16.05.2024 17:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 5.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 334.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:18:36]POST & json_proto [17:18:36]process_json_proto [17:18:36]json parsed OK: [17:18:36]protocol is kg_v1.0 [17:18:36]action value=print_text [17:18:36]process_action print_text [17:18:36]cmd_print_text [17:18:36]ExternCall_PrintAddStr [17:18:36]wPrintStart [17:18:36]Write to MH i2c: 01 00 00 BA 18 D2 [17:18:36]Write i2c OK [17:18:36]MH_I2C_Read... [17:18:36]Read from MH i2c: 01 [17:18:36]MH_I2C_Read... [17:18:36]Read from MH i2c: 01 07 00 [17:18:36]MH_I2C_Read... [17:18:36]Read from MH i2c: 01 07 00 BA 18 00 00 00 00 00 FF 0F E7 [17:18:36]RasterBufferAndPrint [17:18:36]line *****ТОВАРНЫЙ ЧЕК***** [17:18:36]line АЗС-91 [17:18:36]line Партнер нефть [17:18:36]line 02508201610067 [17:18:36]line Кассир : Пайзулдаева А. [17:18:36]line Счет N : (1)507590 [17:18:36]line 16.05.2024 17:01 [17:18:36]line ПРОДАЖА [17:18:36]line ТРК (МРК, ГНК): 43 [17:18:36]line Вид ГСМ : 2710124130 [17:18:36]line Аи-92-К-5 [17:18:36]line 5.000 x 66.80 [17:18:36]line ИТОГ: 334.00 [17:18:36]line Тип оплаты: Талоны: Топливная Карта [17:18:36]line 02750 [17:18:36]line ______________________ [17:18:36]line (подпись) [17:18:36]written 0, free lines is 4095 [17:18:36]Write to MH i2c: 01 00 00 CE 18 E6 [17:18:36]Write i2c OK [17:18:36]MH_I2C_Read... [17:18:36]Read from MH i2c: 01 [17:18:36]MH_I2C_Read... [17:18:36]Read from MH i2c: 01 07 00 [17:18:36]MH_I2C_Read... [17:18:36]Read from MH i2c: 01 07 00 CE 18 00 00 00 00 00 10 0E 0B [17:18:36]RasterBufferAndPrint [17:18:36]line [17:18:36]line [17:18:36]line [17:18:36]line [17:18:36]line [17:18:36]written 0, free lines is 3601 [17:18:36]MH_Cut [17:18:36]Write to MH i2c: D1 01 00 D5 18 01 BF [17:18:36]Write i2c OK [17:18:36]MH_I2C_Read... [17:18:36]Read from MH i2c: D1 [17:18:36]MH_I2C_Read... [17:18:36]Read from MH i2c: D1 01 00 [17:18:36]MH_I2C_Read... [17:18:36]Read from MH i2c: D1 01 00 D5 18 00 BE [17:18:36]Write to MH i2c: 01 00 00 D6 18 EE [17:18:36]Write i2c OK [17:18:36]MH_I2C_Read... [17:18:36]OFD Sender: No OFD packet to send [17:18:36]*** Cut start [17:18:36]*** Purtial cut [17:18:36]*** Stage 1: CUTSNS_PIN = 1 [17:18:37]Read from MH i2c: 01 [17:18:37]MH_I2C_Read... [17:18:37]*** Stop cut motor [17:18:37]*** Cut end [17:18:37]Read from MH i2c: 01 07 00 [17:18:37]MH_I2C_Read... [17:18:37]Read from MH i2c: 01 07 00 D6 18 00 00 00 00 00 FF 0F 03 [17:18:37]process_action print_text done [17:18:37]requested_data is exist [17:18:37]produce_requested_data [17:18:37]requested_item fm.sn is exist - process it [17:18:37]wFMCommunicate request_size=4 [17:18:37]MH_SAM_APDU [17:18:37]CAPDU: 80 11 00 00 [17:18:37]Write to MH i2c: E2 08 00 D7 18 80 11 00 00 00 00 00 00 69 [17:18:37]Write i2c OK [17:18:37]MH_I2C_Read... [17:18:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:37]Read from MH i2c: E2 [17:18:37]MH_I2C_Read... [17:18:37]Read from MH i2c: E2 17 00 [17:18:37]MH_I2C_Read... [17:18:37]Read from MH i2c: E2 17 00 D7 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BF [17:18:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:18:37]wFMCommunicate OK [17:18:37]requested_item fd.num is exist - process it [17:18:37]SAM_PROTO_GetFieldsCounters [17:18:37]wFMCommunicate request_size=4 [17:18:37]MH_SAM_APDU [17:18:37]CAPDU: 80 13 00 00 [17:18:37]Write to MH i2c: E2 08 00 D8 18 80 13 00 00 00 00 00 00 6C [17:18:37]Write i2c OK [17:18:37]MH_I2C_Read... [17:18:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:18:37]Read from MH i2c: E2 [17:18:37]MH_I2C_Read... [17:18:37]Read from MH i2c: E2 62 00 [17:18:37]MH_I2C_Read... [17:18:37]Read from MH i2c: E2 62 00 D8 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C8 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [17:18: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C8 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:18:37]wFMCommunicate OK [17:18:37]SAM_PROTO_GetFieldsCounters done [17:18:37]requested_item shift.num is exist - process it [17:18:37]requested_item shift.opened is exist - process it [17:18:37]req_shift_opened [17:18:37]FM_GetShiftState [17:18:37]SAM_PROTO_GetShiftState [17:18:37]wFMCommunicate request_size=4 [17:18:37]MH_SAM_APDU [17:18:37]CAPDU: 80 13 01 00 [17:18:37]Write to MH i2c: E2 08 00 D9 18 80 13 01 00 00 00 00 00 6E [17:18:37]Write i2c OK [17:18:37]MH_I2C_Read... [17:18:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:37]Read from MH i2c: E2 [17:18:37]MH_I2C_Read... [17:18:37]Read from MH i2c: E2 0E 00 [17:18:37]MH_I2C_Read... [17:18:37]Read from MH i2c: E2 0E 00 D9 18 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 1A [17:18:37]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [17:18:37]wFMCommunicate OK [17:18:37]SAM_PROTO_GetShiftState done [17:18:37]FM_GetShiftState done [17:18:37]req_shift_opened done [17:18:37]requested_item shift.open_date is exist - process it [17:18:37]req_shift_open_date [17:18:37]req_shift_open_date done [17:18:37]produce_requested_data done [17:18:37]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67528,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [17:18:37]process_action_free print_text [17:18:37]json_value_free [17:18:37]json_value_free done [17:18:37]process_json_proto returns [17:18:37]Send response to host [17:18:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67528,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [17:18:37]free response buf [17:18:37]execute_script done [17:18:37]execute_script returns [17:18:37]free content buf [17:18:37]Sock 9.Close socket [17:18:37]Sock 9.Thread stoped [17:18:41]OFD Sender: No OFD packet to send [17:18:46]OFD Sender: No OFD packet to send [17:18:51]OFD Sender: No OFD packet to send [17:18:56]OFD Sender: No OFD packet to send [17:19:01]OFD Sender: No OFD packet to send [17:19:06]OFD Sender: No OFD packet to send [17:19:11]OFD Sender: No OFD packet to send [17:19:16]OFD Sender: No OFD packet to send [17:19:21]OFD Sender: No OFD packet to send [17:19:26]OFD Sender: No OFD packet to send [17:19:31]OFD Sender: No OFD packet to send [17:19:36]OFD Sender: No OFD packet to send [17:19:41]OFD Sender: No OFD packet to send [17:19:46]OFD Sender: No OFD packet to send [17:19:51]OFD Sender: No OFD packet to send [17:19:56]OFD Sender: No OFD packet to send [17:20:01]OFD Sender: No OFD packet to send [17:20:06]OFD Sender: No OFD packet to send [17:20:11]OFD Sender: No OFD packet to send [17:20:16]OFD Sender: No OFD packet to send [17:20:21]OFD Sender: No OFD packet to send [17:20:26]OFD Sender: No OFD packet to send [17:20:31]OFD Sender: No OFD packet to send [17:20:36]OFD Sender: No OFD packet to send [17:20:41]OFD Sender: No OFD packet to send [17:20:46]OFD Sender: No OFD packet to send [17:20:51]OFD Sender: No OFD packet to send [17:20:56]OFD Sender: No OFD packet to send [17:21:01]OFD Sender: No OFD packet to send [17:21:06]OFD Sender: No OFD packet to send [17:21:11]OFD Sender: No OFD packet to send [17:21:16]OFD Sender: No OFD packet to send [17:21:21]OFD Sender: No OFD packet to send [17:21:26]OFD Sender: No OFD packet to send [17:21:31]OFD Sender: No OFD packet to send [17:21:36]OFD Sender: No OFD packet to send [17:21:41]OFD Sender: No OFD packet to send [17:21:46]OFD Sender: No OFD packet to send [17:21:51]OFD Sender: No OFD packet to send [17:21:56]OFD Sender: No OFD packet to send [17:22:01]OFD Sender: No OFD packet to send [17:22:06]OFD Sender: No OFD packet to send [17:22:11]OFD Sender: No OFD packet to send [17:22:16]OFD Sender: No OFD packet to send [17:22:21]OFD Sender: No OFD packet to send [17:22:26]OFD Sender: No OFD packet to send [17:22:31]OFD Sender: No OFD packet to send [17:22:36]OFD Sender: No OFD packet to send [17:22:41]OFD Sender: No OFD packet to send [17:22:46]OFD Sender: No OFD packet to send [17:22:51]OFD Sender: No OFD packet to send [17:22:56]OFD Sender: No OFD packet to send [17:23:01]OFD Sender: No OFD packet to send [17:23:06]OFD Sender: No OFD packet to send [17:23:11]OFD Sender: No OFD packet to send [17:23:16]OFD Sender: No OFD packet to send [17:23:21]OFD Sender: No OFD packet to send [17:23:26]OFD Sender: No OFD packet to send [17:23:31]OFD Sender: No OFD packet to send [17:23:36]OFD Sender: No OFD packet to send [17:23:41]OFD Sender: No OFD packet to send [17:23:46]OFD Sender: No OFD packet to send [17:23:51]OFD Sender: No OFD packet to send [17:23:56]OFD Sender: No OFD packet to send [17:24:01]OFD Sender: No OFD packet to send [17:24:06]OFD Sender: No OFD packet to send [17:24:11]OFD Sender: No OFD packet to send [17:24:16]OFD Sender: No OFD packet to send [17:24:21]OFD Sender: No OFD packet to send [17:24:26]OFD Sender: No OFD packet to send [17:24:31]OFD Sender: No OFD packet to send [17:24:36]OFD Sender: No OFD packet to send [17:24:41]OFD Sender: No OFD packet to send [17:24:46]OFD Sender: No OFD packet to send [17:24:51]OFD Sender: No OFD packet to send [17:24:56]OFD Sender: No OFD packet to send [17:25:01]OFD Sender: No OFD packet to send [17:25:06]OFD Sender: No OFD packet to send [17:25:11]OFD Sender: No OFD packet to send [17:25:16]OFD Sender: No OFD packet to send [17:25:21]OFD Sender: No OFD packet to send [17:25:26]OFD Sender: No OFD packet to send [17:25:31]OFD Sender: No OFD packet to send [17:25:36]OFD Sender: No OFD packet to send [17:25:41]OFD Sender: No OFD packet to send [17:25:46]OFD Sender: No OFD packet to send [17:25:51]OFD Sender: No OFD packet to send [17:25:56]OFD Sender: No OFD packet to send [17:26:01]OFD Sender: No OFD packet to send [17:26:06]OFD Sender: No OFD packet to send [17:26:11]OFD Sender: No OFD packet to send [17:26:16]OFD Sender: No OFD packet to send [17:26:21]OFD Sender: No OFD packet to send [17:26:24]accept exits with 8 [17:26:24]New connection [17:26:24]New thread 3067182436 created [17:26:24]Thread 3067039076 joined [17:26:24]Waiting for new connection... [17:26:24] Sock 8.Parse request [17:26:24]Sock 8.Check first char [17:26:24]Sock 8.First char is OK [17:26:24]request: POST /json_proto HTTP/1.0 [17:26:24]Method: POST [17:26:24]URL: /json_proto [17:26:24]Method is POST - this is cgi request [17:26:24]url: /json_proto [17:26:24]query_string will be loaded in cgi processing [17:26:24]execute_cgi json_proto POST (null) [17:26:24]execute_cgi path=json_proto method=POST [17:26:24]POST find Content-Length [17:26:24]Host: 172.17.41.195:8080 [17:26:24]Content-Length: 800 [17:26:24]Content-Type: application/json [17:26:24] [17:26:24]POST finish read [17:26:24]Found Content-Length = 800 [17:26:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507591", "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" : 74.70, "quantity" : 20.090, "sum" : 1500.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.72 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:24]execute_script... [17:26:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507591", "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" : 74.70, "quantity" : 20.090, "sum" : 1500.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.72 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:24]POST & json_proto [17:26:24]process_json_proto [17:26:24]json parsed OK: [17:26:24]protocol is kg_v1.0 [17:26:24]action value=close_receipt [17:26:24]process_action close_receipt [17:26:24]cmd_close_receipt [17:26:24]MH_GetDate [17:26:24]Write to MH i2c: F0 00 00 DA 18 E1 [17:26:24]Write i2c OK [17:26:24]MH_I2C_Read... [17:26:24]Read from MH i2c: F0 [17:26:24]MH_I2C_Read... [17:26:24]Read from MH i2c: F0 09 00 [17:26:24]MH_I2C_Read... [17:26:24]Read from MH i2c: F0 09 00 DA 18 00 C2 41 46 66 FC 21 6F 64 89 [17:26:24]GetLastDocTimeStamp 1715879444 [17:26:24]current date 1715880386 [17:26:24]FM_GetShiftState [17:26:24]SAM_PROTO_GetShiftState [17:26:24]wFMCommunicate request_size=4 [17:26:24]MH_SAM_APDU [17:26:24]CAPDU: 80 13 01 00 [17:26:24]Write to MH i2c: E2 08 00 DB 18 80 13 01 00 00 00 00 00 70 [17:26:24]Write i2c OK [17:26:24]MH_I2C_Read... [17:26:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:24]Read from MH i2c: E2 [17:26:24]MH_I2C_Read... [17:26:24]Read from MH i2c: E2 0E 00 [17:26:24]MH_I2C_Read... [17:26:24]Read from MH i2c: E2 0E 00 DB 18 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 1C [17:26:24]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [17:26:24]wFMCommunicate OK [17:26:24]SAM_PROTO_GetShiftState done [17:26:24]FM_GetShiftState done [17:26:24]opened in 1715818916 [17:26:24]opened+sec_in_day 1715905316 [17:26:24]quantity*price = 150072 [17:26:24]sum+1 = 150073 [17:26:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.72 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 0.00 Безнал.: 1500.72 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 127 16.05.2024 17:26 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67529 ФПД: 96712853866627 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T172626&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67529&fm=96712853866627&tin=02508201610067®Number=0000000000091845&sum=150072 [17:26:26]StoreToDocumentArchive [17:26:26]shift 357 fd 67529 [17:26:26]save to /storage/0357/doc_00067529 [17:26:26]save last doc name /storage/0357/doc_00067529 to /storage/kkm_last_doc_name [17:26:26]save OK [17:26:26]Clear old archive folders... [17:26:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:26:26]tlvbuf is B6EE0630 [17:26:26]SAM_PROTO_ClearQueue [17:26:26]wFMCommunicate request_size=4 [17:26:26]MH_SAM_APDU [17:26:26]CAPDU: 80 09 00 00 [17:26:26]Write to MH i2c: E2 08 00 E8 18 80 09 00 00 00 00 00 00 72 [17:26:26]Write i2c OK [17:26:26]MH_I2C_Read... [17:26:26]Read from MH i2c: E2 [17:26:26]MH_I2C_Read... [17:26:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:26]Read from MH i2c: E2 03 00 [17:26:26]MH_I2C_Read... [17:26:26]Read from MH i2c: E2 03 00 E8 18 00 90 00 74 [17:26:26]RAPDU: 90 00 [17:26:26]wFMCommunicate OK [17:26:26]SAM_PROTO_ClearQueue done [17:26:26]KKMCreateOFDPacket [17:26:26]OFDProtocolAddRootSTLVToBuf [17:26:26]FM_MakeSignedData [17:26:26]FM_MakeSignedData [17:26:26]SAM_PROTO_SignData [17:26:26]wFMCommunicate request_size=4 [17:26:26]MH_SAM_APDU [17:26:26]CAPDU: 80 0D 01 02 [17:26:26]Write to MH i2c: E2 08 00 E9 18 80 0D 01 02 00 00 00 00 7A [17:26:26]Write i2c OK [17:26:26]MH_I2C_Read... [17:26:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:26]Read from MH i2c: E2 [17:26:26]MH_I2C_Read... [17:26:26]Read from MH i2c: E2 03 00 [17:26:26]MH_I2C_Read... [17:26:26]Read from MH i2c: E2 03 00 E9 18 00 90 00 75 [17:26:26]RAPDU: 90 00 [17:26:26]wFMCommunicate OK [17:26:26]wFMCommunicate request_size=255 [17:26:26]MH_SAM_APDU [17:26: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 7A 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 38 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 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 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 C2 41 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C9 07 01 00 35 04 06 00 57 F5 B7 4C [17:26:26]Write to MH i2c: E2 02 01 EA 18 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 38 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 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 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 C2 41 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C9 07 01 00 35 04 06 00 57 F5 B7 4C 00 00 E3 [17:26:26]Write i2c OK [17:26:26]MH_I2C_Read... [17:26:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:26]Read from MH i2c: E2 [17:26:26]MH_I2C_Read... [17:26:26]Read from MH i2c: E2 03 00 [17:26:26]MH_I2C_Read... [17:26:26]Read from MH i2c: E2 03 00 EA 18 00 90 00 76 [17:26:26]RAPDU: 90 00 [17:26:26]wFMCommunicate OK [17:26:26]wFMCommunicate request_size=7 [17:26:26]MH_SAM_APDU [17:26:26]CAPDU: 80 0D 02 02 02 C8 83 [17:26:26]Write to MH i2c: E2 0A 00 EB 18 80 0D 02 02 02 00 C8 83 00 00 CC [17:26:26]Write i2c OK [17:26:26]MH_I2C_Read... [17:26:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:26]Read from MH i2c: E2 [17:26:26]MH_I2C_Read... [17:26:26]Read from MH i2c: E2 03 00 [17:26:26]MH_I2C_Read... [17:26:26]Read from MH i2c: E2 03 00 EB 18 00 90 00 77 [17:26:26]RAPDU: 90 00 [17:26:26]wFMCommunicate OK [17:26:26]wFMCommunicate request_size=4 [17:26:26]MH_SAM_APDU [17:26:26]CAPDU: 80 0D 03 02 [17:26:26]Write to MH i2c: E2 08 00 EC 18 80 0D 03 02 00 00 00 00 7F [17:26:26]Write i2c OK [17:26:26]MH_I2C_Read... [17:26:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:26:26]Read from MH i2c: E2 [17:26:26]MH_I2C_Read... [17:26:26]Read from MH i2c: E2 0B 00 [17:26:26]MH_I2C_Read... [17:26:26]Read from MH i2c: E2 0B 00 EC 18 00 1D 2D 04 FB 14 9A 81 23 90 00 1B [17:26:26]RAPDU: 1D 2D 04 FB 14 9A 81 23 90 00 [17:26:26]wFMCommunicate OK [17:26:26]SAM_PROTO_SignData done [17:26:26]FM_MakeSignedData done [17:26:26]CreateOFDProtocolMessage [17:26:26]wFMCommunicate request_size=4 [17:26:26]MH_SAM_APDU [17:26:26]CAPDU: 80 11 00 00 [17:26:26]Write to MH i2c: E2 08 00 ED 18 80 11 00 00 00 00 00 00 7F [17:26:26]Write i2c OK [17:26:26]MH_I2C_Read... [17:26:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:26]Read from MH i2c: E2 [17:26:26]MH_I2C_Read... [17:26:26]Read from MH i2c: E2 17 00 [17:26:26]MH_I2C_Read... [17:26:26]Read from MH i2c: E2 17 00 ED 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D5 [17:26:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:26:26]wFMCommunicate OK [17:26:26]CreateOFDProtocolMessage done [17:26:26]OFDSenderStorePacket 67529 [17:26:26]StoreOFDPacket docnum=67529 [17:26:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 E7 02 04 01 A8 2F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 38 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 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 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 C2 41 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C9 07 01 00 35 04 06 00 57 F5 B7 4C C8 83 1D 2D 04 FB 14 9A 81 23 [17:26:26]CheckFolder [17:26:26]dirname=/storage/ofd_packets [17:26:26]CheckFolder done [17:26:26]ProducePacketName [17:26:26]name=ofd_packets/00067529 [17:26:26]NVStorageSaveData ofd_packets/00067529 [17:26:26]File name is /storage/ofd_packets/00067529 [17:26:26]Write 298 bytes [17:26:26]NVStorageSaveData done [17:26:26]OFDSenderStorePacket done [17:26:26]KKMCreateOFDPacket done [17:26:26]NVStorageSaveData kkm_last_timestamp [17:26:26]File name is /storage/kkm_last_timestamp [17:26:26]Write 4 bytes [17:26:26]NVStorageSaveData done [17:26:26]ExternCall_PrintAddStr [17:26:26]wPrintStart [17:26:26]Write to MH i2c: 01 00 00 EE 18 06 [17:26:26]Write i2c OK [17:26:26]MH_I2C_Read... [17:26:26]Read from MH i2c: 01 [17:26:26]MH_I2C_Read... [17:26:26]Read from MH i2c: 01 07 00 [17:26:26]MH_I2C_Read... [17:26:26]Read from MH i2c: 01 07 00 EE 18 00 00 00 00 00 FF 0F 1B [17:26:26]RasterBufferAndPrint [17:26:26]line Счет N : (1)507591 [17:26:26]line ИНН: 02508201610067 [17:26:26]line Контрольно-Кассовый Чек [17:26:26]line ПРОДАЖА [17:26:26]line ТРК (МРК, ГНК) : 31 [17:26:26]line Товар: 2710194210 [17:26:26]line ДТ-К-5 [17:26:26]line 20.090 * 74.70 [17:26:26]line = 1500.72 [17:26:26]line НДС 12% НСП 1% [17:26:26]line > о реализуемом товаре [17:26:26]line ИТОГО: 1500.72 [17:26:26]line НСП 1% : 13.28 [17:26:26]line НДС 12% : 159.37 [17:26:26]line Наличными: 0.00 [17:26:26]line Безнал.: 1500.72 [17:26:26]line Место: АЗС № 91 "Партнер Нефть" [17:26:26]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:26:26]line СНО: Общий режим [17:26:26]line Чек 127 16.05.2024 17:26 [17:26:26]line Смена: 357 ФФД: 1.0 [17:26:26]line ЗНМ: 0300000119 [17:26:26]line РНМ: 0000000000091845 [17:26:26]line Версия ККМ: 001 [17:26:26]line Платежная система: O! деньги [17:26:26]line ФМ: 0000000000871829 [17:26:26]line ФД: 67529 [17:26:26]line ФПД: 96712853866627 [17:26:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T172626&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67529&fm=96712853866627&tin=02508201610067®Number=0000000000091845&sum=150072 [17:26:26]OFD Sender: Processing packet 67529 [packets to send 35, broken 34] [17:26:26]ProducePacketName [17:26:26]name=ofd_packets/00067529 [17:26:26]OFD Sender: To server: pG, [17:26:26]CommunicateWithHost lk.salyk.kg:30040 [17:26:26]ConnectInit lk.salyk.kg [17:26:26]written 0, free lines is 4095 [17:26:27]Connected sock=10 [17:26:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 E7 02 04 01 A8 2F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 38 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 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 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 C2 41 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C9 07 01 00 35 04 06 00 57 F5 B7 4C C8 83 1D 2D 04 FB 14 9A 81 23 [17:26:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 72 EF 47 00 CF DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C9 07 01 00 F4 03 04 00 9C E9 45 66 B6 04 01 00 00 14 1F DB 78 1C 87 B0 7E [17:26:27]CommunicateWithHost err = 0 [17:26:27]CheckOFDResponse [17:26:27]1017 (14) - 77093643461234 [17:26:27]1041 (16) - 0000000000871829 [17:26:27]1040 (4) - 67529 [17:26:27]1012 (4) - 16.05.2024 11:10 [17:26:27]1206 (1) - 0 [17:26:27]OFD Sender: Remove packet 67529 [17:26:27]ProducePacketName [17:26:27]name=ofd_packets/00067529 [17:26:27]NVStorageDeleteData [17:26:27]Write to MH i2c: 01 00 00 17 19 30 [17:26:27]Write i2c OK [17:26:27]MH_I2C_Read... [17:26:27]Read from MH i2c: 01 [17:26:27]MH_I2C_Read... [17:26:27]Read from MH i2c: 01 07 00 [17:26:27]MH_I2C_Read... [17:26:27]Read from MH i2c: 01 07 00 17 19 00 00 00 00 00 DA 0C 1D [17:26:27]RasterBufferAndPrint [17:26:27]line [17:26:27]line [17:26:27]line [17:26:27]line [17:26:27]line [17:26:27]written 0, free lines is 3296 [17:26:27]MH_Cut [17:26:27]Write to MH i2c: D1 01 00 1E 19 01 09 [17:26:27]Write i2c OK [17:26:27]MH_I2C_Read... [17:26:27]Read from MH i2c: D1 [17:26:27]MH_I2C_Read... [17:26:27]Read from MH i2c: D1 01 00 [17:26:27]MH_I2C_Read... [17:26:27]Read from MH i2c: D1 01 00 1E 19 00 08 [17:26:27]Write to MH i2c: 01 00 00 1F 19 38 [17:26:27]Write i2c OK [17:26:27]MH_I2C_Read... [17:26:27]OFD Sender: No OFD packet to send [17:26:28]*** Cut start [17:26:28]*** Purtial cut [17:26:28]*** CUTSNS_PIN = 0 [17:26:28]*** Stage 1: CUTSNS_PIN = 1 [17:26:30]Read from MH i2c: 01 [17:26:30]MH_I2C_Read... [17:26:30]*** Stop cut motor [17:26:30]*** Cut end [17:26:30]Read from MH i2c: 01 07 00 [17:26:30]MH_I2C_Read... [17:26:30]Read from MH i2c: 01 07 00 1F 19 00 00 00 00 00 FF 0F 4D [17:26:30]process_action close_receipt done [17:26:30]requested_data is exist [17:26:30]produce_requested_data [17:26:30]requested_item fm.sn is exist - process it [17:26:30]wFMCommunicate request_size=4 [17:26:30]MH_SAM_APDU [17:26:30]CAPDU: 80 11 00 00 [17:26:30]Write to MH i2c: E2 08 00 20 19 80 11 00 00 00 00 00 00 B3 [17:26:30]Write i2c OK [17:26:30]MH_I2C_Read... [17:26:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:30]Read from MH i2c: E2 [17:26:30]MH_I2C_Read... [17:26:30]Read from MH i2c: E2 17 00 [17:26:30]MH_I2C_Read... [17:26:30]Read from MH i2c: E2 17 00 20 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 09 [17:26:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:26:30]wFMCommunicate OK [17:26:30]requested_item fd.num is exist - process it [17:26:30]SAM_PROTO_GetFieldsCounters [17:26:30]wFMCommunicate request_size=4 [17:26:30]MH_SAM_APDU [17:26:30]CAPDU: 80 13 00 00 [17:26:30]Write to MH i2c: E2 08 00 21 19 80 13 00 00 00 00 00 00 B6 [17:26:30]Write i2c OK [17:26:30]MH_I2C_Read... [17:26:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:30]Read from MH i2c: E2 [17:26:30]MH_I2C_Read... [17:26:30]Read from MH i2c: E2 62 00 [17:26:30]MH_I2C_Read... [17:26:30]Read from MH i2c: E2 62 00 21 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C9 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [17:26: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C9 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:26:30]wFMCommunicate OK [17:26:30]SAM_PROTO_GetFieldsCounters done [17:26:30]requested_item shift.num is exist - process it [17:26:30]requested_item shift.opened is exist - process it [17:26:30]req_shift_opened [17:26:30]FM_GetShiftState [17:26:30]SAM_PROTO_GetShiftState [17:26:30]wFMCommunicate request_size=4 [17:26:30]MH_SAM_APDU [17:26:30]CAPDU: 80 13 01 00 [17:26:30]Write to MH i2c: E2 08 00 22 19 80 13 01 00 00 00 00 00 B8 [17:26:30]Write i2c OK [17:26:30]MH_I2C_Read... [17:26:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:30]Read from MH i2c: E2 [17:26:30]MH_I2C_Read... [17:26:30]Read from MH i2c: E2 0E 00 [17:26:30]MH_I2C_Read... [17:26:30]Read from MH i2c: E2 0E 00 22 19 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 64 [17:26:30]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [17:26:30]wFMCommunicate OK [17:26:30]SAM_PROTO_GetShiftState done [17:26:30]FM_GetShiftState done [17:26:30]req_shift_opened done [17:26:30]requested_item shift.open_date is exist - process it [17:26:30]req_shift_open_date [17:26:30]req_shift_open_date done [17:26:30]produce_requested_data done [17:26:30]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67529,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [17:26:30]process_action_free close_receipt [17:26:30]json_value_free [17:26:30]json_value_free done [17:26:30]process_json_proto returns [17:26:30]Send response to host [17:26:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67529,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [17:26:30]free response buf [17:26:30]execute_script done [17:26:30]execute_script returns [17:26:30]free content buf [17:26:30]Sock 8.Close socket [17:26:30]Sock 8.Thread stoped [17:26:30]accept exits with 9 [17:26:30]New connection [17:26:30]New thread 3067039076 created [17:26:30]Thread 3067182436 joined [17:26:30]Waiting for new connection... [17:26:30] Sock 9.Parse request [17:26:30]Sock 9.Check first char [17:26:30]Sock 9.First char is OK [17:26:30]request: POST /json_proto HTTP/1.0 [17:26:30]Method: POST [17:26:30]URL: /json_proto [17:26:30]Method is POST - this is cgi request [17:26:30]url: /json_proto [17:26:30]query_string will be loaded in cgi processing [17:26:30]execute_cgi json_proto POST (null) [17:26:30]execute_cgi path=json_proto method=POST [17:26:30]POST find Content-Length [17:26:30]Host: 172.17.41.195:8080 [17:26:30]Content-Length: 670 [17:26:30]Content-Type: application/json [17:26:30] [17:26:30]POST finish read [17:26:30]Found Content-Length = 670 [17:26:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:26:30]execute_script... [17:26: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)507592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:26:30]POST & json_proto [17:26:30]process_json_proto [17:26:30]json parsed OK: [17:26:30]protocol is kg_v1.0 [17:26:30]action value=close_receipt [17:26:30]process_action close_receipt [17:26:30]cmd_close_receipt [17:26:30]MH_GetDate [17:26:30]Write to MH i2c: F0 00 00 23 19 2B [17:26:30]Write i2c OK [17:26:30]MH_I2C_Read... [17:26:30]Read from MH i2c: F0 [17:26:30]MH_I2C_Read... [17:26:30]Read from MH i2c: F0 09 00 [17:26:30]MH_I2C_Read... [17:26:30]Read from MH i2c: F0 09 00 23 19 00 C8 41 46 66 FC 21 6F 64 D9 [17:26:30]GetLastDocTimeStamp 1715880386 [17:26:30]current date 1715880392 [17:26:30]FM_GetShiftState [17:26:30]SAM_PROTO_GetShiftState [17:26:30]wFMCommunicate request_size=4 [17:26:30]MH_SAM_APDU [17:26:30]CAPDU: 80 13 01 00 [17:26:30]Write to MH i2c: E2 08 00 24 19 80 13 01 00 00 00 00 00 BA [17:26:30]Write i2c OK [17:26:30]MH_I2C_Read... [17:26:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:30]Read from MH i2c: E2 [17:26:30]MH_I2C_Read... [17:26:30]Read from MH i2c: E2 0E 00 [17:26:30]MH_I2C_Read... [17:26:30]Read from MH i2c: E2 0E 00 24 19 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 66 [17:26:30]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [17:26:30]wFMCommunicate OK [17:26:30]SAM_PROTO_GetShiftState done [17:26:30]FM_GetShiftState done [17:26:30]opened in 1715818916 [17:26:30]opened+sec_in_day 1715905316 [17:26:30]quantity*price = 50036 [17:26:30]sum+1 = 50037 [17:26:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 128 16.05.2024 17:26 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67530 ФПД: 180234232674692 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T172632&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67530&fm=180234232674692&tin=02508201610067®Number=0000000000091845&sum=50000 [17:26:32]StoreToDocumentArchive [17:26:32]shift 357 fd 67530 [17:26:32]save to /storage/0357/doc_00067530 [17:26:32]save last doc name /storage/0357/doc_00067530 to /storage/kkm_last_doc_name [17:26:32]save OK [17:26:32]Clear old archive folders... [17:26:32]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:26:32]tlvbuf is 0177E040 [17:26:32]SAM_PROTO_ClearQueue [17:26:32]wFMCommunicate request_size=4 [17:26:32]MH_SAM_APDU [17:26:32]CAPDU: 80 09 00 00 [17:26:32]Write to MH i2c: E2 08 00 31 19 80 09 00 00 00 00 00 00 BC [17:26:32]Write i2c OK [17:26:32]MH_I2C_Read... [17:26:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:32]Read from MH i2c: E2 [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: E2 03 00 [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: E2 03 00 31 19 00 90 00 BE [17:26:32]RAPDU: 90 00 [17:26:32]wFMCommunicate OK [17:26:32]SAM_PROTO_ClearQueue done [17:26:32]KKMCreateOFDPacket [17:26:32]OFDProtocolAddRootSTLVToBuf [17:26:32]FM_MakeSignedData [17:26:32]FM_MakeSignedData [17:26:32]SAM_PROTO_SignData [17:26:32]wFMCommunicate request_size=4 [17:26:32]MH_SAM_APDU [17:26:32]CAPDU: 80 0D 01 02 [17:26:32]Write to MH i2c: E2 08 00 32 19 80 0D 01 02 00 00 00 00 C4 [17:26:32]Write i2c OK [17:26:32]MH_I2C_Read... [17:26:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:32]Read from MH i2c: E2 [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: E2 03 00 [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: E2 03 00 32 19 00 90 00 BF [17:26:32]RAPDU: 90 00 [17:26:32]wFMCommunicate OK [17:26:32]wFMCommunicate request_size=255 [17:26:32]MH_SAM_APDU [17:26:32]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 80 00 00 00 F4 03 04 00 C8 41 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CA 07 01 00 35 04 06 00 [17:26:32]Write to MH i2c: E2 02 01 33 19 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 80 00 00 00 F4 03 04 00 C8 41 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CA 07 01 00 35 04 06 00 00 00 DF [17:26:32]Write i2c OK [17:26:32]MH_I2C_Read... [17:26:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:32]Read from MH i2c: E2 [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: E2 03 00 [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: E2 03 00 33 19 00 90 00 C0 [17:26:32]RAPDU: 90 00 [17:26:32]wFMCommunicate OK [17:26:32]wFMCommunicate request_size=11 [17:26:32]MH_SAM_APDU [17:26:32]CAPDU: 80 0D 02 02 06 A3 EC 0D 6A 39 84 [17:26:32]Write to MH i2c: E2 0E 00 34 19 80 0D 02 02 06 00 A3 EC 0D 6A 39 84 00 00 96 [17:26:32]Write i2c OK [17:26:32]MH_I2C_Read... [17:26:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:32]Read from MH i2c: E2 [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: E2 03 00 [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: E2 03 00 34 19 00 90 00 C1 [17:26:32]RAPDU: 90 00 [17:26:32]wFMCommunicate OK [17:26:32]wFMCommunicate request_size=4 [17:26:32]MH_SAM_APDU [17:26:32]CAPDU: 80 0D 03 02 [17:26:32]Write to MH i2c: E2 08 00 35 19 80 0D 03 02 00 00 00 00 C9 [17:26:32]OFD Sender: No OFD packet to send [17:26:32]Write i2c OK [17:26:32]MH_I2C_Read... [17:26:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:26:32]Read from MH i2c: E2 [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: E2 0B 00 [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: E2 0B 00 35 19 00 8D A2 1F FE C2 C6 DF D8 90 00 55 [17:26:32]RAPDU: 8D A2 1F FE C2 C6 DF D8 90 00 [17:26:32]wFMCommunicate OK [17:26:32]SAM_PROTO_SignData done [17:26:32]FM_MakeSignedData done [17:26:32]CreateOFDProtocolMessage [17:26:32]wFMCommunicate request_size=4 [17:26:32]MH_SAM_APDU [17:26:32]CAPDU: 80 11 00 00 [17:26:32]Write to MH i2c: E2 08 00 36 19 80 11 00 00 00 00 00 00 C9 [17:26:32]Write i2c OK [17:26:32]MH_I2C_Read... [17:26:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:32]Read from MH i2c: E2 [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: E2 17 00 [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: E2 17 00 36 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 1F [17:26:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:26:32]wFMCommunicate OK [17:26:32]CreateOFDProtocolMessage done [17:26:32]OFDSenderStorePacket 67530 [17:26:32]StoreOFDPacket docnum=67530 [17:26:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 4E A9 08 01 DC A7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 80 00 00 00 F4 03 04 00 C8 41 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CA 07 01 00 35 04 06 00 A3 EC 0D 6A 39 84 8D A2 1F FE C2 C6 DF D8 [17:26:32]CheckFolder [17:26:32]dirname=/storage/ofd_packets [17:26:32]CheckFolder done [17:26:32]ProducePacketName [17:26:32]name=ofd_packets/00067530 [17:26:32]NVStorageSaveData ofd_packets/00067530 [17:26:32]File name is /storage/ofd_packets/00067530 [17:26:32]Write 302 bytes [17:26:32]NVStorageSaveData done [17:26:32]OFDSenderStorePacket done [17:26:32]KKMCreateOFDPacket done [17:26:32]NVStorageSaveData kkm_last_timestamp [17:26:32]File name is /storage/kkm_last_timestamp [17:26:32]Write 4 bytes [17:26:32]NVStorageSaveData done [17:26:32]ExternCall_PrintAddStr [17:26:32]wPrintStart [17:26:32]Write to MH i2c: 01 00 00 37 19 50 [17:26:32]Write i2c OK [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: 01 [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: 01 07 00 [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: 01 07 00 37 19 00 00 00 00 00 FF 0F 65 [17:26:32]RasterBufferAndPrint [17:26:32]line Счет N : (1)507592 [17:26:32]line ИНН: 02508201610067 [17:26:32]line Контрольно-Кассовый Чек [17:26:32]line ПРОДАЖА [17:26:32]line ТРК (МРК, ГНК) : 12 [17:26:32]line Товар: 2710124130 [17:26:32]line Super-92-К-5 [17:26:32]line 7.380 * 67.80 [17:26:32]line = 500.36 [17:26:32]line НДС 12% НСП 1% [17:26:32]line > о реализуемом товаре [17:26:32]line ОКРУГЛЕНИЕ: -0.36 [17:26:33]line ИТОГО: 500.00 [17:26:33]line Внесено: 500.00 [17:26:33]line СДАЧА: 0.00 [17:26:33]line НСП 1% : 4.43 [17:26:33]line НДС 12% : 53.14 [17:26:33]line Наличными: 500.00 [17:26:33]line Безнал.: 0.00 [17:26:33]line Место: АЗС № 91 "Партнер Нефть" [17:26:33]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:26:33]line СНО: Общий режим [17:26:33]line Чек 128 16.05.2024 17:26 [17:26:33]line Смена: 357 ФФД: 1.0 [17:26:33]line ЗНМ: 0300000119 [17:26:33]line РНМ: 0000000000091845 [17:26:33]line Версия ККМ: 001 [17:26:33]line ФМ: 0000000000871829 [17:26:33]line ФД: 67530 [17:26:33]line ФПД: 180234232674692 [17:26:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T172632&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67530&fm=180234232674692&tin=02508201610067®Number=0000000000091845&sum=50000 [17:26:33]OFD Sender: Processing packet 67530 [packets to send 35, broken 34] [17:26:33]ProducePacketName [17:26:33]name=ofd_packets/00067530 [17:26:33]OFD Sender: To server: pG, [17:26:33]CommunicateWithHost lk.salyk.kg:30040 [17:26:33]ConnectInit lk.salyk.kg [17:26:33]written 0, free lines is 4095 [17:26:33]Connected sock=10 [17:26: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 38 32 39 10 01 00 00 4E A9 08 01 DC A7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 80 00 00 00 F4 03 04 00 C8 41 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CA 07 01 00 35 04 06 00 A3 EC 0D 6A 39 84 8D A2 1F FE C2 C6 DF D8 [17:26:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 C2 BB 47 00 26 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 38 32 39 10 04 04 00 CA 07 01 00 F4 03 04 00 A3 E9 45 66 B6 04 01 00 00 CB CE 13 89 11 C8 62 B8 [17:26:33]CommunicateWithHost err = 0 [17:26:33]CheckOFDResponse [17:26:33]1017 (14) - 77093643461234 [17:26:33]1041 (16) - 0000000000871829 [17:26:33]1040 (4) - 67530 [17:26:33]1012 (4) - 16.05.2024 11:10 [17:26:33]1206 (1) - 0 [17:26:33]OFD Sender: Remove packet 67530 [17:26:33]ProducePacketName [17:26:33]name=ofd_packets/00067530 [17:26:33]NVStorageDeleteData [17:26:33]Write to MH i2c: 01 00 00 61 19 7A [17:26:33]Write i2c OK [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: 01 [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: 01 07 00 [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: 01 07 00 61 19 00 00 00 00 00 DC 0C 69 [17:26:33]RasterBufferAndPrint [17:26:33]line [17:26:33]line [17:26:33]line [17:26:33]line [17:26:33]line [17:26:33]written 0, free lines is 3303 [17:26:33]MH_Cut [17:26:33]Write to MH i2c: D1 01 00 68 19 01 53 [17:26:33]Write i2c OK [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: D1 [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: D1 01 00 [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: D1 01 00 68 19 00 52 [17:26:33]Write to MH i2c: 01 00 00 69 19 82 [17:26:33]Write i2c OK [17:26:33]MH_I2C_Read... [17:26:34]OFD Sender: No OFD packet to send [17:26:34]*** Cut start [17:26:34]*** Purtial cut [17:26:34]*** Stage 1: CUTSNS_PIN = 1 [17:26:34]Read from MH i2c: 01 [17:26:34]MH_I2C_Read... [17:26:34]*** Stop cut motor [17:26:34]*** Cut end [17:26:34]Read from MH i2c: 01 07 00 [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: 01 07 00 69 19 00 00 00 00 00 FF 0F 97 [17:26:34]process_action close_receipt done [17:26:34]requested_data is exist [17:26:34]produce_requested_data [17:26:34]requested_item fm.sn is exist - process it [17:26:34]wFMCommunicate request_size=4 [17:26:34]MH_SAM_APDU [17:26:34]CAPDU: 80 11 00 00 [17:26:34]Write to MH i2c: E2 08 00 6A 19 80 11 00 00 00 00 00 00 FD [17:26:34]Write i2c OK [17:26:34]MH_I2C_Read... [17:26:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:34]Read from MH i2c: E2 [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: E2 17 00 [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: E2 17 00 6A 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 53 [17:26:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:26:34]wFMCommunicate OK [17:26:34]requested_item fd.num is exist - process it [17:26:34]SAM_PROTO_GetFieldsCounters [17:26:34]wFMCommunicate request_size=4 [17:26:34]MH_SAM_APDU [17:26:34]CAPDU: 80 13 00 00 [17:26:34]Write to MH i2c: E2 08 00 6B 19 80 13 00 00 00 00 00 00 00 [17:26:34]Write i2c OK [17:26:34]MH_I2C_Read... [17:26:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:34]Read from MH i2c: E2 [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: E2 62 00 [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: E2 62 00 6B 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CA 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [17:26: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CA 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:26:34]wFMCommunicate OK [17:26:34]SAM_PROTO_GetFieldsCounters done [17:26:34]requested_item shift.num is exist - process it [17:26:34]requested_item shift.opened is exist - process it [17:26:34]req_shift_opened [17:26:34]FM_GetShiftState [17:26:34]SAM_PROTO_GetShiftState [17:26:34]wFMCommunicate request_size=4 [17:26:34]MH_SAM_APDU [17:26:34]CAPDU: 80 13 01 00 [17:26:34]Write to MH i2c: E2 08 00 6C 19 80 13 01 00 00 00 00 00 02 [17:26:34]Write i2c OK [17:26:34]MH_I2C_Read... [17:26:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:35]Read from MH i2c: E2 [17:26:35]MH_I2C_Read... [17:26:35]Read from MH i2c: E2 0E 00 [17:26:35]MH_I2C_Read... [17:26:35]Read from MH i2c: E2 0E 00 6C 19 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 AE [17:26:35]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [17:26:35]wFMCommunicate OK [17:26:35]SAM_PROTO_GetShiftState done [17:26:35]FM_GetShiftState done [17:26:35]req_shift_opened done [17:26:35]requested_item shift.open_date is exist - process it [17:26:35]req_shift_open_date [17:26:35]req_shift_open_date done [17:26:35]produce_requested_data done [17:26:35]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67530,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [17:26:35]process_action_free close_receipt [17:26:35]json_value_free [17:26:35]json_value_free done [17:26:35]process_json_proto returns [17:26:35]Send response to host [17:26:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67530,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [17:26:35]free response buf [17:26:35]execute_script done [17:26:35]execute_script returns [17:26:35]free content buf [17:26:35]Sock 9.Close socket [17:26:35]Sock 9.Thread stoped [17:26:39]OFD Sender: No OFD packet to send [17:26:44]OFD Sender: No OFD packet to send [17:26:49]OFD Sender: No OFD packet to send [17:26:54]OFD Sender: No OFD packet to send [17:26:59]OFD Sender: No OFD packet to send [17:27:04]OFD Sender: No OFD packet to send [17:27:09]OFD Sender: No OFD packet to send [17:27:14]OFD Sender: No OFD packet to send [17:27:19]OFD Sender: No OFD packet to send [17:27:24]OFD Sender: No OFD packet to send [17:27:29]OFD Sender: No OFD packet to send [17:27:34]OFD Sender: No OFD packet to send [17:27:39]OFD Sender: No OFD packet to send [17:27:44]OFD Sender: No OFD packet to send [17:27:49]OFD Sender: No OFD packet to send [17:27:54]OFD Sender: No OFD packet to send [17:27:59]OFD Sender: No OFD packet to send [17:28:04]OFD Sender: No OFD packet to send [17:28:09]OFD Sender: No OFD packet to send [17:28:14]OFD Sender: No OFD packet to send [17:28:19]OFD Sender: No OFD packet to send [17:28:24]OFD Sender: No OFD packet to send [17:28:29]OFD Sender: No OFD packet to send [17:28:34]OFD Sender: No OFD packet to send [17:28:39]OFD Sender: No OFD packet to send [17:28:44]OFD Sender: No OFD packet to send [17:28:49]OFD Sender: No OFD packet to send [17:28:54]OFD Sender: No OFD packet to send [17:28:59]OFD Sender: No OFD packet to send [17:29:04]OFD Sender: No OFD packet to send [17:29:09]OFD Sender: No OFD packet to send [17:29:14]OFD Sender: No OFD packet to send [17:29:19]OFD Sender: No OFD packet to send [17:29:24]OFD Sender: No OFD packet to send [17:29:29]OFD Sender: No OFD packet to send [17:29:34]OFD Sender: No OFD packet to send [17:29:39]OFD Sender: No OFD packet to send [17:29:44]OFD Sender: No OFD packet to send [17:29:49]OFD Sender: No OFD packet to send [17:29:54]OFD Sender: No OFD packet to send [17:29:59]OFD Sender: No OFD packet to send [17:30:04]OFD Sender: No OFD packet to send [17:30:09]OFD Sender: No OFD packet to send [17:30:14]OFD Sender: No OFD packet to send [17:30:19]OFD Sender: No OFD packet to send [17:30:24]OFD Sender: No OFD packet to send [17:30:29]OFD Sender: No OFD packet to send [17:30:34]OFD Sender: No OFD packet to send [17:30:39]OFD Sender: No OFD packet to send [17:30:44]OFD Sender: No OFD packet to send [17:30:49]OFD Sender: No OFD packet to send [17:30:54]OFD Sender: No OFD packet to send [17:30:59]OFD Sender: No OFD packet to send [17:31:04]OFD Sender: No OFD packet to send [17:31:09]OFD Sender: No OFD packet to send [17:31:14]OFD Sender: No OFD packet to send [17:31:19]OFD Sender: No OFD packet to send [17:31:24]OFD Sender: No OFD packet to send [17:31:29]OFD Sender: No OFD packet to send [17:31:34]OFD Sender: No OFD packet to send [17:31:39]OFD Sender: No OFD packet to send [17:31:44]OFD Sender: No OFD packet to send [17:31:49]OFD Sender: No OFD packet to send [17:31:54]OFD Sender: No OFD packet to send [17:31:59]OFD Sender: No OFD packet to send [17:32:04]OFD Sender: No OFD packet to send [17:32:09]OFD Sender: No OFD packet to send [17:32:14]OFD Sender: No OFD packet to send [17:32:19]OFD Sender: No OFD packet to send [17:32:24]OFD Sender: No OFD packet to send [17:32:29]OFD Sender: No OFD packet to send [17:32:34]OFD Sender: No OFD packet to send [17:32:39]OFD Sender: No OFD packet to send [17:32:44]OFD Sender: No OFD packet to send [17:32:49]OFD Sender: No OFD packet to send [17:32:54]OFD Sender: No OFD packet to send [17:32:59]OFD Sender: No OFD packet to send [17:33:04]OFD Sender: No OFD packet to send [17:33:09]OFD Sender: No OFD packet to send [17:33:09]accept exits with 8 [17:33:09]New connection [17:33:09]New thread 3067182436 created [17:33:09]Thread 3067039076 joined [17:33:09]Waiting for new connection... [17:33:09] Sock 8.Parse request [17:33:09]Sock 8.Check first char [17:33:09]Sock 8.First char is OK [17:33:09]request: POST /json_proto HTTP/1.0 [17:33:09]Method: POST [17:33:09]URL: /json_proto [17:33:09]Method is POST - this is cgi request [17:33:09]url: /json_proto [17:33:09]query_string will be loaded in cgi processing [17:33:09]execute_cgi json_proto POST (null) [17:33:09]execute_cgi path=json_proto method=POST [17:33:09]POST find Content-Length [17:33:09]Host: 172.17.41.195:8080 [17:33:09]Content-Length: 800 [17:33:09]Content-Type: application/json [17:33:09] [17:33:09]POST finish read [17:33:09]Found Content-Length = 800 [17:33:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507593", "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" : 74.70, "quantity" : 26.780, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:09]execute_script... [17:33: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)507593", "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" : 74.70, "quantity" : 26.780, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:09]POST & json_proto [17:33:09]process_json_proto [17:33:09]json parsed OK: [17:33:09]protocol is kg_v1.0 [17:33:09]action value=close_receipt [17:33:09]process_action close_receipt [17:33:09]cmd_close_receipt [17:33:09]MH_GetDate [17:33:09]Write to MH i2c: F0 00 00 6D 19 75 [17:33:09]Write i2c OK [17:33:09]MH_I2C_Read... [17:33:09]Read from MH i2c: F0 [17:33:09]MH_I2C_Read... [17:33:09]Read from MH i2c: F0 09 00 [17:33:09]MH_I2C_Read... [17:33:09]Read from MH i2c: F0 09 00 6D 19 00 57 43 46 66 FC 21 6F 64 B4 [17:33:09]GetLastDocTimeStamp 1715880392 [17:33:09]current date 1715880791 [17:33:09]FM_GetShiftState [17:33:09]SAM_PROTO_GetShiftState [17:33:09]wFMCommunicate request_size=4 [17:33:09]MH_SAM_APDU [17:33:09]CAPDU: 80 13 01 00 [17:33:09]Write to MH i2c: E2 08 00 6E 19 80 13 01 00 00 00 00 00 04 [17:33:09]Write i2c OK [17:33:09]MH_I2C_Read... [17:33:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:10]Read from MH i2c: E2 [17:33:10]MH_I2C_Read... [17:33:10]Read from MH i2c: E2 0E 00 [17:33:10]MH_I2C_Read... [17:33:10]Read from MH i2c: E2 0E 00 6E 19 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 B0 [17:33:10]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [17:33:10]wFMCommunicate OK [17:33:10]SAM_PROTO_GetShiftState done [17:33:10]FM_GetShiftState done [17:33:10]opened in 1715818916 [17:33:10]opened+sec_in_day 1715905316 [17:33:10]quantity*price = 200046 [17:33:10]sum+1 = 200048 [17:33:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.47 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 0.00 Безнал.: 2000.47 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 129 16.05.2024 17:33 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67531 ФПД: 114436892529909 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T173311&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67531&fm=114436892529909&tin=02508201610067®Number=0000000000091845&sum=200047 [17:33:11]StoreToDocumentArchive [17:33:11]shift 357 fd 67531 [17:33:11]save to /storage/0357/doc_00067531 [17:33:11]save last doc name /storage/0357/doc_00067531 to /storage/kkm_last_doc_name [17:33:11]save OK [17:33:11]Clear old archive folders... [17:33:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:33:11]tlvbuf is 01801C00 [17:33:11]SAM_PROTO_ClearQueue [17:33:11]wFMCommunicate request_size=4 [17:33:11]MH_SAM_APDU [17:33:11]CAPDU: 80 09 00 00 [17:33:11]Write to MH i2c: E2 08 00 7B 19 80 09 00 00 00 00 00 00 06 [17:33:11]Write i2c OK [17:33:11]MH_I2C_Read... [17:33:11]Read from MH i2c: E2 [17:33:11]MH_I2C_Read... [17:33:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:33:11]Read from MH i2c: E2 03 00 [17:33:11]MH_I2C_Read... [17:33:11]Read from MH i2c: E2 03 00 7B 19 00 90 00 08 [17:33:11]RAPDU: 90 00 [17:33:11]wFMCommunicate OK [17:33:11]SAM_PROTO_ClearQueue done [17:33:11]KKMCreateOFDPacket [17:33:11]OFDProtocolAddRootSTLVToBuf [17:33:11]FM_MakeSignedData [17:33:11]FM_MakeSignedData [17:33:11]SAM_PROTO_SignData [17:33:11]wFMCommunicate request_size=4 [17:33:11]MH_SAM_APDU [17:33:11]CAPDU: 80 0D 01 02 [17:33:11]Write to MH i2c: E2 08 00 7C 19 80 0D 01 02 00 00 00 00 0E [17:33:11]Write i2c OK [17:33:11]MH_I2C_Read... [17:33:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:33:11]Read from MH i2c: E2 [17:33:11]MH_I2C_Read... [17:33:11]Read from MH i2c: E2 03 00 [17:33:11]MH_I2C_Read... [17:33:11]Read from MH i2c: E2 03 00 7C 19 00 90 00 09 [17:33:11]RAPDU: 90 00 [17:33:11]wFMCommunicate OK [17:33:11]wFMCommunicate request_size=255 [17:33:11]MH_SAM_APDU [17:33: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 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 57 43 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CB 07 01 00 35 04 06 00 68 14 6A 54 [17:33:11]Write to MH i2c: E2 02 01 7D 19 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 57 43 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CB 07 01 00 35 04 06 00 68 14 6A 54 00 00 B4 [17:33:11]Write i2c OK [17:33:11]MH_I2C_Read... [17:33:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:11]Read from MH i2c: E2 [17:33:11]MH_I2C_Read... [17:33:11]Read from MH i2c: E2 03 00 [17:33:11]MH_I2C_Read... [17:33:11]Read from MH i2c: E2 03 00 7D 19 00 90 00 0A [17:33:11]RAPDU: 90 00 [17:33:11]wFMCommunicate OK [17:33:11]wFMCommunicate request_size=7 [17:33:11]MH_SAM_APDU [17:33:11]CAPDU: 80 0D 02 02 02 14 F5 [17:33:11]Write to MH i2c: E2 0A 00 7E 19 80 0D 02 02 02 00 14 F5 00 00 1E [17:33:11]Write i2c OK [17:33:11]MH_I2C_Read... [17:33:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:11]Read from MH i2c: E2 [17:33:11]MH_I2C_Read... [17:33:11]Read from MH i2c: E2 03 00 [17:33:11]MH_I2C_Read... [17:33:11]Read from MH i2c: E2 03 00 7E 19 00 90 00 0B [17:33:11]RAPDU: 90 00 [17:33:11]wFMCommunicate OK [17:33:11]wFMCommunicate request_size=4 [17:33:11]MH_SAM_APDU [17:33:11]CAPDU: 80 0D 03 02 [17:33:11]Write to MH i2c: E2 08 00 7F 19 80 0D 03 02 00 00 00 00 13 [17:33:11]Write i2c OK [17:33:11]MH_I2C_Read... [17:33:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:33:11]Read from MH i2c: E2 [17:33:11]MH_I2C_Read... [17:33:11]Read from MH i2c: E2 0B 00 [17:33:11]MH_I2C_Read... [17:33:11]Read from MH i2c: E2 0B 00 7F 19 00 70 E6 E8 CD 9E 8C 7D B1 90 00 77 [17:33:11]RAPDU: 70 E6 E8 CD 9E 8C 7D B1 90 00 [17:33:11]wFMCommunicate OK [17:33:11]SAM_PROTO_SignData done [17:33:11]FM_MakeSignedData done [17:33:11]CreateOFDProtocolMessage [17:33:11]wFMCommunicate request_size=4 [17:33:11]MH_SAM_APDU [17:33:11]CAPDU: 80 11 00 00 [17:33:11]Write to MH i2c: E2 08 00 80 19 80 11 00 00 00 00 00 00 13 [17:33:11]Write i2c OK [17:33:11]MH_I2C_Read... [17:33:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:11]Read from MH i2c: E2 [17:33:11]MH_I2C_Read... [17:33:11]Read from MH i2c: E2 17 00 [17:33:11]MH_I2C_Read... [17:33:11]Read from MH i2c: E2 17 00 80 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 69 [17:33:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:33:11]wFMCommunicate OK [17:33:11]CreateOFDProtocolMessage done [17:33:11]OFDSenderStorePacket 67531 [17:33:11]StoreOFDPacket docnum=67531 [17:33:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 C3 F8 04 01 B6 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 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 57 43 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CB 07 01 00 35 04 06 00 68 14 6A 54 14 F5 70 E6 E8 CD 9E 8C 7D B1 [17:33:11]CheckFolder [17:33:11]dirname=/storage/ofd_packets [17:33:11]CheckFolder done [17:33:11]ProducePacketName [17:33:11]name=ofd_packets/00067531 [17:33:11]NVStorageSaveData ofd_packets/00067531 [17:33:11]File name is /storage/ofd_packets/00067531 [17:33:11]Write 298 bytes [17:33:11]NVStorageSaveData done [17:33:11]OFDSenderStorePacket done [17:33:11]KKMCreateOFDPacket done [17:33:11]NVStorageSaveData kkm_last_timestamp [17:33:11]File name is /storage/kkm_last_timestamp [17:33:11]Write 4 bytes [17:33:11]NVStorageSaveData done [17:33:11]ExternCall_PrintAddStr [17:33:11]wPrintStart [17:33:11]Write to MH i2c: 01 00 00 81 19 9A [17:33:11]Write i2c OK [17:33:11]MH_I2C_Read... [17:33:11]Read from MH i2c: 01 [17:33:11]MH_I2C_Read... [17:33:11]Read from MH i2c: 01 07 00 [17:33:11]MH_I2C_Read... [17:33:11]Read from MH i2c: 01 07 00 81 19 00 00 00 00 00 FF 0F AF [17:33:11]RasterBufferAndPrint [17:33:11]line Счет N : (1)507593 [17:33:11]line ИНН: 02508201610067 [17:33:11]line Контрольно-Кассовый Чек [17:33:11]line ПРОДАЖА [17:33:11]line ТРК (МРК, ГНК) : 31 [17:33:11]line Товар: 2710194210 [17:33:11]line ДТ-К-5 [17:33:11]line 26.780 * 74.70 [17:33:11]line = 2000.47 [17:33:11]line НДС 12% НСП 1% [17:33:11]line > о реализуемом товаре [17:33:11]line ИТОГО: 2000.47 [17:33:11]line НСП 1% : 17.70 [17:33:11]line НДС 12% : 212.44 [17:33:11]line Наличными: 0.00 [17:33:11]line Безнал.: 2000.47 [17:33:11]line Место: АЗС № 91 "Партнер Нефть" [17:33:11]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:33:11]line СНО: Общий режим [17:33:11]line Чек 129 16.05.2024 17:33 [17:33:11]line Смена: 357 ФФД: 1.0 [17:33:11]line ЗНМ: 0300000119 [17:33:11]line РНМ: 0000000000091845 [17:33:11]line Версия ККМ: 001 [17:33:11]line Платежная система: O! деньги [17:33:11]line ФМ: 0000000000871829 [17:33:11]line ФД: 67531 [17:33:11]line ФПД: 114436892529909 [17:33:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T173311&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67531&fm=114436892529909&tin=02508201610067®Number=0000000000091845&sum=200047 [17:33:11]OFD Sender: Processing packet 67531 [packets to send 35, broken 34] [17:33:11]ProducePacketName [17:33:11]name=ofd_packets/00067531 [17:33:11]OFD Sender: To server: pG, [17:33:11]CommunicateWithHost lk.salyk.kg:30040 [17:33:11]ConnectInit lk.salyk.kg [17:33:11]written 0, free lines is 4095 [17:33:12]Connected sock=10 [17:33: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 38 32 39 0C 01 00 00 C3 F8 04 01 B6 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 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 57 43 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CB 07 01 00 35 04 06 00 68 14 6A 54 14 F5 70 E6 E8 CD 9E 8C 7D B1 [17:33:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 AC 40 47 00 D4 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 38 32 39 10 04 04 00 CB 07 01 00 F4 03 04 00 31 EB 45 66 B6 04 01 00 00 FA A9 57 2D 08 D6 18 FC [17:33:12]CommunicateWithHost err = 0 [17:33:12]CheckOFDResponse [17:33:12]1017 (14) - 77093643461234 [17:33:12]1041 (16) - 0000000000871829 [17:33:12]1040 (4) - 67531 [17:33:12]1012 (4) - 16.05.2024 11:17 [17:33:12]1206 (1) - 0 [17:33:12]OFD Sender: Remove packet 67531 [17:33:12]ProducePacketName [17:33:12]name=ofd_packets/00067531 [17:33:12]NVStorageDeleteData [17:33:12]Write to MH i2c: 01 00 00 AA 19 C3 [17:33:12]Write i2c OK [17:33:12]MH_I2C_Read... [17:33:12]Read from MH i2c: 01 [17:33:12]MH_I2C_Read... [17:33:12]Read from MH i2c: 01 07 00 [17:33:12]MH_I2C_Read... [17:33:12]Read from MH i2c: 01 07 00 AA 19 00 00 00 00 00 EA 0C C0 [17:33:12]RasterBufferAndPrint [17:33:12]line [17:33:12]line [17:33:12]line [17:33:12]line [17:33:12]line [17:33:12]written 0, free lines is 3312 [17:33:12]MH_Cut [17:33:12]Write to MH i2c: D1 01 00 B1 19 01 9C [17:33:12]Write i2c OK [17:33:12]MH_I2C_Read... [17:33:12]Read from MH i2c: D1 [17:33:12]MH_I2C_Read... [17:33:12]Read from MH i2c: D1 01 00 [17:33:12]MH_I2C_Read... [17:33:12]Read from MH i2c: D1 01 00 B1 19 00 9B [17:33:12]Write to MH i2c: 01 00 00 B2 19 CB [17:33:12]Write i2c OK [17:33:12]MH_I2C_Read... [17:33:12]OFD Sender: No OFD packet to send [17:33:13]*** Cut start [17:33:13]*** Purtial cut [17:33:13]*** CUTSNS_PIN = 0 [17:33:13]*** Stage 1: CUTSNS_PIN = 1 [17:33:15]Read from MH i2c: 01 [17:33:15]MH_I2C_Read... [17:33:15]*** Stop cut motor [17:33:15]*** Cut end [17:33:15]Read from MH i2c: 01 07 00 [17:33:15]MH_I2C_Read... [17:33:15]Read from MH i2c: 01 07 00 B2 19 00 00 00 00 00 FF 0F E0 [17:33:15]process_action close_receipt done [17:33:15]requested_data is exist [17:33:15]produce_requested_data [17:33:15]requested_item fm.sn is exist - process it [17:33:15]wFMCommunicate request_size=4 [17:33:15]MH_SAM_APDU [17:33:15]CAPDU: 80 11 00 00 [17:33:15]Write to MH i2c: E2 08 00 B3 19 80 11 00 00 00 00 00 00 46 [17:33:15]Write i2c OK [17:33:15]MH_I2C_Read... [17:33:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:15]Read from MH i2c: E2 [17:33:15]MH_I2C_Read... [17:33:15]Read from MH i2c: E2 17 00 [17:33:15]MH_I2C_Read... [17:33:15]Read from MH i2c: E2 17 00 B3 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 9C [17:33:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:33:15]wFMCommunicate OK [17:33:15]requested_item fd.num is exist - process it [17:33:15]SAM_PROTO_GetFieldsCounters [17:33:15]wFMCommunicate request_size=4 [17:33:15]MH_SAM_APDU [17:33:15]CAPDU: 80 13 00 00 [17:33:15]Write to MH i2c: E2 08 00 B4 19 80 13 00 00 00 00 00 00 49 [17:33:15]Write i2c OK [17:33:15]MH_I2C_Read... [17:33:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:33:15]Read from MH i2c: E2 [17:33:15]MH_I2C_Read... [17:33:15]Read from MH i2c: E2 62 00 [17:33:15]MH_I2C_Read... [17:33:15]Read from MH i2c: E2 62 00 B4 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CB 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [17:33:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CB 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:33:15]wFMCommunicate OK [17:33:15]SAM_PROTO_GetFieldsCounters done [17:33:15]requested_item shift.num is exist - process it [17:33:15]requested_item shift.opened is exist - process it [17:33:15]req_shift_opened [17:33:15]FM_GetShiftState [17:33:15]SAM_PROTO_GetShiftState [17:33:15]wFMCommunicate request_size=4 [17:33:15]MH_SAM_APDU [17:33:15]CAPDU: 80 13 01 00 [17:33:15]Write to MH i2c: E2 08 00 B5 19 80 13 01 00 00 00 00 00 4B [17:33:15]Write i2c OK [17:33:15]MH_I2C_Read... [17:33:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:15]Read from MH i2c: E2 [17:33:15]MH_I2C_Read... [17:33:15]Read from MH i2c: E2 0E 00 [17:33:15]MH_I2C_Read... [17:33:15]Read from MH i2c: E2 0E 00 B5 19 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 F7 [17:33:15]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [17:33:15]wFMCommunicate OK [17:33:15]SAM_PROTO_GetShiftState done [17:33:15]FM_GetShiftState done [17:33:15]req_shift_opened done [17:33:15]requested_item shift.open_date is exist - process it [17:33:15]req_shift_open_date [17:33:15]req_shift_open_date done [17:33:15]produce_requested_data done [17:33:15]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67531,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [17:33:15]process_action_free close_receipt [17:33:15]json_value_free [17:33:15]json_value_free done [17:33:15]process_json_proto returns [17:33:15]Send response to host [17:33:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67531,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [17:33:15]free response buf [17:33:15]execute_script done [17:33:15]execute_script returns [17:33:15]free content buf [17:33:15]Sock 8.Close socket [17:33:15]Sock 8.Thread stoped [17:33:17]OFD Sender: No OFD packet to send [17:33:22]OFD Sender: No OFD packet to send [17:33:27]OFD Sender: No OFD packet to send [17:33:32]OFD Sender: No OFD packet to send [17:33:37]OFD Sender: No OFD packet to send [17:33:42]OFD Sender: No OFD packet to send [17:33:47]OFD Sender: No OFD packet to send [17:33:52]OFD Sender: No OFD packet to send [17:33:57]OFD Sender: No OFD packet to send [17:34:02]OFD Sender: No OFD packet to send [17:34:07]OFD Sender: No OFD packet to send [17:34:12]OFD Sender: No OFD packet to send [17:34:17]OFD Sender: No OFD packet to send [17:34:22]OFD Sender: No OFD packet to send [17:34:27]OFD Sender: No OFD packet to send [17:34:32]OFD Sender: No OFD packet to send [17:34:37]OFD Sender: No OFD packet to send [17:34:42]OFD Sender: No OFD packet to send [17:34:47]OFD Sender: No OFD packet to send [17:34:52]OFD Sender: No OFD packet to send [17:34:57]OFD Sender: No OFD packet to send [17:35:02]OFD Sender: No OFD packet to send [17:35:07]OFD Sender: No OFD packet to send [17:35:12]OFD Sender: No OFD packet to send [17:35:17]OFD Sender: No OFD packet to send [17:35:22]OFD Sender: No OFD packet to send [17:35:27]OFD Sender: No OFD packet to send [17:35:32]OFD Sender: No OFD packet to send [17:35:37]OFD Sender: No OFD packet to send [17:35:42]OFD Sender: No OFD packet to send [17:35:47]OFD Sender: No OFD packet to send [17:35:52]OFD Sender: No OFD packet to send [17:35:57]OFD Sender: No OFD packet to send [17:36:02]OFD Sender: No OFD packet to send [17:36:07]OFD Sender: No OFD packet to send [17:36:12]OFD Sender: No OFD packet to send [17:36:17]OFD Sender: No OFD packet to send [17:36:22]OFD Sender: No OFD packet to send [17:36:27]OFD Sender: No OFD packet to send [17:36:32]OFD Sender: No OFD packet to send [17:36:37]OFD Sender: No OFD packet to send [17:36:42]OFD Sender: No OFD packet to send [17:36:47]OFD Sender: No OFD packet to send [17:36:52]OFD Sender: No OFD packet to send [17:36:57]OFD Sender: No OFD packet to send [17:37:02]OFD Sender: No OFD packet to send [17:37:07]OFD Sender: No OFD packet to send [17:37:12]OFD Sender: No OFD packet to send [17:37:17]OFD Sender: No OFD packet to send [17:37:22]OFD Sender: No OFD packet to send [17:37:27]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:23]OFD Sender: No OFD packet to send [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:23]OFD Sender: No OFD packet to send [17:39:28]OFD Sender: No OFD packet to send [17:39:33]OFD Sender: No OFD packet to send [17:39:38]OFD Sender: No OFD packet to send [17:39:39]accept exits with 9 [17:39:39]New connection [17:39:39]New thread 3067039076 created [17:39:39]Thread 3067182436 joined [17:39:39]Waiting for new connection... [17:39:39] Sock 9.Parse request [17:39:39]Sock 9.Check first char [17:39:39]Sock 9.First char is OK [17:39:39]request: POST /json_proto HTTP/1.0 [17:39:39]Method: POST [17:39:39]URL: /json_proto [17:39:39]Method is POST - this is cgi request [17:39:39]url: /json_proto [17:39:39]query_string will be loaded in cgi processing [17:39:39]execute_cgi json_proto POST (null) [17:39:39]execute_cgi path=json_proto method=POST [17:39:39]POST find Content-Length [17:39:39]Host: 172.17.41.195:8080 [17:39:39]Content-Length: 816 [17:39:39]Content-Type: application/json [17:39:39] [17:39:39]POST finish read [17:39:39]Found Content-Length = 816 [17:39:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507594", "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.80, "quantity" : 7.490, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:39]execute_script... [17:39: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)507594", "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.80, "quantity" : 7.490, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:39]POST & json_proto [17:39:39]process_json_proto [17:39:39]json parsed OK: [17:39:39]protocol is kg_v1.0 [17:39:39]action value=close_receipt [17:39:39]process_action close_receipt [17:39:39]cmd_close_receipt [17:39:39]MH_GetDate [17:39:39]Write to MH i2c: F0 00 00 B6 19 BE [17:39:39]Write i2c OK [17:39:39]MH_I2C_Read... [17:39:39]Read from MH i2c: F0 [17:39:39]MH_I2C_Read... [17:39:39]Read from MH i2c: F0 09 00 [17:39:39]MH_I2C_Read... [17:39:39]Read from MH i2c: F0 09 00 B6 19 00 DD 44 46 66 FC 21 6F 64 84 [17:39:39]GetLastDocTimeStamp 1715880791 [17:39:39]current date 1715881181 [17:39:39]FM_GetShiftState [17:39:39]SAM_PROTO_GetShiftState [17:39:39]wFMCommunicate request_size=4 [17:39:39]MH_SAM_APDU [17:39:39]CAPDU: 80 13 01 00 [17:39:39]Write to MH i2c: E2 08 00 B7 19 80 13 01 00 00 00 00 00 4D [17:39:39]Write i2c OK [17:39:39]MH_I2C_Read... [17:39:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:39]Read from MH i2c: E2 [17:39:39]MH_I2C_Read... [17:39:39]Read from MH i2c: E2 0E 00 [17:39:39]MH_I2C_Read... [17:39:39]Read from MH i2c: E2 0E 00 B7 19 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 F9 [17:39:39]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [17:39:39]wFMCommunicate OK [17:39:39]SAM_PROTO_GetShiftState done [17:39:39]FM_GetShiftState done [17:39:39]opened in 1715818916 [17:39:39]opened+sec_in_day 1715905316 [17:39:39]quantity*price = 50033 [17:39:39]sum+1 = 50034 [17:39:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.33 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 0.00 Безнал.: 500.33 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 130 16.05.2024 17:39 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67532 ФПД: 91655943021267 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T173941&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67532&fm=91655943021267&tin=02508201610067®Number=0000000000091845&sum=50033 [17:39:40]StoreToDocumentArchive [17:39:40]shift 357 fd 67532 [17:39:40]save to /storage/0357/doc_00067532 [17:39:40]save last doc name /storage/0357/doc_00067532 to /storage/kkm_last_doc_name [17:39:40]save OK [17:39:40]Clear old archive folders... [17:39:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:39:40]tlvbuf is 017E8630 [17:39:40]SAM_PROTO_ClearQueue [17:39:40]wFMCommunicate request_size=4 [17:39:40]MH_SAM_APDU [17:39:40]CAPDU: 80 09 00 00 [17:39:40]Write to MH i2c: E2 08 00 C4 19 80 09 00 00 00 00 00 00 4F [17:39:40]Write i2c OK [17:39:40]MH_I2C_Read... [17:39:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:39:40]Read from MH i2c: E2 [17:39:40]MH_I2C_Read... [17:39:40]Read from MH i2c: E2 03 00 [17:39:40]MH_I2C_Read... [17:39:40]Read from MH i2c: E2 03 00 C4 19 00 90 00 51 [17:39:40]RAPDU: 90 00 [17:39:40]wFMCommunicate OK [17:39:40]SAM_PROTO_ClearQueue done [17:39:40]KKMCreateOFDPacket [17:39:40]OFDProtocolAddRootSTLVToBuf [17:39:40]FM_MakeSignedData [17:39:40]FM_MakeSignedData [17:39:40]SAM_PROTO_SignData [17:39:40]wFMCommunicate request_size=4 [17:39:40]MH_SAM_APDU [17:39:40]CAPDU: 80 0D 01 02 [17:39:40]Write to MH i2c: E2 08 00 C5 19 80 0D 01 02 00 00 00 00 57 [17:39:40]Write i2c OK [17:39:40]MH_I2C_Read... [17:39:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:39:40]Read from MH i2c: E2 [17:39:40]MH_I2C_Read... [17:39:40]Read from MH i2c: E2 03 00 [17:39:40]MH_I2C_Read... [17:39:40]Read from MH i2c: E2 03 00 C5 19 00 90 00 52 [17:39:40]RAPDU: 90 00 [17:39:40]wFMCommunicate OK [17:39:40]wFMCommunicate request_size=255 [17:39:40]MH_SAM_APDU [17:39: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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 DD 44 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CC 07 01 00 35 04 06 00 53 [17:39:40]Write to MH i2c: E2 02 01 C6 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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 DD 44 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CC 07 01 00 35 04 06 00 53 00 00 00 [17:39:40]Write i2c OK [17:39:40]MH_I2C_Read... [17:39:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:41]Read from MH i2c: E2 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: E2 03 00 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: E2 03 00 C6 19 00 90 00 53 [17:39:41]RAPDU: 90 00 [17:39:41]wFMCommunicate OK [17:39:41]wFMCommunicate request_size=10 [17:39:41]MH_SAM_APDU [17:39:41]CAPDU: 80 0D 02 02 05 5C 4F EC E2 D3 [17:39:41]Write to MH i2c: E2 0D 00 C7 19 80 0D 02 02 05 00 5C 4F EC E2 D3 00 00 B0 [17:39:41]Write i2c OK [17:39:41]MH_I2C_Read... [17:39:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:41]Read from MH i2c: E2 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: E2 03 00 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: E2 03 00 C7 19 00 90 00 54 [17:39:41]RAPDU: 90 00 [17:39:41]wFMCommunicate OK [17:39:41]wFMCommunicate request_size=4 [17:39:41]MH_SAM_APDU [17:39:41]CAPDU: 80 0D 03 02 [17:39:41]Write to MH i2c: E2 08 00 C8 19 80 0D 03 02 00 00 00 00 5C [17:39:41]Write i2c OK [17:39:41]MH_I2C_Read... [17:39:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:39:41]Read from MH i2c: E2 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: E2 0B 00 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: E2 0B 00 C8 19 00 E1 5B 82 6B 9D E8 D4 E0 90 00 BF [17:39:41]RAPDU: E1 5B 82 6B 9D E8 D4 E0 90 00 [17:39:41]wFMCommunicate OK [17:39:41]SAM_PROTO_SignData done [17:39:41]FM_MakeSignedData done [17:39:41]CreateOFDProtocolMessage [17:39:41]wFMCommunicate request_size=4 [17:39:41]MH_SAM_APDU [17:39:41]CAPDU: 80 11 00 00 [17:39:41]Write to MH i2c: E2 08 00 C9 19 80 11 00 00 00 00 00 00 5C [17:39:41]Write i2c OK [17:39:41]MH_I2C_Read... [17:39:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:41]Read from MH i2c: E2 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: E2 17 00 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: E2 17 00 C9 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B2 [17:39:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:39:41]wFMCommunicate OK [17:39:41]CreateOFDProtocolMessage done [17:39:41]OFDSenderStorePacket 67532 [17:39:41]StoreOFDPacket docnum=67532 [17:39:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 7E B3 07 01 84 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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 DD 44 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CC 07 01 00 35 04 06 00 53 5C 4F EC E2 D3 E1 5B 82 6B 9D E8 D4 E0 [17:39:41]CheckFolder [17:39:41]dirname=/storage/ofd_packets [17:39:41]CheckFolder done [17:39:41]ProducePacketName [17:39:41]name=ofd_packets/00067532 [17:39:41]NVStorageSaveData ofd_packets/00067532 [17:39:41]File name is /storage/ofd_packets/00067532 [17:39:41]Write 301 bytes [17:39:41]NVStorageSaveData done [17:39:41]OFDSenderStorePacket done [17:39:41]KKMCreateOFDPacket done [17:39:41]NVStorageSaveData kkm_last_timestamp [17:39:41]File name is /storage/kkm_last_timestamp [17:39:41]Write 4 bytes [17:39:41]NVStorageSaveData done [17:39:41]ExternCall_PrintAddStr [17:39:41]wPrintStart [17:39:41]Write to MH i2c: 01 00 00 CA 19 E3 [17:39:41]Write i2c OK [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: 01 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: 01 07 00 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: 01 07 00 CA 19 00 00 00 00 00 FF 0F F8 [17:39:41]RasterBufferAndPrint [17:39:41]line Счет N : (1)507594 [17:39:41]line ИНН: 02508201610067 [17:39:41]line Контрольно-Кассовый Чек [17:39:41]line ПРОДАЖА [17:39:41]line ТРК (МРК, ГНК) : 33 [17:39:41]line Товар: 2710124130 [17:39:41]line Аи-92-К-5 [17:39:41]line 7.490 * 66.80 [17:39:41]line = 500.33 [17:39:41]line НДС 12% НСП 1% [17:39:41]line > о реализуемом товаре [17:39:41]line ИТОГО: 500.33 [17:39:41]line НСП 1% : 4.43 [17:39:41]line НДС 12% : 53.13 [17:39:41]line Наличными: 0.00 [17:39:41]line Безнал.: 500.33 [17:39:41]line Место: АЗС № 91 "Партнер Нефть" [17:39:41]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:39:41]line СНО: Общий режим [17:39:41]line Чек 130 16.05.2024 17:39 [17:39:41]line Смена: 357 ФФД: 1.0 [17:39:41]line ЗНМ: 0300000119 [17:39:41]line РНМ: 0000000000091845 [17:39:41]line Версия ККМ: 001 [17:39:41]line Платежная система: Бакай Банк [17:39:41]line ФМ: 0000000000871829 [17:39:41]line ФД: 67532 [17:39:41]line ФПД: 91655943021267 [17:39:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T173941&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67532&fm=91655943021267&tin=02508201610067®Number=0000000000091845&sum=50033 [17:39:41]OFD Sender: Processing packet 67532 [packets to send 35, broken 34] [17:39:41]ProducePacketName [17:39:41]name=ofd_packets/00067532 [17:39:41]OFD Sender: To server: pG, [17:39:41]CommunicateWithHost lk.salyk.kg:30040 [17:39:41]ConnectInit lk.salyk.kg [17:39:41]written 0, free lines is 4095 [17:39:41]Connected sock=10 [17:39: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 38 32 39 0F 01 00 00 7E B3 07 01 84 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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 DD 44 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CC 07 01 00 35 04 06 00 53 5C 4F EC E2 D3 E1 5B 82 6B 9D E8 D4 E0 [17:39:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 CA 92 47 00 31 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CC 07 01 00 F4 03 04 00 B7 EC 45 66 B6 04 01 00 00 3C 10 72 67 D7 CB 75 40 [17:39:42]CommunicateWithHost err = 0 [17:39:42]CheckOFDResponse [17:39:42]1017 (14) - 77093643461234 [17:39:42]1041 (16) - 0000000000871829 [17:39:42]1040 (4) - 67532 [17:39:42]1012 (4) - 16.05.2024 11:23 [17:39:42]1206 (1) - 0 [17:39:42]OFD Sender: Remove packet 67532 [17:39:42]ProducePacketName [17:39:42]name=ofd_packets/00067532 [17:39:42]NVStorageDeleteData [17:39:42]Write to MH i2c: 01 00 00 F3 19 0C [17:39:42]Write i2c OK [17:39:42]MH_I2C_Read... [17:39:42]Read from MH i2c: 01 [17:39:42]MH_I2C_Read... [17:39:42]Read from MH i2c: 01 07 00 [17:39:42]MH_I2C_Read... [17:39:42]Read from MH i2c: 01 07 00 F3 19 00 00 00 00 00 D9 0C F8 [17:39:42]RasterBufferAndPrint [17:39:42]line [17:39:42]line [17:39:42]line [17:39:42]line [17:39:42]line [17:39:42]written 0, free lines is 3295 [17:39:42]MH_Cut [17:39:42]Write to MH i2c: D1 01 00 FA 19 01 E5 [17:39:42]Write i2c OK [17:39:42]MH_I2C_Read... [17:39:42]Read from MH i2c: D1 [17:39:42]MH_I2C_Read... [17:39:42]Read from MH i2c: D1 01 00 [17:39:42]MH_I2C_Read... [17:39:42]Read from MH i2c: D1 01 00 FA 19 00 E4 [17:39:42]Write to MH i2c: 01 00 00 FB 19 14 [17:39:42]Write i2c OK [17:39:42]MH_I2C_Read... [17:39:42]OFD Sender: No OFD packet to send [17:39:42]*** Cut start [17:39:42]*** Purtial cut [17:39:42]*** Stage 1: CUTSNS_PIN = 1 [17:39:43]Read from MH i2c: 01 [17:39:43]MH_I2C_Read... [17:39:43]*** Stop cut motor [17:39:43]*** Cut end [17:39:43]Read from MH i2c: 01 07 00 [17:39:43]MH_I2C_Read... [17:39:43]Read from MH i2c: 01 07 00 FB 19 00 00 00 00 00 FF 0F 29 [17:39:43]process_action close_receipt done [17:39:43]requested_data is exist [17:39:43]produce_requested_data [17:39:43]requested_item fm.sn is exist - process it [17:39:43]wFMCommunicate request_size=4 [17:39:43]MH_SAM_APDU [17:39:43]CAPDU: 80 11 00 00 [17:39:43]Write to MH i2c: E2 08 00 FC 19 80 11 00 00 00 00 00 00 8F [17:39:43]Write i2c OK [17:39:43]MH_I2C_Read... [17:39:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:43]Read from MH i2c: E2 [17:39:43]MH_I2C_Read... [17:39:43]Read from MH i2c: E2 17 00 [17:39:43]MH_I2C_Read... [17:39:43]Read from MH i2c: E2 17 00 FC 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E5 [17:39:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:39:43]wFMCommunicate OK [17:39:43]requested_item fd.num is exist - process it [17:39:43]SAM_PROTO_GetFieldsCounters [17:39:43]wFMCommunicate request_size=4 [17:39:43]MH_SAM_APDU [17:39:43]CAPDU: 80 13 00 00 [17:39:43]Write to MH i2c: E2 08 00 FD 19 80 13 00 00 00 00 00 00 92 [17:39:43]Write i2c OK [17:39:43]MH_I2C_Read... [17:39:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:39:43]Read from MH i2c: E2 [17:39:43]MH_I2C_Read... [17:39:43]Read from MH i2c: E2 62 00 [17:39:43]MH_I2C_Read... [17:39:43]Read from MH i2c: E2 62 00 FD 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CC 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [17:39: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CC 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:39:43]wFMCommunicate OK [17:39:43]SAM_PROTO_GetFieldsCounters done [17:39:43]requested_item shift.num is exist - process it [17:39:43]requested_item shift.opened is exist - process it [17:39:43]req_shift_opened [17:39:43]FM_GetShiftState [17:39:43]SAM_PROTO_GetShiftState [17:39:43]wFMCommunicate request_size=4 [17:39:43]MH_SAM_APDU [17:39:43]CAPDU: 80 13 01 00 [17:39:43]Write to MH i2c: E2 08 00 FE 19 80 13 01 00 00 00 00 00 94 [17:39:43]Write i2c OK [17:39:43]MH_I2C_Read... [17:39:43]Read from MH i2c: E2 [17:39:43]MH_I2C_Read... [17:39:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:43]Read from MH i2c: E2 0E 00 [17:39:43]MH_I2C_Read... [17:39:43]Read from MH i2c: E2 0E 00 FE 19 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 40 [17:39:43]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [17:39:43]wFMCommunicate OK [17:39:43]SAM_PROTO_GetShiftState done [17:39:43]FM_GetShiftState done [17:39:43]req_shift_opened done [17:39:43]requested_item shift.open_date is exist - process it [17:39:43]req_shift_open_date [17:39:43]req_shift_open_date done [17:39:43]produce_requested_data done [17:39:43]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67532,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [17:39:43]process_action_free close_receipt [17:39:43]json_value_free [17:39:43]json_value_free done [17:39:43]process_json_proto returns [17:39:43]Send response to host [17:39:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67532,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [17:39:43]free response buf [17:39:43]execute_script done [17:39:43]execute_script returns [17:39:43]free content buf [17:39:43]Sock 9.Close socket [17:39:43]Sock 9.Thread stoped [17:39:47]OFD Sender: No OFD packet to send [17:39:52]OFD Sender: No OFD packet to send [17:39:57]OFD Sender: No OFD packet to send [17:40:02]OFD Sender: No OFD packet to send [17:40:07]OFD Sender: No OFD packet to send [17:40:12]OFD Sender: No OFD packet to send [17:40:17]OFD Sender: No OFD packet to send [17:40:22]OFD Sender: No OFD packet to send [17:40:27]OFD Sender: No OFD packet to send [17:40:32]OFD Sender: No OFD packet to send [17:40:37]OFD Sender: No OFD packet to send [17:40:42]OFD Sender: No OFD packet to send [17:40:47]OFD Sender: No OFD packet to send [17:40:52]OFD Sender: No OFD packet to send [17:40:57]OFD Sender: No OFD packet to send [17:41:02]OFD Sender: No OFD packet to send [17:41:07]OFD Sender: No OFD packet to send [17:41:12]OFD Sender: No OFD packet to send [17:41:17]OFD Sender: No OFD packet to send [17:41:22]OFD Sender: No OFD packet to send [17:41:27]OFD Sender: No OFD packet to send [17:41:32]OFD Sender: No OFD packet to send [17:41:37]OFD Sender: No OFD packet to send [17:41:42]OFD Sender: No OFD packet to send [17:41:47]OFD Sender: No OFD packet to send [17:41:52]OFD Sender: No OFD packet to send [17:41:57]OFD Sender: No OFD packet to send [17:42:02]OFD Sender: No OFD packet to send [17:42:07]OFD Sender: No OFD packet to send [17:42:12]OFD Sender: No OFD packet to send [17:42:17]OFD Sender: No OFD packet to send [17:42:22]OFD Sender: No OFD packet to send [17:42:27]OFD Sender: No OFD packet to send [17:42:32]OFD Sender: No OFD packet to send [17:42:37]OFD Sender: No OFD packet to send [17:42:42]OFD Sender: No OFD packet to send [17:42:47]OFD Sender: No OFD packet to send [17:42:52]OFD Sender: No OFD packet to send [17:42:57]OFD Sender: No OFD packet to send [17:43:02]OFD Sender: No OFD packet to send [17:43:07]OFD Sender: No OFD packet to send [17:43:12]OFD Sender: No OFD packet to send [17:43:17]OFD Sender: No OFD packet to send [17:43:22]OFD Sender: No OFD packet to send [17:43:27]OFD Sender: No OFD packet to send [17:43:32]OFD Sender: No OFD packet to send [17:43:37]OFD Sender: No OFD packet to send [17:43:42]OFD Sender: No OFD packet to send [17:43:47]OFD Sender: No OFD packet to send [17:43:52]OFD Sender: No OFD packet to send [17:43:57]OFD Sender: No OFD packet to send [17:44:02]OFD Sender: No OFD packet to send [17:44:07]OFD Sender: No OFD packet to send [17:44:12]OFD Sender: No OFD packet to send [17:44:17]OFD Sender: No OFD packet to send [17:44:22]OFD Sender: No OFD packet to send [17:44:27]OFD Sender: No OFD packet to send [17:44:32]OFD Sender: No OFD packet to send [17:44:37]OFD Sender: No OFD packet to send [17:44:42]OFD Sender: No OFD packet to send [17:44:47]OFD Sender: No OFD packet to send [17:44:52]OFD Sender: No OFD packet to send [17:44:57]OFD Sender: No OFD packet to send [17:45:02]OFD Sender: No OFD packet to send [17:45:07]OFD Sender: No OFD packet to send [17:45:12]OFD Sender: No OFD packet to send [17:45:13]accept exits with 8 [17:45:13]New connection [17:45:13]New thread 3067182436 created [17:45:13]Thread 3067039076 joined [17:45:13]Waiting for new connection... [17:45:13] Sock 8.Parse request [17:45:13]Sock 8.Check first char [17:45:13]Sock 8.First char is OK [17:45:13]request: POST /json_proto HTTP/1.0 [17:45:13]Method: POST [17:45:13]URL: /json_proto [17:45:13]Method is POST - this is cgi request [17:45:13]url: /json_proto [17:45:13]query_string will be loaded in cgi processing [17:45:13]execute_cgi json_proto POST (null) [17:45:13]execute_cgi path=json_proto method=POST [17:45:13]POST find Content-Length [17:45:13]Host: 172.17.41.195:8080 [17:45:13]Content-Length: 639 [17:45:13]Content-Type: application/json [17:45:13] [17:45:13]POST finish read [17:45:13]Found Content-Length = 639 [17:45:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507595", "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" : 74.70, "quantity" : 20.000, "sum" : 1494.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1494.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:13]execute_script... [17:45: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)507595", "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" : 74.70, "quantity" : 20.000, "sum" : 1494.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1494.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:13]POST & json_proto [17:45:13]process_json_proto [17:45:13]json parsed OK: [17:45:13]protocol is kg_v1.0 [17:45:13]action value=close_receipt [17:45:13]process_action close_receipt [17:45:13]cmd_close_receipt [17:45:13]MH_GetDate [17:45:13]Write to MH i2c: F0 00 00 FF 19 07 [17:45:13]Write i2c OK [17:45:13]MH_I2C_Read... [17:45:13]Read from MH i2c: F0 [17:45:13]MH_I2C_Read... [17:45:13]Read from MH i2c: F0 09 00 [17:45:13]MH_I2C_Read... [17:45:13]Read from MH i2c: F0 09 00 FF 19 00 2A 46 46 66 FC 21 6F 64 1C [17:45:13]GetLastDocTimeStamp 1715881181 [17:45:13]current date 1715881514 [17:45:13]FM_GetShiftState [17:45:13]SAM_PROTO_GetShiftState [17:45:13]wFMCommunicate request_size=4 [17:45:13]MH_SAM_APDU [17:45:13]CAPDU: 80 13 01 00 [17:45:13]Write to MH i2c: E2 08 00 00 1A 80 13 01 00 00 00 00 00 97 [17:45:13]Write i2c OK [17:45:13]MH_I2C_Read... [17:45:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:13]Read from MH i2c: E2 [17:45:13]MH_I2C_Read... [17:45:13]Read from MH i2c: E2 0E 00 [17:45:13]MH_I2C_Read... [17:45:13]Read from MH i2c: E2 0E 00 00 1A 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 43 [17:45:13]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [17:45:13]wFMCommunicate OK [17:45:13]SAM_PROTO_GetShiftState done [17:45:13]FM_GetShiftState done [17:45:13]opened in 1715818916 [17:45:13]opened+sec_in_day 1715905316 [17:45:13]quantity*price = 149400 [17:45:13]sum+1 = 149401 [17:45:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1494.00 НСП 1% : 13.22 НДС 12% : 158.65 Наличными: 1494.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 131 16.05.2024 17:45 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67533 ФПД: 163920805400603 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T174515&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67533&fm=163920805400603&tin=02508201610067®Number=0000000000091845&sum=149400 [17:45:14]StoreToDocumentArchive [17:45:14]shift 357 fd 67533 [17:45:14]save to /storage/0357/doc_00067533 [17:45:14]save last doc name /storage/0357/doc_00067533 to /storage/kkm_last_doc_name [17:45:14]save OK [17:45:14]Clear old archive folders... [17:45:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:45:14]tlvbuf is B6EE0510 [17:45:14]SAM_PROTO_ClearQueue [17:45:14]wFMCommunicate request_size=4 [17:45:14]MH_SAM_APDU [17:45:14]CAPDU: 80 09 00 00 [17:45:14]Write to MH i2c: E2 08 00 0D 1A 80 09 00 00 00 00 00 00 99 [17:45:14]Write i2c OK [17:45:14]MH_I2C_Read... [17:45:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:45:14]Read from MH i2c: E2 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: E2 03 00 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: E2 03 00 0D 1A 00 90 00 9B [17:45:14]RAPDU: 90 00 [17:45:14]wFMCommunicate OK [17:45:14]SAM_PROTO_ClearQueue done [17:45:14]KKMCreateOFDPacket [17:45:14]OFDProtocolAddRootSTLVToBuf [17:45:14]FM_MakeSignedData [17:45:14]FM_MakeSignedData [17:45:14]SAM_PROTO_SignData [17:45:14]wFMCommunicate request_size=4 [17:45:14]MH_SAM_APDU [17:45:14]CAPDU: 80 0D 01 02 [17:45:14]Write to MH i2c: E2 08 00 0E 1A 80 0D 01 02 00 00 00 00 A1 [17:45:14]Write i2c OK [17:45:14]MH_I2C_Read... [17:45:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:45:14]Read from MH i2c: E2 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: E2 03 00 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: E2 03 00 0E 1A 00 90 00 9C [17:45:14]RAPDU: 90 00 [17:45:14]wFMCommunicate OK [17:45:14]wFMCommunicate request_size=255 [17:45:14]MH_SAM_APDU [17:45:14]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 98 47 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 47 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 3D 00 00 00 00 07 04 06 00 98 47 02 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 2B 46 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CD 07 01 00 35 04 06 00 95 15 C9 60 [17:45:14]Write to MH i2c: E2 02 01 0F 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 20 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 98 47 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 47 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 3D 00 00 00 00 07 04 06 00 98 47 02 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 2B 46 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CD 07 01 00 35 04 06 00 95 15 C9 60 00 00 72 [17:45:14]Write i2c OK [17:45:14]MH_I2C_Read... [17:45:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:14]Read from MH i2c: E2 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: E2 03 00 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: E2 03 00 0F 1A 00 90 00 9D [17:45:14]RAPDU: 90 00 [17:45:14]wFMCommunicate OK [17:45:14]wFMCommunicate request_size=7 [17:45:14]MH_SAM_APDU [17:45:14]CAPDU: 80 0D 02 02 02 90 1B [17:45:14]Write to MH i2c: E2 0A 00 10 1A 80 0D 02 02 02 00 90 1B 00 00 53 [17:45:14]Write i2c OK [17:45:14]MH_I2C_Read... [17:45:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:14]Read from MH i2c: E2 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: E2 03 00 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: E2 03 00 10 1A 00 90 00 9E [17:45:14]RAPDU: 90 00 [17:45:14]wFMCommunicate OK [17:45:14]wFMCommunicate request_size=4 [17:45:14]MH_SAM_APDU [17:45:14]CAPDU: 80 0D 03 02 [17:45:14]Write to MH i2c: E2 08 00 11 1A 80 0D 03 02 00 00 00 00 A6 [17:45:14]Write i2c OK [17:45:14]MH_I2C_Read... [17:45:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:45:14]Read from MH i2c: E2 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: E2 0B 00 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: E2 0B 00 11 1A 00 52 98 78 60 07 67 5D B1 90 00 E5 [17:45:14]RAPDU: 52 98 78 60 07 67 5D B1 90 00 [17:45:14]wFMCommunicate OK [17:45:14]SAM_PROTO_SignData done [17:45:14]FM_MakeSignedData done [17:45:14]CreateOFDProtocolMessage [17:45:14]wFMCommunicate request_size=4 [17:45:14]MH_SAM_APDU [17:45:14]CAPDU: 80 11 00 00 [17:45:14]Write to MH i2c: E2 08 00 12 1A 80 11 00 00 00 00 00 00 A6 [17:45:14]Write i2c OK [17:45:14]MH_I2C_Read... [17:45:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:14]Read from MH i2c: E2 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: E2 17 00 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: E2 17 00 12 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 FC [17:45:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:45:14]wFMCommunicate OK [17:45:14]CreateOFDProtocolMessage done [17:45:14]OFDSenderStorePacket 67533 [17:45:14]StoreOFDPacket docnum=67533 [17:45:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 A5 8F 04 01 69 2D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 98 47 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 47 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 3D 00 00 00 00 07 04 06 00 98 47 02 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 2B 46 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CD 07 01 00 35 04 06 00 95 15 C9 60 90 1B 52 98 78 60 07 67 5D B1 [17:45:14]CheckFolder [17:45:14]dirname=/storage/ofd_packets [17:45:14]CheckFolder done [17:45:14]ProducePacketName [17:45:14]name=ofd_packets/00067533 [17:45:14]NVStorageSaveData ofd_packets/00067533 [17:45:14]File name is /storage/ofd_packets/00067533 [17:45:14]Write 298 bytes [17:45:14]NVStorageSaveData done [17:45:14]OFDSenderStorePacket done [17:45:14]KKMCreateOFDPacket done [17:45:14]NVStorageSaveData kkm_last_timestamp [17:45:14]File name is /storage/kkm_last_timestamp [17:45:14]Write 4 bytes [17:45:14]NVStorageSaveData done [17:45:14]ExternCall_PrintAddStr [17:45:14]wPrintStart [17:45:14]Write to MH i2c: 01 00 00 13 1A 2D [17:45:14]Write i2c OK [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: 01 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: 01 07 00 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: 01 07 00 13 1A 00 00 00 00 00 FF 0F 42 [17:45:14]RasterBufferAndPrint [17:45:14]line Счет N : (1)507595 [17:45:14]line ИНН: 02508201610067 [17:45:14]line Контрольно-Кассовый Чек [17:45:14]line ПРОДАЖА [17:45:14]line ТРК (МРК, ГНК) : 31 [17:45:14]line Товар: 2710194210 [17:45:14]line ДТ-К-5 [17:45:14]line 20.000 * 74.70 [17:45:14]line = 1494.00 [17:45:14]line НДС 12% НСП 1% [17:45:14]line > о реализуемом товаре [17:45:14]line ИТОГО: 1494.00 [17:45:14]line НСП 1% : 13.22 [17:45:14]line НДС 12% : 158.65 [17:45:14]line Наличными: 1494.00 [17:45:14]line Безнал.: 0.00 [17:45:14]line Место: АЗС № 91 "Партнер Нефть" [17:45:14]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:45:14]line СНО: Общий режим [17:45:14]line Чек 131 16.05.2024 17:45 [17:45:14]line Смена: 357 ФФД: 1.0 [17:45:14]line ЗНМ: 0300000119 [17:45:14]line РНМ: 0000000000091845 [17:45:14]line Версия ККМ: 001 [17:45:14]line ФМ: 0000000000871829 [17:45:14]line ФД: 67533 [17:45:14]line ФПД: 163920805400603 [17:45:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T174515&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67533&fm=163920805400603&tin=02508201610067®Number=0000000000091845&sum=149400 [17:45:15]OFD Sender: Processing packet 67533 [packets to send 35, broken 34] [17:45:15]ProducePacketName [17:45:15]name=ofd_packets/00067533 [17:45:15]OFD Sender: To server: pG, [17:45:15]CommunicateWithHost lk.salyk.kg:30040 [17:45:15]ConnectInit lk.salyk.kg [17:45:15]written 0, free lines is 4095 [17:45:15]Connected sock=10 [17:45: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 38 32 39 0C 01 00 00 A5 8F 04 01 69 2D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 98 47 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 47 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 3D 00 00 00 00 07 04 06 00 98 47 02 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 2B 46 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CD 07 01 00 35 04 06 00 95 15 C9 60 90 1B 52 98 78 60 07 67 5D B1 [17:45:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 9D 6C 47 00 DF 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 38 32 39 10 04 04 00 CD 07 01 00 F4 03 04 00 05 EE 45 66 B6 04 01 00 00 34 59 1C 55 B4 9E F0 6F [17:45:15]CommunicateWithHost err = 0 [17:45:15]CheckOFDResponse [17:45:15]1017 (14) - 77093643461234 [17:45:15]1041 (16) - 0000000000871829 [17:45:15]1040 (4) - 67533 [17:45:15]1012 (4) - 16.05.2024 11:29 [17:45:15]1206 (1) - 0 [17:45:15]OFD Sender: Remove packet 67533 [17:45:15]ProducePacketName [17:45:15]name=ofd_packets/00067533 [17:45:15]NVStorageDeleteData [17:45:15]Write to MH i2c: 01 00 00 3A 1A 54 [17:45:15]Write i2c OK [17:45:15]MH_I2C_Read... [17:45:15]Read from MH i2c: 01 [17:45:15]MH_I2C_Read... [17:45:15]Read from MH i2c: 01 07 00 [17:45:15]MH_I2C_Read... [17:45:15]Read from MH i2c: 01 07 00 3A 1A 00 00 00 00 00 06 0D 6E [17:45:15]RasterBufferAndPrint [17:45:15]line [17:45:15]line [17:45:15]line [17:45:15]line [17:45:15]line [17:45:15]written 0, free lines is 3340 [17:45:15]MH_Cut [17:45:15]Write to MH i2c: D1 01 00 41 1A 01 2D [17:45:15]Write i2c OK [17:45:15]MH_I2C_Read... [17:45:15]Read from MH i2c: D1 [17:45:15]MH_I2C_Read... [17:45:15]Read from MH i2c: D1 01 00 [17:45:15]MH_I2C_Read... [17:45:15]Read from MH i2c: D1 01 00 41 1A 00 2C [17:45:15]Write to MH i2c: 01 00 00 42 1A 5C [17:45:15]Write i2c OK [17:45:15]MH_I2C_Read... [17:45:15]OFD Sender: No OFD packet to send [17:45:16]*** Cut start [17:45:16]*** Purtial cut [17:45:16]*** CUTSNS_PIN = 0 [17:45:16]*** Stage 1: CUTSNS_PIN = 1 [17:45:18]Read from MH i2c: 01 [17:45:18]MH_I2C_Read... [17:45:18]*** Stop cut motor [17:45:18]*** Cut end [17:45:18]Read from MH i2c: 01 07 00 [17:45:18]MH_I2C_Read... [17:45:18]Read from MH i2c: 01 07 00 42 1A 00 00 00 00 00 FF 0F 71 [17:45:18]process_action close_receipt done [17:45:18]requested_data is exist [17:45:18]produce_requested_data [17:45:18]requested_item fm.sn is exist - process it [17:45:18]wFMCommunicate request_size=4 [17:45:18]MH_SAM_APDU [17:45:18]CAPDU: 80 11 00 00 [17:45:18]Write to MH i2c: E2 08 00 43 1A 80 11 00 00 00 00 00 00 D7 [17:45:18]Write i2c OK [17:45:18]MH_I2C_Read... [17:45:18]Read from MH i2c: E2 [17:45:18]MH_I2C_Read... [17:45:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:18]Read from MH i2c: E2 17 00 [17:45:18]MH_I2C_Read... [17:45:18]Read from MH i2c: E2 17 00 43 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2D [17:45:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:45:18]wFMCommunicate OK [17:45:18]requested_item fd.num is exist - process it [17:45:18]SAM_PROTO_GetFieldsCounters [17:45:18]wFMCommunicate request_size=4 [17:45:18]MH_SAM_APDU [17:45:18]CAPDU: 80 13 00 00 [17:45:18]Write to MH i2c: E2 08 00 44 1A 80 13 00 00 00 00 00 00 DA [17:45:18]Write i2c OK [17:45:18]MH_I2C_Read... [17:45:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:45:18]Read from MH i2c: E2 [17:45:18]MH_I2C_Read... [17:45:18]Read from MH i2c: E2 62 00 [17:45:18]MH_I2C_Read... [17:45:18]Read from MH i2c: E2 62 00 44 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CD 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [17:45: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CD 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:45:18]wFMCommunicate OK [17:45:18]SAM_PROTO_GetFieldsCounters done [17:45:18]requested_item shift.num is exist - process it [17:45:18]requested_item shift.opened is exist - process it [17:45:18]req_shift_opened [17:45:18]FM_GetShiftState [17:45:18]SAM_PROTO_GetShiftState [17:45:18]wFMCommunicate request_size=4 [17:45:18]MH_SAM_APDU [17:45:18]CAPDU: 80 13 01 00 [17:45:18]Write to MH i2c: E2 08 00 45 1A 80 13 01 00 00 00 00 00 DC [17:45:18]Write i2c OK [17:45:18]MH_I2C_Read... [17:45:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:18]Read from MH i2c: E2 [17:45:18]MH_I2C_Read... [17:45:18]Read from MH i2c: E2 0E 00 [17:45:18]MH_I2C_Read... [17:45:18]Read from MH i2c: E2 0E 00 45 1A 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 88 [17:45:18]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [17:45:18]wFMCommunicate OK [17:45:18]SAM_PROTO_GetShiftState done [17:45:18]FM_GetShiftState done [17:45:18]req_shift_opened done [17:45:18]requested_item shift.open_date is exist - process it [17:45:18]req_shift_open_date [17:45:18]req_shift_open_date done [17:45:18]produce_requested_data done [17:45:18]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67533,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [17:45:18]process_action_free close_receipt [17:45:18]json_value_free [17:45:18]json_value_free done [17:45:18]process_json_proto returns [17:45:18]Send response to host [17:45:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67533,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [17:45:18]free response buf [17:45:18]execute_script done [17:45:18]execute_script returns [17:45:18]free content buf [17:45:18]Sock 8.Close socket [17:45:18]Sock 8.Thread stoped [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:36]OFD Sender: No OFD packet to send [17:45:41]OFD Sender: No OFD packet to send [17:45:46]OFD Sender: No OFD packet to send [17:45:51]OFD Sender: No OFD packet to send [17:45:56]OFD Sender: No OFD packet to send [17:46:01]OFD Sender: No OFD packet to send [17:46:06]OFD Sender: No OFD packet to send [17:46:11]OFD Sender: No OFD packet to send [17:46:16]OFD Sender: No OFD packet to send [17:46:21]OFD Sender: No OFD packet to send [17:46:26]OFD Sender: No OFD packet to send [17:46:31]OFD Sender: No OFD packet to send [17:46:36]OFD Sender: No OFD packet to send [17:46:41]OFD Sender: No OFD packet to send [17:46:46]OFD Sender: No OFD packet to send [17:46:51]OFD Sender: No OFD packet to send [17:46:56]OFD Sender: No OFD packet to send [17:47:01]OFD Sender: No OFD packet to send [17:47:06]OFD Sender: No OFD packet to send [17:47:11]OFD Sender: No OFD packet to send [17:47:16]OFD Sender: No OFD packet to send [17:47:21]OFD Sender: No OFD packet to send [17:47:26]OFD Sender: No OFD packet to send [17:47:31]OFD Sender: No OFD packet to send [17:47:36]OFD Sender: No OFD packet to send [17:47:41]OFD Sender: No OFD packet to send [17:47:46]OFD Sender: No OFD packet to send [17:47:51]OFD Sender: No OFD packet to send [17:47:56]OFD Sender: No OFD packet to send [17:48:01]OFD Sender: No OFD packet to send [17:48:06]OFD Sender: No OFD packet to send [17:48:11]OFD Sender: No OFD packet to send [17:48:16]OFD Sender: No OFD packet to send [17:48:18]accept exits with 9 [17:48:18]New connection [17:48:18]New thread 3067039076 created [17:48:18]Thread 3067182436 joined [17:48:18]Waiting for new connection... [17:48:18] Sock 9.Parse request [17:48:18]Sock 9.Check first char [17:48:18]Sock 9.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.41.195:8080 [17:48:18]Content-Length: 800 [17:48:18]Content-Type: application/json [17:48:18] [17:48:18]POST finish read [17:48:18]Found Content-Length = 800 [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)507596", "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" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "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)507596", "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" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "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 46 1A 4F [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 46 1A 00 E4 46 46 66 FC 21 6F 64 1E [17:48:18]GetLastDocTimeStamp 1715881515 [17:48:18]current date 1715881700 [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 47 1A 80 13 01 00 00 00 00 00 DE [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 47 1A 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 8A [17:48:18]RAPDU: 09 00 01 A4 51 45 66 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 1715818916 [17:48:18]opened+sec_in_day 1715905316 [17:48:18]quantity*price = 100023 [17:48:18]sum+1 = 100024 [17:48:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.23 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.23 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 132 16.05.2024 17:48 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67534 ФПД: 93868341025679 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T174820&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67534&fm=93868341025679&tin=02508201610067®Number=0000000000091845&sum=100023 [17:48:19]StoreToDocumentArchive [17:48:19]shift 357 fd 67534 [17:48:19]save to /storage/0357/doc_00067534 [17:48:19]save last doc name /storage/0357/doc_00067534 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=248 [17:48:19]tlvbuf is 01818700 [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 54 1A 80 09 00 00 00 00 00 00 E0 [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 54 1A 00 90 00 E2 [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 55 1A 80 0D 01 02 00 00 00 00 E8 [17:48:19]Write i2c OK [17:48:19]MH_I2C_Read... [17:48:20]*** iso7816_exchange 80 0D 01 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 55 1A 00 90 00 E3 [17:48:20]RAPDU: 90 00 [17:48:20]wFMCommunicate OK [17:48:20]wFMCommunicate request_size=255 [17:48:20]MH_SAM_APDU [17:48: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 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 E4 46 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CE 07 01 00 35 04 06 00 55 5F 6D 1F [17:48:20]Write to MH i2c: E2 02 01 56 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 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 E4 46 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CE 07 01 00 35 04 06 00 55 5F 6D 1F 00 00 C6 [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 56 1A 00 90 00 E4 [17:48:20]RAPDU: 90 00 [17:48:20]wFMCommunicate OK [17:48:20]wFMCommunicate request_size=7 [17:48:20]MH_SAM_APDU [17:48:20]CAPDU: 80 0D 02 02 02 5B 8F [17:48:20]Write to MH i2c: E2 0A 00 57 1A 80 0D 02 02 02 00 5B 8F 00 00 D9 [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 57 1A 00 90 00 E5 [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 58 1A 80 0D 03 02 00 00 00 00 ED [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 58 1A 00 FA 5A D5 40 92 F1 90 9A 90 00 04 [17:48:20]RAPDU: FA 5A D5 40 92 F1 90 9A 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 59 1A 80 11 00 00 00 00 00 00 ED [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 59 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 43 [17:48:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:48:20]wFMCommunicate OK [17:48:20]CreateOFDProtocolMessage done [17:48:20]OFDSenderStorePacket 67534 [17:48:20]StoreOFDPacket docnum=67534 [17:48:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 29 8D 04 01 91 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 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 E4 46 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CE 07 01 00 35 04 06 00 55 5F 6D 1F 5B 8F FA 5A D5 40 92 F1 90 9A [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/00067534 [17:48:20]NVStorageSaveData ofd_packets/00067534 [17:48:20]File name is /storage/ofd_packets/00067534 [17:48:20]Write 298 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 5A 1A 74 [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 5A 1A 00 00 00 00 00 FF 0F 89 [17:48:20]RasterBufferAndPrint [17:48:20]line Счет N : (1)507596 [17:48:20]line ИНН: 02508201610067 [17:48:20]line Контрольно-Кассовый Чек [17:48:20]line ПРОДАЖА [17:48:20]line ТРК (МРК, ГНК) : 11 [17:48:20]line Товар: 2710194210 [17:48:20]line ДТ-К-5 [17:48:20]line 13.390 * 74.70 [17:48:20]line = 1000.23 [17:48:20]line НДС 12% НСП 1% [17:48:20]line > о реализуемом товаре [17:48:20]line ИТОГО: 1000.23 [17:48:20]line НСП 1% : 8.85 [17:48:20]line НДС 12% : 106.22 [17:48:20]line Наличными: 0.00 [17:48:20]line Безнал.: 1000.23 [17:48:20]line Место: АЗС № 91 "Партнер Нефть" [17:48:20]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:48:20]line СНО: Общий режим [17:48:20]line Чек 132 16.05.2024 17:48 [17:48:20]line Смена: 357 ФФД: 1.0 [17:48:20]line ЗНМ: 0300000119 [17:48:20]line РНМ: 0000000000091845 [17:48:20]line Версия ККМ: 001 [17:48:20]line Платежная система: O! деньги [17:48:20]line ФМ: 0000000000871829 [17:48:20]line ФД: 67534 [17:48:20]line ФПД: 93868341025679 [17:48:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T174820&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67534&fm=93868341025679&tin=02508201610067®Number=0000000000091845&sum=100023 [17:48:20]OFD Sender: Processing packet 67534 [packets to send 35, broken 34] [17:48:20]ProducePacketName [17:48:20]name=ofd_packets/00067534 [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 38 32 39 0C 01 00 00 29 8D 04 01 91 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 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 E4 46 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CE 07 01 00 35 04 06 00 55 5F 6D 1F 5B 8F FA 5A D5 40 92 F1 90 9A [17:48:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 F3 7A 47 00 F8 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 38 32 39 10 04 04 00 CE 07 01 00 F4 03 04 00 BE EE 45 66 B6 04 01 00 00 AD 92 90 F8 AE 40 04 C4 [17:48:21]CommunicateWithHost err = 0 [17:48:21]CheckOFDResponse [17:48:21]1017 (14) - 77093643461234 [17:48:21]1041 (16) - 0000000000871829 [17:48:21]1040 (4) - 67534 [17:48:21]1012 (4) - 16.05.2024 11:32 [17:48:21]1206 (1) - 0 [17:48:21]OFD Sender: Remove packet 67534 [17:48:21]ProducePacketName [17:48:21]name=ofd_packets/00067534 [17:48:21]NVStorageDeleteData [17:48:21]Write to MH i2c: 01 00 00 83 1A 9D [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 83 1A 00 00 00 00 00 DF 0C 8F [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 3303 [17:48:21]MH_Cut [17:48:21]Write to MH i2c: D1 01 00 8A 1A 01 76 [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 8A 1A 00 75 [17:48:21]Write to MH i2c: 01 00 00 8B 1A A5 [17:48:21]Write i2c OK [17:48:21]MH_I2C_Read... [17:48:21]OFD Sender: No OFD packet to send [17:48:22]*** Cut start [17:48:22]*** Purtial cut [17:48:22]*** Stage 1: CUTSNS_PIN = 1 [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 8B 1A 00 00 00 00 00 FF 0F BA [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 8C 1A 80 11 00 00 00 00 00 00 20 [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 8C 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 76 [17:48:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 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 8D 1A 80 13 00 00 00 00 00 00 23 [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 8D 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CE 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CE 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [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 8E 1A 80 13 01 00 00 00 00 00 25 [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 8E 1A 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 D1 [17:48:22]RAPDU: 09 00 01 A4 51 45 66 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":"0000000000871829","fd.num":67534,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [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":"0000000000871829","fd.num":67534,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [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 9.Close socket [17:48:22]Sock 9.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:49:01]OFD Sender: No OFD packet to send [17:49:06]OFD Sender: No OFD packet to send [17:49:11]OFD Sender: No OFD packet to send [17:49:16]OFD Sender: No OFD packet to send [17:49:21]OFD Sender: No OFD packet to send [17:49:26]OFD Sender: No OFD packet to send [17:49:31]OFD Sender: No OFD packet to send [17:49:36]OFD Sender: No OFD packet to send [17:49:41]OFD Sender: No OFD packet to send [17:49:46]OFD Sender: No OFD packet to send [17:49:51]OFD Sender: No OFD packet to send [17:49:56]OFD Sender: No OFD packet to send [17:50:01]OFD Sender: No OFD packet to send [17:50:06]OFD Sender: No OFD packet to send [17:50:11]OFD Sender: No OFD packet to send [17:50:16]OFD Sender: No OFD packet to send [17:50:21]OFD Sender: No OFD packet to send [17:50:26]OFD Sender: No OFD packet to send [17:50:31]OFD Sender: No OFD packet to send [17:50:36]OFD Sender: No OFD packet to send [17:50:41]OFD Sender: No OFD packet to send [17:50:46]OFD Sender: No OFD packet to send [17:50:51]OFD Sender: No OFD packet to send [17:50:56]OFD Sender: No OFD packet to send [17:51:01]OFD Sender: No OFD packet to send [17:51:06]OFD Sender: No OFD packet to send [17:51:11]OFD Sender: No OFD packet to send [17:51:16]OFD Sender: No OFD packet to send [17:51:21]OFD Sender: No OFD packet to send [17:51:26]OFD Sender: No OFD packet to send [17:51:31]OFD Sender: No OFD packet to send [17:51:36]OFD Sender: No OFD packet to send [17:51:41]OFD Sender: No OFD packet to send [17:51:46]OFD Sender: No OFD packet to send [17:51:51]OFD Sender: No OFD packet to send [17:51:56]OFD Sender: No OFD packet to send [17:52:01]OFD Sender: No OFD packet to send [17:52:06]OFD Sender: No OFD packet to send [17:52:11]OFD Sender: No OFD packet to send [17:52:16]OFD Sender: No OFD packet to send [17:52:21]OFD Sender: No OFD packet to send [17:52:26]OFD Sender: No OFD packet to send [17:52:31]OFD Sender: No OFD packet to send [17:52:36]OFD Sender: No OFD packet to send [17:52:41]OFD Sender: No OFD packet to send [17:52:46]OFD Sender: No OFD packet to send [17:52:51]OFD Sender: No OFD packet to send [17:52:56]OFD Sender: No OFD packet to send [17:53:01]OFD Sender: No OFD packet to send [17:53:06]OFD Sender: No OFD packet to send [17:53:11]OFD Sender: No OFD packet to send [17:53:16]OFD Sender: No OFD packet to send [17:53:21]OFD Sender: No OFD packet to send [17:53:26]OFD Sender: No OFD packet to send [17:53:31]OFD Sender: No OFD packet to send [17:53:36]OFD Sender: No OFD packet to send [17:53:41]OFD Sender: No OFD packet to send [17:53:46]OFD Sender: No OFD packet to send [17:53:51]OFD Sender: No OFD packet to send [17:53:56]OFD Sender: No OFD packet to send [17:54:01]OFD Sender: No OFD packet to send [17:54:06]OFD Sender: No OFD packet to send [17:54:11]OFD Sender: No OFD packet to send [17:54:13]accept exits with 8 [17:54:13]New connection [17:54:13]New thread 3067182436 created [17:54:13]Thread 3067039076 joined [17:54:13]Waiting for new connection... [17:54:13] Sock 8.Parse request [17:54:13]Sock 8.Check first char [17:54:13]Sock 8.First char is OK [17:54:13]request: POST /json_proto HTTP/1.0 [17:54:13]Method: POST [17:54:13]URL: /json_proto [17:54:13]Method is POST - this is cgi request [17:54:13]url: /json_proto [17:54:13]query_string will be loaded in cgi processing [17:54:13]execute_cgi json_proto POST (null) [17:54:13]execute_cgi path=json_proto method=POST [17:54:13]POST find Content-Length [17:54:13]Host: 172.17.41.195:8080 [17:54:13]Content-Length: 677 [17:54:13]Content-Type: application/json [17:54:13] [17:54:13]POST finish read [17:54:13]Found Content-Length = 677 [17:54:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507597", "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.80, "quantity" : 7.490, "sum" : 500.33, "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:54:13]execute_script... [17:54:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507597", "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.80, "quantity" : 7.490, "sum" : 500.33, "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:54:13]POST & json_proto [17:54:13]process_json_proto [17:54:13]json parsed OK: [17:54:13]protocol is kg_v1.0 [17:54:13]action value=close_receipt [17:54:13]process_action close_receipt [17:54:13]cmd_close_receipt [17:54:13]MH_GetDate [17:54:13]Write to MH i2c: F0 00 00 8F 1A 98 [17:54:13]Write i2c OK [17:54:13]MH_I2C_Read... [17:54:13]Read from MH i2c: F0 [17:54:13]MH_I2C_Read... [17:54:13]Read from MH i2c: F0 09 00 [17:54:13]MH_I2C_Read... [17:54:13]Read from MH i2c: F0 09 00 8F 1A 00 47 48 46 66 FC 21 6F 64 CC [17:54:13]GetLastDocTimeStamp 1715881700 [17:54:13]current date 1715882055 [17:54:13]FM_GetShiftState [17:54:13]SAM_PROTO_GetShiftState [17:54:13]wFMCommunicate request_size=4 [17:54:13]MH_SAM_APDU [17:54:13]CAPDU: 80 13 01 00 [17:54:13]Write to MH i2c: E2 08 00 90 1A 80 13 01 00 00 00 00 00 27 [17:54:13]Write i2c OK [17:54:13]MH_I2C_Read... [17:54:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:13]Read from MH i2c: E2 [17:54:13]MH_I2C_Read... [17:54:13]Read from MH i2c: E2 0E 00 [17:54:13]MH_I2C_Read... [17:54:13]Read from MH i2c: E2 0E 00 90 1A 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 D3 [17:54:13]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [17:54:13]wFMCommunicate OK [17:54:13]SAM_PROTO_GetShiftState done [17:54:13]FM_GetShiftState done [17:54:13]opened in 1715818916 [17:54:13]opened+sec_in_day 1715905316 [17:54:13]quantity*price = 50033 [17:54:13]sum+1 = 50034 [17:54:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 133 16.05.2024 17:54 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67535 ФПД: 70357370364883 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T175415&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67535&fm=70357370364883&tin=02508201610067®Number=0000000000091845&sum=50000 [17:54:15]StoreToDocumentArchive [17:54:15]shift 357 fd 67535 [17:54:15]save to /storage/0357/doc_00067535 [17:54:15]save last doc name /storage/0357/doc_00067535 to /storage/kkm_last_doc_name [17:54:15]save OK [17:54:15]Clear old archive folders... [17:54:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:54:15]tlvbuf is 017E8E50 [17:54:15]SAM_PROTO_ClearQueue [17:54:15]wFMCommunicate request_size=4 [17:54:15]MH_SAM_APDU [17:54:15]CAPDU: 80 09 00 00 [17:54:15]Write to MH i2c: E2 08 00 9D 1A 80 09 00 00 00 00 00 00 29 [17:54:15]Write i2c OK [17:54:15]MH_I2C_Read... [17:54:15]Read from MH i2c: E2 [17:54:15]MH_I2C_Read... [17:54:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:54:15]Read from MH i2c: E2 03 00 [17:54:15]MH_I2C_Read... [17:54:15]Read from MH i2c: E2 03 00 9D 1A 00 90 00 2B [17:54:15]RAPDU: 90 00 [17:54:15]wFMCommunicate OK [17:54:15]SAM_PROTO_ClearQueue done [17:54:15]KKMCreateOFDPacket [17:54:15]OFDProtocolAddRootSTLVToBuf [17:54:15]FM_MakeSignedData [17:54:15]FM_MakeSignedData [17:54:15]SAM_PROTO_SignData [17:54:15]wFMCommunicate request_size=4 [17:54:15]MH_SAM_APDU [17:54:15]CAPDU: 80 0D 01 02 [17:54:15]Write to MH i2c: E2 08 00 9E 1A 80 0D 01 02 00 00 00 00 31 [17:54:15]Write i2c OK [17:54:15]MH_I2C_Read... [17:54:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:54:15]Read from MH i2c: E2 [17:54:15]MH_I2C_Read... [17:54:15]Read from MH i2c: E2 03 00 [17:54:15]MH_I2C_Read... [17:54:15]Read from MH i2c: E2 03 00 9E 1A 00 90 00 2C [17:54:15]RAPDU: 90 00 [17:54:15]wFMCommunicate OK [17:54:15]wFMCommunicate request_size=255 [17:54:15]MH_SAM_APDU [17:54: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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 47 48 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CF 07 01 00 35 04 06 00 3F [17:54:15]Write to MH i2c: E2 02 01 9F 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 47 48 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CF 07 01 00 35 04 06 00 3F 00 00 F8 [17:54:15]Write i2c OK [17:54:15]MH_I2C_Read... [17:54:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:15]Read from MH i2c: E2 [17:54:15]MH_I2C_Read... [17:54:15]Read from MH i2c: E2 03 00 [17:54:15]MH_I2C_Read... [17:54:15]Read from MH i2c: E2 03 00 9F 1A 00 90 00 2D [17:54:15]RAPDU: 90 00 [17:54:15]wFMCommunicate OK [17:54:15]wFMCommunicate request_size=10 [17:54:15]MH_SAM_APDU [17:54:15]CAPDU: 80 0D 02 02 05 FD 5A 11 63 D3 [17:54:15]Write to MH i2c: E2 0D 00 A0 1A 80 0D 02 02 05 00 FD 5A 11 63 D3 00 00 DC [17:54:15]Write i2c OK [17:54:15]MH_I2C_Read... [17:54:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:15]Read from MH i2c: E2 [17:54:15]MH_I2C_Read... [17:54:15]Read from MH i2c: E2 03 00 [17:54:15]MH_I2C_Read... [17:54:15]Read from MH i2c: E2 03 00 A0 1A 00 90 00 2E [17:54:15]RAPDU: 90 00 [17:54:15]wFMCommunicate OK [17:54:15]wFMCommunicate request_size=4 [17:54:15]MH_SAM_APDU [17:54:15]CAPDU: 80 0D 03 02 [17:54:15]Write to MH i2c: E2 08 00 A1 1A 80 0D 03 02 00 00 00 00 36 [17:54:15]Write i2c OK [17:54:15]MH_I2C_Read... [17:54:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:54:15]Read from MH i2c: E2 [17:54:15]MH_I2C_Read... [17:54:15]Read from MH i2c: E2 0B 00 [17:54:15]MH_I2C_Read... [17:54:15]Read from MH i2c: E2 0B 00 A1 1A 00 B0 12 54 CA C7 09 F7 B2 90 00 90 [17:54:15]RAPDU: B0 12 54 CA C7 09 F7 B2 90 00 [17:54:15]wFMCommunicate OK [17:54:15]SAM_PROTO_SignData done [17:54:15]FM_MakeSignedData done [17:54:15]CreateOFDProtocolMessage [17:54:15]wFMCommunicate request_size=4 [17:54:15]MH_SAM_APDU [17:54:15]CAPDU: 80 11 00 00 [17:54:15]Write to MH i2c: E2 08 00 A2 1A 80 11 00 00 00 00 00 00 36 [17:54:15]Write i2c OK [17:54:15]MH_I2C_Read... [17:54:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:15]Read from MH i2c: E2 [17:54:15]MH_I2C_Read... [17:54:15]Read from MH i2c: E2 17 00 [17:54:15]MH_I2C_Read... [17:54:15]Read from MH i2c: E2 17 00 A2 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 8C [17:54:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:54:15]wFMCommunicate OK [17:54:15]CreateOFDProtocolMessage done [17:54:15]OFDSenderStorePacket 67535 [17:54:15]StoreOFDPacket docnum=67535 [17:54:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 D1 29 07 01 1D 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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 47 48 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CF 07 01 00 35 04 06 00 3F FD 5A 11 63 D3 B0 12 54 CA C7 09 F7 B2 [17:54:15]CheckFolder [17:54:15]dirname=/storage/ofd_packets [17:54:15]CheckFolder done [17:54:15]ProducePacketName [17:54:15]name=ofd_packets/00067535 [17:54:15]NVStorageSaveData ofd_packets/00067535 [17:54:15]File name is /storage/ofd_packets/00067535 [17:54:15]Write 301 bytes [17:54:15]NVStorageSaveData done [17:54:15]OFDSenderStorePacket done [17:54:15]KKMCreateOFDPacket done [17:54:15]NVStorageSaveData kkm_last_timestamp [17:54:15]File name is /storage/kkm_last_timestamp [17:54:15]Write 4 bytes [17:54:15]NVStorageSaveData done [17:54:15]ExternCall_PrintAddStr [17:54:15]wPrintStart [17:54:15]Write to MH i2c: 01 00 00 A3 1A BD [17:54:15]Write i2c OK [17:54:15]MH_I2C_Read... [17:54:15]Read from MH i2c: 01 [17:54:15]MH_I2C_Read... [17:54:15]Read from MH i2c: 01 07 00 [17:54:15]MH_I2C_Read... [17:54:15]Read from MH i2c: 01 07 00 A3 1A 00 00 00 00 00 FF 0F D2 [17:54:15]RasterBufferAndPrint [17:54:15]line Счет N : (1)507597 [17:54:15]line ИНН: 02508201610067 [17:54:15]line Контрольно-Кассовый Чек [17:54:15]line ПРОДАЖА [17:54:15]line ТРК (МРК, ГНК) : 33 [17:54:15]line Товар: 2710124130 [17:54:15]line Аи-92-К-5 [17:54:15]line 7.490 * 66.80 [17:54:15]line = 500.33 [17:54:15]line НДС 12% НСП 1% [17:54:15]line > о реализуемом товаре [17:54:15]line ОКРУГЛЕНИЕ: -0.33 [17:54:15]line ИТОГО: 500.00 [17:54:15]line Внесено: 500.00 [17:54:15]line СДАЧА: 0.00 [17:54:15]line НСП 1% : 4.43 [17:54:15]line НДС 12% : 53.13 [17:54:15]line Наличными: 500.00 [17:54:15]line Безнал.: 0.00 [17:54:15]line Место: АЗС № 91 "Партнер Нефть" [17:54:15]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:54:15]line СНО: Общий режим [17:54:15]line Чек 133 16.05.2024 17:54 [17:54:15]line Смена: 357 ФФД: 1.0 [17:54:15]line ЗНМ: 0300000119 [17:54:15]line РНМ: 0000000000091845 [17:54:15]line Версия ККМ: 001 [17:54:15]line ФМ: 0000000000871829 [17:54:15]line ФД: 67535 [17:54:15]line ФПД: 70357370364883 [17:54:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T175415&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67535&fm=70357370364883&tin=02508201610067®Number=0000000000091845&sum=50000 [17:54:15]OFD Sender: Processing packet 67535 [packets to send 35, broken 34] [17:54:15]ProducePacketName [17:54:15]name=ofd_packets/00067535 [17:54:15]OFD Sender: To server: pG, [17:54:15]CommunicateWithHost lk.salyk.kg:30040 [17:54:15]ConnectInit lk.salyk.kg [17:54:15]written 0, free lines is 4095 [17:54:15]Connected sock=11 [17:54:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 D1 29 07 01 1D 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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 47 48 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CF 07 01 00 35 04 06 00 3F FD 5A 11 63 D3 B0 12 54 CA C7 09 F7 B2 [17:54:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 10 06 47 00 4A 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 38 32 39 10 04 04 00 CF 07 01 00 F4 03 04 00 21 F0 45 66 B6 04 01 00 00 0F FE 1E 76 C7 71 B4 14 [17:54:16]CommunicateWithHost err = 0 [17:54:16]CheckOFDResponse [17:54:16]1017 (14) - 77093643461234 [17:54:16]1041 (16) - 0000000000871829 [17:54:16]1040 (4) - 67535 [17:54:16]1012 (4) - 16.05.2024 11:38 [17:54:16]1206 (1) - 0 [17:54:16]OFD Sender: Remove packet 67535 [17:54:16]ProducePacketName [17:54:16]name=ofd_packets/00067535 [17:54:16]NVStorageDeleteData [17:54:16]Write to MH i2c: 01 00 00 CD 1A E7 [17:54:16]Write i2c OK [17:54:16]MH_I2C_Read... [17:54:16]Read from MH i2c: 01 [17:54:16]MH_I2C_Read... [17:54:16]Read from MH i2c: 01 07 00 [17:54:16]MH_I2C_Read... [17:54:16]Read from MH i2c: 01 07 00 CD 1A 00 00 00 00 00 D2 0C CC [17:54:16]RasterBufferAndPrint [17:54:16]line [17:54:16]line [17:54:16]line [17:54:16]line [17:54:16]line [17:54:16]written 0, free lines is 3288 [17:54:16]MH_Cut [17:54:16]Write to MH i2c: D1 01 00 D4 1A 01 C0 [17:54:16]Write i2c OK [17:54:16]MH_I2C_Read... [17:54:16]Read from MH i2c: D1 [17:54:16]MH_I2C_Read... [17:54:16]Read from MH i2c: D1 01 00 [17:54:16]MH_I2C_Read... [17:54:16]Read from MH i2c: D1 01 00 D4 1A 00 BF [17:54:16]Write to MH i2c: 01 00 00 D5 1A EF [17:54:16]Write i2c OK [17:54:16]MH_I2C_Read... [17:54:16]OFD Sender: No OFD packet to send [17:54:17]*** Cut start [17:54:17]*** Purtial cut [17:54:17]*** CUTSNS_PIN = 0 [17:54:17]*** Stage 1: CUTSNS_PIN = 1 [17:54:19]Read from MH i2c: 01 [17:54:19]MH_I2C_Read... [17:54:19]*** Stop cut motor [17:54:19]*** Cut end [17:54:19]Read from MH i2c: 01 07 00 [17:54:19]MH_I2C_Read... [17:54:19]Read from MH i2c: 01 07 00 D5 1A 00 00 00 00 00 FF 0F 04 [17:54:19]process_action close_receipt done [17:54:19]requested_data is exist [17:54:19]produce_requested_data [17:54:19]requested_item fm.sn is exist - process it [17:54:19]wFMCommunicate request_size=4 [17:54:19]MH_SAM_APDU [17:54:19]CAPDU: 80 11 00 00 [17:54:19]Write to MH i2c: E2 08 00 D6 1A 80 11 00 00 00 00 00 00 6A [17:54:19]Write i2c OK [17:54:19]MH_I2C_Read... [17:54:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:19]Read from MH i2c: E2 [17:54:19]MH_I2C_Read... [17:54:19]Read from MH i2c: E2 17 00 [17:54:19]MH_I2C_Read... [17:54:19]Read from MH i2c: E2 17 00 D6 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C0 [17:54:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:54:19]wFMCommunicate OK [17:54:19]requested_item fd.num is exist - process it [17:54:19]SAM_PROTO_GetFieldsCounters [17:54:19]wFMCommunicate request_size=4 [17:54:19]MH_SAM_APDU [17:54:19]CAPDU: 80 13 00 00 [17:54:19]Write to MH i2c: E2 08 00 D7 1A 80 13 00 00 00 00 00 00 6D [17:54:19]Write i2c OK [17:54:19]MH_I2C_Read... [17:54:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:54:19]Read from MH i2c: E2 [17:54:19]MH_I2C_Read... [17:54:19]Read from MH i2c: E2 62 00 [17:54:19]MH_I2C_Read... [17:54:19]Read from MH i2c: E2 62 00 D7 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CF 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [17:54: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CF 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:54:19]wFMCommunicate OK [17:54:19]SAM_PROTO_GetFieldsCounters done [17:54:19]requested_item shift.num is exist - process it [17:54:19]requested_item shift.opened is exist - process it [17:54:19]req_shift_opened [17:54:19]FM_GetShiftState [17:54:19]SAM_PROTO_GetShiftState [17:54:19]wFMCommunicate request_size=4 [17:54:19]MH_SAM_APDU [17:54:19]CAPDU: 80 13 01 00 [17:54:19]Write to MH i2c: E2 08 00 D8 1A 80 13 01 00 00 00 00 00 6F [17:54:19]Write i2c OK [17:54:19]MH_I2C_Read... [17:54:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:19]Read from MH i2c: E2 [17:54:19]MH_I2C_Read... [17:54:19]Read from MH i2c: E2 0E 00 [17:54:19]MH_I2C_Read... [17:54:19]Read from MH i2c: E2 0E 00 D8 1A 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 1B [17:54:19]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [17:54:19]wFMCommunicate OK [17:54:19]SAM_PROTO_GetShiftState done [17:54:19]FM_GetShiftState done [17:54:19]req_shift_opened done [17:54:19]requested_item shift.open_date is exist - process it [17:54:19]req_shift_open_date [17:54:19]req_shift_open_date done [17:54:19]produce_requested_data done [17:54:19]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67535,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [17:54:19]process_action_free close_receipt [17:54:19]json_value_free [17:54:19]json_value_free done [17:54:19]process_json_proto returns [17:54:19]Send response to host [17:54:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67535,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [17:54:19]free response buf [17:54:19]execute_script done [17:54:19]execute_script returns [17:54:19]free content buf [17:54:19]Sock 8.Close socket [17:54:19]Sock 8.Thread stoped [17:54:21]OFD Sender: No OFD packet to send [17:54:26]OFD Sender: No OFD packet to send [17:54:31]OFD Sender: No OFD packet to send [17:54:36]OFD Sender: No OFD packet to send [17:54:41]OFD Sender: No OFD packet to send [17:54:46]OFD Sender: No OFD packet to send [17:54:51]OFD Sender: No OFD packet to send [17:54:56]OFD Sender: No OFD packet to send [17:55:01]OFD Sender: No OFD packet to send [17:55:06]OFD Sender: No OFD packet to send [17:55:11]OFD Sender: No OFD packet to send [17:55:16]OFD Sender: No OFD packet to send [17:55:21]OFD Sender: No OFD packet to send [17:55:26]OFD Sender: No OFD packet to send [17:55:31]OFD Sender: No OFD packet to send [17:55:36]OFD Sender: No OFD packet to send [17:55:41]OFD Sender: No OFD packet to send [17:55:46]OFD Sender: No OFD packet to send [17:55:51]OFD Sender: No OFD packet to send [17:55:56]OFD Sender: No OFD packet to send [17:56:01]OFD Sender: No OFD packet to send [17:56:06]OFD Sender: No OFD packet to send [17:56:11]OFD Sender: No OFD packet to send [17:56:16]OFD Sender: No OFD packet to send [17:56:21]OFD Sender: No OFD packet to send [17:56:26]OFD Sender: No OFD packet to send [17:56:31]OFD Sender: No OFD packet to send [17:56:36]OFD Sender: No OFD packet to send [17:56:41]OFD Sender: No OFD packet to send [17:56:46]OFD Sender: No OFD packet to send [17:56:51]OFD Sender: No OFD packet to send [17:56:56]OFD Sender: No OFD packet to send [17:57:01]OFD Sender: No OFD packet to send [17:57:06]OFD Sender: No OFD packet to send [17:57:10]accept exits with 9 [17:57:10]New connection [17:57:10]New thread 3067039076 created [17:57:10]Thread 3067182436 joined [17:57:10]Waiting for new connection... [17:57:10] Sock 9.Parse request [17:57:10]Sock 9.Check first char [17:57:10]Sock 9.First char is OK [17:57:10]request: POST /json_proto HTTP/1.0 [17:57:10]Method: POST [17:57:10]URL: /json_proto [17:57:10]Method is POST - this is cgi request [17:57:10]url: /json_proto [17:57:10]query_string will be loaded in cgi processing [17:57:10]execute_cgi json_proto POST (null) [17:57:10]execute_cgi path=json_proto method=POST [17:57:10]POST find Content-Length [17:57:10]Host: 172.17.41.195:8080 [17:57:10]Content-Length: 816 [17:57:10]Content-Type: application/json [17:57:10] [17:57:10]POST finish read [17:57:10]Found Content-Length = 816 [17:57:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507598", "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" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:10]execute_script... [17:57: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)507598", "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" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:10]POST & json_proto [17:57:10]process_json_proto [17:57:10]json parsed OK: [17:57:10]protocol is kg_v1.0 [17:57:10]action value=close_receipt [17:57:10]process_action close_receipt [17:57:10]cmd_close_receipt [17:57:10]MH_GetDate [17:57:10]Write to MH i2c: F0 00 00 D9 1A E2 [17:57:10]Write i2c OK [17:57:10]MH_I2C_Read... [17:57:10]Read from MH i2c: F0 [17:57:10]MH_I2C_Read... [17:57:10]Read from MH i2c: F0 09 00 [17:57:10]MH_I2C_Read... [17:57:10]Read from MH i2c: F0 09 00 D9 1A 00 F8 48 46 66 FC 21 6F 64 C7 [17:57:10]GetLastDocTimeStamp 1715882055 [17:57:10]current date 1715882232 [17:57:10]FM_GetShiftState [17:57:10]SAM_PROTO_GetShiftState [17:57:10]wFMCommunicate request_size=4 [17:57:10]MH_SAM_APDU [17:57:10]CAPDU: 80 13 01 00 [17:57:10]Write to MH i2c: E2 08 00 DA 1A 80 13 01 00 00 00 00 00 71 [17:57:10]Write i2c OK [17:57:10]MH_I2C_Read... [17:57:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:10]Read from MH i2c: E2 [17:57:10]MH_I2C_Read... [17:57:10]Read from MH i2c: E2 0E 00 [17:57:10]MH_I2C_Read... [17:57:10]Read from MH i2c: E2 0E 00 DA 1A 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 1D [17:57:10]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [17:57:10]wFMCommunicate OK [17:57:10]SAM_PROTO_GetShiftState done [17:57:10]FM_GetShiftState done [17:57:10]opened in 1715818916 [17:57:10]opened+sec_in_day 1715905316 [17:57:10]quantity*price = 100023 [17:57:10]sum+1 = 100024 [17:57:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.23 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.23 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 134 16.05.2024 17:57 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67536 ФПД: 186242472140230 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T175712&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67536&fm=186242472140230&tin=02508201610067®Number=0000000000091845&sum=100023 [17:57:12]StoreToDocumentArchive [17:57:12]shift 357 fd 67536 [17:57:12]save to /storage/0357/doc_00067536 [17:57:12]save last doc name /storage/0357/doc_00067536 to /storage/kkm_last_doc_name [17:57:12]save OK [17:57:12]Clear old archive folders... [17:57:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:57:12]tlvbuf is 017EB7D0 [17:57:12]SAM_PROTO_ClearQueue [17:57:12]wFMCommunicate request_size=4 [17:57:12]MH_SAM_APDU [17:57:12]CAPDU: 80 09 00 00 [17:57:12]Write to MH i2c: E2 08 00 E7 1A 80 09 00 00 00 00 00 00 73 [17:57:12]Write i2c OK [17:57:12]MH_I2C_Read... [17:57:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:57:12]Read from MH i2c: E2 [17:57:12]MH_I2C_Read... [17:57:12]Read from MH i2c: E2 03 00 [17:57:12]MH_I2C_Read... [17:57:12]Read from MH i2c: E2 03 00 E7 1A 00 90 00 75 [17:57:12]RAPDU: 90 00 [17:57:12]wFMCommunicate OK [17:57:12]SAM_PROTO_ClearQueue done [17:57:12]KKMCreateOFDPacket [17:57:12]OFDProtocolAddRootSTLVToBuf [17:57:12]FM_MakeSignedData [17:57:12]FM_MakeSignedData [17:57:12]SAM_PROTO_SignData [17:57:12]wFMCommunicate request_size=4 [17:57:12]MH_SAM_APDU [17:57:12]CAPDU: 80 0D 01 02 [17:57:12]Write to MH i2c: E2 08 00 E8 1A 80 0D 01 02 00 00 00 00 7B [17:57:12]Write i2c OK [17:57:12]MH_I2C_Read... [17:57:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:57:12]Read from MH i2c: E2 [17:57:12]MH_I2C_Read... [17:57:12]Read from MH i2c: E2 03 00 [17:57:12]MH_I2C_Read... [17:57:12]Read from MH i2c: E2 03 00 E8 1A 00 90 00 76 [17:57:12]RAPDU: 90 00 [17:57:12]wFMCommunicate OK [17:57:12]wFMCommunicate request_size=255 [17:57:12]MH_SAM_APDU [17:57: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 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 F8 48 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D0 07 01 00 35 04 06 00 A9 62 F4 64 [17:57:12]Write to MH i2c: E2 02 01 E9 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 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 F8 48 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D0 07 01 00 35 04 06 00 A9 62 F4 64 00 00 96 [17:57:12]Write i2c OK [17:57:12]MH_I2C_Read... [17:57:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:12]Read from MH i2c: E2 [17:57:12]MH_I2C_Read... [17:57:12]Read from MH i2c: E2 03 00 [17:57:12]MH_I2C_Read... [17:57:12]Read from MH i2c: E2 03 00 E9 1A 00 90 00 77 [17:57:12]RAPDU: 90 00 [17:57:12]wFMCommunicate OK [17:57:12]wFMCommunicate request_size=7 [17:57:12]MH_SAM_APDU [17:57:12]CAPDU: 80 0D 02 02 02 DD C6 [17:57:12]Write to MH i2c: E2 0A 00 EA 1A 80 0D 02 02 02 00 DD C6 00 00 25 [17:57:12]Write i2c OK [17:57:12]MH_I2C_Read... [17:57:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:12]Read from MH i2c: E2 [17:57:12]MH_I2C_Read... [17:57:12]Read from MH i2c: E2 03 00 [17:57:12]MH_I2C_Read... [17:57:12]Read from MH i2c: E2 03 00 EA 1A 00 90 00 78 [17:57:12]RAPDU: 90 00 [17:57:12]wFMCommunicate OK [17:57:12]wFMCommunicate request_size=4 [17:57:12]MH_SAM_APDU [17:57:12]CAPDU: 80 0D 03 02 [17:57:12]Write to MH i2c: E2 08 00 EB 1A 80 0D 03 02 00 00 00 00 80 [17:57:12]Write i2c OK [17:57:12]MH_I2C_Read... [17:57:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:57:12]Read from MH i2c: E2 [17:57:12]MH_I2C_Read... [17:57:12]Read from MH i2c: E2 0B 00 [17:57:12]MH_I2C_Read... [17:57:12]Read from MH i2c: E2 0B 00 EB 1A 00 33 05 7E 67 9C 42 C8 B1 90 00 F5 [17:57:12]RAPDU: 33 05 7E 67 9C 42 C8 B1 90 00 [17:57:12]wFMCommunicate OK [17:57:12]SAM_PROTO_SignData done [17:57:12]FM_MakeSignedData done [17:57:12]CreateOFDProtocolMessage [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 EC 1A 80 11 00 00 00 00 00 00 80 [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 EC 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D6 [17:57:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:57:12]wFMCommunicate OK [17:57:12]CreateOFDProtocolMessage done [17:57:12]OFDSenderStorePacket 67536 [17:57:12]StoreOFDPacket docnum=67536 [17:57:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 05 04 04 01 1F BD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 F8 48 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D0 07 01 00 35 04 06 00 A9 62 F4 64 DD C6 33 05 7E 67 9C 42 C8 B1 [17:57:12]CheckFolder [17:57:12]dirname=/storage/ofd_packets [17:57:12]CheckFolder done [17:57:12]ProducePacketName [17:57:12]name=ofd_packets/00067536 [17:57:12]NVStorageSaveData ofd_packets/00067536 [17:57:12]File name is /storage/ofd_packets/00067536 [17:57:12]Write 298 bytes [17:57:12]NVStorageSaveData done [17:57:12]OFDSenderStorePacket done [17:57:12]KKMCreateOFDPacket done [17:57:12]NVStorageSaveData kkm_last_timestamp [17:57:12]File name is /storage/kkm_last_timestamp [17:57:12]Write 4 bytes [17:57:12]NVStorageSaveData done [17:57:12]ExternCall_PrintAddStr [17:57:12]wPrintStart [17:57:12]Write to MH i2c: 01 00 00 ED 1A 07 [17:57:12]Write i2c OK [17:57:12]MH_I2C_Read... [17:57:12]Read from MH i2c: 01 [17:57:12]MH_I2C_Read... [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 ED 1A 00 00 00 00 00 FF 0F 1C [17:57:12]RasterBufferAndPrint [17:57:12]line Счет N : (1)507598 [17:57:12]line ИНН: 02508201610067 [17:57:12]line Контрольно-Кассовый Чек [17:57:12]line ПРОДАЖА [17:57:12]line ТРК (МРК, ГНК) : 41 [17:57:12]line Товар: 2710194210 [17:57:12]line ДТ-К-5 [17:57:12]line 13.390 * 74.70 [17:57:12]line = 1000.23 [17:57:12]line НДС 12% НСП 1% [17:57:12]line > о реализуемом товаре [17:57:12]line ИТОГО: 1000.23 [17:57:12]line НСП 1% : 8.85 [17:57:12]line НДС 12% : 106.22 [17:57:12]line Наличными: 0.00 [17:57:12]line Безнал.: 1000.23 [17:57:12]line Место: АЗС № 91 "Партнер Нефть" [17:57:12]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:57:12]line СНО: Общий режим [17:57:12]line Чек 134 16.05.2024 17:57 [17:57:12]line Смена: 357 ФФД: 1.0 [17:57:12]line ЗНМ: 0300000119 [17:57:12]line РНМ: 0000000000091845 [17:57:12]line Версия ККМ: 001 [17:57:12]line Платежная система: Бакай Банк [17:57:12]line ФМ: 0000000000871829 [17:57:12]line ФД: 67536 [17:57:12]line ФПД: 186242472140230 [17:57:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T175712&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67536&fm=186242472140230&tin=02508201610067®Number=0000000000091845&sum=100023 [17:57:12]OFD Sender: Processing packet 67536 [packets to send 35, broken 34] [17:57:12]ProducePacketName [17:57:12]name=ofd_packets/00067536 [17:57:12]OFD Sender: To server: pG, [17:57:12]CommunicateWithHost lk.salyk.kg:30040 [17:57:12]ConnectInit lk.salyk.kg [17:57:12]written 0, free lines is 4095 [17:57:12]Connected sock=8 [17:57: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 38 32 39 0C 01 00 00 05 04 04 01 1F BD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 F8 48 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D0 07 01 00 35 04 06 00 A9 62 F4 64 DD C6 33 05 7E 67 9C 42 C8 B1 [17:57:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 C5 C8 47 00 05 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D0 07 01 00 F4 03 04 00 D2 F0 45 66 B6 04 01 00 00 09 B3 E9 9F 67 09 06 C4 [17:57:13]CommunicateWithHost err = 0 [17:57:13]CheckOFDResponse [17:57:13]1017 (14) - 77093643461234 [17:57:13]1041 (16) - 0000000000871829 [17:57:13]1040 (4) - 67536 [17:57:13]1012 (4) - 16.05.2024 11:41 [17:57:13]1206 (1) - 0 [17:57:13]OFD Sender: Remove packet 67536 [17:57:13]ProducePacketName [17:57:13]name=ofd_packets/00067536 [17:57:13]NVStorageDeleteData [17:57:13]Write to MH i2c: 01 00 00 16 1B 31 [17:57:13]Write i2c OK [17:57:13]MH_I2C_Read... [17:57:13]Read from MH i2c: 01 [17:57:13]MH_I2C_Read... [17:57:13]Read from MH i2c: 01 07 00 [17:57:13]MH_I2C_Read... [17:57:13]Read from MH i2c: 01 07 00 16 1B 00 00 00 00 00 DE 0C 22 [17:57:13]RasterBufferAndPrint [17:57:13]line [17:57:13]line [17:57:13]line [17:57:13]line [17:57:13]line [17:57:13]written 0, free lines is 3300 [17:57:13]MH_Cut [17:57:13]Write to MH i2c: D1 01 00 1D 1B 01 0A [17:57:13]Write i2c OK [17:57:13]MH_I2C_Read... [17:57:13]Read from MH i2c: D1 [17:57:13]MH_I2C_Read... [17:57:13]Read from MH i2c: D1 01 00 [17:57:13]MH_I2C_Read... [17:57:13]Read from MH i2c: D1 01 00 1D 1B 00 09 [17:57:13]Write to MH i2c: 01 00 00 1E 1B 39 [17:57:13]Write i2c OK [17:57:13]MH_I2C_Read... [17:57:13]OFD Sender: No OFD packet to send [17:57:14]*** Cut start [17:57:14]*** Purtial cut [17:57:14]*** Stage 1: CUTSNS_PIN = 1 [17:57:14]Read from MH i2c: 01 [17:57:14]MH_I2C_Read... [17:57:14]*** Stop cut motor [17:57:14]*** Cut end [17:57:14]Read from MH i2c: 01 07 00 [17:57:14]MH_I2C_Read... [17:57:14]Read from MH i2c: 01 07 00 1E 1B 00 00 00 00 00 FF 0F 4E [17:57:14]process_action close_receipt done [17:57:14]requested_data is exist [17:57:14]produce_requested_data [17:57:14]requested_item fm.sn is exist - process it [17:57:14]wFMCommunicate request_size=4 [17:57:14]MH_SAM_APDU [17:57:14]CAPDU: 80 11 00 00 [17:57:14]Write to MH i2c: E2 08 00 1F 1B 80 11 00 00 00 00 00 00 B4 [17:57:14]Write i2c OK [17:57:14]MH_I2C_Read... [17:57:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:14]Read from MH i2c: E2 [17:57:14]MH_I2C_Read... [17:57:14]Read from MH i2c: E2 17 00 [17:57:14]MH_I2C_Read... [17:57:14]Read from MH i2c: E2 17 00 1F 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0A [17:57:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:57:14]wFMCommunicate OK [17:57:14]requested_item fd.num is exist - process it [17:57:14]SAM_PROTO_GetFieldsCounters [17:57:14]wFMCommunicate request_size=4 [17:57:14]MH_SAM_APDU [17:57:14]CAPDU: 80 13 00 00 [17:57:14]Write to MH i2c: E2 08 00 20 1B 80 13 00 00 00 00 00 00 B7 [17:57:14]Write i2c OK [17:57:14]MH_I2C_Read... [17:57:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:57:14]Read from MH i2c: E2 [17:57:14]MH_I2C_Read... [17:57:14]Read from MH i2c: E2 62 00 [17:57:14]MH_I2C_Read... [17:57:14]Read from MH i2c: E2 62 00 20 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D0 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [17:57: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D0 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:57:14]wFMCommunicate OK [17:57:14]SAM_PROTO_GetFieldsCounters done [17:57:14]requested_item shift.num is exist - process it [17:57:14]requested_item shift.opened is exist - process it [17:57:14]req_shift_opened [17:57:14]FM_GetShiftState [17:57:14]SAM_PROTO_GetShiftState [17:57:14]wFMCommunicate request_size=4 [17:57:14]MH_SAM_APDU [17:57:14]CAPDU: 80 13 01 00 [17:57:14]Write to MH i2c: E2 08 00 21 1B 80 13 01 00 00 00 00 00 B9 [17:57:14]Write i2c OK [17:57:14]MH_I2C_Read... [17:57:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:14]Read from MH i2c: E2 [17:57:14]MH_I2C_Read... [17:57:14]Read from MH i2c: E2 0E 00 [17:57:14]MH_I2C_Read... [17:57:14]Read from MH i2c: E2 0E 00 21 1B 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 65 [17:57:14]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [17:57:14]wFMCommunicate OK [17:57:14]SAM_PROTO_GetShiftState done [17:57:14]FM_GetShiftState done [17:57:14]req_shift_opened done [17:57:14]requested_item shift.open_date is exist - process it [17:57:14]req_shift_open_date [17:57:14]req_shift_open_date done [17:57:14]produce_requested_data done [17:57:14]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67536,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [17:57:14]process_action_free close_receipt [17:57:14]json_value_free [17:57:14]json_value_free done [17:57:14]process_json_proto returns [17:57:14]Send response to host [17:57:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67536,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [17:57:14]free response buf [17:57:14]execute_script done [17:57:14]execute_script returns [17:57:14]free content buf [17:57:14]Sock 9.Close socket [17:57:14]Sock 9.Thread stoped [17:57:18]OFD Sender: No OFD packet to send [17:57:23]OFD Sender: No OFD packet to send [17:57:28]OFD Sender: No OFD packet to send [17:57:33]OFD Sender: No OFD packet to send [17:57:38]OFD Sender: No OFD packet to send [17:57:43]OFD Sender: No OFD packet to send [17:57:48]OFD Sender: No OFD packet to send [17:57:53]OFD Sender: No OFD packet to send [17:57:58]OFD Sender: No OFD packet to send [17:58:03]OFD Sender: No OFD packet to send [17:58:08]OFD Sender: No OFD packet to send [17:58:13]OFD Sender: No OFD packet to send [17:58:18]OFD Sender: No OFD packet to send [17:58:23]OFD Sender: No OFD packet to send [17:58:28]OFD Sender: No OFD packet to send [17:58:33]OFD Sender: No OFD packet to send [17:58:38]OFD Sender: No OFD packet to send [17:58:43]OFD Sender: No OFD packet to send [17:58:48]OFD Sender: No OFD packet to send [17:58:53]OFD Sender: No OFD packet to send [17:58:58]OFD Sender: No OFD packet to send [17:59:03]OFD Sender: No OFD packet to send [17:59:08]OFD Sender: No OFD packet to send [17:59:13]OFD Sender: No OFD packet to send [17:59:18]OFD Sender: No OFD packet to send [17:59:23]OFD Sender: No OFD packet to send [17:59:28]OFD Sender: No OFD packet to send [17:59:33]OFD Sender: No OFD packet to send [17:59:38]OFD Sender: No OFD packet to send [17:59:43]OFD Sender: No OFD packet to send [17:59:48]OFD Sender: No OFD packet to send [17:59:53]OFD Sender: No OFD packet to send [17:59:58]OFD Sender: No OFD packet to send [18:00:03]OFD Sender: No OFD packet to send [18:00:08]OFD Sender: No OFD packet to send [18:00:13]OFD Sender: No OFD packet to send [18:00:18]OFD Sender: No OFD packet to send [18:00:23]OFD Sender: No OFD packet to send [18:00:28]OFD Sender: No OFD packet to send [18:00:33]OFD Sender: No OFD packet to send [18:00:38]OFD Sender: No OFD packet to send [18:00:43]OFD Sender: No OFD packet to send [18:00:45]accept exits with 10 [18:00:45]New connection [18:00:45]New thread 3067182436 created [18:00:45]Thread 3067039076 joined [18:00:45]Waiting for new connection... [18:00:45] Sock 10.Parse request [18:00:45]Sock 10.Check first char [18:00:45]Sock 10.First char is OK [18:00:45]request: POST /json_proto HTTP/1.0 [18:00:45]Method: POST [18:00:45]URL: /json_proto [18:00:45]Method is POST - this is cgi request [18:00:45]url: /json_proto [18:00:45]query_string will be loaded in cgi processing [18:00:45]execute_cgi json_proto POST (null) [18:00:45]execute_cgi path=json_proto method=POST [18:00:45]POST find Content-Length [18:00:45]Host: 172.17.41.195:8080 [18:00:45]Content-Length: 670 [18:00:45]Content-Type: application/json [18:00:45] [18:00:45]POST finish read [18:00:45]Found Content-Length = 670 [18:00:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507599", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:00:45]execute_script... [18:00: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)507599", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:00:45]POST & json_proto [18:00:45]process_json_proto [18:00:45]json parsed OK: [18:00:45]protocol is kg_v1.0 [18:00:45]action value=close_receipt [18:00:45]process_action close_receipt [18:00:45]cmd_close_receipt [18:00:45]MH_GetDate [18:00:45]Write to MH i2c: F0 00 00 22 1B 2C [18:00:45]Write i2c OK [18:00:45]MH_I2C_Read... [18:00:45]Read from MH i2c: F0 [18:00:45]MH_I2C_Read... [18:00:45]Read from MH i2c: F0 09 00 [18:00:45]MH_I2C_Read... [18:00:45]Read from MH i2c: F0 09 00 22 1B 00 CF 49 46 66 FC 21 6F 64 E9 [18:00:45]GetLastDocTimeStamp 1715882232 [18:00:45]current date 1715882447 [18:00:45]FM_GetShiftState [18:00:45]SAM_PROTO_GetShiftState [18:00:45]wFMCommunicate request_size=4 [18:00:45]MH_SAM_APDU [18:00:45]CAPDU: 80 13 01 00 [18:00:45]Write to MH i2c: E2 08 00 23 1B 80 13 01 00 00 00 00 00 BB [18:00:45]Write i2c OK [18:00:45]MH_I2C_Read... [18:00:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:45]Read from MH i2c: E2 [18:00:45]MH_I2C_Read... [18:00:45]Read from MH i2c: E2 0E 00 [18:00:45]MH_I2C_Read... [18:00:45]Read from MH i2c: E2 0E 00 23 1B 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 67 [18:00:45]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [18:00:45]wFMCommunicate OK [18:00:45]SAM_PROTO_GetShiftState done [18:00:45]FM_GetShiftState done [18:00:45]opened in 1715818916 [18:00:45]opened+sec_in_day 1715905316 [18:00:45]quantity*price = 60003 [18:00:45]sum+1 = 60004 [18:00:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 135 16.05.2024 18:00 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67537 ФПД: 24166773790694 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T180047&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67537&fm=24166773790694&tin=02508201610067®Number=0000000000091845&sum=60000 [18:00:46]StoreToDocumentArchive [18:00:46]shift 357 fd 67537 [18:00:46]save to /storage/0357/doc_00067537 [18:00:46]save last doc name /storage/0357/doc_00067537 to /storage/kkm_last_doc_name [18:00:46]save OK [18:00:46]Clear old archive folders... [18:00:46]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:00:46]tlvbuf is 0177E2E0 [18:00:46]SAM_PROTO_ClearQueue [18:00:46]wFMCommunicate request_size=4 [18:00:46]MH_SAM_APDU [18:00:46]CAPDU: 80 09 00 00 [18:00:46]Write to MH i2c: E2 08 00 30 1B 80 09 00 00 00 00 00 00 BD [18:00:46]Write i2c OK [18:00:46]MH_I2C_Read... [18:00:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:00:46]Read from MH i2c: E2 [18:00:46]MH_I2C_Read... [18:00:46]Read from MH i2c: E2 03 00 [18:00:46]MH_I2C_Read... [18:00:46]Read from MH i2c: E2 03 00 30 1B 00 90 00 BF [18:00:46]RAPDU: 90 00 [18:00:46]wFMCommunicate OK [18:00:46]SAM_PROTO_ClearQueue done [18:00:46]KKMCreateOFDPacket [18:00:46]OFDProtocolAddRootSTLVToBuf [18:00:46]FM_MakeSignedData [18:00:46]FM_MakeSignedData [18:00:46]SAM_PROTO_SignData [18:00:46]wFMCommunicate request_size=4 [18:00:46]MH_SAM_APDU [18:00:46]CAPDU: 80 0D 01 02 [18:00:46]Write to MH i2c: E2 08 00 31 1B 80 0D 01 02 00 00 00 00 C5 [18:00:46]Write i2c OK [18:00:46]MH_I2C_Read... [18:00:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:00:46]Read from MH i2c: E2 [18:00:46]MH_I2C_Read... [18:00:46]Read from MH i2c: E2 03 00 [18:00:46]MH_I2C_Read... [18:00:46]Read from MH i2c: E2 03 00 31 1B 00 90 00 C0 [18:00:46]RAPDU: 90 00 [18:00:46]wFMCommunicate OK [18:00:46]wFMCommunicate request_size=255 [18:00:46]MH_SAM_APDU [18:00:46]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 87 00 00 00 F4 03 04 00 CF 49 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D1 07 01 00 35 04 06 00 [18:00:46]Write to MH i2c: E2 02 01 32 1B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 87 00 00 00 F4 03 04 00 CF 49 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D1 07 01 00 35 04 06 00 00 00 C4 [18:00:46]Write i2c OK [18:00:46]MH_I2C_Read... [18:00:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:00:47]Read from MH i2c: E2 [18:00:47]MH_I2C_Read... [18:00:47]Read from MH i2c: E2 03 00 [18:00:47]MH_I2C_Read... [18:00:47]Read from MH i2c: E2 03 00 32 1B 00 90 00 C1 [18:00:47]RAPDU: 90 00 [18:00:47]wFMCommunicate OK [18:00:47]wFMCommunicate request_size=11 [18:00:47]MH_SAM_APDU [18:00:47]CAPDU: 80 0D 02 02 06 15 FA C3 F7 97 E6 [18:00:47]Write to MH i2c: E2 0E 00 33 1B 80 0D 02 02 06 00 15 FA C3 F7 97 E6 00 00 1A [18:00:47]Write i2c OK [18:00:47]MH_I2C_Read... [18:00:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:00:47]Read from MH i2c: E2 [18:00:47]MH_I2C_Read... [18:00:47]Read from MH i2c: E2 03 00 [18:00:47]MH_I2C_Read... [18:00:47]Read from MH i2c: E2 03 00 33 1B 00 90 00 C2 [18:00:47]RAPDU: 90 00 [18:00:47]wFMCommunicate OK [18:00:47]wFMCommunicate request_size=4 [18:00:47]MH_SAM_APDU [18:00:47]CAPDU: 80 0D 03 02 [18:00:47]Write to MH i2c: E2 08 00 34 1B 80 0D 03 02 00 00 00 00 CA [18:00:47]Write i2c OK [18:00:47]MH_I2C_Read... [18:00:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:00:47]Read from MH i2c: E2 [18:00:47]MH_I2C_Read... [18:00:47]Read from MH i2c: E2 0B 00 [18:00:47]MH_I2C_Read... [18:00:47]Read from MH i2c: E2 0B 00 34 1B 00 00 51 34 E9 74 8D 4A 5B 90 00 DF [18:00:47]RAPDU: 00 51 34 E9 74 8D 4A 5B 90 00 [18:00:47]wFMCommunicate OK [18:00:47]SAM_PROTO_SignData done [18:00:47]FM_MakeSignedData done [18:00:47]CreateOFDProtocolMessage [18:00:47]wFMCommunicate request_size=4 [18:00:47]MH_SAM_APDU [18:00:47]CAPDU: 80 11 00 00 [18:00:47]Write to MH i2c: E2 08 00 35 1B 80 11 00 00 00 00 00 00 CA [18:00:47]Write i2c OK [18:00:47]MH_I2C_Read... [18:00:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:47]Read from MH i2c: E2 [18:00:47]MH_I2C_Read... [18:00:47]Read from MH i2c: E2 17 00 [18:00:47]MH_I2C_Read... [18:00:47]Read from MH i2c: E2 17 00 35 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 20 [18:00:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:00:47]wFMCommunicate OK [18:00:47]CreateOFDProtocolMessage done [18:00:47]OFDSenderStorePacket 67537 [18:00:47]StoreOFDPacket docnum=67537 [18:00:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 BA 49 08 01 90 55 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 87 00 00 00 F4 03 04 00 CF 49 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D1 07 01 00 35 04 06 00 15 FA C3 F7 97 E6 00 51 34 E9 74 8D 4A 5B [18:00:47]CheckFolder [18:00:47]dirname=/storage/ofd_packets [18:00:47]CheckFolder done [18:00:47]ProducePacketName [18:00:47]name=ofd_packets/00067537 [18:00:47]NVStorageSaveData ofd_packets/00067537 [18:00:47]File name is /storage/ofd_packets/00067537 [18:00:47]Write 302 bytes [18:00:47]NVStorageSaveData done [18:00:47]OFDSenderStorePacket done [18:00:47]KKMCreateOFDPacket done [18:00:47]NVStorageSaveData kkm_last_timestamp [18:00:47]File name is /storage/kkm_last_timestamp [18:00:47]Write 4 bytes [18:00:47]NVStorageSaveData done [18:00:47]ExternCall_PrintAddStr [18:00:47]wPrintStart [18:00:47]Write to MH i2c: 01 00 00 36 1B 51 [18:00:47]Write i2c OK [18:00:47]MH_I2C_Read... [18:00:47]Read from MH i2c: 01 [18:00:47]MH_I2C_Read... [18:00:47]Read from MH i2c: 01 07 00 [18:00:47]MH_I2C_Read... [18:00:47]Read from MH i2c: 01 07 00 36 1B 00 00 00 00 00 FF 0F 66 [18:00:47]RasterBufferAndPrint [18:00:47]line Счет N : (1)507599 [18:00:47]line ИНН: 02508201610067 [18:00:47]line Контрольно-Кассовый Чек [18:00:47]line ПРОДАЖА [18:00:47]line ТРК (МРК, ГНК) : 32 [18:00:47]line Товар: 2710124130 [18:00:47]line Super-92-К-5 [18:00:47]line 8.850 * 67.80 [18:00:47]line = 600.03 [18:00:47]line НДС 12% НСП 1% [18:00:47]line > о реализуемом товаре [18:00:47]line ОКРУГЛЕНИЕ: -0.03 [18:00:47]line ИТОГО: 600.00 [18:00:47]line Внесено: 600.00 [18:00:47]line СДАЧА: 0.00 [18:00:47]line НСП 1% : 5.31 [18:00:47]line НДС 12% : 63.72 [18:00:47]line Наличными: 600.00 [18:00:47]line Безнал.: 0.00 [18:00:47]line Место: АЗС № 91 "Партнер Нефть" [18:00:47]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:00:47]line СНО: Общий режим [18:00:47]line Чек 135 16.05.2024 18:00 [18:00:47]line Смена: 357 ФФД: 1.0 [18:00:47]line ЗНМ: 0300000119 [18:00:47]line РНМ: 0000000000091845 [18:00:47]line Версия ККМ: 001 [18:00:47]line ФМ: 0000000000871829 [18:00:47]line ФД: 67537 [18:00:47]line ФПД: 24166773790694 [18:00:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T180047&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67537&fm=24166773790694&tin=02508201610067®Number=0000000000091845&sum=60000 [18:00:47]written 0, free lines is 4095 [18:00:47]OFD Sender: Processing packet 67537 [packets to send 35, broken 34] [18:00:47]ProducePacketName [18:00:47]name=ofd_packets/00067537 [18:00:47]OFD Sender: To server: pG, [18:00:47]CommunicateWithHost lk.salyk.kg:30040 [18:00:47]ConnectInit lk.salyk.kg [18:00:47]Connected sock=11 [18:00: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 38 32 39 10 01 00 00 BA 49 08 01 90 55 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 87 00 00 00 F4 03 04 00 CF 49 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D1 07 01 00 35 04 06 00 15 FA C3 F7 97 E6 00 51 34 E9 74 8D 4A 5B [18:00:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 16 DD 47 00 15 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 38 32 39 10 04 04 00 D1 07 01 00 F4 03 04 00 A9 F1 45 66 B6 04 01 00 00 B2 95 6E F4 40 CB 5A B7 [18:00:47]CommunicateWithHost err = 0 [18:00:47]CheckOFDResponse [18:00:47]1017 (14) - 77093643461234 [18:00:47]1041 (16) - 0000000000871829 [18:00:47]1040 (4) - 67537 [18:00:47]1012 (4) - 16.05.2024 11:44 [18:00:47]1206 (1) - 0 [18:00:47]OFD Sender: Remove packet 67537 [18:00:47]ProducePacketName [18:00:47]name=ofd_packets/00067537 [18:00:47]NVStorageDeleteData [18:00:47]Write to MH i2c: 01 00 00 60 1B 7B [18:00:47]Write i2c OK [18:00:47]MH_I2C_Read... [18:00:47]Read from MH i2c: 01 [18:00:47]MH_I2C_Read... [18:00:47]Read from MH i2c: 01 07 00 [18:00:47]MH_I2C_Read... [18:00:47]Read from MH i2c: 01 07 00 60 1B 00 00 00 00 00 DA 0C 68 [18:00:47]RasterBufferAndPrint [18:00:47]line [18:00:47]line [18:00:47]line [18:00:47]line [18:00:47]line [18:00:47]written 0, free lines is 3296 [18:00:47]MH_Cut [18:00:47]Write to MH i2c: D1 01 00 67 1B 01 54 [18:00:47]Write i2c OK [18:00:47]MH_I2C_Read... [18:00:47]Read from MH i2c: D1 [18:00:47]MH_I2C_Read... [18:00:47]Read from MH i2c: D1 01 00 [18:00:47]MH_I2C_Read... [18:00:47]Read from MH i2c: D1 01 00 67 1B 00 53 [18:00:47]Write to MH i2c: 01 00 00 68 1B 83 [18:00:47]Write i2c OK [18:00:47]MH_I2C_Read... [18:00:48]OFD Sender: No OFD packet to send [18:00:48]*** Cut start [18:00:48]*** Purtial cut [18:00:48]*** CUTSNS_PIN = 0 [18:00:48]*** Stage 1: CUTSNS_PIN = 1 [18:00:50]Read from MH i2c: 01 [18:00:50]MH_I2C_Read... [18:00:50]*** Stop cut motor [18:00:50]*** Cut end [18:00:50]Read from MH i2c: 01 07 00 [18:00:50]MH_I2C_Read... [18:00:50]Read from MH i2c: 01 07 00 68 1B 00 00 00 00 00 FF 0F 98 [18:00:50]process_action close_receipt done [18:00:50]requested_data is exist [18:00:50]produce_requested_data [18:00:50]requested_item fm.sn is exist - process it [18:00:50]wFMCommunicate request_size=4 [18:00:50]MH_SAM_APDU [18:00:50]CAPDU: 80 11 00 00 [18:00:50]Write to MH i2c: E2 08 00 69 1B 80 11 00 00 00 00 00 00 FE [18:00:50]Write i2c OK [18:00:50]MH_I2C_Read... [18:00:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:50]Read from MH i2c: E2 [18:00:50]MH_I2C_Read... [18:00:50]Read from MH i2c: E2 17 00 [18:00:50]MH_I2C_Read... [18:00:50]Read from MH i2c: E2 17 00 69 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 54 [18:00:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:00:50]wFMCommunicate OK [18:00:50]requested_item fd.num is exist - process it [18:00:50]SAM_PROTO_GetFieldsCounters [18:00:50]wFMCommunicate request_size=4 [18:00:50]MH_SAM_APDU [18:00:50]CAPDU: 80 13 00 00 [18:00:50]Write to MH i2c: E2 08 00 6A 1B 80 13 00 00 00 00 00 00 01 [18:00:50]Write i2c OK [18:00:50]MH_I2C_Read... [18:00:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:00:50]Read from MH i2c: E2 [18:00:50]MH_I2C_Read... [18:00:50]Read from MH i2c: E2 62 00 [18:00:50]MH_I2C_Read... [18:00:50]Read from MH i2c: E2 62 00 6A 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D1 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [18:00:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D1 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:00:50]wFMCommunicate OK [18:00:50]SAM_PROTO_GetFieldsCounters done [18:00:50]requested_item shift.num is exist - process it [18:00:50]requested_item shift.opened is exist - process it [18:00:50]req_shift_opened [18:00:50]FM_GetShiftState [18:00:50]SAM_PROTO_GetShiftState [18:00:50]wFMCommunicate request_size=4 [18:00:50]MH_SAM_APDU [18:00:50]CAPDU: 80 13 01 00 [18:00:50]Write to MH i2c: E2 08 00 6B 1B 80 13 01 00 00 00 00 00 03 [18:00:50]Write i2c OK [18:00:50]MH_I2C_Read... [18:00:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:50]Read from MH i2c: E2 [18:00:50]MH_I2C_Read... [18:00:50]Read from MH i2c: E2 0E 00 [18:00:50]MH_I2C_Read... [18:00:50]Read from MH i2c: E2 0E 00 6B 1B 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 AF [18:00:50]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [18:00:50]wFMCommunicate OK [18:00:50]SAM_PROTO_GetShiftState done [18:00:50]FM_GetShiftState done [18:00:50]req_shift_opened done [18:00:50]requested_item shift.open_date is exist - process it [18:00:50]req_shift_open_date [18:00:50]req_shift_open_date done [18:00:50]produce_requested_data done [18:00:50]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67537,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [18:00:50]process_action_free close_receipt [18:00:50]json_value_free [18:00:50]json_value_free done [18:00:50]process_json_proto returns [18:00:50]Send response to host [18:00:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67537,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [18:00:50]free response buf [18:00:50]execute_script done [18:00:50]execute_script returns [18:00:50]free content buf [18:00:50]Sock 10.Close socket [18:00:50]Sock 10.Thread stoped [18:00:53]OFD Sender: No OFD packet to send [18:00:58]OFD Sender: No OFD packet to send [18:01:03]OFD Sender: No OFD packet to send [18:01:08]OFD Sender: No OFD packet to send [18:01:13]OFD Sender: No OFD packet to send [18:01:18]OFD Sender: No OFD packet to send [18:01:23]OFD Sender: No OFD packet to send [18:01:28]OFD Sender: No OFD packet to send [18:01:33]OFD Sender: No OFD packet to send [18:01:38]OFD Sender: No OFD packet to send [18:01:43]OFD Sender: No OFD packet to send [18:01:48]OFD Sender: No OFD packet to send [18:01:53]OFD Sender: No OFD packet to send [18:01:58]OFD Sender: No OFD packet to send [18:02:03]OFD Sender: No OFD packet to send [18:02:08]OFD Sender: No OFD packet to send [18:02:13]OFD Sender: No OFD packet to send [18:02:18]OFD Sender: No OFD packet to send [18:02:23]OFD Sender: No OFD packet to send [18:02:28]OFD Sender: No OFD packet to send [18:02:33]OFD Sender: No OFD packet to send [18:02:38]OFD Sender: No OFD packet to send [18:02:43]OFD Sender: No OFD packet to send [18:02:48]OFD Sender: No OFD packet to send [18:02:53]OFD Sender: No OFD packet to send [18:02:58]OFD Sender: No OFD packet to send [18:03:03]OFD Sender: No OFD packet to send [18:03:08]OFD Sender: No OFD packet to send [18:03:13]OFD Sender: No OFD packet to send [18:03:16]accept exits with 8 [18:03:16]New connection [18:03:16]New thread 3067039076 created [18:03:16]Thread 3067182436 joined [18:03:16]Waiting for new connection... [18:03:16] Sock 8.Parse request [18:03:16]Sock 8.Check first char [18:03:16]Sock 8.First char is OK [18:03:16]request: POST /json_proto HTTP/1.0 [18:03:16]Method: POST [18:03:16]URL: /json_proto [18:03:16]Method is POST - this is cgi request [18:03:16]url: /json_proto [18:03:16]query_string will be loaded in cgi processing [18:03:16]execute_cgi json_proto POST (null) [18:03:16]execute_cgi path=json_proto method=POST [18:03:16]POST find Content-Length [18:03:16]Host: 172.17.41.195:8080 [18:03:16]Content-Length: 679 [18:03:16]Content-Type: application/json [18:03:16] [18:03:16]POST finish read [18:03:16]Found Content-Length = 679 [18:03:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507600", "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" : 74.70, "quantity" : 16.070, "sum" : 1200.43, "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:03:16]execute_script... [18:03: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)507600", "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" : 74.70, "quantity" : 16.070, "sum" : 1200.43, "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:03:16]POST & json_proto [18:03:16]process_json_proto [18:03:16]json parsed OK: [18:03:16]protocol is kg_v1.0 [18:03:16]action value=close_receipt [18:03:16]process_action close_receipt [18:03:16]cmd_close_receipt [18:03:16]MH_GetDate [18:03:16]Write to MH i2c: F0 00 00 6C 1B 76 [18:03:16]Write i2c OK [18:03:16]MH_I2C_Read... [18:03:16]Read from MH i2c: F0 [18:03:16]MH_I2C_Read... [18:03:16]Read from MH i2c: F0 09 00 [18:03:16]MH_I2C_Read... [18:03:16]Read from MH i2c: F0 09 00 6C 1B 00 66 4A 46 66 FC 21 6F 64 CB [18:03:16]GetLastDocTimeStamp 1715882447 [18:03:16]current date 1715882598 [18:03:16]FM_GetShiftState [18:03:16]SAM_PROTO_GetShiftState [18:03:16]wFMCommunicate request_size=4 [18:03:16]MH_SAM_APDU [18:03:16]CAPDU: 80 13 01 00 [18:03:16]Write to MH i2c: E2 08 00 6D 1B 80 13 01 00 00 00 00 00 05 [18:03:16]Write i2c OK [18:03:16]MH_I2C_Read... [18:03:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:16]Read from MH i2c: E2 [18:03:16]MH_I2C_Read... [18:03:16]Read from MH i2c: E2 0E 00 [18:03:16]MH_I2C_Read... [18:03:16]Read from MH i2c: E2 0E 00 6D 1B 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 B1 [18:03:16]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [18:03:16]wFMCommunicate OK [18:03:16]SAM_PROTO_GetShiftState done [18:03:16]FM_GetShiftState done [18:03:16]opened in 1715818916 [18:03:16]opened+sec_in_day 1715905316 [18:03:16]quantity*price = 120042 [18:03:16]sum+1 = 120044 [18:03:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.48 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 136 16.05.2024 18:03 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67538 ФПД: 247264277049756 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T180318&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67538&fm=247264277049756&tin=02508201610067®Number=0000000000091845&sum=120000 [18:03:18]StoreToDocumentArchive [18:03:18]shift 357 fd 67538 [18:03:18]save to /storage/0357/doc_00067538 [18:03:18]save last doc name /storage/0357/doc_00067538 to /storage/kkm_last_doc_name [18:03:18]save OK [18:03:18]Clear old archive folders... [18:03:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:03:18]tlvbuf is 017EAD10 [18:03:18]SAM_PROTO_ClearQueue [18:03:18]wFMCommunicate request_size=4 [18:03:18]MH_SAM_APDU [18:03:18]CAPDU: 80 09 00 00 [18:03:18]Write to MH i2c: E2 08 00 7A 1B 80 09 00 00 00 00 00 00 07 [18:03:18]Write i2c OK [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: E2 [18:03:18]MH_I2C_Read... [18:03:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:03:18]Read from MH i2c: E2 03 00 [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: E2 03 00 7A 1B 00 90 00 09 [18:03:18]RAPDU: 90 00 [18:03:18]wFMCommunicate OK [18:03:18]SAM_PROTO_ClearQueue done [18:03:18]KKMCreateOFDPacket [18:03:18]OFDProtocolAddRootSTLVToBuf [18:03:18]FM_MakeSignedData [18:03:18]FM_MakeSignedData [18:03:18]SAM_PROTO_SignData [18:03:18]wFMCommunicate request_size=4 [18:03:18]MH_SAM_APDU [18:03:18]CAPDU: 80 0D 01 02 [18:03:18]Write to MH i2c: E2 08 00 7B 1B 80 0D 01 02 00 00 00 00 0F [18:03:18]Write i2c OK [18:03:18]MH_I2C_Read... [18:03:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:03:18]Read from MH i2c: E2 [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: E2 03 00 [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: E2 03 00 7B 1B 00 90 00 0A [18:03:18]RAPDU: 90 00 [18:03:18]wFMCommunicate OK [18:03:18]wFMCommunicate request_size=255 [18:03:18]MH_SAM_APDU [18:03: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 C6 3E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 EB 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 CC 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 88 00 00 00 F4 03 04 00 66 4A 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D2 07 01 00 35 04 06 00 E0 E2 B3 66 [18:03:18]Write to MH i2c: E2 02 01 7C 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 C6 3E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 EB 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 CC 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 88 00 00 00 F4 03 04 00 66 4A 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D2 07 01 00 35 04 06 00 E0 E2 B3 66 00 00 D0 [18:03:18]Write i2c OK [18:03:18]MH_I2C_Read... [18:03:18]OFD Sender: No OFD packet to send [18:03:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:18]Read from MH i2c: E2 [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: E2 03 00 [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: E2 03 00 7C 1B 00 90 00 0B [18:03:18]RAPDU: 90 00 [18:03:18]wFMCommunicate OK [18:03:18]wFMCommunicate request_size=7 [18:03:18]MH_SAM_APDU [18:03:18]CAPDU: 80 0D 02 02 02 31 9C [18:03:18]Write to MH i2c: E2 0A 00 7D 1B 80 0D 02 02 02 00 31 9C 00 00 E3 [18:03:18]Write i2c OK [18:03:18]MH_I2C_Read... [18:03:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:18]Read from MH i2c: E2 [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: E2 03 00 [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: E2 03 00 7D 1B 00 90 00 0C [18:03:18]RAPDU: 90 00 [18:03:18]wFMCommunicate OK [18:03:18]wFMCommunicate request_size=4 [18:03:18]MH_SAM_APDU [18:03:18]CAPDU: 80 0D 03 02 [18:03:18]Write to MH i2c: E2 08 00 7E 1B 80 0D 03 02 00 00 00 00 14 [18:03:18]Write i2c OK [18:03:18]MH_I2C_Read... [18:03:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:03:18]Read from MH i2c: E2 [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: E2 0B 00 [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: E2 0B 00 7E 1B 00 AC BF C1 BA 3C FC A0 95 90 00 68 [18:03:18]RAPDU: AC BF C1 BA 3C FC A0 95 90 00 [18:03:18]wFMCommunicate OK [18:03:18]SAM_PROTO_SignData done [18:03:18]FM_MakeSignedData done [18:03:18]CreateOFDProtocolMessage [18:03:18]wFMCommunicate request_size=4 [18:03:18]MH_SAM_APDU [18:03:18]CAPDU: 80 11 00 00 [18:03:18]Write to MH i2c: E2 08 00 7F 1B 80 11 00 00 00 00 00 00 14 [18:03:18]Write i2c OK [18:03:18]MH_I2C_Read... [18:03:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:18]Read from MH i2c: E2 [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: E2 17 00 [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: E2 17 00 7F 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 6A [18:03:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:03:18]wFMCommunicate OK [18:03:18]CreateOFDProtocolMessage done [18:03:18]OFDSenderStorePacket 67538 [18:03:18]StoreOFDPacket docnum=67538 [18:03:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 5A 23 04 01 E6 85 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C6 3E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 EB 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 CC 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 88 00 00 00 F4 03 04 00 66 4A 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D2 07 01 00 35 04 06 00 E0 E2 B3 66 31 9C AC BF C1 BA 3C FC A0 95 [18:03:18]CheckFolder [18:03:18]dirname=/storage/ofd_packets [18:03:18]CheckFolder done [18:03:18]ProducePacketName [18:03:18]name=ofd_packets/00067538 [18:03:18]NVStorageSaveData ofd_packets/00067538 [18:03:18]File name is /storage/ofd_packets/00067538 [18:03:18]Write 298 bytes [18:03:18]NVStorageSaveData done [18:03:18]OFDSenderStorePacket done [18:03:18]KKMCreateOFDPacket done [18:03:18]NVStorageSaveData kkm_last_timestamp [18:03:18]File name is /storage/kkm_last_timestamp [18:03:18]Write 4 bytes [18:03:18]NVStorageSaveData done [18:03:18]OFD Sender: Processing packet 67538 [packets to send 35, broken 34] [18:03:18]ProducePacketName [18:03:18]name=ofd_packets/00067538 [18:03:18]OFD Sender: To server: pG, [18:03:18]CommunicateWithHost lk.salyk.kg:30040 [18:03:18]ConnectInit lk.salyk.kg [18:03:18]ExternCall_PrintAddStr [18:03:18]wPrintStart [18:03:18]Write to MH i2c: 01 00 00 80 1B 9B [18:03:18]Write i2c OK [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: 01 [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: 01 07 00 [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: 01 07 00 80 1B 00 00 00 00 00 FF 0F B0 [18:03:18]RasterBufferAndPrint [18:03:18]line Счет N : (1)507600 [18:03:18]line ИНН: 02508201610067 [18:03:18]line Контрольно-Кассовый Чек [18:03:18]line ПРОДАЖА [18:03:18]line ТРК (МРК, ГНК) : 41 [18:03:18]line Товар: 2710194210 [18:03:18]line ДТ-К-5 [18:03:18]line 16.070 * 74.70 [18:03:18]line = 1200.43 [18:03:18]line НДС 12% НСП 1% [18:03:18]line > о реализуемом товаре [18:03:18]line ОКРУГЛЕНИЕ: -0.43 [18:03:18]line ИТОГО: 1200.00 [18:03:18]line Внесено: 1200.00 [18:03:18]line СДАЧА: 0.00 [18:03:18]line НСП 1% : 10.62 [18:03:18]line НДС 12% : 127.48 [18:03:18]line Наличными: 1200.00 [18:03:18]line Безнал.: 0.00 [18:03:18]line Место: АЗС № 91 "Партнер Нефть" [18:03:18]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:03:18]line СНО: Общий режим [18:03:18]line Чек 136 16.05.2024 18:03 [18:03:18]line Смена: 357 ФФД: 1.0 [18:03:18]line ЗНМ: 0300000119 [18:03:18]line РНМ: 0000000000091845 [18:03:18]line Версия ККМ: 001 [18:03:18]line ФМ: 0000000000871829 [18:03:18]line ФД: 67538 [18:03:18]line ФПД: 247264277049756 [18:03:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T180318&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67538&fm=247264277049756&tin=02508201610067®Number=0000000000091845&sum=120000 [18:03:18]Connected sock=11 [18:03: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 38 32 39 0C 01 00 00 5A 23 04 01 E6 85 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C6 3E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 EB 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 CC 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 88 00 00 00 F4 03 04 00 66 4A 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D2 07 01 00 35 04 06 00 E0 E2 B3 66 31 9C AC BF C1 BA 3C FC A0 95 [18:03:18]written 0, free lines is 4095 [18:03:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 55 A8 47 00 45 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 38 32 39 10 04 04 00 D2 07 01 00 F4 03 04 00 40 F2 45 66 B6 04 01 00 00 C2 14 2F 2D 0D D2 29 7E [18:03:19]CommunicateWithHost err = 0 [18:03:19]CheckOFDResponse [18:03:19]1017 (14) - 77093643461234 [18:03:19]1041 (16) - 0000000000871829 [18:03:19]1040 (4) - 67538 [18:03:19]1012 (4) - 16.05.2024 11:47 [18:03:19]1206 (1) - 0 [18:03:19]OFD Sender: Remove packet 67538 [18:03:19]ProducePacketName [18:03:19]name=ofd_packets/00067538 [18:03:19]NVStorageDeleteData [18:03:19]Write to MH i2c: 01 00 00 AA 1B C5 [18:03:19]Write i2c OK [18:03:19]MH_I2C_Read... [18:03:19]Read from MH i2c: 01 [18:03:19]MH_I2C_Read... [18:03:19]Read from MH i2c: 01 07 00 [18:03:19]MH_I2C_Read... [18:03:19]Read from MH i2c: 01 07 00 AA 1B 00 00 00 00 00 CD 0C A5 [18:03:19]RasterBufferAndPrint [18:03:19]line [18:03:19]line [18:03:19]line [18:03:19]line [18:03:19]line [18:03:19]written 0, free lines is 3283 [18:03:19]MH_Cut [18:03:19]Write to MH i2c: D1 01 00 B1 1B 01 9E [18:03:19]Write i2c OK [18:03:19]MH_I2C_Read... [18:03:19]Read from MH i2c: D1 [18:03:19]MH_I2C_Read... [18:03:19]Read from MH i2c: D1 01 00 [18:03:19]MH_I2C_Read... [18:03:19]Read from MH i2c: D1 01 00 B1 1B 00 9D [18:03:19]Write to MH i2c: 01 00 00 B2 1B CD [18:03:19]Write i2c OK [18:03:19]MH_I2C_Read... [18:03:19]OFD Sender: No OFD packet to send [18:03:20]*** Cut start [18:03:20]*** Purtial cut [18:03:20]*** Stage 1: CUTSNS_PIN = 1 [18:03:20]Read from MH i2c: 01 [18:03:20]MH_I2C_Read... [18:03:20]*** Stop cut motor [18:03:20]*** Cut end [18:03:20]Read from MH i2c: 01 07 00 [18:03:20]MH_I2C_Read... [18:03:20]Read from MH i2c: 01 07 00 B2 1B 00 00 00 00 00 FF 0F E2 [18:03:20]process_action close_receipt done [18:03:20]requested_data is exist [18:03:20]produce_requested_data [18:03:20]requested_item fm.sn is exist - process it [18:03:20]wFMCommunicate request_size=4 [18:03:20]MH_SAM_APDU [18:03:20]CAPDU: 80 11 00 00 [18:03:20]Write to MH i2c: E2 08 00 B3 1B 80 11 00 00 00 00 00 00 48 [18:03:20]Write i2c OK [18:03:20]MH_I2C_Read... [18:03:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:20]Read from MH i2c: E2 [18:03:20]MH_I2C_Read... [18:03:20]Read from MH i2c: E2 17 00 [18:03:20]MH_I2C_Read... [18:03:20]Read from MH i2c: E2 17 00 B3 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 9E [18:03:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:03:20]wFMCommunicate OK [18:03:20]requested_item fd.num is exist - process it [18:03:20]SAM_PROTO_GetFieldsCounters [18:03:20]wFMCommunicate request_size=4 [18:03:20]MH_SAM_APDU [18:03:20]CAPDU: 80 13 00 00 [18:03:20]Write to MH i2c: E2 08 00 B4 1B 80 13 00 00 00 00 00 00 4B [18:03:20]Write i2c OK [18:03:20]MH_I2C_Read... [18:03:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:03:20]Read from MH i2c: E2 [18:03:20]MH_I2C_Read... [18:03:20]Read from MH i2c: E2 62 00 [18:03:20]MH_I2C_Read... [18:03:20]Read from MH i2c: E2 62 00 B4 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D2 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [18:03: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D2 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:03:20]wFMCommunicate OK [18:03:20]SAM_PROTO_GetFieldsCounters done [18:03:20]requested_item shift.num is exist - process it [18:03:20]requested_item shift.opened is exist - process it [18:03:20]req_shift_opened [18:03:20]FM_GetShiftState [18:03:20]SAM_PROTO_GetShiftState [18:03:20]wFMCommunicate request_size=4 [18:03:20]MH_SAM_APDU [18:03:20]CAPDU: 80 13 01 00 [18:03:20]Write to MH i2c: E2 08 00 B5 1B 80 13 01 00 00 00 00 00 4D [18:03:20]Write i2c OK [18:03:20]MH_I2C_Read... [18:03:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:20]Read from MH i2c: E2 [18:03:20]MH_I2C_Read... [18:03:20]Read from MH i2c: E2 0E 00 [18:03:20]MH_I2C_Read... [18:03:20]Read from MH i2c: E2 0E 00 B5 1B 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 F9 [18:03:20]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [18:03:20]wFMCommunicate OK [18:03:20]SAM_PROTO_GetShiftState done [18:03:20]FM_GetShiftState done [18:03:20]req_shift_opened done [18:03:20]requested_item shift.open_date is exist - process it [18:03:20]req_shift_open_date [18:03:20]req_shift_open_date done [18:03:20]produce_requested_data done [18:03:20]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67538,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [18:03:20]process_action_free close_receipt [18:03:20]json_value_free [18:03:20]json_value_free done [18:03:20]process_json_proto returns [18:03:20]Send response to host [18:03:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67538,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [18:03:20]free response buf [18:03:20]execute_script done [18:03:20]execute_script returns [18:03:20]free content buf [18:03:20]Sock 8.Close socket [18:03:20]Sock 8.Thread stoped [18:03:24]OFD Sender: No OFD packet to send [18:03:29]OFD Sender: No OFD packet to send [18:03:34]OFD Sender: No OFD packet to send [18:03:39]OFD Sender: No OFD packet to send [18:03:44]OFD Sender: No OFD packet to send [18:03:49]OFD Sender: No OFD packet to send [18:03:54]OFD Sender: No OFD packet to send [18:03:59]OFD Sender: No OFD packet to send [18:04:04]OFD Sender: No OFD packet to send [18:04:09]OFD Sender: No OFD packet to send [18:04:14]OFD Sender: No OFD packet to send [18:04:19]OFD Sender: No OFD packet to send [18:04:24]OFD Sender: No OFD packet to send [18:04:29]OFD Sender: No OFD packet to send [18:04:34]OFD Sender: No OFD packet to send [18:04:39]OFD Sender: No OFD packet to send [18:04:44]OFD Sender: No OFD packet to send [18:04:49]OFD Sender: No OFD packet to send [18:04:54]OFD Sender: No OFD packet to send [18:04:59]OFD Sender: No OFD packet to send [18:05:04]OFD Sender: No OFD packet to send [18:05:09]OFD Sender: No OFD packet to send [18:05:14]OFD Sender: No OFD packet to send [18:05:19]OFD Sender: No OFD packet to send [18:05:24]OFD Sender: No OFD packet to send [18:05:29]OFD Sender: No OFD packet to send [18:05:34]OFD Sender: No OFD packet to send [18:05:39]OFD Sender: No OFD packet to send [18:05:44]OFD Sender: No OFD packet to send [18:05:49]OFD Sender: No OFD packet to send [18:05:54]OFD Sender: No OFD packet to send [18:05:59]OFD Sender: No OFD packet to send [18:06:04]OFD Sender: No OFD packet to send [18:06:09]OFD Sender: No OFD packet to send [18:06:14]OFD Sender: No OFD packet to send [18:06:19]OFD Sender: No OFD packet to send [18:06:24]OFD Sender: No OFD packet to send [18:06:29]OFD Sender: No OFD packet to send [18:06:34]OFD Sender: No OFD packet to send [18:06:39]OFD Sender: No OFD packet to send [18:06:42]accept exits with 9 [18:06:42]New connection [18:06:42]New thread 3067182436 created [18:06:42]Thread 3067039076 joined [18:06:42]Waiting for new connection... [18:06:42] Sock 9.Parse request [18:06:42]Sock 9.Check first char [18:06:42]Sock 9.First char is OK [18:06:42]request: POST /json_proto HTTP/1.0 [18:06:42]Method: POST [18:06:42]URL: /json_proto [18:06:42]Method is POST - this is cgi request [18:06:42]url: /json_proto [18:06:42]query_string will be loaded in cgi processing [18:06:42]execute_cgi json_proto POST (null) [18:06:42]execute_cgi path=json_proto method=POST [18:06:42]POST find Content-Length [18:06:42]Host: 172.17.41.195:8080 [18:06:42]Content-Length: 677 [18:06:42]Content-Type: application/json [18:06:42] [18:06:42]POST finish read [18:06:42]Found Content-Length = 677 [18:06:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507601", "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.80, "quantity" : 8.540, "sum" : 570.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 570.00, "total" : 570.00, "payments": [ { "type": 0, "sum" : 570.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:06:42]execute_script... [18: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)507601", "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.80, "quantity" : 8.540, "sum" : 570.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 570.00, "total" : 570.00, "payments": [ { "type": 0, "sum" : 570.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:06:42]POST & json_proto [18:06:42]process_json_proto [18:06:42]json parsed OK: [18:06:42]protocol is kg_v1.0 [18:06:42]action value=close_receipt [18:06:42]process_action close_receipt [18:06:42]cmd_close_receipt [18:06:42]MH_GetDate [18:06:42]Write to MH i2c: F0 00 00 B6 1B C0 [18:06:42]Write i2c OK [18:06:42]MH_I2C_Read... [18:06:42]Read from MH i2c: F0 [18:06:42]MH_I2C_Read... [18:06:42]Read from MH i2c: F0 09 00 [18:06:42]MH_I2C_Read... [18:06:42]Read from MH i2c: F0 09 00 B6 1B 00 33 4B 46 66 FC 21 6F 64 E3 [18:06:42]GetLastDocTimeStamp 1715882598 [18:06:42]current date 1715882803 [18:06:42]FM_GetShiftState [18:06:42]SAM_PROTO_GetShiftState [18:06:42]wFMCommunicate request_size=4 [18:06:42]MH_SAM_APDU [18:06:42]CAPDU: 80 13 01 00 [18:06:42]Write to MH i2c: E2 08 00 B7 1B 80 13 01 00 00 00 00 00 4F [18:06:42]Write i2c OK [18:06:42]MH_I2C_Read... [18:06:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:06:42]Read from MH i2c: E2 [18:06:42]MH_I2C_Read... [18:06:42]Read from MH i2c: E2 0E 00 [18:06:42]MH_I2C_Read... [18:06:42]Read from MH i2c: E2 0E 00 B7 1B 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 FB [18:06:42]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [18:06:42]wFMCommunicate OK [18:06:42]SAM_PROTO_GetShiftState done [18:06:42]FM_GetShiftState done [18:06:42]opened in 1715818916 [18:06:42]opened+sec_in_day 1715905316 [18:06:42]quantity*price = 57047 [18:06:42]sum+1 = 57048 [18:06:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 570.00 Внесено: 570.00 СДАЧА: 0.00 НСП 1% : 5.05 НДС 12% : 60.58 Наличными: 570.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 137 16.05.2024 18:06 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67539 ФПД: 162708494891034 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T180643&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67539&fm=162708494891034&tin=02508201610067®Number=0000000000091845&sum=57000 [18:06:43]StoreToDocumentArchive [18:06:43]shift 357 fd 67539 [18:06:43]save to /storage/0357/doc_00067539 [18:06:43]save last doc name /storage/0357/doc_00067539 to /storage/kkm_last_doc_name [18:06:43]save OK [18:06:43]Clear old archive folders... [18:06:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:06:43]tlvbuf is 017E8760 [18:06:43]SAM_PROTO_ClearQueue [18:06:43]wFMCommunicate request_size=4 [18:06:43]MH_SAM_APDU [18:06:43]CAPDU: 80 09 00 00 [18:06:43]Write to MH i2c: E2 08 00 C4 1B 80 09 00 00 00 00 00 00 51 [18:06:43]Write i2c OK [18:06:43]MH_I2C_Read... [18:06:43]Read from MH i2c: E2 [18:06:43]MH_I2C_Read... [18:06:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:06:43]Read from MH i2c: E2 03 00 [18:06:43]MH_I2C_Read... [18:06:43]Read from MH i2c: E2 03 00 C4 1B 00 90 00 53 [18:06:43]RAPDU: 90 00 [18:06:43]wFMCommunicate OK [18:06:43]SAM_PROTO_ClearQueue done [18:06:43]KKMCreateOFDPacket [18:06:43]OFDProtocolAddRootSTLVToBuf [18:06:43]FM_MakeSignedData [18:06:43]FM_MakeSignedData [18:06:43]SAM_PROTO_SignData [18:06:43]wFMCommunicate request_size=4 [18:06:43]MH_SAM_APDU [18:06:43]CAPDU: 80 0D 01 02 [18:06:43]Write to MH i2c: E2 08 00 C5 1B 80 0D 01 02 00 00 00 00 59 [18:06:43]Write i2c OK [18:06:43]MH_I2C_Read... [18:06:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:06:43]Read from MH i2c: E2 [18:06:43]MH_I2C_Read... [18:06:43]Read from MH i2c: E2 03 00 [18:06:43]MH_I2C_Read... [18:06:43]Read from MH i2c: E2 03 00 C5 1B 00 90 00 54 [18:06:43]RAPDU: 90 00 [18:06:43]wFMCommunicate OK [18:06:43]wFMCommunicate request_size=255 [18:06:43]MH_SAM_APDU [18:06: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 5C 21 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 D7 DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 17 00 00 00 00 07 04 06 00 A8 DE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 33 4B 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D3 07 01 00 35 04 06 00 93 [18:06:43]Write to MH i2c: E2 02 01 C6 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 21 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 D7 DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 17 00 00 00 00 07 04 06 00 A8 DE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 33 4B 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D3 07 01 00 35 04 06 00 93 00 00 1A [18:06:43]Write i2c OK [18:06:43]MH_I2C_Read... [18:06:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:06:43]Read from MH i2c: E2 [18:06:43]MH_I2C_Read... [18:06:43]Read from MH i2c: E2 03 00 [18:06:43]MH_I2C_Read... [18:06:43]Read from MH i2c: E2 03 00 C6 1B 00 90 00 55 [18:06:43]RAPDU: 90 00 [18:06:43]wFMCommunicate OK [18:06:43]wFMCommunicate request_size=10 [18:06:43]MH_SAM_APDU [18:06:43]CAPDU: 80 0D 02 02 05 FB 86 0A 38 1A [18:06:43]Write to MH i2c: E2 0D 00 C7 1B 80 0D 02 02 05 00 FB 86 0A 38 1A 00 00 43 [18:06:43]Write i2c OK [18:06:43]MH_I2C_Read... [18:06:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:06:43]Read from MH i2c: E2 [18:06:43]MH_I2C_Read... [18:06:43]Read from MH i2c: E2 03 00 [18:06:43]MH_I2C_Read... [18:06:43]Read from MH i2c: E2 03 00 C7 1B 00 90 00 56 [18:06:43]RAPDU: 90 00 [18:06:43]wFMCommunicate OK [18:06:43]wFMCommunicate request_size=4 [18:06:43]MH_SAM_APDU [18:06:43]CAPDU: 80 0D 03 02 [18:06:43]Write to MH i2c: E2 08 00 C8 1B 80 0D 03 02 00 00 00 00 5E [18:06:43]Write i2c OK [18:06:43]MH_I2C_Read... [18:06:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:06:43]Read from MH i2c: E2 [18:06:43]MH_I2C_Read... [18:06:43]Read from MH i2c: E2 0B 00 [18:06:43]MH_I2C_Read... [18:06:43]Read from MH i2c: E2 0B 00 C8 1B 00 C6 D2 21 1B 25 72 5D 07 90 00 2E [18:06:43]RAPDU: C6 D2 21 1B 25 72 5D 07 90 00 [18:06:43]wFMCommunicate OK [18:06:43]SAM_PROTO_SignData done [18:06:43]FM_MakeSignedData done [18:06:43]CreateOFDProtocolMessage [18:06:43]wFMCommunicate request_size=4 [18:06:43]MH_SAM_APDU [18:06:43]CAPDU: 80 11 00 00 [18:06:43]Write to MH i2c: E2 08 00 C9 1B 80 11 00 00 00 00 00 00 5E [18:06:43]Write i2c OK [18:06:43]MH_I2C_Read... [18:06:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:06:43]Read from MH i2c: E2 [18:06:43]MH_I2C_Read... [18:06:43]Read from MH i2c: E2 17 00 [18:06:43]MH_I2C_Read... [18:06:43]Read from MH i2c: E2 17 00 C9 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B4 [18:06:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:06:43]wFMCommunicate OK [18:06:43]CreateOFDProtocolMessage done [18:06:43]OFDSenderStorePacket 67539 [18:06:43]StoreOFDPacket docnum=67539 [18:06:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 E4 B6 07 01 1D 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 5C 21 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 D7 DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 17 00 00 00 00 07 04 06 00 A8 DE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 33 4B 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D3 07 01 00 35 04 06 00 93 FB 86 0A 38 1A C6 D2 21 1B 25 72 5D 07 [18:06:43]CheckFolder [18:06:43]dirname=/storage/ofd_packets [18:06:43]CheckFolder done [18:06:43]ProducePacketName [18:06:43]name=ofd_packets/00067539 [18:06:43]NVStorageSaveData ofd_packets/00067539 [18:06:43]File name is /storage/ofd_packets/00067539 [18:06:43]Write 301 bytes [18:06:43]NVStorageSaveData done [18:06:43]OFDSenderStorePacket done [18:06:43]KKMCreateOFDPacket done [18:06:43]NVStorageSaveData kkm_last_timestamp [18:06:43]File name is /storage/kkm_last_timestamp [18:06:43]Write 4 bytes [18:06:43]NVStorageSaveData done [18:06:43]ExternCall_PrintAddStr [18:06:43]wPrintStart [18:06:43]Write to MH i2c: 01 00 00 CA 1B E5 [18:06:43]Write i2c OK [18:06:43]MH_I2C_Read... [18:06:43]Read from MH i2c: 01 [18:06:43]MH_I2C_Read... [18:06:43]Read from MH i2c: 01 07 00 [18:06:43]MH_I2C_Read... [18:06:43]Read from MH i2c: 01 07 00 CA 1B 00 00 00 00 00 FF 0F FA [18:06:43]RasterBufferAndPrint [18:06:43]line Счет N : (1)507601 [18:06:43]line ИНН: 02508201610067 [18:06:43]line Контрольно-Кассовый Чек [18:06:43]line ПРОДАЖА [18:06:43]line ТРК (МРК, ГНК) : 33 [18:06:43]line Товар: 2710124130 [18:06:43]line Аи-92-К-5 [18:06:43]line 8.540 * 66.80 [18:06:43]line = 570.47 [18:06:43]line НДС 12% НСП 1% [18:06:43]line > о реализуемом товаре [18:06:43]line ОКРУГЛЕНИЕ: -0.47 [18:06:43]line ИТОГО: 570.00 [18:06:43]line Внесено: 570.00 [18:06:43]line СДАЧА: 0.00 [18:06:43]line НСП 1% : 5.05 [18:06:43]line НДС 12% : 60.58 [18:06:43]line Наличными: 570.00 [18:06:43]line Безнал.: 0.00 [18:06:43]line Место: АЗС № 91 "Партнер Нефть" [18:06:43]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:06:43]line СНО: Общий режим [18:06:43]line Чек 137 16.05.2024 18:06 [18:06:43]line Смена: 357 ФФД: 1.0 [18:06:43]line ЗНМ: 0300000119 [18:06:43]line РНМ: 0000000000091845 [18:06:43]line Версия ККМ: 001 [18:06:43]line ФМ: 0000000000871829 [18:06:43]line ФД: 67539 [18:06:43]line ФПД: 162708494891034 [18:06:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T180643&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67539&fm=162708494891034&tin=02508201610067®Number=0000000000091845&sum=57000 [18:06:44]OFD Sender: Processing packet 67539 [packets to send 35, broken 34] [18:06:44]ProducePacketName [18:06:44]name=ofd_packets/00067539 [18:06:44]OFD Sender: To server: pG, [18:06:44]CommunicateWithHost lk.salyk.kg:30040 [18:06:44]ConnectInit lk.salyk.kg [18:06:44]written 0, free lines is 4095 [18:06:44]Connected sock=10 [18: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 38 32 39 0F 01 00 00 E4 B6 07 01 1D 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 5C 21 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 D7 DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 17 00 00 00 00 07 04 06 00 A8 DE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 33 4B 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D3 07 01 00 35 04 06 00 93 FB 86 0A 38 1A C6 D2 21 1B 25 72 5D 07 [18: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 38 32 39 4F 00 00 00 79 C5 47 00 88 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 38 32 39 10 04 04 00 D3 07 01 00 F4 03 04 00 0E F3 45 66 B6 04 01 00 00 D0 33 79 F4 5C DF FB 0C [18:06:44]CommunicateWithHost err = 0 [18:06:44]CheckOFDResponse [18:06:44]1017 (14) - 77093643461234 [18:06:44]1041 (16) - 0000000000871829 [18:06:44]1040 (4) - 67539 [18:06:44]1012 (4) - 16.05.2024 11:50 [18:06:44]1206 (1) - 0 [18:06:44]OFD Sender: Remove packet 67539 [18:06:44]ProducePacketName [18:06:44]name=ofd_packets/00067539 [18:06:44]NVStorageDeleteData [18:06:44]Write to MH i2c: 01 00 00 F4 1B 0F [18:06:44]Write i2c OK [18:06:44]MH_I2C_Read... [18:06:44]Read from MH i2c: 01 [18:06:44]MH_I2C_Read... [18:06:44]Read from MH i2c: 01 07 00 [18:06:44]MH_I2C_Read... [18:06:44]Read from MH i2c: 01 07 00 F4 1B 00 00 00 00 00 C8 0C EA [18:06:44]RasterBufferAndPrint [18:06:44]line [18:06:44]line [18:06:44]line [18:06:44]line [18:06:44]line [18:06:44]written 0, free lines is 3278 [18:06:44]MH_Cut [18:06:44]Write to MH i2c: D1 01 00 FB 1B 01 E8 [18:06:44]Write i2c OK [18:06:44]MH_I2C_Read... [18:06:44]Read from MH i2c: D1 [18:06:44]MH_I2C_Read... [18:06:44]Read from MH i2c: D1 01 00 [18:06:44]MH_I2C_Read... [18:06:44]Read from MH i2c: D1 01 00 FB 1B 00 E7 [18:06:44]Write to MH i2c: 01 00 00 FC 1B 17 [18:06:44]Write i2c OK [18:06:44]MH_I2C_Read... [18:06:44]OFD Sender: No OFD packet to send [18:06:45]*** Cut start [18:06:45]*** Purtial cut [18:06:45]*** CUTSNS_PIN = 0 [18:06:45]*** Stage 1: CUTSNS_PIN = 1 [18:06:47]Read from MH i2c: 01 [18:06:47]MH_I2C_Read... [18:06:47]*** Stop cut motor [18:06:47]*** Cut end [18:06:47]Read from MH i2c: 01 07 00 [18:06:47]MH_I2C_Read... [18:06:47]Read from MH i2c: 01 07 00 FC 1B 00 00 00 00 00 FF 0F 2C [18:06:47]process_action close_receipt done [18:06:47]requested_data is exist [18:06:47]produce_requested_data [18:06:47]requested_item fm.sn is exist - process it [18:06:47]wFMCommunicate request_size=4 [18:06:47]MH_SAM_APDU [18:06:47]CAPDU: 80 11 00 00 [18:06:47]Write to MH i2c: E2 08 00 FD 1B 80 11 00 00 00 00 00 00 92 [18:06:47]Write i2c OK [18:06:47]MH_I2C_Read... [18:06:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:06:47]Read from MH i2c: E2 [18:06:47]MH_I2C_Read... [18:06:47]Read from MH i2c: E2 17 00 [18:06:47]MH_I2C_Read... [18:06:47]Read from MH i2c: E2 17 00 FD 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E8 [18:06:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:06:47]wFMCommunicate OK [18:06:47]requested_item fd.num is exist - process it [18:06:47]SAM_PROTO_GetFieldsCounters [18:06:47]wFMCommunicate request_size=4 [18:06:47]MH_SAM_APDU [18:06:47]CAPDU: 80 13 00 00 [18:06:47]Write to MH i2c: E2 08 00 FE 1B 80 13 00 00 00 00 00 00 95 [18:06:47]Write i2c OK [18:06:47]MH_I2C_Read... [18:06:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:06:47]Read from MH i2c: E2 [18:06:47]MH_I2C_Read... [18:06:47]Read from MH i2c: E2 62 00 [18:06:47]MH_I2C_Read... [18:06:47]Read from MH i2c: E2 62 00 FE 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D3 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [18:06: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D3 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:06:47]wFMCommunicate OK [18:06:47]SAM_PROTO_GetFieldsCounters done [18:06:47]requested_item shift.num is exist - process it [18:06:47]requested_item shift.opened is exist - process it [18:06:47]req_shift_opened [18:06:47]FM_GetShiftState [18:06:47]SAM_PROTO_GetShiftState [18:06:47]wFMCommunicate request_size=4 [18:06:47]MH_SAM_APDU [18:06:47]CAPDU: 80 13 01 00 [18:06:47]Write to MH i2c: E2 08 00 FF 1B 80 13 01 00 00 00 00 00 97 [18:06:47]Write i2c OK [18:06:47]MH_I2C_Read... [18:06:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:06:47]Read from MH i2c: E2 [18:06:47]MH_I2C_Read... [18:06:47]Read from MH i2c: E2 0E 00 [18:06:47]MH_I2C_Read... [18:06:47]Read from MH i2c: E2 0E 00 FF 1B 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 43 [18:06:47]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [18:06:47]wFMCommunicate OK [18:06:47]SAM_PROTO_GetShiftState done [18:06:47]FM_GetShiftState done [18:06:47]req_shift_opened done [18:06:47]requested_item shift.open_date is exist - process it [18:06:47]req_shift_open_date [18:06:47]req_shift_open_date done [18:06:47]produce_requested_data done [18:06:47]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67539,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [18:06:47]process_action_free close_receipt [18:06:47]json_value_free [18:06:47]json_value_free done [18:06:47]process_json_proto returns [18:06:47]Send response to host [18:06:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67539,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [18:06:47]free response buf [18:06:47]execute_script done [18:06:47]execute_script returns [18:06:47]free content buf [18:06:47]Sock 9.Close socket [18:06:47]Sock 9.Thread stoped [18:06:49]OFD Sender: No OFD packet to send [18:06:54]OFD Sender: No OFD packet to send [18:06:59]OFD Sender: No OFD packet to send [18:07:04]OFD Sender: No OFD packet to send [18:07:09]OFD Sender: No OFD packet to send [18:07:10]accept exits with 8 [18:07:10]New connection [18:07:10]New thread 3067039076 created [18:07:10]Thread 3067182436 joined [18:07:10]Waiting for new connection... [18:07:10] Sock 8.Parse request [18:07:10]Sock 8.Check first char [18:07:10]Sock 8.First char is OK [18:07:10]request: POST /json_proto HTTP/1.0 [18:07:10]Method: POST [18:07:10]URL: /json_proto [18:07:10]Method is POST - this is cgi request [18:07:10]url: /json_proto [18:07:10]query_string will be loaded in cgi processing [18:07:10]execute_cgi json_proto POST (null) [18:07:10]execute_cgi path=json_proto method=POST [18:07:10]POST find Content-Length [18:07:10]Host: 172.17.41.195:8080 [18:07:10]Content-Length: 677 [18:07:10]Content-Type: application/json [18:07:10] [18:07:10]POST finish read [18:07:10]Found Content-Length = 677 [18:07:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507602", "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.80, "quantity" : 5.990, "sum" : 400.13, "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:07:10]execute_script... [18:07: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)507602", "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.80, "quantity" : 5.990, "sum" : 400.13, "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:07:10]POST & json_proto [18:07:10]process_json_proto [18:07:10]json parsed OK: [18:07:10]protocol is kg_v1.0 [18:07:10]action value=close_receipt [18:07:10]process_action close_receipt [18:07:10]cmd_close_receipt [18:07:10]MH_GetDate [18:07:10]Write to MH i2c: F0 00 00 00 1C 0B [18:07:10]Write i2c OK [18:07:10]MH_I2C_Read... [18:07:10]Read from MH i2c: F0 [18:07:10]MH_I2C_Read... [18:07:10]Read from MH i2c: F0 09 00 [18:07:10]MH_I2C_Read... [18:07:10]Read from MH i2c: F0 09 00 00 1C 00 50 4B 46 66 FC 21 6F 64 4B [18:07:10]GetLastDocTimeStamp 1715882803 [18:07:10]current date 1715882832 [18:07:10]FM_GetShiftState [18:07:10]SAM_PROTO_GetShiftState [18:07:10]wFMCommunicate request_size=4 [18:07:10]MH_SAM_APDU [18:07:10]CAPDU: 80 13 01 00 [18:07:10]Write to MH i2c: E2 08 00 01 1C 80 13 01 00 00 00 00 00 9A [18:07:10]Write i2c OK [18:07:10]MH_I2C_Read... [18:07:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:10]Read from MH i2c: E2 [18:07:10]MH_I2C_Read... [18:07:10]Read from MH i2c: E2 0E 00 [18:07:10]MH_I2C_Read... [18:07:10]Read from MH i2c: E2 0E 00 01 1C 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 46 [18:07:10]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [18:07:10]wFMCommunicate OK [18:07:10]SAM_PROTO_GetShiftState done [18:07:10]FM_GetShiftState done [18:07:10]opened in 1715818916 [18:07:10]opened+sec_in_day 1715905316 [18:07:10]quantity*price = 40013 [18:07:10]sum+1 = 40014 [18:07:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.49 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 138 16.05.2024 18:07 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67540 ФПД: 96079616354049 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T180712&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67540&fm=96079616354049&tin=02508201610067®Number=0000000000091845&sum=40000 [18:07:11]StoreToDocumentArchive [18:07:11]shift 357 fd 67540 [18:07:11]save to /storage/0357/doc_00067540 [18:07:11]save last doc name /storage/0357/doc_00067540 to /storage/kkm_last_doc_name [18:07:11]save OK [18:07:11]Clear old archive folders... [18:07:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:07:11]tlvbuf is 01794630 [18:07:11]SAM_PROTO_ClearQueue [18:07:11]wFMCommunicate request_size=4 [18:07:11]MH_SAM_APDU [18:07:11]CAPDU: 80 09 00 00 [18:07:11]Write to MH i2c: E2 08 00 0E 1C 80 09 00 00 00 00 00 00 9C [18:07:11]Write i2c OK [18:07:11]MH_I2C_Read... [18:07:11]Read from MH i2c: E2 [18:07:11]MH_I2C_Read... [18:07:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:07:11]Read from MH i2c: E2 03 00 [18:07:11]MH_I2C_Read... [18:07:11]Read from MH i2c: E2 03 00 0E 1C 00 90 00 9E [18:07:11]RAPDU: 90 00 [18:07:11]wFMCommunicate OK [18:07:11]SAM_PROTO_ClearQueue done [18:07:11]KKMCreateOFDPacket [18:07:11]OFDProtocolAddRootSTLVToBuf [18:07:11]FM_MakeSignedData [18:07:11]FM_MakeSignedData [18:07:11]SAM_PROTO_SignData [18:07:11]wFMCommunicate request_size=4 [18:07:11]MH_SAM_APDU [18:07:11]CAPDU: 80 0D 01 02 [18:07:11]Write to MH i2c: E2 08 00 0F 1C 80 0D 01 02 00 00 00 00 A4 [18:07:11]Write i2c OK [18:07:11]MH_I2C_Read... [18:07:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:07:11]Read from MH i2c: E2 [18:07:11]MH_I2C_Read... [18:07:11]Read from MH i2c: E2 03 00 [18:07:11]MH_I2C_Read... [18:07:11]Read from MH i2c: E2 03 00 0F 1C 00 90 00 9F [18:07:11]RAPDU: 90 00 [18:07:11]wFMCommunicate OK [18:07:11]wFMCommunicate request_size=255 [18:07:11]MH_SAM_APDU [18:07: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 17 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4D 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 99 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 8A 00 00 00 F4 03 04 00 50 4B 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D4 07 01 00 35 04 06 00 57 [18:07:11]Write to MH i2c: E2 02 01 10 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 17 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4D 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 99 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 8A 00 00 00 F4 03 04 00 50 4B 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D4 07 01 00 35 04 06 00 57 00 00 79 [18:07:11]Write i2c OK [18:07:11]MH_I2C_Read... [18:07:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:11]Read from MH i2c: E2 [18:07:11]MH_I2C_Read... [18:07:11]Read from MH i2c: E2 03 00 [18:07:11]MH_I2C_Read... [18:07:11]Read from MH i2c: E2 03 00 10 1C 00 90 00 A0 [18:07:11]RAPDU: 90 00 [18:07:11]wFMCommunicate OK [18:07:11]wFMCommunicate request_size=10 [18:07:11]MH_SAM_APDU [18:07:11]CAPDU: 80 0D 02 02 05 62 47 67 27 01 [18:07:11]Write to MH i2c: E2 0D 00 11 1C 80 0D 02 02 05 00 62 47 67 27 01 00 00 E9 [18:07:11]Write i2c OK [18:07:11]MH_I2C_Read... [18:07:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:11]Read from MH i2c: E2 [18:07:11]MH_I2C_Read... [18:07:11]Read from MH i2c: E2 03 00 [18:07:11]MH_I2C_Read... [18:07:11]Read from MH i2c: E2 03 00 11 1C 00 90 00 A1 [18:07:11]RAPDU: 90 00 [18:07:11]wFMCommunicate OK [18:07:11]wFMCommunicate request_size=4 [18:07:11]MH_SAM_APDU [18:07:11]CAPDU: 80 0D 03 02 [18:07:11]Write to MH i2c: E2 08 00 12 1C 80 0D 03 02 00 00 00 00 A9 [18:07:11]Write i2c OK [18:07:11]MH_I2C_Read... [18:07:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:07:12]Read from MH i2c: E2 [18:07:12]MH_I2C_Read... [18:07:12]Read from MH i2c: E2 0B 00 [18:07:12]MH_I2C_Read... [18:07:12]Read from MH i2c: E2 0B 00 12 1C 00 19 29 9D 3D 19 5C 69 6B 90 00 0F [18:07:12]RAPDU: 19 29 9D 3D 19 5C 69 6B 90 00 [18:07:12]wFMCommunicate OK [18:07:12]SAM_PROTO_SignData done [18:07:12]FM_MakeSignedData done [18:07:12]CreateOFDProtocolMessage [18:07:12]wFMCommunicate request_size=4 [18:07:12]MH_SAM_APDU [18:07:12]CAPDU: 80 11 00 00 [18:07:12]Write to MH i2c: E2 08 00 13 1C 80 11 00 00 00 00 00 00 A9 [18:07:12]Write i2c OK [18:07:12]MH_I2C_Read... [18:07:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:12]Read from MH i2c: E2 [18:07:12]MH_I2C_Read... [18:07:12]Read from MH i2c: E2 17 00 [18:07:12]MH_I2C_Read... [18:07:12]Read from MH i2c: E2 17 00 13 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 FF [18:07:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:07:12]wFMCommunicate OK [18:07:12]CreateOFDProtocolMessage done [18:07:12]OFDSenderStorePacket 67540 [18:07:12]StoreOFDPacket docnum=67540 [18:07:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 C4 95 07 01 DB 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 66 17 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4D 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 99 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 8A 00 00 00 F4 03 04 00 50 4B 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D4 07 01 00 35 04 06 00 57 62 47 67 27 01 19 29 9D 3D 19 5C 69 6B [18:07:12]CheckFolder [18:07:12]dirname=/storage/ofd_packets [18:07:12]CheckFolder done [18:07:12]ProducePacketName [18:07:12]name=ofd_packets/00067540 [18:07:12]NVStorageSaveData ofd_packets/00067540 [18:07:12]File name is /storage/ofd_packets/00067540 [18:07:12]Write 301 bytes [18:07:12]NVStorageSaveData done [18:07:12]OFDSenderStorePacket done [18:07:12]KKMCreateOFDPacket done [18:07:12]NVStorageSaveData kkm_last_timestamp [18:07:12]File name is /storage/kkm_last_timestamp [18:07:12]Write 4 bytes [18:07:12]NVStorageSaveData done [18:07:12]ExternCall_PrintAddStr [18:07:12]wPrintStart [18:07:12]Write to MH i2c: 01 00 00 14 1C 30 [18:07:12]Write i2c OK [18:07:12]MH_I2C_Read... [18:07:12]Read from MH i2c: 01 [18:07:12]MH_I2C_Read... [18:07:12]Read from MH i2c: 01 07 00 [18:07:12]MH_I2C_Read... [18:07:12]Read from MH i2c: 01 07 00 14 1C 00 00 00 00 00 FF 0F 45 [18:07:12]RasterBufferAndPrint [18:07:12]line Счет N : (1)507602 [18:07:12]line ИНН: 02508201610067 [18:07:12]line Контрольно-Кассовый Чек [18:07:12]line ПРОДАЖА [18:07:12]line ТРК (МРК, ГНК) : 43 [18:07:12]line Товар: 2710124130 [18:07:12]line Аи-92-К-5 [18:07:12]line 5.990 * 66.80 [18:07:12]line = 400.13 [18:07:12]line НДС 12% НСП 1% [18:07:12]line > о реализуемом товаре [18:07:12]line ОКРУГЛЕНИЕ: -0.13 [18:07:12]line ИТОГО: 400.00 [18:07:12]line Внесено: 400.00 [18:07:12]line СДАЧА: 0.00 [18:07:12]line НСП 1% : 3.54 [18:07:12]line НДС 12% : 42.49 [18:07:12]line Наличными: 400.00 [18:07:12]line Безнал.: 0.00 [18:07:12]line Место: АЗС № 91 "Партнер Нефть" [18:07:12]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:07:12]line СНО: Общий режим [18:07:12]line Чек 138 16.05.2024 18:07 [18:07:12]line Смена: 357 ФФД: 1.0 [18:07:12]line ЗНМ: 0300000119 [18:07:12]line РНМ: 0000000000091845 [18:07:12]line Версия ККМ: 001 [18:07:12]line ФМ: 0000000000871829 [18:07:12]line ФД: 67540 [18:07:12]line ФПД: 96079616354049 [18:07:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T180712&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67540&fm=96079616354049&tin=02508201610067®Number=0000000000091845&sum=40000 [18:07:12]OFD Sender: Processing packet 67540 [packets to send 35, broken 34] [18:07:12]ProducePacketName [18:07:12]name=ofd_packets/00067540 [18:07:12]OFD Sender: To server: pG, [18:07:12]CommunicateWithHost lk.salyk.kg:30040 [18:07:12]ConnectInit lk.salyk.kg [18:07:12]written 0, free lines is 4095 [18:07:12]Connected sock=10 [18:07: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 38 32 39 0F 01 00 00 C4 95 07 01 DB 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 66 17 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4D 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 99 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 8A 00 00 00 F4 03 04 00 50 4B 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D4 07 01 00 35 04 06 00 57 62 47 67 27 01 19 29 9D 3D 19 5C 69 6B [18: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 38 32 39 4F 00 00 00 8C D1 47 00 6C 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 38 32 39 10 04 04 00 D4 07 01 00 F4 03 04 00 2A F3 45 66 B6 04 01 00 00 C4 9D 69 95 87 DB 87 77 [18:07:12]CommunicateWithHost err = 0 [18:07:12]CheckOFDResponse [18:07:12]1017 (14) - 77093643461234 [18:07:12]1041 (16) - 0000000000871829 [18:07:12]1040 (4) - 67540 [18:07:12]1012 (4) - 16.05.2024 11:51 [18:07:12]1206 (1) - 0 [18:07:12]OFD Sender: Remove packet 67540 [18:07:12]ProducePacketName [18:07:12]name=ofd_packets/00067540 [18:07:12]NVStorageDeleteData [18:07:12]Write to MH i2c: 01 00 00 3E 1C 5A [18:07:12]Write i2c OK [18:07:12]MH_I2C_Read... [18:07:12]Read from MH i2c: 01 [18:07:12]MH_I2C_Read... [18:07:12]Read from MH i2c: 01 07 00 [18:07:12]MH_I2C_Read... [18:07:12]Read from MH i2c: 01 07 00 3E 1C 00 00 00 00 00 CB 0C 38 [18:07:12]RasterBufferAndPrint [18:07:12]line [18:07:12]line [18:07:12]line [18:07:12]line [18:07:12]line [18:07:12]written 0, free lines is 3281 [18:07:12]MH_Cut [18:07:12]Write to MH i2c: D1 01 00 45 1C 01 33 [18:07:12]Write i2c OK [18:07:12]MH_I2C_Read... [18:07:12]Read from MH i2c: D1 [18:07:12]MH_I2C_Read... [18:07:12]Read from MH i2c: D1 01 00 [18:07:12]MH_I2C_Read... [18:07:12]Read from MH i2c: D1 01 00 45 1C 00 32 [18:07:12]Write to MH i2c: 01 00 00 46 1C 62 [18:07:12]Write i2c OK [18:07:12]MH_I2C_Read... [18:07:13]OFD Sender: No OFD packet to send [18:07:13]*** Cut start [18:07:13]*** Purtial cut [18:07:13]*** Stage 1: CUTSNS_PIN = 1 [18:07:13]Read from MH i2c: 01 [18:07:13]MH_I2C_Read... [18:07:13]*** Stop cut motor [18:07:13]*** Cut end [18:07:13]Read from MH i2c: 01 07 00 [18:07:13]MH_I2C_Read... [18:07:13]Read from MH i2c: 01 07 00 46 1C 00 00 00 00 00 FF 0F 77 [18:07:13]process_action close_receipt done [18:07:13]requested_data is exist [18:07:13]produce_requested_data [18:07:13]requested_item fm.sn is exist - process it [18:07:13]wFMCommunicate request_size=4 [18:07:13]MH_SAM_APDU [18:07:13]CAPDU: 80 11 00 00 [18:07:13]Write to MH i2c: E2 08 00 47 1C 80 11 00 00 00 00 00 00 DD [18:07:13]Write i2c OK [18:07:13]MH_I2C_Read... [18:07:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:14]Read from MH i2c: E2 [18:07:14]MH_I2C_Read... [18:07:14]Read from MH i2c: E2 17 00 [18:07:14]MH_I2C_Read... [18:07:14]Read from MH i2c: E2 17 00 47 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 33 [18:07:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:07:14]wFMCommunicate OK [18:07:14]requested_item fd.num is exist - process it [18:07:14]SAM_PROTO_GetFieldsCounters [18:07:14]wFMCommunicate request_size=4 [18:07:14]MH_SAM_APDU [18:07:14]CAPDU: 80 13 00 00 [18:07:14]Write to MH i2c: E2 08 00 48 1C 80 13 00 00 00 00 00 00 E0 [18:07:14]Write i2c OK [18:07:14]MH_I2C_Read... [18:07:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:07:14]Read from MH i2c: E2 [18:07:14]MH_I2C_Read... [18:07:14]Read from MH i2c: E2 62 00 [18:07:14]MH_I2C_Read... [18:07:14]Read from MH i2c: E2 62 00 48 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D4 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [18:07: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D4 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:07:14]wFMCommunicate OK [18:07:14]SAM_PROTO_GetFieldsCounters done [18:07:14]requested_item shift.num is exist - process it [18:07:14]requested_item shift.opened is exist - process it [18:07:14]req_shift_opened [18:07:14]FM_GetShiftState [18:07:14]SAM_PROTO_GetShiftState [18:07:14]wFMCommunicate request_size=4 [18:07:14]MH_SAM_APDU [18:07:14]CAPDU: 80 13 01 00 [18:07:14]Write to MH i2c: E2 08 00 49 1C 80 13 01 00 00 00 00 00 E2 [18:07:14]Write i2c OK [18:07:14]MH_I2C_Read... [18:07:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:14]Read from MH i2c: E2 [18:07:14]MH_I2C_Read... [18:07:14]Read from MH i2c: E2 0E 00 [18:07:14]MH_I2C_Read... [18:07:14]Read from MH i2c: E2 0E 00 49 1C 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 8E [18:07:14]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [18:07:14]wFMCommunicate OK [18:07:14]SAM_PROTO_GetShiftState done [18:07:14]FM_GetShiftState done [18:07:14]req_shift_opened done [18:07:14]requested_item shift.open_date is exist - process it [18:07:14]req_shift_open_date [18:07:14]req_shift_open_date done [18:07:14]produce_requested_data done [18:07:14]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67540,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [18:07:14]process_action_free close_receipt [18:07:14]json_value_free [18:07:14]json_value_free done [18:07:14]process_json_proto returns [18:07:14]Send response to host [18:07:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67540,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [18:07:14]free response buf [18:07:14]execute_script done [18:07:14]execute_script returns [18:07:14]free content buf [18:07:14]Sock 8.Close socket [18:07:14]Sock 8.Thread stoped [18:07:18]OFD Sender: No OFD packet to send [18:07:23]OFD Sender: No OFD packet to send [18:07:28]OFD Sender: No OFD packet to send [18:07:33]OFD Sender: No OFD packet to send [18:07:38]OFD Sender: No OFD packet to send [18:07:43]OFD Sender: No OFD packet to send [18:07:48]OFD Sender: No OFD packet to send [18:07:53]OFD Sender: No OFD packet to send [18:07:58]OFD Sender: No OFD packet to send [18:08:02]accept exits with 9 [18:08:02]New connection [18:08:02]New thread 3067182436 created [18:08:02]Thread 3067039076 joined [18:08:02]Waiting for new connection... [18:08:02] Sock 9.Parse request [18:08:02]Sock 9.Check first char [18:08:02]Sock 9.First char is OK [18:08:02]request: POST /json_proto HTTP/1.0 [18:08:02]Method: POST [18:08:02]URL: /json_proto [18:08:02]Method is POST - this is cgi request [18:08:02]url: /json_proto [18:08:02]query_string will be loaded in cgi processing [18:08:02]execute_cgi json_proto POST (null) [18:08:02]execute_cgi path=json_proto method=POST [18:08:02]POST find Content-Length [18:08:02]Host: 172.17.41.195:8080 [18:08:02]Content-Length: 677 [18:08:02]Content-Type: application/json [18:08:02] [18:08:02]POST finish read [18:08:02]Found Content-Length = 677 [18:08:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507603", "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.80, "quantity" : 3.000, "sum" : 200.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:02]execute_script... [18:08: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)507603", "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.80, "quantity" : 3.000, "sum" : 200.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:02]POST & json_proto [18:08:02]process_json_proto [18:08:02]json parsed OK: [18:08:02]protocol is kg_v1.0 [18:08:02]action value=close_receipt [18:08:02]process_action close_receipt [18:08:02]cmd_close_receipt [18:08:02]MH_GetDate [18:08:02]Write to MH i2c: F0 00 00 4A 1C 55 [18:08:02]Write i2c OK [18:08:02]MH_I2C_Read... [18:08:02]Read from MH i2c: F0 [18:08:02]MH_I2C_Read... [18:08:02]Read from MH i2c: F0 09 00 [18:08:02]MH_I2C_Read... [18:08:02]Read from MH i2c: F0 09 00 4A 1C 00 84 4B 46 66 FC 21 6F 64 C9 [18:08:02]GetLastDocTimeStamp 1715882832 [18:08:02]current date 1715882884 [18:08:02]FM_GetShiftState [18:08:02]SAM_PROTO_GetShiftState [18:08:02]wFMCommunicate request_size=4 [18:08:02]MH_SAM_APDU [18:08:02]CAPDU: 80 13 01 00 [18:08:02]Write to MH i2c: E2 08 00 4B 1C 80 13 01 00 00 00 00 00 E4 [18:08:02]Write i2c OK [18:08:02]MH_I2C_Read... [18:08:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:02]Read from MH i2c: E2 [18:08:02]MH_I2C_Read... [18:08:02]Read from MH i2c: E2 0E 00 [18:08:02]MH_I2C_Read... [18:08:02]Read from MH i2c: E2 0E 00 4B 1C 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 90 [18:08:02]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [18:08:02]wFMCommunicate OK [18:08:02]SAM_PROTO_GetShiftState done [18:08:02]FM_GetShiftState done [18:08:02]opened in 1715818916 [18:08:02]opened+sec_in_day 1715905316 [18:08:02]quantity*price = 20040 [18:08:02]sum+1 = 20041 [18:08:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.28 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 139 16.05.2024 18:08 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67541 ФПД: 66750154743182 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T180804&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67541&fm=66750154743182&tin=02508201610067®Number=0000000000091845&sum=20000 [18:08:04]StoreToDocumentArchive [18:08:04]shift 357 fd 67541 [18:08:04]save to /storage/0357/doc_00067541 [18:08:04]save last doc name /storage/0357/doc_00067541 to /storage/kkm_last_doc_name [18:08:04]save OK [18:08:04]Clear old archive folders... [18:08:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:08:04]tlvbuf is 017E8470 [18:08:04]SAM_PROTO_ClearQueue [18:08:04]wFMCommunicate request_size=4 [18:08:04]MH_SAM_APDU [18:08:04]CAPDU: 80 09 00 00 [18:08:04]Write to MH i2c: E2 08 00 58 1C 80 09 00 00 00 00 00 00 E6 [18:08:04]Write i2c OK [18:08:04]MH_I2C_Read... [18:08:04]Read from MH i2c: E2 [18:08:04]MH_I2C_Read... [18:08:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:08:04]Read from MH i2c: E2 03 00 [18:08:04]MH_I2C_Read... [18:08:04]Read from MH i2c: E2 03 00 58 1C 00 90 00 E8 [18:08:04]RAPDU: 90 00 [18:08:04]wFMCommunicate OK [18:08:04]SAM_PROTO_ClearQueue done [18:08:04]KKMCreateOFDPacket [18:08:04]OFDProtocolAddRootSTLVToBuf [18:08:04]FM_MakeSignedData [18:08:04]FM_MakeSignedData [18:08:04]SAM_PROTO_SignData [18:08:04]wFMCommunicate request_size=4 [18:08:04]MH_SAM_APDU [18:08:04]CAPDU: 80 0D 01 02 [18:08:04]Write to MH i2c: E2 08 00 59 1C 80 0D 01 02 00 00 00 00 EE [18:08:04]Write i2c OK [18:08:04]MH_I2C_Read... [18:08:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:08:04]Read from MH i2c: E2 [18:08:04]MH_I2C_Read... [18:08:04]Read from MH i2c: E2 03 00 [18:08:04]MH_I2C_Read... [18:08:04]Read from MH i2c: E2 03 00 59 1C 00 90 00 E9 [18:08:04]RAPDU: 90 00 [18:08:04]wFMCommunicate OK [18:08:04]wFMCommunicate request_size=255 [18:08:04]MH_SAM_APDU [18:08:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 48 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 50 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 8B 00 00 00 F4 03 04 00 84 4B 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D5 07 01 00 35 04 06 00 3C [18:08:04]Write to MH i2c: E2 02 01 5A 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 B8 0B 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 48 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 50 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 8B 00 00 00 F4 03 04 00 84 4B 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D5 07 01 00 35 04 06 00 3C 00 00 F2 [18:08:04]Write i2c OK [18:08:04]MH_I2C_Read... [18:08:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:04]Read from MH i2c: E2 [18:08:04]MH_I2C_Read... [18:08:04]Read from MH i2c: E2 03 00 [18:08:04]MH_I2C_Read... [18:08:04]Read from MH i2c: E2 03 00 5A 1C 00 90 00 EA [18:08:04]RAPDU: 90 00 [18:08:04]wFMCommunicate OK [18:08:04]wFMCommunicate request_size=10 [18:08:04]MH_SAM_APDU [18:08:04]CAPDU: 80 0D 02 02 05 B5 7B 43 1D 8E [18:08:04]Write to MH i2c: E2 0D 00 5B 1C 80 0D 02 02 05 00 B5 7B 43 1D 8E 00 00 19 [18:08:04]Write i2c OK [18:08:04]MH_I2C_Read... [18:08:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:04]Read from MH i2c: E2 [18:08:04]MH_I2C_Read... [18:08:04]Read from MH i2c: E2 03 00 [18:08:04]MH_I2C_Read... [18:08:04]Read from MH i2c: E2 03 00 5B 1C 00 90 00 EB [18:08:04]RAPDU: 90 00 [18:08:04]wFMCommunicate OK [18:08:04]wFMCommunicate request_size=4 [18:08:04]MH_SAM_APDU [18:08:04]CAPDU: 80 0D 03 02 [18:08:04]Write to MH i2c: E2 08 00 5C 1C 80 0D 03 02 00 00 00 00 F3 [18:08:04]Write i2c OK [18:08:04]MH_I2C_Read... [18:08:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:08:04]Read from MH i2c: E2 [18:08:04]MH_I2C_Read... [18:08:04]Read from MH i2c: E2 0B 00 [18:08:04]MH_I2C_Read... [18:08:04]Read from MH i2c: E2 0B 00 5C 1C 00 59 A5 FB A8 C0 D7 B4 78 90 00 58 [18:08:04]RAPDU: 59 A5 FB A8 C0 D7 B4 78 90 00 [18:08:04]wFMCommunicate OK [18:08:04]SAM_PROTO_SignData done [18:08:04]FM_MakeSignedData done [18:08:04]CreateOFDProtocolMessage [18:08:04]wFMCommunicate request_size=4 [18:08:04]MH_SAM_APDU [18:08:04]CAPDU: 80 11 00 00 [18:08:04]Write to MH i2c: E2 08 00 5D 1C 80 11 00 00 00 00 00 00 F3 [18:08:04]Write i2c OK [18:08:04]MH_I2C_Read... [18:08:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:04]Read from MH i2c: E2 [18:08:04]MH_I2C_Read... [18:08:04]Read from MH i2c: E2 17 00 [18:08:04]MH_I2C_Read... [18:08:04]Read from MH i2c: E2 17 00 5D 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 49 [18:08:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:08:04]wFMCommunicate OK [18:08:04]CreateOFDProtocolMessage done [18:08:04]OFDSenderStorePacket 67541 [18:08:04]StoreOFDPacket docnum=67541 [18:08:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 E1 92 07 01 90 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 B8 0B 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 48 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 50 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 8B 00 00 00 F4 03 04 00 84 4B 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D5 07 01 00 35 04 06 00 3C B5 7B 43 1D 8E 59 A5 FB A8 C0 D7 B4 78 [18:08:04]CheckFolder [18:08:04]dirname=/storage/ofd_packets [18:08:04]CheckFolder done [18:08:04]ProducePacketName [18:08:04]name=ofd_packets/00067541 [18:08:04]NVStorageSaveData ofd_packets/00067541 [18:08:04]File name is /storage/ofd_packets/00067541 [18:08:04]Write 301 bytes [18:08:04]NVStorageSaveData done [18:08:04]OFDSenderStorePacket done [18:08:04]KKMCreateOFDPacket done [18:08:04]NVStorageSaveData kkm_last_timestamp [18:08:04]File name is /storage/kkm_last_timestamp [18:08:04]Write 4 bytes [18:08:04]NVStorageSaveData done [18:08:04]ExternCall_PrintAddStr [18:08:04]wPrintStart [18:08:04]Write to MH i2c: 01 00 00 5E 1C 7A [18:08:04]Write i2c OK [18:08:04]MH_I2C_Read... [18:08:04]Read from MH i2c: 01 [18:08:04]MH_I2C_Read... [18:08:04]Read from MH i2c: 01 07 00 [18:08:04]MH_I2C_Read... [18:08:04]Read from MH i2c: 01 07 00 5E 1C 00 00 00 00 00 FF 0F 8F [18:08:04]RasterBufferAndPrint [18:08:04]line Счет N : (1)507603 [18:08:04]line ИНН: 02508201610067 [18:08:04]line Контрольно-Кассовый Чек [18:08:04]line ПРОДАЖА [18:08:04]line ТРК (МРК, ГНК) : 33 [18:08:04]line Товар: 2710124130 [18:08:04]line Аи-92-К-5 [18:08:04]line 3.000 * 66.80 [18:08:04]line = 200.40 [18:08:04]line НДС 12% НСП 1% [18:08:04]line > о реализуемом товаре [18:08:04]line ОКРУГЛЕНИЕ: -0.40 [18:08:04]line ИТОГО: 200.00 [18:08:04]line Внесено: 200.00 [18:08:04]line СДАЧА: 0.00 [18:08:04]line НСП 1% : 1.77 [18:08:04]line НДС 12% : 21.28 [18:08:04]line Наличными: 200.00 [18:08:04]line Безнал.: 0.00 [18:08:04]line Место: АЗС № 91 "Партнер Нефть" [18:08:04]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:08:04]line СНО: Общий режим [18:08:04]line Чек 139 16.05.2024 18:08 [18:08:04]line Смена: 357 ФФД: 1.0 [18:08:04]line ЗНМ: 0300000119 [18:08:04]line РНМ: 0000000000091845 [18:08:04]line Версия ККМ: 001 [18:08:04]line ФМ: 0000000000871829 [18:08:04]line ФД: 67541 [18:08:04]line ФПД: 66750154743182 [18:08:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T180804&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67541&fm=66750154743182&tin=02508201610067®Number=0000000000091845&sum=20000 [18:08:04]OFD Sender: Processing packet 67541 [packets to send 35, broken 34] [18:08:04]ProducePacketName [18:08:04]name=ofd_packets/00067541 [18:08:04]OFD Sender: To server: pG, [18:08:04]CommunicateWithHost lk.salyk.kg:30040 [18:08:04]ConnectInit lk.salyk.kg [18:08:04]written 0, free lines is 4095 [18:08:05]Connected sock=10 [18:08: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 38 32 39 0F 01 00 00 E1 92 07 01 90 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 B8 0B 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 48 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 50 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 8B 00 00 00 F4 03 04 00 84 4B 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D5 07 01 00 35 04 06 00 3C B5 7B 43 1D 8E 59 A5 FB A8 C0 D7 B4 78 [18:08:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 2D 9D 47 00 61 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D5 07 01 00 F4 03 04 00 5E F3 45 66 B6 04 01 00 00 9D 92 71 CE 1C AB 85 47 [18:08:05]CommunicateWithHost err = 0 [18:08:05]CheckOFDResponse [18:08:05]1017 (14) - 77093643461234 [18:08:05]1041 (16) - 0000000000871829 [18:08:05]1040 (4) - 67541 [18:08:05]1012 (4) - 16.05.2024 11:51 [18:08:05]1206 (1) - 0 [18:08:05]OFD Sender: Remove packet 67541 [18:08:05]ProducePacketName [18:08:05]name=ofd_packets/00067541 [18:08:05]NVStorageDeleteData [18:08:05]Write to MH i2c: 01 00 00 88 1C A4 [18:08:05]Write i2c OK [18:08:05]MH_I2C_Read... [18:08:05]Read from MH i2c: 01 [18:08:05]MH_I2C_Read... [18:08:05]Read from MH i2c: 01 07 00 [18:08:05]MH_I2C_Read... [18:08:05]Read from MH i2c: 01 07 00 88 1C 00 00 00 00 00 D8 0C 8F [18:08:05]RasterBufferAndPrint [18:08:05]line [18:08:05]line [18:08:05]line [18:08:05]line [18:08:05]line [18:08:05]written 0, free lines is 3298 [18:08:05]MH_Cut [18:08:05]Write to MH i2c: D1 01 00 8F 1C 01 7D [18:08:05]Write i2c OK [18:08:05]MH_I2C_Read... [18:08:05]Read from MH i2c: D1 [18:08:05]MH_I2C_Read... [18:08:05]Read from MH i2c: D1 01 00 [18:08:05]MH_I2C_Read... [18:08:05]Read from MH i2c: D1 01 00 8F 1C 00 7C [18:08:05]Write to MH i2c: 01 00 00 90 1C AC [18:08:05]Write i2c OK [18:08:05]MH_I2C_Read... [18:08:05]OFD Sender: No OFD packet to send [18:08:06]*** Cut start [18:08:06]*** Purtial cut [18:08:06]*** CUTSNS_PIN = 0 [18:08:06]*** Stage 1: CUTSNS_PIN = 1 [18:08:08]Read from MH i2c: 01 [18:08:08]MH_I2C_Read... [18:08:08]*** Stop cut motor [18:08:08]*** Cut end [18:08:08]Read from MH i2c: 01 07 00 [18:08:08]MH_I2C_Read... [18:08:08]Read from MH i2c: 01 07 00 90 1C 00 00 00 00 00 FF 0F C1 [18:08:08]process_action close_receipt done [18:08:08]requested_data is exist [18:08:08]produce_requested_data [18:08:08]requested_item fm.sn is exist - process it [18:08:08]wFMCommunicate request_size=4 [18:08:08]MH_SAM_APDU [18:08:08]CAPDU: 80 11 00 00 [18:08:08]Write to MH i2c: E2 08 00 91 1C 80 11 00 00 00 00 00 00 27 [18:08:08]Write i2c OK [18:08:08]MH_I2C_Read... [18:08:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:08]Read from MH i2c: E2 [18:08:08]MH_I2C_Read... [18:08:08]Read from MH i2c: E2 17 00 [18:08:08]MH_I2C_Read... [18:08:08]Read from MH i2c: E2 17 00 91 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7D [18:08:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:08:08]wFMCommunicate OK [18:08:08]requested_item fd.num is exist - process it [18:08:08]SAM_PROTO_GetFieldsCounters [18:08:08]wFMCommunicate request_size=4 [18:08:08]MH_SAM_APDU [18:08:08]CAPDU: 80 13 00 00 [18:08:08]Write to MH i2c: E2 08 00 92 1C 80 13 00 00 00 00 00 00 2A [18:08:08]Write i2c OK [18:08:08]MH_I2C_Read... [18:08:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:08:08]Read from MH i2c: E2 [18:08:08]MH_I2C_Read... [18:08:08]Read from MH i2c: E2 62 00 [18:08:08]MH_I2C_Read... [18:08:08]Read from MH i2c: E2 62 00 92 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D5 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [18:08: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D5 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:08:08]wFMCommunicate OK [18:08:08]SAM_PROTO_GetFieldsCounters done [18:08:08]requested_item shift.num is exist - process it [18:08:08]requested_item shift.opened is exist - process it [18:08:08]req_shift_opened [18:08:08]FM_GetShiftState [18:08:08]SAM_PROTO_GetShiftState [18:08:08]wFMCommunicate request_size=4 [18:08:08]MH_SAM_APDU [18:08:08]CAPDU: 80 13 01 00 [18:08:08]Write to MH i2c: E2 08 00 93 1C 80 13 01 00 00 00 00 00 2C [18:08:08]Write i2c OK [18:08:08]MH_I2C_Read... [18:08:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:08]Read from MH i2c: E2 [18:08:08]MH_I2C_Read... [18:08:08]Read from MH i2c: E2 0E 00 [18:08:08]MH_I2C_Read... [18:08:08]Read from MH i2c: E2 0E 00 93 1C 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 D8 [18:08:08]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [18:08:08]wFMCommunicate OK [18:08:08]SAM_PROTO_GetShiftState done [18:08:08]FM_GetShiftState done [18:08:08]req_shift_opened done [18:08:08]requested_item shift.open_date is exist - process it [18:08:08]req_shift_open_date [18:08:08]req_shift_open_date done [18:08:08]produce_requested_data done [18:08:08]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67541,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [18:08:08]process_action_free close_receipt [18:08:08]json_value_free [18:08:08]json_value_free done [18:08:08]process_json_proto returns [18:08:08]Send response to host [18:08:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67541,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [18:08:08]free response buf [18:08:08]execute_script done [18:08:08]execute_script returns [18:08:08]free content buf [18:08:08]Sock 9.Close socket [18:08:08]Sock 9.Thread stoped [18:08:10]OFD Sender: No OFD packet to send [18:08:15]OFD Sender: No OFD packet to send [18:08:20]OFD Sender: No OFD packet to send [18:08:25]OFD Sender: No OFD packet to send [18:08:30]OFD Sender: No OFD packet to send [18:08:35]OFD Sender: No OFD packet to send [18:08:40]OFD Sender: No OFD packet to send [18:08:45]OFD Sender: No OFD packet to send [18:08:50]OFD Sender: No OFD packet to send [18:08:55]OFD Sender: No OFD packet to send [18:09:00]OFD Sender: No OFD packet to send [18:09:05]OFD Sender: No OFD packet to send [18:09:10]OFD Sender: No OFD packet to send [18:09:15]OFD Sender: No OFD packet to send [18:09:20]OFD Sender: No OFD packet to send [18:09:25]OFD Sender: No OFD packet to send [18:09:30]OFD Sender: No OFD packet to send [18:09:35]OFD Sender: No OFD packet to send [18:09:40]OFD Sender: No OFD packet to send [18:09:45]OFD Sender: No OFD packet to send [18:09:50]OFD Sender: No OFD packet to send [18:09:55]OFD Sender: No OFD packet to send [18:10:00]OFD Sender: No OFD packet to send [18:10:05]OFD Sender: No OFD packet to send [18:10:10]OFD Sender: No OFD packet to send [18:10:15]OFD Sender: No OFD packet to send [18:10:20]OFD Sender: No OFD packet to send [18:10:25]OFD Sender: No OFD packet to send [18:10:30]OFD Sender: No OFD packet to send [18:10:35]OFD Sender: No OFD packet to send [18:10:40]OFD Sender: No OFD packet to send [18:10:45]OFD Sender: No OFD packet to send [18:10:50]OFD Sender: No OFD packet to send [18:10:55]OFD Sender: No OFD packet to send [18:11:00]OFD Sender: No OFD packet to send [18:11:05]OFD Sender: No OFD packet to send [18:11:10]OFD Sender: No OFD packet to send [18:11:15]OFD Sender: No OFD packet to send [18:11:20]OFD Sender: No OFD packet to send [18:11:25]OFD Sender: No OFD packet to send [18:11:30]OFD Sender: No OFD packet to send [18:11:35]OFD Sender: No OFD packet to send [18:11:40]OFD Sender: No OFD packet to send [18:11:45]OFD Sender: No OFD packet to send [18:11:50]OFD Sender: No OFD packet to send [18:11:55]OFD Sender: No OFD packet to send [18:12:00]OFD Sender: No OFD packet to send [18:12:05]OFD Sender: No OFD packet to send [18:12:10]OFD Sender: No OFD packet to send [18:12:15]OFD Sender: No OFD packet to send [18:12:20]OFD Sender: No OFD packet to send [18:12:25]OFD Sender: No OFD packet to send [18:12:30]OFD Sender: No OFD packet to send [18:12:35]OFD Sender: No OFD packet to send [18:12:40]OFD Sender: No OFD packet to send [18:12:45]OFD Sender: No OFD packet to send [18:12:50]OFD Sender: No OFD packet to send [18:12:55]OFD Sender: No OFD packet to send [18:13:00]OFD Sender: No OFD packet to send [18:13:05]OFD Sender: No OFD packet to send [18:13:10]OFD Sender: No OFD packet to send [18:13:15]OFD Sender: No OFD packet to send [18:13:20]OFD Sender: No OFD packet to send [18:13:25]OFD Sender: No OFD packet to send [18:13: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:11]OFD Sender: No OFD packet to send [18:14:16]OFD Sender: No OFD packet to send [18:14:21]OFD Sender: No OFD packet to send [18:14:26]OFD Sender: No OFD packet to send [18:14:31]OFD Sender: No OFD packet to send [18:14:36]OFD Sender: No OFD packet to send [18:14:41]OFD Sender: No OFD packet to send [18:14:46]OFD Sender: No OFD packet to send [18:14:51]OFD Sender: No OFD packet to send [18:14:56]OFD Sender: No OFD packet to send [18:15:01]OFD Sender: No OFD packet to send [18:15:06]OFD Sender: No OFD packet to send [18:15:11]OFD Sender: No OFD packet to send [18:15:16]OFD Sender: No OFD packet to send [18:15:21]OFD Sender: No OFD packet to send [18:15:26]OFD Sender: No OFD packet to send [18:15:31]OFD Sender: No OFD packet to send [18:15:36]OFD Sender: No OFD packet to send [18:15:41]OFD Sender: No OFD packet to send [18:15:46]OFD Sender: No OFD packet to send [18:15:51]OFD Sender: No OFD packet to send [18:15:56]OFD Sender: No OFD packet to send [18:16:01]OFD Sender: No OFD packet to send [18:16:06]OFD Sender: No OFD packet to send [18:16:11]OFD Sender: No OFD packet to send [18:16:16]OFD Sender: No OFD packet to send [18:16:21]OFD Sender: No OFD packet to send [18:16:26]OFD Sender: No OFD packet to send [18:16:31]accept exits with 8 [18:16:31]New connection [18:16:31]New thread 3067039076 created [18:16:31]Thread 3067182436 joined [18:16:31]Waiting for new connection... [18:16:31] Sock 8.Parse request [18:16:31]Sock 8.Check first char [18:16:31]Sock 8.First char is OK [18:16:31]request: POST /json_proto HTTP/1.0 [18:16:31]Method: POST [18:16:31]URL: /json_proto [18:16:31]Method is POST - this is cgi request [18:16:31]url: /json_proto [18:16:31]query_string will be loaded in cgi processing [18:16:31]execute_cgi json_proto POST (null) [18:16:31]execute_cgi path=json_proto method=POST [18:16:31]POST find Content-Length [18:16:31]Host: 172.17.41.195:8080 [18:16:31]Content-Length: 812 [18:16:31]Content-Type: application/json [18:16:31] [18:16:31]POST finish read [18:16:31]Found Content-Length = 812 [18:16:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507604", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:16:31]execute_script... [18:16: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)507604", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:16:31]POST & json_proto [18:16:31]process_json_proto [18:16:31]json parsed OK: [18:16:31]protocol is kg_v1.0 [18:16:31]action value=close_receipt [18:16:31]process_action close_receipt [18:16:31]cmd_close_receipt [18:16:31]MH_GetDate [18:16:31]Write to MH i2c: F0 00 00 94 1C 9F [18:16:31]Write i2c OK [18:16:31]MH_I2C_Read... [18:16:31]Read from MH i2c: F0 [18:16:31]MH_I2C_Read... [18:16:31]Read from MH i2c: F0 09 00 [18:16:31]MH_I2C_Read... [18:16:31]Read from MH i2c: F0 09 00 94 1C 00 80 4D 46 66 FC 21 6F 64 11 [18:16:31]GetLastDocTimeStamp 1715882884 [18:16:31]current date 1715883392 [18:16:31]FM_GetShiftState [18:16:31]SAM_PROTO_GetShiftState [18:16:31]wFMCommunicate request_size=4 [18:16:31]MH_SAM_APDU [18:16:31]CAPDU: 80 13 01 00 [18:16:31]Write to MH i2c: E2 08 00 95 1C 80 13 01 00 00 00 00 00 2E [18:16:31]Write i2c OK [18:16:31]MH_I2C_Read... [18:16:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:31]Read from MH i2c: E2 [18:16:31]MH_I2C_Read... [18:16:31]Read from MH i2c: E2 0E 00 [18:16:31]MH_I2C_Read... [18:16:31]Read from MH i2c: E2 0E 00 95 1C 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 DA [18:16:31]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [18:16:31]wFMCommunicate OK [18:16:31]SAM_PROTO_GetShiftState done [18:16:31]FM_GetShiftState done [18:16:31]opened in 1715818916 [18:16:31]opened+sec_in_day 1715905316 [18:16:31]quantity*price = 150041 [18:16:31]sum+1 = 150042 [18:16:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.41 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 0.00 Безнал.: 1500.41 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 140 16.05.2024 18:16 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67542 ФПД: 252225443436037 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T181633&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67542&fm=252225443436037&tin=02508201610067®Number=0000000000091845&sum=150041 [18:16:32]StoreToDocumentArchive [18:16:32]shift 357 fd 67542 [18:16:32]save to /storage/0357/doc_00067542 [18:16:32]save last doc name /storage/0357/doc_00067542 to /storage/kkm_last_doc_name [18:16:32]save OK [18:16:32]Clear old archive folders... [18:16:32]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:16:32]tlvbuf is 0180D580 [18:16:32]SAM_PROTO_ClearQueue [18:16:32]wFMCommunicate request_size=4 [18:16:32]MH_SAM_APDU [18:16:32]CAPDU: 80 09 00 00 [18:16:32]Write to MH i2c: E2 08 00 A2 1C 80 09 00 00 00 00 00 00 30 [18:16:32]Write i2c OK [18:16:32]MH_I2C_Read... [18:16:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:16:32]Read from MH i2c: E2 [18:16:32]MH_I2C_Read... [18:16:32]Read from MH i2c: E2 03 00 [18:16:32]MH_I2C_Read... [18:16:32]Read from MH i2c: E2 03 00 A2 1C 00 90 00 32 [18:16:32]RAPDU: 90 00 [18:16:32]wFMCommunicate OK [18:16:32]SAM_PROTO_ClearQueue done [18:16:32]KKMCreateOFDPacket [18:16:32]OFDProtocolAddRootSTLVToBuf [18:16:32]FM_MakeSignedData [18:16:32]FM_MakeSignedData [18:16:32]SAM_PROTO_SignData [18:16:32]wFMCommunicate request_size=4 [18:16:32]MH_SAM_APDU [18:16:32]CAPDU: 80 0D 01 02 [18:16:32]Write to MH i2c: E2 08 00 A3 1C 80 0D 01 02 00 00 00 00 38 [18:16:32]Write i2c OK [18:16:32]MH_I2C_Read... [18:16:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:16:32]Read from MH i2c: E2 [18:16:32]MH_I2C_Read... [18:16:32]Read from MH i2c: E2 03 00 [18:16:32]MH_I2C_Read... [18:16:32]Read from MH i2c: E2 03 00 A3 1C 00 90 00 33 [18:16:32]RAPDU: 90 00 [18:16:32]wFMCommunicate OK [18:16:32]wFMCommunicate request_size=255 [18:16:32]MH_SAM_APDU [18:16:32]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 81 4D 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D6 07 01 00 35 04 06 00 [18:16:32]Write to MH i2c: E2 02 01 A4 1C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 81 4D 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D6 07 01 00 35 04 06 00 00 00 F9 [18:16:32]Write i2c OK [18:16:32]MH_I2C_Read... [18:16:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:32]Read from MH i2c: E2 [18:16:32]MH_I2C_Read... [18:16:32]Read from MH i2c: E2 03 00 [18:16:32]MH_I2C_Read... [18:16:32]Read from MH i2c: E2 03 00 A4 1C 00 90 00 34 [18:16:32]RAPDU: 90 00 [18:16:32]wFMCommunicate OK [18:16:32]wFMCommunicate request_size=11 [18:16:32]MH_SAM_APDU [18:16:32]CAPDU: 80 0D 02 02 06 E5 65 CF F5 96 05 [18:16:32]Write to MH i2c: E2 0E 00 A5 1C 80 0D 02 02 06 00 E5 65 CF F5 96 05 00 00 F0 [18:16:32]Write i2c OK [18:16:32]MH_I2C_Read... [18:16:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:32]Read from MH i2c: E2 [18:16:32]MH_I2C_Read... [18:16:32]Read from MH i2c: E2 03 00 [18:16:32]MH_I2C_Read... [18:16:32]Read from MH i2c: E2 03 00 A5 1C 00 90 00 35 [18:16:32]RAPDU: 90 00 [18:16:32]wFMCommunicate OK [18:16:32]wFMCommunicate request_size=4 [18:16:32]MH_SAM_APDU [18:16:32]CAPDU: 80 0D 03 02 [18:16:32]Write to MH i2c: E2 08 00 A6 1C 80 0D 03 02 00 00 00 00 3D [18:16:32]Write i2c OK [18:16:32]MH_I2C_Read... [18:16:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:16:32]Read from MH i2c: E2 [18:16:32]MH_I2C_Read... [18:16:32]Read from MH i2c: E2 0B 00 [18:16:32]MH_I2C_Read... [18:16:32]Read from MH i2c: E2 0B 00 A6 1C 00 EC 09 FC CB C0 D9 03 68 90 00 FE [18:16:32]RAPDU: EC 09 FC CB C0 D9 03 68 90 00 [18:16:32]wFMCommunicate OK [18:16:32]SAM_PROTO_SignData done [18:16:32]FM_MakeSignedData done [18:16:32]CreateOFDProtocolMessage [18:16:32]wFMCommunicate request_size=4 [18:16:32]MH_SAM_APDU [18:16:32]CAPDU: 80 11 00 00 [18:16:32]Write to MH i2c: E2 08 00 A7 1C 80 11 00 00 00 00 00 00 3D [18:16:32]Write i2c OK [18:16:32]MH_I2C_Read... [18:16:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:32]Read from MH i2c: E2 [18:16:32]MH_I2C_Read... [18:16:32]Read from MH i2c: E2 17 00 [18:16:32]MH_I2C_Read... [18:16:32]Read from MH i2c: E2 17 00 A7 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 93 [18:16:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:16:32]wFMCommunicate OK [18:16:32]CreateOFDProtocolMessage done [18:16:32]OFDSenderStorePacket 67542 [18:16:32]StoreOFDPacket docnum=67542 [18:16:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 51 1F 08 01 CB B0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 81 4D 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D6 07 01 00 35 04 06 00 E5 65 CF F5 96 05 EC 09 FC CB C0 D9 03 68 [18:16:32]CheckFolder [18:16:32]dirname=/storage/ofd_packets [18:16:32]CheckFolder done [18:16:32]ProducePacketName [18:16:32]name=ofd_packets/00067542 [18:16:32]NVStorageSaveData ofd_packets/00067542 [18:16:32]File name is /storage/ofd_packets/00067542 [18:16:32]Write 302 bytes [18:16:32]NVStorageSaveData done [18:16:32]OFDSenderStorePacket done [18:16:32]KKMCreateOFDPacket done [18:16:32]NVStorageSaveData kkm_last_timestamp [18:16:32]File name is /storage/kkm_last_timestamp [18:16:32]Write 4 bytes [18:16:32]NVStorageSaveData done [18:16:32]ExternCall_PrintAddStr [18:16:32]wPrintStart [18:16:32]Write to MH i2c: 01 00 00 A8 1C C4 [18:16:32]Write i2c OK [18:16:32]MH_I2C_Read... [18:16:32]Read from MH i2c: 01 [18:16:32]MH_I2C_Read... [18:16:32]Read from MH i2c: 01 07 00 [18:16:32]MH_I2C_Read... [18:16:32]Read from MH i2c: 01 07 00 A8 1C 00 00 00 00 00 FF 0F D9 [18:16:32]RasterBufferAndPrint [18:16:32]line Счет N : (1)507604 [18:16:32]line ИНН: 02508201610067 [18:16:32]line Контрольно-Кассовый Чек [18:16:32]line ПРОДАЖА [18:16:32]line ТРК (МРК, ГНК) : 32 [18:16:32]line Товар: 2710124130 [18:16:32]line Super-92-К-5 [18:16:32]line 22.130 * 67.80 [18:16:32]line = 1500.41 [18:16:32]line НДС 12% НСП 1% [18:16:32]line > о реализуемом товаре [18:16:32]line ИТОГО: 1500.41 [18:16:32]line НСП 1% : 13.28 [18:16:32]line НДС 12% : 159.34 [18:16:32]line Наличными: 0.00 [18:16:32]line Безнал.: 1500.41 [18:16:32]line Место: АЗС № 91 "Партнер Нефть" [18:16:32]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:16:32]line СНО: Общий режим [18:16:32]line Чек 140 16.05.2024 18:16 [18:16:32]line Смена: 357 ФФД: 1.0 [18:16:32]line ЗНМ: 0300000119 [18:16:32]line РНМ: 0000000000091845 [18:16:32]line Версия ККМ: 001 [18:16:32]line Платежная система: Бакай Банк [18:16:32]line ФМ: 0000000000871829 [18:16:32]line ФД: 67542 [18:16:32]line ФПД: 252225443436037 [18:16:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T181633&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67542&fm=252225443436037&tin=02508201610067®Number=0000000000091845&sum=150041 [18:16:33]OFD Sender: Processing packet 67542 [packets to send 35, broken 34] [18:16:33]ProducePacketName [18:16:33]name=ofd_packets/00067542 [18:16:33]OFD Sender: To server: pG, [18:16:33]CommunicateWithHost lk.salyk.kg:30040 [18:16:33]ConnectInit lk.salyk.kg [18:16:33]written 0, free lines is 4095 [18:16:33]Connected sock=10 [18:16: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 38 32 39 10 01 00 00 51 1F 08 01 CB B0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 81 4D 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D6 07 01 00 35 04 06 00 E5 65 CF F5 96 05 EC 09 FC CB C0 D9 03 68 [18:16:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 B8 F8 47 00 D1 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 38 32 39 10 04 04 00 D6 07 01 00 F4 03 04 00 5B F5 45 66 B6 04 01 00 00 65 B6 A9 BB 43 9E D7 ED [18:16:33]CommunicateWithHost err = 0 [18:16:33]CheckOFDResponse [18:16:33]1017 (14) - 77093643461234 [18:16:33]1041 (16) - 0000000000871829 [18:16:33]1040 (4) - 67542 [18:16:33]1012 (4) - 16.05.2024 12:00 [18:16:33]1206 (1) - 0 [18:16:33]OFD Sender: Remove packet 67542 [18:16:33]ProducePacketName [18:16:33]name=ofd_packets/00067542 [18:16:33]NVStorageDeleteData [18:16:33]Write to MH i2c: 01 00 00 D1 1C ED [18:16:33]Write i2c OK [18:16:33]MH_I2C_Read... [18:16:33]Read from MH i2c: 01 [18:16:33]MH_I2C_Read... [18:16:33]Read from MH i2c: 01 07 00 [18:16:33]MH_I2C_Read... [18:16:33]Read from MH i2c: 01 07 00 D1 1C 00 00 00 00 00 DC 0C DC [18:16:33]RasterBufferAndPrint [18:16:33]line [18:16:33]line [18:16:33]line [18:16:33]line [18:16:33]line [18:16:33]written 0, free lines is 3298 [18:16:33]MH_Cut [18:16:33]Write to MH i2c: D1 01 00 D8 1C 01 C6 [18:16:33]Write i2c OK [18:16:33]MH_I2C_Read... [18:16:33]Read from MH i2c: D1 [18:16:33]MH_I2C_Read... [18:16:33]Read from MH i2c: D1 01 00 [18:16:33]MH_I2C_Read... [18:16:33]Read from MH i2c: D1 01 00 D8 1C 00 C5 [18:16:33]Write to MH i2c: 01 00 00 D9 1C F5 [18:16:33]Write i2c OK [18:16:33]MH_I2C_Read... [18:16:33]OFD Sender: No OFD packet to send [18:16:34]*** Cut start [18:16:34]*** Purtial cut [18:16:34]*** Stage 1: CUTSNS_PIN = 1 [18:16:34]Read from MH i2c: 01 [18:16:34]MH_I2C_Read... [18:16:34]*** Stop cut motor [18:16:34]*** Cut end [18:16:34]Read from MH i2c: 01 07 00 [18:16:34]MH_I2C_Read... [18:16:34]Read from MH i2c: 01 07 00 D9 1C 00 00 00 00 00 FF 0F 0A [18:16:34]process_action close_receipt done [18:16:34]requested_data is exist [18:16:34]produce_requested_data [18:16:34]requested_item fm.sn is exist - process it [18:16:34]wFMCommunicate request_size=4 [18:16:34]MH_SAM_APDU [18:16:34]CAPDU: 80 11 00 00 [18:16:34]Write to MH i2c: E2 08 00 DA 1C 80 11 00 00 00 00 00 00 70 [18:16:34]Write i2c OK [18:16:34]MH_I2C_Read... [18:16:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:34]Read from MH i2c: E2 [18:16:34]MH_I2C_Read... [18:16:34]Read from MH i2c: E2 17 00 [18:16:34]MH_I2C_Read... [18:16:34]Read from MH i2c: E2 17 00 DA 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C6 [18:16:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:16:34]wFMCommunicate OK [18:16:34]requested_item fd.num is exist - process it [18:16:34]SAM_PROTO_GetFieldsCounters [18:16:34]wFMCommunicate request_size=4 [18:16:34]MH_SAM_APDU [18:16:34]CAPDU: 80 13 00 00 [18:16:34]Write to MH i2c: E2 08 00 DB 1C 80 13 00 00 00 00 00 00 73 [18:16:34]Write i2c OK [18:16:34]MH_I2C_Read... [18:16:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:16:34]Read from MH i2c: E2 [18:16:34]MH_I2C_Read... [18:16:34]Read from MH i2c: E2 62 00 [18:16:34]MH_I2C_Read... [18:16:34]Read from MH i2c: E2 62 00 DB 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D6 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [18:16: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D6 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:16:34]wFMCommunicate OK [18:16:34]SAM_PROTO_GetFieldsCounters done [18:16:34]requested_item shift.num is exist - process it [18:16:34]requested_item shift.opened is exist - process it [18:16:34]req_shift_opened [18:16:34]FM_GetShiftState [18:16:34]SAM_PROTO_GetShiftState [18:16:34]wFMCommunicate request_size=4 [18:16:34]MH_SAM_APDU [18:16:34]CAPDU: 80 13 01 00 [18:16:34]Write to MH i2c: E2 08 00 DC 1C 80 13 01 00 00 00 00 00 75 [18:16:34]Write i2c OK [18:16:34]MH_I2C_Read... [18:16:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:34]Read from MH i2c: E2 [18:16:34]MH_I2C_Read... [18:16:34]Read from MH i2c: E2 0E 00 [18:16:34]MH_I2C_Read... [18:16:34]Read from MH i2c: E2 0E 00 DC 1C 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 21 [18:16:34]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [18:16:34]wFMCommunicate OK [18:16:34]SAM_PROTO_GetShiftState done [18:16:34]FM_GetShiftState done [18:16:34]req_shift_opened done [18:16:34]requested_item shift.open_date is exist - process it [18:16:34]req_shift_open_date [18:16:34]req_shift_open_date done [18:16:34]produce_requested_data done [18:16:34]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67542,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [18:16:34]process_action_free close_receipt [18:16:34]json_value_free [18:16:34]json_value_free done [18:16:34]process_json_proto returns [18:16:34]Send response to host [18:16:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67542,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [18:16:34]free response buf [18:16:34]execute_script done [18:16:34]execute_script returns [18:16:34]free content buf [18:16:34]Sock 8.Close socket [18:16:34]Sock 8.Thread stoped [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:27]accept exits with 9 [18:17:27]New connection [18:17:27]New thread 3067182436 created [18:17:27]Thread 3067039076 joined [18:17:27]Waiting for new connection... [18:17:27] Sock 9.Parse request [18:17:27]Sock 9.Check first char [18:17:27]Sock 9.First char is OK [18:17:27]request: POST /json_proto HTTP/1.0 [18:17:27]Method: POST [18:17:27]URL: /json_proto [18:17:27]Method is POST - this is cgi request [18:17:27]url: /json_proto [18:17:27]query_string will be loaded in cgi processing [18:17:27]execute_cgi json_proto POST (null) [18:17:27]execute_cgi path=json_proto method=POST [18:17:27]POST find Content-Length [18:17:27]Host: 172.17.41.195:8080 [18:17:27]Content-Length: 706 [18:17:27]Content-Type: application/json [18:17:27] [18:17:27]POST finish read [18:17:27]Found Content-Length = 706 [18:17:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12094", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0439 Nitro 0.45 \u0436/\u0431", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:27]execute_script... [18:17:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12094", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0439 Nitro 0.45 \u0436/\u0431", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:27]POST & json_proto [18:17:27]process_json_proto [18:17:27]json parsed OK: [18:17:27]protocol is kg_v1.0 [18:17:27]action value=close_receipt [18:17:27]process_action close_receipt [18:17:27]cmd_close_receipt [18:17:27]MH_GetDate [18:17:27]Write to MH i2c: F0 00 00 DD 1C E8 [18:17:27]Write i2c OK [18:17:27]MH_I2C_Read... [18:17:27]Read from MH i2c: F0 [18:17:27]MH_I2C_Read... [18:17:27]Read from MH i2c: F0 09 00 [18:17:27]MH_I2C_Read... [18:17:27]Read from MH i2c: F0 09 00 DD 1C 00 B9 4D 46 66 FC 21 6F 64 93 [18:17:27]GetLastDocTimeStamp 1715883393 [18:17:27]current date 1715883449 [18:17:27]FM_GetShiftState [18:17:27]SAM_PROTO_GetShiftState [18:17:27]wFMCommunicate request_size=4 [18:17:27]MH_SAM_APDU [18:17:27]CAPDU: 80 13 01 00 [18:17:27]Write to MH i2c: E2 08 00 DE 1C 80 13 01 00 00 00 00 00 77 [18:17:27]Write i2c OK [18:17:27]MH_I2C_Read... [18:17:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:27]Read from MH i2c: E2 [18:17:27]MH_I2C_Read... [18:17:27]Read from MH i2c: E2 0E 00 [18:17:27]MH_I2C_Read... [18:17:27]Read from MH i2c: E2 0E 00 DE 1C 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 23 [18:17:27]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [18:17:27]wFMCommunicate OK [18:17:27]SAM_PROTO_GetShiftState done [18:17:27]FM_GetShiftState done [18:17:27]opened in 1715818916 [18:17:27]opened+sec_in_day 1715905316 [18:17:27]quantity*price = 7500 [18:17:27]sum+1 = 7501 [18:17:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 141 16.05.2024 18:17 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67543 ФПД: 59530349411448 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T181729&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67543&fm=59530349411448&tin=02508201610067®Number=0000000000091845&sum=7500 0 [18:17:29]StoreToDocumentArchive [18:17:29]shift 357 fd 67543 [18:17:29]save to /storage/0357/doc_00067543 [18:17:29]save last doc name /storage/0357/doc_00067543 to /storage/kkm_last_doc_name [18:17:29]save OK [18:17:29]Clear old archive folders... [18:17:29]ProcessDocumentItem done err = 0, tmpTLVsize=302 [18:17:29]tlvbuf is B6EF97E0 [18:17:29]SAM_PROTO_ClearQueue [18:17:29]wFMCommunicate request_size=4 [18:17:29]MH_SAM_APDU [18:17:29]CAPDU: 80 09 00 00 [18:17:29]Write to MH i2c: E2 08 00 EB 1C 80 09 00 00 00 00 00 00 79 [18:17:29]Write i2c OK [18:17:29]MH_I2C_Read... [18:17:29]Read from MH i2c: E2 [18:17:29]MH_I2C_Read... [18:17:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:17:29]Read from MH i2c: E2 03 00 [18:17:29]MH_I2C_Read... [18:17:29]Read from MH i2c: E2 03 00 EB 1C 00 90 00 7B [18:17:29]RAPDU: 90 00 [18:17:29]wFMCommunicate OK [18:17:29]SAM_PROTO_ClearQueue done [18:17:29]KKMCreateOFDPacket [18:17:29]OFDProtocolAddRootSTLVToBuf [18:17:29]FM_MakeSignedData [18:17:29]FM_MakeSignedData [18:17:29]SAM_PROTO_SignData [18:17:29]wFMCommunicate request_size=4 [18:17:29]MH_SAM_APDU [18:17:29]CAPDU: 80 0D 01 02 [18:17:29]Write to MH i2c: E2 08 00 EC 1C 80 0D 01 02 00 00 00 00 81 [18:17:29]Write i2c OK [18:17:29]MH_I2C_Read... [18:17:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:17:29]Read from MH i2c: E2 [18:17:29]MH_I2C_Read... [18:17:29]Read from MH i2c: E2 03 00 [18:17:29]MH_I2C_Read... [18:17:29]Read from MH i2c: E2 03 00 EC 1C 00 90 00 7C [18:17:29]RAPDU: 90 00 [18:17:29]wFMCommunicate OK [18:17:29]wFMCommunicate request_size=255 [18:17:29]MH_SAM_APDU [18:17:29]CAPDU: 80 0D 02 02 FA 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 D0 B5 D1 82 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 4E 69 74 72 6F 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 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 B9 4D 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 [18:17:29]Write to MH i2c: E2 02 01 ED 1C 80 0D 02 02 FA 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 D0 B5 D1 82 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 4E 69 74 72 6F 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 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 B9 4D 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 00 00 79 [18:17:29]Write i2c OK [18:17:29]MH_I2C_Read... [18:17:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:29]Read from MH i2c: E2 [18:17:29]MH_I2C_Read... [18:17:29]Read from MH i2c: E2 03 00 [18:17:29]MH_I2C_Read... [18:17:29]Read from MH i2c: E2 03 00 ED 1C 00 90 00 7D [18:17:29]RAPDU: 90 00 [18:17:29]wFMCommunicate OK [18:17:29]wFMCommunicate request_size=61 [18:17:29]MH_SAM_APDU [18:17:29]CAPDU: 80 0D 02 02 38 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D7 07 01 00 35 04 06 00 36 24 7D 54 7C 78 [18:17:29]Write to MH i2c: E2 40 00 EE 1C 80 0D 02 02 38 00 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D7 07 01 00 35 04 06 00 36 24 7D 54 7C 78 00 00 BC [18:17:29]Write i2c OK [18:17:29]MH_I2C_Read... [18:17:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:29]Read from MH i2c: E2 [18:17:29]MH_I2C_Read... [18:17:29]Read from MH i2c: E2 03 00 [18:17:29]MH_I2C_Read... [18:17:29]Read from MH i2c: E2 03 00 EE 1C 00 90 00 7E [18:17:29]RAPDU: 90 00 [18:17:29]wFMCommunicate OK [18:17:29]wFMCommunicate request_size=4 [18:17:29]MH_SAM_APDU [18:17:29]CAPDU: 80 0D 03 02 [18:17:29]Write to MH i2c: E2 08 00 EF 1C 80 0D 03 02 00 00 00 00 86 [18:17:29]Write i2c OK [18:17:29]MH_I2C_Read... [18:17:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:17:29]Read from MH i2c: E2 [18:17:29]MH_I2C_Read... [18:17:29]Read from MH i2c: E2 0B 00 [18:17:29]MH_I2C_Read... [18:17:29]Read from MH i2c: E2 0B 00 EF 1C 00 23 27 D1 92 FB 7C 5B 24 90 00 2A [18:17:29]RAPDU: 23 27 D1 92 FB 7C 5B 24 90 00 [18:17:29]wFMCommunicate OK [18:17:29]SAM_PROTO_SignData done [18:17:29]FM_MakeSignedData done [18:17:29]CreateOFDProtocolMessage [18:17:29]wFMCommunicate request_size=4 [18:17:29]MH_SAM_APDU [18:17:29]CAPDU: 80 11 00 00 [18:17:29]Write to MH i2c: E2 08 00 F0 1C 80 11 00 00 00 00 00 00 86 [18:17:29]Write i2c OK [18:17:29]MH_I2C_Read... [18:17:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:29]Read from MH i2c: E2 [18:17:29]MH_I2C_Read... [18:17:29]Read from MH i2c: E2 17 00 [18:17:29]MH_I2C_Read... [18:17:29]Read from MH i2c: E2 17 00 F0 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DC [18:17:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:17:29]wFMCommunicate OK [18:17:29]CreateOFDProtocolMessage done [18:17:29]OFDSenderStorePacket 67543 [18:17:29]StoreOFDPacket docnum=67543 [18:17:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 42 01 00 00 1D 62 3A 01 AA FC 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 D0 B5 D1 82 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 4E 69 74 72 6F 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 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 B9 4D 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D7 07 01 00 35 04 06 00 36 24 7D 54 7C 78 23 27 D1 92 FB 7C 5B 24 [18:17:29]CheckFolder [18:17:29]dirname=/storage/ofd_packets [18:17:29]CheckFolder done [18:17:29]ProducePacketName [18:17:29]name=ofd_packets/00067543 [18:17:29]NVStorageSaveData ofd_packets/00067543 [18:17:29]File name is /storage/ofd_packets/00067543 [18:17:29]Write 352 bytes [18:17:29]NVStorageSaveData done [18:17:29]OFDSenderStorePacket done [18:17:29]KKMCreateOFDPacket done [18:17:29]NVStorageSaveData kkm_last_timestamp [18:17:29]File name is /storage/kkm_last_timestamp [18:17:29]Write 4 bytes [18:17:29]NVStorageSaveData done [18:17:29]ExternCall_PrintAddStr [18:17:29]wPrintStart [18:17:29]Write to MH i2c: 01 00 00 F1 1C 0D [18:17:29]Write i2c OK [18:17:29]MH_I2C_Read... [18:17:29]Read from MH i2c: 01 [18:17:29]MH_I2C_Read... [18:17:29]Read from MH i2c: 01 07 00 [18:17:29]MH_I2C_Read... [18:17:29]Read from MH i2c: 01 07 00 F1 1C 00 00 00 00 00 FF 0F 22 [18:17:29]RasterBufferAndPrint [18:17:29]line Счет N : (3)12094 [18:17:29]line ИНН: 02508201610067 [18:17:29]line Контрольно-Кассовый Чек [18:17:29]line ПРОДАЖА [18:17:29]line Товар: 4700000480050 [18:17:29]line Напиток энергетический Nitro 0.45 ж/б [18:17:29]line 1.000 * 75.00 [18:17:29]line = 75.00 [18:17:29]line НДС 12% НСП 1% [18:17:29]line > о реализуемом товаре [18:17:29]line ИТОГО: 75.00 [18:17:29]line НСП 1% : 0.66 [18:17:29]line НДС 12% : 7.96 [18:17:29]line Наличными: 75.00 [18:17:29]line Безнал.: 0.00 [18:17:29]line Место: АЗС № 91 "Партнер Нефть" [18:17:29]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:17:29]line СНО: Общий режим [18:17:29]line Чек 141 16.05.2024 18:17 [18:17:29]line Смена: 357 ФФД: 1.0 [18:17:29]line ЗНМ: 0300000119 [18:17:29]line РНМ: 0000000000091845 [18:17:29]line Версия ККМ: 001 [18:17:29]line ФМ: 0000000000871829 [18:17:29]line ФД: 67543 [18:17:29]line ФПД: 59530349411448 [18:17:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T181729&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67543&fm=59530349411448&tin=02508201610067®Number=0000000000091845&sum=7500 [18:17:30]line 0 [18:17:30]OFD Sender: Processing packet 67543 [packets to send 35, broken 34] [18:17:30]ProducePacketName [18:17:30]name=ofd_packets/00067543 [18:17:30]OFD Sender: To server: pG, [18:17:30]CommunicateWithHost lk.salyk.kg:30040 [18:17:30]ConnectInit lk.salyk.kg [18:17:30]written 0, free lines is 4095 [18:17:30]Connected sock=10 [18:17: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 38 32 39 42 01 00 00 1D 62 3A 01 AA FC 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 D0 B5 D1 82 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 4E 69 74 72 6F 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 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 B9 4D 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D7 07 01 00 35 04 06 00 36 24 7D 54 7C 78 23 27 D1 92 FB 7C 5B 24 [18:17:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 66 BA 47 00 3C 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D7 07 01 00 F4 03 04 00 94 F5 45 66 B6 04 01 00 00 55 54 CA DA 23 04 A5 DD [18:17:30]CommunicateWithHost err = 0 [18:17:30]CheckOFDResponse [18:17:30]1017 (14) - 77093643461234 [18:17:30]1041 (16) - 0000000000871829 [18:17:30]1040 (4) - 67543 [18:17:30]1012 (4) - 16.05.2024 12:01 [18:17:30]1206 (1) - 0 [18:17:30]OFD Sender: Remove packet 67543 [18:17:30]ProducePacketName [18:17:30]name=ofd_packets/00067543 [18:17:30]NVStorageDeleteData [18:17:30]Write to MH i2c: 01 00 00 19 1D 36 [18:17:30]Write i2c OK [18:17:30]MH_I2C_Read... [18:17:30]Read from MH i2c: 01 [18:17:30]MH_I2C_Read... [18:17:30]Read from MH i2c: 01 07 00 [18:17:30]MH_I2C_Read... [18:17:30]Read from MH i2c: 01 07 00 19 1D 00 00 00 00 00 D0 0C 19 [18:17:30]RasterBufferAndPrint [18:17:30]line [18:17:30]line [18:17:30]line [18:17:30]line [18:17:30]line [18:17:30]written 0, free lines is 3284 [18:17:30]MH_Cut [18:17:30]Write to MH i2c: D1 01 00 20 1D 01 0F [18:17:30]Write i2c OK [18:17:30]MH_I2C_Read... [18:17:30]Read from MH i2c: D1 [18:17:30]MH_I2C_Read... [18:17:30]Read from MH i2c: D1 01 00 [18:17:30]MH_I2C_Read... [18:17:30]Read from MH i2c: D1 01 00 20 1D 00 0E [18:17:30]Write to MH i2c: 01 00 00 21 1D 3E [18:17:30]Write i2c OK [18:17:30]MH_I2C_Read... [18:17:30]OFD Sender: No OFD packet to send [18:17:31]*** Cut start [18:17:31]*** Purtial cut [18:17:31]*** CUTSNS_PIN = 0 [18:17:31]*** Stage 1: CUTSNS_PIN = 1 [18:17:33]Read from MH i2c: 01 [18:17:33]MH_I2C_Read... [18:17:33]Read from MH i2c: 01 07 00 [18:17:33]MH_I2C_Read... [18:17:33]Read from MH i2c: 01 07 00 21 1D 00 00 00 00 00 FF 0F 53 [18:17:33]process_action close_receipt done [18:17:33]requested_data is exist [18:17:33]produce_requested_data [18:17:33]requested_item fm.sn is exist - process it [18:17:33]wFMCommunicate request_size=4 [18:17:33]MH_SAM_APDU [18:17:33]CAPDU: 80 11 00 00 [18:17:33]Write to MH i2c: E2 08 00 22 1D 80 11 00 00 00 00 00 00 B9 [18:17:33]int [18:17:33]*** Stop cut motor [18:17:33]*** Cut end [18:17:33]Write i2c OK [18:17:33]MH_I2C_Read... [18:17:33]*** FLAG_PRN_PAP1 set [18:17:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:33]Read from MH i2c: E2 [18:17:33]MH_I2C_Read... [18:17:33]Read from MH i2c: E2 17 00 [18:17:33]MH_I2C_Read... [18:17:33]Read from MH i2c: E2 17 00 22 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0F [18:17:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:17:33]wFMCommunicate OK [18:17:33]requested_item fd.num is exist - process it [18:17:33]SAM_PROTO_GetFieldsCounters [18:17:33]wFMCommunicate request_size=4 [18:17:33]MH_SAM_APDU [18:17:33]CAPDU: 80 13 00 00 [18:17:33]Write to MH i2c: E2 08 00 23 1D 80 13 00 00 00 00 00 00 BC [18:17:33]Write i2c OK [18:17:33]MH_I2C_Read... [18:17:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:17:33]Read from MH i2c: E2 [18:17:33]MH_I2C_Read... [18:17:33]Read from MH i2c: E2 62 00 [18:17:33]MH_I2C_Read... [18:17:33]Read from MH i2c: E2 62 00 23 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D7 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [18:17: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D7 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:17:33]wFMCommunicate OK [18:17:33]SAM_PROTO_GetFieldsCounters done [18:17:33]requested_item shift.num is exist - process it [18:17:33]requested_item shift.opened is exist - process it [18:17:33]req_shift_opened [18:17:33]FM_GetShiftState [18:17:33]SAM_PROTO_GetShiftState [18:17:33]wFMCommunicate request_size=4 [18:17:33]MH_SAM_APDU [18:17:33]CAPDU: 80 13 01 00 [18:17:33]Write to MH i2c: E2 08 00 24 1D 80 13 01 00 00 00 00 00 BE [18:17:33]Write i2c OK [18:17:33]MH_I2C_Read... [18:17:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:33]Read from MH i2c: E2 [18:17:33]MH_I2C_Read... [18:17:33]Read from MH i2c: E2 0E 00 [18:17:33]MH_I2C_Read... [18:17:33]Read from MH i2c: E2 0E 00 24 1D 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 6A [18:17:33]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [18:17:33]wFMCommunicate OK [18:17:33]SAM_PROTO_GetShiftState done [18:17:33]FM_GetShiftState done [18:17:33]req_shift_opened done [18:17:33]requested_item shift.open_date is exist - process it [18:17:33]req_shift_open_date [18:17:33]req_shift_open_date done [18:17:33]produce_requested_data done [18:17:33]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67543,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [18:17:33]process_action_free close_receipt [18:17:33]json_value_free [18:17:33]json_value_free done [18:17:33]process_json_proto returns [18:17:33]Send response to host [18:17:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67543,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [18:17:33]free response buf [18:17:33]execute_script done [18:17:33]execute_script returns [18:17:33]free content buf [18:17:33]Sock 9.Close socket [18:17:33]Sock 9.Thread stoped [18:17:33]Write to MH i2c: 01 00 00 25 1D 42 [18:17:33]Write i2c OK [18:17:33]MH_I2C_Read... [18:17:33]Read from MH i2c: 01 [18:17:33]MH_I2C_Read... [18:17:33]Read from MH i2c: 01 07 00 [18:17:33]MH_I2C_Read... [18:17:33]Read from MH i2c: 01 07 00 25 1D 00 01 00 00 00 FF 0F 58 [18:17:33]state=0 [18:17:33]No paper [18:17:34]int [18:17:34]Write to MH i2c: 01 00 00 26 1D 43 [18:17:34]*** FLAG_PRN_PAP2 set [18:17:34]Write i2c OK [18:17:34]MH_I2C_Read... [18:17:34]Read from MH i2c: 01 [18:17:34]MH_I2C_Read... [18:17:34]Read from MH i2c: 01 07 00 [18:17:34]MH_I2C_Read... [18:17:34]Read from MH i2c: 01 07 00 26 1D 00 03 00 00 00 FF 0F 5B [18:17:34]state=0 [18:17:34]No paper [18:17:34]Cover opened [18:17:34]int [18:17:34]Write to MH i2c: 01 00 00 27 1D 44 [18:17:34]*** FLAG_PRN_PAP2 reset [18:17:34]Write i2c OK [18:17:34]MH_I2C_Read... [18:17:34]Read from MH i2c: 01 [18:17:34]MH_I2C_Read... [18:17:34]Read from MH i2c: 01 07 00 [18:17:34]MH_I2C_Read... [18:17:34]Read from MH i2c: 01 07 00 27 1D 00 01 00 00 00 FF 0F 5A [18:17:34]state=3 [18:17:34]No paper [18:17:34]Cover closed [18:17:34]int [18:17:34]Write to MH i2c: 01 00 00 28 1D 45 [18:17:34]*** FLAG_PRN_PAP2 set [18:17:34]Write i2c OK [18:17:34]MH_I2C_Read... [18:17:34]Read from MH i2c: 01 [18:17:34]MH_I2C_Read... [18:17:34]Read from MH i2c: 01 07 00 [18:17:34]MH_I2C_Read... [18:17:34]Read from MH i2c: 01 07 00 28 1D 00 03 00 00 00 FF 0F 5D [18:17:34]state=0 [18:17:34]No paper [18:17:34]Cover opened [18:17:35]OFD Sender: No OFD packet to send [18:17:39]Write to MH i2c: 01 00 00 29 1D 46 [18:17:39]Write i2c OK [18:17:39]MH_I2C_Read... [18:17:39]Read from MH i2c: 01 [18:17:39]MH_I2C_Read... [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 29 1D 00 03 00 00 00 FF 0F 5E [18:17:39]state=3 [18:17:39]No paper [18:17:39]Cover opened [18:17:40]OFD Sender: No OFD packet to send [18:17:44]Write to MH i2c: 01 00 00 2A 1D 47 [18:17:44]Write i2c OK [18:17:44]MH_I2C_Read... [18:17:44]Read from MH i2c: 01 [18:17:44]MH_I2C_Read... [18:17:44]Read from MH i2c: 01 07 00 [18:17:44]MH_I2C_Read... [18:17:44]Read from MH i2c: 01 07 00 2A 1D 00 03 00 00 00 FF 0F 5F [18:17:44]state=3 [18:17:44]No paper [18:17:44]Cover opened [18:17:45]OFD Sender: No OFD packet to send [18:17:49]Write to MH i2c: 01 00 00 2B 1D 48 [18:17:49]Write i2c OK [18:17:49]MH_I2C_Read... [18:17:49]Read from MH i2c: 01 [18:17:49]MH_I2C_Read... [18:17:49]Read from MH i2c: 01 07 00 [18:17:49]MH_I2C_Read... [18:17:49]Read from MH i2c: 01 07 00 2B 1D 00 03 00 00 00 FF 0F 60 [18:17:49]state=3 [18:17:49]No paper [18:17:49]Cover opened [18:17:50]OFD Sender: No OFD packet to send [18:17:54]Write to MH i2c: 01 00 00 2C 1D 49 [18:17:54]Write i2c OK [18:17:54]MH_I2C_Read... [18:17:54]Read from MH i2c: 01 [18:17:54]MH_I2C_Read... [18:17:54]Read from MH i2c: 01 07 00 [18:17:54]MH_I2C_Read... [18:17:54]Read from MH i2c: 01 07 00 2C 1D 00 03 00 00 00 FF 0F 61 [18:17:54]state=3 [18:17:54]No paper [18:17:54]Cover opened [18:17:55]OFD Sender: No OFD packet to send [18:17:59]Write to MH i2c: 01 00 00 2D 1D 4A [18:17:59]Write i2c OK [18:17:59]MH_I2C_Read... [18:17:59]Read from MH i2c: 01 [18:17:59]MH_I2C_Read... [18:17:59]Read from MH i2c: 01 07 00 [18:17:59]MH_I2C_Read... [18:17:59]Read from MH i2c: 01 07 00 2D 1D 00 03 00 00 00 FF 0F 62 [18:17:59]state=3 [18:17:59]No paper [18:17:59]Cover opened [18:18:00]OFD Sender: No OFD packet to send [18:18:04]int [18:18:04]Write to MH i2c: 01 00 00 2E 1D 4B [18:18:04]*** FLAG_PRN_PAP1 reset [18:18:04]*** FLAG_PRN_PAP2 reset [18:18:04]Write i2c OK [18:18:04]MH_I2C_Read... [18:18:04]Read from MH i2c: 01 [18:18:04]MH_I2C_Read... [18:18:04]Read from MH i2c: 01 07 00 [18:18:04]MH_I2C_Read... [18:18:04]Read from MH i2c: 01 07 00 2E 1D 00 00 00 00 00 FF 0F 60 [18:18:04]state=3 [18:18:04]Cover closed [18:18:05]OFD Sender: No OFD packet to send [18:18:10]OFD Sender: No OFD packet to send [18:18:15]OFD Sender: No OFD packet to send [18:18:20]OFD Sender: No OFD packet to send [18:18:25]OFD Sender: No OFD packet to send [18:18:30]OFD Sender: No OFD packet to send [18:18:35]OFD Sender: No OFD packet to send [18:18:40]OFD Sender: No OFD packet to send [18:18:45]OFD Sender: No OFD packet to send [18:18:50]OFD Sender: No OFD packet to send [18:18:55]OFD Sender: No OFD packet to send [18:19:00]OFD Sender: No OFD packet to send [18:19:05]OFD Sender: No OFD packet to send [18:19:10]OFD Sender: No OFD packet to send [18:19:15]OFD Sender: No OFD packet to send [18:19:20]OFD Sender: No OFD packet to send [18:19:25]OFD Sender: No OFD packet to send [18:19:30]OFD Sender: No OFD packet to send [18:19:35]OFD Sender: No OFD packet to send [18:19:40]OFD Sender: No OFD packet to send [18:19:45]OFD Sender: No OFD packet to send [18:19:50]OFD Sender: No OFD packet to send [18:19:55]OFD Sender: No OFD packet to send [18:20:00]OFD Sender: No OFD packet to send [18:20:05]OFD Sender: No OFD packet to send [18:20:10]OFD Sender: No OFD packet to send [18:20:15]OFD Sender: No OFD packet to send [18:20:20]OFD Sender: No OFD packet to send [18:20:25]OFD Sender: No OFD packet to send [18:20:30]OFD Sender: No OFD packet to send [18:20:35]OFD Sender: No OFD packet to send [18:20:40]OFD Sender: No OFD packet to send [18:20:45]OFD Sender: No OFD packet to send [18:20:50]OFD Sender: No OFD packet to send [18:20:55]OFD Sender: No OFD packet to send [18:21:01]OFD Sender: No OFD packet to send [18:21:06]OFD Sender: No OFD packet to send [18:21:11]OFD Sender: No OFD packet to send [18:21:16]OFD Sender: No OFD packet to send [18:21:21]OFD Sender: No OFD packet to send [18:21:26]OFD Sender: No OFD packet to send [18:21:31]OFD Sender: No OFD packet to send [18:21:36]OFD Sender: No OFD packet to send [18:21:41]OFD Sender: No OFD packet to send [18:21:46]OFD Sender: No OFD packet to send [18:21:51]OFD Sender: No OFD packet to send [18:21:56]OFD Sender: No OFD packet to send [18:22:01]OFD Sender: No OFD packet to send [18:22:06]OFD Sender: No OFD packet to send [18:22:11]OFD Sender: No OFD packet to send [18:22:16]OFD Sender: No OFD packet to send [18:22:21]OFD Sender: No OFD packet to send [18:22:26]OFD Sender: No OFD packet to send [18:22:31]OFD Sender: No OFD packet to send [18:22:36]OFD Sender: No OFD packet to send [18:22:41]OFD Sender: No OFD packet to send [18:22:46]OFD Sender: No OFD packet to send [18:22:51]OFD Sender: No OFD packet to send [18:22:56]OFD Sender: No OFD packet to send [18:23:01]OFD Sender: No OFD packet to send [18:23:06]OFD Sender: No OFD packet to send [18:23:11]OFD Sender: No OFD packet to send [18:23:16]OFD Sender: No OFD packet to send [18:23:21]OFD Sender: No OFD packet to send [18:23:26]OFD Sender: No OFD packet to send [18:23:31]OFD Sender: No OFD packet to send [18:23:36]OFD Sender: No OFD packet to send [18:23:41]OFD Sender: No OFD packet to send [18:23:46]OFD Sender: No OFD packet to send [18:23:51]OFD Sender: No OFD packet to send [18:23:56]OFD Sender: No OFD packet to send [18:24:01]OFD Sender: No OFD packet to send [18:24:06]OFD Sender: No OFD packet to send [18:24:11]OFD Sender: No OFD packet to send [18:24:16]OFD Sender: No OFD packet to send [18:24:21]OFD Sender: No OFD packet to send [18:24:26]OFD Sender: No OFD packet to send [18:24:31]OFD Sender: No OFD packet to send [18:24:36]OFD Sender: No OFD packet to send [18:24:41]OFD Sender: No OFD packet to send [18:24:46]OFD Sender: No OFD packet to send [18:24:51]OFD Sender: No OFD packet to send [18:24:56]OFD Sender: No OFD packet to send [18:25:01]OFD Sender: No OFD packet to send [18:25:06]OFD Sender: No OFD packet to send [18:25:11]OFD Sender: No OFD packet to send [18:25:16]OFD Sender: No OFD packet to send [18:25:21]OFD Sender: No OFD packet to send [18:25:26]OFD Sender: No OFD packet to send [18:25:31]OFD Sender: No OFD packet to send [18:25:36]OFD Sender: No OFD packet to send [18:25:41]OFD Sender: No OFD packet to send [18:25:46]OFD Sender: No OFD packet to send [18:25:51]OFD Sender: No OFD packet to send [18:25:56]OFD Sender: No OFD packet to send [18:26:01]OFD Sender: No OFD packet to send [18:26:06]OFD Sender: No OFD packet to send [18:26:11]OFD Sender: No OFD packet to send [18:26:16]OFD Sender: No OFD packet to send [18:26:21]OFD Sender: No OFD packet to send [18:26:26]OFD Sender: No OFD packet to send [18:26:31]OFD Sender: No OFD packet to send [18:26:36]OFD Sender: No OFD packet to send [18:26:41]OFD Sender: No OFD packet to send [18:26:46]OFD Sender: No OFD packet to send [18:26:51]OFD Sender: No OFD packet to send [18:26:56]OFD Sender: No OFD packet to send [18:27:01]OFD Sender: No OFD packet to send [18:27:06]OFD Sender: No OFD packet to send [18:27:11]OFD Sender: No OFD packet to send [18:27:16]OFD Sender: No OFD packet to send [18:27:21]OFD Sender: No OFD packet to send [18:27:26]OFD Sender: No OFD packet to send [18:27:31]OFD Sender: No OFD packet to send [18:27:36]OFD Sender: No OFD packet to send [18:27:41]OFD Sender: No OFD packet to send [18:27:46]OFD Sender: No OFD packet to send [18:27:51]OFD Sender: No OFD packet to send [18:27:56]OFD Sender: No OFD packet to send [18:28:01]OFD Sender: No OFD packet to send [18:28:06]OFD Sender: No OFD packet to send [18:28:11]OFD Sender: No OFD packet to send [18:28:16]OFD Sender: No OFD packet to send [18:28:21]OFD Sender: No OFD packet to send [18:28:24]accept exits with 8 [18:28:24]New connection [18:28:24]New thread 3067039076 created [18:28:24]Thread 3067182436 joined [18:28:24]Waiting for new connection... [18:28:24] Sock 8.Parse request [18:28:24]Sock 8.Check first char [18:28:24]Sock 8.First char is OK [18:28:24]request: POST /json_proto HTTP/1.0 [18:28:24]Method: POST [18:28:24]URL: /json_proto [18:28:24]Method is POST - this is cgi request [18:28:24]url: /json_proto [18:28:24]query_string will be loaded in cgi processing [18:28:24]execute_cgi json_proto POST (null) [18:28:24]execute_cgi path=json_proto method=POST [18:28:24]POST find Content-Length [18:28:24]Host: 172.17.41.195:8080 [18:28:24]Content-Length: 674 [18:28:24]Content-Type: application/json [18:28:24] [18:28:24]POST finish read [18:28:24]Found Content-Length = 674 [18:28:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507605", "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" : 74.70, "quantity" : 6.700, "sum" : 500.49, "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:28:24]execute_script... [18:28: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)507605", "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" : 74.70, "quantity" : 6.700, "sum" : 500.49, "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:28:24]POST & json_proto [18:28:24]process_json_proto [18:28:24]json parsed OK: [18:28:24]protocol is kg_v1.0 [18:28:24]action value=close_receipt [18:28:24]process_action close_receipt [18:28:24]cmd_close_receipt [18:28:24]MH_GetDate [18:28:24]Write to MH i2c: F0 00 00 2F 1D 3B [18:28:24]Write i2c OK [18:28:24]MH_I2C_Read... [18:28:24]Read from MH i2c: F0 [18:28:24]MH_I2C_Read... [18:28:24]Read from MH i2c: F0 09 00 [18:28:24]MH_I2C_Read... [18:28:24]Read from MH i2c: F0 09 00 2F 1D 00 4A 50 46 66 FC 21 6F 64 7A [18:28:24]GetLastDocTimeStamp 1715883449 [18:28:24]current date 1715884106 [18:28:24]FM_GetShiftState [18:28:24]SAM_PROTO_GetShiftState [18:28:24]wFMCommunicate request_size=4 [18:28:24]MH_SAM_APDU [18:28:24]CAPDU: 80 13 01 00 [18:28:24]Write to MH i2c: E2 08 00 30 1D 80 13 01 00 00 00 00 00 CA [18:28:24]Write i2c OK [18:28:24]MH_I2C_Read... [18:28:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:24]Read from MH i2c: E2 [18:28:24]MH_I2C_Read... [18:28:24]Read from MH i2c: E2 0E 00 [18:28:24]MH_I2C_Read... [18:28:24]Read from MH i2c: E2 0E 00 30 1D 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 76 [18:28:24]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [18:28:24]wFMCommunicate OK [18:28:24]SAM_PROTO_GetShiftState done [18:28:24]FM_GetShiftState done [18:28:24]opened in 1715818916 [18:28:24]opened+sec_in_day 1715905316 [18:28:24]quantity*price = 50049 [18:28:24]sum+1 = 50050 [18:28:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 142 16.05.2024 18:28 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67544 ФПД: 101879423591877 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T182826&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67544&fm=101879423591877&tin=02508201610067®Number=0000000000091845&sum=50000 [18:28:25]StoreToDocumentArchive [18:28:25]shift 357 fd 67544 [18:28:25]save to /storage/0357/doc_00067544 [18:28:25]save last doc name /storage/0357/doc_00067544 to /storage/kkm_last_doc_name [18:28:25]save OK [18:28:25]Clear old archive folders... [18:28:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:28:25]tlvbuf is 01829AA0 [18:28:25]SAM_PROTO_ClearQueue [18:28:25]wFMCommunicate request_size=4 [18:28:25]MH_SAM_APDU [18:28:25]CAPDU: 80 09 00 00 [18:28:25]Write to MH i2c: E2 08 00 3D 1D 80 09 00 00 00 00 00 00 CC [18:28:25]Write i2c OK [18:28:25]MH_I2C_Read... [18:28:25]Read from MH i2c: E2 [18:28:25]MH_I2C_Read... [18:28:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:28:25]Read from MH i2c: E2 03 00 [18:28:25]MH_I2C_Read... [18:28:25]Read from MH i2c: E2 03 00 3D 1D 00 90 00 CE [18:28:25]RAPDU: 90 00 [18:28:25]wFMCommunicate OK [18:28:25]SAM_PROTO_ClearQueue done [18:28:25]KKMCreateOFDPacket [18:28:25]OFDProtocolAddRootSTLVToBuf [18:28:25]FM_MakeSignedData [18:28:25]FM_MakeSignedData [18:28:25]SAM_PROTO_SignData [18:28:25]wFMCommunicate request_size=4 [18:28:25]MH_SAM_APDU [18:28:25]CAPDU: 80 0D 01 02 [18:28:25]Write to MH i2c: E2 08 00 3E 1D 80 0D 01 02 00 00 00 00 D4 [18:28:25]Write i2c OK [18:28:25]MH_I2C_Read... [18:28:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:28:25]Read from MH i2c: E2 [18:28:25]MH_I2C_Read... [18:28:25]Read from MH i2c: E2 03 00 [18:28:25]MH_I2C_Read... [18:28:25]Read from MH i2c: E2 03 00 3E 1D 00 90 00 CF [18:28:25]RAPDU: 90 00 [18:28:25]wFMCommunicate OK [18:28:25]wFMCommunicate request_size=255 [18:28:25]MH_SAM_APDU [18:28: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 2C 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 4A 50 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D8 07 01 00 35 04 06 00 5C A8 A6 DA [18:28:25]Write to MH i2c: E2 02 01 3F 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 2C 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 4A 50 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D8 07 01 00 35 04 06 00 5C A8 A6 DA 00 00 62 [18:28:25]Write i2c OK [18:28:25]MH_I2C_Read... [18:28:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:25]Read from MH i2c: E2 [18:28:25]MH_I2C_Read... [18:28:25]Read from MH i2c: E2 03 00 [18:28:25]MH_I2C_Read... [18:28:25]Read from MH i2c: E2 03 00 3F 1D 00 90 00 D0 [18:28:25]RAPDU: 90 00 [18:28:25]wFMCommunicate OK [18:28:25]wFMCommunicate request_size=7 [18:28:25]MH_SAM_APDU [18:28:25]CAPDU: 80 0D 02 02 02 65 C5 [18:28:25]Write to MH i2c: E2 0A 00 40 1D 80 0D 02 02 02 00 65 C5 00 00 05 [18:28:25]Write i2c OK [18:28:25]MH_I2C_Read... [18:28:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:25]Read from MH i2c: E2 [18:28:25]MH_I2C_Read... [18:28:25]Read from MH i2c: E2 03 00 [18:28:25]MH_I2C_Read... [18:28:25]Read from MH i2c: E2 03 00 40 1D 00 90 00 D1 [18:28:25]RAPDU: 90 00 [18:28:25]wFMCommunicate OK [18:28:25]wFMCommunicate request_size=4 [18:28:25]MH_SAM_APDU [18:28:25]CAPDU: 80 0D 03 02 [18:28:25]Write to MH i2c: E2 08 00 41 1D 80 0D 03 02 00 00 00 00 D9 [18:28:25]Write i2c OK [18:28:25]MH_I2C_Read... [18:28:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:28:25]Read from MH i2c: E2 [18:28:25]MH_I2C_Read... [18:28:25]Read from MH i2c: E2 0B 00 [18:28:25]MH_I2C_Read... [18:28:25]Read from MH i2c: E2 0B 00 41 1D 00 03 E5 93 42 CD 86 E7 06 90 00 D7 [18:28:25]RAPDU: 03 E5 93 42 CD 86 E7 06 90 00 [18:28:25]wFMCommunicate OK [18:28:25]SAM_PROTO_SignData done [18:28:25]FM_MakeSignedData done [18:28:25]CreateOFDProtocolMessage [18:28:25]wFMCommunicate request_size=4 [18:28:25]MH_SAM_APDU [18:28:25]CAPDU: 80 11 00 00 [18:28:25]Write to MH i2c: E2 08 00 42 1D 80 11 00 00 00 00 00 00 D9 [18:28:25]Write i2c OK [18:28:25]MH_I2C_Read... [18:28:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:26]Read from MH i2c: E2 [18:28:26]MH_I2C_Read... [18:28:26]Read from MH i2c: E2 17 00 [18:28:26]MH_I2C_Read... [18:28:26]Read from MH i2c: E2 17 00 42 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2F [18:28:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:28:26]wFMCommunicate OK [18:28:26]CreateOFDProtocolMessage done [18:28:26]OFDSenderStorePacket 67544 [18:28:26]StoreOFDPacket docnum=67544 [18:28:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 57 DD 04 01 39 E9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 4A 50 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D8 07 01 00 35 04 06 00 5C A8 A6 DA 65 C5 03 E5 93 42 CD 86 E7 06 [18:28:26]CheckFolder [18:28:26]dirname=/storage/ofd_packets [18:28:26]CheckFolder done [18:28:26]ProducePacketName [18:28:26]name=ofd_packets/00067544 [18:28:26]NVStorageSaveData ofd_packets/00067544 [18:28:26]File name is /storage/ofd_packets/00067544 [18:28:26]Write 298 bytes [18:28:26]NVStorageSaveData done [18:28:26]OFDSenderStorePacket done [18:28:26]KKMCreateOFDPacket done [18:28:26]NVStorageSaveData kkm_last_timestamp [18:28:26]File name is /storage/kkm_last_timestamp [18:28:26]Write 4 bytes [18:28:26]NVStorageSaveData done [18:28:26]ExternCall_PrintAddStr [18:28:26]wPrintStart [18:28:26]Write to MH i2c: 01 00 00 43 1D 60 [18:28:26]Write i2c OK [18:28:26]MH_I2C_Read... [18:28:26]Read from MH i2c: 01 [18:28:26]MH_I2C_Read... [18:28:26]Read from MH i2c: 01 07 00 [18:28:26]MH_I2C_Read... [18:28:26]Read from MH i2c: 01 07 00 43 1D 00 00 00 00 00 FF 0F 75 [18:28:26]RasterBufferAndPrint [18:28:26]line Счет N : (1)507605 [18:28:26]line ИНН: 02508201610067 [18:28:26]line Контрольно-Кассовый Чек [18:28:26]line ПРОДАЖА [18:28:26]line ТРК (МРК, ГНК) : 11 [18:28:26]line Товар: 2710194210 [18:28:26]line ДТ-К-5 [18:28:26]line 6.700 * 74.70 [18:28:26]line = 500.49 [18:28:26]line НДС 12% НСП 1% [18:28:26]line > о реализуемом товаре [18:28:26]line ОКРУГЛЕНИЕ: -0.49 [18:28:26]line ИТОГО: 500.00 [18:28:26]line Внесено: 500.00 [18:28:26]line СДАЧА: 0.00 [18:28:26]line НСП 1% : 4.43 [18:28:26]line НДС 12% : 53.15 [18:28:26]line Наличными: 500.00 [18:28:26]line Безнал.: 0.00 [18:28:26]line Место: АЗС № 91 "Партнер Нефть" [18:28:26]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:28:26]line СНО: Общий режим [18:28:26]line Чек 142 16.05.2024 18:28 [18:28:26]line Смена: 357 ФФД: 1.0 [18:28:26]line ЗНМ: 0300000119 [18:28:26]line РНМ: 0000000000091845 [18:28:26]line Версия ККМ: 001 [18:28:26]line ФМ: 0000000000871829 [18:28:26]line ФД: 67544 [18:28:26]line ФПД: 101879423591877 [18:28:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T182826&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67544&fm=101879423591877&tin=02508201610067®Number=0000000000091845&sum=50000 [18:28:26]OFD Sender: Processing packet 67544 [packets to send 35, broken 34] [18:28:26]ProducePacketName [18:28:26]name=ofd_packets/00067544 [18:28:26]OFD Sender: To server: pG, [18:28:26]CommunicateWithHost lk.salyk.kg:30040 [18:28:26]ConnectInit lk.salyk.kg [18:28:26]written 0, free lines is 4095 [18:28:26]Connected sock=9 [18:28: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 38 32 39 0C 01 00 00 57 DD 04 01 39 E9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 4A 50 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D8 07 01 00 35 04 06 00 5C A8 A6 DA 65 C5 03 E5 93 42 CD 86 E7 06 [18:28:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 0D DE 47 00 AC 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 38 32 39 10 04 04 00 D8 07 01 00 F4 03 04 00 24 F8 45 66 B6 04 01 00 00 BC EF 9A A2 C3 60 B3 DA [18:28:26]CommunicateWithHost err = 0 [18:28:26]CheckOFDResponse [18:28:26]1017 (14) - 77093643461234 [18:28:26]1041 (16) - 0000000000871829 [18:28:26]1040 (4) - 67544 [18:28:26]1012 (4) - 16.05.2024 12:12 [18:28:26]1206 (1) - 0 [18:28:26]OFD Sender: Remove packet 67544 [18:28:26]ProducePacketName [18:28:26]name=ofd_packets/00067544 [18:28:26]NVStorageDeleteData [18:28:26]Write to MH i2c: 01 00 00 6D 1D 8A [18:28:26]Write i2c OK [18:28:26]MH_I2C_Read... [18:28:26]Read from MH i2c: 01 [18:28:26]MH_I2C_Read... [18:28:26]Read from MH i2c: 01 07 00 [18:28:26]MH_I2C_Read... [18:28:26]Read from MH i2c: 01 07 00 6D 1D 00 00 00 00 00 CD 0C 6A [18:28:26]RasterBufferAndPrint [18:28:26]line [18:28:26]line [18:28:26]line [18:28:26]line [18:28:26]line [18:28:26]written 0, free lines is 3283 [18:28:26]MH_Cut [18:28:26]Write to MH i2c: D1 01 00 74 1D 01 63 [18:28:26]Write i2c OK [18:28:26]MH_I2C_Read... [18:28:26]Read from MH i2c: D1 [18:28:26]MH_I2C_Read... [18:28:26]Read from MH i2c: D1 01 00 [18:28:26]MH_I2C_Read... [18:28:26]Read from MH i2c: D1 01 00 74 1D 00 62 [18:28:26]Write to MH i2c: 01 00 00 75 1D 92 [18:28:26]Write i2c OK [18:28:26]MH_I2C_Read... [18:28:27]OFD Sender: No OFD packet to send [18:28:27]*** Cut start [18:28:27]*** Purtial cut [18:28:27]*** Stage 1: CUTSNS_PIN = 1 [18:28:27]Read from MH i2c: 01 [18:28:27]MH_I2C_Read... [18:28:27]*** Stop cut motor [18:28:27]*** Cut end [18:28:27]Read from MH i2c: 01 07 00 [18:28:27]MH_I2C_Read... [18:28:27]Read from MH i2c: 01 07 00 75 1D 00 00 00 00 00 FF 0F A7 [18:28:27]process_action close_receipt done [18:28:27]requested_data is exist [18:28:27]produce_requested_data [18:28:27]requested_item fm.sn is exist - process it [18:28:27]wFMCommunicate request_size=4 [18:28:27]MH_SAM_APDU [18:28:27]CAPDU: 80 11 00 00 [18:28:27]Write to MH i2c: E2 08 00 76 1D 80 11 00 00 00 00 00 00 0D [18:28:27]Write i2c OK [18:28:27]MH_I2C_Read... [18:28:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:27]Read from MH i2c: E2 [18:28:27]MH_I2C_Read... [18:28:27]Read from MH i2c: E2 17 00 [18:28:27]MH_I2C_Read... [18:28:27]Read from MH i2c: E2 17 00 76 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 63 [18:28:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:28:27]wFMCommunicate OK [18:28:27]requested_item fd.num is exist - process it [18:28:27]SAM_PROTO_GetFieldsCounters [18:28:27]wFMCommunicate request_size=4 [18:28:27]MH_SAM_APDU [18:28:27]CAPDU: 80 13 00 00 [18:28:27]Write to MH i2c: E2 08 00 77 1D 80 13 00 00 00 00 00 00 10 [18:28:27]Write i2c OK [18:28:27]MH_I2C_Read... [18:28:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:28:28]Read from MH i2c: E2 [18:28:28]MH_I2C_Read... [18:28:28]Read from MH i2c: E2 62 00 [18:28:28]MH_I2C_Read... [18:28:28]Read from MH i2c: E2 62 00 77 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D8 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [18:28: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D8 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:28:28]wFMCommunicate OK [18:28:28]SAM_PROTO_GetFieldsCounters done [18:28:28]requested_item shift.num is exist - process it [18:28:28]requested_item shift.opened is exist - process it [18:28:28]req_shift_opened [18:28:28]FM_GetShiftState [18:28:28]SAM_PROTO_GetShiftState [18:28:28]wFMCommunicate request_size=4 [18:28:28]MH_SAM_APDU [18:28:28]CAPDU: 80 13 01 00 [18:28:28]Write to MH i2c: E2 08 00 78 1D 80 13 01 00 00 00 00 00 12 [18:28:28]Write i2c OK [18:28:28]MH_I2C_Read... [18:28:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:28]Read from MH i2c: E2 [18:28:28]MH_I2C_Read... [18:28:28]Read from MH i2c: E2 0E 00 [18:28:28]MH_I2C_Read... [18:28:28]Read from MH i2c: E2 0E 00 78 1D 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 BE [18:28:28]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [18:28:28]wFMCommunicate OK [18:28:28]SAM_PROTO_GetShiftState done [18:28:28]FM_GetShiftState done [18:28:28]req_shift_opened done [18:28:28]requested_item shift.open_date is exist - process it [18:28:28]req_shift_open_date [18:28:28]req_shift_open_date done [18:28:28]produce_requested_data done [18:28:28]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67544,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [18:28:28]process_action_free close_receipt [18:28:28]json_value_free [18:28:28]json_value_free done [18:28:28]process_json_proto returns [18:28:28]Send response to host [18:28:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67544,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [18:28:28]free response buf [18:28:28]execute_script done [18:28:28]execute_script returns [18:28:28]free content buf [18:28:28]Sock 8.Close socket [18:28:28]Sock 8.Thread stoped [18:28:32]OFD Sender: No OFD packet to send [18:28:37]OFD Sender: No OFD packet to send [18:28:42]OFD Sender: No OFD packet to send [18:28:47]OFD Sender: No OFD packet to send [18:28:52]OFD Sender: No OFD packet to send [18:28:57]OFD Sender: No OFD packet to send [18:29:02]OFD Sender: No OFD packet to send [18:29:03]accept exits with 10 [18:29:03]New connection [18:29:03]New thread 3067182436 created [18:29:03]Thread 3067039076 joined [18:29:03]Waiting for new connection... [18:29:03] Sock 10.Parse request [18:29:03]Sock 10.Check first char [18:29:03]Sock 10.First char is OK [18:29:03]request: POST /json_proto HTTP/1.0 [18:29:03]Method: POST [18:29:03]URL: /json_proto [18:29:03]Method is POST - this is cgi request [18:29:03]url: /json_proto [18:29:03]query_string will be loaded in cgi processing [18:29:03]execute_cgi json_proto POST (null) [18:29:03]execute_cgi path=json_proto method=POST [18:29:03]POST find Content-Length [18:29:03]Host: 172.17.41.195:8080 [18:29:03]Content-Length: 679 [18:29:03]Content-Type: application/json [18:29:03] [18:29:03]POST finish read [18:29:03]Found Content-Length = 679 [18:29:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507606", "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" : 74.70, "quantity" : 26.780, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:29:03]execute_script... [18:29: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)507606", "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" : 74.70, "quantity" : 26.780, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:29:03]POST & json_proto [18:29:03]process_json_proto [18:29:03]json parsed OK: [18:29:03]protocol is kg_v1.0 [18:29:03]action value=close_receipt [18:29:03]process_action close_receipt [18:29:03]cmd_close_receipt [18:29:03]MH_GetDate [18:29:03]Write to MH i2c: F0 00 00 79 1D 85 [18:29:03]Write i2c OK [18:29:03]MH_I2C_Read... [18:29:03]Read from MH i2c: F0 [18:29:03]MH_I2C_Read... [18:29:03]Read from MH i2c: F0 09 00 [18:29:03]MH_I2C_Read... [18:29:03]Read from MH i2c: F0 09 00 79 1D 00 71 50 46 66 FC 21 6F 64 EB [18:29:03]GetLastDocTimeStamp 1715884106 [18:29:03]current date 1715884145 [18:29:03]FM_GetShiftState [18:29:03]SAM_PROTO_GetShiftState [18:29:03]wFMCommunicate request_size=4 [18:29:03]MH_SAM_APDU [18:29:03]CAPDU: 80 13 01 00 [18:29:03]Write to MH i2c: E2 08 00 7A 1D 80 13 01 00 00 00 00 00 14 [18:29:03]Write i2c OK [18:29:03]MH_I2C_Read... [18:29:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:03]Read from MH i2c: E2 [18:29:03]MH_I2C_Read... [18:29:03]Read from MH i2c: E2 0E 00 [18:29:03]MH_I2C_Read... [18:29:03]Read from MH i2c: E2 0E 00 7A 1D 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 C0 [18:29:03]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [18:29:03]wFMCommunicate OK [18:29:03]SAM_PROTO_GetShiftState done [18:29:03]FM_GetShiftState done [18:29:03]opened in 1715818916 [18:29:03]opened+sec_in_day 1715905316 [18:29:03]quantity*price = 200046 [18:29:03]sum+1 = 200048 [18:29:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 143 16.05.2024 18:29 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67545 ФПД: 257830729077474 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T182905&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67545&fm=257830729077474&tin=02508201610067®Number=0000000000091845&sum=200000 [18:29:04]StoreToDocumentArchive [18:29:04]shift 357 fd 67545 [18:29:04]save to /storage/0357/doc_00067545 [18:29:04]save last doc name /storage/0357/doc_00067545 to /storage/kkm_last_doc_name [18:29:04]save OK [18:29:04]Clear old archive folders... [18:29:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:29:04]tlvbuf is 01794630 [18:29:04]SAM_PROTO_ClearQueue [18:29:04]wFMCommunicate request_size=4 [18:29:04]MH_SAM_APDU [18:29:04]CAPDU: 80 09 00 00 [18:29:04]Write to MH i2c: E2 08 00 87 1D 80 09 00 00 00 00 00 00 16 [18:29:04]Write i2c OK [18:29:04]MH_I2C_Read... [18:29:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:29:04]Read from MH i2c: E2 [18:29:04]MH_I2C_Read... [18:29:04]Read from MH i2c: E2 03 00 [18:29:04]MH_I2C_Read... [18:29:04]Read from MH i2c: E2 03 00 87 1D 00 90 00 18 [18:29:04]RAPDU: 90 00 [18:29:04]wFMCommunicate OK [18:29:04]SAM_PROTO_ClearQueue done [18:29:04]KKMCreateOFDPacket [18:29:04]OFDProtocolAddRootSTLVToBuf [18:29:04]FM_MakeSignedData [18:29:04]FM_MakeSignedData [18:29:04]SAM_PROTO_SignData [18:29:04]wFMCommunicate request_size=4 [18:29:04]MH_SAM_APDU [18:29:04]CAPDU: 80 0D 01 02 [18:29:04]Write to MH i2c: E2 08 00 88 1D 80 0D 01 02 00 00 00 00 1E [18:29:04]Write i2c OK [18:29:04]MH_I2C_Read... [18:29:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:29:04]Read from MH i2c: E2 [18:29:04]MH_I2C_Read... [18:29:04]Read from MH i2c: E2 03 00 [18:29:04]MH_I2C_Read... [18:29:04]Read from MH i2c: E2 03 00 88 1D 00 90 00 19 [18:29:04]RAPDU: 90 00 [18:29:04]wFMCommunicate OK [18:29:04]wFMCommunicate request_size=255 [18:29:04]MH_SAM_APDU [18:29: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 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 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 FC 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 8F 00 00 00 F4 03 04 00 71 50 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D9 07 01 00 35 04 06 00 EA 7E E5 04 [18:29:04]Write to MH i2c: E2 02 01 89 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 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 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 FC 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 8F 00 00 00 F4 03 04 00 71 50 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D9 07 01 00 35 04 06 00 EA 7E E5 04 00 00 C0 [18:29:04]Write i2c OK [18:29:04]MH_I2C_Read... [18:29:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:04]Read from MH i2c: E2 [18:29:04]MH_I2C_Read... [18:29:04]Read from MH i2c: E2 03 00 [18:29:04]MH_I2C_Read... [18:29:04]Read from MH i2c: E2 03 00 89 1D 00 90 00 1A [18:29:04]RAPDU: 90 00 [18:29:04]wFMCommunicate OK [18:29:04]wFMCommunicate request_size=7 [18:29:04]MH_SAM_APDU [18:29:04]CAPDU: 80 0D 02 02 02 D2 E2 [18:29:04]Write to MH i2c: E2 0A 00 8A 1D 80 0D 02 02 02 00 D2 E2 00 00 D9 [18:29:04]Write i2c OK [18:29:04]MH_I2C_Read... [18:29:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:04]Read from MH i2c: E2 [18:29:04]MH_I2C_Read... [18:29:04]Read from MH i2c: E2 03 00 [18:29:04]MH_I2C_Read... [18:29:04]Read from MH i2c: E2 03 00 8A 1D 00 90 00 1B [18:29:04]RAPDU: 90 00 [18:29:04]wFMCommunicate OK [18:29:04]wFMCommunicate request_size=4 [18:29:04]MH_SAM_APDU [18:29:04]CAPDU: 80 0D 03 02 [18:29:04]Write to MH i2c: E2 08 00 8B 1D 80 0D 03 02 00 00 00 00 23 [18:29:04]Write i2c OK [18:29:04]MH_I2C_Read... [18:29:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:29:05]Read from MH i2c: E2 [18:29:05]MH_I2C_Read... [18:29:05]Read from MH i2c: E2 0B 00 [18:29:05]MH_I2C_Read... [18:29:05]Read from MH i2c: E2 0B 00 8B 1D 00 A8 F4 6F 92 30 1A 81 C6 90 00 52 [18:29:05]RAPDU: A8 F4 6F 92 30 1A 81 C6 90 00 [18:29:05]wFMCommunicate OK [18:29:05]SAM_PROTO_SignData done [18:29:05]FM_MakeSignedData done [18:29:05]CreateOFDProtocolMessage [18:29:05]wFMCommunicate request_size=4 [18:29:05]MH_SAM_APDU [18:29:05]CAPDU: 80 11 00 00 [18:29:05]Write to MH i2c: E2 08 00 8C 1D 80 11 00 00 00 00 00 00 23 [18:29:05]Write i2c OK [18:29:05]MH_I2C_Read... [18:29:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:05]Read from MH i2c: E2 [18:29:05]MH_I2C_Read... [18:29:05]Read from MH i2c: E2 17 00 [18:29:05]MH_I2C_Read... [18:29:05]Read from MH i2c: E2 17 00 8C 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 79 [18:29:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:29:05]wFMCommunicate OK [18:29:05]CreateOFDProtocolMessage done [18:29:05]OFDSenderStorePacket 67545 [18:29:05]StoreOFDPacket docnum=67545 [18:29:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 9C 67 04 01 8C 06 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 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 FC 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 8F 00 00 00 F4 03 04 00 71 50 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D9 07 01 00 35 04 06 00 EA 7E E5 04 D2 E2 A8 F4 6F 92 30 1A 81 C6 [18:29:05]CheckFolder [18:29:05]dirname=/storage/ofd_packets [18:29:05]CheckFolder done [18:29:05]ProducePacketName [18:29:05]name=ofd_packets/00067545 [18:29:05]NVStorageSaveData ofd_packets/00067545 [18:29:05]File name is /storage/ofd_packets/00067545 [18:29:05]Write 298 bytes [18:29:05]NVStorageSaveData done [18:29:05]OFDSenderStorePacket done [18:29:05]KKMCreateOFDPacket done [18:29:05]NVStorageSaveData kkm_last_timestamp [18:29:05]File name is /storage/kkm_last_timestamp [18:29:05]Write 4 bytes [18:29:05]NVStorageSaveData done [18:29:05]ExternCall_PrintAddStr [18:29:05]wPrintStart [18:29:05]Write to MH i2c: 01 00 00 8D 1D AA [18:29:05]Write i2c OK [18:29:05]MH_I2C_Read... [18:29:05]Read from MH i2c: 01 [18:29:05]MH_I2C_Read... [18:29:05]Read from MH i2c: 01 07 00 [18:29:05]MH_I2C_Read... [18:29:05]Read from MH i2c: 01 07 00 8D 1D 00 00 00 00 00 FF 0F BF [18:29:05]RasterBufferAndPrint [18:29:05]line Счет N : (1)507606 [18:29:05]line ИНН: 02508201610067 [18:29:05]line Контрольно-Кассовый Чек [18:29:05]line ПРОДАЖА [18:29:05]line ТРК (МРК, ГНК) : 31 [18:29:05]line Товар: 2710194210 [18:29:05]line ДТ-К-5 [18:29:05]line 26.780 * 74.70 [18:29:05]line = 2000.47 [18:29:05]line НДС 12% НСП 1% [18:29:05]line > о реализуемом товаре [18:29:05]line ОКРУГЛЕНИЕ: -0.47 [18:29:05]line ИТОГО: 2000.00 [18:29:05]line Внесено: 2000.00 [18:29:05]line СДАЧА: 0.00 [18:29:05]line НСП 1% : 17.70 [18:29:05]line НДС 12% : 212.44 [18:29:05]line Наличными: 2000.00 [18:29:05]line Безнал.: 0.00 [18:29:05]line Место: АЗС № 91 "Партнер Нефть" [18:29:05]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:29:05]line СНО: Общий режим [18:29:05]line Чек 143 16.05.2024 18:29 [18:29:05]line Смена: 357 ФФД: 1.0 [18:29:05]line ЗНМ: 0300000119 [18:29:05]line РНМ: 0000000000091845 [18:29:05]line Версия ККМ: 001 [18:29:05]line ФМ: 0000000000871829 [18:29:05]line ФД: 67545 [18:29:05]line ФПД: 257830729077474 [18:29:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T182905&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67545&fm=257830729077474&tin=02508201610067®Number=0000000000091845&sum=200000 [18:29:05]OFD Sender: Processing packet 67545 [packets to send 35, broken 34] [18:29:05]ProducePacketName [18:29:05]name=ofd_packets/00067545 [18:29:05]OFD Sender: To server: pG, [18:29:05]CommunicateWithHost lk.salyk.kg:30040 [18:29:05]ConnectInit lk.salyk.kg [18:29:05]written 0, free lines is 4095 [18:29:05]Connected sock=9 [18:29: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 38 32 39 0C 01 00 00 9C 67 04 01 8C 06 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 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 FC 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 8F 00 00 00 F4 03 04 00 71 50 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D9 07 01 00 35 04 06 00 EA 7E E5 04 D2 E2 A8 F4 6F 92 30 1A 81 C6 [18:29:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 D4 C4 47 00 A9 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D9 07 01 00 F4 03 04 00 4B F8 45 66 B6 04 01 00 00 74 5C BB BA 32 23 D4 8D [18:29:05]CommunicateWithHost err = 0 [18:29:05]CheckOFDResponse [18:29:05]1017 (14) - 77093643461234 [18:29:05]1041 (16) - 0000000000871829 [18:29:05]1040 (4) - 67545 [18:29:05]1012 (4) - 16.05.2024 12:12 [18:29:05]1206 (1) - 0 [18:29:05]OFD Sender: Remove packet 67545 [18:29:05]ProducePacketName [18:29:05]name=ofd_packets/00067545 [18:29:05]NVStorageDeleteData [18:29:05]Write to MH i2c: 01 00 00 B7 1D D4 [18:29:05]Write i2c OK [18:29:05]MH_I2C_Read... [18:29:05]Read from MH i2c: 01 [18:29:05]MH_I2C_Read... [18:29:05]Read from MH i2c: 01 07 00 [18:29:05]MH_I2C_Read... [18:29:05]Read from MH i2c: 01 07 00 B7 1D 00 00 00 00 00 C8 0C AF [18:29:05]RasterBufferAndPrint [18:29:05]line [18:29:05]line [18:29:05]line [18:29:05]line [18:29:05]line [18:29:05]written 0, free lines is 3278 [18:29:05]MH_Cut [18:29:05]Write to MH i2c: D1 01 00 BE 1D 01 AD [18:29:05]Write i2c OK [18:29:05]MH_I2C_Read... [18:29:05]Read from MH i2c: D1 [18:29:05]MH_I2C_Read... [18:29:05]Read from MH i2c: D1 01 00 [18:29:05]MH_I2C_Read... [18:29:05]Read from MH i2c: D1 01 00 BE 1D 00 AC [18:29:05]Write to MH i2c: 01 00 00 BF 1D DC [18:29:05]Write i2c OK [18:29:05]MH_I2C_Read... [18:29:06]OFD Sender: No OFD packet to send [18:29:06]*** Cut start [18:29:06]*** Purtial cut [18:29:06]*** CUTSNS_PIN = 0 [18:29:06]*** Stage 1: CUTSNS_PIN = 1 [18:29:08]Read from MH i2c: 01 [18:29:08]MH_I2C_Read... [18:29:08]*** Stop cut motor [18:29:08]*** Cut end [18:29:08]Read from MH i2c: 01 07 00 [18:29:08]MH_I2C_Read... [18:29:08]Read from MH i2c: 01 07 00 BF 1D 00 00 00 00 00 FF 0F F1 [18:29:08]process_action close_receipt done [18:29:08]requested_data is exist [18:29:08]produce_requested_data [18:29:08]requested_item fm.sn is exist - process it [18:29:08]wFMCommunicate request_size=4 [18:29:08]MH_SAM_APDU [18:29:08]CAPDU: 80 11 00 00 [18:29:08]Write to MH i2c: E2 08 00 C0 1D 80 11 00 00 00 00 00 00 57 [18:29:08]Write i2c OK [18:29:08]MH_I2C_Read... [18:29:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:08]Read from MH i2c: E2 [18:29:08]MH_I2C_Read... [18:29:08]Read from MH i2c: E2 17 00 [18:29:08]MH_I2C_Read... [18:29:08]Read from MH i2c: E2 17 00 C0 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AD [18:29:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:29:08]wFMCommunicate OK [18:29:08]requested_item fd.num is exist - process it [18:29:08]SAM_PROTO_GetFieldsCounters [18:29:08]wFMCommunicate request_size=4 [18:29:08]MH_SAM_APDU [18:29:08]CAPDU: 80 13 00 00 [18:29:08]Write to MH i2c: E2 08 00 C1 1D 80 13 00 00 00 00 00 00 5A [18:29:08]Write i2c OK [18:29:08]MH_I2C_Read... [18:29:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:29:08]Read from MH i2c: E2 [18:29:08]MH_I2C_Read... [18:29:08]Read from MH i2c: E2 62 00 [18:29:08]MH_I2C_Read... [18:29:08]Read from MH i2c: E2 62 00 C1 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D9 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [18:29: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D9 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:29:08]wFMCommunicate OK [18:29:08]SAM_PROTO_GetFieldsCounters done [18:29:08]requested_item shift.num is exist - process it [18:29:08]requested_item shift.opened is exist - process it [18:29:08]req_shift_opened [18:29:08]FM_GetShiftState [18:29:08]SAM_PROTO_GetShiftState [18:29:08]wFMCommunicate request_size=4 [18:29:08]MH_SAM_APDU [18:29:08]CAPDU: 80 13 01 00 [18:29:08]Write to MH i2c: E2 08 00 C2 1D 80 13 01 00 00 00 00 00 5C [18:29:08]Write i2c OK [18:29:08]MH_I2C_Read... [18:29:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:08]Read from MH i2c: E2 [18:29:08]MH_I2C_Read... [18:29:08]Read from MH i2c: E2 0E 00 [18:29:08]MH_I2C_Read... [18:29:08]Read from MH i2c: E2 0E 00 C2 1D 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 08 [18:29:08]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [18:29:08]wFMCommunicate OK [18:29:08]SAM_PROTO_GetShiftState done [18:29:08]FM_GetShiftState done [18:29:08]req_shift_opened done [18:29:08]requested_item shift.open_date is exist - process it [18:29:08]req_shift_open_date [18:29:08]req_shift_open_date done [18:29:08]produce_requested_data done [18:29:08]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67545,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [18:29:08]process_action_free close_receipt [18:29:08]json_value_free [18:29:08]json_value_free done [18:29:08]process_json_proto returns [18:29:08]Send response to host [18:29:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67545,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [18:29:08]free response buf [18:29:08]execute_script done [18:29:08]execute_script returns [18:29:08]free content buf [18:29:08]Sock 10.Close socket [18:29:08]Sock 10.Thread stoped [18:29:11]OFD Sender: No OFD packet to send [18:29:16]OFD Sender: No OFD packet to send [18:29:21]OFD Sender: No OFD packet to send [18:29:26]OFD Sender: No OFD packet to send [18:29:31]OFD Sender: No OFD packet to send [18:29:36]OFD Sender: No OFD packet to send [18:29:41]OFD Sender: No OFD packet to send [18:29:46]OFD Sender: No OFD packet to send [18:29:51]OFD Sender: No OFD packet to send [18:29:56]OFD Sender: No OFD packet to send [18:30:01]OFD Sender: No OFD packet to send [18:30:06]OFD Sender: No OFD packet to send [18:30:11]OFD Sender: No OFD packet to send [18:30:14]accept exits with 8 [18:30:14]New connection [18:30:14]New thread 3067039076 created [18:30:14]Thread 3067182436 joined [18:30:14]Waiting for new connection... [18:30:14] Sock 8.Parse request [18:30:14]Sock 8.Check first char [18:30:14]Sock 8.First char is OK [18:30:14]request: POST /json_proto HTTP/1.0 [18:30:14]Method: POST [18:30:14]URL: /json_proto [18:30:14]Method is POST - this is cgi request [18:30:14]url: /json_proto [18:30:14]query_string will be loaded in cgi processing [18:30:14]execute_cgi json_proto POST (null) [18:30:14]execute_cgi path=json_proto method=POST [18:30:14]POST find Content-Length [18:30:14]Host: 172.17.41.195:8080 [18:30:14]Content-Length: 796 [18:30:14]Content-Type: application/json [18:30:14] [18:30:14]POST finish read [18:30:14]Found Content-Length = 796 [18:30:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 44.250, "sum" : 3000.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:30:14]execute_script... [18:30:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 44.250, "sum" : 3000.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:30:14]POST & json_proto [18:30:14]process_json_proto [18:30:14]json parsed OK: [18:30:14]protocol is kg_v1.0 [18:30:14]action value=close_receipt [18:30:14]process_action close_receipt [18:30:14]cmd_close_receipt [18:30:14]MH_GetDate [18:30:14]Write to MH i2c: F0 00 00 C3 1D CF [18:30:14]Write i2c OK [18:30:14]MH_I2C_Read... [18:30:14]Read from MH i2c: F0 [18:30:14]MH_I2C_Read... [18:30:14]Read from MH i2c: F0 09 00 [18:30:14]MH_I2C_Read... [18:30:14]Read from MH i2c: F0 09 00 C3 1D 00 B8 50 46 66 FC 21 6F 64 7C [18:30:14]GetLastDocTimeStamp 1715884145 [18:30:14]current date 1715884216 [18:30:14]FM_GetShiftState [18:30:14]SAM_PROTO_GetShiftState [18:30:14]wFMCommunicate request_size=4 [18:30:14]MH_SAM_APDU [18:30:14]CAPDU: 80 13 01 00 [18:30:14]Write to MH i2c: E2 08 00 C4 1D 80 13 01 00 00 00 00 00 5E [18:30:14]Write i2c OK [18:30:14]MH_I2C_Read... [18:30:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:14]Read from MH i2c: E2 [18:30:14]MH_I2C_Read... [18:30:14]Read from MH i2c: E2 0E 00 [18:30:14]MH_I2C_Read... [18:30:14]Read from MH i2c: E2 0E 00 C4 1D 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 0A [18:30:14]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [18:30:14]wFMCommunicate OK [18:30:14]SAM_PROTO_GetShiftState done [18:30:14]FM_GetShiftState done [18:30:14]opened in 1715818916 [18:30:14]opened+sec_in_day 1715905316 [18:30:14]quantity*price = 300015 [18:30:14]sum+1 = 300016 [18:30:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.15 НСП 1% : 26.55 НДС 12% : 318.60 Наличными: 0.00 Безнал.: 3000.15 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 144 16.05.2024 18:30 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67546 ФПД: 66896117475904 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T183016&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67546&fm=66896117475904&tin=02508201610067®Number=0000000000091845&sum=300015 [18:30:15]StoreToDocumentArchive [18:30:15]shift 357 fd 67546 [18:30:15]save to /storage/0357/doc_00067546 [18:30:15]save last doc name /storage/0357/doc_00067546 to /storage/kkm_last_doc_name [18:30:15]save OK [18:30:15]Clear old archive folders... [18:30:15]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:30:15]tlvbuf is 017E8470 [18:30:15]SAM_PROTO_ClearQueue [18:30:15]wFMCommunicate request_size=4 [18:30:15]MH_SAM_APDU [18:30:15]CAPDU: 80 09 00 00 [18:30:15]Write to MH i2c: E2 08 00 D1 1D 80 09 00 00 00 00 00 00 60 [18:30:15]Write i2c OK [18:30:15]MH_I2C_Read... [18:30:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:30:15]Read from MH i2c: E2 [18:30:15]MH_I2C_Read... [18:30:15]Read from MH i2c: E2 03 00 [18:30:15]MH_I2C_Read... [18:30:15]Read from MH i2c: E2 03 00 D1 1D 00 90 00 62 [18:30:15]RAPDU: 90 00 [18:30:15]wFMCommunicate OK [18:30:15]SAM_PROTO_ClearQueue done [18:30:15]KKMCreateOFDPacket [18:30:15]OFDProtocolAddRootSTLVToBuf [18:30:15]FM_MakeSignedData [18:30:15]FM_MakeSignedData [18:30:15]SAM_PROTO_SignData [18:30:15]wFMCommunicate request_size=4 [18:30:15]MH_SAM_APDU [18:30:15]CAPDU: 80 0D 01 02 [18:30:15]Write to MH i2c: E2 08 00 D2 1D 80 0D 01 02 00 00 00 00 68 [18:30:15]Write i2c OK [18:30:15]MH_I2C_Read... [18:30:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:30:15]Read from MH i2c: E2 [18:30:15]MH_I2C_Read... [18:30:15]Read from MH i2c: E2 03 00 [18:30:15]MH_I2C_Read... [18:30:15]Read from MH i2c: E2 03 00 D2 1D 00 90 00 63 [18:30:15]RAPDU: 90 00 [18:30:15]wFMCommunicate OK [18:30:15]wFMCommunicate request_size=255 [18:30:15]MH_SAM_APDU [18:30:15]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA AC 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 EF 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EF 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 74 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EF 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 B8 50 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DA 07 01 00 35 04 06 00 [18:30:15]Write to MH i2c: E2 02 01 D3 1D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA AC 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 EF 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EF 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 74 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EF 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 B8 50 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DA 07 01 00 35 04 06 00 00 00 34 [18:30:15]Write i2c OK [18:30:15]MH_I2C_Read... [18:30:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:16]Read from MH i2c: E2 [18:30:16]MH_I2C_Read... [18:30:16]Read from MH i2c: E2 03 00 [18:30:16]MH_I2C_Read... [18:30:16]Read from MH i2c: E2 03 00 D3 1D 00 90 00 64 [18:30:16]RAPDU: 90 00 [18:30:16]wFMCommunicate OK [18:30:16]wFMCommunicate request_size=11 [18:30:16]MH_SAM_APDU [18:30:16]CAPDU: 80 0D 02 02 06 3C D7 77 51 AA 40 [18:30:16]Write to MH i2c: E2 0E 00 D4 1D 80 0D 02 02 06 00 3C D7 77 51 AA 40 00 00 3C [18:30:16]Write i2c OK [18:30:16]MH_I2C_Read... [18:30:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:16]Read from MH i2c: E2 [18:30:16]MH_I2C_Read... [18:30:16]Read from MH i2c: E2 03 00 [18:30:16]MH_I2C_Read... [18:30:16]Read from MH i2c: E2 03 00 D4 1D 00 90 00 65 [18:30:16]RAPDU: 90 00 [18:30:16]wFMCommunicate OK [18:30:16]wFMCommunicate request_size=4 [18:30:16]MH_SAM_APDU [18:30:16]CAPDU: 80 0D 03 02 [18:30:16]Write to MH i2c: E2 08 00 D5 1D 80 0D 03 02 00 00 00 00 6D [18:30:16]Write i2c OK [18:30:16]MH_I2C_Read... [18:30:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:30:16]Read from MH i2c: E2 [18:30:16]MH_I2C_Read... [18:30:16]Read from MH i2c: E2 0B 00 [18:30:16]MH_I2C_Read... [18:30:16]Read from MH i2c: E2 0B 00 D5 1D 00 1F 35 D1 F8 D1 71 AF B7 90 00 33 [18:30:16]RAPDU: 1F 35 D1 F8 D1 71 AF B7 90 00 [18:30:16]wFMCommunicate OK [18:30:16]SAM_PROTO_SignData done [18:30:16]FM_MakeSignedData done [18:30:16]CreateOFDProtocolMessage [18:30:16]wFMCommunicate request_size=4 [18:30:16]MH_SAM_APDU [18:30:16]CAPDU: 80 11 00 00 [18:30:16]Write to MH i2c: E2 08 00 D6 1D 80 11 00 00 00 00 00 00 6D [18:30:16]Write i2c OK [18:30:16]MH_I2C_Read... [18:30:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:16]Read from MH i2c: E2 [18:30:16]MH_I2C_Read... [18:30:16]Read from MH i2c: E2 17 00 [18:30:16]MH_I2C_Read... [18:30:16]Read from MH i2c: E2 17 00 D6 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C3 [18:30:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:30:16]wFMCommunicate OK [18:30:16]CreateOFDProtocolMessage done [18:30:16]OFDSenderStorePacket 67546 [18:30:16]StoreOFDPacket docnum=67546 [18:30:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 74 A9 08 01 EE 13 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA AC 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 EF 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EF 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 74 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EF 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 B8 50 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DA 07 01 00 35 04 06 00 3C D7 77 51 AA 40 1F 35 D1 F8 D1 71 AF B7 [18:30:16]CheckFolder [18:30:16]dirname=/storage/ofd_packets [18:30:16]CheckFolder done [18:30:16]ProducePacketName [18:30:16]name=ofd_packets/00067546 [18:30:16]NVStorageSaveData ofd_packets/00067546 [18:30:16]File name is /storage/ofd_packets/00067546 [18:30:16]Write 302 bytes [18:30:16]NVStorageSaveData done [18:30:16]OFDSenderStorePacket done [18:30:16]KKMCreateOFDPacket done [18:30:16]NVStorageSaveData kkm_last_timestamp [18:30:16]File name is /storage/kkm_last_timestamp [18:30:16]Write 4 bytes [18:30:16]NVStorageSaveData done [18:30:16]ExternCall_PrintAddStr [18:30:16]wPrintStart [18:30:16]Write to MH i2c: 01 00 00 D7 1D F4 [18:30:16]Write i2c OK [18:30:16]MH_I2C_Read... [18:30:16]Read from MH i2c: 01 [18:30:16]MH_I2C_Read... [18:30:16]Read from MH i2c: 01 07 00 [18:30:16]MH_I2C_Read... [18:30:16]Read from MH i2c: 01 07 00 D7 1D 00 00 00 00 00 FF 0F 09 [18:30:16]RasterBufferAndPrint [18:30:16]line Счет N : (1)507607 [18:30:16]line ИНН: 02508201610067 [18:30:16]line Контрольно-Кассовый Чек [18:30:16]line ПРОДАЖА [18:30:16]line ТРК (МРК, ГНК) : 42 [18:30:16]line Товар: 2710124130 [18:30:16]line Super-92-К-5 [18:30:16]line 44.250 * 67.80 [18:30:16]line = 3000.15 [18:30:16]line НДС 12% НСП 1% [18:30:16]line > о реализуемом товаре [18:30:16]line ИТОГО: 3000.15 [18:30:16]line НСП 1% : 26.55 [18:30:16]line НДС 12% : 318.60 [18:30:16]line Наличными: 0.00 [18:30:16]line Безнал.: 3000.15 [18:30:16]line Место: АЗС № 91 "Партнер Нефть" [18:30:16]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:30:16]line СНО: Общий режим [18:30:16]line Чек 144 16.05.2024 18:30 [18:30:16]line Смена: 357 ФФД: 1.0 [18:30:16]line ЗНМ: 0300000119 [18:30:16]line РНМ: 0000000000091845 [18:30:16]line Версия ККМ: 001 [18:30:16]line Платежная система: O! деньги [18:30:16]line ФМ: 0000000000871829 [18:30:16]line ФД: 67546 [18:30:16]line ФПД: 66896117475904 [18:30:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T183016&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67546&fm=66896117475904&tin=02508201610067®Number=0000000000091845&sum=300015 [18:30:16]OFD Sender: Processing packet 67546 [packets to send 35, broken 34] [18:30:16]ProducePacketName [18:30:16]name=ofd_packets/00067546 [18:30:16]OFD Sender: To server: pG, [18:30:16]CommunicateWithHost lk.salyk.kg:30040 [18:30:16]ConnectInit lk.salyk.kg [18:30:16]written 0, free lines is 4095 [18:30:16]Connected sock=10 [18:30:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 74 A9 08 01 EE 13 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA AC 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 EF 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EF 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 74 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EF 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 B8 50 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DA 07 01 00 35 04 06 00 3C D7 77 51 AA 40 1F 35 D1 F8 D1 71 AF B7 [18:30:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 AC 3B 47 00 88 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 38 32 39 10 04 04 00 DA 07 01 00 F4 03 04 00 92 F8 45 66 B6 04 01 00 00 6C B9 FE 4E FB 5C C7 42 [18:30:16]CommunicateWithHost err = 0 [18:30:16]CheckOFDResponse [18:30:16]1017 (14) - 77093643461234 [18:30:16]1041 (16) - 0000000000871829 [18:30:16]1040 (4) - 67546 [18:30:16]1012 (4) - 16.05.2024 12:14 [18:30:16]1206 (1) - 0 [18:30:16]OFD Sender: Remove packet 67546 [18:30:16]ProducePacketName [18:30:16]name=ofd_packets/00067546 [18:30:16]NVStorageDeleteData [18:30:17]Write to MH i2c: 01 00 00 00 1E 1E [18:30:17]Write i2c OK [18:30:17]MH_I2C_Read... [18:30:17]Read from MH i2c: 01 [18:30:17]MH_I2C_Read... [18:30:17]Read from MH i2c: 01 07 00 [18:30:17]MH_I2C_Read... [18:30:17]Read from MH i2c: 01 07 00 00 1E 00 00 00 00 00 DE 0C 0F [18:30:17]RasterBufferAndPrint [18:30:17]line [18:30:17]line [18:30:17]line [18:30:17]line [18:30:17]line [18:30:17]written 0, free lines is 3300 [18:30:17]MH_Cut [18:30:17]Write to MH i2c: D1 01 00 07 1E 01 F7 [18:30:17]Write i2c OK [18:30:17]MH_I2C_Read... [18:30:17]Read from MH i2c: D1 [18:30:17]MH_I2C_Read... [18:30:17]Read from MH i2c: D1 01 00 [18:30:17]MH_I2C_Read... [18:30:17]Read from MH i2c: D1 01 00 07 1E 00 F6 [18:30:17]Write to MH i2c: 01 00 00 08 1E 26 [18:30:17]Write i2c OK [18:30:17]MH_I2C_Read... [18:30:17]OFD Sender: No OFD packet to send [18:30:17]*** Cut start [18:30:17]*** Purtial cut [18:30:17]*** Stage 1: CUTSNS_PIN = 1 [18:30:18]Read from MH i2c: 01 [18:30:18]MH_I2C_Read... [18:30:18]*** Stop cut motor [18:30:18]*** Cut end [18:30:18]Read from MH i2c: 01 07 00 [18:30:18]MH_I2C_Read... [18:30:18]Read from MH i2c: 01 07 00 08 1E 00 00 00 00 00 FF 0F 3B [18:30:18]process_action close_receipt done [18:30:18]requested_data is exist [18:30:18]produce_requested_data [18:30:18]requested_item fm.sn is exist - process it [18:30:18]wFMCommunicate request_size=4 [18:30:18]MH_SAM_APDU [18:30:18]CAPDU: 80 11 00 00 [18:30:18]Write to MH i2c: E2 08 00 09 1E 80 11 00 00 00 00 00 00 A1 [18:30:18]Write i2c OK [18:30:18]MH_I2C_Read... [18:30:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:18]Read from MH i2c: E2 [18:30:18]MH_I2C_Read... [18:30:18]Read from MH i2c: E2 17 00 [18:30:18]MH_I2C_Read... [18:30:18]Read from MH i2c: E2 17 00 09 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F7 [18:30:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:30:18]wFMCommunicate OK [18:30:18]requested_item fd.num is exist - process it [18:30:18]SAM_PROTO_GetFieldsCounters [18:30:18]wFMCommunicate request_size=4 [18:30:18]MH_SAM_APDU [18:30:18]CAPDU: 80 13 00 00 [18:30:18]Write to MH i2c: E2 08 00 0A 1E 80 13 00 00 00 00 00 00 A4 [18:30:18]Write i2c OK [18:30:18]MH_I2C_Read... [18:30:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:30:18]Read from MH i2c: E2 [18:30:18]MH_I2C_Read... [18:30:18]Read from MH i2c: E2 62 00 [18:30:18]MH_I2C_Read... [18:30:18]Read from MH i2c: E2 62 00 0A 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 DA 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [18:30:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 DA 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:30:18]wFMCommunicate OK [18:30:18]SAM_PROTO_GetFieldsCounters done [18:30:18]requested_item shift.num is exist - process it [18:30:18]requested_item shift.opened is exist - process it [18:30:18]req_shift_opened [18:30:18]FM_GetShiftState [18:30:18]SAM_PROTO_GetShiftState [18:30:18]wFMCommunicate request_size=4 [18:30:18]MH_SAM_APDU [18:30:18]CAPDU: 80 13 01 00 [18:30:18]Write to MH i2c: E2 08 00 0B 1E 80 13 01 00 00 00 00 00 A6 [18:30:18]Write i2c OK [18:30:18]MH_I2C_Read... [18:30:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:18]Read from MH i2c: E2 [18:30:18]MH_I2C_Read... [18:30:18]Read from MH i2c: E2 0E 00 [18:30:18]MH_I2C_Read... [18:30:18]Read from MH i2c: E2 0E 00 0B 1E 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 52 [18:30:18]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [18:30:18]wFMCommunicate OK [18:30:18]SAM_PROTO_GetShiftState done [18:30:18]FM_GetShiftState done [18:30:18]req_shift_opened done [18:30:18]requested_item shift.open_date is exist - process it [18:30:18]req_shift_open_date [18:30:18]req_shift_open_date done [18:30:18]produce_requested_data done [18:30:18]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67546,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [18:30:18]process_action_free close_receipt [18:30:18]json_value_free [18:30:18]json_value_free done [18:30:18]process_json_proto returns [18:30:18]Send response to host [18:30:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67546,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [18:30:18]free response buf [18:30:18]execute_script done [18:30:18]execute_script returns [18:30:18]free content buf [18:30:18]Sock 8.Close socket [18:30:18]Sock 8.Thread stoped [18:30:22]OFD Sender: No OFD packet to send [18:30:27]OFD Sender: No OFD packet to send [18:30:32]OFD Sender: No OFD packet to send [18:30:37]OFD Sender: No OFD packet to send [18:30:42]OFD Sender: No OFD packet to send [18:30:47]OFD Sender: No OFD packet to send [18:30:52]OFD Sender: No OFD packet to send [18:30:57]OFD Sender: No OFD packet to send [18:31:02]OFD Sender: No OFD packet to send [18:31:07]OFD Sender: No OFD packet to send [18:31:11]accept exits with 9 [18:31:11]New connection [18:31:11]New thread 3067182436 created [18:31:11]Thread 3067039076 joined [18:31:11]Waiting for new connection... [18:31:11] Sock 9.Parse request [18:31:11]Sock 9.Check first char [18:31:11]Sock 9.First char is OK [18:31:11]request: POST /json_proto HTTP/1.0 [18:31:11]Method: POST [18:31:11]URL: /json_proto [18:31:11]Method is POST - this is cgi request [18:31:11]url: /json_proto [18:31:11]query_string will be loaded in cgi processing [18:31:11]execute_cgi json_proto POST (null) [18:31:11]execute_cgi path=json_proto method=POST [18:31:11]POST find Content-Length [18:31:11]Host: 172.17.41.195:8080 [18:31:11]Content-Length: 677 [18:31:11]Content-Type: application/json [18:31:11] [18:31:11]POST finish read [18:31:11]Found Content-Length = 677 [18:31:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507608", "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.80, "quantity" : 7.490, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:11]execute_script... [18:31: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)507608", "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.80, "quantity" : 7.490, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:11]POST & json_proto [18:31:11]process_json_proto [18:31:11]json parsed OK: [18:31:11]protocol is kg_v1.0 [18:31:11]action value=close_receipt [18:31:11]process_action close_receipt [18:31:11]cmd_close_receipt [18:31:11]MH_GetDate [18:31:11]Write to MH i2c: F0 00 00 0C 1E 19 [18:31:11]Write i2c OK [18:31:11]MH_I2C_Read... [18:31:11]Read from MH i2c: F0 [18:31:11]MH_I2C_Read... [18:31:11]Read from MH i2c: F0 09 00 [18:31:11]MH_I2C_Read... [18:31:11]Read from MH i2c: F0 09 00 0C 1E 00 F1 50 46 66 FC 21 6F 64 FF [18:31:11]GetLastDocTimeStamp 1715884216 [18:31:11]current date 1715884273 [18:31:11]FM_GetShiftState [18:31:11]SAM_PROTO_GetShiftState [18:31:11]wFMCommunicate request_size=4 [18:31:11]MH_SAM_APDU [18:31:11]CAPDU: 80 13 01 00 [18:31:11]Write to MH i2c: E2 08 00 0D 1E 80 13 01 00 00 00 00 00 A8 [18:31:11]Write i2c OK [18:31:11]MH_I2C_Read... [18:31:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:11]Read from MH i2c: E2 [18:31:11]MH_I2C_Read... [18:31:11]Read from MH i2c: E2 0E 00 [18:31:11]MH_I2C_Read... [18:31:11]Read from MH i2c: E2 0E 00 0D 1E 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 54 [18:31:11]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [18:31:11]wFMCommunicate OK [18:31:11]SAM_PROTO_GetShiftState done [18:31:11]FM_GetShiftState done [18:31:11]opened in 1715818916 [18:31:11]opened+sec_in_day 1715905316 [18:31:11]quantity*price = 50033 [18:31:11]sum+1 = 50034 [18:31:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 145 16.05.2024 18:31 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67547 ФПД: 231743729669578 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T183113&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67547&fm=231743729669578&tin=02508201610067®Number=0000000000091845&sum=50000 [18:31:12]StoreToDocumentArchive [18:31:12]shift 357 fd 67547 [18:31:12]save to /storage/0357/doc_00067547 [18:31:12]save last doc name /storage/0357/doc_00067547 to /storage/kkm_last_doc_name [18:31:12]save OK [18:31:12]Clear old archive folders... [18:31:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:31:12]tlvbuf is 017EB990 [18:31:12]SAM_PROTO_ClearQueue [18:31:12]wFMCommunicate request_size=4 [18:31:12]MH_SAM_APDU [18:31:12]CAPDU: 80 09 00 00 [18:31:12]Write to MH i2c: E2 08 00 1A 1E 80 09 00 00 00 00 00 00 AA [18:31:12]Write i2c OK [18:31:12]MH_I2C_Read... [18:31:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:31:12]Read from MH i2c: E2 [18:31:12]MH_I2C_Read... [18:31:12]Read from MH i2c: E2 03 00 [18:31:12]MH_I2C_Read... [18:31:12]Read from MH i2c: E2 03 00 1A 1E 00 90 00 AC [18:31:12]RAPDU: 90 00 [18:31:12]wFMCommunicate OK [18:31:12]SAM_PROTO_ClearQueue done [18:31:12]KKMCreateOFDPacket [18:31:12]OFDProtocolAddRootSTLVToBuf [18:31:12]FM_MakeSignedData [18:31:12]FM_MakeSignedData [18:31:12]SAM_PROTO_SignData [18:31:12]wFMCommunicate request_size=4 [18:31:12]MH_SAM_APDU [18:31:12]CAPDU: 80 0D 01 02 [18:31:12]Write to MH i2c: E2 08 00 1B 1E 80 0D 01 02 00 00 00 00 B2 [18:31:12]Write i2c OK [18:31:12]MH_I2C_Read... [18:31:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:31:12]Read from MH i2c: E2 [18:31:12]MH_I2C_Read... [18:31:12]Read from MH i2c: E2 03 00 [18:31:12]MH_I2C_Read... [18:31:12]Read from MH i2c: E2 03 00 1B 1E 00 90 00 AD [18:31:12]RAPDU: 90 00 [18:31:12]wFMCommunicate OK [18:31:12]wFMCommunicate request_size=255 [18:31:12]MH_SAM_APDU [18:31: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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 F1 50 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DB 07 01 00 35 04 06 00 D2 [18:31:12]Write to MH i2c: E2 02 01 1C 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 F1 50 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DB 07 01 00 35 04 06 00 D2 00 00 D6 [18:31:12]Write i2c OK [18:31:12]MH_I2C_Read... [18:31:12]OFD Sender: No OFD packet to send [18:31:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:12]Read from MH i2c: E2 [18:31:12]MH_I2C_Read... [18:31:12]Read from MH i2c: E2 03 00 [18:31:12]MH_I2C_Read... [18:31:12]Read from MH i2c: E2 03 00 1C 1E 00 90 00 AE [18:31:12]RAPDU: 90 00 [18:31:12]wFMCommunicate OK [18:31:12]wFMCommunicate request_size=10 [18:31:12]MH_SAM_APDU [18:31:12]CAPDU: 80 0D 02 02 05 C5 0A AF 95 CA [18:31:12]Write to MH i2c: E2 0D 00 1D 1E 80 0D 02 02 05 00 C5 0A AF 95 CA 00 00 9C [18:31:12]Write i2c OK [18:31:12]MH_I2C_Read... [18:31:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:12]Read from MH i2c: E2 [18:31:12]MH_I2C_Read... [18:31:12]Read from MH i2c: E2 03 00 [18:31:12]MH_I2C_Read... [18:31:12]Read from MH i2c: E2 03 00 1D 1E 00 90 00 AF [18:31:12]RAPDU: 90 00 [18:31:12]wFMCommunicate OK [18:31:12]wFMCommunicate request_size=4 [18:31:12]MH_SAM_APDU [18:31:12]CAPDU: 80 0D 03 02 [18:31:12]Write to MH i2c: E2 08 00 1E 1E 80 0D 03 02 00 00 00 00 B7 [18:31:12]Write i2c OK [18:31:12]MH_I2C_Read... [18:31:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:31:12]Read from MH i2c: E2 [18:31:12]MH_I2C_Read... [18:31:12]Read from MH i2c: E2 0B 00 [18:31:12]MH_I2C_Read... [18:31:12]Read from MH i2c: E2 0B 00 1E 1E 00 D5 66 EB 57 07 86 75 B4 90 00 EB [18:31:12]RAPDU: D5 66 EB 57 07 86 75 B4 90 00 [18:31:12]wFMCommunicate OK [18:31:12]SAM_PROTO_SignData done [18:31:12]FM_MakeSignedData done [18:31:12]CreateOFDProtocolMessage [18:31:12]wFMCommunicate request_size=4 [18:31:12]MH_SAM_APDU [18:31:12]CAPDU: 80 11 00 00 [18:31:12]Write to MH i2c: E2 08 00 1F 1E 80 11 00 00 00 00 00 00 B7 [18:31:12]Write i2c OK [18:31:12]MH_I2C_Read... [18:31:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:12]Read from MH i2c: E2 [18:31:12]MH_I2C_Read... [18:31:12]Read from MH i2c: E2 17 00 [18:31:12]MH_I2C_Read... [18:31:12]Read from MH i2c: E2 17 00 1F 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0D [18:31:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:31:12]wFMCommunicate OK [18:31:12]CreateOFDProtocolMessage done [18:31:12]OFDSenderStorePacket 67547 [18:31:12]StoreOFDPacket docnum=67547 [18:31:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 7C 33 07 01 14 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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 F1 50 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DB 07 01 00 35 04 06 00 D2 C5 0A AF 95 CA D5 66 EB 57 07 86 75 B4 [18:31:12]CheckFolder [18:31:12]dirname=/storage/ofd_packets [18:31:12]CheckFolder done [18:31:12]ProducePacketName [18:31:12]name=ofd_packets/00067547 [18:31:12]NVStorageSaveData ofd_packets/00067547 [18:31:12]File name is /storage/ofd_packets/00067547 [18:31:12]Write 301 bytes [18:31:12]NVStorageSaveData done [18:31:12]OFDSenderStorePacket done [18:31:12]KKMCreateOFDPacket done [18:31:12]NVStorageSaveData kkm_last_timestamp [18:31:12]File name is /storage/kkm_last_timestamp [18:31:12]Write 4 bytes [18:31:12]NVStorageSaveData done [18:31:12]ExternCall_PrintAddStr [18:31:12]wPrintStart [18:31:12]Write to MH i2c: 01 00 00 20 1E 3E [18:31:12]Write i2c OK [18:31:12]MH_I2C_Read... [18:31:12]Read from MH i2c: 01 [18:31:12]MH_I2C_Read... [18:31:12]Read from MH i2c: 01 07 00 [18:31:12]MH_I2C_Read... [18:31:12]Read from MH i2c: 01 07 00 20 1E 00 00 00 00 00 FF 0F 53 [18:31:12]RasterBufferAndPrint [18:31:12]line Счет N : (1)507608 [18:31:12]line ИНН: 02508201610067 [18:31:12]line Контрольно-Кассовый Чек [18:31:12]line ПРОДАЖА [18:31:12]line ТРК (МРК, ГНК) : 33 [18:31:12]line Товар: 2710124130 [18:31:12]line Аи-92-К-5 [18:31:12]line 7.490 * 66.80 [18:31:12]line = 500.33 [18:31:12]line НДС 12% НСП 1% [18:31:12]line > о реализуемом товаре [18:31:12]line ОКРУГЛЕНИЕ: -0.33 [18:31:12]line ИТОГО: 500.00 [18:31:12]line Внесено: 500.00 [18:31:12]line СДАЧА: 0.00 [18:31:12]line НСП 1% : 4.43 [18:31:12]line НДС 12% : 53.13 [18:31:12]line Наличными: 500.00 [18:31:12]line Безнал.: 0.00 [18:31:12]line Место: АЗС № 91 "Партнер Нефть" [18:31:12]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:31:12]line СНО: Общий режим [18:31:12]line Чек 145 16.05.2024 18:31 [18:31:12]line Смена: 357 ФФД: 1.0 [18:31:12]line ЗНМ: 0300000119 [18:31:12]line РНМ: 0000000000091845 [18:31:12]line Версия ККМ: 001 [18:31:12]line ФМ: 0000000000871829 [18:31:12]line ФД: 67547 [18:31:12]line ФПД: 231743729669578 [18:31:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T183113&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67547&fm=231743729669578&tin=02508201610067®Number=0000000000091845&sum=50000 [18:31:13]OFD Sender: Processing packet 67547 [packets to send 35, broken 34] [18:31:13]ProducePacketName [18:31:13]name=ofd_packets/00067547 [18:31:13]OFD Sender: To server: pG, [18:31:13]CommunicateWithHost lk.salyk.kg:30040 [18:31:13]ConnectInit lk.salyk.kg [18:31:13]written 0, free lines is 4095 [18:31:13]Connected sock=11 [18:31: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 38 32 39 0F 01 00 00 7C 33 07 01 14 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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 F1 50 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DB 07 01 00 35 04 06 00 D2 C5 0A AF 95 CA D5 66 EB 57 07 86 75 B4 [18:31:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 61 63 47 00 A7 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DB 07 01 00 F4 03 04 00 CB F8 45 66 B6 04 01 00 00 7B F7 D2 B0 7F 28 EC 6C [18:31:13]CommunicateWithHost err = 0 [18:31:13]CheckOFDResponse [18:31:13]1017 (14) - 77093643461234 [18:31:13]1041 (16) - 0000000000871829 [18:31:13]1040 (4) - 67547 [18:31:13]1012 (4) - 16.05.2024 12:15 [18:31:13]1206 (1) - 0 [18:31:13]OFD Sender: Remove packet 67547 [18:31:13]ProducePacketName [18:31:13]name=ofd_packets/00067547 [18:31:13]NVStorageDeleteData [18:31:13]Write to MH i2c: 01 00 00 4A 1E 68 [18:31:13]Write i2c OK [18:31:13]MH_I2C_Read... [18:31:13]Read from MH i2c: 01 [18:31:13]MH_I2C_Read... [18:31:13]Read from MH i2c: 01 07 00 [18:31:13]MH_I2C_Read... [18:31:13]Read from MH i2c: 01 07 00 4A 1E 00 00 00 00 00 C4 0C 3F [18:31:13]RasterBufferAndPrint [18:31:13]line [18:31:13]line [18:31:13]line [18:31:13]line [18:31:13]line [18:31:13]written 0, free lines is 3273 [18:31:13]MH_Cut [18:31:13]Write to MH i2c: D1 01 00 51 1E 01 41 [18:31:13]Write i2c OK [18:31:13]MH_I2C_Read... [18:31:13]Read from MH i2c: D1 [18:31:13]MH_I2C_Read... [18:31:13]Read from MH i2c: D1 01 00 [18:31:13]MH_I2C_Read... [18:31:13]Read from MH i2c: D1 01 00 51 1E 00 40 [18:31:13]Write to MH i2c: 01 00 00 52 1E 70 [18:31:13]Write i2c OK [18:31:13]MH_I2C_Read... [18:31:13]OFD Sender: No OFD packet to send [18:31:14]*** Cut start [18:31:14]*** Purtial cut [18:31:14]*** CUTSNS_PIN = 0 [18:31:14]*** Stage 1: CUTSNS_PIN = 1 [18:31:16]Read from MH i2c: 01 [18:31:16]MH_I2C_Read... [18:31:16]*** Stop cut motor [18:31:16]*** Cut end [18:31:16]Read from MH i2c: 01 07 00 [18:31:16]MH_I2C_Read... [18:31:16]Read from MH i2c: 01 07 00 52 1E 00 00 00 00 00 FF 0F 85 [18:31:16]process_action close_receipt done [18:31:16]requested_data is exist [18:31:16]produce_requested_data [18:31:16]requested_item fm.sn is exist - process it [18:31:16]wFMCommunicate request_size=4 [18:31:16]MH_SAM_APDU [18:31:16]CAPDU: 80 11 00 00 [18:31:16]Write to MH i2c: E2 08 00 53 1E 80 11 00 00 00 00 00 00 EB [18:31:16]Write i2c OK [18:31:16]MH_I2C_Read... [18:31:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:16]Read from MH i2c: E2 [18:31:16]MH_I2C_Read... [18:31:16]Read from MH i2c: E2 17 00 [18:31:16]MH_I2C_Read... [18:31:16]Read from MH i2c: E2 17 00 53 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 41 [18:31:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:31:16]wFMCommunicate OK [18:31:16]requested_item fd.num is exist - process it [18:31:16]SAM_PROTO_GetFieldsCounters [18:31:16]wFMCommunicate request_size=4 [18:31:16]MH_SAM_APDU [18:31:16]CAPDU: 80 13 00 00 [18:31:16]Write to MH i2c: E2 08 00 54 1E 80 13 00 00 00 00 00 00 EE [18:31:16]Write i2c OK [18:31:16]MH_I2C_Read... [18:31:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:31:16]Read from MH i2c: E2 [18:31:16]MH_I2C_Read... [18:31:16]Read from MH i2c: E2 62 00 [18:31:16]MH_I2C_Read... [18:31:16]Read from MH i2c: E2 62 00 54 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 DB 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [18:31: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 DB 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:31:16]wFMCommunicate OK [18:31:16]SAM_PROTO_GetFieldsCounters done [18:31:16]requested_item shift.num is exist - process it [18:31:16]requested_item shift.opened is exist - process it [18:31:16]req_shift_opened [18:31:16]FM_GetShiftState [18:31:16]SAM_PROTO_GetShiftState [18:31:16]wFMCommunicate request_size=4 [18:31:16]MH_SAM_APDU [18:31:16]CAPDU: 80 13 01 00 [18:31:16]Write to MH i2c: E2 08 00 55 1E 80 13 01 00 00 00 00 00 F0 [18:31:16]Write i2c OK [18:31:16]MH_I2C_Read... [18:31:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:16]Read from MH i2c: E2 [18:31:16]MH_I2C_Read... [18:31:16]Read from MH i2c: E2 0E 00 [18:31:16]MH_I2C_Read... [18:31:16]Read from MH i2c: E2 0E 00 55 1E 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 9C [18:31:16]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [18:31:16]wFMCommunicate OK [18:31:16]SAM_PROTO_GetShiftState done [18:31:16]FM_GetShiftState done [18:31:16]req_shift_opened done [18:31:16]requested_item shift.open_date is exist - process it [18:31:16]req_shift_open_date [18:31:16]req_shift_open_date done [18:31:16]produce_requested_data done [18:31:16]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67547,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [18:31:16]process_action_free close_receipt [18:31:16]json_value_free [18:31:16]json_value_free done [18:31:16]process_json_proto returns [18:31:16]Send response to host [18:31:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67547,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [18:31:16]free response buf [18:31:16]execute_script done [18:31:16]execute_script returns [18:31:16]free content buf [18:31:16]Sock 9.Close socket [18:31:16]Sock 9.Thread stoped [18:31:17]int [18:31:17]Write to MH i2c: 01 00 00 56 1E 74 [18:31:17]*** FLAG_PRN_PAP1 set [18:31:17]Write i2c OK [18:31:17]MH_I2C_Read... [18:31:17]Read from MH i2c: 01 [18:31:17]MH_I2C_Read... [18:31:17]Read from MH i2c: 01 07 00 [18:31:17]MH_I2C_Read... [18:31:17]Read from MH i2c: 01 07 00 56 1E 00 01 00 00 00 FF 0F 8A [18:31:17]state=0 [18:31:17]No paper [18:31:18]int [18:31:18]Write to MH i2c: 01 00 00 57 1E 75 [18:31:18]*** FLAG_PRN_PAP2 set [18:31:18]Write i2c OK [18:31:18]MH_I2C_Read... [18:31:18]Read from MH i2c: 01 [18:31:18]MH_I2C_Read... [18:31:18]Read from MH i2c: 01 07 00 [18:31:18]MH_I2C_Read... [18:31:18]Read from MH i2c: 01 07 00 57 1E 00 03 00 00 00 FF 0F 8D [18:31:18]state=0 [18:31:18]No paper [18:31:18]Cover opened [18:31:18]OFD Sender: No OFD packet to send [18:31:19]int [18:31:19]Write to MH i2c: 01 00 00 58 1E 76 [18:31:19]*** FLAG_PRN_PAP2 reset [18:31:19]Write i2c OK [18:31:19]MH_I2C_Read... [18:31:19]Read from MH i2c: 01 [18:31:19]MH_I2C_Read... [18:31:19]Read from MH i2c: 01 07 00 [18:31:19]MH_I2C_Read... [18:31:19]Read from MH i2c: 01 07 00 58 1E 00 01 00 00 00 FF 0F 8C [18:31:19]state=3 [18:31:19]No paper [18:31:19]Cover closed [18:31:19]int [18:31:19]Write to MH i2c: 01 00 00 59 1E 77 [18:31:19]*** FLAG_PRN_PAP2 set [18:31:19]Write i2c OK [18:31:19]MH_I2C_Read... [18:31:19]Read from MH i2c: 01 [18:31:19]MH_I2C_Read... [18:31:19]Read from MH i2c: 01 07 00 [18:31:19]MH_I2C_Read... [18:31:19]Read from MH i2c: 01 07 00 59 1E 00 03 00 00 00 FF 0F 8F [18:31:19]state=0 [18:31:19]No paper [18:31:19]Cover opened [18:31:20]int [18:31:20]Write to MH i2c: 01 00 00 5A 1E 78 [18:31:20]*** FLAG_PRN_PAP2 reset [18:31:20]Write i2c OK [18:31:20]MH_I2C_Read... [18:31:20]Read from MH i2c: 01 [18:31:20]MH_I2C_Read... [18:31:20]Read from MH i2c: 01 07 00 [18:31:20]MH_I2C_Read... [18:31:20]Read from MH i2c: 01 07 00 5A 1E 00 01 00 00 00 FF 0F 8E [18:31:20]state=3 [18:31:20]No paper [18:31:20]Cover closed [18:31:20]int [18:31:20]Write to MH i2c: 01 00 00 5B 1E 79 [18:31:20]*** FLAG_PRN_PAP2 set [18:31:20]Write i2c OK [18:31:20]MH_I2C_Read... [18:31:20]Read from MH i2c: 01 [18:31:20]MH_I2C_Read... [18:31:20]Read from MH i2c: 01 07 00 [18:31:20]MH_I2C_Read... [18:31:20]Read from MH i2c: 01 07 00 5B 1E 00 03 00 00 00 FF 0F 91 [18:31:20]state=0 [18:31:20]No paper [18:31:20]Cover opened [18:31:23]OFD Sender: No OFD packet to send [18:31:24]int [18:31:24]Write to MH i2c: 01 00 00 5C 1E 7A [18:31:24]*** FLAG_PRN_PAP1 reset [18:31:24]Write i2c OK [18:31:24]MH_I2C_Read... [18:31:24]Read from MH i2c: 01 [18:31:24]MH_I2C_Read... [18:31:24]Read from MH i2c: 01 07 00 [18:31:24]MH_I2C_Read... [18:31:24]Read from MH i2c: 01 07 00 5C 1E 00 02 00 00 00 FF 0F 91 [18:31:24]state=3 [18:31:24]Cover opened [18:31:24]int [18:31:24]Write to MH i2c: 01 00 00 5D 1E 7B [18:31:24]*** FLAG_PRN_PAP2 reset [18:31:24]Write i2c OK [18:31:24]MH_I2C_Read... [18:31:24]Read from MH i2c: 01 [18:31:24]MH_I2C_Read... [18:31:24]Read from MH i2c: 01 07 00 [18:31:24]MH_I2C_Read... [18:31:24]Read from MH i2c: 01 07 00 5D 1E 00 00 00 00 00 FF 0F 90 [18:31:24]state=3 [18:31:24]Cover closed [18:31:26]int [18:31:26]Write to MH i2c: 01 00 00 5E 1E 7C [18:31:26]*** FLAG_PRN_KEY set [18:31:26]Write i2c OK [18:31:26]MH_I2C_Read... [18:31:26]Read from MH i2c: 01 [18:31:26]MH_I2C_Read... [18:31:26]Read from MH i2c: 01 07 00 [18:31:26]MH_I2C_Read... [18:31:26]Read from MH i2c: 01 07 00 5E 1E 00 08 00 00 00 FF 0F 99 [18:31:26]state=0 [18:31:26]Key pressed [18:31:26]Feed [18:31:26]Write to MH i2c: D8 00 00 5F 1E 54 [18:31:26]Write i2c OK [18:31:26]MH_I2C_Read... [18:31:26]Read from MH i2c: D8 [18:31:26]MH_I2C_Read... [18:31:26]Read from MH i2c: D8 01 00 [18:31:26]MH_I2C_Read... [18:31:26]Read from MH i2c: D8 01 00 5F 1E 00 55 [18:31:26]int [18:31:26]Write to MH i2c: 01 00 00 60 1E 7E [18:31:26]Write i2c OK [18:31:26]MH_I2C_Read... [18:31:26]Read from MH i2c: 01 [18:31:26]MH_I2C_Read... [18:31:26]Read from MH i2c: 01 07 00 [18:31:26]MH_I2C_Read... [18:31:26]Read from MH i2c: 01 07 00 60 1E 00 48 00 00 00 3C 00 09 [18:31:26]state=2 [18:31:26]Key pressed [18:31:26]int [18:31:26]Write to MH i2c: 01 00 00 61 1E 7F [18:31:26]*** FLAG_PRN_KEY reset [18:31:26]Write i2c OK [18:31:26]MH_I2C_Read... [18:31:26]Read from MH i2c: 01 [18:31:26]MH_I2C_Read... [18:31:26]Read from MH i2c: 01 07 00 [18:31:26]MH_I2C_Read... [18:31:26]Read from MH i2c: 01 07 00 61 1E 00 00 00 00 00 FF 0F 94 [18:31:26]state=2 [18:31:26]Stop feed [18:31:28]OFD Sender: No OFD packet to send [18:31:33]OFD Sender: No OFD packet to send [18:31:38]OFD Sender: No OFD packet to send [18:31:43]OFD Sender: No OFD packet to send [18:31:48]OFD Sender: No OFD packet to send [18:31:53]OFD Sender: No OFD packet to send [18:31:58]OFD Sender: No OFD packet to send [18:32:03]OFD Sender: No OFD packet to send [18:32:08]OFD Sender: No OFD packet to send [18:32:13]OFD Sender: No OFD packet to send [18:32:18]OFD Sender: No OFD packet to send [18:32:23]OFD Sender: No OFD packet to send [18:32:28]OFD Sender: No OFD packet to send [18:32:33]OFD Sender: No OFD packet to send [18:32:38]OFD Sender: No OFD packet to send [18:32:43]OFD Sender: No OFD packet to send [18:32:48]OFD Sender: No OFD packet to send [18:32:53]OFD Sender: No OFD packet to send [18:32:58]OFD Sender: No OFD packet to send [18:33:03]OFD Sender: No OFD packet to send [18:33: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:04]OFD Sender: No OFD packet to send [18:34:09]OFD Sender: No OFD packet to send [18:34:14]OFD Sender: No OFD packet to send [18:34:19]OFD Sender: No OFD packet to send [18:34:24]OFD Sender: No OFD packet to send [18:34:29]OFD Sender: No OFD packet to send [18:34:34]OFD Sender: No OFD packet to send [18:34:39]OFD Sender: No OFD packet to send [18:34:44]OFD Sender: No OFD packet to send [18:34:49]OFD Sender: No OFD packet to send [18:34:54]OFD Sender: No OFD packet to send [18:34:59]OFD Sender: No OFD packet to send [18:35:04]OFD Sender: No OFD packet to send [18:35:09]OFD Sender: No OFD packet to send [18:35:14]OFD Sender: No OFD packet to send [18:35:19]OFD Sender: No OFD packet to send [18:35:24]OFD Sender: No OFD packet to send [18:35:29]OFD Sender: No OFD packet to send [18:35:34]OFD Sender: No OFD packet to send [18:35:39]OFD Sender: No OFD packet to send [18:35:44]OFD Sender: No OFD packet to send [18:35:49]OFD Sender: No OFD packet to send [18:35:54]OFD Sender: No OFD packet to send [18:35:59]OFD Sender: No OFD packet to send [18:36:04]OFD Sender: No OFD packet to send [18:36:09]OFD Sender: No OFD packet to send [18:36:14]OFD Sender: No OFD packet to send [18:36:19]OFD Sender: No OFD packet to send [18:36:24]OFD Sender: No OFD packet to send [18:36:29]OFD Sender: No OFD packet to send [18:36:34]OFD Sender: No OFD packet to send [18:36:39]OFD Sender: No OFD packet to send [18:36:44]OFD Sender: No OFD packet to send [18:36:49]OFD Sender: No OFD packet to send [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:09]OFD Sender: No OFD packet to send [18:37:14]OFD Sender: No OFD packet to send [18:37:19]OFD Sender: No OFD packet to send [18:37:24]OFD Sender: No OFD packet to send [18:37:29]OFD Sender: No OFD packet to send [18:37:34]OFD Sender: No OFD packet to send [18:37:39]OFD Sender: No OFD packet to send [18:37:44]OFD Sender: No OFD packet to send [18:37:49]OFD Sender: No OFD packet to send [18:37:54]OFD Sender: No OFD packet to send [18:37:59]OFD Sender: No OFD packet to send [18:38:04]OFD Sender: No OFD packet to send [18:38:09]OFD Sender: No OFD packet to send [18:38:13]accept exits with 8 [18:38:13]New connection [18:38:13]New thread 3067039076 created [18:38:13]Thread 3067182436 joined [18:38:13]Waiting for new connection... [18:38:13] Sock 8.Parse request [18:38:13]Sock 8.Check first char [18:38:13]Sock 8.First char is OK [18:38:13]request: POST /json_proto HTTP/1.0 [18:38:13]Method: POST [18:38:13]URL: /json_proto [18:38:13]Method is POST - this is cgi request [18:38:13]url: /json_proto [18:38:13]query_string will be loaded in cgi processing [18:38:13]execute_cgi json_proto POST (null) [18:38:13]execute_cgi path=json_proto method=POST [18:38:13]POST find Content-Length [18:38:13]Host: 172.17.41.195:8080 [18:38:13]Content-Length: 674 [18:38:13]Content-Type: application/json [18:38:13] [18:38:13]POST finish read [18:38:13]Found Content-Length = 674 [18:38:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507610", "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" : 74.70, "quantity" : 6.700, "sum" : 500.49, "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:38:13]execute_script... [18:38: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)507610", "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" : 74.70, "quantity" : 6.700, "sum" : 500.49, "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:38:13]POST & json_proto [18:38:13]process_json_proto [18:38:13]json parsed OK: [18:38:13]protocol is kg_v1.0 [18:38:13]action value=close_receipt [18:38:13]process_action close_receipt [18:38:13]cmd_close_receipt [18:38:13]MH_GetDate [18:38:13]Write to MH i2c: F0 00 00 62 1E 6F [18:38:13]Write i2c OK [18:38:13]MH_I2C_Read... [18:38:13]Read from MH i2c: F0 [18:38:13]MH_I2C_Read... [18:38:13]Read from MH i2c: F0 09 00 [18:38:13]MH_I2C_Read... [18:38:13]Read from MH i2c: F0 09 00 62 1E 00 98 52 46 66 FC 21 6F 64 FE [18:38:13]GetLastDocTimeStamp 1715884273 [18:38:13]current date 1715884696 [18:38:13]FM_GetShiftState [18:38:13]SAM_PROTO_GetShiftState [18:38:13]wFMCommunicate request_size=4 [18:38:13]MH_SAM_APDU [18:38:13]CAPDU: 80 13 01 00 [18:38:13]Write to MH i2c: E2 08 00 63 1E 80 13 01 00 00 00 00 00 FE [18:38:13]Write i2c OK [18:38:13]MH_I2C_Read... [18:38:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:14]Read from MH i2c: E2 [18:38:14]MH_I2C_Read... [18:38:14]Read from MH i2c: E2 0E 00 [18:38:14]MH_I2C_Read... [18:38:14]Read from MH i2c: E2 0E 00 63 1E 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 AA [18:38:14]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [18:38:14]wFMCommunicate OK [18:38:14]SAM_PROTO_GetShiftState done [18:38:14]FM_GetShiftState done [18:38:14]opened in 1715818916 [18:38:14]opened+sec_in_day 1715905316 [18:38:14]quantity*price = 50049 [18:38:14]sum+1 = 50050 [18:38:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 146 16.05.2024 18:38 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67548 ФПД: 115572355050600 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T183816&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67548&fm=115572355050600&tin=02508201610067®Number=0000000000091845&sum=50000 [18:38:15]StoreToDocumentArchive [18:38:15]shift 357 fd 67548 [18:38:15]save to /storage/0357/doc_00067548 [18:38:15]save last doc name /storage/0357/doc_00067548 to /storage/kkm_last_doc_name [18:38:15]save OK [18:38:15]Clear old archive folders... [18:38:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:38:15]tlvbuf is 017DC880 [18:38:15]SAM_PROTO_ClearQueue [18:38:15]wFMCommunicate request_size=4 [18:38:15]MH_SAM_APDU [18:38:15]CAPDU: 80 09 00 00 [18:38:15]Write to MH i2c: E2 08 00 70 1E 80 09 00 00 00 00 00 00 00 [18:38:15]Write i2c OK [18:38:15]MH_I2C_Read... [18:38:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:38:15]Read from MH i2c: E2 [18:38:15]MH_I2C_Read... [18:38:15]Read from MH i2c: E2 03 00 [18:38:15]MH_I2C_Read... [18:38:15]Read from MH i2c: E2 03 00 70 1E 00 90 00 02 [18:38:15]RAPDU: 90 00 [18:38:15]wFMCommunicate OK [18:38:15]SAM_PROTO_ClearQueue done [18:38:15]KKMCreateOFDPacket [18:38:15]OFDProtocolAddRootSTLVToBuf [18:38:15]FM_MakeSignedData [18:38:15]FM_MakeSignedData [18:38:15]SAM_PROTO_SignData [18:38:15]wFMCommunicate request_size=4 [18:38:15]MH_SAM_APDU [18:38:15]CAPDU: 80 0D 01 02 [18:38:15]Write to MH i2c: E2 08 00 71 1E 80 0D 01 02 00 00 00 00 08 [18:38:15]Write i2c OK [18:38:15]MH_I2C_Read... [18:38:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:38:15]Read from MH i2c: E2 [18:38:15]MH_I2C_Read... [18:38:15]Read from MH i2c: E2 03 00 [18:38:15]MH_I2C_Read... [18:38:15]Read from MH i2c: E2 03 00 71 1E 00 90 00 03 [18:38:15]RAPDU: 90 00 [18:38:15]wFMCommunicate OK [18:38:15]wFMCommunicate request_size=255 [18:38:15]MH_SAM_APDU [18:38: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 2C 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 98 52 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DC 07 01 00 35 04 06 00 69 1C C9 2B [18:38:15]Write to MH i2c: E2 02 01 72 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 2C 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 98 52 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DC 07 01 00 35 04 06 00 69 1C C9 2B 00 00 E3 [18:38:15]Write i2c OK [18:38:15]MH_I2C_Read... [18:38:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:15]Read from MH i2c: E2 [18:38:15]MH_I2C_Read... [18:38:15]Read from MH i2c: E2 03 00 [18:38:15]MH_I2C_Read... [18:38:15]Read from MH i2c: E2 03 00 72 1E 00 90 00 04 [18:38:15]RAPDU: 90 00 [18:38:15]wFMCommunicate OK [18:38:15]wFMCommunicate request_size=7 [18:38:15]MH_SAM_APDU [18:38:15]CAPDU: 80 0D 02 02 02 2C 68 [18:38:15]Write to MH i2c: E2 0A 00 73 1E 80 0D 02 02 02 00 2C 68 00 00 A3 [18:38:15]Write i2c OK [18:38:15]MH_I2C_Read... [18:38:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:15]Read from MH i2c: E2 [18:38:15]MH_I2C_Read... [18:38:15]Read from MH i2c: E2 03 00 [18:38:15]MH_I2C_Read... [18:38:15]Read from MH i2c: E2 03 00 73 1E 00 90 00 05 [18:38:15]RAPDU: 90 00 [18:38:15]wFMCommunicate OK [18:38:15]wFMCommunicate request_size=4 [18:38:15]MH_SAM_APDU [18:38:15]CAPDU: 80 0D 03 02 [18:38:15]Write to MH i2c: E2 08 00 74 1E 80 0D 03 02 00 00 00 00 0D [18:38:15]Write i2c OK [18:38:15]MH_I2C_Read... [18:38:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:38:15]Read from MH i2c: E2 [18:38:15]MH_I2C_Read... [18:38:15]Read from MH i2c: E2 0B 00 [18:38:15]MH_I2C_Read... [18:38:15]Read from MH i2c: E2 0B 00 74 1E 00 2B F5 04 B1 7A 66 7E DD 90 00 1E [18:38:15]RAPDU: 2B F5 04 B1 7A 66 7E DD 90 00 [18:38:15]wFMCommunicate OK [18:38:15]SAM_PROTO_SignData done [18:38:15]FM_MakeSignedData done [18:38:15]CreateOFDProtocolMessage [18:38:15]wFMCommunicate request_size=4 [18:38:15]MH_SAM_APDU [18:38:15]CAPDU: 80 11 00 00 [18:38:15]Write to MH i2c: E2 08 00 75 1E 80 11 00 00 00 00 00 00 0D [18:38:15]Write i2c OK [18:38:15]MH_I2C_Read... [18:38:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:15]Read from MH i2c: E2 [18:38:15]MH_I2C_Read... [18:38:15]Read from MH i2c: E2 17 00 [18:38:15]MH_I2C_Read... [18:38:15]Read from MH i2c: E2 17 00 75 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 63 [18:38:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:38:15]wFMCommunicate OK [18:38:15]CreateOFDProtocolMessage done [18:38:15]OFDSenderStorePacket 67548 [18:38:15]StoreOFDPacket docnum=67548 [18:38:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 91 9C 04 01 92 5D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 98 52 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DC 07 01 00 35 04 06 00 69 1C C9 2B 2C 68 2B F5 04 B1 7A 66 7E DD [18:38:15]CheckFolder [18:38:15]dirname=/storage/ofd_packets [18:38:15]CheckFolder done [18:38:15]ProducePacketName [18:38:15]name=ofd_packets/00067548 [18:38:15]NVStorageSaveData ofd_packets/00067548 [18:38:15]File name is /storage/ofd_packets/00067548 [18:38:15]Write 298 bytes [18:38:15]NVStorageSaveData done [18:38:15]OFDSenderStorePacket done [18:38:15]KKMCreateOFDPacket done [18:38:15]NVStorageSaveData kkm_last_timestamp [18:38:15]File name is /storage/kkm_last_timestamp [18:38:15]Write 4 bytes [18:38:15]NVStorageSaveData done [18:38:15]ExternCall_PrintAddStr [18:38:15]wPrintStart [18:38:15]Write to MH i2c: 01 00 00 76 1E 94 [18:38:15]Write i2c OK [18:38:15]MH_I2C_Read... [18:38:15]Read from MH i2c: 01 [18:38:15]MH_I2C_Read... [18:38:15]Read from MH i2c: 01 07 00 [18:38:15]MH_I2C_Read... [18:38:15]Read from MH i2c: 01 07 00 76 1E 00 00 00 00 00 FF 0F A9 [18:38:15]RasterBufferAndPrint [18:38:15]line Счет N : (1)507610 [18:38:15]line ИНН: 02508201610067 [18:38:15]line Контрольно-Кассовый Чек [18:38:15]line ПРОДАЖА [18:38:15]line ТРК (МРК, ГНК) : 11 [18:38:15]line Товар: 2710194210 [18:38:15]line ДТ-К-5 [18:38:15]line 6.700 * 74.70 [18:38:15]line = 500.49 [18:38:15]line НДС 12% НСП 1% [18:38:15]line > о реализуемом товаре [18:38:15]line ОКРУГЛЕНИЕ: -0.49 [18:38:15]line ИТОГО: 500.00 [18:38:15]line Внесено: 500.00 [18:38:15]line СДАЧА: 0.00 [18:38:15]line НСП 1% : 4.43 [18:38:15]line НДС 12% : 53.15 [18:38:15]line Наличными: 500.00 [18:38:15]line Безнал.: 0.00 [18:38:15]line Место: АЗС № 91 "Партнер Нефть" [18:38:15]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:38:15]line СНО: Общий режим [18:38:15]line Чек 146 16.05.2024 18:38 [18:38:15]line Смена: 357 ФФД: 1.0 [18:38:15]line ЗНМ: 0300000119 [18:38:15]line РНМ: 0000000000091845 [18:38:15]line Версия ККМ: 001 [18:38:15]line ФМ: 0000000000871829 [18:38:15]line ФД: 67548 [18:38:15]line ФПД: 115572355050600 [18:38:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T183816&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67548&fm=115572355050600&tin=02508201610067®Number=0000000000091845&sum=50000 [18:38:15]OFD Sender: Processing packet 67548 [packets to send 35, broken 34] [18:38:15]ProducePacketName [18:38:15]name=ofd_packets/00067548 [18:38:15]OFD Sender: To server: pG, [18:38:15]CommunicateWithHost lk.salyk.kg:30040 [18:38:15]ConnectInit lk.salyk.kg [18:38:15]written 0, free lines is 4095 [18:38:16]Connected sock=10 [18:38: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 38 32 39 0C 01 00 00 91 9C 04 01 92 5D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 98 52 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DC 07 01 00 35 04 06 00 69 1C C9 2B 2C 68 2B F5 04 B1 7A 66 7E DD [18:38:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 7E 73 47 00 24 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 38 32 39 10 04 04 00 DC 07 01 00 F4 03 04 00 72 FA 45 66 B6 04 01 00 00 E6 37 69 AA 00 49 45 0C [18:38:16]CommunicateWithHost err = 0 [18:38:16]CheckOFDResponse [18:38:16]1017 (14) - 77093643461234 [18:38:16]1041 (16) - 0000000000871829 [18:38:16]1040 (4) - 67548 [18:38:16]1012 (4) - 16.05.2024 12:22 [18:38:16]1206 (1) - 0 [18:38:16]OFD Sender: Remove packet 67548 [18:38:16]ProducePacketName [18:38:16]name=ofd_packets/00067548 [18:38:16]NVStorageDeleteData [18:38:16]Write to MH i2c: 01 00 00 A0 1E BE [18:38:16]Write i2c OK [18:38:16]MH_I2C_Read... [18:38:16]Read from MH i2c: 01 [18:38:16]MH_I2C_Read... [18:38:16]Read from MH i2c: 01 07 00 [18:38:16]MH_I2C_Read... [18:38:16]Read from MH i2c: 01 07 00 A0 1E 00 00 00 00 00 CF 0C A0 [18:38:16]RasterBufferAndPrint [18:38:16]line [18:38:16]line [18:38:16]line [18:38:16]line [18:38:16]line [18:38:16]written 0, free lines is 3286 [18:38:16]MH_Cut [18:38:16]Write to MH i2c: D1 01 00 A7 1E 01 97 [18:38:16]Write i2c OK [18:38:16]MH_I2C_Read... [18:38:16]Read from MH i2c: D1 [18:38:16]MH_I2C_Read... [18:38:16]Read from MH i2c: D1 01 00 [18:38:16]MH_I2C_Read... [18:38:16]Read from MH i2c: D1 01 00 A7 1E 00 96 [18:38:16]Write to MH i2c: 01 00 00 A8 1E C6 [18:38:16]Write i2c OK [18:38:16]MH_I2C_Read... [18:38:16]OFD Sender: No OFD packet to send [18:38:17]*** Cut start [18:38:17]*** Purtial cut [18:38:17]*** Stage 1: CUTSNS_PIN = 1 [18:38:17]Read from MH i2c: 01 [18:38:17]MH_I2C_Read... [18:38:17]*** Stop cut motor [18:38:17]*** Cut end [18:38:17]Read from MH i2c: 01 07 00 [18:38:17]MH_I2C_Read... [18:38:17]Read from MH i2c: 01 07 00 A8 1E 00 00 00 00 00 FF 0F DB [18:38:17]process_action close_receipt done [18:38:17]requested_data is exist [18:38:17]produce_requested_data [18:38:17]requested_item fm.sn is exist - process it [18:38:17]wFMCommunicate request_size=4 [18:38:17]MH_SAM_APDU [18:38:17]CAPDU: 80 11 00 00 [18:38:17]Write to MH i2c: E2 08 00 A9 1E 80 11 00 00 00 00 00 00 41 [18:38:17]Write i2c OK [18:38:17]MH_I2C_Read... [18:38:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:17]Read from MH i2c: E2 [18:38:17]MH_I2C_Read... [18:38:17]Read from MH i2c: E2 17 00 [18:38:17]MH_I2C_Read... [18:38:17]Read from MH i2c: E2 17 00 A9 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 97 [18:38:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:38:17]wFMCommunicate OK [18:38:17]requested_item fd.num is exist - process it [18:38:17]SAM_PROTO_GetFieldsCounters [18:38:17]wFMCommunicate request_size=4 [18:38:17]MH_SAM_APDU [18:38:17]CAPDU: 80 13 00 00 [18:38:17]Write to MH i2c: E2 08 00 AA 1E 80 13 00 00 00 00 00 00 44 [18:38:17]Write i2c OK [18:38:17]MH_I2C_Read... [18:38:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:38:17]Read from MH i2c: E2 [18:38:17]MH_I2C_Read... [18:38:17]Read from MH i2c: E2 62 00 [18:38:17]MH_I2C_Read... [18:38:17]Read from MH i2c: E2 62 00 AA 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 DC 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [18:38: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 DC 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:38:17]wFMCommunicate OK [18:38:17]SAM_PROTO_GetFieldsCounters done [18:38:17]requested_item shift.num is exist - process it [18:38:17]requested_item shift.opened is exist - process it [18:38:17]req_shift_opened [18:38:17]FM_GetShiftState [18:38:17]SAM_PROTO_GetShiftState [18:38:17]wFMCommunicate request_size=4 [18:38:17]MH_SAM_APDU [18:38:17]CAPDU: 80 13 01 00 [18:38:17]Write to MH i2c: E2 08 00 AB 1E 80 13 01 00 00 00 00 00 46 [18:38:17]Write i2c OK [18:38:17]MH_I2C_Read... [18:38:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:17]Read from MH i2c: E2 [18:38:17]MH_I2C_Read... [18:38:17]Read from MH i2c: E2 0E 00 [18:38:17]MH_I2C_Read... [18:38:17]Read from MH i2c: E2 0E 00 AB 1E 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 F2 [18:38:17]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [18:38:17]wFMCommunicate OK [18:38:17]SAM_PROTO_GetShiftState done [18:38:17]FM_GetShiftState done [18:38:17]req_shift_opened done [18:38:17]requested_item shift.open_date is exist - process it [18:38:17]req_shift_open_date [18:38:17]req_shift_open_date done [18:38:17]produce_requested_data done [18:38:17]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67548,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [18:38:17]process_action_free close_receipt [18:38:17]json_value_free [18:38:17]json_value_free done [18:38:17]process_json_proto returns [18:38:17]Send response to host [18:38:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67548,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [18:38:17]free response buf [18:38:17]execute_script done [18:38:17]execute_script returns [18:38:17]free content buf [18:38:17]Sock 8.Close socket [18:38:17]Sock 8.Thread stoped [18:38:21]OFD Sender: No OFD packet to send [18:38:26]OFD Sender: No OFD packet to send [18:38:31]OFD Sender: No OFD packet to send [18:38:36]OFD Sender: No OFD packet to send [18:38:41]OFD Sender: No OFD packet to send [18:38:46]OFD Sender: No OFD packet to send [18:38:51]OFD Sender: No OFD packet to send [18:38:56]OFD Sender: No OFD packet to send [18:39:01]OFD Sender: No OFD packet to send [18:39:06]OFD Sender: No OFD packet to send [18:39:11]OFD Sender: No OFD packet to send [18:39:16]OFD Sender: No OFD packet to send [18:39:21]OFD Sender: No OFD packet to send [18:39:26]OFD Sender: No OFD packet to send [18:39:31]OFD Sender: No OFD packet to send [18:39:36]OFD Sender: No OFD packet to send [18:39:41]OFD Sender: No OFD packet to send [18:39:46]OFD Sender: No OFD packet to send [18:39:51]OFD Sender: No OFD packet to send [18:39:56]OFD Sender: No OFD packet to send [18:40:01]OFD Sender: No OFD packet to send [18:40:06]OFD Sender: No OFD packet to send [18:40:11]OFD Sender: No OFD packet to send [18:40:16]OFD Sender: No OFD packet to send [18:40:21]OFD Sender: No OFD packet to send [18:40:26]OFD Sender: No OFD packet to send [18:40:31]OFD Sender: No OFD packet to send [18:40:36]OFD Sender: No OFD packet to send [18:40:41]OFD Sender: No OFD packet to send [18:40:46]OFD Sender: No OFD packet to send [18:40:51]OFD Sender: No OFD packet to send [18:40:56]OFD Sender: No OFD packet to send [18:41:01]OFD Sender: No OFD packet to send [18:41:06]OFD Sender: No OFD packet to send [18:41:11]OFD Sender: No OFD packet to send [18:41:16]OFD Sender: No OFD packet to send [18:41:21]OFD Sender: No OFD packet to send [18:41:26]OFD Sender: No OFD packet to send [18:41:31]OFD Sender: No OFD packet to send [18:41:36]OFD Sender: No OFD packet to send [18:41:41]OFD Sender: No OFD packet to send [18:41:46]OFD Sender: No OFD packet to send [18:41:51]OFD Sender: No OFD packet to send [18:41:56]OFD Sender: No OFD packet to send [18:42:01]OFD Sender: No OFD packet to send [18:42:06]OFD Sender: No OFD packet to send [18:42:11]OFD Sender: No OFD packet to send [18:42:16]OFD Sender: No OFD packet to send [18:42:21]OFD Sender: No OFD packet to send [18:42:26]OFD Sender: No OFD packet to send [18:42:31]OFD Sender: No OFD packet to send [18:42:36]OFD Sender: No OFD packet to send [18:42:41]OFD Sender: No OFD packet to send [18:42:46]OFD Sender: No OFD packet to send [18:42:52]OFD Sender: No OFD packet to send [18:42:57]OFD Sender: No OFD packet to send [18:43:02]OFD Sender: No OFD packet to send [18:43:06]accept exits with 9 [18:43:06]New connection [18:43:06]New thread 3067182436 created [18:43:06]Thread 3067039076 joined [18:43:06]Waiting for new connection... [18:43:06] Sock 9.Parse request [18:43:06]Sock 9.Check first char [18:43:06]Sock 9.First char is OK [18:43:06]request: POST /json_proto HTTP/1.0 [18:43:06]Method: POST [18:43:06]URL: /json_proto [18:43:06]Method is POST - this is cgi request [18:43:06]url: /json_proto [18:43:06]query_string will be loaded in cgi processing [18:43:06]execute_cgi json_proto POST (null) [18:43:06]execute_cgi path=json_proto method=POST [18:43:06]POST find Content-Length [18:43:06]Host: 172.17.41.195:8080 [18:43:06]Content-Length: 679 [18:43:06]Content-Type: application/json [18:43:06] [18:43:06]POST finish read [18:43:06]Found Content-Length = 679 [18:43:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507611", "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" : 74.70, "quantity" : 26.780, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:06]execute_script... [18: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)507611", "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" : 74.70, "quantity" : 26.780, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:06]POST & json_proto [18:43:06]process_json_proto [18:43:06]json parsed OK: [18:43:06]protocol is kg_v1.0 [18:43:06]action value=close_receipt [18:43:06]process_action close_receipt [18:43:06]cmd_close_receipt [18:43:06]MH_GetDate [18:43:06]Write to MH i2c: F0 00 00 AC 1E B9 [18:43:06]Write i2c OK [18:43:06]MH_I2C_Read... [18:43:06]Read from MH i2c: F0 [18:43:06]MH_I2C_Read... [18:43:06]Read from MH i2c: F0 09 00 [18:43:06]MH_I2C_Read... [18:43:06]Read from MH i2c: F0 09 00 AC 1E 00 BC 53 46 66 FC 21 6F 64 6D [18:43:06]GetLastDocTimeStamp 1715884696 [18:43:06]current date 1715884988 [18:43:06]FM_GetShiftState [18:43:06]SAM_PROTO_GetShiftState [18:43:06]wFMCommunicate request_size=4 [18:43:06]MH_SAM_APDU [18:43:06]CAPDU: 80 13 01 00 [18:43:06]Write to MH i2c: E2 08 00 AD 1E 80 13 01 00 00 00 00 00 48 [18:43:06]Write i2c OK [18:43:06]MH_I2C_Read... [18:43:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:06]Read from MH i2c: E2 [18:43:06]MH_I2C_Read... [18:43:06]Read from MH i2c: E2 0E 00 [18:43:06]MH_I2C_Read... [18:43:06]Read from MH i2c: E2 0E 00 AD 1E 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 F4 [18:43:06]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [18:43:06]wFMCommunicate OK [18:43:06]SAM_PROTO_GetShiftState done [18:43:06]FM_GetShiftState done [18:43:06]opened in 1715818916 [18:43:06]opened+sec_in_day 1715905316 [18:43:06]quantity*price = 200046 [18:43:06]sum+1 = 200048 [18:43:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 147 16.05.2024 18:43 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67549 ФПД: 135573002072572 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T184308&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67549&fm=135573002072572&tin=02508201610067®Number=0000000000091845&sum=200000 [18:43:07]StoreToDocumentArchive [18:43:07]shift 357 fd 67549 [18:43:07]save to /storage/0357/doc_00067549 [18:43:07]save last doc name /storage/0357/doc_00067549 to /storage/kkm_last_doc_name [18:43:07]save OK [18:43:07]Clear old archive folders... [18:43:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:43:07]tlvbuf is 017E84C0 [18:43:07]SAM_PROTO_ClearQueue [18:43:07]wFMCommunicate request_size=4 [18:43:07]MH_SAM_APDU [18:43:07]CAPDU: 80 09 00 00 [18:43:07]Write to MH i2c: E2 08 00 BA 1E 80 09 00 00 00 00 00 00 4A [18:43:07]Write i2c OK [18:43:07]MH_I2C_Read... [18:43:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:43:07]Read from MH i2c: E2 [18:43:07]MH_I2C_Read... [18:43:07]Read from MH i2c: E2 03 00 [18:43:07]MH_I2C_Read... [18:43:07]Read from MH i2c: E2 03 00 BA 1E 00 90 00 4C [18:43:07]RAPDU: 90 00 [18:43:07]wFMCommunicate OK [18:43:07]SAM_PROTO_ClearQueue done [18:43:07]KKMCreateOFDPacket [18:43:07]OFDProtocolAddRootSTLVToBuf [18:43:07]FM_MakeSignedData [18:43:07]FM_MakeSignedData [18:43:07]SAM_PROTO_SignData [18:43:07]wFMCommunicate request_size=4 [18:43:07]MH_SAM_APDU [18:43:07]CAPDU: 80 0D 01 02 [18:43:07]Write to MH i2c: E2 08 00 BB 1E 80 0D 01 02 00 00 00 00 52 [18:43:07]Write i2c OK [18:43:07]MH_I2C_Read... [18:43:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:43:07]Read from MH i2c: E2 [18:43:07]MH_I2C_Read... [18:43:07]Read from MH i2c: E2 03 00 [18:43:07]MH_I2C_Read... [18:43:07]Read from MH i2c: E2 03 00 BB 1E 00 90 00 4D [18:43:07]RAPDU: 90 00 [18:43:07]wFMCommunicate OK [18:43:07]wFMCommunicate request_size=255 [18:43:07]MH_SAM_APDU [18:43: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 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 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 FC 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 93 00 00 00 F4 03 04 00 BC 53 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DD 07 01 00 35 04 06 00 7B 4D 8C A1 [18:43:07]Write to MH i2c: E2 02 01 BC 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 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 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 FC 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 93 00 00 00 F4 03 04 00 BC 53 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DD 07 01 00 35 04 06 00 7B 4D 8C A1 00 00 EE [18:43:07]Write i2c OK [18:43:07]MH_I2C_Read... [18:43:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:08]Read from MH i2c: E2 [18:43:08]MH_I2C_Read... [18:43:08]Read from MH i2c: E2 03 00 [18:43:08]MH_I2C_Read... [18:43:08]Read from MH i2c: E2 03 00 BC 1E 00 90 00 4E [18:43:08]RAPDU: 90 00 [18:43:08]wFMCommunicate OK [18:43:08]wFMCommunicate request_size=7 [18:43:08]MH_SAM_APDU [18:43:08]CAPDU: 80 0D 02 02 02 31 FC [18:43:08]Write to MH i2c: E2 0A 00 BD 1E 80 0D 02 02 02 00 31 FC 00 00 86 [18:43:08]Write i2c OK [18:43:08]MH_I2C_Read... [18:43:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:08]Read from MH i2c: E2 [18:43:08]MH_I2C_Read... [18:43:08]Read from MH i2c: E2 03 00 [18:43:08]MH_I2C_Read... [18:43:08]Read from MH i2c: E2 03 00 BD 1E 00 90 00 4F [18:43:08]RAPDU: 90 00 [18:43:08]wFMCommunicate OK [18:43:08]wFMCommunicate request_size=4 [18:43:08]MH_SAM_APDU [18:43:08]CAPDU: 80 0D 03 02 [18:43:08]Write to MH i2c: E2 08 00 BE 1E 80 0D 03 02 00 00 00 00 57 [18:43:08]Write i2c OK [18:43:08]MH_I2C_Read... [18:43:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:43:08]Read from MH i2c: E2 [18:43:08]MH_I2C_Read... [18:43:08]Read from MH i2c: E2 0B 00 [18:43:08]MH_I2C_Read... [18:43:08]Read from MH i2c: E2 0B 00 BE 1E 00 5B BF 32 DB B0 0D 31 40 90 00 AD [18:43:08]RAPDU: 5B BF 32 DB B0 0D 31 40 90 00 [18:43:08]wFMCommunicate OK [18:43:08]SAM_PROTO_SignData done [18:43:08]FM_MakeSignedData done [18:43:08]CreateOFDProtocolMessage [18:43:08]wFMCommunicate request_size=4 [18:43:08]MH_SAM_APDU [18:43:08]CAPDU: 80 11 00 00 [18:43:08]Write to MH i2c: E2 08 00 BF 1E 80 11 00 00 00 00 00 00 57 [18:43:08]Write i2c OK [18:43:08]MH_I2C_Read... [18:43:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:08]Read from MH i2c: E2 [18:43:08]MH_I2C_Read... [18:43:08]Read from MH i2c: E2 17 00 [18:43:08]MH_I2C_Read... [18:43:08]Read from MH i2c: E2 17 00 BF 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AD [18:43:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:43:08]wFMCommunicate OK [18:43:08]CreateOFDProtocolMessage done [18:43:08]OFDSenderStorePacket 67549 [18:43:08]StoreOFDPacket docnum=67549 [18:43:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 A5 67 04 01 E3 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 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 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 FC 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 93 00 00 00 F4 03 04 00 BC 53 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DD 07 01 00 35 04 06 00 7B 4D 8C A1 31 FC 5B BF 32 DB B0 0D 31 40 [18:43:08]CheckFolder [18:43:08]dirname=/storage/ofd_packets [18:43:08]CheckFolder done [18:43:08]ProducePacketName [18:43:08]name=ofd_packets/00067549 [18:43:08]NVStorageSaveData ofd_packets/00067549 [18:43:08]File name is /storage/ofd_packets/00067549 [18:43:08]Write 298 bytes [18:43:08]NVStorageSaveData done [18:43:08]OFDSenderStorePacket done [18:43:08]KKMCreateOFDPacket done [18:43:08]NVStorageSaveData kkm_last_timestamp [18:43:08]File name is /storage/kkm_last_timestamp [18:43:08]Write 4 bytes [18:43:08]NVStorageSaveData done [18:43:08]ExternCall_PrintAddStr [18:43:08]wPrintStart [18:43:08]Write to MH i2c: 01 00 00 C0 1E DE [18:43:08]Write i2c OK [18:43:08]MH_I2C_Read... [18:43:08]Read from MH i2c: 01 [18:43:08]MH_I2C_Read... [18:43:08]Read from MH i2c: 01 07 00 [18:43:08]MH_I2C_Read... [18:43:08]Read from MH i2c: 01 07 00 C0 1E 00 00 00 00 00 FF 0F F3 [18:43:08]RasterBufferAndPrint [18:43:08]line Счет N : (1)507611 [18:43:08]line ИНН: 02508201610067 [18:43:08]line Контрольно-Кассовый Чек [18:43:08]line ПРОДАЖА [18:43:08]line ТРК (МРК, ГНК) : 21 [18:43:08]line Товар: 2710194210 [18:43:08]line ДТ-К-5 [18:43:08]line 26.780 * 74.70 [18:43:08]line = 2000.47 [18:43:08]line НДС 12% НСП 1% [18:43:08]line > о реализуемом товаре [18:43:08]line ОКРУГЛЕНИЕ: -0.47 [18:43:08]line ИТОГО: 2000.00 [18:43:08]line Внесено: 2000.00 [18:43:08]line СДАЧА: 0.00 [18:43:08]line НСП 1% : 17.70 [18:43:08]line НДС 12% : 212.44 [18:43:08]line Наличными: 2000.00 [18:43:08]line Безнал.: 0.00 [18:43:08]line Место: АЗС № 91 "Партнер Нефть" [18:43:08]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:43:08]line СНО: Общий режим [18:43:08]line Чек 147 16.05.2024 18:43 [18:43:08]line Смена: 357 ФФД: 1.0 [18:43:08]line ЗНМ: 0300000119 [18:43:08]line РНМ: 0000000000091845 [18:43:08]line Версия ККМ: 001 [18:43:08]line ФМ: 0000000000871829 [18:43:08]line ФД: 67549 [18:43:08]line ФПД: 135573002072572 [18:43:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T184308&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67549&fm=135573002072572&tin=02508201610067®Number=0000000000091845&sum=200000 [18:43:08]OFD Sender: Processing packet 67549 [packets to send 35, broken 34] [18:43:08]ProducePacketName [18:43:08]name=ofd_packets/00067549 [18:43:08]OFD Sender: To server: pG, [18:43:08]CommunicateWithHost lk.salyk.kg:30040 [18:43:08]ConnectInit lk.salyk.kg [18:43:08]written 0, free lines is 4095 [18:43:08]Connected sock=10 [18: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 38 32 39 0C 01 00 00 A5 67 04 01 E3 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 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 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 FC 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 93 00 00 00 F4 03 04 00 BC 53 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DD 07 01 00 35 04 06 00 7B 4D 8C A1 31 FC 5B BF 32 DB B0 0D 31 40 [18:43:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 DC 74 47 00 9E 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 38 32 39 10 04 04 00 DD 07 01 00 F4 03 04 00 96 FB 45 66 B6 04 01 00 00 70 27 AE 35 87 B0 36 1A [18:43:09]CommunicateWithHost err = 0 [18:43:09]CheckOFDResponse [18:43:09]1017 (14) - 77093643461234 [18:43:09]1041 (16) - 0000000000871829 [18:43:09]1040 (4) - 67549 [18:43:09]1012 (4) - 16.05.2024 12:27 [18:43:09]1206 (1) - 0 [18:43:09]OFD Sender: Remove packet 67549 [18:43:09]ProducePacketName [18:43:09]name=ofd_packets/00067549 [18:43:09]NVStorageDeleteData [18:43:09]Write to MH i2c: 01 00 00 EA 1E 08 [18:43:09]Write i2c OK [18:43:09]MH_I2C_Read... [18:43:09]Read from MH i2c: 01 [18:43:09]MH_I2C_Read... [18:43:09]Read from MH i2c: 01 07 00 [18:43:09]MH_I2C_Read... [18:43:09]Read from MH i2c: 01 07 00 EA 1E 00 00 00 00 00 D5 0C F0 [18:43:09]RasterBufferAndPrint [18:43:09]line [18:43:09]line [18:43:09]line [18:43:09]line [18:43:09]line [18:43:09]written 0, free lines is 3292 [18:43:09]MH_Cut [18:43:09]Write to MH i2c: D1 01 00 F1 1E 01 E1 [18:43:09]Write i2c OK [18:43:09]MH_I2C_Read... [18:43:09]Read from MH i2c: D1 [18:43:09]MH_I2C_Read... [18:43:09]Read from MH i2c: D1 01 00 [18:43:09]MH_I2C_Read... [18:43:09]Read from MH i2c: D1 01 00 F1 1E 00 E0 [18:43:09]Write to MH i2c: 01 00 00 F2 1E 10 [18:43:09]Write i2c OK [18:43:09]MH_I2C_Read... [18:43:09]OFD Sender: No OFD packet to send [18:43:09]*** Cut start [18:43:09]*** Purtial cut [18:43:09]*** CUTSNS_PIN = 0 [18:43:10]*** Stage 1: CUTSNS_PIN = 1 [18:43:11]Read from MH i2c: 01 [18:43:11]MH_I2C_Read... [18:43:11]*** Stop cut motor [18:43:11]*** Cut end [18:43:11]Read from MH i2c: 01 07 00 [18:43:11]MH_I2C_Read... [18:43:11]Read from MH i2c: 01 07 00 F2 1E 00 00 00 00 00 FF 0F 25 [18:43:11]process_action close_receipt done [18:43:11]requested_data is exist [18:43:11]produce_requested_data [18:43:11]requested_item fm.sn is exist - process it [18:43:11]wFMCommunicate request_size=4 [18:43:11]MH_SAM_APDU [18:43:11]CAPDU: 80 11 00 00 [18:43:11]Write to MH i2c: E2 08 00 F3 1E 80 11 00 00 00 00 00 00 8B [18:43:11]Write i2c OK [18:43:11]MH_I2C_Read... [18:43:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:12]Read from MH i2c: E2 [18:43:12]MH_I2C_Read... [18:43:12]Read from MH i2c: E2 17 00 [18:43:12]MH_I2C_Read... [18:43:12]Read from MH i2c: E2 17 00 F3 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E1 [18:43:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:43:12]wFMCommunicate OK [18:43:12]requested_item fd.num is exist - process it [18:43:12]SAM_PROTO_GetFieldsCounters [18:43:12]wFMCommunicate request_size=4 [18:43:12]MH_SAM_APDU [18:43:12]CAPDU: 80 13 00 00 [18:43:12]Write to MH i2c: E2 08 00 F4 1E 80 13 00 00 00 00 00 00 8E [18:43:12]Write i2c OK [18:43:12]MH_I2C_Read... [18:43:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:43:12]Read from MH i2c: E2 [18:43:12]MH_I2C_Read... [18:43:12]Read from MH i2c: E2 62 00 [18:43:12]MH_I2C_Read... [18:43:12]Read from MH i2c: E2 62 00 F4 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 DD 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [18: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 DD 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:43:12]wFMCommunicate OK [18:43:12]SAM_PROTO_GetFieldsCounters done [18:43:12]requested_item shift.num is exist - process it [18:43:12]requested_item shift.opened is exist - process it [18:43:12]req_shift_opened [18:43:12]FM_GetShiftState [18:43:12]SAM_PROTO_GetShiftState [18:43:12]wFMCommunicate request_size=4 [18:43:12]MH_SAM_APDU [18:43:12]CAPDU: 80 13 01 00 [18:43:12]Write to MH i2c: E2 08 00 F5 1E 80 13 01 00 00 00 00 00 90 [18:43:12]Write i2c OK [18:43:12]MH_I2C_Read... [18:43:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:12]Read from MH i2c: E2 [18:43:12]MH_I2C_Read... [18:43:12]Read from MH i2c: E2 0E 00 [18:43:12]MH_I2C_Read... [18:43:12]Read from MH i2c: E2 0E 00 F5 1E 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 3C [18:43:12]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [18:43:12]wFMCommunicate OK [18:43:12]SAM_PROTO_GetShiftState done [18:43:12]FM_GetShiftState done [18:43:12]req_shift_opened done [18:43:12]requested_item shift.open_date is exist - process it [18:43:12]req_shift_open_date [18:43:12]req_shift_open_date done [18:43:12]produce_requested_data done [18:43:12]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67549,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [18:43:12]process_action_free close_receipt [18:43:12]json_value_free [18:43:12]json_value_free done [18:43:12]process_json_proto returns [18:43:12]Send response to host [18:43:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67549,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [18:43:12]free response buf [18:43:12]execute_script done [18:43:12]execute_script returns [18:43:12]free content buf [18:43:12]Sock 9.Close socket [18:43:12]Sock 9.Thread stoped [18:43:14]OFD Sender: No OFD packet to send [18:43:19]OFD Sender: No OFD packet to send [18:43:24]OFD Sender: No OFD packet to send [18:43:25]int [18:43:25]Write to MH i2c: 01 00 00 F6 1E 14 [18:43:25]*** FLAG_PRN_PAP1 set [18:43:25]Write i2c OK [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: 01 [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: 01 07 00 [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: 01 07 00 F6 1E 00 01 00 00 00 FF 0F 2A [18:43:25]state=0 [18:43:25]No paper [18:43:25]int [18:43:25]Write to MH i2c: 01 00 00 F7 1E 15 [18:43:25]*** FLAG_PRN_PAP2 set [18:43:25]Write i2c OK [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: 01 [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: 01 07 00 [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: 01 07 00 F7 1E 00 03 00 00 00 FF 0F 2D [18:43:25]state=0 [18:43:25]No paper [18:43:25]Cover opened [18:43:29]OFD Sender: No OFD packet to send [18:43:30]Write to MH i2c: 01 00 00 F8 1E 16 [18:43:30]Write i2c OK [18:43:30]MH_I2C_Read... [18:43:30]Read from MH i2c: 01 [18:43:30]MH_I2C_Read... [18:43:30]Read from MH i2c: 01 07 00 [18:43:30]MH_I2C_Read... [18:43:30]Read from MH i2c: 01 07 00 F8 1E 00 03 00 00 00 FF 0F 2E [18:43:30]state=3 [18:43:30]No paper [18:43:30]Cover opened [18:43:33]int [18:43:33]Write to MH i2c: 01 00 00 F9 1E 17 [18:43:33]Write i2c OK [18:43:33]MH_I2C_Read... [18:43:33]Read from MH i2c: 01 [18:43:33]MH_I2C_Read... [18:43:33]Read from MH i2c: 01 07 00 [18:43:33]MH_I2C_Read... [18:43:33]*** FLAG_PRN_PAP1 reset [18:43:33]*** FLAG_PRN_PAP2 reset [18:43:33]Read from MH i2c: 01 07 00 F9 1E 00 00 00 00 00 FF 0F 2C [18:43:33]state=3 [18:43:33]Cover closed [18:43:34]OFD Sender: No OFD packet to send [18:43:39]OFD Sender: No OFD packet to send [18:43:44]OFD Sender: No OFD packet to send [18:43:49]OFD Sender: No OFD packet to send [18:43:54]OFD Sender: No OFD packet to send [18:43:59]OFD Sender: No OFD packet to send [18:44:04]OFD Sender: No OFD packet to send [18:44:09]OFD Sender: No OFD packet to send [18:44:14]OFD Sender: No OFD packet to send [18:44:19]OFD Sender: No OFD packet to send [18:44:24]OFD Sender: No OFD packet to send [18:44:29]OFD Sender: No OFD packet to send [18:44:34]OFD Sender: No OFD packet to send [18:44:39]OFD Sender: No OFD packet to send [18:44:44]OFD Sender: No OFD packet to send [18:44:49]OFD Sender: No OFD packet to send [18:44:54]OFD Sender: No OFD packet to send [18:44:59]OFD Sender: No OFD packet to send [18:45:04]OFD Sender: No OFD packet to send [18:45:09]OFD Sender: No OFD packet to send [18:45:14]OFD Sender: No OFD packet to send [18:45:19]OFD Sender: No OFD packet to send [18:45:24]OFD Sender: No OFD packet to send [18:45:29]OFD Sender: No OFD packet to send [18:45:34]OFD Sender: No OFD packet to send [18:45:39]OFD Sender: No OFD packet to send [18:45:44]OFD Sender: No OFD packet to send [18:45:49]OFD Sender: No OFD packet to send [18:45:54]OFD Sender: No OFD packet to send [18:45:59]OFD Sender: No OFD packet to send [18:46:04]OFD Sender: No OFD packet to send [18:46:09]OFD Sender: No OFD packet to send [18:46:14]OFD Sender: No OFD packet to send [18:46:19]OFD Sender: No OFD packet to send [18:46:24]OFD Sender: No OFD packet to send [18:46:29]OFD Sender: No OFD packet to send [18:46:33]accept exits with 8 [18:46:33]New connection [18:46:33]New thread 3067039076 created [18:46:33]Thread 3067182436 joined [18:46:33]Waiting for new connection... [18:46:33] Sock 8.Parse request [18:46:33]Sock 8.Check first char [18:46:33]Sock 8.First char is OK [18:46:33]request: POST /json_proto HTTP/1.0 [18:46:33]Method: POST [18:46:33]URL: /json_proto [18:46:33]Method is POST - this is cgi request [18:46:33]url: /json_proto [18:46:33]query_string will be loaded in cgi processing [18:46:33]execute_cgi json_proto POST (null) [18:46:33]execute_cgi path=json_proto method=POST [18:46:33]POST find Content-Length [18:46:33]Host: 172.17.41.195:8080 [18:46:33]Content-Length: 675 [18:46:33]Content-Type: application/json [18:46:33] [18:46:33]POST finish read [18:46:33]Found Content-Length = 675 [18:46:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507612", "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" : 74.70, "quantity" : 10.710, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:33]execute_script... [18:46: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)507612", "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" : 74.70, "quantity" : 10.710, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:33]POST & json_proto [18:46:33]process_json_proto [18:46:33]json parsed OK: [18:46:33]protocol is kg_v1.0 [18:46:33]action value=close_receipt [18:46:33]process_action close_receipt [18:46:33]cmd_close_receipt [18:46:33]MH_GetDate [18:46:33]Write to MH i2c: F0 00 00 FA 1E 07 [18:46:33]Write i2c OK [18:46:33]MH_I2C_Read... [18:46:33]Read from MH i2c: F0 [18:46:33]MH_I2C_Read... [18:46:33]Read from MH i2c: F0 09 00 [18:46:33]MH_I2C_Read... [18:46:33]Read from MH i2c: F0 09 00 FA 1E 00 8B 54 46 66 FC 21 6F 64 8B [18:46:33]GetLastDocTimeStamp 1715884988 [18:46:33]current date 1715885195 [18:46:33]FM_GetShiftState [18:46:33]SAM_PROTO_GetShiftState [18:46:33]wFMCommunicate request_size=4 [18:46:33]MH_SAM_APDU [18:46:33]CAPDU: 80 13 01 00 [18:46:33]Write to MH i2c: E2 08 00 FB 1E 80 13 01 00 00 00 00 00 96 [18:46:33]Write i2c OK [18:46:33]MH_I2C_Read... [18:46:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:33]Read from MH i2c: E2 [18:46:33]MH_I2C_Read... [18:46:33]Read from MH i2c: E2 0E 00 [18:46:33]MH_I2C_Read... [18:46:33]Read from MH i2c: E2 0E 00 FB 1E 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 42 [18:46:33]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [18:46:33]wFMCommunicate OK [18:46:33]SAM_PROTO_GetShiftState done [18:46:33]FM_GetShiftState done [18:46:33]opened in 1715818916 [18:46:33]opened+sec_in_day 1715905316 [18:46:33]quantity*price = 80003 [18:46:33]sum+1 = 80005 [18:46:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 148 16.05.2024 18:46 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67550 ФПД: 97554683706088 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T184635&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67550&fm=97554683706088&tin=02508201610067®Number=0000000000091845&sum=80000 [18:46:34]StoreToDocumentArchive [18:46:34]shift 357 fd 67550 [18:46:34]save to /storage/0357/doc_00067550 [18:46:34]save last doc name /storage/0357/doc_00067550 to /storage/kkm_last_doc_name [18:46:34]save OK [18:46:34]Clear old archive folders... [18:46:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:46:34]tlvbuf is B6EE0090 [18:46:34]SAM_PROTO_ClearQueue [18:46:34]wFMCommunicate request_size=4 [18:46:34]MH_SAM_APDU [18:46:34]CAPDU: 80 09 00 00 [18:46:34]Write to MH i2c: E2 08 00 08 1F 80 09 00 00 00 00 00 00 99 [18:46:34]Write i2c OK [18:46:34]MH_I2C_Read... [18:46:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:46:34]Read from MH i2c: E2 [18:46:34]MH_I2C_Read... [18:46:34]Read from MH i2c: E2 03 00 [18:46:34]MH_I2C_Read... [18:46:34]Read from MH i2c: E2 03 00 08 1F 00 90 00 9B [18:46:34]RAPDU: 90 00 [18:46:34]wFMCommunicate OK [18:46:34]SAM_PROTO_ClearQueue done [18:46:34]KKMCreateOFDPacket [18:46:34]OFDProtocolAddRootSTLVToBuf [18:46:34]FM_MakeSignedData [18:46:34]FM_MakeSignedData [18:46:34]SAM_PROTO_SignData [18:46:34]wFMCommunicate request_size=4 [18:46:34]MH_SAM_APDU [18:46:34]CAPDU: 80 0D 01 02 [18:46:34]Write to MH i2c: E2 08 00 09 1F 80 0D 01 02 00 00 00 00 A1 [18:46:34]Write i2c OK [18:46:34]MH_I2C_Read... [18:46:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:46:34]Read from MH i2c: E2 [18:46:34]MH_I2C_Read... [18:46:34]Read from MH i2c: E2 03 00 [18:46:34]MH_I2C_Read... [18:46:34]Read from MH i2c: E2 03 00 09 1F 00 90 00 9C [18:46:34]RAPDU: 90 00 [18:46:34]wFMCommunicate OK [18:46:34]wFMCommunicate request_size=255 [18:46:34]MH_SAM_APDU [18:46: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 D6 29 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 84 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 30 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 94 00 00 00 F4 03 04 00 8B 54 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DE 07 01 00 35 04 06 00 58 B9 B8 44 [18:46:34]Write to MH i2c: E2 02 01 0A 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 D6 29 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 84 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 30 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 94 00 00 00 F4 03 04 00 8B 54 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DE 07 01 00 35 04 06 00 58 B9 B8 44 00 00 0B [18:46:34]Write i2c OK [18:46:34]MH_I2C_Read... [18:46:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:34]Read from MH i2c: E2 [18:46:34]MH_I2C_Read... [18:46:34]Read from MH i2c: E2 03 00 [18:46:34]MH_I2C_Read... [18:46:34]Read from MH i2c: E2 03 00 0A 1F 00 90 00 9D [18:46:34]RAPDU: 90 00 [18:46:34]wFMCommunicate OK [18:46:34]wFMCommunicate request_size=7 [18:46:34]MH_SAM_APDU [18:46:34]CAPDU: 80 0D 02 02 02 BA E8 [18:46:34]Write to MH i2c: E2 0A 00 0B 1F 80 0D 02 02 02 00 BA E8 00 00 4A [18:46:34]Write i2c OK [18:46:34]MH_I2C_Read... [18:46:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:34]Read from MH i2c: E2 [18:46:34]MH_I2C_Read... [18:46:34]Read from MH i2c: E2 03 00 [18:46:34]MH_I2C_Read... [18:46:34]Read from MH i2c: E2 03 00 0B 1F 00 90 00 9E [18:46:34]RAPDU: 90 00 [18:46:34]wFMCommunicate OK [18:46:34]wFMCommunicate request_size=4 [18:46:34]MH_SAM_APDU [18:46:34]CAPDU: 80 0D 03 02 [18:46:34]Write to MH i2c: E2 08 00 0C 1F 80 0D 03 02 00 00 00 00 A6 [18:46:34]Write i2c OK [18:46:34]MH_I2C_Read... [18:46:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:46:34]OFD Sender: No OFD packet to send [18:46:34]Read from MH i2c: E2 [18:46:34]MH_I2C_Read... [18:46:34]Read from MH i2c: E2 0B 00 [18:46:34]MH_I2C_Read... [18:46:34]Read from MH i2c: E2 0B 00 0C 1F 00 C0 53 6D 17 43 C8 4C 0C 90 00 A1 [18:46:34]RAPDU: C0 53 6D 17 43 C8 4C 0C 90 00 [18:46:34]wFMCommunicate OK [18:46:34]SAM_PROTO_SignData done [18:46:34]FM_MakeSignedData done [18:46:34]CreateOFDProtocolMessage [18:46:34]wFMCommunicate request_size=4 [18:46:34]MH_SAM_APDU [18:46:34]CAPDU: 80 11 00 00 [18:46:34]Write to MH i2c: E2 08 00 0D 1F 80 11 00 00 00 00 00 00 A6 [18:46:34]Write i2c OK [18:46:34]MH_I2C_Read... [18:46:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:34]Read from MH i2c: E2 [18:46:34]MH_I2C_Read... [18:46:34]Read from MH i2c: E2 17 00 [18:46:34]MH_I2C_Read... [18:46:34]Read from MH i2c: E2 17 00 0D 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 FC [18:46:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:46:34]wFMCommunicate OK [18:46:34]CreateOFDProtocolMessage done [18:46:34]OFDSenderStorePacket 67550 [18:46:34]StoreOFDPacket docnum=67550 [18:46:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 8C 30 04 01 15 7E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 29 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 84 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 30 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 94 00 00 00 F4 03 04 00 8B 54 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DE 07 01 00 35 04 06 00 58 B9 B8 44 BA E8 C0 53 6D 17 43 C8 4C 0C [18:46:34]CheckFolder [18:46:34]dirname=/storage/ofd_packets [18:46:34]CheckFolder done [18:46:34]ProducePacketName [18:46:34]name=ofd_packets/00067550 [18:46:34]NVStorageSaveData ofd_packets/00067550 [18:46:34]File name is /storage/ofd_packets/00067550 [18:46:34]Write 298 bytes [18:46:34]NVStorageSaveData done [18:46:34]OFDSenderStorePacket done [18:46:34]KKMCreateOFDPacket done [18:46:34]NVStorageSaveData kkm_last_timestamp [18:46:34]File name is /storage/kkm_last_timestamp [18:46:34]Write 4 bytes [18:46:34]NVStorageSaveData done [18:46:34]ExternCall_PrintAddStr [18:46:34]wPrintStart [18:46:34]Write to MH i2c: 01 00 00 0E 1F 2D [18:46:34]Write i2c OK [18:46:34]MH_I2C_Read... [18:46:34]Read from MH i2c: 01 [18:46:34]MH_I2C_Read... [18:46:34]Read from MH i2c: 01 07 00 [18:46:34]MH_I2C_Read... [18:46:34]Read from MH i2c: 01 07 00 0E 1F 00 00 00 00 00 FF 0F 42 [18:46:34]RasterBufferAndPrint [18:46:34]line Счет N : (1)507612 [18:46:34]line ИНН: 02508201610067 [18:46:34]line Контрольно-Кассовый Чек [18:46:34]line ПРОДАЖА [18:46:34]line ТРК (МРК, ГНК) : 31 [18:46:34]line Товар: 2710194210 [18:46:34]line ДТ-К-5 [18:46:34]line 10.710 * 74.70 [18:46:34]line = 800.04 [18:46:34]line НДС 12% НСП 1% [18:46:34]line > о реализуемом товаре [18:46:34]line ОКРУГЛЕНИЕ: -0.04 [18:46:34]line ИТОГО: 800.00 [18:46:34]line Внесено: 800.00 [18:46:34]line СДАЧА: 0.00 [18:46:34]line НСП 1% : 7.08 [18:46:34]line НДС 12% : 84.96 [18:46:34]line Наличными: 800.00 [18:46:34]line Безнал.: 0.00 [18:46:34]line Место: АЗС № 91 "Партнер Нефть" [18:46:34]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:46:34]line СНО: Общий режим [18:46:34]line Чек 148 16.05.2024 18:46 [18:46:34]line Смена: 357 ФФД: 1.0 [18:46:34]line ЗНМ: 0300000119 [18:46:34]line РНМ: 0000000000091845 [18:46:34]line Версия ККМ: 001 [18:46:34]line ФМ: 0000000000871829 [18:46:34]line ФД: 67550 [18:46:34]line ФПД: 97554683706088 [18:46:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T184635&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67550&fm=97554683706088&tin=02508201610067®Number=0000000000091845&sum=80000 [18:46:35]OFD Sender: Processing packet 67550 [packets to send 35, broken 34] [18:46:35]ProducePacketName [18:46:35]name=ofd_packets/00067550 [18:46:35]OFD Sender: To server: pG, [18:46:35]CommunicateWithHost lk.salyk.kg:30040 [18:46:35]ConnectInit lk.salyk.kg [18:46:35]written 0, free lines is 4095 [18:46:35]Connected sock=10 [18:46: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 38 32 39 0C 01 00 00 8C 30 04 01 15 7E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 29 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 84 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 30 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 94 00 00 00 F4 03 04 00 8B 54 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DE 07 01 00 35 04 06 00 58 B9 B8 44 BA E8 C0 53 6D 17 43 C8 4C 0C [18:46:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 AC CD 47 00 9F 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 38 32 39 10 04 04 00 DE 07 01 00 F4 03 04 00 65 FC 45 66 B6 04 01 00 00 E0 2E 69 1B BC 68 41 A3 [18:46:35]CommunicateWithHost err = 0 [18:46:35]CheckOFDResponse [18:46:35]1017 (14) - 77093643461234 [18:46:35]1041 (16) - 0000000000871829 [18:46:35]1040 (4) - 67550 [18:46:35]1012 (4) - 16.05.2024 12:30 [18:46:35]1206 (1) - 0 [18:46:35]OFD Sender: Remove packet 67550 [18:46:35]ProducePacketName [18:46:35]name=ofd_packets/00067550 [18:46:35]NVStorageDeleteData [18:46:35]Write to MH i2c: 01 00 00 38 1F 57 [18:46:35]Write i2c OK [18:46:35]MH_I2C_Read... [18:46:35]Read from MH i2c: 01 [18:46:35]MH_I2C_Read... [18:46:35]Read from MH i2c: 01 07 00 [18:46:35]MH_I2C_Read... [18:46:35]Read from MH i2c: 01 07 00 38 1F 00 00 00 00 00 C8 0C 32 [18:46:35]RasterBufferAndPrint [18:46:35]line [18:46:35]line [18:46:35]line [18:46:35]line [18:46:35]line [18:46:35]written 0, free lines is 3278 [18:46:35]MH_Cut [18:46:35]Write to MH i2c: D1 01 00 3F 1F 01 30 [18:46:35]Write i2c OK [18:46:35]MH_I2C_Read... [18:46:35]Read from MH i2c: D1 [18:46:35]MH_I2C_Read... [18:46:35]Read from MH i2c: D1 01 00 [18:46:35]MH_I2C_Read... [18:46:35]Read from MH i2c: D1 01 00 3F 1F 00 2F [18:46:35]Write to MH i2c: 01 00 00 40 1F 5F [18:46:35]Write i2c OK [18:46:35]MH_I2C_Read... [18:46:35]OFD Sender: No OFD packet to send [18:46:36]*** Cut start [18:46:36]*** Purtial cut [18:46:36]*** Stage 1: CUTSNS_PIN = 1 [18:46:36]Read from MH i2c: 01 [18:46:36]MH_I2C_Read... [18:46:36]*** Stop cut motor [18:46:36]*** Cut end [18:46:36]Read from MH i2c: 01 07 00 [18:46:36]MH_I2C_Read... [18:46:36]Read from MH i2c: 01 07 00 40 1F 00 00 00 00 00 FF 0F 74 [18:46:36]process_action close_receipt done [18:46:36]requested_data is exist [18:46:36]produce_requested_data [18:46:36]requested_item fm.sn is exist - process it [18:46:36]wFMCommunicate request_size=4 [18:46:36]MH_SAM_APDU [18:46:36]CAPDU: 80 11 00 00 [18:46:36]Write to MH i2c: E2 08 00 41 1F 80 11 00 00 00 00 00 00 DA [18:46:36]Write i2c OK [18:46:36]MH_I2C_Read... [18:46:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:36]Read from MH i2c: E2 [18:46:36]MH_I2C_Read... [18:46:36]Read from MH i2c: E2 17 00 [18:46:36]MH_I2C_Read... [18:46:36]Read from MH i2c: E2 17 00 41 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 30 [18:46:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:46:36]wFMCommunicate OK [18:46:36]requested_item fd.num is exist - process it [18:46:36]SAM_PROTO_GetFieldsCounters [18:46:36]wFMCommunicate request_size=4 [18:46:36]MH_SAM_APDU [18:46:36]CAPDU: 80 13 00 00 [18:46:36]Write to MH i2c: E2 08 00 42 1F 80 13 00 00 00 00 00 00 DD [18:46:36]Write i2c OK [18:46:36]MH_I2C_Read... [18:46:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:46:36]Read from MH i2c: E2 [18:46:36]MH_I2C_Read... [18:46:36]Read from MH i2c: E2 62 00 [18:46:36]MH_I2C_Read... [18:46:36]Read from MH i2c: E2 62 00 42 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 DE 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [18:46: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 DE 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:46:36]wFMCommunicate OK [18:46:36]SAM_PROTO_GetFieldsCounters done [18:46:36]requested_item shift.num is exist - process it [18:46:36]requested_item shift.opened is exist - process it [18:46:36]req_shift_opened [18:46:36]FM_GetShiftState [18:46:36]SAM_PROTO_GetShiftState [18:46:36]wFMCommunicate request_size=4 [18:46:36]MH_SAM_APDU [18:46:36]CAPDU: 80 13 01 00 [18:46:36]Write to MH i2c: E2 08 00 43 1F 80 13 01 00 00 00 00 00 DF [18:46:36]Write i2c OK [18:46:36]MH_I2C_Read... [18:46:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:36]Read from MH i2c: E2 [18:46:36]MH_I2C_Read... [18:46:36]Read from MH i2c: E2 0E 00 [18:46:36]MH_I2C_Read... [18:46:36]Read from MH i2c: E2 0E 00 43 1F 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 8B [18:46:36]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [18:46:36]wFMCommunicate OK [18:46:36]SAM_PROTO_GetShiftState done [18:46:36]FM_GetShiftState done [18:46:36]req_shift_opened done [18:46:36]requested_item shift.open_date is exist - process it [18:46:36]req_shift_open_date [18:46:36]req_shift_open_date done [18:46:36]produce_requested_data done [18:46:36]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67550,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [18:46:36]process_action_free close_receipt [18:46:36]json_value_free [18:46:36]json_value_free done [18:46:36]process_json_proto returns [18:46:36]Send response to host [18:46:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67550,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [18:46:36]free response buf [18:46:36]execute_script done [18:46:36]execute_script returns [18:46:36]free content buf [18:46:36]Sock 8.Close socket [18:46:36]Sock 8.Thread stoped [18:46:40]OFD Sender: No OFD packet to send [18:46:45]OFD Sender: No OFD packet to send [18:46:50]OFD Sender: No OFD packet to send [18:46:55]OFD Sender: No OFD packet to send [18:47:00]OFD Sender: No OFD packet to send [18:47:05]OFD Sender: No OFD packet to send [18:47:10]OFD Sender: No OFD packet to send [18:47:15]OFD Sender: No OFD packet to send [18:47:20]OFD Sender: No OFD packet to send [18:47:25]OFD Sender: No OFD packet to send [18:47:30]OFD Sender: No OFD packet to send [18:47:32]accept exits with 9 [18:47:32]New connection [18:47:32]New thread 3067182436 created [18:47:32]Thread 3067039076 joined [18:47:32]Waiting for new connection... [18:47:32] Sock 9.Parse request [18:47:32]Sock 9.Check first char [18:47:32]Sock 9.First char is OK [18:47:32]request: POST /json_proto HTTP/1.0 [18:47:32]Method: POST [18:47:32]URL: /json_proto [18:47:32]Method is POST - this is cgi request [18:47:32]url: /json_proto [18:47:32]query_string will be loaded in cgi processing [18:47:32]execute_cgi json_proto POST (null) [18:47:32]execute_cgi path=json_proto method=POST [18:47:32]POST find Content-Length [18:47:32]Host: 172.17.41.195:8080 [18:47:32]Content-Length: 675 [18:47:32]Content-Type: application/json [18:47:32] [18:47:32]POST finish read [18:47:32]Found Content-Length = 675 [18:47:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507613", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:47:32]execute_script... [18: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)507613", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:47:32]POST & json_proto [18:47:32]process_json_proto [18:47:32]json parsed OK: [18:47:32]protocol is kg_v1.0 [18:47:32]action value=close_receipt [18:47:32]process_action close_receipt [18:47:32]cmd_close_receipt [18:47:32]MH_GetDate [18:47:32]Write to MH i2c: F0 00 00 44 1F 52 [18:47:32]Write i2c OK [18:47:32]MH_I2C_Read... [18:47:32]Read from MH i2c: F0 [18:47:32]MH_I2C_Read... [18:47:32]Read from MH i2c: F0 09 00 [18:47:32]MH_I2C_Read... [18:47:32]Read from MH i2c: F0 09 00 44 1F 00 C6 54 46 66 FC 21 6F 64 11 [18:47:32]GetLastDocTimeStamp 1715885195 [18:47:32]current date 1715885254 [18:47:32]FM_GetShiftState [18:47:32]SAM_PROTO_GetShiftState [18:47:32]wFMCommunicate request_size=4 [18:47:32]MH_SAM_APDU [18:47:32]CAPDU: 80 13 01 00 [18:47:32]Write to MH i2c: E2 08 00 45 1F 80 13 01 00 00 00 00 00 E1 [18:47:32]Write i2c OK [18:47:32]MH_I2C_Read... [18:47:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:32]Read from MH i2c: E2 [18:47:32]MH_I2C_Read... [18:47:32]Read from MH i2c: E2 0E 00 [18:47:32]MH_I2C_Read... [18:47:32]Read from MH i2c: E2 0E 00 45 1F 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 8D [18:47:32]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [18:47:32]wFMCommunicate OK [18:47:32]SAM_PROTO_GetShiftState done [18:47:32]FM_GetShiftState done [18:47:32]opened in 1715818916 [18:47:32]opened+sec_in_day 1715905316 [18:47:32]quantity*price = 100005 [18:47:32]sum+1 = 100006 [18:47:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 149 16.05.2024 18:47 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67551 ФПД: 89683813038233 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T184734&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67551&fm=89683813038233&tin=02508201610067®Number=0000000000091845&sum=100000 [18:47:33]StoreToDocumentArchive [18:47:33]shift 357 fd 67551 [18:47:33]save to /storage/0357/doc_00067551 [18:47:33]save last doc name /storage/0357/doc_00067551 to /storage/kkm_last_doc_name [18:47:33]save OK [18:47:33]Clear old archive folders... [18:47:33]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:47:33]tlvbuf is B6EE00F0 [18:47:33]SAM_PROTO_ClearQueue [18:47:33]wFMCommunicate request_size=4 [18:47:33]MH_SAM_APDU [18:47:33]CAPDU: 80 09 00 00 [18:47:33]Write to MH i2c: E2 08 00 52 1F 80 09 00 00 00 00 00 00 E3 [18:47:33]Write i2c OK [18:47:33]MH_I2C_Read... [18:47:33]Read from MH i2c: E2 [18:47:33]MH_I2C_Read... [18:47:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:47:33]Read from MH i2c: E2 03 00 [18:47:33]MH_I2C_Read... [18:47:33]Read from MH i2c: E2 03 00 52 1F 00 90 00 E5 [18:47:33]RAPDU: 90 00 [18:47:33]wFMCommunicate OK [18:47:33]SAM_PROTO_ClearQueue done [18:47:33]KKMCreateOFDPacket [18:47:33]OFDProtocolAddRootSTLVToBuf [18:47:33]FM_MakeSignedData [18:47:33]FM_MakeSignedData [18:47:33]SAM_PROTO_SignData [18:47:33]wFMCommunicate request_size=4 [18:47:33]MH_SAM_APDU [18:47:33]CAPDU: 80 0D 01 02 [18:47:33]Write to MH i2c: E2 08 00 53 1F 80 0D 01 02 00 00 00 00 EB [18:47:33]Write i2c OK [18:47:33]MH_I2C_Read... [18:47:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:47:33]Read from MH i2c: E2 [18:47:33]MH_I2C_Read... [18:47:33]Read from MH i2c: E2 03 00 [18:47:33]MH_I2C_Read... [18:47:33]Read from MH i2c: E2 03 00 53 1F 00 90 00 E6 [18:47:33]RAPDU: 90 00 [18:47:33]wFMCommunicate OK [18:47:33]wFMCommunicate request_size=255 [18:47:33]MH_SAM_APDU [18:47:33]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 C6 54 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DF 07 01 00 35 04 06 00 [18:47:33]Write to MH i2c: E2 02 01 54 1F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 C6 54 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DF 07 01 00 35 04 06 00 00 00 D0 [18:47:33]Write i2c OK [18:47:33]MH_I2C_Read... [18:47:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:33]Read from MH i2c: E2 [18:47:33]MH_I2C_Read... [18:47:33]Read from MH i2c: E2 03 00 [18:47:33]MH_I2C_Read... [18:47:33]Read from MH i2c: E2 03 00 54 1F 00 90 00 E7 [18:47:33]RAPDU: 90 00 [18:47:33]wFMCommunicate OK [18:47:33]wFMCommunicate request_size=11 [18:47:33]MH_SAM_APDU [18:47:33]CAPDU: 80 0D 02 02 06 51 91 23 D1 78 99 [18:47:33]Write to MH i2c: E2 0E 00 55 1F 80 0D 02 02 06 00 51 91 23 D1 78 99 00 00 E1 [18:47:33]Write i2c OK [18:47:33]MH_I2C_Read... [18:47:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:33]Read from MH i2c: E2 [18:47:33]MH_I2C_Read... [18:47:33]Read from MH i2c: E2 03 00 [18:47:33]MH_I2C_Read... [18:47:33]Read from MH i2c: E2 03 00 55 1F 00 90 00 E8 [18:47:33]RAPDU: 90 00 [18:47:33]wFMCommunicate OK [18:47:33]wFMCommunicate request_size=4 [18:47:33]MH_SAM_APDU [18:47:33]CAPDU: 80 0D 03 02 [18:47:33]Write to MH i2c: E2 08 00 56 1F 80 0D 03 02 00 00 00 00 F0 [18:47:33]Write i2c OK [18:47:33]MH_I2C_Read... [18:47:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:47:33]Read from MH i2c: E2 [18:47:33]MH_I2C_Read... [18:47:33]Read from MH i2c: E2 0B 00 [18:47:33]MH_I2C_Read... [18:47:33]Read from MH i2c: E2 0B 00 56 1F 00 17 4D 5C D3 0B 8E 0D 96 90 00 C0 [18:47:33]RAPDU: 17 4D 5C D3 0B 8E 0D 96 90 00 [18:47:33]wFMCommunicate OK [18:47:33]SAM_PROTO_SignData done [18:47:33]FM_MakeSignedData done [18:47:33]CreateOFDProtocolMessage [18:47:33]wFMCommunicate request_size=4 [18:47:33]MH_SAM_APDU [18:47:33]CAPDU: 80 11 00 00 [18:47:33]Write to MH i2c: E2 08 00 57 1F 80 11 00 00 00 00 00 00 F0 [18:47:33]Write i2c OK [18:47:33]MH_I2C_Read... [18:47:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:33]Read from MH i2c: E2 [18:47:33]MH_I2C_Read... [18:47:33]Read from MH i2c: E2 17 00 [18:47:33]MH_I2C_Read... [18:47:33]Read from MH i2c: E2 17 00 57 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 46 [18:47:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:47:33]wFMCommunicate OK [18:47:33]CreateOFDProtocolMessage done [18:47:33]OFDSenderStorePacket 67551 [18:47:33]StoreOFDPacket docnum=67551 [18:47:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 86 80 08 01 29 2F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 C6 54 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DF 07 01 00 35 04 06 00 51 91 23 D1 78 99 17 4D 5C D3 0B 8E 0D 96 [18:47:33]CheckFolder [18:47:33]dirname=/storage/ofd_packets [18:47:33]CheckFolder done [18:47:33]ProducePacketName [18:47:33]name=ofd_packets/00067551 [18:47:33]NVStorageSaveData ofd_packets/00067551 [18:47:33]File name is /storage/ofd_packets/00067551 [18:47:33]Write 302 bytes [18:47:33]NVStorageSaveData done [18:47:33]OFDSenderStorePacket done [18:47:33]KKMCreateOFDPacket done [18:47:33]NVStorageSaveData kkm_last_timestamp [18:47:33]File name is /storage/kkm_last_timestamp [18:47:33]Write 4 bytes [18:47:33]NVStorageSaveData done [18:47:33]ExternCall_PrintAddStr [18:47:33]wPrintStart [18:47:33]Write to MH i2c: 01 00 00 58 1F 77 [18:47:33]Write i2c OK [18:47:33]MH_I2C_Read... [18:47:33]Read from MH i2c: 01 [18:47:33]MH_I2C_Read... [18:47:33]Read from MH i2c: 01 07 00 [18:47:33]MH_I2C_Read... [18:47:33]Read from MH i2c: 01 07 00 58 1F 00 00 00 00 00 FF 0F 8C [18:47:33]RasterBufferAndPrint [18:47:33]line Счет N : (1)507613 [18:47:33]line ИНН: 02508201610067 [18:47:33]line Контрольно-Кассовый Чек [18:47:33]line ПРОДАЖА [18:47:33]line ТРК (МРК, ГНК) : 12 [18:47:33]line Товар: 2710124130 [18:47:33]line Super-92-К-5 [18:47:33]line 14.750 * 67.80 [18:47:33]line = 1000.05 [18:47:33]line НДС 12% НСП 1% [18:47:33]line > о реализуемом товаре [18:47:33]line ОКРУГЛЕНИЕ: -0.05 [18:47:33]line ИТОГО: 1000.00 [18:47:33]line Внесено: 1000.00 [18:47:33]line СДАЧА: 0.00 [18:47:33]line НСП 1% : 8.85 [18:47:33]line НДС 12% : 106.20 [18:47:33]line Наличными: 1000.00 [18:47:33]line Безнал.: 0.00 [18:47:33]line Место: АЗС № 91 "Партнер Нефть" [18:47:33]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:47:33]line СНО: Общий режим [18:47:33]line Чек 149 16.05.2024 18:47 [18:47:33]line Смена: 357 ФФД: 1.0 [18:47:33]line ЗНМ: 0300000119 [18:47:33]line РНМ: 0000000000091845 [18:47:33]line Версия ККМ: 001 [18:47:33]line ФМ: 0000000000871829 [18:47:33]line ФД: 67551 [18:47:33]line ФПД: 89683813038233 [18:47:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T184734&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67551&fm=89683813038233&tin=02508201610067®Number=0000000000091845&sum=100000 [18:47:34]OFD Sender: Processing packet 67551 [packets to send 35, broken 34] [18:47:34]ProducePacketName [18:47:34]name=ofd_packets/00067551 [18:47:34]OFD Sender: To server: pG, [18:47:34]CommunicateWithHost lk.salyk.kg:30040 [18:47:34]ConnectInit lk.salyk.kg [18:47:34]written 0, free lines is 4095 [18:47:34]Connected sock=10 [18: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 38 32 39 10 01 00 00 86 80 08 01 29 2F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 C6 54 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DF 07 01 00 35 04 06 00 51 91 23 D1 78 99 17 4D 5C D3 0B 8E 0D 96 [18:47:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 4D 97 47 00 4A 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 38 32 39 10 04 04 00 DF 07 01 00 F4 03 04 00 A0 FC 45 66 B6 04 01 00 00 22 51 87 2D 52 56 E6 7B [18:47:34]CommunicateWithHost err = 0 [18:47:34]CheckOFDResponse [18:47:34]1017 (14) - 77093643461234 [18:47:34]1041 (16) - 0000000000871829 [18:47:34]1040 (4) - 67551 [18:47:34]1012 (4) - 16.05.2024 12:31 [18:47:34]1206 (1) - 0 [18:47:34]OFD Sender: Remove packet 67551 [18:47:34]ProducePacketName [18:47:34]name=ofd_packets/00067551 [18:47:34]NVStorageDeleteData [18:47:34]Write to MH i2c: 01 00 00 82 1F A1 [18:47:34]Write i2c OK [18:47:34]MH_I2C_Read... [18:47:34]Read from MH i2c: 01 [18:47:34]MH_I2C_Read... [18:47:34]Read from MH i2c: 01 07 00 [18:47:34]MH_I2C_Read... [18:47:34]Read from MH i2c: 01 07 00 82 1F 00 00 00 00 00 C8 0C 7C [18:47:34]RasterBufferAndPrint [18:47:34]line [18:47:34]line [18:47:34]line [18:47:34]line [18:47:34]line [18:47:34]written 0, free lines is 3278 [18:47:34]MH_Cut [18:47:34]Write to MH i2c: D1 01 00 89 1F 01 7A [18:47:34]Write i2c OK [18:47:34]MH_I2C_Read... [18:47:34]Read from MH i2c: D1 [18:47:34]MH_I2C_Read... [18:47:34]Read from MH i2c: D1 01 00 [18:47:34]MH_I2C_Read... [18:47:34]Read from MH i2c: D1 01 00 89 1F 00 79 [18:47:34]Write to MH i2c: 01 00 00 8A 1F A9 [18:47:34]Write i2c OK [18:47:34]MH_I2C_Read... [18:47:34]OFD Sender: No OFD packet to send [18:47:35]*** Cut start [18:47:35]*** Purtial cut [18:47:35]*** CUTSNS_PIN = 0 [18:47:35]*** Stage 1: CUTSNS_PIN = 1 [18:47:37]Read from MH i2c: 01 [18:47:37]MH_I2C_Read... [18:47:37]*** Stop cut motor [18:47:37]*** Cut end [18:47:37]Read from MH i2c: 01 07 00 [18:47:37]MH_I2C_Read... [18:47:37]Read from MH i2c: 01 07 00 8A 1F 00 00 00 00 00 FF 0F BE [18:47:37]process_action close_receipt done [18:47:37]requested_data is exist [18:47:37]produce_requested_data [18:47:37]requested_item fm.sn is exist - process it [18:47:37]wFMCommunicate request_size=4 [18:47:37]MH_SAM_APDU [18:47:37]CAPDU: 80 11 00 00 [18:47:37]Write to MH i2c: E2 08 00 8B 1F 80 11 00 00 00 00 00 00 24 [18:47:37]Write i2c OK [18:47:37]MH_I2C_Read... [18:47:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:37]Read from MH i2c: E2 [18:47:37]MH_I2C_Read... [18:47:37]Read from MH i2c: E2 17 00 [18:47:37]MH_I2C_Read... [18:47:37]Read from MH i2c: E2 17 00 8B 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7A [18:47:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:47:37]wFMCommunicate OK [18:47:37]requested_item fd.num is exist - process it [18:47:37]SAM_PROTO_GetFieldsCounters [18:47:37]wFMCommunicate request_size=4 [18:47:37]MH_SAM_APDU [18:47:37]CAPDU: 80 13 00 00 [18:47:37]Write to MH i2c: E2 08 00 8C 1F 80 13 00 00 00 00 00 00 27 [18:47:37]Write i2c OK [18:47:37]MH_I2C_Read... [18:47:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:47:37]Read from MH i2c: E2 [18:47:37]MH_I2C_Read... [18:47:37]Read from MH i2c: E2 62 00 [18:47:37]MH_I2C_Read... [18:47:37]Read from MH i2c: E2 62 00 8C 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 DF 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [18:47: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 DF 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:47:37]wFMCommunicate OK [18:47:37]SAM_PROTO_GetFieldsCounters done [18:47:37]requested_item shift.num is exist - process it [18:47:37]requested_item shift.opened is exist - process it [18:47:37]req_shift_opened [18:47:37]FM_GetShiftState [18:47:37]SAM_PROTO_GetShiftState [18:47:37]wFMCommunicate request_size=4 [18:47:37]MH_SAM_APDU [18:47:37]CAPDU: 80 13 01 00 [18:47:37]Write to MH i2c: E2 08 00 8D 1F 80 13 01 00 00 00 00 00 29 [18:47:37]Write i2c OK [18:47:37]MH_I2C_Read... [18:47:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:37]Read from MH i2c: E2 [18:47:37]MH_I2C_Read... [18:47:37]Read from MH i2c: E2 0E 00 [18:47:37]MH_I2C_Read... [18:47:37]Read from MH i2c: E2 0E 00 8D 1F 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 D5 [18:47:37]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [18:47:37]wFMCommunicate OK [18:47:37]SAM_PROTO_GetShiftState done [18:47:37]FM_GetShiftState done [18:47:37]req_shift_opened done [18:47:37]requested_item shift.open_date is exist - process it [18:47:37]req_shift_open_date [18:47:37]req_shift_open_date done [18:47:37]produce_requested_data done [18:47:37]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67551,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [18:47:37]process_action_free close_receipt [18:47:37]json_value_free [18:47:37]json_value_free done [18:47:37]process_json_proto returns [18:47:37]Send response to host [18:47:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67551,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [18:47:37]free response buf [18:47:37]execute_script done [18:47:37]execute_script returns [18:47:37]free content buf [18:47:37]Sock 9.Close socket [18:47:37]Sock 9.Thread stoped [18:47:39]OFD Sender: No OFD packet to send [18:47:44]OFD Sender: No OFD packet to send [18:47:49]OFD Sender: No OFD packet to send [18:47:54]OFD Sender: No OFD packet to send [18:47:59]OFD Sender: No OFD packet to send [18:48:04]OFD Sender: No OFD packet to send [18:48:09]OFD Sender: No OFD packet to send [18:48:14]OFD Sender: No OFD packet to send [18:48:19]OFD Sender: No OFD packet to send [18:48:24]OFD Sender: No OFD packet to send [18:48:29]OFD Sender: No OFD packet to send [18:48:34]OFD Sender: No OFD packet to send [18:48:39]OFD Sender: No OFD packet to send [18:48:45]OFD Sender: No OFD packet to send [18:48:50]OFD Sender: No OFD packet to send [18:48:55]OFD Sender: No OFD packet to send [18:49:00]OFD Sender: No OFD packet to send [18:49:05]OFD Sender: No OFD packet to send [18:49:10]OFD Sender: No OFD packet to send [18:49:15]OFD Sender: No OFD packet to send [18:49:20]OFD Sender: No OFD packet to send [18:49:25]OFD Sender: No OFD packet to send [18:49:30]OFD Sender: No OFD packet to send [18:49:35]OFD Sender: No OFD packet to send [18:49:40]OFD Sender: No OFD packet to send [18:49:45]OFD Sender: No OFD packet to send [18:49:50]OFD Sender: No OFD packet to send [18:49:55]OFD Sender: No OFD packet to send [18:50:00]OFD Sender: No OFD packet to send [18:50:05]OFD Sender: No OFD packet to send [18:50:10]OFD Sender: No OFD packet to send [18:50:15]OFD Sender: No OFD packet to send [18:50:20]OFD Sender: No OFD packet to send [18:50: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:49]accept exits with 8 [18:50:49]New connection [18:50:49]New thread 3067039076 created [18:50:49]Thread 3067182436 joined [18:50:49]Waiting for new connection... [18:50:49] Sock 8.Parse request [18:50:49]Sock 8.Check first char [18:50:49]Sock 8.First char is OK [18:50:49]request: POST /json_proto HTTP/1.0 [18:50:49]Method: POST [18:50:49]URL: /json_proto [18:50:49]Method is POST - this is cgi request [18:50:49]url: /json_proto [18:50:49]query_string will be loaded in cgi processing [18:50:49]execute_cgi json_proto POST (null) [18:50:49]execute_cgi path=json_proto method=POST [18:50:49]POST find Content-Length [18:50:49]Host: 172.17.41.195:8080 [18:50:49]Content-Length: 800 [18:50:49]Content-Type: application/json [18:50:49] [18:50:49]POST finish read [18:50:49]Found Content-Length = 800 [18:50:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507614", "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" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:50:49]execute_script... [18:50:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507614", "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" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:50:49]POST & json_proto [18:50:49]process_json_proto [18:50:49]json parsed OK: [18:50:49]protocol is kg_v1.0 [18:50:49]action value=close_receipt [18:50:49]process_action close_receipt [18:50:49]cmd_close_receipt [18:50:49]MH_GetDate [18:50:49]Write to MH i2c: F0 00 00 8E 1F 9C [18:50:49]Write i2c OK [18:50:49]MH_I2C_Read... [18:50:49]Read from MH i2c: F0 [18:50:49]MH_I2C_Read... [18:50:49]Read from MH i2c: F0 09 00 [18:50:49]MH_I2C_Read... [18:50:49]Read from MH i2c: F0 09 00 8E 1F 00 8B 55 46 66 FC 21 6F 64 21 [18:50:49]GetLastDocTimeStamp 1715885254 [18:50:49]current date 1715885451 [18:50:49]FM_GetShiftState [18:50:49]SAM_PROTO_GetShiftState [18:50:49]wFMCommunicate request_size=4 [18:50:49]MH_SAM_APDU [18:50:49]CAPDU: 80 13 01 00 [18:50:49]Write to MH i2c: E2 08 00 8F 1F 80 13 01 00 00 00 00 00 2B [18:50:49]Write i2c OK [18:50:49]MH_I2C_Read... [18:50:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:49]Read from MH i2c: E2 [18:50:49]MH_I2C_Read... [18:50:49]Read from MH i2c: E2 0E 00 [18:50:49]MH_I2C_Read... [18:50:49]Read from MH i2c: E2 0E 00 8F 1F 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 D7 [18:50:49]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [18:50:49]wFMCommunicate OK [18:50:49]SAM_PROTO_GetShiftState done [18:50:49]FM_GetShiftState done [18:50:49]opened in 1715818916 [18:50:49]opened+sec_in_day 1715905316 [18:50:49]quantity*price = 100023 [18:50:49]sum+1 = 100024 [18:50:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.23 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.23 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 150 16.05.2024 18:50 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67552 ФПД: 211759208006341 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T185051&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67552&fm=211759208006341&tin=02508201610067®Number=0000000000091845&sum=100023 [18:50:50]StoreToDocumentArchive [18:50:50]shift 357 fd 67552 [18:50:50]save to /storage/0357/doc_00067552 [18:50:50]save last doc name /storage/0357/doc_00067552 to /storage/kkm_last_doc_name [18:50:50]save OK [18:50:50]Clear old archive folders... [18:50:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:50:50]tlvbuf is 01818650 [18:50:50]SAM_PROTO_ClearQueue [18:50:50]wFMCommunicate request_size=4 [18:50:50]MH_SAM_APDU [18:50:50]CAPDU: 80 09 00 00 [18:50:50]Write to MH i2c: E2 08 00 9C 1F 80 09 00 00 00 00 00 00 2D [18:50:50]Write i2c OK [18:50:50]MH_I2C_Read... [18:50:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:50:50]Read from MH i2c: E2 [18:50:50]MH_I2C_Read... [18:50:50]Read from MH i2c: E2 03 00 [18:50:50]MH_I2C_Read... [18:50:50]Read from MH i2c: E2 03 00 9C 1F 00 90 00 2F [18:50:50]RAPDU: 90 00 [18:50:50]wFMCommunicate OK [18:50:50]SAM_PROTO_ClearQueue done [18:50:50]KKMCreateOFDPacket [18:50:50]OFDProtocolAddRootSTLVToBuf [18:50:50]FM_MakeSignedData [18:50:50]FM_MakeSignedData [18:50:50]SAM_PROTO_SignData [18:50:50]wFMCommunicate request_size=4 [18:50:50]MH_SAM_APDU [18:50:50]CAPDU: 80 0D 01 02 [18:50:50]Write to MH i2c: E2 08 00 9D 1F 80 0D 01 02 00 00 00 00 35 [18:50:50]Write i2c OK [18:50:50]MH_I2C_Read... [18:50:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:50:50]Read from MH i2c: E2 [18:50:50]MH_I2C_Read... [18:50:50]Read from MH i2c: E2 03 00 [18:50:50]MH_I2C_Read... [18:50:50]Read from MH i2c: E2 03 00 9D 1F 00 90 00 30 [18:50:50]RAPDU: 90 00 [18:50:50]wFMCommunicate OK [18:50:50]wFMCommunicate request_size=255 [18:50:50]MH_SAM_APDU [18:50:50]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 8B 55 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E0 07 01 00 35 04 06 00 C0 98 08 5F [18:50:50]Write to MH i2c: E2 02 01 9E 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 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 8B 55 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E0 07 01 00 35 04 06 00 C0 98 08 5F 00 00 6C [18:50:50]Write i2c OK [18:50:50]MH_I2C_Read... [18:50:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:50]Read from MH i2c: E2 [18:50:50]MH_I2C_Read... [18:50:50]Read from MH i2c: E2 03 00 [18:50:50]MH_I2C_Read... [18:50:50]Read from MH i2c: E2 03 00 9E 1F 00 90 00 31 [18:50:50]RAPDU: 90 00 [18:50:50]wFMCommunicate OK [18:50:50]wFMCommunicate request_size=7 [18:50:50]MH_SAM_APDU [18:50:50]CAPDU: 80 0D 02 02 02 02 C5 [18:50:50]Write to MH i2c: E2 0A 00 9F 1F 80 0D 02 02 02 00 02 C5 00 00 03 [18:50:50]Write i2c OK [18:50:50]MH_I2C_Read... [18:50:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:50]Read from MH i2c: E2 [18:50:50]MH_I2C_Read... [18:50:50]Read from MH i2c: E2 03 00 [18:50:50]MH_I2C_Read... [18:50:50]Read from MH i2c: E2 03 00 9F 1F 00 90 00 32 [18:50:50]RAPDU: 90 00 [18:50:50]wFMCommunicate OK [18:50:50]wFMCommunicate request_size=4 [18:50:50]MH_SAM_APDU [18:50:50]CAPDU: 80 0D 03 02 [18:50:50]Write to MH i2c: E2 08 00 A0 1F 80 0D 03 02 00 00 00 00 3A [18:50:50]Write i2c OK [18:50:50]MH_I2C_Read... [18:50:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:50:50]Read from MH i2c: E2 [18:50:50]MH_I2C_Read... [18:50:50]Read from MH i2c: E2 0B 00 [18:50:50]MH_I2C_Read... [18:50:50]Read from MH i2c: E2 0B 00 A0 1F 00 95 17 A5 7C BB FD CF 3A 90 00 C9 [18:50:50]RAPDU: 95 17 A5 7C BB FD CF 3A 90 00 [18:50:50]wFMCommunicate OK [18:50:50]SAM_PROTO_SignData done [18:50:50]FM_MakeSignedData done [18:50:50]CreateOFDProtocolMessage [18:50:50]wFMCommunicate request_size=4 [18:50:50]MH_SAM_APDU [18:50:50]CAPDU: 80 11 00 00 [18:50:50]Write to MH i2c: E2 08 00 A1 1F 80 11 00 00 00 00 00 00 3A [18:50:50]Write i2c OK [18:50:50]MH_I2C_Read... [18:50:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:50]Read from MH i2c: E2 [18:50:50]MH_I2C_Read... [18:50:50]Read from MH i2c: E2 17 00 [18:50:50]MH_I2C_Read... [18:50:50]Read from MH i2c: E2 17 00 A1 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 90 [18:50:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:50:50]wFMCommunicate OK [18:50:50]CreateOFDProtocolMessage done [18:50:50]OFDSenderStorePacket 67552 [18:50:50]StoreOFDPacket docnum=67552 [18:50:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 53 C2 04 01 3C 26 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 8B 55 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E0 07 01 00 35 04 06 00 C0 98 08 5F 02 C5 95 17 A5 7C BB FD CF 3A [18:50:50]CheckFolder [18:50:50]dirname=/storage/ofd_packets [18:50:50]CheckFolder done [18:50:50]ProducePacketName [18:50:50]name=ofd_packets/00067552 [18:50:50]NVStorageSaveData ofd_packets/00067552 [18:50:50]File name is /storage/ofd_packets/00067552 [18:50:50]Write 298 bytes [18:50:50]NVStorageSaveData done [18:50:50]OFDSenderStorePacket done [18:50:50]KKMCreateOFDPacket done [18:50:50]NVStorageSaveData kkm_last_timestamp [18:50:50]File name is /storage/kkm_last_timestamp [18:50:50]Write 4 bytes [18:50:50]NVStorageSaveData done [18:50:50]ExternCall_PrintAddStr [18:50:50]wPrintStart [18:50:50]Write to MH i2c: 01 00 00 A2 1F C1 [18:50:50]Write i2c OK [18:50:50]MH_I2C_Read... [18:50:50]Read from MH i2c: 01 [18:50:50]MH_I2C_Read... [18:50:50]Read from MH i2c: 01 07 00 [18:50:50]MH_I2C_Read... [18:50:50]Read from MH i2c: 01 07 00 A2 1F 00 00 00 00 00 FF 0F D6 [18:50:50]RasterBufferAndPrint [18:50:50]line Счет N : (1)507614 [18:50:50]line ИНН: 02508201610067 [18:50:50]line Контрольно-Кассовый Чек [18:50:50]line ПРОДАЖА [18:50:50]line ТРК (МРК, ГНК) : 21 [18:50:50]line Товар: 2710194210 [18:50:50]line ДТ-К-5 [18:50:50]line 13.390 * 74.70 [18:50:50]line = 1000.23 [18:50:50]line НДС 12% НСП 1% [18:50:50]line > о реализуемом товаре [18:50:50]line ИТОГО: 1000.23 [18:50:50]line НСП 1% : 8.85 [18:50:50]line НДС 12% : 106.22 [18:50:50]line Наличными: 0.00 [18:50:50]line Безнал.: 1000.23 [18:50:50]line Место: АЗС № 91 "Партнер Нефть" [18:50:50]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:50:50]line СНО: Общий режим [18:50:50]line Чек 150 16.05.2024 18:50 [18:50:50]line Смена: 357 ФФД: 1.0 [18:50:50]line ЗНМ: 0300000119 [18:50:50]line РНМ: 0000000000091845 [18:50:50]line Версия ККМ: 001 [18:50:50]line Платежная система: O! деньги [18:50:50]line ФМ: 0000000000871829 [18:50:50]line ФД: 67552 [18:50:50]line ФПД: 211759208006341 [18:50:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T185051&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67552&fm=211759208006341&tin=02508201610067®Number=0000000000091845&sum=100023 [18:50:51]OFD Sender: Processing packet 67552 [packets to send 35, broken 34] [18:50:51]ProducePacketName [18:50:51]name=ofd_packets/00067552 [18:50:51]OFD Sender: To server: pG, [18:50:51]CommunicateWithHost lk.salyk.kg:30040 [18:50:51]ConnectInit lk.salyk.kg [18:50:51]written 0, free lines is 4095 [18:50:51]Connected sock=10 [18:50:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 53 C2 04 01 3C 26 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 8B 55 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E0 07 01 00 35 04 06 00 C0 98 08 5F 02 C5 95 17 A5 7C BB FD CF 3A [18:50:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 9A 1F 47 00 DF 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E0 07 01 00 F4 03 04 00 65 FD 45 66 B6 04 01 00 00 4B 43 A2 58 1A 3E C5 5C [18:50:51]CommunicateWithHost err = 0 [18:50:51]CheckOFDResponse [18:50:51]1017 (14) - 77093643461234 [18:50:51]1041 (16) - 0000000000871829 [18:50:51]1040 (4) - 67552 [18:50:51]1012 (4) - 16.05.2024 12:34 [18:50:51]1206 (1) - 0 [18:50:51]OFD Sender: Remove packet 67552 [18:50:51]ProducePacketName [18:50:51]name=ofd_packets/00067552 [18:50:51]NVStorageDeleteData [18:50:51]Write to MH i2c: 01 00 00 CB 1F EA [18:50:51]Write i2c OK [18:50:51]MH_I2C_Read... [18:50:51]Read from MH i2c: 01 [18:50:51]MH_I2C_Read... [18:50:51]Read from MH i2c: 01 07 00 [18:50:51]MH_I2C_Read... [18:50:51]Read from MH i2c: 01 07 00 CB 1F 00 00 00 00 00 D7 0C D4 [18:50:51]RasterBufferAndPrint [18:50:51]line [18:50:51]line [18:50:51]line [18:50:51]line [18:50:51]line [18:50:51]written 0, free lines is 3295 [18:50:51]MH_Cut [18:50:51]Write to MH i2c: D1 01 00 D2 1F 01 C3 [18:50:51]Write i2c OK [18:50:51]MH_I2C_Read... [18:50:51]Read from MH i2c: D1 [18:50:51]MH_I2C_Read... [18:50:51]Read from MH i2c: D1 01 00 [18:50:51]MH_I2C_Read... [18:50:51]Read from MH i2c: D1 01 00 D2 1F 00 C2 [18:50:51]Write to MH i2c: 01 00 00 D3 1F F2 [18:50:51]Write i2c OK [18:50:51]MH_I2C_Read... [18:50:52]OFD Sender: No OFD packet to send [18:50:52]*** Cut start [18:50:52]*** Purtial cut [18:50:52]*** Stage 1: CUTSNS_PIN = 1 [18:50:52]Read from MH i2c: 01 [18:50:52]MH_I2C_Read... [18:50:52]*** Stop cut motor [18:50:52]*** Cut end [18:50:52]Read from MH i2c: 01 07 00 [18:50:52]MH_I2C_Read... [18:50:52]Read from MH i2c: 01 07 00 D3 1F 00 00 00 00 00 FF 0F 07 [18:50:52]process_action close_receipt done [18:50:52]requested_data is exist [18:50:52]produce_requested_data [18:50:52]requested_item fm.sn is exist - process it [18:50:52]wFMCommunicate request_size=4 [18:50:52]MH_SAM_APDU [18:50:52]CAPDU: 80 11 00 00 [18:50:52]Write to MH i2c: E2 08 00 D4 1F 80 11 00 00 00 00 00 00 6D [18:50:52]Write i2c OK [18:50:52]MH_I2C_Read... [18:50:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:52]Read from MH i2c: E2 [18:50:52]MH_I2C_Read... [18:50:52]Read from MH i2c: E2 17 00 [18:50:52]MH_I2C_Read... [18:50:52]Read from MH i2c: E2 17 00 D4 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C3 [18:50:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:50:52]wFMCommunicate OK [18:50:52]requested_item fd.num is exist - process it [18:50:52]SAM_PROTO_GetFieldsCounters [18:50:52]wFMCommunicate request_size=4 [18:50:52]MH_SAM_APDU [18:50:52]CAPDU: 80 13 00 00 [18:50:52]Write to MH i2c: E2 08 00 D5 1F 80 13 00 00 00 00 00 00 70 [18:50:52]Write i2c OK [18:50:52]MH_I2C_Read... [18:50:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:50:53]Read from MH i2c: E2 [18:50:53]MH_I2C_Read... [18:50:53]Read from MH i2c: E2 62 00 [18:50:53]MH_I2C_Read... [18:50:53]Read from MH i2c: E2 62 00 D5 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E0 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [18:50:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E0 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:50:53]wFMCommunicate OK [18:50:53]SAM_PROTO_GetFieldsCounters done [18:50:53]requested_item shift.num is exist - process it [18:50:53]requested_item shift.opened is exist - process it [18:50:53]req_shift_opened [18:50:53]FM_GetShiftState [18:50:53]SAM_PROTO_GetShiftState [18:50:53]wFMCommunicate request_size=4 [18:50:53]MH_SAM_APDU [18:50:53]CAPDU: 80 13 01 00 [18:50:53]Write to MH i2c: E2 08 00 D6 1F 80 13 01 00 00 00 00 00 72 [18:50:53]Write i2c OK [18:50:53]MH_I2C_Read... [18:50:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:53]Read from MH i2c: E2 [18:50:53]MH_I2C_Read... [18:50:53]Read from MH i2c: E2 0E 00 [18:50:53]MH_I2C_Read... [18:50:53]Read from MH i2c: E2 0E 00 D6 1F 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 1E [18:50:53]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [18:50:53]wFMCommunicate OK [18:50:53]SAM_PROTO_GetShiftState done [18:50:53]FM_GetShiftState done [18:50:53]req_shift_opened done [18:50:53]requested_item shift.open_date is exist - process it [18:50:53]req_shift_open_date [18:50:53]req_shift_open_date done [18:50:53]produce_requested_data done [18:50:53]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67552,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [18:50:53]process_action_free close_receipt [18:50:53]json_value_free [18:50:53]json_value_free done [18:50:53]process_json_proto returns [18:50:53]Send response to host [18:50:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67552,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [18:50:53]free response buf [18:50:53]execute_script done [18:50:53]execute_script returns [18:50:53]free content buf [18:50:53]Sock 8.Close socket [18:50:53]Sock 8.Thread stoped [18:50:57]OFD Sender: No OFD packet to send [18:50:58]int [18:50:58]Write to MH i2c: 01 00 00 D7 1F F6 [18:50:58]*** FLAG_PRN_PAP1 set [18:50:58]Write i2c OK [18:50:58]MH_I2C_Read... [18:50:58]Read from MH i2c: 01 [18:50:58]MH_I2C_Read... [18:50:58]Read from MH i2c: 01 07 00 [18:50:58]MH_I2C_Read... [18:50:58]Read from MH i2c: 01 07 00 D7 1F 00 01 00 00 00 FF 0F 0C [18:50:58]state=0 [18:50:58]No paper [18:50:59]int [18:50:59]Write to MH i2c: 01 00 00 D8 1F F7 [18:50:59]*** FLAG_PRN_PAP2 set [18:50:59]Write i2c OK [18:50:59]MH_I2C_Read... [18:50:59]Read from MH i2c: 01 [18:50:59]MH_I2C_Read... [18:50:59]Read from MH i2c: 01 07 00 [18:50:59]MH_I2C_Read... [18:50:59]Read from MH i2c: 01 07 00 D8 1F 00 03 00 00 00 FF 0F 0F [18:50:59]state=0 [18:50:59]No paper [18:50:59]Cover opened [18:51:02]OFD Sender: No OFD packet to send [18:51:04]Write to MH i2c: 01 00 00 D9 1F F8 [18:51:04]Write i2c OK [18:51:04]MH_I2C_Read... [18:51:04]Read from MH i2c: 01 [18:51:04]MH_I2C_Read... [18:51:04]Read from MH i2c: 01 07 00 [18:51:04]MH_I2C_Read... [18:51:04]Read from MH i2c: 01 07 00 D9 1F 00 03 00 00 00 FF 0F 10 [18:51:04]state=3 [18:51:04]No paper [18:51:04]Cover opened [18:51:07]OFD Sender: No OFD packet to send [18:51:07]int [18:51:07]Write to MH i2c: 01 00 00 DA 1F F9 [18:51:07]Write i2c OK [18:51:07]MH_I2C_Read... [18:51:07]Read from MH i2c: 01 [18:51:07]MH_I2C_Read... [18:51:07]Read from MH i2c: 01 07 00 [18:51:07]MH_I2C_Read... [18:51:07]*** FLAG_PRN_PAP1 reset [18:51:07]*** FLAG_PRN_PAP2 reset [18:51:07]Read from MH i2c: 01 07 00 DA 1F 00 00 00 00 00 FF 0F 0E [18:51:07]state=3 [18:51:07]Cover closed [18:51:12]OFD Sender: No OFD packet to send [18:51:17]OFD Sender: No OFD packet to send [18:51:22]OFD Sender: No OFD packet to send [18:51:27]OFD Sender: No OFD packet to send [18:51:32]OFD Sender: No OFD packet to send [18:51:37]OFD Sender: No OFD packet to send [18:51:42]OFD Sender: No OFD packet to send [18:51:47]OFD Sender: No OFD packet to send [18:51:52]OFD Sender: No OFD packet to send [18:51:57]OFD Sender: No OFD packet to send [18:52:02]OFD Sender: No OFD packet to send [18:52:07]OFD Sender: No OFD packet to send [18:52:12]OFD Sender: No OFD packet to send [18:52:17]OFD Sender: No OFD packet to send [18:52:22]OFD Sender: No OFD packet to send [18:52:27]OFD Sender: No OFD packet to send [18:52:32]OFD Sender: No OFD packet to send [18:52:37]OFD Sender: No OFD packet to send [18:52:42]OFD Sender: No OFD packet to send [18:52:47]OFD Sender: No OFD packet to send [18:52:52]OFD Sender: No OFD packet to send [18:52:57]OFD Sender: No OFD packet to send [18:53:02]OFD Sender: No OFD packet to send [18:53:07]OFD Sender: No OFD packet to send [18:53:12]OFD Sender: No OFD packet to send [18:53:14]accept exits with 9 [18:53:14]New connection [18:53:14]New thread 3067182436 created [18:53:14]Thread 3067039076 joined [18:53:14]Waiting for new connection... [18:53:14] Sock 9.Parse request [18:53:14]Sock 9.Check first char [18:53:14]Sock 9.First char is OK [18:53:14]request: POST /json_proto HTTP/1.0 [18:53:14]Method: POST [18:53:14]URL: /json_proto [18:53:14]Method is POST - this is cgi request [18:53:14]url: /json_proto [18:53:14]query_string will be loaded in cgi processing [18:53:14]execute_cgi json_proto POST (null) [18:53:14]execute_cgi path=json_proto method=POST [18:53:14]POST find Content-Length [18:53:14]Host: 172.17.41.195:8080 [18:53:14]Content-Length: 677 [18:53:14]Content-Type: application/json [18:53:14] [18:53:14]POST finish read [18:53:14]Found Content-Length = 677 [18:53:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507616", "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.80, "quantity" : 5.990, "sum" : 400.13, "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:53:14]execute_script... [18:53: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)507616", "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.80, "quantity" : 5.990, "sum" : 400.13, "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:53:14]POST & json_proto [18:53:14]process_json_proto [18:53:14]json parsed OK: [18:53:14]protocol is kg_v1.0 [18:53:14]action value=close_receipt [18:53:14]process_action close_receipt [18:53:14]cmd_close_receipt [18:53:14]MH_GetDate [18:53:14]Write to MH i2c: F0 00 00 DB 1F E9 [18:53:14]Write i2c OK [18:53:14]MH_I2C_Read... [18:53:14]Read from MH i2c: F0 [18:53:14]MH_I2C_Read... [18:53:14]Read from MH i2c: F0 09 00 [18:53:14]MH_I2C_Read... [18:53:14]Read from MH i2c: F0 09 00 DB 1F 00 1C 56 46 66 FC 21 6F 64 00 [18:53:14]GetLastDocTimeStamp 1715885451 [18:53:14]current date 1715885596 [18:53:14]FM_GetShiftState [18:53:14]SAM_PROTO_GetShiftState [18:53:14]wFMCommunicate request_size=4 [18:53:14]MH_SAM_APDU [18:53:14]CAPDU: 80 13 01 00 [18:53:14]Write to MH i2c: E2 08 00 DC 1F 80 13 01 00 00 00 00 00 78 [18:53:14]Write i2c OK [18:53:14]MH_I2C_Read... [18:53:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:14]Read from MH i2c: E2 [18:53:14]MH_I2C_Read... [18:53:14]Read from MH i2c: E2 0E 00 [18:53:14]MH_I2C_Read... [18:53:14]Read from MH i2c: E2 0E 00 DC 1F 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 24 [18:53:14]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [18:53:14]wFMCommunicate OK [18:53:14]SAM_PROTO_GetShiftState done [18:53:14]FM_GetShiftState done [18:53:14]opened in 1715818916 [18:53:14]opened+sec_in_day 1715905316 [18:53:14]quantity*price = 40013 [18:53:14]sum+1 = 40014 [18:53:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.49 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 151 16.05.2024 18:53 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67553 ФПД: 131692780525931 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T185316&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67553&fm=131692780525931&tin=02508201610067®Number=0000000000091845&sum=40000 [18:53:15]StoreToDocumentArchive [18:53:15]shift 357 fd 67553 [18:53:15]save to /storage/0357/doc_00067553 [18:53:15]save last doc name /storage/0357/doc_00067553 to /storage/kkm_last_doc_name [18:53:15]save OK [18:53:15]Clear old archive folders... [18:53:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:53:15]tlvbuf is B6EE0380 [18:53:15]SAM_PROTO_ClearQueue [18:53:15]wFMCommunicate request_size=4 [18:53:15]MH_SAM_APDU [18:53:15]CAPDU: 80 09 00 00 [18:53:15]Write to MH i2c: E2 08 00 E9 1F 80 09 00 00 00 00 00 00 7A [18:53:15]Write i2c OK [18:53:15]MH_I2C_Read... [18:53:15]Read from MH i2c: E2 [18:53:15]MH_I2C_Read... [18:53:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:53:15]Read from MH i2c: E2 03 00 [18:53:15]MH_I2C_Read... [18:53:15]Read from MH i2c: E2 03 00 E9 1F 00 90 00 7C [18:53:15]RAPDU: 90 00 [18:53:15]wFMCommunicate OK [18:53:15]SAM_PROTO_ClearQueue done [18:53:15]KKMCreateOFDPacket [18:53:15]OFDProtocolAddRootSTLVToBuf [18:53:15]FM_MakeSignedData [18:53:15]FM_MakeSignedData [18:53:15]SAM_PROTO_SignData [18:53:15]wFMCommunicate request_size=4 [18:53:15]MH_SAM_APDU [18:53:15]CAPDU: 80 0D 01 02 [18:53:15]Write to MH i2c: E2 08 00 EA 1F 80 0D 01 02 00 00 00 00 82 [18:53:15]Write i2c OK [18:53:15]MH_I2C_Read... [18:53:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:53:15]Read from MH i2c: E2 [18:53:15]MH_I2C_Read... [18:53:15]Read from MH i2c: E2 03 00 [18:53:15]MH_I2C_Read... [18:53:15]Read from MH i2c: E2 03 00 EA 1F 00 90 00 7D [18:53:15]RAPDU: 90 00 [18:53:15]wFMCommunicate OK [18:53:15]wFMCommunicate request_size=255 [18:53:15]MH_SAM_APDU [18:53: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 66 17 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4D 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 99 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 97 00 00 00 F4 03 04 00 1C 56 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E1 07 01 00 35 04 06 00 77 [18:53:15]Write to MH i2c: E2 02 01 EB 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 66 17 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4D 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 99 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 97 00 00 00 F4 03 04 00 1C 56 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E1 07 01 00 35 04 06 00 77 00 00 68 [18:53:15]Write i2c OK [18:53:15]MH_I2C_Read... [18:53:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:15]Read from MH i2c: E2 [18:53:15]MH_I2C_Read... [18:53:15]Read from MH i2c: E2 03 00 [18:53:15]MH_I2C_Read... [18:53:15]Read from MH i2c: E2 03 00 EB 1F 00 90 00 7E [18:53:15]RAPDU: 90 00 [18:53:15]wFMCommunicate OK [18:53:15]wFMCommunicate request_size=10 [18:53:15]MH_SAM_APDU [18:53:15]CAPDU: 80 0D 02 02 05 C6 1D 67 19 6B [18:53:15]Write to MH i2c: E2 0D 00 EC 1F 80 0D 02 02 05 00 C6 1D 67 19 6B 00 00 5D [18:53:15]Write i2c OK [18:53:15]MH_I2C_Read... [18:53:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:15]Read from MH i2c: E2 [18:53:15]MH_I2C_Read... [18:53:15]Read from MH i2c: E2 03 00 [18:53:15]MH_I2C_Read... [18:53:15]Read from MH i2c: E2 03 00 EC 1F 00 90 00 7F [18:53:15]RAPDU: 90 00 [18:53:15]wFMCommunicate OK [18:53:15]wFMCommunicate request_size=4 [18:53:15]MH_SAM_APDU [18:53:15]CAPDU: 80 0D 03 02 [18:53:15]Write to MH i2c: E2 08 00 ED 1F 80 0D 03 02 00 00 00 00 87 [18:53:15]Write i2c OK [18:53:15]MH_I2C_Read... [18:53:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:53:16]Read from MH i2c: E2 [18:53:16]MH_I2C_Read... [18:53:16]Read from MH i2c: E2 0B 00 [18:53:16]MH_I2C_Read... [18:53:16]Read from MH i2c: E2 0B 00 ED 1F 00 D5 7C 5E 02 0D 0B 95 D1 90 00 B7 [18:53:16]RAPDU: D5 7C 5E 02 0D 0B 95 D1 90 00 [18:53:16]wFMCommunicate OK [18:53:16]SAM_PROTO_SignData done [18:53:16]FM_MakeSignedData done [18:53:16]CreateOFDProtocolMessage [18:53:16]wFMCommunicate request_size=4 [18:53:16]MH_SAM_APDU [18:53:16]CAPDU: 80 11 00 00 [18:53:16]Write to MH i2c: E2 08 00 EE 1F 80 11 00 00 00 00 00 00 87 [18:53:16]Write i2c OK [18:53:16]MH_I2C_Read... [18:53:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:16]Read from MH i2c: E2 [18:53:16]MH_I2C_Read... [18:53:16]Read from MH i2c: E2 17 00 [18:53:16]MH_I2C_Read... [18:53:16]Read from MH i2c: E2 17 00 EE 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DD [18:53:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:53:16]wFMCommunicate OK [18:53:16]CreateOFDProtocolMessage done [18:53:16]OFDSenderStorePacket 67553 [18:53:16]StoreOFDPacket docnum=67553 [18:53:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 AB DB 07 01 D9 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 17 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4D 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 99 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 97 00 00 00 F4 03 04 00 1C 56 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E1 07 01 00 35 04 06 00 77 C6 1D 67 19 6B D5 7C 5E 02 0D 0B 95 D1 [18:53:16]CheckFolder [18:53:16]dirname=/storage/ofd_packets [18:53:16]CheckFolder done [18:53:16]ProducePacketName [18:53:16]name=ofd_packets/00067553 [18:53:16]NVStorageSaveData ofd_packets/00067553 [18:53:16]File name is /storage/ofd_packets/00067553 [18:53:16]Write 301 bytes [18:53:16]NVStorageSaveData done [18:53:16]OFDSenderStorePacket done [18:53:16]KKMCreateOFDPacket done [18:53:16]NVStorageSaveData kkm_last_timestamp [18:53:16]File name is /storage/kkm_last_timestamp [18:53:16]Write 4 bytes [18:53:16]NVStorageSaveData done [18:53:16]ExternCall_PrintAddStr [18:53:16]wPrintStart [18:53:16]Write to MH i2c: 01 00 00 EF 1F 0E [18:53:16]Write i2c OK [18:53:16]MH_I2C_Read... [18:53:16]Read from MH i2c: 01 [18:53:16]MH_I2C_Read... [18:53:16]Read from MH i2c: 01 07 00 [18:53:16]MH_I2C_Read... [18:53:16]Read from MH i2c: 01 07 00 EF 1F 00 00 00 00 00 FF 0F 23 [18:53:16]RasterBufferAndPrint [18:53:16]line Счет N : (1)507616 [18:53:16]line ИНН: 02508201610067 [18:53:16]line Контрольно-Кассовый Чек [18:53:16]line ПРОДАЖА [18:53:16]line ТРК (МРК, ГНК) : 13 [18:53:16]line Товар: 2710124130 [18:53:16]line Аи-92-К-5 [18:53:16]line 5.990 * 66.80 [18:53:16]line = 400.13 [18:53:16]line НДС 12% НСП 1% [18:53:16]line > о реализуемом товаре [18:53:16]line ОКРУГЛЕНИЕ: -0.13 [18:53:16]line ИТОГО: 400.00 [18:53:16]line Внесено: 400.00 [18:53:16]line СДАЧА: 0.00 [18:53:16]line НСП 1% : 3.54 [18:53:16]line НДС 12% : 42.49 [18:53:16]line Наличными: 400.00 [18:53:16]line Безнал.: 0.00 [18:53:16]line Место: АЗС № 91 "Партнер Нефть" [18:53:16]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:53:16]line СНО: Общий режим [18:53:16]line Чек 151 16.05.2024 18:53 [18:53:16]line Смена: 357 ФФД: 1.0 [18:53:16]line ЗНМ: 0300000119 [18:53:16]line РНМ: 0000000000091845 [18:53:16]line Версия ККМ: 001 [18:53:16]line ФМ: 0000000000871829 [18:53:16]line ФД: 67553 [18:53:16]line ФПД: 131692780525931 [18:53:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T185316&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67553&fm=131692780525931&tin=02508201610067®Number=0000000000091845&sum=40000 [18:53:16]OFD Sender: Processing packet 67553 [packets to send 35, broken 34] [18:53:16]ProducePacketName [18:53:16]name=ofd_packets/00067553 [18:53:16]OFD Sender: To server: pG, [18:53:16]CommunicateWithHost lk.salyk.kg:30040 [18:53:16]ConnectInit lk.salyk.kg [18:53:16]written 0, free lines is 4095 [18:53:16]Connected sock=10 [18:53: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 38 32 39 0F 01 00 00 AB DB 07 01 D9 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 17 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4D 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 99 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 97 00 00 00 F4 03 04 00 1C 56 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E1 07 01 00 35 04 06 00 77 C6 1D 67 19 6B D5 7C 5E 02 0D 0B 95 D1 [18:53:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 F0 E3 47 00 7C 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 38 32 39 10 04 04 00 E1 07 01 00 F4 03 04 00 F6 FD 45 66 B6 04 01 00 00 4C 6D 6F 47 7C C2 AF A4 [18:53:16]CommunicateWithHost err = 0 [18:53:16]CheckOFDResponse [18:53:16]1017 (14) - 77093643461234 [18:53:16]1041 (16) - 0000000000871829 [18:53:16]1040 (4) - 67553 [18:53:16]1012 (4) - 16.05.2024 12:37 [18:53:16]1206 (1) - 0 [18:53:16]OFD Sender: Remove packet 67553 [18:53:16]ProducePacketName [18:53:16]name=ofd_packets/00067553 [18:53:16]NVStorageDeleteData [18:53:16]Write to MH i2c: 01 00 00 19 20 39 [18:53:16]Write i2c OK [18:53:16]MH_I2C_Read... [18:53:16]Read from MH i2c: 01 [18:53:16]MH_I2C_Read... [18:53:16]Read from MH i2c: 01 07 00 [18:53:16]MH_I2C_Read... [18:53:16]Read from MH i2c: 01 07 00 19 20 00 00 00 00 00 D1 0C 1D [18:53:16]RasterBufferAndPrint [18:53:16]line [18:53:16]line [18:53:16]line [18:53:16]line [18:53:16]line [18:53:16]written 0, free lines is 3287 [18:53:16]MH_Cut [18:53:16]Write to MH i2c: D1 01 00 20 20 01 12 [18:53:16]Write i2c OK [18:53:16]MH_I2C_Read... [18:53:16]Read from MH i2c: D1 [18:53:16]MH_I2C_Read... [18:53:16]Read from MH i2c: D1 01 00 [18:53:16]MH_I2C_Read... [18:53:16]Read from MH i2c: D1 01 00 20 20 00 11 [18:53:16]Write to MH i2c: 01 00 00 21 20 41 [18:53:16]Write i2c OK [18:53:16]MH_I2C_Read... [18:53:17]OFD Sender: No OFD packet to send [18:53:17]*** Cut start [18:53:17]*** Purtial cut [18:53:17]*** CUTSNS_PIN = 0 [18:53:17]*** Stage 1: CUTSNS_PIN = 1 [18:53:19]Read from MH i2c: 01 [18:53:19]MH_I2C_Read... [18:53:19]*** Stop cut motor [18:53:19]*** Cut end [18:53:19]Read from MH i2c: 01 07 00 [18:53:19]MH_I2C_Read... [18:53:19]Read from MH i2c: 01 07 00 21 20 00 00 00 00 00 FF 0F 56 [18:53:19]process_action close_receipt done [18:53:19]requested_data is exist [18:53:19]produce_requested_data [18:53:19]requested_item fm.sn is exist - process it [18:53:19]wFMCommunicate request_size=4 [18:53:19]MH_SAM_APDU [18:53:19]CAPDU: 80 11 00 00 [18:53:19]Write to MH i2c: E2 08 00 22 20 80 11 00 00 00 00 00 00 BC [18:53:19]Write i2c OK [18:53:19]MH_I2C_Read... [18:53:19]Read from MH i2c: E2 [18:53:19]MH_I2C_Read... [18:53:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:19]Read from MH i2c: E2 17 00 [18:53:19]MH_I2C_Read... [18:53:19]Read from MH i2c: E2 17 00 22 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 12 [18:53:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:53:19]wFMCommunicate OK [18:53:19]requested_item fd.num is exist - process it [18:53:19]SAM_PROTO_GetFieldsCounters [18:53:19]wFMCommunicate request_size=4 [18:53:19]MH_SAM_APDU [18:53:19]CAPDU: 80 13 00 00 [18:53:19]Write to MH i2c: E2 08 00 23 20 80 13 00 00 00 00 00 00 BF [18:53:19]Write i2c OK [18:53:19]MH_I2C_Read... [18:53:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:53:19]Read from MH i2c: E2 [18:53:19]MH_I2C_Read... [18:53:19]Read from MH i2c: E2 62 00 [18:53:19]MH_I2C_Read... [18:53:19]Read from MH i2c: E2 62 00 23 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E1 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [18:53: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E1 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:53:19]wFMCommunicate OK [18:53:19]SAM_PROTO_GetFieldsCounters done [18:53:19]requested_item shift.num is exist - process it [18:53:19]requested_item shift.opened is exist - process it [18:53:19]req_shift_opened [18:53:19]FM_GetShiftState [18:53:19]SAM_PROTO_GetShiftState [18:53:19]wFMCommunicate request_size=4 [18:53:19]MH_SAM_APDU [18:53:19]CAPDU: 80 13 01 00 [18:53:19]Write to MH i2c: E2 08 00 24 20 80 13 01 00 00 00 00 00 C1 [18:53:19]Write i2c OK [18:53:19]MH_I2C_Read... [18:53:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:19]Read from MH i2c: E2 [18:53:19]MH_I2C_Read... [18:53:19]Read from MH i2c: E2 0E 00 [18:53:19]MH_I2C_Read... [18:53:19]Read from MH i2c: E2 0E 00 24 20 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 6D [18:53:19]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [18:53:19]wFMCommunicate OK [18:53:19]SAM_PROTO_GetShiftState done [18:53:19]FM_GetShiftState done [18:53:19]req_shift_opened done [18:53:19]requested_item shift.open_date is exist - process it [18:53:19]req_shift_open_date [18:53:19]req_shift_open_date done [18:53:19]produce_requested_data done [18:53:19]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67553,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [18:53:19]process_action_free close_receipt [18:53:19]json_value_free [18:53:19]json_value_free done [18:53:19]process_json_proto returns [18:53:19]Send response to host [18:53:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67553,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [18:53:19]free response buf [18:53:19]execute_script done [18:53:19]execute_script returns [18:53:19]free content buf [18:53:19]Sock 9.Close socket [18:53:19]Sock 9.Thread stoped [18:53:20]accept exits with 8 [18:53:20]New connection [18:53:20]New thread 3067039076 created [18:53:20]Thread 3067182436 joined [18:53:20]Waiting for new connection... [18:53:20] Sock 8.Parse request [18:53:20]Sock 8.Check first char [18:53:20]Sock 8.First char is OK [18:53:20]request: POST /json_proto HTTP/1.0 [18:53:20]Method: POST [18:53:20]URL: /json_proto [18:53:20]Method is POST - this is cgi request [18:53:20]url: /json_proto [18:53:20]query_string will be loaded in cgi processing [18:53:20]execute_cgi json_proto POST (null) [18:53:20]execute_cgi path=json_proto method=POST [18:53:20]POST find Content-Length [18:53:20]Host: 172.17.41.195:8080 [18:53:20]Content-Length: 682 [18:53:20]Content-Type: application/json [18:53:20] [18:53:20]POST finish read [18:53:20]Found Content-Length = 682 [18:53:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507615", "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.80, "quantity" : 14.980, "sum" : 1000.66, "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:53:20]execute_script... [18: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)507615", "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.80, "quantity" : 14.980, "sum" : 1000.66, "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:53:20]POST & json_proto [18:53:20]process_json_proto [18:53:20]json parsed OK: [18:53:20]protocol is kg_v1.0 [18:53:20]action value=close_receipt [18:53:20]process_action close_receipt [18:53:20]cmd_close_receipt [18:53:20]MH_GetDate [18:53:20]Write to MH i2c: F0 00 00 25 20 34 [18:53:20]Write i2c OK [18:53:20]MH_I2C_Read... [18:53:20]Read from MH i2c: F0 [18:53:20]MH_I2C_Read... [18:53:20]Read from MH i2c: F0 09 00 [18:53:20]MH_I2C_Read... [18:53:20]Read from MH i2c: F0 09 00 25 20 00 22 56 46 66 FC 21 6F 64 51 [18:53:20]GetLastDocTimeStamp 1715885596 [18:53:20]current date 1715885602 [18:53:20]FM_GetShiftState [18:53:20]SAM_PROTO_GetShiftState [18:53:20]wFMCommunicate request_size=4 [18:53:20]MH_SAM_APDU [18:53:20]CAPDU: 80 13 01 00 [18:53:20]Write to MH i2c: E2 08 00 26 20 80 13 01 00 00 00 00 00 C3 [18:53:20]Write i2c OK [18:53:20]MH_I2C_Read... [18:53:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:20]Read from MH i2c: E2 [18:53:20]MH_I2C_Read... [18:53:20]Read from MH i2c: E2 0E 00 [18:53:20]MH_I2C_Read... [18:53:20]Read from MH i2c: E2 0E 00 26 20 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 6F [18:53:20]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [18:53:20]wFMCommunicate OK [18:53:20]SAM_PROTO_GetShiftState done [18:53:20]FM_GetShiftState done [18:53:20]opened in 1715818916 [18:53:20]opened+sec_in_day 1715905316 [18:53:20]quantity*price = 100066 [18:53:20]sum+1 = 100067 [18:53:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 152 16.05.2024 18:53 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67554 ФПД: 121465534984414 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T185322&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67554&fm=121465534984414&tin=02508201610067®Number=0000000000091845&sum=100000 [18:53:21]StoreToDocumentArchive [18:53:21]shift 357 fd 67554 [18:53:21]save to /storage/0357/doc_00067554 [18:53:21]save last doc name /storage/0357/doc_00067554 to /storage/kkm_last_doc_name [18:53:21]save OK [18:53:21]Clear old archive folders... [18:53:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:53:21]tlvbuf is 0183B3B0 [18:53:21]SAM_PROTO_ClearQueue [18:53:21]wFMCommunicate request_size=4 [18:53:21]MH_SAM_APDU [18:53:21]CAPDU: 80 09 00 00 [18:53:21]Write to MH i2c: E2 08 00 33 20 80 09 00 00 00 00 00 00 C5 [18:53:21]Write i2c OK [18:53:21]MH_I2C_Read... [18:53:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:53:21]Read from MH i2c: E2 [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: E2 03 00 [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: E2 03 00 33 20 00 90 00 C7 [18:53:21]RAPDU: 90 00 [18:53:21]wFMCommunicate OK [18:53:21]SAM_PROTO_ClearQueue done [18:53:21]KKMCreateOFDPacket [18:53:21]OFDProtocolAddRootSTLVToBuf [18:53:21]FM_MakeSignedData [18:53:21]FM_MakeSignedData [18:53:21]SAM_PROTO_SignData [18:53:21]wFMCommunicate request_size=4 [18:53:21]MH_SAM_APDU [18:53:21]CAPDU: 80 0D 01 02 [18:53:21]Write to MH i2c: E2 08 00 34 20 80 0D 01 02 00 00 00 00 CD [18:53:21]Write i2c OK [18:53:21]MH_I2C_Read... [18:53:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:53:21]Read from MH i2c: E2 [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: E2 03 00 [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: E2 03 00 34 20 00 90 00 C8 [18:53:21]RAPDU: 90 00 [18:53:21]wFMCommunicate OK [18:53:21]wFMCommunicate request_size=255 [18:53:21]MH_SAM_APDU [18:53: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 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 22 56 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E2 07 01 00 35 04 06 00 6E [18:53:21]Write to MH i2c: E2 02 01 35 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 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 22 56 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E2 07 01 00 35 04 06 00 6E 00 00 20 [18:53:21]Write i2c OK [18:53:21]MH_I2C_Read... [18:53:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:22]Read from MH i2c: E2 [18:53:22]MH_I2C_Read... [18:53:22]Read from MH i2c: E2 03 00 [18:53:22]MH_I2C_Read... [18:53:22]Read from MH i2c: E2 03 00 35 20 00 90 00 C9 [18:53:22]RAPDU: 90 00 [18:53:22]wFMCommunicate OK [18:53:22]wFMCommunicate request_size=10 [18:53:22]MH_SAM_APDU [18:53:22]CAPDU: 80 0D 02 02 05 78 E6 10 B0 DE [18:53:22]Write to MH i2c: E2 0D 00 36 20 80 0D 02 02 05 00 78 E6 10 B0 DE 00 00 D6 [18:53:22]Write i2c OK [18:53:22]MH_I2C_Read... [18:53:22]OFD Sender: No OFD packet to send [18:53:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:22]Read from MH i2c: E2 [18:53:22]MH_I2C_Read... [18:53:22]Read from MH i2c: E2 03 00 [18:53:22]MH_I2C_Read... [18:53:22]Read from MH i2c: E2 03 00 36 20 00 90 00 CA [18:53:22]RAPDU: 90 00 [18:53:22]wFMCommunicate OK [18:53:22]wFMCommunicate request_size=4 [18:53:22]MH_SAM_APDU [18:53:22]CAPDU: 80 0D 03 02 [18:53:22]Write to MH i2c: E2 08 00 37 20 80 0D 03 02 00 00 00 00 D2 [18:53:22]Write i2c OK [18:53:22]MH_I2C_Read... [18:53:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:53:22]Read from MH i2c: E2 [18:53:22]MH_I2C_Read... [18:53:22]Read from MH i2c: E2 0B 00 [18:53:22]MH_I2C_Read... [18:53:22]Read from MH i2c: E2 0B 00 37 20 00 08 AC 4E 31 82 64 92 8D 90 00 0B [18:53:22]RAPDU: 08 AC 4E 31 82 64 92 8D 90 00 [18:53:22]wFMCommunicate OK [18:53:22]SAM_PROTO_SignData done [18:53:22]FM_MakeSignedData done [18:53:22]CreateOFDProtocolMessage [18:53:22]wFMCommunicate request_size=4 [18:53:22]MH_SAM_APDU [18:53:22]CAPDU: 80 11 00 00 [18:53:22]Write to MH i2c: E2 08 00 38 20 80 11 00 00 00 00 00 00 D2 [18:53:22]Write i2c OK [18:53:22]MH_I2C_Read... [18:53:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:22]Read from MH i2c: E2 [18:53:22]MH_I2C_Read... [18:53:22]Read from MH i2c: E2 17 00 [18:53:22]MH_I2C_Read... [18:53:22]Read from MH i2c: E2 17 00 38 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 28 [18:53:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:53:22]wFMCommunicate OK [18:53:22]CreateOFDProtocolMessage done [18:53:22]OFDSenderStorePacket 67554 [18:53:22]StoreOFDPacket docnum=67554 [18:53:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 93 3B 07 01 41 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 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 22 56 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E2 07 01 00 35 04 06 00 6E 78 E6 10 B0 DE 08 AC 4E 31 82 64 92 8D [18:53:22]CheckFolder [18:53:22]dirname=/storage/ofd_packets [18:53:22]CheckFolder done [18:53:22]ProducePacketName [18:53:22]name=ofd_packets/00067554 [18:53:22]NVStorageSaveData ofd_packets/00067554 [18:53:22]File name is /storage/ofd_packets/00067554 [18:53:22]Write 301 bytes [18:53:22]NVStorageSaveData done [18:53:22]OFDSenderStorePacket done [18:53:22]KKMCreateOFDPacket done [18:53:22]NVStorageSaveData kkm_last_timestamp [18:53:22]File name is /storage/kkm_last_timestamp [18:53:22]Write 4 bytes [18:53:22]NVStorageSaveData done [18:53:22]ExternCall_PrintAddStr [18:53:22]wPrintStart [18:53:22]Write to MH i2c: 01 00 00 39 20 59 [18:53:22]Write i2c OK [18:53:22]MH_I2C_Read... [18:53:22]Read from MH i2c: 01 [18:53:22]MH_I2C_Read... [18:53:22]Read from MH i2c: 01 07 00 [18:53:22]MH_I2C_Read... [18:53:22]Read from MH i2c: 01 07 00 39 20 00 00 00 00 00 FF 0F 6E [18:53:22]RasterBufferAndPrint [18:53:22]line Счет N : (1)507615 [18:53:22]line ИНН: 02508201610067 [18:53:22]line Контрольно-Кассовый Чек [18:53:22]line ПРОДАЖА [18:53:22]line ТРК (МРК, ГНК) : 33 [18:53:22]line Товар: 2710124130 [18:53:22]line Аи-92-К-5 [18:53:22]line 14.980 * 66.80 [18:53:22]line = 1000.66 [18:53:22]line НДС 12% НСП 1% [18:53:22]line > о реализуемом товаре [18:53:22]line ОКРУГЛЕНИЕ: -0.66 [18:53:22]line ИТОГО: 1000.00 [18:53:22]line Внесено: 1000.00 [18:53:22]line СДАЧА: 0.00 [18:53:22]line НСП 1% : 8.85 [18:53:22]line НДС 12% : 106.26 [18:53:22]line Наличными: 1000.00 [18:53:22]line Безнал.: 0.00 [18:53:22]line Место: АЗС № 91 "Партнер Нефть" [18:53:22]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:53:22]line СНО: Общий режим [18:53:22]line Чек 152 16.05.2024 18:53 [18:53:22]line Смена: 357 ФФД: 1.0 [18:53:22]line ЗНМ: 0300000119 [18:53:22]line РНМ: 0000000000091845 [18:53:22]line Версия ККМ: 001 [18:53:22]line ФМ: 0000000000871829 [18:53:22]line ФД: 67554 [18:53:22]line ФПД: 121465534984414 [18:53:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T185322&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67554&fm=121465534984414&tin=02508201610067®Number=0000000000091845&sum=100000 [18:53:22]OFD Sender: Processing packet 67554 [packets to send 35, broken 34] [18:53:22]ProducePacketName [18:53:22]name=ofd_packets/00067554 [18:53:22]OFD Sender: To server: pG, [18:53:22]CommunicateWithHost lk.salyk.kg:30040 [18:53:22]ConnectInit lk.salyk.kg [18:53:22]written 0, free lines is 4095 [18:53:22]Connected sock=10 [18: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 38 32 39 0F 01 00 00 93 3B 07 01 41 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 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 22 56 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E2 07 01 00 35 04 06 00 6E 78 E6 10 B0 DE 08 AC 4E 31 82 64 92 8D [18:53:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 56 B3 47 00 23 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E2 07 01 00 F4 03 04 00 FC FD 45 66 B6 04 01 00 00 94 AC F9 38 91 33 3A 5D [18:53:23]CommunicateWithHost err = 0 [18:53:23]CheckOFDResponse [18:53:23]1017 (14) - 77093643461234 [18:53:23]1041 (16) - 0000000000871829 [18:53:23]1040 (4) - 67554 [18:53:23]1012 (4) - 16.05.2024 12:37 [18:53:23]1206 (1) - 0 [18:53:23]OFD Sender: Remove packet 67554 [18:53:23]ProducePacketName [18:53:23]name=ofd_packets/00067554 [18:53:23]NVStorageDeleteData [18:53:23]Write to MH i2c: 01 00 00 63 20 83 [18:53:23]Write i2c OK [18:53:23]MH_I2C_Read... [18:53:23]Read from MH i2c: 01 [18:53:23]MH_I2C_Read... [18:53:23]Read from MH i2c: 01 07 00 [18:53:23]MH_I2C_Read... [18:53:23]Read from MH i2c: 01 07 00 63 20 00 00 00 00 00 E1 0C 77 [18:53:23]RasterBufferAndPrint [18:53:23]line [18:53:23]line [18:53:23]line [18:53:23]line [18:53:23]line [18:53:23]written 0, free lines is 3306 [18:53:23]MH_Cut [18:53:23]Write to MH i2c: D1 01 00 6A 20 01 5C [18:53:23]Write i2c OK [18:53:23]MH_I2C_Read... [18:53:23]Read from MH i2c: D1 [18:53:23]MH_I2C_Read... [18:53:23]Read from MH i2c: D1 01 00 [18:53:23]MH_I2C_Read... [18:53:23]Read from MH i2c: D1 01 00 6A 20 00 5B [18:53:23]Write to MH i2c: 01 00 00 6B 20 8B [18:53:23]Write i2c OK [18:53:23]MH_I2C_Read... [18:53:23]OFD Sender: No OFD packet to send [18:53:23]*** Cut start [18:53:23]*** Purtial cut [18:53:23]*** Stage 1: CUTSNS_PIN = 1 [18:53:24]Read from MH i2c: 01 [18:53:24]MH_I2C_Read... [18:53:24]*** Stop cut motor [18:53:24]*** Cut end [18:53:24]Read from MH i2c: 01 07 00 [18:53:24]MH_I2C_Read... [18:53:24]Read from MH i2c: 01 07 00 6B 20 00 00 00 00 00 FF 0F A0 [18:53:24]process_action close_receipt done [18:53:24]requested_data is exist [18:53:24]produce_requested_data [18:53:24]requested_item fm.sn is exist - process it [18:53:24]wFMCommunicate request_size=4 [18:53:24]MH_SAM_APDU [18:53:24]CAPDU: 80 11 00 00 [18:53:24]Write to MH i2c: E2 08 00 6C 20 80 11 00 00 00 00 00 00 06 [18:53:24]Write i2c OK [18:53:24]MH_I2C_Read... [18:53:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:24]Read from MH i2c: E2 [18:53:24]MH_I2C_Read... [18:53:24]Read from MH i2c: E2 17 00 [18:53:24]MH_I2C_Read... [18:53:24]Read from MH i2c: E2 17 00 6C 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 5C [18:53:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:53:24]wFMCommunicate OK [18:53:24]requested_item fd.num is exist - process it [18:53:24]SAM_PROTO_GetFieldsCounters [18:53:24]wFMCommunicate request_size=4 [18:53:24]MH_SAM_APDU [18:53:24]CAPDU: 80 13 00 00 [18:53:24]Write to MH i2c: E2 08 00 6D 20 80 13 00 00 00 00 00 00 09 [18:53:24]Write i2c OK [18:53:24]MH_I2C_Read... [18:53:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:53:24]Read from MH i2c: E2 [18:53:24]MH_I2C_Read... [18:53:24]Read from MH i2c: E2 62 00 [18:53:24]MH_I2C_Read... [18:53:24]Read from MH i2c: E2 62 00 6D 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E2 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [18: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E2 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:53:24]wFMCommunicate OK [18:53:24]SAM_PROTO_GetFieldsCounters done [18:53:24]requested_item shift.num is exist - process it [18:53:24]requested_item shift.opened is exist - process it [18:53:24]req_shift_opened [18:53:24]FM_GetShiftState [18:53:24]SAM_PROTO_GetShiftState [18:53:24]wFMCommunicate request_size=4 [18:53:24]MH_SAM_APDU [18:53:24]CAPDU: 80 13 01 00 [18:53:24]Write to MH i2c: E2 08 00 6E 20 80 13 01 00 00 00 00 00 0B [18:53:24]Write i2c OK [18:53:24]MH_I2C_Read... [18:53:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:24]Read from MH i2c: E2 [18:53:24]MH_I2C_Read... [18:53:24]Read from MH i2c: E2 0E 00 [18:53:24]MH_I2C_Read... [18:53:24]Read from MH i2c: E2 0E 00 6E 20 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 B7 [18:53:24]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [18:53:24]wFMCommunicate OK [18:53:24]SAM_PROTO_GetShiftState done [18:53:24]FM_GetShiftState done [18:53:24]req_shift_opened done [18:53:24]requested_item shift.open_date is exist - process it [18:53:24]req_shift_open_date [18:53:24]req_shift_open_date done [18:53:24]produce_requested_data done [18:53:24]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67554,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [18:53:24]process_action_free close_receipt [18:53:24]json_value_free [18:53:24]json_value_free done [18:53:24]process_json_proto returns [18:53:24]Send response to host [18:53:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67554,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [18:53:24]free response buf [18:53:24]execute_script done [18:53:24]execute_script returns [18:53:24]free content buf [18:53:24]Sock 8.Close socket [18:53:24]Sock 8.Thread stoped [18:53:28]OFD Sender: No OFD packet to send [18:53:33]OFD Sender: No OFD packet to send [18:53:38]OFD Sender: No OFD packet to send [18:53:43]OFD Sender: No OFD packet to send [18:53:48]OFD Sender: No OFD packet to send [18:53:53]OFD Sender: No OFD packet to send [18:53:58]OFD Sender: No OFD packet to send [18:54:03]OFD Sender: No OFD packet to send [18:54:08]OFD Sender: No OFD packet to send [18:54:13]OFD Sender: No OFD packet to send [18:54:18]OFD Sender: No OFD packet to send [18:54:23]OFD Sender: No OFD packet to send [18:54:28]OFD Sender: No OFD packet to send [18:54:33]OFD Sender: No OFD packet to send [18:54:38]OFD Sender: No OFD packet to send [18:54:43]OFD Sender: No OFD packet to send [18:54:48]OFD Sender: No OFD packet to send [18:54:53]OFD Sender: No OFD packet to send [18:54:58]OFD Sender: No OFD packet to send [18:55:03]OFD Sender: No OFD packet to send [18:55:08]OFD Sender: No OFD packet to send [18:55:13]OFD Sender: No OFD packet to send [18:55:18]OFD Sender: No OFD packet to send [18:55:23]OFD Sender: No OFD packet to send [18:55:28]OFD Sender: No OFD packet to send [18:55:33]OFD Sender: No OFD packet to send [18:55:38]OFD Sender: No OFD packet to send [18:55:43]OFD Sender: No OFD packet to send [18:55:48]OFD Sender: No OFD packet to send [18:55:53]OFD Sender: No OFD packet to send [18:55:58]OFD Sender: No OFD packet to send [18:56:03]OFD Sender: No OFD packet to send [18:56:08]OFD Sender: No OFD packet to send [18:56:13]OFD Sender: No OFD packet to send [18:56:18]OFD Sender: No OFD packet to send [18:56:23]OFD Sender: No OFD packet to send [18:56:28]OFD Sender: No OFD packet to send [18:56:33]OFD Sender: No OFD packet to send [18:56:38]OFD Sender: No OFD packet to send [18:56:43]OFD Sender: No OFD packet to send [18:56:48]OFD Sender: No OFD packet to send [18:56:53]OFD Sender: No OFD packet to send [18:56:58]OFD Sender: No OFD packet to send [18:57:03]OFD Sender: No OFD packet to send [18:57:08]OFD Sender: No OFD packet to send [18:57:13]OFD Sender: No OFD packet to send [18:57:18]OFD Sender: No OFD packet to send [18:57:23]OFD Sender: No OFD packet to send [18:57:28]OFD Sender: No OFD packet to send [18:57:33]OFD Sender: No OFD packet to send [18:57:38]OFD Sender: No OFD packet to send [18:57:43]OFD Sender: No OFD packet to send [18:57:48]OFD Sender: No OFD packet to send [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:56]accept exits with 9 [18:58:56]New connection [18:58:56]New thread 3067182436 created [18:58:56]Thread 3067039076 joined [18:58:56]Waiting for new connection... [18:58:56] Sock 9.Parse request [18:58:56]Sock 9.Check first char [18:58:56]Sock 9.First char is OK [18:58:56]request: POST /json_proto HTTP/1.0 [18:58:56]Method: POST [18:58:56]URL: /json_proto [18:58:56]Method is POST - this is cgi request [18:58:56]url: /json_proto [18:58:56]query_string will be loaded in cgi processing [18:58:56]execute_cgi json_proto POST (null) [18:58:56]execute_cgi path=json_proto method=POST [18:58:56]POST find Content-Length [18:58:56]Host: 172.17.41.195:8080 [18:58:56]Content-Length: 1208 [18:58:56]Content-Type: application/json [18:58:56] [18:58:56]POST finish read [18:58:56]Found Content-Length = 1208 [18:58:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507617\u000A16.05.2024 18:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.360 x 74.70\u000A\u0418\u0422\u041E\u0413: 997.99\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:58:56]execute_script... [18:58:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507617\u000A16.05.2024 18:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.360 x 74.70\u000A\u0418\u0422\u041E\u0413: 997.99\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:58:56]POST & json_proto [18:58:56]process_json_proto [18:58:56]json parsed OK: [18:58:56]protocol is kg_v1.0 [18:58:56]action value=print_text [18:58:56]process_action print_text [18:58:56]cmd_print_text [18:58:56]ExternCall_PrintAddStr [18:58:56]wPrintStart [18:58:56]Write to MH i2c: 01 00 00 6F 20 8F [18:58:56]Write i2c OK [18:58:56]MH_I2C_Read... [18:58:56]Read from MH i2c: 01 [18:58:56]MH_I2C_Read... [18:58:56]Read from MH i2c: 01 07 00 [18:58:56]MH_I2C_Read... [18:58:56]Read from MH i2c: 01 07 00 6F 20 00 00 00 00 00 FF 0F A4 [18:58:56]RasterBufferAndPrint [18:58:56]line *****ТОВАРНЫЙ ЧЕК***** [18:58:56]line АЗС-91 [18:58:56]line Партнер нефть [18:58:56]line 02508201610067 [18:58:56]line Кассир : Пайзулдаева А. [18:58:56]line Счет N : (1)507617 [18:58:56]line 16.05.2024 18:41 [18:58:56]line ПРОДАЖА [18:58:56]line ТРК (МРК, ГНК): 31 [18:58:56]line Вид ГСМ : 2710194210 [18:58:56]line ДТ-К-5 [18:58:56]line 13.360 x 74.70 [18:58:56]line ИТОГ: 997.99 [18:58:56]line Тип оплаты: Талоны: Топливная Карта [18:58:56]line 02750 [18:58:56]line ______________________ [18:58:56]line (подпись) [18:58:56]written 0, free lines is 4095 [18:58:56]Write to MH i2c: 01 00 00 83 20 A3 [18:58:56]Write i2c OK [18:58:56]MH_I2C_Read... [18:58:56]Read from MH i2c: 01 [18:58:56]MH_I2C_Read... [18:58:56]Read from MH i2c: 01 07 00 [18:58:56]MH_I2C_Read... [18:58:56]Read from MH i2c: 01 07 00 83 20 00 00 00 00 00 0E 0E C6 [18:58:56]RasterBufferAndPrint [18:58:56]line [18:58:56]line [18:58:56]line [18:58:56]line [18:58:56]line [18:58:56]written 0, free lines is 3600 [18:58:56]MH_Cut [18:58:56]Write to MH i2c: D1 01 00 8A 20 01 7C [18:58:56]Write i2c OK [18:58:56]MH_I2C_Read... [18:58:56]Read from MH i2c: D1 [18:58:56]MH_I2C_Read... [18:58:56]Read from MH i2c: D1 01 00 [18:58:56]MH_I2C_Read... [18:58:56]Read from MH i2c: D1 01 00 8A 20 00 7B [18:58:56]Write to MH i2c: 01 00 00 8B 20 AB [18:58:56]Write i2c OK [18:58:56]MH_I2C_Read... [18:58:56]*** Cut start [18:58:56]*** Purtial cut [18:58:56]*** CUTSNS_PIN = 0 [18:58:57]*** Stage 1: CUTSNS_PIN = 1 [18:58:58]OFD Sender: No OFD packet to send [18:58:59]Read from MH i2c: 01 [18:58:59]MH_I2C_Read... [18:58:59]Read from MH i2c: 01 07 00 [18:58:59]MH_I2C_Read... [18:58:59]*** Stop cut motor [18:58:59]*** Cut end [18:58:59]Read from MH i2c: 01 07 00 8B 20 00 00 00 00 00 FF 0F C0 [18:58:59]process_action print_text done [18:58:59]requested_data is exist [18:58:59]produce_requested_data [18:58:59]requested_item fm.sn is exist - process it [18:58:59]wFMCommunicate request_size=4 [18:58:59]MH_SAM_APDU [18:58:59]CAPDU: 80 11 00 00 [18:58:59]Write to MH i2c: E2 08 00 8C 20 80 11 00 00 00 00 00 00 26 [18:58:59]Write i2c OK [18:58:59]MH_I2C_Read... [18:58:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:59]Read from MH i2c: E2 [18:58:59]MH_I2C_Read... [18:58:59]Read from MH i2c: E2 17 00 [18:58:59]MH_I2C_Read... [18:58:59]Read from MH i2c: E2 17 00 8C 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7C [18:58:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:58:59]wFMCommunicate OK [18:58:59]requested_item fd.num is exist - process it [18:58:59]SAM_PROTO_GetFieldsCounters [18:58:59]wFMCommunicate request_size=4 [18:58:59]MH_SAM_APDU [18:58:59]CAPDU: 80 13 00 00 [18:58:59]Write to MH i2c: E2 08 00 8D 20 80 13 00 00 00 00 00 00 29 [18:58:59]Write i2c OK [18:58:59]MH_I2C_Read... [18:58:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:58:59]Read from MH i2c: E2 [18:58:59]MH_I2C_Read... [18:58:59]Read from MH i2c: E2 62 00 [18:58:59]MH_I2C_Read... [18:58:59]Read from MH i2c: E2 62 00 8D 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E2 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [18:58: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E2 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:58:59]wFMCommunicate OK [18:58:59]SAM_PROTO_GetFieldsCounters done [18:58:59]requested_item shift.num is exist - process it [18:58:59]requested_item shift.opened is exist - process it [18:58:59]req_shift_opened [18:58:59]FM_GetShiftState [18:58:59]SAM_PROTO_GetShiftState [18:58:59]wFMCommunicate request_size=4 [18:58:59]MH_SAM_APDU [18:58:59]CAPDU: 80 13 01 00 [18:58:59]Write to MH i2c: E2 08 00 8E 20 80 13 01 00 00 00 00 00 2B [18:58:59]Write i2c OK [18:58:59]MH_I2C_Read... [18:58:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:59]Read from MH i2c: E2 [18:58:59]MH_I2C_Read... [18:58:59]Read from MH i2c: E2 0E 00 [18:58:59]MH_I2C_Read... [18:58:59]Read from MH i2c: E2 0E 00 8E 20 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 D7 [18:58:59]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [18:58:59]wFMCommunicate OK [18:58:59]SAM_PROTO_GetShiftState done [18:58:59]FM_GetShiftState done [18:58:59]req_shift_opened done [18:58:59]requested_item shift.open_date is exist - process it [18:58:59]req_shift_open_date [18:58:59]req_shift_open_date done [18:58:59]produce_requested_data done [18:58:59]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67554,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [18:58:59]process_action_free print_text [18:58:59]json_value_free [18:58:59]json_value_free done [18:58:59]process_json_proto returns [18:58:59]Send response to host [18:58:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67554,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [18:58:59]free response buf [18:58:59]execute_script done [18:58:59]execute_script returns [18:58:59]free content buf [18:58:59]Sock 9.Close socket [18:58:59]Sock 9.Thread stoped [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:57]accept exits with 8 [18:59:57]New connection [18:59:57]New thread 3067039076 created [18:59:57]Thread 3067182436 joined [18:59:57]Waiting for new connection... [18:59:57] Sock 8.Parse request [18:59:57]Sock 8.Check first char [18:59:57]Sock 8.First char is OK [18:59:57]request: POST /json_proto HTTP/1.0 [18:59:57]Method: POST [18:59:57]URL: /json_proto [18:59:57]Method is POST - this is cgi request [18:59:57]url: /json_proto [18:59:57]query_string will be loaded in cgi processing [18:59:57]execute_cgi json_proto POST (null) [18:59:57]execute_cgi path=json_proto method=POST [18:59:57]POST find Content-Length [18:59:57]Host: 172.17.41.195:8080 [18:59:57]Content-Length: 803 [18:59:57]Content-Type: application/json [18:59:57] [18:59:57]POST finish read [18:59:57]Found Content-Length = 803 [18:59:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507618", "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.80, "quantity" : 14.980, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:57]execute_script... [18:59:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507618", "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.80, "quantity" : 14.980, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:57]POST & json_proto [18:59:57]process_json_proto [18:59:57]json parsed OK: [18:59:57]protocol is kg_v1.0 [18:59:57]action value=close_receipt [18:59:57]process_action close_receipt [18:59:57]cmd_close_receipt [18:59:57]MH_GetDate [18:59:57]Write to MH i2c: F0 00 00 8F 20 9E [18:59:57]Write i2c OK [18:59:57]MH_I2C_Read... [18:59:57]Read from MH i2c: F0 [18:59:57]MH_I2C_Read... [18:59:57]Read from MH i2c: F0 09 00 [18:59:57]MH_I2C_Read... [18:59:57]Read from MH i2c: F0 09 00 8F 20 00 AF 57 46 66 FC 21 6F 64 49 [18:59:57]GetLastDocTimeStamp 1715885602 [18:59:57]current date 1715885999 [18:59:57]FM_GetShiftState [18:59:57]SAM_PROTO_GetShiftState [18:59:57]wFMCommunicate request_size=4 [18:59:57]MH_SAM_APDU [18:59:57]CAPDU: 80 13 01 00 [18:59:57]Write to MH i2c: E2 08 00 90 20 80 13 01 00 00 00 00 00 2D [18:59:57]Write i2c OK [18:59:57]MH_I2C_Read... [18:59:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:57]Read from MH i2c: E2 [18:59:57]MH_I2C_Read... [18:59:57]Read from MH i2c: E2 0E 00 [18:59:57]MH_I2C_Read... [18:59:57]Read from MH i2c: E2 0E 00 90 20 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 D9 [18:59:57]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [18:59:57]wFMCommunicate OK [18:59:57]SAM_PROTO_GetShiftState done [18:59:57]FM_GetShiftState done [18:59:57]opened in 1715818916 [18:59:57]opened+sec_in_day 1715905316 [18:59:57]quantity*price = 100066 [18:59:57]sum+1 = 100067 [18:59:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.66 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.66 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 153 16.05.2024 18:59 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67555 ФПД: 277607440687165 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T185959&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67555&fm=277607440687165&tin=02508201610067®Number=0000000000091845&sum=100066 [18:59:58]StoreToDocumentArchive [18:59:58]shift 357 fd 67555 [18:59:58]save to /storage/0357/doc_00067555 [18:59:58]save last doc name /storage/0357/doc_00067555 to /storage/kkm_last_doc_name [18:59:58]save OK [18:59:58]Clear old archive folders... [18:59:58]OFD Sender: No OFD packet to send [18:59:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:59:58]tlvbuf is B6EE0C20 [18:59:58]SAM_PROTO_ClearQueue [18:59:58]wFMCommunicate request_size=4 [18:59:58]MH_SAM_APDU [18:59:58]CAPDU: 80 09 00 00 [18:59:58]Write to MH i2c: E2 08 00 9D 20 80 09 00 00 00 00 00 00 2F [18:59:58]Write i2c OK [18:59:58]MH_I2C_Read... [18:59:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:59:58]Read from MH i2c: E2 [18:59:58]MH_I2C_Read... [18:59:58]Read from MH i2c: E2 03 00 [18:59:58]MH_I2C_Read... [18:59:58]Read from MH i2c: E2 03 00 9D 20 00 90 00 31 [18:59:58]RAPDU: 90 00 [18:59:58]wFMCommunicate OK [18:59:58]SAM_PROTO_ClearQueue done [18:59:58]KKMCreateOFDPacket [18:59:58]OFDProtocolAddRootSTLVToBuf [18:59:58]FM_MakeSignedData [18:59:58]FM_MakeSignedData [18:59:58]SAM_PROTO_SignData [18:59:58]wFMCommunicate request_size=4 [18:59:58]MH_SAM_APDU [18:59:58]CAPDU: 80 0D 01 02 [18:59:58]Write to MH i2c: E2 08 00 9E 20 80 0D 01 02 00 00 00 00 37 [18:59:58]Write i2c OK [18:59:58]MH_I2C_Read... [18:59:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:59:59]Read from MH i2c: E2 [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: E2 03 00 [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: E2 03 00 9E 20 00 90 00 32 [18:59:59]RAPDU: 90 00 [18:59:59]wFMCommunicate OK [18:59:59]wFMCommunicate request_size=255 [18:59:59]MH_SAM_APDU [18:59: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 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 AF 57 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E3 07 01 00 35 04 06 00 FC [18:59:59]Write to MH i2c: E2 02 01 9F 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 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 AF 57 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E3 07 01 00 35 04 06 00 FC 00 00 2C [18:59:59]Write i2c OK [18:59:59]MH_I2C_Read... [18:59:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:59]Read from MH i2c: E2 [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: E2 03 00 [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: E2 03 00 9F 20 00 90 00 33 [18:59:59]RAPDU: 90 00 [18:59:59]wFMCommunicate OK [18:59:59]wFMCommunicate request_size=10 [18:59:59]MH_SAM_APDU [18:59:59]CAPDU: 80 0D 02 02 05 7B 84 E3 A0 3D [18:59:59]Write to MH i2c: E2 0D 00 A0 20 80 0D 02 02 05 00 7B 84 E3 A0 3D 00 00 03 [18:59:59]Write i2c OK [18:59:59]MH_I2C_Read... [18:59:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:59]Read from MH i2c: E2 [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: E2 03 00 [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: E2 03 00 A0 20 00 90 00 34 [18:59:59]RAPDU: 90 00 [18:59:59]wFMCommunicate OK [18:59:59]wFMCommunicate request_size=4 [18:59:59]MH_SAM_APDU [18:59:59]CAPDU: 80 0D 03 02 [18:59:59]Write to MH i2c: E2 08 00 A1 20 80 0D 03 02 00 00 00 00 3C [18:59:59]Write i2c OK [18:59:59]MH_I2C_Read... [18:59:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:59:59]Read from MH i2c: E2 [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: E2 0B 00 [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: E2 0B 00 A1 20 00 DC 31 E3 11 40 15 9B 69 90 00 97 [18:59:59]RAPDU: DC 31 E3 11 40 15 9B 69 90 00 [18:59:59]wFMCommunicate OK [18:59:59]SAM_PROTO_SignData done [18:59:59]FM_MakeSignedData done [18:59:59]CreateOFDProtocolMessage [18:59:59]wFMCommunicate request_size=4 [18:59:59]MH_SAM_APDU [18:59:59]CAPDU: 80 11 00 00 [18:59:59]Write to MH i2c: E2 08 00 A2 20 80 11 00 00 00 00 00 00 3C [18:59:59]Write i2c OK [18:59:59]MH_I2C_Read... [18:59:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:59]Read from MH i2c: E2 [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: E2 17 00 [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: E2 17 00 A2 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 92 [18:59:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:59:59]wFMCommunicate OK [18:59:59]CreateOFDProtocolMessage done [18:59:59]OFDSenderStorePacket 67555 [18:59:59]StoreOFDPacket docnum=67555 [18:59:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 07 50 07 01 65 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 AF 57 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E3 07 01 00 35 04 06 00 FC 7B 84 E3 A0 3D DC 31 E3 11 40 15 9B 69 [18:59:59]CheckFolder [18:59:59]dirname=/storage/ofd_packets [18:59:59]CheckFolder done [18:59:59]ProducePacketName [18:59:59]name=ofd_packets/00067555 [18:59:59]NVStorageSaveData ofd_packets/00067555 [18:59:59]File name is /storage/ofd_packets/00067555 [18:59:59]Write 301 bytes [18:59:59]NVStorageSaveData done [18:59:59]OFDSenderStorePacket done [18:59:59]KKMCreateOFDPacket done [18:59:59]NVStorageSaveData kkm_last_timestamp [18:59:59]File name is /storage/kkm_last_timestamp [18:59:59]Write 4 bytes [18:59:59]NVStorageSaveData done [18:59:59]ExternCall_PrintAddStr [18:59:59]wPrintStart [18:59:59]Write to MH i2c: 01 00 00 A3 20 C3 [18:59:59]Write i2c OK [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: 01 [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: 01 07 00 [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: 01 07 00 A3 20 00 00 00 00 00 FF 0F D8 [18:59:59]RasterBufferAndPrint [18:59:59]line Счет N : (1)507618 [18:59:59]line ИНН: 02508201610067 [18:59:59]line Контрольно-Кассовый Чек [18:59:59]line ПРОДАЖА [18:59:59]line ТРК (МРК, ГНК) : 13 [18:59:59]line Товар: 2710124130 [18:59:59]line Аи-92-К-5 [18:59:59]line 14.980 * 66.80 [18:59:59]line = 1000.66 [18:59:59]line НДС 12% НСП 1% [18:59:59]line > о реализуемом товаре [18:59:59]line ИТОГО: 1000.66 [18:59:59]line НСП 1% : 8.85 [18:59:59]line НДС 12% : 106.26 [18:59:59]line Наличными: 0.00 [18:59:59]line Безнал.: 1000.66 [18:59:59]line Место: АЗС № 91 "Партнер Нефть" [18:59:59]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:59:59]line СНО: Общий режим [18:59:59]line Чек 153 16.05.2024 18:59 [18:59:59]line Смена: 357 ФФД: 1.0 [18:59:59]line ЗНМ: 0300000119 [18:59:59]line РНМ: 0000000000091845 [18:59:59]line Версия ККМ: 001 [18:59:59]line Платежная система: O! деньги [18:59:59]line ФМ: 0000000000871829 [18:59:59]line ФД: 67555 [18:59:59]line ФПД: 277607440687165 [18:59:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T185959&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67555&fm=277607440687165&tin=02508201610067®Number=0000000000091845&sum=100066 [18:59:59]written 0, free lines is 4095 [18:59:59]OFD Sender: Processing packet 67555 [packets to send 35, broken 34] [18:59:59]ProducePacketName [18:59:59]name=ofd_packets/00067555 [18:59:59]OFD Sender: To server: pG, [18:59:59]CommunicateWithHost lk.salyk.kg:30040 [18:59:59]ConnectInit lk.salyk.kg [18:59:59]Connected sock=9 [18:59:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 07 50 07 01 65 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 AF 57 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E3 07 01 00 35 04 06 00 FC 7B 84 E3 A0 3D DC 31 E3 11 40 15 9B 69 [19:00:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 4E 26 47 00 94 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E3 07 01 00 F4 03 04 00 89 FF 45 66 B6 04 01 00 00 01 63 1A 41 BA 90 E9 8B [19:00:00]CommunicateWithHost err = 0 [19:00:00]CheckOFDResponse [19:00:00]1017 (14) - 77093643461234 [19:00:00]1041 (16) - 0000000000871829 [19:00:00]1040 (4) - 67555 [19:00:00]1012 (4) - 16.05.2024 12:43 [19:00:00]1206 (1) - 0 [19:00:00]OFD Sender: Remove packet 67555 [19:00:00]ProducePacketName [19:00:00]name=ofd_packets/00067555 [19:00:00]NVStorageDeleteData [19:00:00]Write to MH i2c: 01 00 00 CC 20 EC [19:00:00]Write i2c OK [19:00:00]MH_I2C_Read... [19:00:00]Read from MH i2c: 01 [19:00:00]MH_I2C_Read... [19:00:00]Read from MH i2c: 01 07 00 [19:00:00]MH_I2C_Read... [19:00:00]Read from MH i2c: 01 07 00 CC 20 00 00 00 00 00 DE 0C DD [19:00:00]RasterBufferAndPrint [19:00:00]line [19:00:00]line [19:00:00]line [19:00:00]line [19:00:00]line [19:00:00]written 0, free lines is 3300 [19:00:00]MH_Cut [19:00:00]Write to MH i2c: D1 01 00 D3 20 01 C5 [19:00:00]Write i2c OK [19:00:00]MH_I2C_Read... [19:00:00]Read from MH i2c: D1 [19:00:00]MH_I2C_Read... [19:00:00]Read from MH i2c: D1 01 00 [19:00:00]MH_I2C_Read... [19:00:00]Read from MH i2c: D1 01 00 D3 20 00 C4 [19:00:00]Write to MH i2c: 01 00 00 D4 20 F4 [19:00:00]Write i2c OK [19:00:00]MH_I2C_Read... [19:00:00]OFD Sender: No OFD packet to send [19:00:01]*** Cut start [19:00:01]*** Purtial cut [19:00:01]*** Stage 1: CUTSNS_PIN = 1 [19:00:01]Read from MH i2c: 01 [19:00:01]MH_I2C_Read... [19:00:01]*** Stop cut motor [19:00:01]*** Cut end [19:00:01]Read from MH i2c: 01 07 00 [19:00:01]MH_I2C_Read... [19:00:01]Read from MH i2c: 01 07 00 D4 20 00 00 00 00 00 FF 0F 09 [19:00:01]process_action close_receipt done [19:00:01]requested_data is exist [19:00:01]produce_requested_data [19:00:01]requested_item fm.sn is exist - process it [19:00:01]wFMCommunicate request_size=4 [19:00:01]MH_SAM_APDU [19:00:01]CAPDU: 80 11 00 00 [19:00:01]Write to MH i2c: E2 08 00 D5 20 80 11 00 00 00 00 00 00 6F [19:00:01]Write i2c OK [19:00:01]MH_I2C_Read... [19:00:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:00:01]Read from MH i2c: E2 [19:00:01]MH_I2C_Read... [19:00:01]Read from MH i2c: E2 17 00 [19:00:01]MH_I2C_Read... [19:00:01]Read from MH i2c: E2 17 00 D5 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C5 [19:00:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:00:01]wFMCommunicate OK [19:00:01]requested_item fd.num is exist - process it [19:00:01]SAM_PROTO_GetFieldsCounters [19:00:01]wFMCommunicate request_size=4 [19:00:01]MH_SAM_APDU [19:00:01]CAPDU: 80 13 00 00 [19:00:01]Write to MH i2c: E2 08 00 D6 20 80 13 00 00 00 00 00 00 72 [19:00:01]Write i2c OK [19:00:01]MH_I2C_Read... [19:00:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:00:01]Read from MH i2c: E2 [19:00:01]MH_I2C_Read... [19:00:01]Read from MH i2c: E2 62 00 [19:00:01]MH_I2C_Read... [19:00:01]Read from MH i2c: E2 62 00 D6 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E3 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [19:00:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E3 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:00:01]wFMCommunicate OK [19:00:01]SAM_PROTO_GetFieldsCounters done [19:00:01]requested_item shift.num is exist - process it [19:00:01]requested_item shift.opened is exist - process it [19:00:01]req_shift_opened [19:00:01]FM_GetShiftState [19:00:01]SAM_PROTO_GetShiftState [19:00:01]wFMCommunicate request_size=4 [19:00:01]MH_SAM_APDU [19:00:01]CAPDU: 80 13 01 00 [19:00:01]Write to MH i2c: E2 08 00 D7 20 80 13 01 00 00 00 00 00 74 [19:00:01]Write i2c OK [19:00:01]MH_I2C_Read... [19:00:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:00:01]Read from MH i2c: E2 [19:00:01]MH_I2C_Read... [19:00:01]Read from MH i2c: E2 0E 00 [19:00:01]MH_I2C_Read... [19:00:01]Read from MH i2c: E2 0E 00 D7 20 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 20 [19:00:01]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [19:00:01]wFMCommunicate OK [19:00:01]SAM_PROTO_GetShiftState done [19:00:01]FM_GetShiftState done [19:00:01]req_shift_opened done [19:00:01]requested_item shift.open_date is exist - process it [19:00:01]req_shift_open_date [19:00:01]req_shift_open_date done [19:00:01]produce_requested_data done [19:00:01]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67555,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [19:00:01]process_action_free close_receipt [19:00:01]json_value_free [19:00:01]json_value_free done [19:00:01]process_json_proto returns [19:00:01]Send response to host [19:00:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67555,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [19:00:01]free response buf [19:00:01]execute_script done [19:00:01]execute_script returns [19:00:01]free content buf [19:00:01]Sock 8.Close socket [19:00:01]Sock 8.Thread stoped [19:00:05]OFD Sender: No OFD packet to send [19:00:10]OFD Sender: No OFD packet to send [19:00:15]OFD Sender: No OFD packet to send [19:00:20]OFD Sender: No OFD packet to send [19:00:25]OFD Sender: No OFD packet to send [19:00:30]OFD Sender: No OFD packet to send [19:00:35]OFD Sender: No OFD packet to send [19:00:40]OFD Sender: No OFD packet to send [19:00:45]OFD Sender: No OFD packet to send [19:00:50]OFD Sender: No OFD packet to send [19:00:55]OFD Sender: No OFD packet to send [19:01:00]OFD Sender: No OFD packet to send [19:01:05]OFD Sender: No OFD packet to send [19:01:10]OFD Sender: No OFD packet to send [19:01:15]OFD Sender: No OFD packet to send [19:01:20]OFD Sender: No OFD packet to send [19:01:25]OFD Sender: No OFD packet to send [19:01:30]OFD Sender: No OFD packet to send [19:01:31]accept exits with 10 [19:01:31]New connection [19:01:31]New thread 3067182436 created [19:01:31]Thread 3067039076 joined [19:01:31]Waiting for new connection... [19:01:31] Sock 10.Parse request [19:01:31]Sock 10.Check first char [19:01:31]Sock 10.First char is OK [19:01:31]request: POST /json_proto HTTP/1.0 [19:01:31]Method: POST [19:01:31]URL: /json_proto [19:01:31]Method is POST - this is cgi request [19:01:31]url: /json_proto [19:01:31]query_string will be loaded in cgi processing [19:01:31]execute_cgi json_proto POST (null) [19:01:31]execute_cgi path=json_proto method=POST [19:01:31]POST find Content-Length [19:01:31]Host: 172.17.41.195:8080 [19:01:31]Content-Length: 679 [19:01:31]Content-Type: application/json [19:01:31] [19:01:31]POST finish read [19:01:31]Found Content-Length = 679 [19:01:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507619", "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" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "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:01:31]execute_script... [19:01: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)507619", "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" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "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:01:31]POST & json_proto [19:01:31]process_json_proto [19:01:31]json parsed OK: [19:01:31]protocol is kg_v1.0 [19:01:31]action value=close_receipt [19:01:31]process_action close_receipt [19:01:31]cmd_close_receipt [19:01:31]MH_GetDate [19:01:31]Write to MH i2c: F0 00 00 D8 20 E7 [19:01:31]Write i2c OK [19:01:31]MH_I2C_Read... [19:01:31]Read from MH i2c: F0 [19:01:31]MH_I2C_Read... [19:01:31]Read from MH i2c: F0 09 00 [19:01:31]MH_I2C_Read... [19:01:31]Read from MH i2c: F0 09 00 D8 20 00 0D 58 46 66 FC 21 6F 64 F1 [19:01:31]GetLastDocTimeStamp 1715885999 [19:01:31]current date 1715886093 [19:01:31]FM_GetShiftState [19:01:31]SAM_PROTO_GetShiftState [19:01:31]wFMCommunicate request_size=4 [19:01:31]MH_SAM_APDU [19:01:31]CAPDU: 80 13 01 00 [19:01:31]Write to MH i2c: E2 08 00 D9 20 80 13 01 00 00 00 00 00 76 [19:01:31]Write i2c OK [19:01:31]MH_I2C_Read... [19:01:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:31]Read from MH i2c: E2 [19:01:31]MH_I2C_Read... [19:01:31]Read from MH i2c: E2 0E 00 [19:01:31]MH_I2C_Read... [19:01:31]Read from MH i2c: E2 0E 00 D9 20 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 22 [19:01:31]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [19:01:31]wFMCommunicate OK [19:01:31]SAM_PROTO_GetShiftState done [19:01:31]FM_GetShiftState done [19:01:31]opened in 1715818916 [19:01:31]opened+sec_in_day 1715905316 [19:01:31]quantity*price = 100023 [19:01:31]sum+1 = 100024 [19:01:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 154 16.05.2024 19:01 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67556 ФПД: 127321526603925 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T190133&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67556&fm=127321526603925&tin=02508201610067®Number=0000000000091845&sum=100000 [19:01:33]StoreToDocumentArchive [19:01:33]shift 357 fd 67556 [19:01:33]save to /storage/0357/doc_00067556 [19:01:33]save last doc name /storage/0357/doc_00067556 to /storage/kkm_last_doc_name [19:01:33]save OK [19:01:33]Clear old archive folders... [19:01:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:01:33]tlvbuf is B6EF9B10 [19:01:33]SAM_PROTO_ClearQueue [19:01:33]wFMCommunicate request_size=4 [19:01:33]MH_SAM_APDU [19:01:33]CAPDU: 80 09 00 00 [19:01:33]Write to MH i2c: E2 08 00 E6 20 80 09 00 00 00 00 00 00 78 [19:01:33]Write i2c OK [19:01:33]MH_I2C_Read... [19:01:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:01:33]Read from MH i2c: E2 [19:01:33]MH_I2C_Read... [19:01:33]Read from MH i2c: E2 03 00 [19:01:33]MH_I2C_Read... [19:01:33]Read from MH i2c: E2 03 00 E6 20 00 90 00 7A [19:01:33]RAPDU: 90 00 [19:01:33]wFMCommunicate OK [19:01:33]SAM_PROTO_ClearQueue done [19:01:33]KKMCreateOFDPacket [19:01:33]OFDProtocolAddRootSTLVToBuf [19:01:33]FM_MakeSignedData [19:01:33]FM_MakeSignedData [19:01:33]SAM_PROTO_SignData [19:01:33]wFMCommunicate request_size=4 [19:01:33]MH_SAM_APDU [19:01:33]CAPDU: 80 0D 01 02 [19:01:33]Write to MH i2c: E2 08 00 E7 20 80 0D 01 02 00 00 00 00 80 [19:01:33]Write i2c OK [19:01:33]MH_I2C_Read... [19:01:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:01:33]Read from MH i2c: E2 [19:01:33]MH_I2C_Read... [19:01:33]Read from MH i2c: E2 03 00 [19:01:33]MH_I2C_Read... [19:01:33]Read from MH i2c: E2 03 00 E7 20 00 90 00 7B [19:01:33]RAPDU: 90 00 [19:01:33]wFMCommunicate OK [19:01:33]wFMCommunicate request_size=255 [19:01:33]MH_SAM_APDU [19:01:33]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 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 9A 00 00 00 F4 03 04 00 0D 58 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E4 07 01 00 35 04 06 00 73 CC 5A 5D [19:01:33]Write to MH i2c: E2 02 01 E8 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 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 9A 00 00 00 F4 03 04 00 0D 58 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E4 07 01 00 35 04 06 00 73 CC 5A 5D 00 00 4D [19:01:33]Write i2c OK [19:01:33]MH_I2C_Read... [19:01:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:33]Read from MH i2c: E2 [19:01:33]MH_I2C_Read... [19:01:33]Read from MH i2c: E2 03 00 [19:01:33]MH_I2C_Read... [19:01:33]Read from MH i2c: E2 03 00 E8 20 00 90 00 7C [19:01:33]RAPDU: 90 00 [19:01:33]wFMCommunicate OK [19:01:33]wFMCommunicate request_size=7 [19:01:33]MH_SAM_APDU [19:01:33]CAPDU: 80 0D 02 02 02 90 95 [19:01:33]Write to MH i2c: E2 0A 00 E9 20 80 0D 02 02 02 00 90 95 00 00 AC [19:01:33]Write i2c OK [19:01:33]MH_I2C_Read... [19:01:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:33]Read from MH i2c: E2 [19:01:33]MH_I2C_Read... [19:01:33]Read from MH i2c: E2 03 00 [19:01:33]MH_I2C_Read... [19:01:33]Read from MH i2c: E2 03 00 E9 20 00 90 00 7D [19:01:33]RAPDU: 90 00 [19:01:33]wFMCommunicate OK [19:01:33]wFMCommunicate request_size=4 [19:01:33]MH_SAM_APDU [19:01:33]CAPDU: 80 0D 03 02 [19:01:33]Write to MH i2c: E2 08 00 EA 20 80 0D 03 02 00 00 00 00 85 [19:01:33]Write i2c OK [19:01:33]MH_I2C_Read... [19:01:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:01:33]Read from MH i2c: E2 [19:01:33]MH_I2C_Read... [19:01:33]Read from MH i2c: E2 0B 00 [19:01:33]MH_I2C_Read... [19:01:33]Read from MH i2c: E2 0B 00 EA 20 00 8F 12 05 21 06 10 1A 1F 90 00 9C [19:01:33]RAPDU: 8F 12 05 21 06 10 1A 1F 90 00 [19:01:33]wFMCommunicate OK [19:01:33]SAM_PROTO_SignData done [19:01:33]FM_MakeSignedData done [19:01:33]CreateOFDProtocolMessage [19:01:33]wFMCommunicate request_size=4 [19:01:33]MH_SAM_APDU [19:01:33]CAPDU: 80 11 00 00 [19:01:33]Write to MH i2c: E2 08 00 EB 20 80 11 00 00 00 00 00 00 85 [19:01:33]Write i2c OK [19:01:33]MH_I2C_Read... [19:01:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:33]Read from MH i2c: E2 [19:01:33]MH_I2C_Read... [19:01:33]Read from MH i2c: E2 17 00 [19:01:33]MH_I2C_Read... [19:01:33]Read from MH i2c: E2 17 00 EB 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DB [19:01:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:01:33]wFMCommunicate OK [19:01:33]CreateOFDProtocolMessage done [19:01:33]OFDSenderStorePacket 67556 [19:01:33]StoreOFDPacket docnum=67556 [19:01:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 16 1B 04 01 3F 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 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 9A 00 00 00 F4 03 04 00 0D 58 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E4 07 01 00 35 04 06 00 73 CC 5A 5D 90 95 8F 12 05 21 06 10 1A 1F [19:01:33]CheckFolder [19:01:33]dirname=/storage/ofd_packets [19:01:33]CheckFolder done [19:01:33]ProducePacketName [19:01:33]name=ofd_packets/00067556 [19:01:33]NVStorageSaveData ofd_packets/00067556 [19:01:33]File name is /storage/ofd_packets/00067556 [19:01:33]Write 298 bytes [19:01:33]NVStorageSaveData done [19:01:33]OFDSenderStorePacket done [19:01:33]KKMCreateOFDPacket done [19:01:33]NVStorageSaveData kkm_last_timestamp [19:01:33]File name is /storage/kkm_last_timestamp [19:01:33]Write 4 bytes [19:01:33]NVStorageSaveData done [19:01:33]ExternCall_PrintAddStr [19:01:33]wPrintStart [19:01:33]Write to MH i2c: 01 00 00 EC 20 0C [19:01:33]Write i2c OK [19:01:33]MH_I2C_Read... [19:01:33]Read from MH i2c: 01 [19:01:33]MH_I2C_Read... [19:01:33]Read from MH i2c: 01 07 00 [19:01:33]MH_I2C_Read... [19:01:33]Read from MH i2c: 01 07 00 EC 20 00 00 00 00 00 FF 0F 21 [19:01:33]RasterBufferAndPrint [19:01:33]line Счет N : (1)507619 [19:01:33]line ИНН: 02508201610067 [19:01:33]line Контрольно-Кассовый Чек [19:01:33]line ПРОДАЖА [19:01:33]line ТРК (МРК, ГНК) : 31 [19:01:33]line Товар: 2710194210 [19:01:33]line ДТ-К-5 [19:01:33]line 13.390 * 74.70 [19:01:33]line = 1000.23 [19:01:33]line НДС 12% НСП 1% [19:01:33]line > о реализуемом товаре [19:01:33]line ОКРУГЛЕНИЕ: -0.23 [19:01:33]line ИТОГО: 1000.00 [19:01:33]line Внесено: 1000.00 [19:01:33]line СДАЧА: 0.00 [19:01:33]line НСП 1% : 8.85 [19:01:33]line НДС 12% : 106.22 [19:01:33]line Наличными: 1000.00 [19:01:33]line Безнал.: 0.00 [19:01:33]line Место: АЗС № 91 "Партнер Нефть" [19:01:33]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:01:33]line СНО: Общий режим [19:01:33]line Чек 154 16.05.2024 19:01 [19:01:33]line Смена: 357 ФФД: 1.0 [19:01:33]line ЗНМ: 0300000119 [19:01:33]line РНМ: 0000000000091845 [19:01:33]line Версия ККМ: 001 [19:01:33]line ФМ: 0000000000871829 [19:01:33]line ФД: 67556 [19:01:33]line ФПД: 127321526603925 [19:01:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T190133&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67556&fm=127321526603925&tin=02508201610067®Number=0000000000091845&sum=100000 [19:01:33]OFD Sender: Processing packet 67556 [packets to send 35, broken 34] [19:01:33]ProducePacketName [19:01:33]name=ofd_packets/00067556 [19:01:33]OFD Sender: To server: pG, [19:01:33]CommunicateWithHost lk.salyk.kg:30040 [19:01:33]ConnectInit lk.salyk.kg [19:01:33]written 0, free lines is 4095 [19:01:33]Connected sock=9 [19:01: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 38 32 39 0C 01 00 00 16 1B 04 01 3F 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 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 9A 00 00 00 F4 03 04 00 0D 58 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E4 07 01 00 35 04 06 00 73 CC 5A 5D 90 95 8F 12 05 21 06 10 1A 1F [19:01:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 53 EA 47 00 5F 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 38 32 39 10 04 04 00 E4 07 01 00 F4 03 04 00 E7 FF 45 66 B6 04 01 00 00 A8 65 98 0B 03 08 49 F3 [19:01:34]CommunicateWithHost err = 0 [19:01:34]CheckOFDResponse [19:01:34]1017 (14) - 77093643461234 [19:01:34]1041 (16) - 0000000000871829 [19:01:34]1040 (4) - 67556 [19:01:34]1012 (4) - 16.05.2024 12:45 [19:01:34]1206 (1) - 0 [19:01:34]OFD Sender: Remove packet 67556 [19:01:34]ProducePacketName [19:01:34]name=ofd_packets/00067556 [19:01:34]NVStorageDeleteData [19:01:34]Write to MH i2c: 01 00 00 16 21 37 [19:01:34]Write i2c OK [19:01:34]MH_I2C_Read... [19:01:34]Read from MH i2c: 01 [19:01:34]MH_I2C_Read... [19:01:34]Read from MH i2c: 01 07 00 [19:01:34]MH_I2C_Read... [19:01:34]Read from MH i2c: 01 07 00 16 21 00 00 00 00 00 C8 0C 12 [19:01:34]RasterBufferAndPrint [19:01:34]line [19:01:34]line [19:01:34]line [19:01:34]line [19:01:34]line [19:01:34]written 0, free lines is 3278 [19:01:34]MH_Cut [19:01:34]Write to MH i2c: D1 01 00 1D 21 01 10 [19:01:34]Write i2c OK [19:01:34]MH_I2C_Read... [19:01:34]Read from MH i2c: D1 [19:01:34]MH_I2C_Read... [19:01:34]Read from MH i2c: D1 01 00 [19:01:34]MH_I2C_Read... [19:01:34]Read from MH i2c: D1 01 00 1D 21 00 0F [19:01:34]Write to MH i2c: 01 00 00 1E 21 3F [19:01:34]Write i2c OK [19:01:34]MH_I2C_Read... [19:01:34]OFD Sender: No OFD packet to send [19:01:35]*** Cut start [19:01:35]*** Purtial cut [19:01:35]*** CUTSNS_PIN = 0 [19:01:35]*** Stage 1: CUTSNS_PIN = 1 [19:01:37]Read from MH i2c: 01 [19:01:37]MH_I2C_Read... [19:01:37]*** Stop cut motor [19:01:37]*** Cut end [19:01:37]Read from MH i2c: 01 07 00 [19:01:37]MH_I2C_Read... [19:01:37]Read from MH i2c: 01 07 00 1E 21 00 00 00 00 00 FF 0F 54 [19:01:37]process_action close_receipt done [19:01:37]requested_data is exist [19:01:37]produce_requested_data [19:01:37]requested_item fm.sn is exist - process it [19:01:37]wFMCommunicate request_size=4 [19:01:37]MH_SAM_APDU [19:01:37]CAPDU: 80 11 00 00 [19:01:37]Write to MH i2c: E2 08 00 1F 21 80 11 00 00 00 00 00 00 BA [19:01:37]Write i2c OK [19:01:37]MH_I2C_Read... [19:01:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:37]Read from MH i2c: E2 [19:01:37]MH_I2C_Read... [19:01:37]Read from MH i2c: E2 17 00 [19:01:37]MH_I2C_Read... [19:01:37]Read from MH i2c: E2 17 00 1F 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 10 [19:01:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:01:37]wFMCommunicate OK [19:01:37]requested_item fd.num is exist - process it [19:01:37]SAM_PROTO_GetFieldsCounters [19:01:37]wFMCommunicate request_size=4 [19:01:37]MH_SAM_APDU [19:01:37]CAPDU: 80 13 00 00 [19:01:37]Write to MH i2c: E2 08 00 20 21 80 13 00 00 00 00 00 00 BD [19:01:37]Write i2c OK [19:01:37]MH_I2C_Read... [19:01:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:01:37]Read from MH i2c: E2 [19:01:37]MH_I2C_Read... [19:01:37]Read from MH i2c: E2 62 00 [19:01:37]MH_I2C_Read... [19:01:37]Read from MH i2c: E2 62 00 20 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E4 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [19:01: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E4 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:01:37]wFMCommunicate OK [19:01:37]SAM_PROTO_GetFieldsCounters done [19:01:37]requested_item shift.num is exist - process it [19:01:37]requested_item shift.opened is exist - process it [19:01:37]req_shift_opened [19:01:37]FM_GetShiftState [19:01:37]SAM_PROTO_GetShiftState [19:01:37]wFMCommunicate request_size=4 [19:01:37]MH_SAM_APDU [19:01:37]CAPDU: 80 13 01 00 [19:01:37]Write to MH i2c: E2 08 00 21 21 80 13 01 00 00 00 00 00 BF [19:01:37]Write i2c OK [19:01:37]MH_I2C_Read... [19:01:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:37]Read from MH i2c: E2 [19:01:37]MH_I2C_Read... [19:01:37]Read from MH i2c: E2 0E 00 [19:01:37]MH_I2C_Read... [19:01:37]Read from MH i2c: E2 0E 00 21 21 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 6B [19:01:37]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [19:01:37]wFMCommunicate OK [19:01:37]SAM_PROTO_GetShiftState done [19:01:37]FM_GetShiftState done [19:01:37]req_shift_opened done [19:01:37]requested_item shift.open_date is exist - process it [19:01:37]req_shift_open_date [19:01:37]req_shift_open_date done [19:01:37]produce_requested_data done [19:01:37]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67556,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [19:01:37]process_action_free close_receipt [19:01:37]json_value_free [19:01:37]json_value_free done [19:01:37]process_json_proto returns [19:01:37]Send response to host [19:01:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67556,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [19:01:37]free response buf [19:01:37]execute_script done [19:01:37]execute_script returns [19:01:37]free content buf [19:01:37]Sock 10.Close socket [19:01:37]Sock 10.Thread stoped [19:01:39]OFD Sender: No OFD packet to send [19:01:44]OFD Sender: No OFD packet to send [19:01:49]OFD Sender: No OFD packet to send [19:01:54]OFD Sender: No OFD packet to send [19:01:59]OFD Sender: No OFD packet to send [19:02:04]OFD Sender: No OFD packet to send [19:02:09]OFD Sender: No OFD packet to send [19:02:14]OFD Sender: No OFD packet to send [19:02:15]accept exits with 8 [19:02:15]New connection [19:02:15]New thread 3067039076 created [19:02:15]Thread 3067182436 joined [19:02:15]Waiting for new connection... [19:02:15] Sock 8.Parse request [19:02:15]Sock 8.Check first char [19:02:15]Sock 8.First char is OK [19:02:15]request: POST /json_proto HTTP/1.0 [19:02:15]Method: POST [19:02:15]URL: /json_proto [19:02:15]Method is POST - this is cgi request [19:02:15]url: /json_proto [19:02:15]query_string will be loaded in cgi processing [19:02:15]execute_cgi json_proto POST (null) [19:02:15]execute_cgi path=json_proto method=POST [19:02:15]POST find Content-Length [19:02:15]Host: 172.17.41.195:8080 [19:02:15]Content-Length: 803 [19:02:15]Content-Type: application/json [19:02:15] [19:02:15]POST finish read [19:02:15]Found Content-Length = 803 [19:02:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507620", "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.80, "quantity" : 14.980, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:15]execute_script... [19:02: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)507620", "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.80, "quantity" : 14.980, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:15]POST & json_proto [19:02:15]process_json_proto [19:02:15]json parsed OK: [19:02:15]protocol is kg_v1.0 [19:02:15]action value=close_receipt [19:02:15]process_action close_receipt [19:02:15]cmd_close_receipt [19:02:15]MH_GetDate [19:02:15]Write to MH i2c: F0 00 00 22 21 32 [19:02:15]Write i2c OK [19:02:15]MH_I2C_Read... [19:02:15]Read from MH i2c: F0 [19:02:15]MH_I2C_Read... [19:02:15]Read from MH i2c: F0 09 00 [19:02:15]MH_I2C_Read... [19:02:15]Read from MH i2c: F0 09 00 22 21 00 39 58 46 66 FC 21 6F 64 68 [19:02:15]GetLastDocTimeStamp 1715886093 [19:02:15]current date 1715886137 [19:02:15]FM_GetShiftState [19:02:15]SAM_PROTO_GetShiftState [19:02:15]wFMCommunicate request_size=4 [19:02:15]MH_SAM_APDU [19:02:15]CAPDU: 80 13 01 00 [19:02:15]Write to MH i2c: E2 08 00 23 21 80 13 01 00 00 00 00 00 C1 [19:02:15]Write i2c OK [19:02:15]MH_I2C_Read... [19:02:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:15]Read from MH i2c: E2 [19:02:15]MH_I2C_Read... [19:02:15]Read from MH i2c: E2 0E 00 [19:02:15]MH_I2C_Read... [19:02:15]Read from MH i2c: E2 0E 00 23 21 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 6D [19:02:15]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [19:02:15]wFMCommunicate OK [19:02:15]SAM_PROTO_GetShiftState done [19:02:15]FM_GetShiftState done [19:02:15]opened in 1715818916 [19:02:15]opened+sec_in_day 1715905316 [19:02:15]quantity*price = 100066 [19:02:15]sum+1 = 100067 [19:02:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.66 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.66 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 155 16.05.2024 19:02 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67557 ФПД: 177003271000120 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T190217&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67557&fm=177003271000120&tin=02508201610067®Number=0000000000091845&sum=100066 [19:02:16]StoreToDocumentArchive [19:02:16]shift 357 fd 67557 [19:02:16]save to /storage/0357/doc_00067557 [19:02:16]save last doc name /storage/0357/doc_00067557 to /storage/kkm_last_doc_name [19:02:16]save OK [19:02:16]Clear old archive folders... [19:02:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:02:16]tlvbuf is B6DE0010 [19:02:16]SAM_PROTO_ClearQueue [19:02:16]wFMCommunicate request_size=4 [19:02:16]MH_SAM_APDU [19:02:16]CAPDU: 80 09 00 00 [19:02:16]Write to MH i2c: E2 08 00 30 21 80 09 00 00 00 00 00 00 C3 [19:02:16]Write i2c OK [19:02:16]MH_I2C_Read... [19:02:16]Read from MH i2c: E2 [19:02:16]MH_I2C_Read... [19:02:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:02:16]Read from MH i2c: E2 03 00 [19:02:16]MH_I2C_Read... [19:02:16]Read from MH i2c: E2 03 00 30 21 00 90 00 C5 [19:02:16]RAPDU: 90 00 [19:02:16]wFMCommunicate OK [19:02:16]SAM_PROTO_ClearQueue done [19:02:16]KKMCreateOFDPacket [19:02:16]OFDProtocolAddRootSTLVToBuf [19:02:16]FM_MakeSignedData [19:02:16]FM_MakeSignedData [19:02:16]SAM_PROTO_SignData [19:02:16]wFMCommunicate request_size=4 [19:02:16]MH_SAM_APDU [19:02:16]CAPDU: 80 0D 01 02 [19:02:16]Write to MH i2c: E2 08 00 31 21 80 0D 01 02 00 00 00 00 CB [19:02:16]Write i2c OK [19:02:16]MH_I2C_Read... [19:02:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:02:16]Read from MH i2c: E2 [19:02:16]MH_I2C_Read... [19:02:16]Read from MH i2c: E2 03 00 [19:02:16]MH_I2C_Read... [19:02:16]Read from MH i2c: E2 03 00 31 21 00 90 00 C6 [19:02:16]RAPDU: 90 00 [19:02:16]wFMCommunicate OK [19:02:16]wFMCommunicate request_size=255 [19:02:16]MH_SAM_APDU [19:02: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 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 39 58 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E5 07 01 00 35 04 06 00 A0 [19:02:16]Write to MH i2c: E2 02 01 32 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 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 39 58 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E5 07 01 00 35 04 06 00 A0 00 00 F3 [19:02:16]Write i2c OK [19:02:16]MH_I2C_Read... [19:02:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:17]Read from MH i2c: E2 [19:02:17]MH_I2C_Read... [19:02:17]Read from MH i2c: E2 03 00 [19:02:17]MH_I2C_Read... [19:02:17]Read from MH i2c: E2 03 00 32 21 00 90 00 C7 [19:02:17]RAPDU: 90 00 [19:02:17]wFMCommunicate OK [19:02:17]wFMCommunicate request_size=10 [19:02:17]MH_SAM_APDU [19:02:17]CAPDU: 80 0D 02 02 05 FB C9 17 90 38 [19:02:17]Write to MH i2c: E2 0D 00 33 21 80 0D 02 02 05 00 FB C9 17 90 38 00 00 7B [19:02:17]Write i2c OK [19:02:17]MH_I2C_Read... [19:02:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:17]Read from MH i2c: E2 [19:02:17]MH_I2C_Read... [19:02:17]Read from MH i2c: E2 03 00 [19:02:17]MH_I2C_Read... [19:02:17]Read from MH i2c: E2 03 00 33 21 00 90 00 C8 [19:02:17]RAPDU: 90 00 [19:02:17]wFMCommunicate OK [19:02:17]wFMCommunicate request_size=4 [19:02:17]MH_SAM_APDU [19:02:17]CAPDU: 80 0D 03 02 [19:02:17]Write to MH i2c: E2 08 00 34 21 80 0D 03 02 00 00 00 00 D0 [19:02:17]Write i2c OK [19:02:17]MH_I2C_Read... [19:02:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:02:17]Read from MH i2c: E2 [19:02:17]MH_I2C_Read... [19:02:17]Read from MH i2c: E2 0B 00 [19:02:17]MH_I2C_Read... [19:02:17]Read from MH i2c: E2 0B 00 34 21 00 D8 C2 6C FF 28 62 7F BD 90 00 9C [19:02:17]RAPDU: D8 C2 6C FF 28 62 7F BD 90 00 [19:02:17]wFMCommunicate OK [19:02:17]SAM_PROTO_SignData done [19:02:17]FM_MakeSignedData done [19:02:17]CreateOFDProtocolMessage [19:02:17]wFMCommunicate request_size=4 [19:02:17]MH_SAM_APDU [19:02:17]CAPDU: 80 11 00 00 [19:02:17]Write to MH i2c: E2 08 00 35 21 80 11 00 00 00 00 00 00 D0 [19:02:17]Write i2c OK [19:02:17]MH_I2C_Read... [19:02:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:17]Read from MH i2c: E2 [19:02:17]MH_I2C_Read... [19:02:17]Read from MH i2c: E2 17 00 [19:02:17]MH_I2C_Read... [19:02:17]Read from MH i2c: E2 17 00 35 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 26 [19:02:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:02:17]wFMCommunicate OK [19:02:17]CreateOFDProtocolMessage done [19:02:17]OFDSenderStorePacket 67557 [19:02:17]StoreOFDPacket docnum=67557 [19:02:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 13 9A 07 01 B3 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 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 39 58 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E5 07 01 00 35 04 06 00 A0 FB C9 17 90 38 D8 C2 6C FF 28 62 7F BD [19:02:17]CheckFolder [19:02:17]dirname=/storage/ofd_packets [19:02:17]CheckFolder done [19:02:17]ProducePacketName [19:02:17]name=ofd_packets/00067557 [19:02:17]NVStorageSaveData ofd_packets/00067557 [19:02:17]File name is /storage/ofd_packets/00067557 [19:02:17]Write 301 bytes [19:02:17]NVStorageSaveData done [19:02:17]OFDSenderStorePacket done [19:02:17]KKMCreateOFDPacket done [19:02:17]NVStorageSaveData kkm_last_timestamp [19:02:17]File name is /storage/kkm_last_timestamp [19:02:17]Write 4 bytes [19:02:17]NVStorageSaveData done [19:02:17]ExternCall_PrintAddStr [19:02:17]wPrintStart [19:02:17]Write to MH i2c: 01 00 00 36 21 57 [19:02:17]Write i2c OK [19:02:17]MH_I2C_Read... [19:02:17]Read from MH i2c: 01 [19:02:17]MH_I2C_Read... [19:02:17]Read from MH i2c: 01 07 00 [19:02:17]MH_I2C_Read... [19:02:17]Read from MH i2c: 01 07 00 36 21 00 00 00 00 00 FF 0F 6C [19:02:17]RasterBufferAndPrint [19:02:17]line Счет N : (1)507620 [19:02:17]line ИНН: 02508201610067 [19:02:17]line Контрольно-Кассовый Чек [19:02:17]line ПРОДАЖА [19:02:17]line ТРК (МРК, ГНК) : 43 [19:02:17]line Товар: 2710124130 [19:02:17]line Аи-92-К-5 [19:02:17]line 14.980 * 66.80 [19:02:17]line = 1000.66 [19:02:17]line НДС 12% НСП 1% [19:02:17]line > о реализуемом товаре [19:02:17]line ИТОГО: 1000.66 [19:02:17]line НСП 1% : 8.85 [19:02:17]line НДС 12% : 106.26 [19:02:17]line Наличными: 0.00 [19:02:17]line Безнал.: 1000.66 [19:02:17]line Место: АЗС № 91 "Партнер Нефть" [19:02:17]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:02:17]line СНО: Общий режим [19:02:17]line Чек 155 16.05.2024 19:02 [19:02:17]line Смена: 357 ФФД: 1.0 [19:02:17]line ЗНМ: 0300000119 [19:02:17]line РНМ: 0000000000091845 [19:02:17]line Версия ККМ: 001 [19:02:17]line Платежная система: O! деньги [19:02:17]line ФМ: 0000000000871829 [19:02:17]line ФД: 67557 [19:02:17]line ФПД: 177003271000120 [19:02:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T190217&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67557&fm=177003271000120&tin=02508201610067®Number=0000000000091845&sum=100066 [19:02:17]OFD Sender: Processing packet 67557 [packets to send 35, broken 34] [19:02:17]ProducePacketName [19:02:17]name=ofd_packets/00067557 [19:02:17]OFD Sender: To server: pG, [19:02:17]CommunicateWithHost lk.salyk.kg:30040 [19:02:17]ConnectInit lk.salyk.kg [19:02:17]written 0, free lines is 4095 [19:02:17]Connected sock=10 [19:02: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 38 32 39 0F 01 00 00 13 9A 07 01 B3 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 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 39 58 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E5 07 01 00 35 04 06 00 A0 FB C9 17 90 38 D8 C2 6C FF 28 62 7F BD [19:02:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 D7 75 47 00 12 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 38 32 39 10 04 04 00 E5 07 01 00 F4 03 04 00 13 00 46 66 B6 04 01 00 00 20 F4 24 F6 85 30 2C B0 [19:02:18]CommunicateWithHost err = 0 [19:02:18]CheckOFDResponse [19:02:18]1017 (14) - 77093643461234 [19:02:18]1041 (16) - 0000000000871829 [19:02:18]1040 (4) - 67557 [19:02:18]1012 (4) - 16.05.2024 12:46 [19:02:18]1206 (1) - 0 [19:02:18]OFD Sender: Remove packet 67557 [19:02:18]ProducePacketName [19:02:18]name=ofd_packets/00067557 [19:02:18]NVStorageDeleteData [19:02:18]Write to MH i2c: 01 00 00 5F 21 80 [19:02:18]Write i2c OK [19:02:18]MH_I2C_Read... [19:02:18]Read from MH i2c: 01 [19:02:18]MH_I2C_Read... [19:02:18]Read from MH i2c: 01 07 00 [19:02:18]MH_I2C_Read... [19:02:18]Read from MH i2c: 01 07 00 5F 21 00 00 00 00 00 DE 0C 71 [19:02:18]RasterBufferAndPrint [19:02:18]line [19:02:18]line [19:02:18]line [19:02:18]line [19:02:18]line [19:02:18]written 0, free lines is 3300 [19:02:18]MH_Cut [19:02:18]Write to MH i2c: D1 01 00 66 21 01 59 [19:02:18]Write i2c OK [19:02:18]MH_I2C_Read... [19:02:18]Read from MH i2c: D1 [19:02:18]MH_I2C_Read... [19:02:18]Read from MH i2c: D1 01 00 [19:02:18]MH_I2C_Read... [19:02:18]Read from MH i2c: D1 01 00 66 21 00 58 [19:02:18]Write to MH i2c: 01 00 00 67 21 88 [19:02:18]Write i2c OK [19:02:18]MH_I2C_Read... [19:02:18]OFD Sender: No OFD packet to send [19:02:18]*** Cut start [19:02:18]*** Purtial cut [19:02:18]*** Stage 1: CUTSNS_PIN = 1 [19:02:19]Read from MH i2c: 01 [19:02:19]MH_I2C_Read... [19:02:19]*** Stop cut motor [19:02:19]*** Cut end [19:02:19]Read from MH i2c: 01 07 00 [19:02:19]MH_I2C_Read... [19:02:19]Read from MH i2c: 01 07 00 67 21 00 00 00 00 00 FF 0F 9D [19:02:19]process_action close_receipt done [19:02:19]requested_data is exist [19:02:19]produce_requested_data [19:02:19]requested_item fm.sn is exist - process it [19:02:19]wFMCommunicate request_size=4 [19:02:19]MH_SAM_APDU [19:02:19]CAPDU: 80 11 00 00 [19:02:19]Write to MH i2c: E2 08 00 68 21 80 11 00 00 00 00 00 00 03 [19:02:19]Write i2c OK [19:02:19]MH_I2C_Read... [19:02:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:19]Read from MH i2c: E2 [19:02:19]MH_I2C_Read... [19:02:19]Read from MH i2c: E2 17 00 [19:02:19]MH_I2C_Read... [19:02:19]Read from MH i2c: E2 17 00 68 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 59 [19:02:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:02:19]wFMCommunicate OK [19:02:19]requested_item fd.num is exist - process it [19:02:19]SAM_PROTO_GetFieldsCounters [19:02:19]wFMCommunicate request_size=4 [19:02:19]MH_SAM_APDU [19:02:19]CAPDU: 80 13 00 00 [19:02:19]Write to MH i2c: E2 08 00 69 21 80 13 00 00 00 00 00 00 06 [19:02:19]Write i2c OK [19:02:19]MH_I2C_Read... [19:02:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:02:19]Read from MH i2c: E2 [19:02:19]MH_I2C_Read... [19:02:19]Read from MH i2c: E2 62 00 [19:02:19]MH_I2C_Read... [19:02:19]Read from MH i2c: E2 62 00 69 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E5 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [19:02: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E5 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:02:19]wFMCommunicate OK [19:02:19]SAM_PROTO_GetFieldsCounters done [19:02:19]requested_item shift.num is exist - process it [19:02:19]requested_item shift.opened is exist - process it [19:02:19]req_shift_opened [19:02:19]FM_GetShiftState [19:02:19]SAM_PROTO_GetShiftState [19:02:19]wFMCommunicate request_size=4 [19:02:19]MH_SAM_APDU [19:02:19]CAPDU: 80 13 01 00 [19:02:19]Write to MH i2c: E2 08 00 6A 21 80 13 01 00 00 00 00 00 08 [19:02:19]Write i2c OK [19:02:19]MH_I2C_Read... [19:02:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:19]Read from MH i2c: E2 [19:02:19]MH_I2C_Read... [19:02:19]Read from MH i2c: E2 0E 00 [19:02:19]MH_I2C_Read... [19:02:19]Read from MH i2c: E2 0E 00 6A 21 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 B4 [19:02:19]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [19:02:19]wFMCommunicate OK [19:02:19]SAM_PROTO_GetShiftState done [19:02:19]FM_GetShiftState done [19:02:19]req_shift_opened done [19:02:19]requested_item shift.open_date is exist - process it [19:02:19]req_shift_open_date [19:02:19]req_shift_open_date done [19:02:19]produce_requested_data done [19:02:19]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67557,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [19:02:19]process_action_free close_receipt [19:02:19]json_value_free [19:02:19]json_value_free done [19:02:19]process_json_proto returns [19:02:19]Send response to host [19:02:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67557,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [19:02:19]free response buf [19:02:19]execute_script done [19:02:19]execute_script returns [19:02:19]free content buf [19:02:19]Sock 8.Close socket [19:02:19]Sock 8.Thread stoped [19:02:23]OFD Sender: No OFD packet to send [19:02:28]OFD Sender: No OFD packet to send [19:02:33]OFD Sender: No OFD packet to send [19:02:38]OFD Sender: No OFD packet to send [19:02:43]OFD Sender: No OFD packet to send [19:02:48]OFD Sender: No OFD packet to send [19:02:53]OFD Sender: No OFD packet to send [19:02:58]OFD Sender: No OFD packet to send [19:03:03]OFD Sender: No OFD packet to send [19:03:08]OFD Sender: No OFD packet to send [19:03:13]OFD Sender: No OFD packet to send [19:03:18]OFD Sender: No OFD packet to send [19:03:23]OFD Sender: No OFD packet to send [19:03:28]OFD Sender: No OFD packet to send [19:03:33]OFD Sender: No OFD packet to send [19:03:38]OFD Sender: No OFD packet to send [19:03:43]OFD Sender: No OFD packet to send [19:03:48]OFD Sender: No OFD packet to send [19:03:53]OFD Sender: No OFD packet to send [19:03:58]OFD Sender: No OFD packet to send [19:04:03]OFD Sender: No OFD packet to send [19:04:08]OFD Sender: No OFD packet to send [19:04:13]OFD Sender: No OFD packet to send [19:04:18]OFD Sender: No OFD packet to send [19:04:23]OFD Sender: No OFD packet to send [19:04:28]OFD Sender: No OFD packet to send [19:04:33]OFD Sender: No OFD packet to send [19:04:38]OFD Sender: No OFD packet to send [19:04:43]OFD Sender: No OFD packet to send [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:27]accept exits with 9 [19:06:27]New connection [19:06:27]New thread 3067182436 created [19:06:27]Thread 3067039076 joined [19:06:27]Waiting for new connection... [19:06:27] Sock 9.Parse request [19:06:27]Sock 9.Check first char [19:06:27]Sock 9.First char is OK [19:06:27]request: POST /json_proto HTTP/1.0 [19:06:27]Method: POST [19:06:27]URL: /json_proto [19:06:27]Method is POST - this is cgi request [19:06:27]url: /json_proto [19:06:27]query_string will be loaded in cgi processing [19:06:27]execute_cgi json_proto POST (null) [19:06:27]execute_cgi path=json_proto method=POST [19:06:27]POST find Content-Length [19:06:27]Host: 172.17.41.195:8080 [19:06:27]Content-Length: 800 [19:06:27]Content-Type: application/json [19:06:27] [19:06:27]POST finish read [19:06:27]Found Content-Length = 800 [19:06:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507621", "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" : 74.70, "quantity" : 20.090, "sum" : 1500.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.72 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:27]execute_script... [19:06:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507621", "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" : 74.70, "quantity" : 20.090, "sum" : 1500.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.72 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:27]POST & json_proto [19:06:27]process_json_proto [19:06:27]json parsed OK: [19:06:27]protocol is kg_v1.0 [19:06:27]action value=close_receipt [19:06:27]process_action close_receipt [19:06:27]cmd_close_receipt [19:06:27]MH_GetDate [19:06:27]Write to MH i2c: F0 00 00 6B 21 7B [19:06:27]Write i2c OK [19:06:27]MH_I2C_Read... [19:06:27]Read from MH i2c: F0 [19:06:27]MH_I2C_Read... [19:06:27]Read from MH i2c: F0 09 00 [19:06:27]MH_I2C_Read... [19:06:27]Read from MH i2c: F0 09 00 6B 21 00 35 59 46 66 FC 21 6F 64 AE [19:06:27]GetLastDocTimeStamp 1715886137 [19:06:27]current date 1715886389 [19:06:27]FM_GetShiftState [19:06:27]SAM_PROTO_GetShiftState [19:06:27]wFMCommunicate request_size=4 [19:06:27]MH_SAM_APDU [19:06:27]CAPDU: 80 13 01 00 [19:06:27]Write to MH i2c: E2 08 00 6C 21 80 13 01 00 00 00 00 00 0A [19:06:27]Write i2c OK [19:06:27]MH_I2C_Read... [19:06:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:27]Read from MH i2c: E2 [19:06:27]MH_I2C_Read... [19:06:27]Read from MH i2c: E2 0E 00 [19:06:27]MH_I2C_Read... [19:06:27]Read from MH i2c: E2 0E 00 6C 21 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 B6 [19:06:27]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [19:06:27]wFMCommunicate OK [19:06:27]SAM_PROTO_GetShiftState done [19:06:27]FM_GetShiftState done [19:06:27]opened in 1715818916 [19:06:27]opened+sec_in_day 1715905316 [19:06:27]quantity*price = 150072 [19:06:27]sum+1 = 150073 [19:06:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.72 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 0.00 Безнал.: 1500.72 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 156 16.05.2024 19:06 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67558 ФПД: 173658088944645 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T190629&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67558&fm=173658088944645&tin=02508201610067®Number=0000000000091845&sum=150072 [19:06:28]StoreToDocumentArchive [19:06:28]shift 357 fd 67558 [19:06:28]save to /storage/0357/doc_00067558 [19:06:28]save last doc name /storage/0357/doc_00067558 to /storage/kkm_last_doc_name [19:06:28]save OK [19:06:28]Clear old archive folders... [19:06:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:06:28]tlvbuf is 017AE5E0 [19:06:28]SAM_PROTO_ClearQueue [19:06:28]wFMCommunicate request_size=4 [19:06:28]MH_SAM_APDU [19:06:28]CAPDU: 80 09 00 00 [19:06:28]Write to MH i2c: E2 08 00 79 21 80 09 00 00 00 00 00 00 0C [19:06:28]Write i2c OK [19:06:28]MH_I2C_Read... [19:06:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:06:28]Read from MH i2c: E2 [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: E2 03 00 [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: E2 03 00 79 21 00 90 00 0E [19:06:28]RAPDU: 90 00 [19:06:28]wFMCommunicate OK [19:06:28]SAM_PROTO_ClearQueue done [19:06:28]KKMCreateOFDPacket [19:06:28]OFDProtocolAddRootSTLVToBuf [19:06:28]FM_MakeSignedData [19:06:28]FM_MakeSignedData [19:06:28]SAM_PROTO_SignData [19:06:28]wFMCommunicate request_size=4 [19:06:28]MH_SAM_APDU [19:06:28]CAPDU: 80 0D 01 02 [19:06:28]Write to MH i2c: E2 08 00 7A 21 80 0D 01 02 00 00 00 00 14 [19:06:28]Write i2c OK [19:06:28]MH_I2C_Read... [19:06:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:06:28]Read from MH i2c: E2 [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: E2 03 00 [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: E2 03 00 7A 21 00 90 00 0F [19:06:28]RAPDU: 90 00 [19:06:28]wFMCommunicate OK [19:06:28]wFMCommunicate request_size=255 [19:06:28]MH_SAM_APDU [19:06: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 7A 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 38 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 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 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 35 59 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E6 07 01 00 35 04 06 00 9D F0 EC B4 [19:06:28]Write to MH i2c: E2 02 01 7B 21 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 38 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 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 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 35 59 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E6 07 01 00 35 04 06 00 9D F0 EC B4 00 00 20 [19:06:28]Write i2c OK [19:06:28]MH_I2C_Read... [19:06:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:28]Read from MH i2c: E2 [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: E2 03 00 [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: E2 03 00 7B 21 00 90 00 10 [19:06:28]RAPDU: 90 00 [19:06:28]wFMCommunicate OK [19:06:28]wFMCommunicate request_size=7 [19:06:28]MH_SAM_APDU [19:06:28]CAPDU: 80 0D 02 02 02 34 05 [19:06:28]Write to MH i2c: E2 0A 00 7C 21 80 0D 02 02 02 00 34 05 00 00 54 [19:06:28]Write i2c OK [19:06:28]MH_I2C_Read... [19:06:28]OFD Sender: No OFD packet to send [19:06:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:28]Read from MH i2c: E2 [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: E2 03 00 [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: E2 03 00 7C 21 00 90 00 11 [19:06:28]RAPDU: 90 00 [19:06:28]wFMCommunicate OK [19:06:28]wFMCommunicate request_size=4 [19:06:28]MH_SAM_APDU [19:06:28]CAPDU: 80 0D 03 02 [19:06:28]Write to MH i2c: E2 08 00 7D 21 80 0D 03 02 00 00 00 00 19 [19:06:28]Write i2c OK [19:06:28]MH_I2C_Read... [19:06:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:06:28]Read from MH i2c: E2 [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: E2 0B 00 [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: E2 0B 00 7D 21 00 8B 26 E1 47 89 F4 BD 1E 90 00 4B [19:06:28]RAPDU: 8B 26 E1 47 89 F4 BD 1E 90 00 [19:06:28]wFMCommunicate OK [19:06:28]SAM_PROTO_SignData done [19:06:28]FM_MakeSignedData done [19:06:28]CreateOFDProtocolMessage [19:06:28]wFMCommunicate request_size=4 [19:06:28]MH_SAM_APDU [19:06:28]CAPDU: 80 11 00 00 [19:06:28]Write to MH i2c: E2 08 00 7E 21 80 11 00 00 00 00 00 00 19 [19:06:28]Write i2c OK [19:06:28]MH_I2C_Read... [19:06:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:28]Read from MH i2c: E2 [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: E2 17 00 [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: E2 17 00 7E 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 6F [19:06:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:06:28]wFMCommunicate OK [19:06:28]CreateOFDProtocolMessage done [19:06:28]OFDSenderStorePacket 67558 [19:06:28]StoreOFDPacket docnum=67558 [19:06:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 70 BE 04 01 B0 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 7A 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 38 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 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 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 35 59 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E6 07 01 00 35 04 06 00 9D F0 EC B4 34 05 8B 26 E1 47 89 F4 BD 1E [19:06:28]CheckFolder [19:06:28]dirname=/storage/ofd_packets [19:06:28]CheckFolder done [19:06:28]ProducePacketName [19:06:28]name=ofd_packets/00067558 [19:06:28]NVStorageSaveData ofd_packets/00067558 [19:06:28]File name is /storage/ofd_packets/00067558 [19:06:28]Write 298 bytes [19:06:28]NVStorageSaveData done [19:06:28]OFDSenderStorePacket done [19:06:28]KKMCreateOFDPacket done [19:06:28]NVStorageSaveData kkm_last_timestamp [19:06:28]File name is /storage/kkm_last_timestamp [19:06:28]Write 4 bytes [19:06:28]NVStorageSaveData done [19:06:28]ExternCall_PrintAddStr [19:06:28]wPrintStart [19:06:28]Write to MH i2c: 01 00 00 7F 21 A0 [19:06:28]Write i2c OK [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: 01 [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: 01 07 00 [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: 01 07 00 7F 21 00 00 00 00 00 FF 0F B5 [19:06:28]RasterBufferAndPrint [19:06:28]line Счет N : (1)507621 [19:06:28]line ИНН: 02508201610067 [19:06:28]line Контрольно-Кассовый Чек [19:06:28]line ПРОДАЖА [19:06:28]line ТРК (МРК, ГНК) : 41 [19:06:28]line Товар: 2710194210 [19:06:28]line ДТ-К-5 [19:06:28]line 20.090 * 74.70 [19:06:28]line = 1500.72 [19:06:28]line НДС 12% НСП 1% [19:06:28]line > о реализуемом товаре [19:06:28]line ИТОГО: 1500.72 [19:06:28]line НСП 1% : 13.28 [19:06:28]line НДС 12% : 159.37 [19:06:28]line Наличными: 0.00 [19:06:28]line Безнал.: 1500.72 [19:06:28]line Место: АЗС № 91 "Партнер Нефть" [19:06:28]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:06:28]line СНО: Общий режим [19:06:28]line Чек 156 16.05.2024 19:06 [19:06:29]line Смена: 357 ФФД: 1.0 [19:06:29]line ЗНМ: 0300000119 [19:06:29]line РНМ: 0000000000091845 [19:06:29]line Версия ККМ: 001 [19:06:29]line Платежная система: O! деньги [19:06:29]line ФМ: 0000000000871829 [19:06:29]line ФД: 67558 [19:06:29]line ФПД: 173658088944645 [19:06:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T190629&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67558&fm=173658088944645&tin=02508201610067®Number=0000000000091845&sum=150072 [19:06:29]OFD Sender: Processing packet 67558 [packets to send 35, broken 34] [19:06:29]ProducePacketName [19:06:29]name=ofd_packets/00067558 [19:06:29]OFD Sender: To server: pG, [19:06:29]CommunicateWithHost lk.salyk.kg:30040 [19:06:29]ConnectInit lk.salyk.kg [19:06:29]written 0, free lines is 4095 [19:06:29]Connected sock=10 [19:06:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 70 BE 04 01 B0 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 7A 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 38 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 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 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 35 59 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E6 07 01 00 35 04 06 00 9D F0 EC B4 34 05 8B 26 E1 47 89 F4 BD 1E [19:06:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 DD FB 47 00 57 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E6 07 01 00 F4 03 04 00 0F 01 46 66 B6 04 01 00 00 DB FE BA FC F9 E9 FD A4 [19:06:29]CommunicateWithHost err = 0 [19:06:29]CheckOFDResponse [19:06:29]1017 (14) - 77093643461234 [19:06:29]1041 (16) - 0000000000871829 [19:06:29]1040 (4) - 67558 [19:06:29]1012 (4) - 16.05.2024 12:50 [19:06:29]1206 (1) - 0 [19:06:29]OFD Sender: Remove packet 67558 [19:06:29]ProducePacketName [19:06:29]name=ofd_packets/00067558 [19:06:29]NVStorageDeleteData [19:06:29]Write to MH i2c: 01 00 00 A8 21 C9 [19:06:29]Write i2c OK [19:06:29]MH_I2C_Read... [19:06:29]Read from MH i2c: 01 [19:06:29]MH_I2C_Read... [19:06:29]Read from MH i2c: 01 07 00 [19:06:29]MH_I2C_Read... [19:06:29]Read from MH i2c: 01 07 00 A8 21 00 00 00 00 00 DD 0C B9 [19:06:29]RasterBufferAndPrint [19:06:29]line [19:06:29]line [19:06:29]line [19:06:29]line [19:06:29]line [19:06:29]written 0, free lines is 3298 [19:06:29]MH_Cut [19:06:29]Write to MH i2c: D1 01 00 AF 21 01 A2 [19:06:29]Write i2c OK [19:06:29]MH_I2C_Read... [19:06:29]Read from MH i2c: D1 [19:06:29]MH_I2C_Read... [19:06:29]Read from MH i2c: D1 01 00 [19:06:29]MH_I2C_Read... [19:06:29]Read from MH i2c: D1 01 00 AF 21 00 A1 [19:06:29]Write to MH i2c: 01 00 00 B0 21 D1 [19:06:29]Write i2c OK [19:06:29]MH_I2C_Read... [19:06:30]OFD Sender: No OFD packet to send [19:06:30]*** Cut start [19:06:30]*** Purtial cut [19:06:30]*** CUTSNS_PIN = 0 [19:06:30]*** Stage 1: CUTSNS_PIN = 1 [19:06:32]Read from MH i2c: 01 [19:06:32]MH_I2C_Read... [19:06:32]*** Stop cut motor [19:06:32]*** Cut end [19:06:32]Read from MH i2c: 01 07 00 [19:06:32]MH_I2C_Read... [19:06:32]Read from MH i2c: 01 07 00 B0 21 00 00 00 00 00 FF 0F E6 [19:06:32]process_action close_receipt done [19:06:32]requested_data is exist [19:06:32]produce_requested_data [19:06:32]requested_item fm.sn is exist - process it [19:06:32]wFMCommunicate request_size=4 [19:06:32]MH_SAM_APDU [19:06:32]CAPDU: 80 11 00 00 [19:06:32]Write to MH i2c: E2 08 00 B1 21 80 11 00 00 00 00 00 00 4C [19:06:32]Write i2c OK [19:06:32]MH_I2C_Read... [19:06:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:32]Read from MH i2c: E2 [19:06:32]MH_I2C_Read... [19:06:32]Read from MH i2c: E2 17 00 [19:06:32]MH_I2C_Read... [19:06:32]Read from MH i2c: E2 17 00 B1 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A2 [19:06:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:06:32]wFMCommunicate OK [19:06:32]requested_item fd.num is exist - process it [19:06:32]SAM_PROTO_GetFieldsCounters [19:06:32]wFMCommunicate request_size=4 [19:06:32]MH_SAM_APDU [19:06:32]CAPDU: 80 13 00 00 [19:06:32]Write to MH i2c: E2 08 00 B2 21 80 13 00 00 00 00 00 00 4F [19:06:32]Write i2c OK [19:06:32]MH_I2C_Read... [19:06:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:06:32]Read from MH i2c: E2 [19:06:32]MH_I2C_Read... [19:06:32]Read from MH i2c: E2 62 00 [19:06:32]MH_I2C_Read... [19:06:32]Read from MH i2c: E2 62 00 B2 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E6 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [19:06: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E6 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:06:32]wFMCommunicate OK [19:06:32]SAM_PROTO_GetFieldsCounters done [19:06:32]requested_item shift.num is exist - process it [19:06:32]requested_item shift.opened is exist - process it [19:06:32]req_shift_opened [19:06:32]FM_GetShiftState [19:06:32]SAM_PROTO_GetShiftState [19:06:32]wFMCommunicate request_size=4 [19:06:32]MH_SAM_APDU [19:06:32]CAPDU: 80 13 01 00 [19:06:32]Write to MH i2c: E2 08 00 B3 21 80 13 01 00 00 00 00 00 51 [19:06:32]Write i2c OK [19:06:32]MH_I2C_Read... [19:06:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:32]Read from MH i2c: E2 [19:06:32]MH_I2C_Read... [19:06:32]Read from MH i2c: E2 0E 00 [19:06:32]MH_I2C_Read... [19:06:32]Read from MH i2c: E2 0E 00 B3 21 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 FD [19:06:32]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [19:06:32]wFMCommunicate OK [19:06:32]SAM_PROTO_GetShiftState done [19:06:32]FM_GetShiftState done [19:06:32]req_shift_opened done [19:06:32]requested_item shift.open_date is exist - process it [19:06:32]req_shift_open_date [19:06:32]req_shift_open_date done [19:06:32]produce_requested_data done [19:06:32]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67558,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [19:06:32]process_action_free close_receipt [19:06:32]json_value_free [19:06:32]json_value_free done [19:06:32]process_json_proto returns [19:06:32]Send response to host [19:06:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67558,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [19:06:32]free response buf [19:06:32]execute_script done [19:06:32]execute_script returns [19:06:32]free content buf [19:06:32]Sock 9.Close socket [19:06:32]Sock 9.Thread stoped [19:06:35]OFD Sender: No OFD packet to send [19:06:40]OFD Sender: No OFD packet to send [19:06:45]OFD Sender: No OFD packet to send [19:06:50]OFD Sender: No OFD packet to send [19:06:55]OFD Sender: No OFD packet to send [19:07:00]OFD Sender: No OFD packet to send [19:07:05]OFD Sender: No OFD packet to send [19:07:10]OFD Sender: No OFD packet to send [19:07:15]OFD Sender: No OFD packet to send [19:07:20]OFD Sender: No OFD packet to send [19:07:25]OFD Sender: No OFD packet to send [19:07:30]OFD Sender: No OFD packet to send [19:07:35]OFD Sender: No OFD packet to send [19:07:40]OFD Sender: No OFD packet to send [19:07:45]OFD Sender: No OFD packet to send [19:07:50]OFD Sender: No OFD packet to send [19:07:55]OFD Sender: No OFD packet to send [19:08:00]OFD Sender: No OFD packet to send [19:08:05]OFD Sender: No OFD packet to send [19:08:10]OFD Sender: No OFD packet to send [19:08:10]accept exits with 8 [19:08:10]New connection [19:08:10]New thread 3067039076 created [19:08:10]Thread 3067182436 joined [19:08:10]Waiting for new connection... [19:08:10] Sock 8.Parse request [19:08:10]Sock 8.Check first char [19:08:10]Sock 8.First char is OK [19:08:10]request: POST /json_proto HTTP/1.0 [19:08:10]Method: POST [19:08:10]URL: /json_proto [19:08:10]Method is POST - this is cgi request [19:08:10]url: /json_proto [19:08:10]query_string will be loaded in cgi processing [19:08:10]execute_cgi json_proto POST (null) [19:08:10]execute_cgi path=json_proto method=POST [19:08:10]POST find Content-Length [19:08:10]Host: 172.17.41.195:8080 [19:08:10]Content-Length: 1209 [19:08:10]Content-Type: application/json [19:08:10] [19:08:10]POST finish read [19:08:10]Found Content-Length = 1209 [19:08:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507622\u000A16.05.2024 18:50\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 15.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1120.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:10]execute_script... [19:08:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507622\u000A16.05.2024 18:50\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 15.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1120.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:10]POST & json_proto [19:08:10]process_json_proto [19:08:10]json parsed OK: [19:08:10]protocol is kg_v1.0 [19:08:10]action value=print_text [19:08:10]process_action print_text [19:08:10]cmd_print_text [19:08:10]ExternCall_PrintAddStr [19:08:10]wPrintStart [19:08:10]Write to MH i2c: 01 00 00 B4 21 D5 [19:08:10]Write i2c OK [19:08:10]MH_I2C_Read... [19:08:10]Read from MH i2c: 01 [19:08:10]MH_I2C_Read... [19:08:10]Read from MH i2c: 01 07 00 [19:08:10]MH_I2C_Read... [19:08:10]Read from MH i2c: 01 07 00 B4 21 00 00 00 00 00 FF 0F EA [19:08:10]RasterBufferAndPrint [19:08:10]line *****ТОВАРНЫЙ ЧЕК***** [19:08:10]line АЗС-91 [19:08:10]line Партнер нефть [19:08:10]line 02508201610067 [19:08:10]line Кассир : Пайзулдаева А. [19:08:10]line Счет N : (1)507622 [19:08:10]line 16.05.2024 18:50 [19:08:10]line ПРОДАЖА [19:08:10]line ТРК (МРК, ГНК): 11 [19:08:10]line Вид ГСМ : 2710194210 [19:08:10]line ДТ-К-5 [19:08:10]line 15.000 x 74.70 [19:08:10]line ИТОГ: 1120.50 [19:08:10]line Тип оплаты: Талоны: Топливная Карта [19:08:10]line 02750 [19:08:10]line ______________________ [19:08:10]line (подпись) [19:08:10]written 0, free lines is 4095 [19:08:11]Write to MH i2c: 01 00 00 C8 21 E9 [19:08:11]Write i2c OK [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: 01 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: 01 07 00 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: 01 07 00 C8 21 00 00 00 00 00 0E 0E 0C [19:08:11]RasterBufferAndPrint [19:08:11]line [19:08:11]line [19:08:11]line [19:08:11]line [19:08:11]line [19:08:11]written 0, free lines is 3600 [19:08:11]MH_Cut [19:08:11]Write to MH i2c: D1 01 00 CF 21 01 C2 [19:08:11]Write i2c OK [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: D1 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: D1 01 00 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: D1 01 00 CF 21 00 C1 [19:08:11]Write to MH i2c: 01 00 00 D0 21 F1 [19:08:11]Write i2c OK [19:08:11]MH_I2C_Read... [19:08:11]*** Cut start [19:08:11]*** Purtial cut [19:08:11]*** Stage 1: CUTSNS_PIN = 1 [19:08:11]Read from MH i2c: 01 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: 01 07 00 [19:08:11]MH_I2C_Read... [19:08:11]*** Stop cut motor [19:08:11]*** Cut end [19:08:11]Read from MH i2c: 01 07 00 D0 21 00 00 00 00 00 FF 0F 06 [19:08:11]process_action print_text done [19:08:11]requested_data is exist [19:08:11]produce_requested_data [19:08:11]requested_item fm.sn is exist - process it [19:08:11]wFMCommunicate request_size=4 [19:08:11]MH_SAM_APDU [19:08:11]CAPDU: 80 11 00 00 [19:08:11]Write to MH i2c: E2 08 00 D1 21 80 11 00 00 00 00 00 00 6C [19:08:11]Write i2c OK [19:08:11]MH_I2C_Read... [19:08:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:11]Read from MH i2c: E2 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 17 00 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 17 00 D1 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C2 [19:08:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:08:11]wFMCommunicate OK [19:08:11]requested_item fd.num is exist - process it [19:08:11]SAM_PROTO_GetFieldsCounters [19:08:11]wFMCommunicate request_size=4 [19:08:11]MH_SAM_APDU [19:08:11]CAPDU: 80 13 00 00 [19:08:11]Write to MH i2c: E2 08 00 D2 21 80 13 00 00 00 00 00 00 6F [19:08:11]Write i2c OK [19:08:11]MH_I2C_Read... [19:08:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:08:12]Read from MH i2c: E2 [19:08:12]MH_I2C_Read... [19:08:12]Read from MH i2c: E2 62 00 [19:08:12]MH_I2C_Read... [19:08:12]Read from MH i2c: E2 62 00 D2 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E6 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [19: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E6 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:08:12]wFMCommunicate OK [19:08:12]SAM_PROTO_GetFieldsCounters done [19:08:12]requested_item shift.num is exist - process it [19:08:12]requested_item shift.opened is exist - process it [19:08:12]req_shift_opened [19:08:12]FM_GetShiftState [19:08:12]SAM_PROTO_GetShiftState [19:08:12]wFMCommunicate request_size=4 [19:08:12]MH_SAM_APDU [19:08:12]CAPDU: 80 13 01 00 [19:08:12]Write to MH i2c: E2 08 00 D3 21 80 13 01 00 00 00 00 00 71 [19:08:12]Write i2c OK [19:08:12]MH_I2C_Read... [19:08:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:12]Read from MH i2c: E2 [19:08:12]MH_I2C_Read... [19:08:12]Read from MH i2c: E2 0E 00 [19:08:12]MH_I2C_Read... [19:08:12]Read from MH i2c: E2 0E 00 D3 21 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 1D [19:08:12]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [19:08:12]wFMCommunicate OK [19:08:12]SAM_PROTO_GetShiftState done [19:08:12]FM_GetShiftState done [19:08:12]req_shift_opened done [19:08:12]requested_item shift.open_date is exist - process it [19:08:12]req_shift_open_date [19:08:12]req_shift_open_date done [19:08:12]produce_requested_data done [19:08:12]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67558,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [19:08:12]process_action_free print_text [19:08:12]json_value_free [19:08:12]json_value_free done [19:08:12]process_json_proto returns [19:08:12]Send response to host [19:08:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67558,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [19:08:12]free response buf [19:08:12]execute_script done [19:08:12]execute_script returns [19:08:12]free content buf [19:08:12]Sock 8.Close socket [19:08:12]Sock 8.Thread stoped [19:08:15]OFD Sender: No OFD packet to send [19:08:20]OFD Sender: No OFD packet to send [19:08:25]OFD Sender: No OFD packet to send [19:08:30]OFD Sender: No OFD packet to send [19:08:35]OFD Sender: No OFD packet to send [19:08:40]OFD Sender: No OFD packet to send [19:08:45]OFD Sender: No OFD packet to send [19:08:50]OFD Sender: No OFD packet to send [19:08:55]OFD Sender: No OFD packet to send [19:09:00]OFD Sender: No OFD packet to send [19:09:05]OFD Sender: No OFD packet to send [19:09:10]OFD Sender: No OFD packet to send [19:09:15]OFD Sender: No OFD packet to send [19:09:20]OFD Sender: No OFD packet to send [19:09:25]OFD Sender: No OFD packet to send [19:09:30]OFD Sender: No OFD packet to send [19:09:35]OFD Sender: No OFD packet to send [19:09:40]OFD Sender: No OFD packet to send [19:09:45]OFD Sender: No OFD packet to send [19:09:50]OFD Sender: No OFD packet to send [19:09:55]OFD Sender: No OFD packet to send [19:10:00]OFD Sender: No OFD packet to send [19:10:05]OFD Sender: No OFD packet to send [19:10:10]OFD Sender: No OFD packet to send [19:10:15]OFD Sender: No OFD packet to send [19:10:20]OFD Sender: No OFD packet to send [19:10:25]OFD Sender: No OFD packet to send [19:10:30]OFD Sender: No OFD packet to send [19:10:35]OFD Sender: No OFD packet to send [19:10:40]OFD Sender: No OFD packet to send [19:10:45]OFD Sender: No OFD packet to send [19:10:50]OFD Sender: No OFD packet to send [19:10:55]OFD Sender: No OFD packet to send [19:11:00]OFD Sender: No OFD packet to send [19:11:05]OFD Sender: No OFD packet to send [19:11:10]OFD Sender: No OFD packet to send [19:11:15]OFD Sender: No OFD packet to send [19:11:20]OFD Sender: No OFD packet to send [19:11:25]OFD Sender: No OFD packet to send [19:11:30]OFD Sender: No OFD packet to send [19:11:35]OFD Sender: No OFD packet to send [19:11:35]accept exits with 9 [19:11:35]New connection [19:11:35]New thread 3067182436 created [19:11:35]Thread 3067039076 joined [19:11:35]Waiting for new connection... [19:11:35] Sock 9.Parse request [19:11:35]Sock 9.Check first char [19:11:35]Sock 9.First char is OK [19:11:35]request: POST /json_proto HTTP/1.0 [19:11:35]Method: POST [19:11:35]URL: /json_proto [19:11:35]Method is POST - this is cgi request [19:11:35]url: /json_proto [19:11:35]query_string will be loaded in cgi processing [19:11:35]execute_cgi json_proto POST (null) [19:11:35]execute_cgi path=json_proto method=POST [19:11:35]POST find Content-Length [19:11:35]Host: 172.17.41.195:8080 [19:11:35]Content-Length: 1209 [19:11:35]Content-Type: application/json [19:11:35] [19:11:35]POST finish read [19:11:35]Found Content-Length = 1209 [19:11:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507623\u000A16.05.2024 18:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 24.100 x 74.70\u000A\u0418\u0422\u041E\u0413: 1800.27\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:11:35]execute_script... [19:11:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507623\u000A16.05.2024 18:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 24.100 x 74.70\u000A\u0418\u0422\u041E\u0413: 1800.27\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:11:35]POST & json_proto [19:11:35]process_json_proto [19:11:35]json parsed OK: [19:11:35]protocol is kg_v1.0 [19:11:35]action value=print_text [19:11:35]process_action print_text [19:11:35]cmd_print_text [19:11:35]ExternCall_PrintAddStr [19:11:35]wPrintStart [19:11:35]Write to MH i2c: 01 00 00 D4 21 F5 [19:11:35]Write i2c OK [19:11:35]MH_I2C_Read... [19:11:35]Read from MH i2c: 01 [19:11:35]MH_I2C_Read... [19:11:35]Read from MH i2c: 01 07 00 [19:11:35]MH_I2C_Read... [19:11:35]Read from MH i2c: 01 07 00 D4 21 00 00 00 00 00 FF 0F 0A [19:11:35]RasterBufferAndPrint [19:11:35]line *****ТОВАРНЫЙ ЧЕК***** [19:11:35]line АЗС-91 [19:11:35]line Партнер нефть [19:11:35]line 02508201610067 [19:11:35]line Кассир : Пайзулдаева А. [19:11:35]line Счет N : (1)507623 [19:11:35]line 16.05.2024 18:54 [19:11:35]line ПРОДАЖА [19:11:35]line ТРК (МРК, ГНК): 21 [19:11:35]line Вид ГСМ : 2710194210 [19:11:35]line ДТ-К-5 [19:11:35]line 24.100 x 74.70 [19:11:35]line ИТОГ: 1800.27 [19:11:35]line Тип оплаты: Талоны: Топливная Карта [19:11:35]line 02750 [19:11:35]line ______________________ [19:11:35]line (подпись) [19:11:35]written 0, free lines is 4095 [19:11:35]Write to MH i2c: 01 00 00 E8 21 09 [19:11:35]Write i2c OK [19:11:35]MH_I2C_Read... [19:11:35]Read from MH i2c: 01 [19:11:35]MH_I2C_Read... [19:11:35]Read from MH i2c: 01 07 00 [19:11:35]MH_I2C_Read... [19:11:35]Read from MH i2c: 01 07 00 E8 21 00 00 00 00 00 0F 0E 2D [19:11:35]RasterBufferAndPrint [19:11:35]line [19:11:35]line [19:11:35]line [19:11:35]line [19:11:35]line [19:11:35]written 0, free lines is 3600 [19:11:35]MH_Cut [19:11:35]Write to MH i2c: D1 01 00 EF 21 01 E2 [19:11:35]Write i2c OK [19:11:35]MH_I2C_Read... [19:11:35]Read from MH i2c: D1 [19:11:35]MH_I2C_Read... [19:11:35]Read from MH i2c: D1 01 00 [19:11:35]MH_I2C_Read... [19:11:35]Read from MH i2c: D1 01 00 EF 21 00 E1 [19:11:35]Write to MH i2c: 01 00 00 F0 21 11 [19:11:35]Write i2c OK [19:11:35]MH_I2C_Read... [19:11:36]*** Cut start [19:11:36]*** Purtial cut [19:11:36]*** CUTSNS_PIN = 0 [19:11:36]*** Stage 1: CUTSNS_PIN = 1 [19:11:38]Read from MH i2c: 01 [19:11:38]MH_I2C_Read... [19:11:38]Read from MH i2c: 01 07 00 [19:11:38]MH_I2C_Read... [19:11:38]*** Stop cut motor [19:11:38]*** Cut end [19:11:38]Read from MH i2c: 01 07 00 F0 21 00 00 00 00 00 FF 0F 26 [19:11:38]process_action print_text done [19:11:38]requested_data is exist [19:11:38]produce_requested_data [19:11:38]requested_item fm.sn is exist - process it [19:11:38]wFMCommunicate request_size=4 [19:11:38]MH_SAM_APDU [19:11:38]CAPDU: 80 11 00 00 [19:11:38]Write to MH i2c: E2 08 00 F1 21 80 11 00 00 00 00 00 00 8C [19:11:38]Write i2c OK [19:11:38]MH_I2C_Read... [19:11:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:38]Read from MH i2c: E2 [19:11:38]MH_I2C_Read... [19:11:38]Read from MH i2c: E2 17 00 [19:11:38]MH_I2C_Read... [19:11:38]Read from MH i2c: E2 17 00 F1 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E2 [19:11:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:11:38]wFMCommunicate OK [19:11:38]requested_item fd.num is exist - process it [19:11:38]SAM_PROTO_GetFieldsCounters [19:11:38]wFMCommunicate request_size=4 [19:11:38]MH_SAM_APDU [19:11:38]CAPDU: 80 13 00 00 [19:11:38]Write to MH i2c: E2 08 00 F2 21 80 13 00 00 00 00 00 00 8F [19:11:38]Write i2c OK [19:11:38]MH_I2C_Read... [19:11:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:11:38]Read from MH i2c: E2 [19:11:38]MH_I2C_Read... [19:11:38]Read from MH i2c: E2 62 00 [19:11:38]MH_I2C_Read... [19:11:38]Read from MH i2c: E2 62 00 F2 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E6 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [19:11:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E6 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:11:38]wFMCommunicate OK [19:11:38]SAM_PROTO_GetFieldsCounters done [19:11:38]requested_item shift.num is exist - process it [19:11:38]requested_item shift.opened is exist - process it [19:11:38]req_shift_opened [19:11:38]FM_GetShiftState [19:11:38]SAM_PROTO_GetShiftState [19:11:38]wFMCommunicate request_size=4 [19:11:38]MH_SAM_APDU [19:11:38]CAPDU: 80 13 01 00 [19:11:38]Write to MH i2c: E2 08 00 F3 21 80 13 01 00 00 00 00 00 91 [19:11:38]Write i2c OK [19:11:38]MH_I2C_Read... [19:11:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:38]Read from MH i2c: E2 [19:11:38]MH_I2C_Read... [19:11:38]Read from MH i2c: E2 0E 00 [19:11:38]MH_I2C_Read... [19:11:38]Read from MH i2c: E2 0E 00 F3 21 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 3D [19:11:38]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [19:11:38]wFMCommunicate OK [19:11:38]SAM_PROTO_GetShiftState done [19:11:38]FM_GetShiftState done [19:11:38]req_shift_opened done [19:11:38]requested_item shift.open_date is exist - process it [19:11:38]req_shift_open_date [19:11:38]req_shift_open_date done [19:11:38]produce_requested_data done [19:11:38]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67558,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [19:11:38]process_action_free print_text [19:11:38]json_value_free [19:11:38]json_value_free done [19:11:38]process_json_proto returns [19:11:38]Send response to host [19:11:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67558,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [19:11:38]free response buf [19:11:38]execute_script done [19:11:38]execute_script returns [19:11:38]free content buf [19:11:38]Sock 9.Close socket [19:11:38]Sock 9.Thread stoped [19:11:40]OFD Sender: No OFD packet to send [19:11:45]OFD Sender: No OFD packet to send [19:11:50]OFD Sender: No OFD packet to send [19:11:55]OFD Sender: No OFD packet to send [19:12:00]OFD Sender: No OFD packet to send [19:12:05]OFD Sender: No OFD packet to send [19:12:10]OFD Sender: No OFD packet to send [19:12:15]OFD Sender: No OFD packet to send [19:12:20]OFD Sender: No OFD packet to send [19:12:25]OFD Sender: No OFD packet to send [19:12:30]OFD Sender: No OFD packet to send [19:12:35]OFD Sender: No OFD packet to send [19:12:40]OFD Sender: No OFD packet to send [19:12:45]OFD Sender: No OFD packet to send [19:12:50]OFD Sender: No OFD packet to send [19:12:55]OFD Sender: No OFD packet to send [19:13:00]OFD Sender: No OFD packet to send [19:13:05]OFD Sender: No OFD packet to send [19:13:10]OFD Sender: No OFD packet to send [19:13:15]OFD Sender: No OFD packet to send [19:13:20]OFD Sender: No OFD packet to send [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:25]OFD Sender: No OFD packet to send [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:20]OFD Sender: No OFD packet to send [19:16:25]OFD Sender: No OFD packet to send [19:16:30]OFD Sender: No OFD packet to send [19:16:35]OFD Sender: No OFD packet to send [19:16:40]OFD Sender: No OFD packet to send [19:16:45]OFD Sender: No OFD packet to send [19:16:50]OFD Sender: No OFD packet to send [19:16:55]OFD Sender: No OFD packet to send [19:17:00]OFD Sender: No OFD packet to send [19:17:05]OFD Sender: No OFD packet to send [19:17:10]OFD Sender: No OFD packet to send [19:17:15]OFD Sender: No OFD packet to send [19:17:20]OFD Sender: No OFD packet to send [19:17:25]OFD Sender: No OFD packet to send [19:17:30]OFD Sender: No OFD packet to send [19:17:35]OFD Sender: No OFD packet to send [19:17:40]OFD Sender: No OFD packet to send [19:17:45]OFD Sender: No OFD packet to send [19:17:50]OFD Sender: No OFD packet to send [19:17:55]OFD Sender: No OFD packet to send [19:18:00]OFD Sender: No OFD packet to send [19:18:05]OFD Sender: No OFD packet to send [19:18:10]OFD Sender: No OFD packet to send [19:18:15]OFD Sender: No OFD packet to send [19:18:20]OFD Sender: No OFD packet to send [19:18:25]OFD Sender: No OFD packet to send [19:18:30]OFD Sender: No OFD packet to send [19:18:35]OFD Sender: No OFD packet to send [19:18:40]OFD Sender: No OFD packet to send [19:18:45]OFD Sender: No OFD packet to send [19:18:50]OFD Sender: No OFD packet to send [19:18:55]OFD Sender: No OFD packet to send [19:19:00]OFD Sender: No OFD packet to send [19:19:05]OFD Sender: No OFD packet to send [19:19:10]OFD Sender: No OFD packet to send [19:19:15]OFD Sender: No OFD packet to send [19:19:20]OFD Sender: No OFD packet to send [19:19:25]OFD Sender: No OFD packet to send [19:19:30]OFD Sender: No OFD packet to send [19:19:35]OFD Sender: No OFD packet to send [19:19:40]OFD Sender: No OFD packet to send [19:19:45]OFD Sender: No OFD packet to send [19:19:50]OFD Sender: No OFD packet to send [19:19:55]OFD Sender: No OFD packet to send [19:20:00]OFD Sender: No OFD packet to send [19:20:05]OFD Sender: No OFD packet to send [19:20:10]OFD Sender: No OFD packet to send [19:20:15]OFD Sender: No OFD packet to send [19:20:20]OFD Sender: No OFD packet to send [19:20:25]OFD Sender: No OFD packet to send [19:20:30]OFD Sender: No OFD packet to send [19:20:35]OFD Sender: No OFD packet to send [19:20:40]OFD Sender: No OFD packet to send [19:20:45]OFD Sender: No OFD packet to send [19:20:50]OFD Sender: No OFD packet to send [19:20:55]OFD Sender: No OFD packet to send [19:21:00]OFD Sender: No OFD packet to send [19:21:05]OFD Sender: No OFD packet to send [19:21:10]OFD Sender: No OFD packet to send [19:21:15]OFD Sender: No OFD packet to send [19:21:20]OFD Sender: No OFD packet to send [19:21:25]OFD Sender: No OFD packet to send [19:21:30]OFD Sender: No OFD packet to send [19:21:35]OFD Sender: No OFD packet to send [19:21:40]OFD Sender: No OFD packet to send [19:21:45]OFD Sender: No OFD packet to send [19:21:50]OFD Sender: No OFD packet to send [19:21:55]OFD Sender: No OFD packet to send [19:22:00]OFD Sender: No OFD packet to send [19:22:05]OFD Sender: No OFD packet to send [19:22:10]OFD Sender: No OFD packet to send [19:22:15]OFD Sender: No OFD packet to send [19:22:20]OFD Sender: No OFD packet to send [19:22:25]OFD Sender: No OFD packet to send [19:22:30]OFD Sender: No OFD packet to send [19:22:35]OFD Sender: No OFD packet to send [19:22:40]OFD Sender: No OFD packet to send [19:22:45]OFD Sender: No OFD packet to send [19:22:50]OFD Sender: No OFD packet to send [19:22:55]OFD Sender: No OFD packet to send [19:23:00]OFD Sender: No OFD packet to send [19:23:05]OFD Sender: No OFD packet to send [19:23:10]OFD Sender: No OFD packet to send [19:23:15]OFD Sender: No OFD packet to send [19:23:20]OFD Sender: No OFD packet to send [19:23:25]OFD Sender: No OFD packet to send [19:23:30]OFD Sender: No OFD packet to send [19:23:35]OFD Sender: No OFD packet to send [19:23:40]OFD Sender: No OFD packet to send [19:23:45]OFD Sender: No OFD packet to send [19:23:50]OFD Sender: No OFD packet to send [19:23:55]OFD Sender: No OFD packet to send [19:24:00]OFD Sender: No OFD packet to send [19:24:05]OFD Sender: No OFD packet to send [19:24:10]OFD Sender: No OFD packet to send [19:24:15]OFD Sender: No OFD packet to send [19:24:21]OFD Sender: No OFD packet to send [19:24:26]OFD Sender: No OFD packet to send [19:24:31]OFD Sender: No OFD packet to send [19:24:36]OFD Sender: No OFD packet to send [19:24:41]OFD Sender: No OFD packet to send [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:41]OFD Sender: No OFD packet to send [19:31:46]OFD Sender: No OFD packet to send [19:31:51]OFD Sender: No OFD packet to send [19:31:56]OFD Sender: No OFD packet to send [19:32:01]OFD Sender: No OFD packet to send [19:32:06]OFD Sender: No OFD packet to send [19:32:11]OFD Sender: No OFD packet to send [19:32:16]OFD Sender: No OFD packet to send [19:32:21]OFD Sender: No OFD packet to send [19:32:26]OFD Sender: No OFD packet to send [19:32:31]OFD Sender: No OFD packet to send [19:32:36]OFD Sender: No OFD packet to send [19:32:41]OFD Sender: No OFD packet to send [19:32:44]accept exits with 8 [19:32:44]New connection [19:32:44]New thread 3067039076 created [19:32:44]Thread 3067182436 joined [19:32:44]Waiting for new connection... [19:32:44] Sock 8.Parse request [19:32:44]Sock 8.Check first char [19:32:44]Sock 8.First char is OK [19:32:44]request: POST /json_proto HTTP/1.0 [19:32:44]Method: POST [19:32:44]URL: /json_proto [19:32:44]Method is POST - this is cgi request [19:32:44]url: /json_proto [19:32:44]query_string will be loaded in cgi processing [19:32:44]execute_cgi json_proto POST (null) [19:32:44]execute_cgi path=json_proto method=POST [19:32:44]POST find Content-Length [19:32:44]Host: 172.17.41.195:8080 [19:32:44]Content-Length: 816 [19:32:44]Content-Type: application/json [19:32:44] [19:32:44]POST finish read [19:32:44]Found Content-Length = 816 [19:32:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507624", "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.80, "quantity" : 5.990, "sum" : 400.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:32:44]execute_script... [19:32: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)507624", "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.80, "quantity" : 5.990, "sum" : 400.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:32:44]POST & json_proto [19:32:44]process_json_proto [19:32:44]json parsed OK: [19:32:44]protocol is kg_v1.0 [19:32:44]action value=close_receipt [19:32:44]process_action close_receipt [19:32:44]cmd_close_receipt [19:32:44]MH_GetDate [19:32:44]Write to MH i2c: F0 00 00 F4 21 04 [19:32:44]Write i2c OK [19:32:44]MH_I2C_Read... [19:32:44]Read from MH i2c: F0 [19:32:44]MH_I2C_Read... [19:32:44]Read from MH i2c: F0 09 00 [19:32:44]MH_I2C_Read... [19:32:44]Read from MH i2c: F0 09 00 F4 21 00 5E 5F 46 66 FC 21 6F 64 66 [19:32:44]GetLastDocTimeStamp 1715886389 [19:32:44]current date 1715887966 [19:32:44]FM_GetShiftState [19:32:44]SAM_PROTO_GetShiftState [19:32:44]wFMCommunicate request_size=4 [19:32:44]MH_SAM_APDU [19:32:44]CAPDU: 80 13 01 00 [19:32:44]Write to MH i2c: E2 08 00 F5 21 80 13 01 00 00 00 00 00 93 [19:32:44]Write i2c OK [19:32:44]MH_I2C_Read... [19:32:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:44]Read from MH i2c: E2 [19:32:44]MH_I2C_Read... [19:32:44]Read from MH i2c: E2 0E 00 [19:32:44]MH_I2C_Read... [19:32:44]Read from MH i2c: E2 0E 00 F5 21 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 3F [19:32:44]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [19:32:44]wFMCommunicate OK [19:32:44]SAM_PROTO_GetShiftState done [19:32:44]FM_GetShiftState done [19:32:44]opened in 1715818916 [19:32:44]opened+sec_in_day 1715905316 [19:32:44]quantity*price = 40013 [19:32:44]sum+1 = 40014 [19:32:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.13 НСП 1% : 3.54 НДС 12% : 42.49 Наличными: 0.00 Безнал.: 400.13 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 157 16.05.2024 19:32 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67559 ФПД: 161430843202508 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T193246&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67559&fm=161430843202508&tin=02508201610067®Number=0000000000091845&sum=40013 [19:32:45]StoreToDocumentArchive [19:32:45]shift 357 fd 67559 [19:32:45]save to /storage/0357/doc_00067559 [19:32:45]save last doc name /storage/0357/doc_00067559 to /storage/kkm_last_doc_name [19:32:45]save OK [19:32:45]Clear old archive folders... [19:32:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:32:45]tlvbuf is 01829DB0 [19:32:45]SAM_PROTO_ClearQueue [19:32:45]wFMCommunicate request_size=4 [19:32:45]MH_SAM_APDU [19:32:45]CAPDU: 80 09 00 00 [19:32:45]Write to MH i2c: E2 08 00 02 22 80 09 00 00 00 00 00 00 96 [19:32:45]Write i2c OK [19:32:45]MH_I2C_Read... [19:32:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:32:45]Read from MH i2c: E2 [19:32:45]MH_I2C_Read... [19:32:45]Read from MH i2c: E2 03 00 [19:32:45]MH_I2C_Read... [19:32:45]Read from MH i2c: E2 03 00 02 22 00 90 00 98 [19:32:45]RAPDU: 90 00 [19:32:45]wFMCommunicate OK [19:32:45]SAM_PROTO_ClearQueue done [19:32:45]KKMCreateOFDPacket [19:32:45]OFDProtocolAddRootSTLVToBuf [19:32:45]FM_MakeSignedData [19:32:45]FM_MakeSignedData [19:32:45]SAM_PROTO_SignData [19:32:45]wFMCommunicate request_size=4 [19:32:45]MH_SAM_APDU [19:32:45]CAPDU: 80 0D 01 02 [19:32:45]Write to MH i2c: E2 08 00 03 22 80 0D 01 02 00 00 00 00 9E [19:32:45]Write i2c OK [19:32:45]MH_I2C_Read... [19:32:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:32:45]Read from MH i2c: E2 [19:32:45]MH_I2C_Read... [19:32:45]Read from MH i2c: E2 03 00 [19:32:45]MH_I2C_Read... [19:32:45]Read from MH i2c: E2 03 00 03 22 00 90 00 99 [19:32:45]RAPDU: 90 00 [19:32:45]wFMCommunicate OK [19:32:45]wFMCommunicate request_size=255 [19:32:45]MH_SAM_APDU [19:32: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 17 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 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 99 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 5E 5F 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E7 07 01 00 35 04 06 00 92 [19:32:45]Write to MH i2c: E2 02 01 04 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 66 17 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 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 99 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 5E 5F 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E7 07 01 00 35 04 06 00 92 00 00 10 [19:32:45]Write i2c OK [19:32:45]MH_I2C_Read... [19:32:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:45]Read from MH i2c: E2 [19:32:45]MH_I2C_Read... [19:32:45]Read from MH i2c: E2 03 00 [19:32:45]MH_I2C_Read... [19:32:45]Read from MH i2c: E2 03 00 04 22 00 90 00 9A [19:32:45]RAPDU: 90 00 [19:32:45]wFMCommunicate OK [19:32:45]wFMCommunicate request_size=10 [19:32:45]MH_SAM_APDU [19:32:45]CAPDU: 80 0D 02 02 05 D2 0C 10 9B CC [19:32:45]Write to MH i2c: E2 0D 00 05 22 80 0D 02 02 05 00 D2 0C 10 9B CC 00 00 00 [19:32:45]Write i2c OK [19:32:45]MH_I2C_Read... [19:32:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:45]Read from MH i2c: E2 [19:32:45]MH_I2C_Read... [19:32:45]Read from MH i2c: E2 03 00 [19:32:45]MH_I2C_Read... [19:32:45]Read from MH i2c: E2 03 00 05 22 00 90 00 9B [19:32:45]RAPDU: 90 00 [19:32:45]wFMCommunicate OK [19:32:45]wFMCommunicate request_size=4 [19:32:45]MH_SAM_APDU [19:32:45]CAPDU: 80 0D 03 02 [19:32:45]Write to MH i2c: E2 08 00 06 22 80 0D 03 02 00 00 00 00 A3 [19:32:45]Write i2c OK [19:32:45]MH_I2C_Read... [19:32:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:32:45]Read from MH i2c: E2 [19:32:45]MH_I2C_Read... [19:32:45]Read from MH i2c: E2 0B 00 [19:32:45]MH_I2C_Read... [19:32:45]Read from MH i2c: E2 0B 00 06 22 00 06 87 D9 3D 5D A6 FC 46 90 00 8C [19:32:45]RAPDU: 06 87 D9 3D 5D A6 FC 46 90 00 [19:32:45]wFMCommunicate OK [19:32:45]SAM_PROTO_SignData done [19:32:45]FM_MakeSignedData done [19:32:45]CreateOFDProtocolMessage [19:32:45]wFMCommunicate request_size=4 [19:32:45]MH_SAM_APDU [19:32:45]CAPDU: 80 11 00 00 [19:32:45]Write to MH i2c: E2 08 00 07 22 80 11 00 00 00 00 00 00 A3 [19:32:45]Write i2c OK [19:32:45]MH_I2C_Read... [19:32:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:45]Read from MH i2c: E2 [19:32:45]MH_I2C_Read... [19:32:45]Read from MH i2c: E2 17 00 [19:32:45]MH_I2C_Read... [19:32:45]Read from MH i2c: E2 17 00 07 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F9 [19:32:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:32:45]wFMCommunicate OK [19:32:45]CreateOFDProtocolMessage done [19:32:45]OFDSenderStorePacket 67559 [19:32:45]StoreOFDPacket docnum=67559 [19:32:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 E3 F0 07 01 87 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 17 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 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 99 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 5E 5F 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E7 07 01 00 35 04 06 00 92 D2 0C 10 9B CC 06 87 D9 3D 5D A6 FC 46 [19:32:45]CheckFolder [19:32:45]dirname=/storage/ofd_packets [19:32:45]CheckFolder done [19:32:45]ProducePacketName [19:32:45]name=ofd_packets/00067559 [19:32:45]NVStorageSaveData ofd_packets/00067559 [19:32:45]File name is /storage/ofd_packets/00067559 [19:32:45]Write 301 bytes [19:32:45]NVStorageSaveData done [19:32:45]OFDSenderStorePacket done [19:32:45]KKMCreateOFDPacket done [19:32:45]NVStorageSaveData kkm_last_timestamp [19:32:45]File name is /storage/kkm_last_timestamp [19:32:45]Write 4 bytes [19:32:45]NVStorageSaveData done [19:32:45]ExternCall_PrintAddStr [19:32:45]wPrintStart [19:32:45]Write to MH i2c: 01 00 00 08 22 2A [19:32:45]Write i2c OK [19:32:45]MH_I2C_Read... [19:32:45]Read from MH i2c: 01 [19:32:45]MH_I2C_Read... [19:32:45]Read from MH i2c: 01 07 00 [19:32:45]MH_I2C_Read... [19:32:45]Read from MH i2c: 01 07 00 08 22 00 00 00 00 00 FF 0F 3F [19:32:45]RasterBufferAndPrint [19:32:45]line Счет N : (1)507624 [19:32:45]line ИНН: 02508201610067 [19:32:45]line Контрольно-Кассовый Чек [19:32:45]line ПРОДАЖА [19:32:45]line ТРК (МРК, ГНК) : 33 [19:32:45]line Товар: 2710124130 [19:32:45]line Аи-92-К-5 [19:32:45]line 5.990 * 66.80 [19:32:45]line = 400.13 [19:32:45]line НДС 12% НСП 1% [19:32:45]line > о реализуемом товаре [19:32:45]line ИТОГО: 400.13 [19:32:45]line НСП 1% : 3.54 [19:32:45]line НДС 12% : 42.49 [19:32:45]line Наличными: 0.00 [19:32:45]line Безнал.: 400.13 [19:32:45]line Место: АЗС № 91 "Партнер Нефть" [19:32:45]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:32:45]line СНО: Общий режим [19:32:45]line Чек 157 16.05.2024 19:32 [19:32:45]line Смена: 357 ФФД: 1.0 [19:32:45]line ЗНМ: 0300000119 [19:32:45]line РНМ: 0000000000091845 [19:32:45]line Версия ККМ: 001 [19:32:45]line Платежная система: Бакай Банк [19:32:45]line ФМ: 0000000000871829 [19:32:45]line ФД: 67559 [19:32:45]line ФПД: 161430843202508 [19:32:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T193246&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67559&fm=161430843202508&tin=02508201610067®Number=0000000000091845&sum=40013 [19:32:46]OFD Sender: Processing packet 67559 [packets to send 35, broken 34] [19:32:46]ProducePacketName [19:32:46]name=ofd_packets/00067559 [19:32:46]OFD Sender: To server: pG, [19:32:46]CommunicateWithHost lk.salyk.kg:30040 [19:32:46]ConnectInit lk.salyk.kg [19:32:46]written 0, free lines is 4095 [19:32:46]Connected sock=10 [19:32:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 E3 F0 07 01 87 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 17 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 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 99 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 5E 5F 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E7 07 01 00 35 04 06 00 92 D2 0C 10 9B CC 06 87 D9 3D 5D A6 FC 46 [19:32:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 54 BE 47 00 C9 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 38 32 39 10 04 04 00 E7 07 01 00 F4 03 04 00 38 07 46 66 B6 04 01 00 00 32 0C 1E 58 1E 31 71 50 [19:32:46]CommunicateWithHost err = 0 [19:32:46]CheckOFDResponse [19:32:46]1017 (14) - 77093643461234 [19:32:46]1041 (16) - 0000000000871829 [19:32:46]1040 (4) - 67559 [19:32:46]1012 (4) - 16.05.2024 13:16 [19:32:46]1206 (1) - 0 [19:32:46]OFD Sender: Remove packet 67559 [19:32:46]ProducePacketName [19:32:46]name=ofd_packets/00067559 [19:32:46]NVStorageDeleteData [19:32:46]Write to MH i2c: 01 00 00 31 22 53 [19:32:46]Write i2c OK [19:32:46]MH_I2C_Read... [19:32:46]Read from MH i2c: 01 [19:32:46]MH_I2C_Read... [19:32:46]Read from MH i2c: 01 07 00 [19:32:46]MH_I2C_Read... [19:32:46]Read from MH i2c: 01 07 00 31 22 00 00 00 00 00 F4 0C 5A [19:32:46]RasterBufferAndPrint [19:32:46]line [19:32:46]line [19:32:46]line [19:32:46]line [19:32:46]line [19:32:46]written 0, free lines is 3323 [19:32:46]MH_Cut [19:32:46]Write to MH i2c: D1 01 00 38 22 01 2C [19:32:46]Write i2c OK [19:32:46]MH_I2C_Read... [19:32:46]Read from MH i2c: D1 [19:32:46]MH_I2C_Read... [19:32:46]Read from MH i2c: D1 01 00 [19:32:46]MH_I2C_Read... [19:32:46]Read from MH i2c: D1 01 00 38 22 00 2B [19:32:46]Write to MH i2c: 01 00 00 39 22 5B [19:32:46]Write i2c OK [19:32:46]MH_I2C_Read... [19:32:46]OFD Sender: No OFD packet to send [19:32:47]*** Cut start [19:32:47]*** Purtial cut [19:32:47]*** Stage 1: CUTSNS_PIN = 1 [19:32:47]Read from MH i2c: 01 [19:32:47]MH_I2C_Read... [19:32:47]*** Stop cut motor [19:32:47]*** Cut end [19:32:47]Read from MH i2c: 01 07 00 [19:32:47]MH_I2C_Read... [19:32:47]Read from MH i2c: 01 07 00 39 22 00 00 00 00 00 FF 0F 70 [19:32:47]process_action close_receipt done [19:32:47]requested_data is exist [19:32:47]produce_requested_data [19:32:47]requested_item fm.sn is exist - process it [19:32:47]wFMCommunicate request_size=4 [19:32:47]MH_SAM_APDU [19:32:47]CAPDU: 80 11 00 00 [19:32:47]Write to MH i2c: E2 08 00 3A 22 80 11 00 00 00 00 00 00 D6 [19:32:47]Write i2c OK [19:32:47]MH_I2C_Read... [19:32:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:47]Read from MH i2c: E2 [19:32:47]MH_I2C_Read... [19:32:47]Read from MH i2c: E2 17 00 [19:32:47]MH_I2C_Read... [19:32:47]Read from MH i2c: E2 17 00 3A 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2C [19:32:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:32:47]wFMCommunicate OK [19:32:47]requested_item fd.num is exist - process it [19:32:47]SAM_PROTO_GetFieldsCounters [19:32:47]wFMCommunicate request_size=4 [19:32:47]MH_SAM_APDU [19:32:47]CAPDU: 80 13 00 00 [19:32:47]Write to MH i2c: E2 08 00 3B 22 80 13 00 00 00 00 00 00 D9 [19:32:47]Write i2c OK [19:32:47]MH_I2C_Read... [19:32:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:32:47]Read from MH i2c: E2 [19:32:47]MH_I2C_Read... [19:32:47]Read from MH i2c: E2 62 00 [19:32:47]MH_I2C_Read... [19:32:47]Read from MH i2c: E2 62 00 3B 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E7 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [19:32: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E7 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:32:47]wFMCommunicate OK [19:32:47]SAM_PROTO_GetFieldsCounters done [19:32:47]requested_item shift.num is exist - process it [19:32:47]requested_item shift.opened is exist - process it [19:32:47]req_shift_opened [19:32:47]FM_GetShiftState [19:32:47]SAM_PROTO_GetShiftState [19:32:47]wFMCommunicate request_size=4 [19:32:47]MH_SAM_APDU [19:32:47]CAPDU: 80 13 01 00 [19:32:47]Write to MH i2c: E2 08 00 3C 22 80 13 01 00 00 00 00 00 DB [19:32:47]Write i2c OK [19:32:47]MH_I2C_Read... [19:32:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:47]Read from MH i2c: E2 [19:32:47]MH_I2C_Read... [19:32:47]Read from MH i2c: E2 0E 00 [19:32:47]MH_I2C_Read... [19:32:47]Read from MH i2c: E2 0E 00 3C 22 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 87 [19:32:47]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [19:32:47]wFMCommunicate OK [19:32:47]SAM_PROTO_GetShiftState done [19:32:47]FM_GetShiftState done [19:32:47]req_shift_opened done [19:32:47]requested_item shift.open_date is exist - process it [19:32:47]req_shift_open_date [19:32:47]req_shift_open_date done [19:32:47]produce_requested_data done [19:32:47]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67559,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [19:32:47]process_action_free close_receipt [19:32:47]json_value_free [19:32:47]json_value_free done [19:32:47]process_json_proto returns [19:32:47]Send response to host [19:32:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67559,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [19:32:47]free response buf [19:32:47]execute_script done [19:32:47]execute_script returns [19:32:47]free content buf [19:32:47]Sock 8.Close socket [19:32:47]Sock 8.Thread stoped [19:32:51]OFD Sender: No OFD packet to send [19:32:56]OFD Sender: No OFD packet to send [19:33:01]OFD Sender: No OFD packet to send [19:33:06]OFD Sender: No OFD packet to send [19:33:11]OFD Sender: No OFD packet to send [19:33:16]OFD Sender: No OFD packet to send [19:33:21]OFD Sender: No OFD packet to send [19:33:26]OFD Sender: No OFD packet to send [19:33:31]OFD Sender: No OFD packet to send [19:33:36]OFD Sender: No OFD packet to send [19:33:41]OFD Sender: No OFD packet to send [19:33:46]OFD Sender: No OFD packet to send [19:33:51]OFD Sender: No OFD packet to send [19:33:56]OFD Sender: No OFD packet to send [19:34:01]OFD Sender: No OFD packet to send [19:34:06]OFD Sender: No OFD packet to send [19:34:11]OFD Sender: No OFD packet to send [19:34:16]OFD Sender: No OFD packet to send [19:34:21]OFD Sender: No OFD packet to send [19:34:26]OFD Sender: No OFD packet to send [19:34:31]OFD Sender: No OFD packet to send [19:34:36]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:57]OFD Sender: No OFD packet to send [19:35:02]OFD Sender: No OFD packet to send [19:35:07]OFD Sender: No OFD packet to send [19:35:12]OFD Sender: No OFD packet to send [19:35:17]OFD Sender: No OFD packet to send [19:35:22]OFD Sender: No OFD packet to send [19:35:27]OFD Sender: No OFD packet to send [19:35:32]OFD Sender: No OFD packet to send [19:35:37]OFD Sender: No OFD packet to send [19:35:42]OFD Sender: No OFD packet to send [19:35:47]OFD Sender: No OFD packet to send [19:35:52]OFD Sender: No OFD packet to send [19:35:57]OFD Sender: No OFD packet to send [19:36:02]OFD Sender: No OFD packet to send [19:36:07]OFD Sender: No OFD packet to send [19:36:12]OFD Sender: No OFD packet to send [19:36:17]OFD Sender: No OFD packet to send [19:36:22]OFD Sender: No OFD packet to send [19:36:27]OFD Sender: No OFD packet to send [19:36:32]OFD Sender: No OFD packet to send [19:36:37]OFD Sender: No OFD packet to send [19:36:42]OFD Sender: No OFD packet to send [19:36:47]OFD Sender: No OFD packet to send [19:36:52]OFD Sender: No OFD packet to send [19:36:57]OFD Sender: No OFD packet to send [19:37:02]OFD Sender: No OFD packet to send [19:37:07]OFD Sender: No OFD packet to send [19:37:12]OFD Sender: No OFD packet to send [19:37:17]OFD Sender: No OFD packet to send [19:37:22]OFD Sender: No OFD packet to send [19:37:27]OFD Sender: No OFD packet to send [19:37:32]OFD Sender: No OFD packet to send [19:37:37]OFD Sender: No OFD packet to send [19:37:42]OFD Sender: No OFD packet to send [19:37:47]OFD Sender: No OFD packet to send [19:37:52]OFD Sender: No OFD packet to send [19:37:57]OFD Sender: No OFD packet to send [19:38:02]OFD Sender: No OFD packet to send [19:38:07]OFD Sender: No OFD packet to send [19:38:12]OFD Sender: No OFD packet to send [19:38:17]OFD Sender: No OFD packet to send [19:38:22]OFD Sender: No OFD packet to send [19:38:27]OFD Sender: No OFD packet to send [19:38:32]OFD Sender: No OFD packet to send [19:38:37]OFD Sender: No OFD packet to send [19:38:42]OFD Sender: No OFD packet to send [19:38:47]OFD Sender: No OFD packet to send [19:38:52]OFD Sender: No OFD packet to send [19:38:57]OFD Sender: No OFD packet to send [19:39:02]OFD Sender: No OFD packet to send [19:39:07]OFD Sender: No OFD packet to send [19:39:12]OFD Sender: No OFD packet to send [19:39:17]OFD Sender: No OFD packet to send [19:39:22]OFD Sender: No OFD packet to send [19:39:27]OFD Sender: No OFD packet to send [19:39:32]OFD Sender: No OFD packet to send [19:39:37]OFD Sender: No OFD packet to send [19:39:40]accept exits with 9 [19:39:40]New connection [19:39:40]New thread 3067182436 created [19:39:40]Thread 3067039076 joined [19:39:40]Waiting for new connection... [19:39:40] Sock 9.Parse request [19:39:40]Sock 9.Check first char [19:39:40]Sock 9.First char is OK [19:39:40]request: POST /json_proto HTTP/1.0 [19:39:40]Method: POST [19:39:40]URL: /json_proto [19:39:40]Method is POST - this is cgi request [19:39:40]url: /json_proto [19:39:40]query_string will be loaded in cgi processing [19:39:40]execute_cgi json_proto POST (null) [19:39:40]execute_cgi path=json_proto method=POST [19:39:40]POST find Content-Length [19:39:40]Host: 172.17.41.195:8080 [19:39:40]Content-Length: 803 [19:39:40]Content-Type: application/json [19:39:40] [19:39:40]POST finish read [19:39:40]Found Content-Length = 803 [19:39:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507625", "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.80, "quantity" : 22.460, "sum" : 1500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:40]execute_script... [19:39: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)507625", "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.80, "quantity" : 22.460, "sum" : 1500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:40]POST & json_proto [19:39:40]process_json_proto [19:39:40]json parsed OK: [19:39:40]protocol is kg_v1.0 [19:39:40]action value=close_receipt [19:39:40]process_action close_receipt [19:39:40]cmd_close_receipt [19:39:40]MH_GetDate [19:39:40]Write to MH i2c: F0 00 00 3D 22 4E [19:39:40]Write i2c OK [19:39:40]MH_I2C_Read... [19:39:40]Read from MH i2c: F0 [19:39:40]MH_I2C_Read... [19:39:40]Read from MH i2c: F0 09 00 [19:39:40]MH_I2C_Read... [19:39:40]Read from MH i2c: F0 09 00 3D 22 00 FE 60 46 66 FC 21 6F 64 51 [19:39:40]GetLastDocTimeStamp 1715887966 [19:39:40]current date 1715888382 [19:39:40]FM_GetShiftState [19:39:40]SAM_PROTO_GetShiftState [19:39:40]wFMCommunicate request_size=4 [19:39:40]MH_SAM_APDU [19:39:40]CAPDU: 80 13 01 00 [19:39:40]Write to MH i2c: E2 08 00 3E 22 80 13 01 00 00 00 00 00 DD [19:39:40]Write i2c OK [19:39:40]MH_I2C_Read... [19:39:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:40]Read from MH i2c: E2 [19:39:40]MH_I2C_Read... [19:39:40]Read from MH i2c: E2 0E 00 [19:39:40]MH_I2C_Read... [19:39:40]Read from MH i2c: E2 0E 00 3E 22 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 89 [19:39:40]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [19:39:40]wFMCommunicate OK [19:39:40]SAM_PROTO_GetShiftState done [19:39:40]FM_GetShiftState done [19:39:40]opened in 1715818916 [19:39:40]opened+sec_in_day 1715905316 [19:39:40]quantity*price = 150032 [19:39:40]sum+1 = 150034 [19:39:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.33 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.33 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 158 16.05.2024 19:39 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67560 ФПД: 4784523263996 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T193942&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67560&fm=4784523263996&tin=02508201610067®Number=0000000000091845&sum=150033 [19:39:41]StoreToDocumentArchive [19:39:41]shift 357 fd 67560 [19:39:41]save to /storage/0357/doc_00067560 [19:39:41]save last doc name /storage/0357/doc_00067560 to /storage/kkm_last_doc_name [19:39:41]save OK [19:39:41]Clear old archive folders... [19:39:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:39:41]tlvbuf is B6F8D010 [19:39:41]SAM_PROTO_ClearQueue [19:39:41]wFMCommunicate request_size=4 [19:39:41]MH_SAM_APDU [19:39:41]CAPDU: 80 09 00 00 [19:39:41]Write to MH i2c: E2 08 00 4B 22 80 09 00 00 00 00 00 00 DF [19:39:41]Write i2c OK [19:39:41]MH_I2C_Read... [19:39:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:39:41]Read from MH i2c: E2 [19:39:41]MH_I2C_Read... [19:39:41]Read from MH i2c: E2 03 00 [19:39:41]MH_I2C_Read... [19:39:41]Read from MH i2c: E2 03 00 4B 22 00 90 00 E1 [19:39:41]RAPDU: 90 00 [19:39:41]wFMCommunicate OK [19:39:41]SAM_PROTO_ClearQueue done [19:39:41]KKMCreateOFDPacket [19:39:41]OFDProtocolAddRootSTLVToBuf [19:39:41]FM_MakeSignedData [19:39:41]FM_MakeSignedData [19:39:41]SAM_PROTO_SignData [19:39:41]wFMCommunicate request_size=4 [19:39:41]MH_SAM_APDU [19:39:41]CAPDU: 80 0D 01 02 [19:39:41]Write to MH i2c: E2 08 00 4C 22 80 0D 01 02 00 00 00 00 E7 [19:39:41]Write i2c OK [19:39:41]MH_I2C_Read... [19:39:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:39:41]Read from MH i2c: E2 [19:39:41]MH_I2C_Read... [19:39:41]Read from MH i2c: E2 03 00 [19:39:41]MH_I2C_Read... [19:39:41]Read from MH i2c: E2 03 00 4C 22 00 90 00 E2 [19:39:41]RAPDU: 90 00 [19:39:41]wFMCommunicate OK [19:39:41]wFMCommunicate request_size=255 [19:39:41]MH_SAM_APDU [19:39: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 BC 57 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 11 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 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 11 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 FE 60 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E8 07 01 00 35 04 06 00 04 [19:39:41]Write to MH i2c: E2 02 01 4D 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 BC 57 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 11 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 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 11 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 FE 60 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E8 07 01 00 35 04 06 00 04 00 00 04 [19:39:41]Write i2c OK [19:39:41]MH_I2C_Read... [19:39:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:41]Read from MH i2c: E2 [19:39:41]MH_I2C_Read... [19:39:41]Read from MH i2c: E2 03 00 [19:39:41]MH_I2C_Read... [19:39:41]Read from MH i2c: E2 03 00 4D 22 00 90 00 E3 [19:39:41]RAPDU: 90 00 [19:39:41]wFMCommunicate OK [19:39:41]wFMCommunicate request_size=10 [19:39:41]MH_SAM_APDU [19:39:41]CAPDU: 80 0D 02 02 05 59 FB CF 3F FC [19:39:41]Write to MH i2c: E2 0D 00 4E 22 80 0D 02 02 05 00 59 FB CF 3F FC 00 00 52 [19:39:41]Write i2c OK [19:39:41]MH_I2C_Read... [19:39:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:41]Read from MH i2c: E2 [19:39:41]MH_I2C_Read... [19:39:41]Read from MH i2c: E2 03 00 [19:39:41]MH_I2C_Read... [19:39:41]Read from MH i2c: E2 03 00 4E 22 00 90 00 E4 [19:39:41]RAPDU: 90 00 [19:39:41]wFMCommunicate OK [19:39:41]wFMCommunicate request_size=4 [19:39:41]MH_SAM_APDU [19:39:41]CAPDU: 80 0D 03 02 [19:39:41]Write to MH i2c: E2 08 00 4F 22 80 0D 03 02 00 00 00 00 EC [19:39:41]Write i2c OK [19:39:41]MH_I2C_Read... [19:39:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:39:41]Read from MH i2c: E2 [19:39:41]MH_I2C_Read... [19:39:41]Read from MH i2c: E2 0B 00 [19:39:41]MH_I2C_Read... [19:39:41]Read from MH i2c: E2 0B 00 4F 22 00 0C 47 C9 52 BE 93 CA A7 90 00 1D [19:39:41]RAPDU: 0C 47 C9 52 BE 93 CA A7 90 00 [19:39:41]wFMCommunicate OK [19:39:41]SAM_PROTO_SignData done [19:39:41]FM_MakeSignedData done [19:39:41]CreateOFDProtocolMessage [19:39:41]wFMCommunicate request_size=4 [19:39:41]MH_SAM_APDU [19:39:41]CAPDU: 80 11 00 00 [19:39:41]Write to MH i2c: E2 08 00 50 22 80 11 00 00 00 00 00 00 EC [19:39:41]Write i2c OK [19:39:41]MH_I2C_Read... [19:39:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:41]Read from MH i2c: E2 [19:39:41]MH_I2C_Read... [19:39:41]Read from MH i2c: E2 17 00 [19:39:41]MH_I2C_Read... [19:39:41]Read from MH i2c: E2 17 00 50 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 42 [19:39:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:39:41]wFMCommunicate OK [19:39:41]CreateOFDProtocolMessage done [19:39:41]OFDSenderStorePacket 67560 [19:39:41]StoreOFDPacket docnum=67560 [19:39:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 25 18 07 01 C2 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 BC 57 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 11 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 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 11 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 FE 60 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E8 07 01 00 35 04 06 00 04 59 FB CF 3F FC 0C 47 C9 52 BE 93 CA A7 [19:39:41]CheckFolder [19:39:41]dirname=/storage/ofd_packets [19:39:41]CheckFolder done [19:39:41]ProducePacketName [19:39:41]name=ofd_packets/00067560 [19:39:41]NVStorageSaveData ofd_packets/00067560 [19:39:41]File name is /storage/ofd_packets/00067560 [19:39:41]Write 301 bytes [19:39:41]NVStorageSaveData done [19:39:41]OFDSenderStorePacket done [19:39:41]KKMCreateOFDPacket done [19:39:41]NVStorageSaveData kkm_last_timestamp [19:39:41]File name is /storage/kkm_last_timestamp [19:39:41]Write 4 bytes [19:39:41]NVStorageSaveData done [19:39:41]ExternCall_PrintAddStr [19:39:41]wPrintStart [19:39:41]Write to MH i2c: 01 00 00 51 22 73 [19:39:41]Write i2c OK [19:39:41]MH_I2C_Read... [19:39:41]Read from MH i2c: 01 [19:39:41]MH_I2C_Read... [19:39:41]Read from MH i2c: 01 07 00 [19:39:41]MH_I2C_Read... [19:39:41]Read from MH i2c: 01 07 00 51 22 00 00 00 00 00 FF 0F 88 [19:39:41]RasterBufferAndPrint [19:39:41]line Счет N : (1)507625 [19:39:41]line ИНН: 02508201610067 [19:39:41]line Контрольно-Кассовый Чек [19:39:41]line ПРОДАЖА [19:39:41]line ТРК (МРК, ГНК) : 33 [19:39:41]line Товар: 2710124130 [19:39:41]line Аи-92-К-5 [19:39:41]line 22.460 * 66.80 [19:39:41]line = 1500.33 [19:39:41]line НДС 12% НСП 1% [19:39:41]line > о реализуемом товаре [19:39:41]line ИТОГО: 1500.33 [19:39:41]line НСП 1% : 13.28 [19:39:41]line НДС 12% : 159.33 [19:39:41]line Наличными: 0.00 [19:39:41]line Безнал.: 1500.33 [19:39:41]line Место: АЗС № 91 "Партнер Нефть" [19:39:41]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:39:41]line СНО: Общий режим [19:39:41]line Чек 158 16.05.2024 19:39 [19:39:41]line Смена: 357 ФФД: 1.0 [19:39:41]line ЗНМ: 0300000119 [19:39:41]line РНМ: 0000000000091845 [19:39:41]line Версия ККМ: 001 [19:39:41]line Платежная система: O! деньги [19:39:41]line ФМ: 0000000000871829 [19:39:41]line ФД: 67560 [19:39:41]line ФПД: 4784523263996 [19:39:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T193942&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67560&fm=4784523263996&tin=02508201610067®Number=0000000000091845&sum=150033 [19:39:41]written 0, free lines is 4095 [19:39:42]OFD Sender: Processing packet 67560 [packets to send 35, broken 34] [19:39:42]ProducePacketName [19:39:42]name=ofd_packets/00067560 [19:39:42]OFD Sender: To server: pG, [19:39:42]CommunicateWithHost lk.salyk.kg:30040 [19:39:42]ConnectInit lk.salyk.kg [19:39:42]Connected sock=10 [19:39: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 38 32 39 0F 01 00 00 25 18 07 01 C2 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 BC 57 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 11 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 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 11 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 FE 60 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E8 07 01 00 35 04 06 00 04 59 FB CF 3F FC 0C 47 C9 52 BE 93 CA A7 [19:39:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 CD 99 47 00 BA 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 38 32 39 10 04 04 00 E8 07 01 00 F4 03 04 00 D8 08 46 66 B6 04 01 00 00 D7 60 B3 B5 69 03 9A 03 [19:39:42]CommunicateWithHost err = 0 [19:39:42]CheckOFDResponse [19:39:42]1017 (14) - 77093643461234 [19:39:42]1041 (16) - 0000000000871829 [19:39:42]1040 (4) - 67560 [19:39:42]1012 (4) - 16.05.2024 13:23 [19:39:42]1206 (1) - 0 [19:39:42]OFD Sender: Remove packet 67560 [19:39:42]ProducePacketName [19:39:42]name=ofd_packets/00067560 [19:39:42]NVStorageDeleteData [19:39:42]Write to MH i2c: 01 00 00 7A 22 9C [19:39:42]Write i2c OK [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: 01 [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: 01 07 00 [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: 01 07 00 7A 22 00 00 00 00 00 F8 0C A7 [19:39:42]RasterBufferAndPrint [19:39:42]line [19:39:42]line [19:39:42]line [19:39:42]line [19:39:42]line [19:39:42]written 0, free lines is 3325 [19:39:42]MH_Cut [19:39:42]Write to MH i2c: D1 01 00 81 22 01 75 [19:39:42]Write i2c OK [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: D1 [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: D1 01 00 [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: D1 01 00 81 22 00 74 [19:39:42]Write to MH i2c: 01 00 00 82 22 A4 [19:39:42]Write i2c OK [19:39:42]MH_I2C_Read... [19:39:42]OFD Sender: No OFD packet to send [19:39:43]*** Cut start [19:39:43]*** Purtial cut [19:39:43]*** CUTSNS_PIN = 0 [19:39:43]*** Stage 1: CUTSNS_PIN = 1 [19:39:45]Read from MH i2c: 01 [19:39:45]MH_I2C_Read... [19:39:45]*** Stop cut motor [19:39:45]*** Cut end [19:39:45]Read from MH i2c: 01 07 00 [19:39:45]MH_I2C_Read... [19:39:45]Read from MH i2c: 01 07 00 82 22 00 00 00 00 00 FF 0F B9 [19:39:45]process_action close_receipt done [19:39:45]requested_data is exist [19:39:45]produce_requested_data [19:39:45]requested_item fm.sn is exist - process it [19:39:45]wFMCommunicate request_size=4 [19:39:45]MH_SAM_APDU [19:39:45]CAPDU: 80 11 00 00 [19:39:45]Write to MH i2c: E2 08 00 83 22 80 11 00 00 00 00 00 00 1F [19:39:45]Write i2c OK [19:39:45]MH_I2C_Read... [19:39:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:45]Read from MH i2c: E2 [19:39:45]MH_I2C_Read... [19:39:45]Read from MH i2c: E2 17 00 [19:39:45]MH_I2C_Read... [19:39:45]Read from MH i2c: E2 17 00 83 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 75 [19:39:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:39:45]wFMCommunicate OK [19:39:45]requested_item fd.num is exist - process it [19:39:45]SAM_PROTO_GetFieldsCounters [19:39:45]wFMCommunicate request_size=4 [19:39:45]MH_SAM_APDU [19:39:45]CAPDU: 80 13 00 00 [19:39:45]Write to MH i2c: E2 08 00 84 22 80 13 00 00 00 00 00 00 22 [19:39:45]Write i2c OK [19:39:45]MH_I2C_Read... [19:39:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:39:45]Read from MH i2c: E2 [19:39:45]MH_I2C_Read... [19:39:45]Read from MH i2c: E2 62 00 [19:39:45]MH_I2C_Read... [19:39:45]Read from MH i2c: E2 62 00 84 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E8 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [19:39:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E8 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:39:45]wFMCommunicate OK [19:39:45]SAM_PROTO_GetFieldsCounters done [19:39:45]requested_item shift.num is exist - process it [19:39:45]requested_item shift.opened is exist - process it [19:39:45]req_shift_opened [19:39:45]FM_GetShiftState [19:39:45]SAM_PROTO_GetShiftState [19:39:45]wFMCommunicate request_size=4 [19:39:45]MH_SAM_APDU [19:39:45]CAPDU: 80 13 01 00 [19:39:45]Write to MH i2c: E2 08 00 85 22 80 13 01 00 00 00 00 00 24 [19:39:45]Write i2c OK [19:39:45]MH_I2C_Read... [19:39:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:45]Read from MH i2c: E2 [19:39:45]MH_I2C_Read... [19:39:45]Read from MH i2c: E2 0E 00 [19:39:45]MH_I2C_Read... [19:39:45]Read from MH i2c: E2 0E 00 85 22 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 D0 [19:39:45]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [19:39:45]wFMCommunicate OK [19:39:45]SAM_PROTO_GetShiftState done [19:39:45]FM_GetShiftState done [19:39:45]req_shift_opened done [19:39:45]requested_item shift.open_date is exist - process it [19:39:45]req_shift_open_date [19:39:45]req_shift_open_date done [19:39:45]produce_requested_data done [19:39:45]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67560,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [19:39:45]process_action_free close_receipt [19:39:45]json_value_free [19:39:45]json_value_free done [19:39:45]process_json_proto returns [19:39:45]Send response to host [19:39:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67560,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [19:39:45]free response buf [19:39:45]execute_script done [19:39:45]execute_script returns [19:39:45]free content buf [19:39:45]Sock 9.Close socket [19:39:45]Sock 9.Thread stoped [19:39:47]OFD Sender: No OFD packet to send [19:39:52]OFD Sender: No OFD packet to send [19:39:57]OFD Sender: No OFD packet to send [19:40:02]OFD Sender: No OFD packet to send [19:40:07]OFD Sender: No OFD packet to send [19:40:12]OFD Sender: No OFD packet to send [19:40:17]OFD Sender: No OFD packet to send [19:40:22]OFD Sender: No OFD packet to send [19:40:26]accept exits with 8 [19:40:26]New connection [19:40:26]New thread 3067039076 created [19:40:26]Thread 3067182436 joined [19:40:26]Waiting for new connection... [19:40:26] Sock 8.Parse request [19:40:26]Sock 8.Check first char [19:40:26]Sock 8.First char is OK [19:40:26]request: POST /json_proto HTTP/1.0 [19:40:26]Method: POST [19:40:26]URL: /json_proto [19:40:26]Method is POST - this is cgi request [19:40:26]url: /json_proto [19:40:26]query_string will be loaded in cgi processing [19:40:26]execute_cgi json_proto POST (null) [19:40:26]execute_cgi path=json_proto method=POST [19:40:26]POST find Content-Length [19:40:26]Host: 172.17.41.195:8080 [19:40:26]Content-Length: 1209 [19:40:26]Content-Type: application/json [19:40:26] [19:40:26]POST finish read [19:40:26]Found Content-Length = 1209 [19:40:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507626\u000A16.05.2024 19:22\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 30.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2241.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03537\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:26]execute_script... [19:40:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507626\u000A16.05.2024 19:22\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 30.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2241.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03537\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:26]POST & json_proto [19:40:26]process_json_proto [19:40:26]json parsed OK: [19:40:26]protocol is kg_v1.0 [19:40:26]action value=print_text [19:40:26]process_action print_text [19:40:26]cmd_print_text [19:40:26]ExternCall_PrintAddStr [19:40:26]wPrintStart [19:40:26]Write to MH i2c: 01 00 00 86 22 A8 [19:40:26]Write i2c OK [19:40:26]MH_I2C_Read... [19:40:26]Read from MH i2c: 01 [19:40:26]MH_I2C_Read... [19:40:26]Read from MH i2c: 01 07 00 [19:40:26]MH_I2C_Read... [19:40:26]Read from MH i2c: 01 07 00 86 22 00 00 00 00 00 FF 0F BD [19:40:26]RasterBufferAndPrint [19:40:26]line *****ТОВАРНЫЙ ЧЕК***** [19:40:26]line АЗС-91 [19:40:26]line Партнер нефть [19:40:26]line 02508201610067 [19:40:26]line Кассир : Пайзулдаева А. [19:40:26]line Счет N : (1)507626 [19:40:26]line 16.05.2024 19:22 [19:40:26]line ПРОДАЖА [19:40:26]line ТРК (МРК, ГНК): 21 [19:40:26]line Вид ГСМ : 2710194210 [19:40:26]line ДТ-К-5 [19:40:26]line 30.000 x 74.70 [19:40:26]line ИТОГ: 2241.00 [19:40:26]line Тип оплаты: Талоны: Топливная Карта [19:40:26]line 03537 [19:40:26]line ______________________ [19:40:26]line (подпись) [19:40:26]written 0, free lines is 4095 [19:40:26]Write to MH i2c: 01 00 00 9A 22 BC [19:40:26]Write i2c OK [19:40:26]MH_I2C_Read... [19:40:26]Read from MH i2c: 01 [19:40:26]MH_I2C_Read... [19:40:26]Read from MH i2c: 01 07 00 [19:40:26]MH_I2C_Read... [19:40:26]Read from MH i2c: 01 07 00 9A 22 00 00 00 00 00 11 0E E2 [19:40:26]RasterBufferAndPrint [19:40:26]line [19:40:26]line [19:40:26]line [19:40:26]line [19:40:26]line [19:40:26]written 0, free lines is 3602 [19:40:26]MH_Cut [19:40:26]Write to MH i2c: D1 01 00 A1 22 01 95 [19:40:26]Write i2c OK [19:40:26]MH_I2C_Read... [19:40:26]Read from MH i2c: D1 [19:40:26]MH_I2C_Read... [19:40:26]Read from MH i2c: D1 01 00 [19:40:26]MH_I2C_Read... [19:40:26]Read from MH i2c: D1 01 00 A1 22 00 94 [19:40:26]Write to MH i2c: 01 00 00 A2 22 C4 [19:40:26]Write i2c OK [19:40:26]MH_I2C_Read... [19:40:26]*** Cut start [19:40:26]*** Purtial cut [19:40:26]*** Stage 1: CUTSNS_PIN = 1 [19:40:27]Read from MH i2c: 01 [19:40:27]MH_I2C_Read... [19:40:27]*** Stop cut motor [19:40:27]*** Cut end [19:40:27]Read from MH i2c: 01 07 00 [19:40:27]MH_I2C_Read... [19:40:27]Read from MH i2c: 01 07 00 A2 22 00 00 00 00 00 FF 0F D9 [19:40:27]process_action print_text done [19:40:27]requested_data is exist [19:40:27]produce_requested_data [19:40:27]requested_item fm.sn is exist - process it [19:40:27]wFMCommunicate request_size=4 [19:40:27]MH_SAM_APDU [19:40:27]CAPDU: 80 11 00 00 [19:40:27]Write to MH i2c: E2 08 00 A3 22 80 11 00 00 00 00 00 00 3F [19:40:27]Write i2c OK [19:40:27]MH_I2C_Read... [19:40:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:27]Read from MH i2c: E2 [19:40:27]MH_I2C_Read... [19:40:27]Read from MH i2c: E2 17 00 [19:40:27]MH_I2C_Read... [19:40:27]Read from MH i2c: E2 17 00 A3 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 95 [19:40:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:40:27]wFMCommunicate OK [19:40:27]requested_item fd.num is exist - process it [19:40:27]SAM_PROTO_GetFieldsCounters [19:40:27]wFMCommunicate request_size=4 [19:40:27]MH_SAM_APDU [19:40:27]CAPDU: 80 13 00 00 [19:40:27]Write to MH i2c: E2 08 00 A4 22 80 13 00 00 00 00 00 00 42 [19:40:27]Write i2c OK [19:40:27]MH_I2C_Read... [19:40:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:40:27]Read from MH i2c: E2 [19:40:27]MH_I2C_Read... [19:40:27]Read from MH i2c: E2 62 00 [19:40:27]MH_I2C_Read... [19:40:27]Read from MH i2c: E2 62 00 A4 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E8 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [19:40: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E8 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:40:27]wFMCommunicate OK [19:40:27]SAM_PROTO_GetFieldsCounters done [19:40:27]requested_item shift.num is exist - process it [19:40:27]requested_item shift.opened is exist - process it [19:40:27]req_shift_opened [19:40:27]FM_GetShiftState [19:40:27]SAM_PROTO_GetShiftState [19:40:27]wFMCommunicate request_size=4 [19:40:27]MH_SAM_APDU [19:40:27]CAPDU: 80 13 01 00 [19:40:27]Write to MH i2c: E2 08 00 A5 22 80 13 01 00 00 00 00 00 44 [19:40:27]Write i2c OK [19:40:27]MH_I2C_Read... [19:40:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:27]Read from MH i2c: E2 [19:40:27]MH_I2C_Read... [19:40:27]Read from MH i2c: E2 0E 00 [19:40:27]MH_I2C_Read... [19:40:27]Read from MH i2c: E2 0E 00 A5 22 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 F0 [19:40:27]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [19:40:27]wFMCommunicate OK [19:40:27]SAM_PROTO_GetShiftState done [19:40:27]FM_GetShiftState done [19:40:27]req_shift_opened done [19:40:27]requested_item shift.open_date is exist - process it [19:40:27]req_shift_open_date [19:40:27]req_shift_open_date done [19:40:27]produce_requested_data done [19:40:27]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67560,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [19:40:27]process_action_free print_text [19:40:27]json_value_free [19:40:27]json_value_free done [19:40:27]process_json_proto returns [19:40:27]Send response to host [19:40:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67560,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [19:40:27]free response buf [19:40:27]execute_script done [19:40:27]execute_script returns [19:40:27]free content buf [19:40:27]Sock 8.Close socket [19:40:27]Sock 8.Thread stoped [19:40:27]OFD Sender: No OFD packet to send [19:40:32]OFD Sender: No OFD packet to send [19:40:37]OFD Sender: No OFD packet to send [19:40:42]OFD Sender: No OFD packet to send [19:40:47]OFD Sender: No OFD packet to send [19:40:52]OFD Sender: No OFD packet to send [19:40:57]OFD Sender: No OFD packet to send [19:41:02]OFD Sender: No OFD packet to send [19:41:07]OFD Sender: No OFD packet to send [19:41:12]OFD Sender: No OFD packet to send [19:41:17]OFD Sender: No OFD packet to send [19:41:22]OFD Sender: No OFD packet to send [19:41:27]OFD Sender: No OFD packet to send [19:41:32]OFD Sender: No OFD packet to send [19:41:37]OFD Sender: No OFD packet to send [19:41:42]OFD Sender: No OFD packet to send [19:41:47]OFD Sender: No OFD packet to send [19:41:52]OFD Sender: No OFD packet to send [19:41:57]OFD Sender: No OFD packet to send [19:42:02]OFD Sender: No OFD packet to send [19:42:07]OFD Sender: No OFD packet to send [19:42:12]OFD Sender: No OFD packet to send [19:42:17]OFD Sender: No OFD packet to send [19:42:22]OFD Sender: No OFD packet to send [19:42:27]OFD Sender: No OFD packet to send [19:42:32]OFD Sender: No OFD packet to send [19:42:37]OFD Sender: No OFD packet to send [19:42:42]OFD Sender: No OFD packet to send [19:42:47]OFD Sender: No OFD packet to send [19:42:52]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:38]OFD Sender: No OFD packet to send [19:43:43]OFD Sender: No OFD packet to send [19:43:48]OFD Sender: No OFD packet to send [19:43:53]OFD Sender: No OFD packet to send [19:43:58]OFD Sender: No OFD packet to send [19:44:03]OFD Sender: No OFD packet to send [19:44:08]OFD Sender: No OFD packet to send [19:44:13]OFD Sender: No OFD packet to send [19:44:18]OFD Sender: No OFD packet to send [19:44:23]OFD Sender: No OFD packet to send [19:44:28]OFD Sender: No OFD packet to send [19:44:33]OFD Sender: No OFD packet to send [19:44:38]OFD Sender: No OFD packet to send [19:44:43]OFD Sender: No OFD packet to send [19:44:48]OFD Sender: No OFD packet to send [19:44:53]OFD Sender: No OFD packet to send [19:44:58]OFD Sender: No OFD packet to send [19:45:03]OFD Sender: No OFD packet to send [19:45:08]OFD Sender: No OFD packet to send [19:45:13]OFD Sender: No OFD packet to send [19:45:18]OFD Sender: No OFD packet to send [19:45:23]OFD Sender: No OFD packet to send [19:45:28]OFD Sender: No OFD packet to send [19:45:33]OFD Sender: No OFD packet to send [19:45:38]OFD Sender: No OFD packet to send [19:45:43]OFD Sender: No OFD packet to send [19:45:48]OFD Sender: No OFD packet to send [19:45:53]OFD Sender: No OFD packet to send [19:45:58]OFD Sender: No OFD packet to send [19:46:03]OFD Sender: No OFD packet to send [19:46:08]OFD Sender: No OFD packet to send [19:46:13]OFD Sender: No OFD packet to send [19:46:18]OFD Sender: No OFD packet to send [19:46:23]OFD Sender: No OFD packet to send [19:46:28]OFD Sender: No OFD packet to send [19:46:33]OFD Sender: No OFD packet to send [19:46:38]OFD Sender: No OFD packet to send [19:46:43]OFD Sender: No OFD packet to send [19:46:48]OFD Sender: No OFD packet to send [19:46:53]OFD Sender: No OFD packet to send [19:46:58]OFD Sender: No OFD packet to send [19:47:03]OFD Sender: No OFD packet to send [19:47:08]OFD Sender: No OFD packet to send [19:47:13]OFD Sender: No OFD packet to send [19:47:18]OFD Sender: No OFD packet to send [19:47:23]OFD Sender: No OFD packet to send [19:47:28]OFD Sender: No OFD packet to send [19:47:33]OFD Sender: No OFD packet to send [19:47:38]OFD Sender: No OFD packet to send [19:47:43]OFD Sender: No OFD packet to send [19:47:48]OFD Sender: No OFD packet to send [19:47:50]accept exits with 9 [19:47:50]New connection [19:47:50]New thread 3067182436 created [19:47:50]Thread 3067039076 joined [19:47:50]Waiting for new connection... [19:47:50] Sock 9.Parse request [19:47:50]Sock 9.Check first char [19:47:50]Sock 9.First char is OK [19:47:50]request: POST /json_proto HTTP/1.0 [19:47:50]Method: POST [19:47:50]URL: /json_proto [19:47:50]Method is POST - this is cgi request [19:47:50]url: /json_proto [19:47:50]query_string will be loaded in cgi processing [19:47:50]execute_cgi json_proto POST (null) [19:47:50]execute_cgi path=json_proto method=POST [19:47:50]POST find Content-Length [19:47:50]Host: 172.17.41.195:8080 [19:47:50]Content-Length: 677 [19:47:50]Content-Type: application/json [19:47:50] [19:47:50]POST finish read [19:47:50]Found Content-Length = 677 [19:47:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507627", "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.80, "quantity" : 7.490, "sum" : 500.33, "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:47:50]execute_script... [19:47: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)507627", "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.80, "quantity" : 7.490, "sum" : 500.33, "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:47:50]POST & json_proto [19:47:50]process_json_proto [19:47:50]json parsed OK: [19:47:50]protocol is kg_v1.0 [19:47:50]action value=close_receipt [19:47:50]process_action close_receipt [19:47:50]cmd_close_receipt [19:47:50]MH_GetDate [19:47:50]Write to MH i2c: F0 00 00 A6 22 B7 [19:47:50]Write i2c OK [19:47:50]MH_I2C_Read... [19:47:50]Read from MH i2c: F0 [19:47:50]MH_I2C_Read... [19:47:50]Read from MH i2c: F0 09 00 [19:47:50]MH_I2C_Read... [19:47:50]Read from MH i2c: F0 09 00 A6 22 00 E9 62 46 66 FC 21 6F 64 A7 [19:47:50]GetLastDocTimeStamp 1715888382 [19:47:50]current date 1715888873 [19:47:50]FM_GetShiftState [19:47:50]SAM_PROTO_GetShiftState [19:47:50]wFMCommunicate request_size=4 [19:47:50]MH_SAM_APDU [19:47:50]CAPDU: 80 13 01 00 [19:47:50]Write to MH i2c: E2 08 00 A7 22 80 13 01 00 00 00 00 00 46 [19:47:50]Write i2c OK [19:47:50]MH_I2C_Read... [19:47:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:50]Read from MH i2c: E2 [19:47:50]MH_I2C_Read... [19:47:50]Read from MH i2c: E2 0E 00 [19:47:50]MH_I2C_Read... [19:47:50]Read from MH i2c: E2 0E 00 A7 22 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 F2 [19:47:50]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [19:47:50]wFMCommunicate OK [19:47:50]SAM_PROTO_GetShiftState done [19:47:50]FM_GetShiftState done [19:47:50]opened in 1715818916 [19:47:50]opened+sec_in_day 1715905316 [19:47:50]quantity*price = 50033 [19:47:50]sum+1 = 50034 [19:47:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 159 16.05.2024 19:47 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67561 ФПД: 75556840375465 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T194753&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67561&fm=75556840375465&tin=02508201610067®Number=0000000000091845&sum=50000 [19:47:51]StoreToDocumentArchive [19:47:51]shift 357 fd 67561 [19:47:51]save to /storage/0357/doc_00067561 [19:47:51]save last doc name /storage/0357/doc_00067561 to /storage/kkm_last_doc_name [19:47:51]save OK [19:47:51]Clear old archive folders... [19:47:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:47:51]tlvbuf is 01794D50 [19:47:51]SAM_PROTO_ClearQueue [19:47:51]wFMCommunicate request_size=4 [19:47:51]MH_SAM_APDU [19:47:51]CAPDU: 80 09 00 00 [19:47:51]Write to MH i2c: E2 08 00 B4 22 80 09 00 00 00 00 00 00 48 [19:47:51]Write i2c OK [19:47:51]MH_I2C_Read... [19:47:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:47:51]Read from MH i2c: E2 [19:47:51]MH_I2C_Read... [19:47:51]Read from MH i2c: E2 03 00 [19:47:51]MH_I2C_Read... [19:47:51]Read from MH i2c: E2 03 00 B4 22 00 90 00 4A [19:47:51]RAPDU: 90 00 [19:47:51]wFMCommunicate OK [19:47:51]SAM_PROTO_ClearQueue done [19:47:51]KKMCreateOFDPacket [19:47:51]OFDProtocolAddRootSTLVToBuf [19:47:51]FM_MakeSignedData [19:47:51]FM_MakeSignedData [19:47:51]SAM_PROTO_SignData [19:47:51]wFMCommunicate request_size=4 [19:47:51]MH_SAM_APDU [19:47:51]CAPDU: 80 0D 01 02 [19:47:51]Write to MH i2c: E2 08 00 B5 22 80 0D 01 02 00 00 00 00 50 [19:47:51]Write i2c OK [19:47:51]MH_I2C_Read... [19:47:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:47:52]Read from MH i2c: E2 [19:47:52]MH_I2C_Read... [19:47:52]Read from MH i2c: E2 03 00 [19:47:52]MH_I2C_Read... [19:47:52]Read from MH i2c: E2 03 00 B5 22 00 90 00 4B [19:47:52]RAPDU: 90 00 [19:47:52]wFMCommunicate OK [19:47:52]wFMCommunicate request_size=255 [19:47:52]MH_SAM_APDU [19:47:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 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 E9 62 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E9 07 01 00 35 04 06 00 44 [19:47:52]Write to MH i2c: E2 02 01 B6 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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 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 E9 62 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E9 07 01 00 35 04 06 00 44 00 00 0C [19:47:52]Write i2c OK [19:47:52]MH_I2C_Read... [19:47:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:52]Read from MH i2c: E2 [19:47:52]MH_I2C_Read... [19:47:52]Read from MH i2c: E2 03 00 [19:47:52]MH_I2C_Read... [19:47:52]Read from MH i2c: E2 03 00 B6 22 00 90 00 4C [19:47:52]RAPDU: 90 00 [19:47:52]wFMCommunicate OK [19:47:52]wFMCommunicate request_size=10 [19:47:52]MH_SAM_APDU [19:47:52]CAPDU: 80 0D 02 02 05 B7 F2 A1 84 A9 [19:47:52]Write to MH i2c: E2 0D 00 B7 22 80 0D 02 02 05 00 B7 F2 A1 84 A9 00 00 D4 [19:47:52]Write i2c OK [19:47:52]MH_I2C_Read... [19:47:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:52]Read from MH i2c: E2 [19:47:52]MH_I2C_Read... [19:47:52]Read from MH i2c: E2 03 00 [19:47:52]MH_I2C_Read... [19:47:52]Read from MH i2c: E2 03 00 B7 22 00 90 00 4D [19:47:52]RAPDU: 90 00 [19:47:52]wFMCommunicate OK [19:47:52]wFMCommunicate request_size=4 [19:47:52]MH_SAM_APDU [19:47:52]CAPDU: 80 0D 03 02 [19:47:52]Write to MH i2c: E2 08 00 B8 22 80 0D 03 02 00 00 00 00 55 [19:47:52]Write i2c OK [19:47:52]MH_I2C_Read... [19:47:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:47:52]Read from MH i2c: E2 [19:47:52]MH_I2C_Read... [19:47:52]Read from MH i2c: E2 0B 00 [19:47:52]MH_I2C_Read... [19:47:52]Read from MH i2c: E2 0B 00 B8 22 00 55 23 13 AF 1C 56 3C 31 90 00 6F [19:47:52]RAPDU: 55 23 13 AF 1C 56 3C 31 90 00 [19:47:52]wFMCommunicate OK [19:47:52]SAM_PROTO_SignData done [19:47:52]FM_MakeSignedData done [19:47:52]CreateOFDProtocolMessage [19:47:52]wFMCommunicate request_size=4 [19:47:52]MH_SAM_APDU [19:47:52]CAPDU: 80 11 00 00 [19:47:52]Write to MH i2c: E2 08 00 B9 22 80 11 00 00 00 00 00 00 55 [19:47:52]Write i2c OK [19:47:52]MH_I2C_Read... [19:47:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:52]Read from MH i2c: E2 [19:47:52]MH_I2C_Read... [19:47:52]Read from MH i2c: E2 17 00 [19:47:52]MH_I2C_Read... [19:47:52]Read from MH i2c: E2 17 00 B9 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AB [19:47:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:47:52]wFMCommunicate OK [19:47:52]CreateOFDProtocolMessage done [19:47:52]OFDSenderStorePacket 67561 [19:47:52]StoreOFDPacket docnum=67561 [19:47:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 98 82 07 01 28 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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 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 E9 62 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E9 07 01 00 35 04 06 00 44 B7 F2 A1 84 A9 55 23 13 AF 1C 56 3C 31 [19:47:52]CheckFolder [19:47:52]dirname=/storage/ofd_packets [19:47:52]CheckFolder done [19:47:52]ProducePacketName [19:47:52]name=ofd_packets/00067561 [19:47:52]NVStorageSaveData ofd_packets/00067561 [19:47:52]File name is /storage/ofd_packets/00067561 [19:47:52]Write 301 bytes [19:47:52]NVStorageSaveData done [19:47:52]OFDSenderStorePacket done [19:47:52]KKMCreateOFDPacket done [19:47:52]NVStorageSaveData kkm_last_timestamp [19:47:52]File name is /storage/kkm_last_timestamp [19:47:52]Write 4 bytes [19:47:52]NVStorageSaveData done [19:47:52]ExternCall_PrintAddStr [19:47:52]wPrintStart [19:47:52]Write to MH i2c: 01 00 00 BA 22 DC [19:47:52]Write i2c OK [19:47:52]MH_I2C_Read... [19:47:52]Read from MH i2c: 01 [19:47:52]MH_I2C_Read... [19:47:52]Read from MH i2c: 01 07 00 [19:47:52]MH_I2C_Read... [19:47:52]Read from MH i2c: 01 07 00 BA 22 00 00 00 00 00 FF 0F F1 [19:47:52]RasterBufferAndPrint [19:47:52]line Счет N : (1)507627 [19:47:52]line ИНН: 02508201610067 [19:47:52]line Контрольно-Кассовый Чек [19:47:52]line ПРОДАЖА [19:47:52]line ТРК (МРК, ГНК) : 13 [19:47:52]line Товар: 2710124130 [19:47:52]line Аи-92-К-5 [19:47:52]line 7.490 * 66.80 [19:47:52]line = 500.33 [19:47:52]line НДС 12% НСП 1% [19:47:52]line > о реализуемом товаре [19:47:52]line ОКРУГЛЕНИЕ: -0.33 [19:47:52]line ИТОГО: 500.00 [19:47:52]line Внесено: 500.00 [19:47:52]line СДАЧА: 0.00 [19:47:52]line НСП 1% : 4.43 [19:47:52]line НДС 12% : 53.13 [19:47:52]line Наличными: 500.00 [19:47:52]line Безнал.: 0.00 [19:47:52]line Место: АЗС № 91 "Партнер Нефть" [19:47:52]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:47:52]line СНО: Общий режим [19:47:52]line Чек 159 16.05.2024 19:47 [19:47:52]line Смена: 357 ФФД: 1.0 [19:47:52]line ЗНМ: 0300000119 [19:47:52]line РНМ: 0000000000091845 [19:47:52]line Версия ККМ: 001 [19:47:52]line ФМ: 0000000000871829 [19:47:52]line ФД: 67561 [19:47:52]line ФПД: 75556840375465 [19:47:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T194753&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67561&fm=75556840375465&tin=02508201610067®Number=0000000000091845&sum=50000 [19:47:52]OFD Sender: Processing packet 67561 [packets to send 35, broken 34] [19:47:52]ProducePacketName [19:47:52]name=ofd_packets/00067561 [19:47:52]OFD Sender: To server: pG, [19:47:52]CommunicateWithHost lk.salyk.kg:30040 [19:47:52]ConnectInit lk.salyk.kg [19:47:52]written 0, free lines is 4095 [19:47:52]Connected sock=10 [19:47: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 38 32 39 0F 01 00 00 98 82 07 01 28 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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 00 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 E9 62 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E9 07 01 00 35 04 06 00 44 B7 F2 A1 84 A9 55 23 13 AF 1C 56 3C 31 [19:47:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 7F C0 47 00 9A 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 38 32 39 10 04 04 00 E9 07 01 00 F4 03 04 00 C2 0A 46 66 B6 04 01 00 00 EC 27 3D E5 AD 82 9F 83 [19:47:53]CommunicateWithHost err = 0 [19:47:53]CheckOFDResponse [19:47:53]1017 (14) - 77093643461234 [19:47:53]1041 (16) - 0000000000871829 [19:47:53]1040 (4) - 67561 [19:47:53]1012 (4) - 16.05.2024 13:31 [19:47:53]1206 (1) - 0 [19:47:53]OFD Sender: Remove packet 67561 [19:47:53]ProducePacketName [19:47:53]name=ofd_packets/00067561 [19:47:53]NVStorageDeleteData [19:47:53]Write to MH i2c: 01 00 00 E4 22 06 [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 E4 22 00 00 00 00 00 D2 0C EB [19:47:53]RasterBufferAndPrint [19:47:53]line [19:47:53]line [19:47:53]line [19:47:53]line [19:47:53]line [19:47:53]written 0, free lines is 3288 [19:47:53]MH_Cut [19:47:53]Write to MH i2c: D1 01 00 EB 22 01 DF [19:47:53]Write i2c OK [19:47:53]MH_I2C_Read... [19:47:53]Read from MH i2c: D1 [19:47:53]MH_I2C_Read... [19:47:53]Read from MH i2c: D1 01 00 [19:47:53]MH_I2C_Read... [19:47:53]Read from MH i2c: D1 01 00 EB 22 00 DE [19:47:53]Write to MH i2c: 01 00 00 EC 22 0E [19:47:53]Write i2c OK [19:47:53]MH_I2C_Read... [19:47:53]OFD Sender: No OFD packet to send [19:47:53]*** Cut start [19:47:53]*** Purtial cut [19:47:53]*** CUTSNS_PIN = 0 [19:47:54]*** Stage 1: CUTSNS_PIN = 1 [19:47:56]Read from MH i2c: 01 [19:47:56]MH_I2C_Read... [19:47:56]*** Stop cut motor [19:47:56]*** Cut end [19:47:56]Read from MH i2c: 01 07 00 [19:47:56]MH_I2C_Read... [19:47:56]Read from MH i2c: 01 07 00 EC 22 00 00 00 00 00 FF 0F 23 [19:47:56]process_action close_receipt done [19:47:56]requested_data is exist [19:47:56]produce_requested_data [19:47:56]requested_item fm.sn is exist - process it [19:47:56]wFMCommunicate request_size=4 [19:47:56]MH_SAM_APDU [19:47:56]CAPDU: 80 11 00 00 [19:47:56]Write to MH i2c: E2 08 00 ED 22 80 11 00 00 00 00 00 00 89 [19:47:56]Write i2c OK [19:47:56]MH_I2C_Read... [19:47:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:56]Read from MH i2c: E2 [19:47:56]MH_I2C_Read... [19:47:56]Read from MH i2c: E2 17 00 [19:47:56]MH_I2C_Read... [19:47:56]Read from MH i2c: E2 17 00 ED 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DF [19:47:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:47:56]wFMCommunicate OK [19:47:56]requested_item fd.num is exist - process it [19:47:56]SAM_PROTO_GetFieldsCounters [19:47:56]wFMCommunicate request_size=4 [19:47:56]MH_SAM_APDU [19:47:56]CAPDU: 80 13 00 00 [19:47:56]Write to MH i2c: E2 08 00 EE 22 80 13 00 00 00 00 00 00 8C [19:47:56]Write i2c OK [19:47:56]MH_I2C_Read... [19:47:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:47:56]Read from MH i2c: E2 [19:47:56]MH_I2C_Read... [19:47:56]Read from MH i2c: E2 62 00 [19:47:56]MH_I2C_Read... [19:47:56]Read from MH i2c: E2 62 00 EE 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E9 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [19:47: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E9 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:47:56]wFMCommunicate OK [19:47:56]SAM_PROTO_GetFieldsCounters done [19:47:56]requested_item shift.num is exist - process it [19:47:56]requested_item shift.opened is exist - process it [19:47:56]req_shift_opened [19:47:56]FM_GetShiftState [19:47:56]SAM_PROTO_GetShiftState [19:47:56]wFMCommunicate request_size=4 [19:47:56]MH_SAM_APDU [19:47:56]CAPDU: 80 13 01 00 [19:47:56]Write to MH i2c: E2 08 00 EF 22 80 13 01 00 00 00 00 00 8E [19:47:56]Write i2c OK [19:47:56]MH_I2C_Read... [19:47:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:56]Read from MH i2c: E2 [19:47:56]MH_I2C_Read... [19:47:56]Read from MH i2c: E2 0E 00 [19:47:56]MH_I2C_Read... [19:47:56]Read from MH i2c: E2 0E 00 EF 22 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 3A [19:47:56]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [19:47:56]wFMCommunicate OK [19:47:56]SAM_PROTO_GetShiftState done [19:47:56]FM_GetShiftState done [19:47:56]req_shift_opened done [19:47:56]requested_item shift.open_date is exist - process it [19:47:56]req_shift_open_date [19:47:56]req_shift_open_date done [19:47:56]produce_requested_data done [19:47:56]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67561,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [19:47:56]process_action_free close_receipt [19:47:56]json_value_free [19:47:56]json_value_free done [19:47:56]process_json_proto returns [19:47:56]Send response to host [19:47:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67561,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [19:47:56]free response buf [19:47:56]execute_script done [19:47:56]execute_script returns [19:47:56]free content buf [19:47:56]Sock 9.Close socket [19:47:56]Sock 9.Thread stoped [19:47:58]OFD Sender: No OFD packet to send [19:48:03]OFD Sender: No OFD packet to send [19:48:08]OFD Sender: No OFD packet to send [19:48:13]OFD Sender: No OFD packet to send [19:48:18]OFD Sender: No OFD packet to send [19:48:23]OFD Sender: No OFD packet to send [19:48:28]OFD Sender: No OFD packet to send [19:48:33]OFD Sender: No OFD packet to send [19:48:38]OFD Sender: No OFD packet to send [19:48:43]OFD Sender: No OFD packet to send [19:48:48]OFD Sender: No OFD packet to send [19:48:53]OFD Sender: No OFD packet to send [19:48:58]OFD Sender: No OFD packet to send [19:49:03]OFD Sender: No OFD packet to send [19:49:08]OFD Sender: No OFD packet to send [19:49:13]OFD Sender: No OFD packet to send [19:49:18]OFD Sender: No OFD packet to send [19:49:23]OFD Sender: No OFD packet to send [19:49:28]OFD Sender: No OFD packet to send [19:49:33]OFD Sender: No OFD packet to send [19:49:38]OFD Sender: No OFD packet to send [19:49:43]OFD Sender: No OFD packet to send [19:49:48]OFD Sender: No OFD packet to send [19:49:53]OFD Sender: No OFD packet to send [19:49:58]OFD Sender: No OFD packet to send [19:50:03]OFD Sender: No OFD packet to send [19:50:08]OFD Sender: No OFD packet to send [19:50:13]OFD Sender: No OFD packet to send [19:50:18]OFD Sender: No OFD packet to send [19:50:23]OFD Sender: No OFD packet to send [19:50:28]OFD Sender: No OFD packet to send [19:50:33]OFD Sender: No OFD packet to send [19:50:38]OFD Sender: No OFD packet to send [19:50:43]OFD Sender: No OFD packet to send [19:50:48]OFD Sender: No OFD packet to send [19:50:53]OFD Sender: No OFD packet to send [19:50:58]OFD Sender: No OFD packet to send [19:51:03]OFD Sender: No OFD packet to send [19:51:08]OFD Sender: No OFD packet to send [19:51:13]OFD Sender: No OFD packet to send [19:51:18]OFD Sender: No OFD packet to send [19:51:23]OFD Sender: No OFD packet to send [19:51:28]OFD Sender: No OFD packet to send [19:51:33]OFD Sender: No OFD packet to send [19:51:38]OFD Sender: No OFD packet to send [19:51:43]OFD Sender: No OFD packet to send [19:51:48]OFD Sender: No OFD packet to send [19:51:53]OFD Sender: No OFD packet to send [19:51:58]OFD Sender: No OFD packet to send [19:52:03]OFD Sender: No OFD packet to send [19:52:08]OFD Sender: No OFD packet to send [19:52:13]OFD Sender: No OFD packet to send [19:52:18]OFD Sender: No OFD packet to send [19:52:23]OFD Sender: No OFD packet to send [19:52:28]OFD Sender: No OFD packet to send [19:52:33]OFD Sender: No OFD packet to send [19:52:38]OFD Sender: No OFD packet to send [19:52:43]OFD Sender: No OFD packet to send [19:52:48]OFD Sender: No OFD packet to send [19:52:53]OFD Sender: No OFD packet to send [19:52:58]OFD Sender: No OFD packet to send [19:53:03]OFD Sender: No OFD packet to send [19:53:08]OFD Sender: No OFD packet to send [19:53:13]OFD Sender: No OFD packet to send [19:53:18]OFD Sender: No OFD packet to send [19:53:23]OFD Sender: No OFD packet to send [19:53:28]OFD Sender: No OFD packet to send [19:53:33]OFD Sender: No OFD packet to send [19:53:38]OFD Sender: No OFD packet to send [19:53:43]OFD Sender: No OFD packet to send [19:53:48]OFD Sender: No OFD packet to send [19:53:53]OFD Sender: No OFD packet to send [19:53:58]OFD Sender: No OFD packet to send [19:54:03]OFD Sender: No OFD packet to send [19:54:08]OFD Sender: No OFD packet to send [19:54:13]OFD Sender: No OFD packet to send [19:54:18]OFD Sender: No OFD packet to send [19:54:23]OFD Sender: No OFD packet to send [19:54:28]OFD Sender: No OFD packet to send [19:54:33]OFD Sender: No OFD packet to send [19:54:38]OFD Sender: No OFD packet to send [19:54:43]OFD Sender: No OFD packet to send [19:54:48]OFD Sender: No OFD packet to send [19:54:53]OFD Sender: No OFD packet to send [19:54:58]OFD Sender: No OFD packet to send [19:55:03]OFD Sender: No OFD packet to send [19:55:08]OFD Sender: No OFD packet to send [19:55:13]OFD Sender: No OFD packet to send [19:55:18]OFD Sender: No OFD packet to send [19:55:23]OFD Sender: No OFD packet to send [19:55:28]OFD Sender: No OFD packet to send [19:55:33]OFD Sender: No OFD packet to send [19:55:38]OFD Sender: No OFD packet to send [19:55:43]OFD Sender: No OFD packet to send [19:55:48]OFD Sender: No OFD packet to send [19:55:53]OFD Sender: No OFD packet to send [19:55:58]OFD Sender: No OFD packet to send [19:56:04]OFD Sender: No OFD packet to send [19:56:09]OFD Sender: No OFD packet to send [19:56:14]OFD Sender: No OFD packet to send [19:56:19]OFD Sender: No OFD packet to send [19:56:24]OFD Sender: No OFD packet to send [19:56:29]OFD Sender: No OFD packet to send [19:56:34]OFD Sender: No OFD packet to send [19:56:39]OFD Sender: No OFD packet to send [19:56:44]OFD Sender: No OFD packet to send [19:56:49]OFD Sender: No OFD packet to send [19:56:54]OFD Sender: No OFD packet to send [19:56:59]OFD Sender: No OFD packet to send [19:57:04]OFD Sender: No OFD packet to send [19:57:09]OFD Sender: No OFD packet to send [19:57:14]OFD Sender: No OFD packet to send [19:57:19]OFD Sender: No OFD packet to send [19:57:24]OFD Sender: No OFD packet to send [19:57:24]accept exits with 8 [19:57:24]New connection [19:57:24]New thread 3067039076 created [19:57:24]Thread 3067182436 joined [19:57:24]Waiting for new connection... [19:57:24] Sock 8.Parse request [19:57:24]Sock 8.Check first char [19:57:24]Sock 8.First char is OK [19:57:24]request: POST /json_proto HTTP/1.0 [19:57:24]Method: POST [19:57:24]URL: /json_proto [19:57:24]Method is POST - this is cgi request [19:57:24]url: /json_proto [19:57:24]query_string will be loaded in cgi processing [19:57:24]execute_cgi json_proto POST (null) [19:57:24]execute_cgi path=json_proto method=POST [19:57:24]POST find Content-Length [19:57:24]Host: 172.17.41.195:8080 [19:57:24]Content-Length: 803 [19:57:24]Content-Type: application/json [19:57:24] [19:57:24]POST finish read [19:57:24]Found Content-Length = 803 [19:57:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507628", "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.80, "quantity" : 16.470, "sum" : 1100.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1100.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:57:24]execute_script... [19:57: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)507628", "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.80, "quantity" : 16.470, "sum" : 1100.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1100.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:57:24]POST & json_proto [19:57:24]process_json_proto [19:57:24]json parsed OK: [19:57:24]protocol is kg_v1.0 [19:57:24]action value=close_receipt [19:57:24]process_action close_receipt [19:57:24]cmd_close_receipt [19:57:24]MH_GetDate [19:57:24]Write to MH i2c: F0 00 00 F0 22 01 [19:57:24]Write i2c OK [19:57:24]MH_I2C_Read... [19:57:24]Read from MH i2c: F0 [19:57:24]MH_I2C_Read... [19:57:24]Read from MH i2c: F0 09 00 [19:57:24]MH_I2C_Read... [19:57:24]Read from MH i2c: F0 09 00 F0 22 00 26 65 46 66 FC 21 6F 64 31 [19:57:24]GetLastDocTimeStamp 1715888873 [19:57:24]current date 1715889446 [19:57:24]FM_GetShiftState [19:57:24]SAM_PROTO_GetShiftState [19:57:24]wFMCommunicate request_size=4 [19:57:24]MH_SAM_APDU [19:57:24]CAPDU: 80 13 01 00 [19:57:24]Write to MH i2c: E2 08 00 F1 22 80 13 01 00 00 00 00 00 90 [19:57:24]Write i2c OK [19:57:24]MH_I2C_Read... [19:57:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:24]Read from MH i2c: E2 [19:57:24]MH_I2C_Read... [19:57:24]Read from MH i2c: E2 0E 00 [19:57:24]MH_I2C_Read... [19:57:24]Read from MH i2c: E2 0E 00 F1 22 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 3C [19:57:24]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [19:57:24]wFMCommunicate OK [19:57:24]SAM_PROTO_GetShiftState done [19:57:24]FM_GetShiftState done [19:57:24]opened in 1715818916 [19:57:24]opened+sec_in_day 1715905316 [19:57:24]quantity*price = 110019 [19:57:24]sum+1 = 110021 [19:57:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1100.20 НСП 1% : 9.74 НДС 12% : 116.83 Наличными: 0.00 Безнал.: 1100.20 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 160 16.05.2024 19:57 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67562 ФПД: 176583247318295 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T195726&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67562&fm=176583247318295&tin=02508201610067®Number=0000000000091845&sum=110020 [19:57:25]StoreToDocumentArchive [19:57:25]shift 357 fd 67562 [19:57:25]save to /storage/0357/doc_00067562 [19:57:25]save last doc name /storage/0357/doc_00067562 to /storage/kkm_last_doc_name [19:57:25]save OK [19:57:25]Clear old archive folders... [19:57:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:57:25]tlvbuf is 017EB410 [19:57:25]SAM_PROTO_ClearQueue [19:57:25]wFMCommunicate request_size=4 [19:57:25]MH_SAM_APDU [19:57:25]CAPDU: 80 09 00 00 [19:57:25]Write to MH i2c: E2 08 00 FE 22 80 09 00 00 00 00 00 00 92 [19:57:25]Write i2c OK [19:57:25]MH_I2C_Read... [19:57:25]Read from MH i2c: E2 [19:57:25]MH_I2C_Read... [19:57:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:57:25]Read from MH i2c: E2 03 00 [19:57:25]MH_I2C_Read... [19:57:25]Read from MH i2c: E2 03 00 FE 22 00 90 00 94 [19:57:25]RAPDU: 90 00 [19:57:25]wFMCommunicate OK [19:57:25]SAM_PROTO_ClearQueue done [19:57:25]KKMCreateOFDPacket [19:57:25]OFDProtocolAddRootSTLVToBuf [19:57:25]FM_MakeSignedData [19:57:25]FM_MakeSignedData [19:57:25]SAM_PROTO_SignData [19:57:25]wFMCommunicate request_size=4 [19:57:25]MH_SAM_APDU [19:57:25]CAPDU: 80 0D 01 02 [19:57:25]Write to MH i2c: E2 08 00 FF 22 80 0D 01 02 00 00 00 00 9A [19:57:25]Write i2c OK [19:57:25]MH_I2C_Read... [19:57:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:57:25]Read from MH i2c: E2 [19:57:25]MH_I2C_Read... [19:57:25]Read from MH i2c: E2 03 00 [19:57:25]MH_I2C_Read... [19:57:25]Read from MH i2c: E2 03 00 FF 22 00 90 00 95 [19:57:25]RAPDU: 90 00 [19:57:25]wFMCommunicate OK [19:57:25]wFMCommunicate request_size=255 [19:57:25]MH_SAM_APDU [19:57: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 56 40 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 C4 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 26 65 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EA 07 01 00 35 04 06 00 A0 [19:57:25]Write to MH i2c: E2 02 01 00 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 56 40 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 C4 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 26 65 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EA 07 01 00 35 04 06 00 A0 00 00 38 [19:57:25]Write i2c OK [19:57:25]MH_I2C_Read... [19:57:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:57:25]Read from MH i2c: E2 [19:57:25]MH_I2C_Read... [19:57:25]Read from MH i2c: E2 03 00 [19:57:25]MH_I2C_Read... [19:57:25]Read from MH i2c: E2 03 00 00 23 00 90 00 97 [19:57:25]RAPDU: 90 00 [19:57:25]wFMCommunicate OK [19:57:25]wFMCommunicate request_size=10 [19:57:25]MH_SAM_APDU [19:57:25]CAPDU: 80 0D 02 02 05 99 FD BA CD 17 [19:57:25]Write to MH i2c: E2 0D 00 01 23 80 0D 02 02 05 00 99 FD BA CD 17 00 00 DC [19:57:25]Write i2c OK [19:57:25]MH_I2C_Read... [19:57:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:57:25]Read from MH i2c: E2 [19:57:25]MH_I2C_Read... [19:57:25]Read from MH i2c: E2 03 00 [19:57:25]MH_I2C_Read... [19:57:25]Read from MH i2c: E2 03 00 01 23 00 90 00 98 [19:57:25]RAPDU: 90 00 [19:57:25]wFMCommunicate OK [19:57:25]wFMCommunicate request_size=4 [19:57:25]MH_SAM_APDU [19:57:25]CAPDU: 80 0D 03 02 [19:57:25]Write to MH i2c: E2 08 00 02 23 80 0D 03 02 00 00 00 00 A0 [19:57:25]Write i2c OK [19:57:25]MH_I2C_Read... [19:57:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:57:25]Read from MH i2c: E2 [19:57:25]MH_I2C_Read... [19:57:25]Read from MH i2c: E2 0B 00 [19:57:25]MH_I2C_Read... [19:57:25]Read from MH i2c: E2 0B 00 02 23 00 4B 27 0F 69 D2 A5 E6 C7 90 00 AF [19:57:25]RAPDU: 4B 27 0F 69 D2 A5 E6 C7 90 00 [19:57:25]wFMCommunicate OK [19:57:25]SAM_PROTO_SignData done [19:57:25]FM_MakeSignedData done [19:57:25]CreateOFDProtocolMessage [19:57:25]wFMCommunicate request_size=4 [19:57:25]MH_SAM_APDU [19:57:25]CAPDU: 80 11 00 00 [19:57:25]Write to MH i2c: E2 08 00 03 23 80 11 00 00 00 00 00 00 A0 [19:57:25]Write i2c OK [19:57:25]MH_I2C_Read... [19:57:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:25]Read from MH i2c: E2 [19:57:25]MH_I2C_Read... [19:57:25]Read from MH i2c: E2 17 00 [19:57:25]MH_I2C_Read... [19:57:25]Read from MH i2c: E2 17 00 03 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F6 [19:57:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:57:25]wFMCommunicate OK [19:57:25]CreateOFDProtocolMessage done [19:57:25]OFDSenderStorePacket 67562 [19:57:25]StoreOFDPacket docnum=67562 [19:57:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 61 17 07 01 EC FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 40 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 C4 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 26 65 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EA 07 01 00 35 04 06 00 A0 99 FD BA CD 17 4B 27 0F 69 D2 A5 E6 C7 [19:57:25]CheckFolder [19:57:25]dirname=/storage/ofd_packets [19:57:25]CheckFolder done [19:57:25]ProducePacketName [19:57:25]name=ofd_packets/00067562 [19:57:25]NVStorageSaveData ofd_packets/00067562 [19:57:25]File name is /storage/ofd_packets/00067562 [19:57:25]Write 301 bytes [19:57:25]NVStorageSaveData done [19:57:25]OFDSenderStorePacket done [19:57:25]KKMCreateOFDPacket done [19:57:25]NVStorageSaveData kkm_last_timestamp [19:57:25]File name is /storage/kkm_last_timestamp [19:57:25]Write 4 bytes [19:57:25]NVStorageSaveData done [19:57:25]ExternCall_PrintAddStr [19:57:25]wPrintStart [19:57:25]Write to MH i2c: 01 00 00 04 23 27 [19:57:25]Write i2c OK [19:57:25]MH_I2C_Read... [19:57:25]Read from MH i2c: 01 [19:57:25]MH_I2C_Read... [19:57:25]Read from MH i2c: 01 07 00 [19:57:25]MH_I2C_Read... [19:57:25]Read from MH i2c: 01 07 00 04 23 00 00 00 00 00 FF 0F 3C [19:57:25]RasterBufferAndPrint [19:57:25]line Счет N : (1)507628 [19:57:25]line ИНН: 02508201610067 [19:57:25]line Контрольно-Кассовый Чек [19:57:25]line ПРОДАЖА [19:57:25]line ТРК (МРК, ГНК) : 33 [19:57:25]line Товар: 2710124130 [19:57:25]line Аи-92-К-5 [19:57:25]line 16.470 * 66.80 [19:57:25]line = 1100.20 [19:57:25]line НДС 12% НСП 1% [19:57:25]line > о реализуемом товаре [19:57:25]line ИТОГО: 1100.20 [19:57:25]line НСП 1% : 9.74 [19:57:25]line НДС 12% : 116.83 [19:57:25]line Наличными: 0.00 [19:57:25]line Безнал.: 1100.20 [19:57:25]line Место: АЗС № 91 "Партнер Нефть" [19:57:25]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:57:25]line СНО: Общий режим [19:57:25]line Чек 160 16.05.2024 19:57 [19:57:25]line Смена: 357 ФФД: 1.0 [19:57:25]line ЗНМ: 0300000119 [19:57:25]line РНМ: 0000000000091845 [19:57:25]line Версия ККМ: 001 [19:57:25]line Платежная система: O! деньги [19:57:25]line ФМ: 0000000000871829 [19:57:25]line ФД: 67562 [19:57:25]line ФПД: 176583247318295 [19:57:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T195726&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67562&fm=176583247318295&tin=02508201610067®Number=0000000000091845&sum=110020 [19:57:25]written 0, free lines is 4095 [19:57:25]OFD Sender: Processing packet 67562 [packets to send 35, broken 34] [19:57:25]ProducePacketName [19:57:25]name=ofd_packets/00067562 [19:57:25]OFD Sender: To server: pG, [19:57:25]CommunicateWithHost lk.salyk.kg:30040 [19:57:25]ConnectInit lk.salyk.kg [19:57:26]Connected sock=10 [19: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 38 32 39 0F 01 00 00 61 17 07 01 EC FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 40 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 C4 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 26 65 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EA 07 01 00 35 04 06 00 A0 99 FD BA CD 17 4B 27 0F 69 D2 A5 E6 C7 [19: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 38 32 39 4F 00 00 00 7D 43 47 00 AA 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 38 32 39 10 04 04 00 EA 07 01 00 F4 03 04 00 00 0D 46 66 B6 04 01 00 00 1F 8B E8 51 21 F3 66 6C [19:57:26]CommunicateWithHost err = 0 [19:57:26]CheckOFDResponse [19:57:26]1017 (14) - 77093643461234 [19:57:26]1041 (16) - 0000000000871829 [19:57:26]1040 (4) - 67562 [19:57:26]1012 (4) - 16.05.2024 13:41 [19:57:26]1206 (1) - 0 [19:57:26]OFD Sender: Remove packet 67562 [19:57:26]ProducePacketName [19:57:26]name=ofd_packets/00067562 [19:57:26]NVStorageDeleteData [19:57:26]Write to MH i2c: 01 00 00 2D 23 50 [19:57:26]Write i2c OK [19:57:26]MH_I2C_Read... [19:57:26]Read from MH i2c: 01 [19:57:26]MH_I2C_Read... [19:57:26]Read from MH i2c: 01 07 00 [19:57:26]MH_I2C_Read... [19:57:26]Read from MH i2c: 01 07 00 2D 23 00 00 00 00 00 F1 0C 54 [19:57:26]RasterBufferAndPrint [19:57:26]line [19:57:26]line [19:57:26]line [19:57:26]line [19:57:26]line [19:57:26]written 0, free lines is 3320 [19:57:26]MH_Cut [19:57:26]Write to MH i2c: D1 01 00 34 23 01 29 [19:57:26]Write i2c OK [19:57:26]MH_I2C_Read... [19:57:26]Read from MH i2c: D1 [19:57:26]MH_I2C_Read... [19:57:26]Read from MH i2c: D1 01 00 [19:57:26]MH_I2C_Read... [19:57:26]Read from MH i2c: D1 01 00 34 23 00 28 [19:57:26]Write to MH i2c: 01 00 00 35 23 58 [19:57:26]Write i2c OK [19:57:26]MH_I2C_Read... [19:57:26]OFD Sender: No OFD packet to send [19:57:27]*** Cut start [19:57:27]*** Purtial cut [19:57:27]*** Stage 1: CUTSNS_PIN = 1 [19:57:27]Read from MH i2c: 01 [19:57:27]MH_I2C_Read... [19:57:27]*** Stop cut motor [19:57:27]*** Cut end [19:57:27]Read from MH i2c: 01 07 00 [19:57:27]MH_I2C_Read... [19:57:27]Read from MH i2c: 01 07 00 35 23 00 00 00 00 00 FF 0F 6D [19:57:27]process_action close_receipt done [19:57:27]requested_data is exist [19:57:27]produce_requested_data [19:57:27]requested_item fm.sn is exist - process it [19:57:27]wFMCommunicate request_size=4 [19:57:27]MH_SAM_APDU [19:57:27]CAPDU: 80 11 00 00 [19:57:27]Write to MH i2c: E2 08 00 36 23 80 11 00 00 00 00 00 00 D3 [19:57:27]Write i2c OK [19:57:27]MH_I2C_Read... [19:57:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:27]Read from MH i2c: E2 [19:57:27]MH_I2C_Read... [19:57:27]Read from MH i2c: E2 17 00 [19:57:27]MH_I2C_Read... [19:57:27]Read from MH i2c: E2 17 00 36 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 29 [19:57:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:57:27]wFMCommunicate OK [19:57:27]requested_item fd.num is exist - process it [19:57:27]SAM_PROTO_GetFieldsCounters [19:57:27]wFMCommunicate request_size=4 [19:57:27]MH_SAM_APDU [19:57:27]CAPDU: 80 13 00 00 [19:57:27]Write to MH i2c: E2 08 00 37 23 80 13 00 00 00 00 00 00 D6 [19:57:27]Write i2c OK [19:57:27]MH_I2C_Read... [19:57:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:57:27]Read from MH i2c: E2 [19:57:27]MH_I2C_Read... [19:57:27]Read from MH i2c: E2 62 00 [19:57:27]MH_I2C_Read... [19:57:27]Read from MH i2c: E2 62 00 37 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EA 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [19: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EA 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:57:27]wFMCommunicate OK [19:57:27]SAM_PROTO_GetFieldsCounters done [19:57:27]requested_item shift.num is exist - process it [19:57:27]requested_item shift.opened is exist - process it [19:57:27]req_shift_opened [19:57:27]FM_GetShiftState [19:57:27]SAM_PROTO_GetShiftState [19:57:27]wFMCommunicate request_size=4 [19:57:27]MH_SAM_APDU [19:57:27]CAPDU: 80 13 01 00 [19:57:27]Write to MH i2c: E2 08 00 38 23 80 13 01 00 00 00 00 00 D8 [19:57:27]Write i2c OK [19:57:27]MH_I2C_Read... [19:57:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:27]Read from MH i2c: E2 [19:57:27]MH_I2C_Read... [19:57:27]Read from MH i2c: E2 0E 00 [19:57:27]MH_I2C_Read... [19:57:27]Read from MH i2c: E2 0E 00 38 23 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 84 [19:57:27]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [19:57:27]wFMCommunicate OK [19:57:27]SAM_PROTO_GetShiftState done [19:57:27]FM_GetShiftState done [19:57:27]req_shift_opened done [19:57:27]requested_item shift.open_date is exist - process it [19:57:27]req_shift_open_date [19:57:27]req_shift_open_date done [19:57:27]produce_requested_data done [19:57:27]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67562,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [19:57:27]process_action_free close_receipt [19:57:27]json_value_free [19:57:27]json_value_free done [19:57:27]process_json_proto returns [19:57:27]Send response to host [19:57:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67562,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [19:57:27]free response buf [19:57:27]execute_script done [19:57:27]execute_script returns [19:57:27]free content buf [19:57:27]Sock 8.Close socket [19:57:27]Sock 8.Thread stoped [19:57:31]OFD Sender: No OFD packet to send [19:57:36]OFD Sender: No OFD packet to send [19:57:41]OFD Sender: No OFD packet to send [19:57:46]OFD Sender: No OFD packet to send [19:57:51]OFD Sender: No OFD packet to send [19:57:56]OFD Sender: No OFD packet to send [19:58:01]OFD Sender: No OFD packet to send [19:58:06]OFD Sender: No OFD packet to send [19:58:11]OFD Sender: No OFD packet to send [19:58:16]OFD Sender: No OFD packet to send [19:58:21]OFD Sender: No OFD packet to send [19:58:26]OFD Sender: No OFD packet to send [19:58:31]OFD Sender: No OFD packet to send [19:58:36]OFD Sender: No OFD packet to send [19:58:41]OFD Sender: No OFD packet to send [19:58:46]OFD Sender: No OFD packet to send [19:58:51]OFD Sender: No OFD packet to send [19:58:56]OFD Sender: No OFD packet to send [19:59:01]OFD Sender: No OFD packet to send [19:59:06]OFD Sender: No OFD packet to send [19:59:11]OFD Sender: No OFD packet to send [19:59:16]OFD Sender: No OFD packet to send [19:59:21]OFD Sender: No OFD packet to send [19:59:26]OFD Sender: No OFD packet to send [19:59:31]OFD Sender: No OFD packet to send [19:59:36]OFD Sender: No OFD packet to send [19:59:41]OFD Sender: No OFD packet to send [19:59:46]OFD Sender: No OFD packet to send [19:59:51]OFD Sender: No OFD packet to send [19:59:56]OFD Sender: No OFD packet to send [20:00:01]OFD Sender: No OFD packet to send [20:00:06]OFD Sender: No OFD packet to send [20:00:11]OFD Sender: No OFD packet to send [20:00:16]OFD Sender: No OFD packet to send [20:00:21]OFD Sender: No OFD packet to send [20:00:26]OFD Sender: No OFD packet to send [20:00:31]OFD Sender: No OFD packet to send [20:00:36]OFD Sender: No OFD packet to send [20:00:41]OFD Sender: No OFD packet to send [20:00:46]OFD Sender: No OFD packet to send [20:00:51]OFD Sender: No OFD packet to send [20:00:56]OFD Sender: No OFD packet to send [20:01:01]OFD Sender: No OFD packet to send [20:01:06]OFD Sender: No OFD packet to send [20:01:11]OFD Sender: No OFD packet to send [20:01:16]OFD Sender: No OFD packet to send [20:01:21]OFD Sender: No OFD packet to send [20:01:26]OFD Sender: No OFD packet to send [20:01:31]OFD Sender: No OFD packet to send [20:01:37]OFD Sender: No OFD packet to send [20:01:42]OFD Sender: No OFD packet to send [20:01:47]OFD Sender: No OFD packet to send [20:01:52]OFD Sender: No OFD packet to send [20:01:57]OFD Sender: No OFD packet to send [20:02:02]OFD Sender: No OFD packet to send [20:02:07]OFD Sender: No OFD packet to send [20:02:12]OFD Sender: No OFD packet to send [20:02:17]OFD Sender: No OFD packet to send [20:02:22]OFD Sender: No OFD packet to send [20:02:27]OFD Sender: No OFD packet to send [20:02:32]OFD Sender: No OFD packet to send [20:02:37]OFD Sender: No OFD packet to send [20:02:42]OFD Sender: No OFD packet to send [20:02:47]OFD Sender: No OFD packet to send [20:02:52]OFD Sender: No OFD packet to send [20:02:57]OFD Sender: No OFD packet to send [20:03:02]OFD Sender: No OFD packet to send [20:03:07]OFD Sender: No OFD packet to send [20:03:12]OFD Sender: No OFD packet to send [20:03:17]OFD Sender: No OFD packet to send [20:03:22]OFD Sender: No OFD packet to send [20:03:27]OFD Sender: No OFD packet to send [20:03:32]OFD Sender: No OFD packet to send [20:03:37]OFD Sender: No OFD packet to send [20:03:42]OFD Sender: No OFD packet to send [20:03:47]OFD Sender: No OFD packet to send [20:03:52]OFD Sender: No OFD packet to send [20:03:57]OFD Sender: No OFD packet to send [20:04:02]OFD Sender: No OFD packet to send [20:04:07]OFD Sender: No OFD packet to send [20:04:12]OFD Sender: No OFD packet to send [20:04:17]OFD Sender: No OFD packet to send [20:04:22]OFD Sender: No OFD packet to send [20:04:27]OFD Sender: No OFD packet to send [20:04:32]OFD Sender: No OFD packet to send [20:04:37]OFD Sender: No OFD packet to send [20:04:42]OFD Sender: No OFD packet to send [20:04:47]OFD Sender: No OFD packet to send [20:04:52]OFD Sender: No OFD packet to send [20:04:57]OFD Sender: No OFD packet to send [20:05:02]OFD Sender: No OFD packet to send [20:05:07]OFD Sender: No OFD packet to send [20:05:12]OFD Sender: No OFD packet to send [20:05:17]OFD Sender: No OFD packet to send [20:05:22]OFD Sender: No OFD packet to send [20:05:27]OFD Sender: No OFD packet to send [20:05:32]OFD Sender: No OFD packet to send [20:05:37]OFD Sender: No OFD packet to send [20:05:42]OFD Sender: No OFD packet to send [20:05:47]OFD Sender: No OFD packet to send [20:05:52]OFD Sender: No OFD packet to send [20:05:57]OFD Sender: No OFD packet to send [20:06:02]OFD Sender: No OFD packet to send [20:06:07]OFD Sender: No OFD packet to send [20:06:12]OFD Sender: No OFD packet to send [20:06:17]OFD Sender: No OFD packet to send [20:06:22]OFD Sender: No OFD packet to send [20:06:27]OFD Sender: No OFD packet to send [20:06:32]OFD Sender: No OFD packet to send [20:06:37]OFD Sender: No OFD packet to send [20:06:42]OFD Sender: No OFD packet to send [20:06:47]OFD Sender: No OFD packet to send [20:06:52]OFD Sender: No OFD packet to send [20:06:57]OFD Sender: No OFD packet to send [20:07:02]OFD Sender: No OFD packet to send [20:07:07]OFD Sender: No OFD packet to send [20:07:12]OFD Sender: No OFD packet to send [20:07:17]OFD Sender: No OFD packet to send [20:07:22]OFD Sender: No OFD packet to send [20:07:27]OFD Sender: No OFD packet to send [20:07:32]OFD Sender: No OFD packet to send [20:07:33]accept exits with 9 [20:07:33]New connection [20:07:33]New thread 3067182436 created [20:07:33]Thread 3067039076 joined [20:07:33]Waiting for new connection... [20:07:33] Sock 9.Parse request [20:07:33]Sock 9.Check first char [20:07:33]Sock 9.First char is OK [20:07:33]request: POST /json_proto HTTP/1.0 [20:07:33]Method: POST [20:07:33]URL: /json_proto [20:07:33]Method is POST - this is cgi request [20:07:33]url: /json_proto [20:07:33]query_string will be loaded in cgi processing [20:07:33]execute_cgi json_proto POST (null) [20:07:33]execute_cgi path=json_proto method=POST [20:07:33]POST find Content-Length [20:07:33]Host: 172.17.41.195:8080 [20:07:33]Content-Length: 1226 [20:07:33]Content-Type: application/json [20:07:33] [20:07:33]POST finish read [20:07:33]Found Content-Length = 1226 [20:07:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507629\u000A16.05.2024 19:50\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 2004.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3883597/96/95\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:07:33]execute_script... [20:07:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507629\u000A16.05.2024 19:50\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 2004.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3883597/96/95\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:07:33]POST & json_proto [20:07:33]process_json_proto [20:07:33]json parsed OK: [20:07:33]protocol is kg_v1.0 [20:07:33]action value=print_text [20:07:33]process_action print_text [20:07:33]cmd_print_text [20:07:33]ExternCall_PrintAddStr [20:07:33]wPrintStart [20:07:33]Write to MH i2c: 01 00 00 39 23 5C [20:07:33]Write i2c OK [20:07:33]MH_I2C_Read... [20:07:33]Read from MH i2c: 01 [20:07:33]MH_I2C_Read... [20:07:33]Read from MH i2c: 01 07 00 [20:07:33]MH_I2C_Read... [20:07:33]Read from MH i2c: 01 07 00 39 23 00 00 00 00 00 FF 0F 71 [20:07:33]RasterBufferAndPrint [20:07:33]line *****ТОВАРНЫЙ ЧЕК***** [20:07:33]line АЗС-91 [20:07:33]line Партнер нефть [20:07:33]line 02508201610067 [20:07:33]line Кассир : Пайзулдаева А. [20:07:33]line Счет N : (1)507629 [20:07:33]line 16.05.2024 19:50 [20:07:33]line ПРОДАЖА [20:07:33]line ТРК (МРК, ГНК): 43 [20:07:33]line Вид ГСМ : 2710124130 [20:07:33]line Аи-92-К-5 [20:07:33]line 30.000 x 66.80 [20:07:33]line ИТОГ: 2004.00 [20:07:33]line Тип оплаты: Талоны: Топливные Талоны [20:07:33]line 3883597/96/95 [20:07:33]line ______________________ [20:07:33]line (подпись) [20:07:33]written 0, free lines is 4095 [20:07:34]Write to MH i2c: 01 00 00 4D 23 70 [20:07:34]Write i2c OK [20:07:34]MH_I2C_Read... [20:07:34]Read from MH i2c: 01 [20:07:34]MH_I2C_Read... [20:07:34]Read from MH i2c: 01 07 00 [20:07:34]MH_I2C_Read... [20:07:34]Read from MH i2c: 01 07 00 4D 23 00 00 00 00 00 17 0E 9C [20:07:34]RasterBufferAndPrint [20:07:34]line [20:07:34]line [20:07:34]line [20:07:34]line [20:07:34]line [20:07:34]written 0, free lines is 3609 [20:07:34]MH_Cut [20:07:34]Write to MH i2c: D1 01 00 54 23 01 49 [20:07:34]Write i2c OK [20:07:34]MH_I2C_Read... [20:07:34]Read from MH i2c: D1 [20:07:34]MH_I2C_Read... [20:07:34]Read from MH i2c: D1 01 00 [20:07:34]MH_I2C_Read... [20:07:34]Read from MH i2c: D1 01 00 54 23 00 48 [20:07:34]Write to MH i2c: 01 00 00 55 23 78 [20:07:34]Write i2c OK [20:07:34]MH_I2C_Read... [20:07:34]*** Cut start [20:07:34]*** Purtial cut [20:07:34]*** CUTSNS_PIN = 0 [20:07:34]*** Stage 1: CUTSNS_PIN = 1 [20:07:36]Read from MH i2c: 01 [20:07:36]MH_I2C_Read... [20:07:36]*** Stop cut motor [20:07:36]*** Cut end [20:07:36]Read from MH i2c: 01 07 00 [20:07:36]MH_I2C_Read... [20:07:36]Read from MH i2c: 01 07 00 55 23 00 00 00 00 00 FF 0F 8D [20:07:36]process_action print_text done [20:07:36]requested_data is exist [20:07:36]produce_requested_data [20:07:36]requested_item fm.sn is exist - process it [20:07:36]wFMCommunicate request_size=4 [20:07:36]MH_SAM_APDU [20:07:36]CAPDU: 80 11 00 00 [20:07:36]Write to MH i2c: E2 08 00 56 23 80 11 00 00 00 00 00 00 F3 [20:07:36]Write i2c OK [20:07:36]MH_I2C_Read... [20:07:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:36]Read from MH i2c: E2 [20:07:36]MH_I2C_Read... [20:07:36]Read from MH i2c: E2 17 00 [20:07:36]MH_I2C_Read... [20:07:36]Read from MH i2c: E2 17 00 56 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 49 [20:07:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:07:36]wFMCommunicate OK [20:07:36]requested_item fd.num is exist - process it [20:07:36]SAM_PROTO_GetFieldsCounters [20:07:36]wFMCommunicate request_size=4 [20:07:36]MH_SAM_APDU [20:07:36]CAPDU: 80 13 00 00 [20:07:36]Write to MH i2c: E2 08 00 57 23 80 13 00 00 00 00 00 00 F6 [20:07:36]Write i2c OK [20:07:36]MH_I2C_Read... [20:07:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:07:36]Read from MH i2c: E2 [20:07:36]MH_I2C_Read... [20:07:36]Read from MH i2c: E2 62 00 [20:07:36]MH_I2C_Read... [20:07:36]Read from MH i2c: E2 62 00 57 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EA 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [20:07: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EA 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:07:36]wFMCommunicate OK [20:07:36]SAM_PROTO_GetFieldsCounters done [20:07:36]requested_item shift.num is exist - process it [20:07:36]requested_item shift.opened is exist - process it [20:07:36]req_shift_opened [20:07:36]FM_GetShiftState [20:07:36]SAM_PROTO_GetShiftState [20:07:36]wFMCommunicate request_size=4 [20:07:36]MH_SAM_APDU [20:07:36]CAPDU: 80 13 01 00 [20:07:36]Write to MH i2c: E2 08 00 58 23 80 13 01 00 00 00 00 00 F8 [20:07:36]Write i2c OK [20:07:36]MH_I2C_Read... [20:07:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:36]Read from MH i2c: E2 [20:07:36]MH_I2C_Read... [20:07:36]Read from MH i2c: E2 0E 00 [20:07:36]MH_I2C_Read... [20:07:36]Read from MH i2c: E2 0E 00 58 23 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 A4 [20:07:36]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [20:07:36]wFMCommunicate OK [20:07:36]SAM_PROTO_GetShiftState done [20:07:36]FM_GetShiftState done [20:07:36]req_shift_opened done [20:07:36]requested_item shift.open_date is exist - process it [20:07:36]req_shift_open_date [20:07:36]req_shift_open_date done [20:07:36]produce_requested_data done [20:07:36]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67562,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [20:07:36]process_action_free print_text [20:07:36]json_value_free [20:07:36]json_value_free done [20:07:36]process_json_proto returns [20:07:36]Send response to host [20:07:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67562,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [20:07:36]free response buf [20:07:36]execute_script done [20:07:36]execute_script returns [20:07:36]free content buf [20:07:36]Sock 9.Close socket [20:07:36]Sock 9.Thread stoped [20:07:37]OFD Sender: No OFD packet to send [20:07:42]OFD Sender: No OFD packet to send [20:07:47]OFD Sender: No OFD packet to send [20:07:52]OFD Sender: No OFD packet to send [20:07:57]OFD Sender: No OFD packet to send [20:08:02]OFD Sender: No OFD packet to send [20:08:07]OFD Sender: No OFD packet to send [20:08:12]OFD Sender: No OFD packet to send [20:08:17]OFD Sender: No OFD packet to send [20:08:22]OFD Sender: No OFD packet to send [20:08:25]accept exits with 8 [20:08:25]New connection [20:08:25]New thread 3067039076 created [20:08:25]Thread 3067182436 joined [20:08:25]Waiting for new connection... [20:08:25] Sock 8.Parse request [20:08:25]Sock 8.Check first char [20:08:25]Sock 8.First char is OK [20:08:25]request: POST /json_proto HTTP/1.0 [20:08:25]Method: POST [20:08:25]URL: /json_proto [20:08:25]Method is POST - this is cgi request [20:08:25]url: /json_proto [20:08:25]query_string will be loaded in cgi processing [20:08:25]execute_cgi json_proto POST (null) [20:08:25]execute_cgi path=json_proto method=POST [20:08:25]POST find Content-Length [20:08:25]Host: 172.17.41.195:8080 [20:08:25]Content-Length: 1210 [20:08:25]Content-Type: application/json [20:08:25] [20:08:25]POST finish read [20:08:25]Found Content-Length = 1210 [20:08:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507630\u000A16.05.2024 19:50\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 7.490 x 66.80\u000A\u0418\u0422\u041E\u0413: 500.33\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:08:25]execute_script... [20:08:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507630\u000A16.05.2024 19:50\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 7.490 x 66.80\u000A\u0418\u0422\u041E\u0413: 500.33\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:08:25]POST & json_proto [20:08:25]process_json_proto [20:08:25]json parsed OK: [20:08:25]protocol is kg_v1.0 [20:08:25]action value=print_text [20:08:25]process_action print_text [20:08:25]cmd_print_text [20:08:25]ExternCall_PrintAddStr [20:08:25]wPrintStart [20:08:25]Write to MH i2c: 01 00 00 59 23 7C [20:08:25]Write i2c OK [20:08:25]MH_I2C_Read... [20:08:25]Read from MH i2c: 01 [20:08:25]MH_I2C_Read... [20:08:25]Read from MH i2c: 01 07 00 [20:08:25]MH_I2C_Read... [20:08:25]Read from MH i2c: 01 07 00 59 23 00 00 00 00 00 FF 0F 91 [20:08:25]RasterBufferAndPrint [20:08:25]line *****ТОВАРНЫЙ ЧЕК***** [20:08:25]line АЗС-91 [20:08:25]line Партнер нефть [20:08:25]line 02508201610067 [20:08:25]line Кассир : Пайзулдаева А. [20:08:25]line Счет N : (1)507630 [20:08:25]line 16.05.2024 19:50 [20:08:25]line ПРОДАЖА [20:08:25]line ТРК (МРК, ГНК): 23 [20:08:25]line Вид ГСМ : 2710124130 [20:08:25]line Аи-92-К-5 [20:08:25]line 7.490 x 66.80 [20:08:25]line ИТОГ: 500.33 [20:08:25]line Тип оплаты: Талоны: Топливная Карта [20:08:25]line 02750 [20:08:25]line ______________________ [20:08:25]line (подпись) [20:08:25]written 0, free lines is 4095 [20:08:25]Write to MH i2c: 01 00 00 6D 23 90 [20:08:25]Write i2c OK [20:08:25]MH_I2C_Read... [20:08:25]Read from MH i2c: 01 [20:08:25]MH_I2C_Read... [20:08:25]Read from MH i2c: 01 07 00 [20:08:25]MH_I2C_Read... [20:08:25]Read from MH i2c: 01 07 00 6D 23 00 00 00 00 00 11 0E B6 [20:08:25]RasterBufferAndPrint [20:08:25]line [20:08:25]line [20:08:25]line [20:08:25]line [20:08:25]line [20:08:25]written 0, free lines is 3603 [20:08:25]MH_Cut [20:08:25]Write to MH i2c: D1 01 00 74 23 01 69 [20:08:25]Write i2c OK [20:08:25]MH_I2C_Read... [20:08:25]Read from MH i2c: D1 [20:08:25]MH_I2C_Read... [20:08:25]Read from MH i2c: D1 01 00 [20:08:25]MH_I2C_Read... [20:08:25]Read from MH i2c: D1 01 00 74 23 00 68 [20:08:25]Write to MH i2c: 01 00 00 75 23 98 [20:08:25]Write i2c OK [20:08:25]MH_I2C_Read... [20:08:26]*** Cut start [20:08:26]*** Purtial cut [20:08:26]*** Stage 1: CUTSNS_PIN = 1 [20:08:26]Read from MH i2c: 01 [20:08:26]MH_I2C_Read... [20:08:26]*** Stop cut motor [20:08:26]*** Cut end [20:08:26]Read from MH i2c: 01 07 00 [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: 01 07 00 75 23 00 00 00 00 00 FF 0F AD [20:08:26]process_action print_text done [20:08:26]requested_data is exist [20:08:26]produce_requested_data [20:08:26]requested_item fm.sn is exist - process it [20:08:26]wFMCommunicate request_size=4 [20:08:26]MH_SAM_APDU [20:08:26]CAPDU: 80 11 00 00 [20:08:26]Write to MH i2c: E2 08 00 76 23 80 11 00 00 00 00 00 00 13 [20:08:26]Write i2c OK [20:08:26]MH_I2C_Read... [20:08:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:26]Read from MH i2c: E2 [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: E2 17 00 [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: E2 17 00 76 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 69 [20:08:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:08:26]wFMCommunicate OK [20:08:26]requested_item fd.num is exist - process it [20:08:26]SAM_PROTO_GetFieldsCounters [20:08:26]wFMCommunicate request_size=4 [20:08:26]MH_SAM_APDU [20:08:26]CAPDU: 80 13 00 00 [20:08:26]Write to MH i2c: E2 08 00 77 23 80 13 00 00 00 00 00 00 16 [20:08:26]Write i2c OK [20:08:26]MH_I2C_Read... [20:08:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:08:26]Read from MH i2c: E2 [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: E2 62 00 [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: E2 62 00 77 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EA 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [20:08: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EA 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:08:26]wFMCommunicate OK [20:08:26]SAM_PROTO_GetFieldsCounters done [20:08:26]requested_item shift.num is exist - process it [20:08:26]requested_item shift.opened is exist - process it [20:08:26]req_shift_opened [20:08:26]FM_GetShiftState [20:08:26]SAM_PROTO_GetShiftState [20:08:26]wFMCommunicate request_size=4 [20:08:26]MH_SAM_APDU [20:08:26]CAPDU: 80 13 01 00 [20:08:26]Write to MH i2c: E2 08 00 78 23 80 13 01 00 00 00 00 00 18 [20:08:26]Write i2c OK [20:08:26]MH_I2C_Read... [20:08:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:26]Read from MH i2c: E2 [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: E2 0E 00 [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: E2 0E 00 78 23 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 C4 [20:08:26]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [20:08:26]wFMCommunicate OK [20:08:26]SAM_PROTO_GetShiftState done [20:08:26]FM_GetShiftState done [20:08:26]req_shift_opened done [20:08:26]requested_item shift.open_date is exist - process it [20:08:26]req_shift_open_date [20:08:26]req_shift_open_date done [20:08:26]produce_requested_data done [20:08:26]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67562,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [20:08:26]process_action_free print_text [20:08:26]json_value_free [20:08:26]json_value_free done [20:08:26]process_json_proto returns [20:08:26]Send response to host [20:08:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67562,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [20:08:26]free response buf [20:08:26]execute_script done [20:08:26]execute_script returns [20:08:26]free content buf [20:08:26]Sock 8.Close socket [20:08:26]Sock 8.Thread stoped [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:24]accept exits with 9 [20:09:24]New connection [20:09:24]New thread 3067182436 created [20:09:24]Thread 3067039076 joined [20:09:24]Waiting for new connection... [20:09:24] Sock 9.Parse request [20:09:24]Sock 9.Check first char [20:09:24]Sock 9.First char is OK [20:09:24]request: POST /json_proto HTTP/1.0 [20:09:24]Method: POST [20:09:24]URL: /json_proto [20:09:24]Method is POST - this is cgi request [20:09:24]url: /json_proto [20:09:24]query_string will be loaded in cgi processing [20:09:24]execute_cgi json_proto POST (null) [20:09:24]execute_cgi path=json_proto method=POST [20:09:24]POST find Content-Length [20:09:24]Host: 172.17.41.195:8080 [20:09:24]Content-Length: 803 [20:09:24]Content-Type: application/json [20:09:24] [20:09:24]POST finish read [20:09:24]Found Content-Length = 803 [20:09:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507631", "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.80, "quantity" : 14.980, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:09:24]execute_script... [20:09: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)507631", "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.80, "quantity" : 14.980, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:09:24]POST & json_proto [20:09:24]process_json_proto [20:09:24]json parsed OK: [20:09:24]protocol is kg_v1.0 [20:09:24]action value=close_receipt [20:09:24]process_action close_receipt [20:09:24]cmd_close_receipt [20:09:24]MH_GetDate [20:09:24]Write to MH i2c: F0 00 00 79 23 8B [20:09:24]Write i2c OK [20:09:24]MH_I2C_Read... [20:09:24]Read from MH i2c: F0 [20:09:24]MH_I2C_Read... [20:09:24]Read from MH i2c: F0 09 00 [20:09:24]MH_I2C_Read... [20:09:24]Read from MH i2c: F0 09 00 79 23 00 F6 67 46 66 FC 21 6F 64 8D [20:09:24]GetLastDocTimeStamp 1715889446 [20:09:24]current date 1715890166 [20:09:24]FM_GetShiftState [20:09:24]SAM_PROTO_GetShiftState [20:09:24]wFMCommunicate request_size=4 [20:09:24]MH_SAM_APDU [20:09:24]CAPDU: 80 13 01 00 [20:09:24]Write to MH i2c: E2 08 00 7A 23 80 13 01 00 00 00 00 00 1A [20:09:24]Write i2c OK [20:09:24]MH_I2C_Read... [20:09:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:24]Read from MH i2c: E2 [20:09:24]MH_I2C_Read... [20:09:24]Read from MH i2c: E2 0E 00 [20:09:24]MH_I2C_Read... [20:09:24]Read from MH i2c: E2 0E 00 7A 23 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 C6 [20:09:24]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [20:09:24]wFMCommunicate OK [20:09:24]SAM_PROTO_GetShiftState done [20:09:24]FM_GetShiftState done [20:09:24]opened in 1715818916 [20:09:24]opened+sec_in_day 1715905316 [20:09:24]quantity*price = 100066 [20:09:24]sum+1 = 100067 [20:09:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.66 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.66 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 161 16.05.2024 20:09 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67563 ФПД: 67440771673203 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T200926&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67563&fm=67440771673203&tin=02508201610067®Number=0000000000091845&sum=100066 [20:09:25]StoreToDocumentArchive [20:09:25]shift 357 fd 67563 [20:09:25]save to /storage/0357/doc_00067563 [20:09:25]save last doc name /storage/0357/doc_00067563 to /storage/kkm_last_doc_name [20:09:25]save OK [20:09:25]Clear old archive folders... [20:09:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:09:25]tlvbuf is 017E8C30 [20:09:25]SAM_PROTO_ClearQueue [20:09:25]wFMCommunicate request_size=4 [20:09:25]MH_SAM_APDU [20:09:25]CAPDU: 80 09 00 00 [20:09:25]Write to MH i2c: E2 08 00 87 23 80 09 00 00 00 00 00 00 1C [20:09:25]Write i2c OK [20:09:25]MH_I2C_Read... [20:09:25]Read from MH i2c: E2 [20:09:25]MH_I2C_Read... [20:09:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:09:25]Read from MH i2c: E2 03 00 [20:09:25]MH_I2C_Read... [20:09:25]Read from MH i2c: E2 03 00 87 23 00 90 00 1E [20:09:25]RAPDU: 90 00 [20:09:25]wFMCommunicate OK [20:09:25]SAM_PROTO_ClearQueue done [20:09:25]KKMCreateOFDPacket [20:09:25]OFDProtocolAddRootSTLVToBuf [20:09:25]FM_MakeSignedData [20:09:25]FM_MakeSignedData [20:09:25]SAM_PROTO_SignData [20:09:25]wFMCommunicate request_size=4 [20:09:25]MH_SAM_APDU [20:09:25]CAPDU: 80 0D 01 02 [20:09:25]Write to MH i2c: E2 08 00 88 23 80 0D 01 02 00 00 00 00 24 [20:09:25]Write i2c OK [20:09:25]MH_I2C_Read... [20:09:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:09:25]Read from MH i2c: E2 [20:09:25]MH_I2C_Read... [20:09:25]Read from MH i2c: E2 03 00 [20:09:25]MH_I2C_Read... [20:09:25]Read from MH i2c: E2 03 00 88 23 00 90 00 1F [20:09:25]RAPDU: 90 00 [20:09:25]wFMCommunicate OK [20:09:25]wFMCommunicate request_size=255 [20:09:25]MH_SAM_APDU [20:09: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 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 F6 67 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EB 07 01 00 35 04 06 00 3D [20:09:25]Write to MH i2c: E2 02 01 89 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 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 F6 67 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EB 07 01 00 35 04 06 00 3D 00 00 C1 [20:09:25]Write i2c OK [20:09:25]MH_I2C_Read... [20:09:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:25]Read from MH i2c: E2 [20:09:25]MH_I2C_Read... [20:09:25]Read from MH i2c: E2 03 00 [20:09:25]MH_I2C_Read... [20:09:25]Read from MH i2c: E2 03 00 89 23 00 90 00 20 [20:09:25]RAPDU: 90 00 [20:09:25]wFMCommunicate OK [20:09:25]wFMCommunicate request_size=10 [20:09:25]MH_SAM_APDU [20:09:25]CAPDU: 80 0D 02 02 05 56 47 3D 2C 73 [20:09:25]Write to MH i2c: E2 0D 00 8A 23 80 0D 02 02 05 00 56 47 3D 2C 73 00 00 AA [20:09:25]Write i2c OK [20:09:25]MH_I2C_Read... [20:09:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:25]Read from MH i2c: E2 [20:09:25]MH_I2C_Read... [20:09:25]Read from MH i2c: E2 03 00 [20:09:25]MH_I2C_Read... [20:09:25]Read from MH i2c: E2 03 00 8A 23 00 90 00 21 [20:09:25]RAPDU: 90 00 [20:09:25]wFMCommunicate OK [20:09:25]wFMCommunicate request_size=4 [20:09:25]MH_SAM_APDU [20:09:25]CAPDU: 80 0D 03 02 [20:09:25]Write to MH i2c: E2 08 00 8B 23 80 0D 03 02 00 00 00 00 29 [20:09:25]Write i2c OK [20:09:25]MH_I2C_Read... [20:09:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:09:25]Read from MH i2c: E2 [20:09:25]MH_I2C_Read... [20:09:25]Read from MH i2c: E2 0B 00 [20:09:25]MH_I2C_Read... [20:09:25]Read from MH i2c: E2 0B 00 8B 23 00 F3 72 47 A7 9A B2 77 C5 90 00 05 [20:09:25]RAPDU: F3 72 47 A7 9A B2 77 C5 90 00 [20:09:25]wFMCommunicate OK [20:09:25]SAM_PROTO_SignData done [20:09:25]FM_MakeSignedData done [20:09:25]CreateOFDProtocolMessage [20:09:25]wFMCommunicate request_size=4 [20:09:25]MH_SAM_APDU [20:09:25]CAPDU: 80 11 00 00 [20:09:25]Write to MH i2c: E2 08 00 8C 23 80 11 00 00 00 00 00 00 29 [20:09:25]Write i2c OK [20:09:25]MH_I2C_Read... [20:09:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:25]Read from MH i2c: E2 [20:09:25]MH_I2C_Read... [20:09:25]Read from MH i2c: E2 17 00 [20:09:25]MH_I2C_Read... [20:09:25]Read from MH i2c: E2 17 00 8C 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7F [20:09:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:09:25]wFMCommunicate OK [20:09:25]CreateOFDProtocolMessage done [20:09:25]OFDSenderStorePacket 67563 [20:09:25]StoreOFDPacket docnum=67563 [20:09:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 EE 4A 07 01 8F F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 F6 67 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EB 07 01 00 35 04 06 00 3D 56 47 3D 2C 73 F3 72 47 A7 9A B2 77 C5 [20:09:25]CheckFolder [20:09:25]dirname=/storage/ofd_packets [20:09:25]CheckFolder done [20:09:25]ProducePacketName [20:09:25]name=ofd_packets/00067563 [20:09:25]NVStorageSaveData ofd_packets/00067563 [20:09:25]File name is /storage/ofd_packets/00067563 [20:09:25]Write 301 bytes [20:09:25]NVStorageSaveData done [20:09:25]OFDSenderStorePacket done [20:09:25]KKMCreateOFDPacket done [20:09:25]NVStorageSaveData kkm_last_timestamp [20:09:25]File name is /storage/kkm_last_timestamp [20:09:25]Write 4 bytes [20:09:25]NVStorageSaveData done [20:09:25]ExternCall_PrintAddStr [20:09:25]wPrintStart [20:09:25]Write to MH i2c: 01 00 00 8D 23 B0 [20:09:25]Write i2c OK [20:09:25]MH_I2C_Read... [20:09:25]Read from MH i2c: 01 [20:09:25]MH_I2C_Read... [20:09:25]Read from MH i2c: 01 07 00 [20:09:25]MH_I2C_Read... [20:09:25]Read from MH i2c: 01 07 00 8D 23 00 00 00 00 00 FF 0F C5 [20:09:25]RasterBufferAndPrint [20:09:25]line Счет N : (1)507631 [20:09:25]line ИНН: 02508201610067 [20:09:25]line Контрольно-Кассовый Чек [20:09:25]line ПРОДАЖА [20:09:25]line ТРК (МРК, ГНК) : 33 [20:09:25]line Товар: 2710124130 [20:09:25]line Аи-92-К-5 [20:09:25]line 14.980 * 66.80 [20:09:25]line = 1000.66 [20:09:25]line НДС 12% НСП 1% [20:09:25]line > о реализуемом товаре [20:09:25]line ИТОГО: 1000.66 [20:09:25]line НСП 1% : 8.85 [20:09:25]line НДС 12% : 106.26 [20:09:25]line Наличными: 0.00 [20:09:25]line Безнал.: 1000.66 [20:09:25]line Место: АЗС № 91 "Партнер Нефть" [20:09:25]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:09:25]line СНО: Общий режим [20:09:25]line Чек 161 16.05.2024 20:09 [20:09:25]line Смена: 357 ФФД: 1.0 [20:09:25]line ЗНМ: 0300000119 [20:09:25]line РНМ: 0000000000091845 [20:09:25]line Версия ККМ: 001 [20:09:25]line Платежная система: O! деньги [20:09:25]line ФМ: 0000000000871829 [20:09:25]line ФД: 67563 [20:09:25]line ФПД: 67440771673203 [20:09:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T200926&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67563&fm=67440771673203&tin=02508201610067®Number=0000000000091845&sum=100066 [20:09:25]written 0, free lines is 4095 [20:09:26]OFD Sender: Processing packet 67563 [packets to send 35, broken 34] [20:09:26]ProducePacketName [20:09:26]name=ofd_packets/00067563 [20:09:26]OFD Sender: To server: pG, [20:09:26]CommunicateWithHost lk.salyk.kg:30040 [20:09:26]ConnectInit lk.salyk.kg [20:09:26]Connected sock=10 [20:09: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 38 32 39 0F 01 00 00 EE 4A 07 01 8F F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 F6 67 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EB 07 01 00 35 04 06 00 3D 56 47 3D 2C 73 F3 72 47 A7 9A B2 77 C5 [20:09:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 45 63 47 00 81 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 38 32 39 10 04 04 00 EB 07 01 00 F4 03 04 00 D0 0F 46 66 B6 04 01 00 00 E7 C5 27 4B 87 A1 25 92 [20:09:26]CommunicateWithHost err = 0 [20:09:26]CheckOFDResponse [20:09:26]1017 (14) - 77093643461234 [20:09:26]1041 (16) - 0000000000871829 [20:09:26]1040 (4) - 67563 [20:09:26]1012 (4) - 16.05.2024 13:53 [20:09:26]1206 (1) - 0 [20:09:26]OFD Sender: Remove packet 67563 [20:09:26]ProducePacketName [20:09:26]name=ofd_packets/00067563 [20:09:26]NVStorageDeleteData [20:09:26]Write to MH i2c: 01 00 00 B6 23 D9 [20:09:26]Write i2c OK [20:09:26]MH_I2C_Read... [20:09:26]Read from MH i2c: 01 [20:09:26]MH_I2C_Read... [20:09:26]Read from MH i2c: 01 07 00 [20:09:26]MH_I2C_Read... [20:09:26]Read from MH i2c: 01 07 00 B6 23 00 00 00 00 00 F1 0C DD [20:09:26]RasterBufferAndPrint [20:09:26]line [20:09:26]line [20:09:26]line [20:09:26]line [20:09:26]line [20:09:26]written 0, free lines is 3319 [20:09:26]MH_Cut [20:09:26]Write to MH i2c: D1 01 00 BD 23 01 B2 [20:09:26]Write i2c OK [20:09:26]MH_I2C_Read... [20:09:26]Read from MH i2c: D1 [20:09:26]MH_I2C_Read... [20:09:26]Read from MH i2c: D1 01 00 [20:09:26]MH_I2C_Read... [20:09:26]Read from MH i2c: D1 01 00 BD 23 00 B1 [20:09:26]Write to MH i2c: 01 00 00 BE 23 E1 [20:09:26]Write i2c OK [20:09:26]MH_I2C_Read... [20:09:26]OFD Sender: No OFD packet to send [20:09:27]*** Cut start [20:09:27]*** Purtial cut [20:09:27]*** CUTSNS_PIN = 0 [20:09:27]*** Stage 1: CUTSNS_PIN = 1 [20:09:29]Read from MH i2c: 01 [20:09:29]MH_I2C_Read... [20:09:29]*** Stop cut motor [20:09:29]*** Cut end [20:09:29]Read from MH i2c: 01 07 00 [20:09:29]MH_I2C_Read... [20:09:29]Read from MH i2c: 01 07 00 BE 23 00 00 00 00 00 FF 0F F6 [20:09:29]process_action close_receipt done [20:09:29]requested_data is exist [20:09:29]produce_requested_data [20:09:29]requested_item fm.sn is exist - process it [20:09:29]wFMCommunicate request_size=4 [20:09:29]MH_SAM_APDU [20:09:29]CAPDU: 80 11 00 00 [20:09:29]Write to MH i2c: E2 08 00 BF 23 80 11 00 00 00 00 00 00 5C [20:09:29]Write i2c OK [20:09:29]MH_I2C_Read... [20:09:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:29]Read from MH i2c: E2 [20:09:29]MH_I2C_Read... [20:09:29]Read from MH i2c: E2 17 00 [20:09:29]MH_I2C_Read... [20:09:29]Read from MH i2c: E2 17 00 BF 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B2 [20:09:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:09:29]wFMCommunicate OK [20:09:29]requested_item fd.num is exist - process it [20:09:29]SAM_PROTO_GetFieldsCounters [20:09:29]wFMCommunicate request_size=4 [20:09:29]MH_SAM_APDU [20:09:29]CAPDU: 80 13 00 00 [20:09:29]Write to MH i2c: E2 08 00 C0 23 80 13 00 00 00 00 00 00 5F [20:09:29]Write i2c OK [20:09:29]MH_I2C_Read... [20:09:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:09:29]Read from MH i2c: E2 [20:09:29]MH_I2C_Read... [20:09:29]Read from MH i2c: E2 62 00 [20:09:29]MH_I2C_Read... [20:09:29]Read from MH i2c: E2 62 00 C0 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EB 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [20:09: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EB 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:09:29]wFMCommunicate OK [20:09:29]SAM_PROTO_GetFieldsCounters done [20:09:29]requested_item shift.num is exist - process it [20:09:29]requested_item shift.opened is exist - process it [20:09:29]req_shift_opened [20:09:29]FM_GetShiftState [20:09:29]SAM_PROTO_GetShiftState [20:09:29]wFMCommunicate request_size=4 [20:09:29]MH_SAM_APDU [20:09:29]CAPDU: 80 13 01 00 [20:09:29]Write to MH i2c: E2 08 00 C1 23 80 13 01 00 00 00 00 00 61 [20:09:29]Write i2c OK [20:09:29]MH_I2C_Read... [20:09:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:29]Read from MH i2c: E2 [20:09:29]MH_I2C_Read... [20:09:29]Read from MH i2c: E2 0E 00 [20:09:29]MH_I2C_Read... [20:09:29]Read from MH i2c: E2 0E 00 C1 23 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 0D [20:09:29]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [20:09:29]wFMCommunicate OK [20:09:29]SAM_PROTO_GetShiftState done [20:09:29]FM_GetShiftState done [20:09:29]req_shift_opened done [20:09:29]requested_item shift.open_date is exist - process it [20:09:29]req_shift_open_date [20:09:29]req_shift_open_date done [20:09:29]produce_requested_data done [20:09:29]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67563,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [20:09:29]process_action_free close_receipt [20:09:29]json_value_free [20:09:29]json_value_free done [20:09:29]process_json_proto returns [20:09:29]Send response to host [20:09:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67563,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [20:09:29]free response buf [20:09:29]execute_script done [20:09:29]execute_script returns [20:09:29]free content buf [20:09:29]Sock 9.Close socket [20:09:29]Sock 9.Thread stoped [20:09:31]OFD Sender: No OFD packet to send [20:09:36]OFD Sender: No OFD packet to send [20:09:41]OFD Sender: No OFD packet to send [20:09:46]OFD Sender: No OFD packet to send [20:09:51]OFD Sender: No OFD packet to send [20:09:56]OFD Sender: No OFD packet to send [20:10:01]OFD Sender: No OFD packet to send [20:10:06]OFD Sender: No OFD packet to send [20:10:11]OFD Sender: No OFD packet to send [20:10:16]OFD Sender: No OFD packet to send [20:10:21]OFD Sender: No OFD packet to send [20:10:26]OFD Sender: No OFD packet to send [20:10:31]OFD Sender: No OFD packet to send [20:10:36]OFD Sender: No OFD packet to send [20:10:41]OFD Sender: No OFD packet to send [20:10:46]OFD Sender: No OFD packet to send [20:10:51]OFD Sender: No OFD packet to send [20:10:56]OFD Sender: No OFD packet to send [20:11:01]OFD Sender: No OFD packet to send [20:11:06]OFD Sender: No OFD packet to send [20:11:11]OFD Sender: No OFD packet to send [20:11:16]OFD Sender: No OFD packet to send [20:11:21]OFD Sender: No OFD packet to send [20:11:26]OFD Sender: No OFD packet to send [20:11:31]OFD Sender: No OFD packet to send [20:11:36]OFD Sender: No OFD packet to send [20:11:41]OFD Sender: No OFD packet to send [20:11:46]OFD Sender: No OFD packet to send [20:11:51]OFD Sender: No OFD packet to send [20:11:56]OFD Sender: No OFD packet to send [20:12:01]OFD Sender: No OFD packet to send [20:12:06]OFD Sender: No OFD packet to send [20:12:11]OFD Sender: No OFD packet to send [20:12:16]OFD Sender: No OFD packet to send [20:12:21]OFD Sender: No OFD packet to send [20:12:26]OFD Sender: No OFD packet to send [20:12:31]OFD Sender: No OFD packet to send [20:12:36]OFD Sender: No OFD packet to send [20:12:42]OFD Sender: No OFD packet to send [20:12:47]OFD Sender: No OFD packet to send [20:12:52]OFD Sender: No OFD packet to send [20:12:57]OFD Sender: No OFD packet to send [20:13:02]OFD Sender: No OFD packet to send [20:13:07]OFD Sender: No OFD packet to send [20:13:12]OFD Sender: No OFD packet to send [20:13:17]OFD Sender: No OFD packet to send [20:13:22]OFD Sender: No OFD packet to send [20:13:27]OFD Sender: No OFD packet to send [20:13:32]OFD Sender: No OFD packet to send [20:13:37]OFD Sender: No OFD packet to send [20:13:42]OFD Sender: No OFD packet to send [20:13:47]OFD Sender: No OFD packet to send [20:13:52]OFD Sender: No OFD packet to send [20:13:57]OFD Sender: No OFD packet to send [20:14:02]OFD Sender: No OFD packet to send [20:14:07]OFD Sender: No OFD packet to send [20:14:12]OFD Sender: No OFD packet to send [20:14:17]OFD Sender: No OFD packet to send [20:14:22]OFD Sender: No OFD packet to send [20:14:22]int [20:14:22]Write to MH i2c: 01 00 00 C2 23 E5 [20:14:22]*** FLAG_PRN_KEY set [20:14:22]Write i2c OK [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: 01 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: 01 07 00 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: 01 07 00 C2 23 00 08 00 00 00 FF 0F 02 [20:14:22]state=0 [20:14:22]Key pressed [20:14:22]Feed [20:14:22]Write to MH i2c: D8 00 00 C3 23 BD [20:14:22]Write i2c OK [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: D8 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: D8 01 00 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: D8 01 00 C3 23 00 BE [20:14:22]int [20:14:22]Write to MH i2c: 01 00 00 C4 23 E7 [20:14:22]Write i2c OK [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: 01 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: 01 07 00 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: 01 07 00 C4 23 00 48 00 00 00 3C 00 72 [20:14:22]state=2 [20:14:22]Key pressed [20:14:22]int [20:14:22]Write to MH i2c: 01 00 00 C5 23 E8 [20:14:22]*** FLAG_PRN_KEY reset [20:14:22]Write i2c OK [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: 01 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: 01 07 00 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: 01 07 00 C5 23 00 00 00 00 00 FF 0F FD [20:14:22]state=2 [20:14:22]Stop feed [20:14:24]int [20:14:24]Write to MH i2c: 01 00 00 C6 23 E9 [20:14:24]*** FLAG_PRN_KEY set [20:14:24]Write i2c OK [20:14:24]MH_I2C_Read... [20:14:24]Read from MH i2c: 01 [20:14:24]MH_I2C_Read... [20:14:24]Read from MH i2c: 01 07 00 [20:14:24]MH_I2C_Read... [20:14:24]Read from MH i2c: 01 07 00 C6 23 00 08 00 00 00 FF 0F 06 [20:14:24]state=0 [20:14:24]Key pressed [20:14:24]Feed [20:14:24]Write to MH i2c: D8 00 00 C7 23 C1 [20:14:24]Write i2c OK [20:14:24]MH_I2C_Read... [20:14:24]Read from MH i2c: D8 [20:14:24]MH_I2C_Read... [20:14:24]Read from MH i2c: D8 01 00 [20:14:24]MH_I2C_Read... [20:14:24]Read from MH i2c: D8 01 00 C7 23 00 C2 [20:14:24]int [20:14:24]Write to MH i2c: 01 00 00 C8 23 EB [20:14:24]Write i2c OK [20:14:24]MH_I2C_Read... [20:14:24]Read from MH i2c: 01 [20:14:24]MH_I2C_Read... [20:14:24]Read from MH i2c: 01 07 00 [20:14:24]MH_I2C_Read... [20:14:24]Read from MH i2c: 01 07 00 C8 23 00 48 00 00 00 3C 00 76 [20:14:24]state=2 [20:14:24]Key pressed [20:14:24]int [20:14:24]Write to MH i2c: 01 00 00 C9 23 EC [20:14:24]*** FLAG_PRN_KEY reset [20:14:24]Write i2c OK [20:14:24]MH_I2C_Read... [20:14:24]Read from MH i2c: 01 [20:14:24]MH_I2C_Read... [20:14:24]Read from MH i2c: 01 07 00 [20:14:24]MH_I2C_Read... [20:14:24]Read from MH i2c: 01 07 00 C9 23 00 00 00 00 00 F5 0F F7 [20:14:24]state=2 [20:14:24]Stop feed [20:14:25]int [20:14:25]Write to MH i2c: 01 00 00 CA 23 ED [20:14:25]*** FLAG_PRN_KEY set [20:14:25]Write i2c OK [20:14:25]MH_I2C_Read... [20:14:25]Read from MH i2c: 01 [20:14:25]MH_I2C_Read... [20:14:25]Read from MH i2c: 01 07 00 [20:14:25]MH_I2C_Read... [20:14:25]Read from MH i2c: 01 07 00 CA 23 00 08 00 00 00 FF 0F 0A [20:14:25]state=0 [20:14:25]Key pressed [20:14:25]Feed [20:14:25]Write to MH i2c: D8 00 00 CB 23 C5 [20:14:25]Write i2c OK [20:14:25]MH_I2C_Read... [20:14:25]Read from MH i2c: D8 [20:14:25]MH_I2C_Read... [20:14:25]Read from MH i2c: D8 01 00 [20:14:25]MH_I2C_Read... [20:14:25]Read from MH i2c: D8 01 00 CB 23 00 C6 [20:14:25]int [20:14:25]Write to MH i2c: 01 00 00 CC 23 EF [20:14:25]Write i2c OK [20:14:25]MH_I2C_Read... [20:14:25]Read from MH i2c: 01 [20:14:25]MH_I2C_Read... [20:14:25]Read from MH i2c: 01 07 00 [20:14:25]MH_I2C_Read... [20:14:25]Read from MH i2c: 01 07 00 CC 23 00 48 00 00 00 3C 00 7A [20:14:25]state=2 [20:14:25]Key pressed [20:14:25]int [20:14:25]Write to MH i2c: 01 00 00 CD 23 F0 [20:14:25]*** FLAG_PRN_KEY reset [20:14:25]Write i2c OK [20:14:25]MH_I2C_Read... [20:14:25]Read from MH i2c: 01 [20:14:25]MH_I2C_Read... [20:14:25]Read from MH i2c: 01 07 00 [20:14:25]MH_I2C_Read... [20:14:25]Read from MH i2c: 01 07 00 CD 23 00 00 00 00 00 F6 0F FC [20:14:25]state=2 [20:14:25]Stop feed [20:14:27]OFD Sender: No OFD packet to send [20:14:28]int [20:14:28]Write to MH i2c: 01 00 00 CE 23 F1 [20:14:28]*** FLAG_PRN_PAP1 set [20:14:28]Write i2c OK [20:14:28]MH_I2C_Read... [20:14:28]Read from MH i2c: 01 [20:14:28]MH_I2C_Read... [20:14:28]Read from MH i2c: 01 07 00 [20:14:28]MH_I2C_Read... [20:14:28]Read from MH i2c: 01 07 00 CE 23 00 01 00 00 00 FF 0F 07 [20:14:28]state=0 [20:14:28]No paper [20:14:29]int [20:14:29]Write to MH i2c: 01 00 00 CF 23 F2 [20:14:29]*** FLAG_PRN_PAP2 set [20:14:29]Write i2c OK [20:14:29]MH_I2C_Read... [20:14:29]Read from MH i2c: 01 [20:14:29]MH_I2C_Read... [20:14:29]Read from MH i2c: 01 07 00 [20:14:29]MH_I2C_Read... [20:14:29]Read from MH i2c: 01 07 00 CF 23 00 03 00 00 00 FF 0F 0A [20:14:29]state=0 [20:14:29]No paper [20:14:29]Cover opened [20:14:29]int [20:14:29]Write to MH i2c: 01 00 00 D0 23 F3 [20:14:29]*** FLAG_PRN_PAP2 reset [20:14:29]Write i2c OK [20:14:29]MH_I2C_Read... [20:14:29]Read from MH i2c: 01 [20:14:29]MH_I2C_Read... [20:14:29]Read from MH i2c: 01 07 00 [20:14:29]MH_I2C_Read... [20:14:29]Read from MH i2c: 01 07 00 D0 23 00 01 00 00 00 FF 0F 09 [20:14:29]state=3 [20:14:29]No paper [20:14:29]Cover closed [20:14:30]int [20:14:30]Write to MH i2c: 01 00 00 D1 23 F4 [20:14:30]*** FLAG_PRN_PAP2 set [20:14:30]Write i2c OK [20:14:30]MH_I2C_Read... [20:14:30]Read from MH i2c: 01 [20:14:30]MH_I2C_Read... [20:14:30]Read from MH i2c: 01 07 00 [20:14:30]MH_I2C_Read... [20:14:30]Read from MH i2c: 01 07 00 D1 23 00 03 00 00 00 FF 0F 0C [20:14:30]state=0 [20:14:30]No paper [20:14:30]Cover opened [20:14:30]int [20:14:30]Write to MH i2c: 01 00 00 D2 23 F5 [20:14:30]*** FLAG_PRN_PAP2 reset [20:14:30]Write i2c OK [20:14:30]MH_I2C_Read... [20:14:30]Read from MH i2c: 01 [20:14:30]MH_I2C_Read... [20:14:30]Read from MH i2c: 01 07 00 [20:14:30]MH_I2C_Read... [20:14:30]Read from MH i2c: 01 07 00 D2 23 00 01 00 00 00 FF 0F 0B [20:14:30]state=3 [20:14:30]No paper [20:14:30]Cover closed [20:14:32]OFD Sender: No OFD packet to send [20:14:37]OFD Sender: No OFD packet to send [20:14:41]int [20:14:41]Write to MH i2c: 01 00 00 D3 23 F6 [20:14:41]*** FLAG_PRN_PAP1 reset [20:14:41]Write i2c OK [20:14:41]MH_I2C_Read... [20:14:41]Read from MH i2c: 01 [20:14:41]MH_I2C_Read... [20:14:41]Read from MH i2c: 01 07 00 [20:14:41]MH_I2C_Read... [20:14:41]Read from MH i2c: 01 07 00 D3 23 00 00 00 00 00 FF 0F 0B [20:14:41]state=0 [20:14:42]OFD Sender: No OFD packet to send [20:14:47]OFD Sender: No OFD packet to send [20:14:52]OFD Sender: No OFD packet to send [20:14:57]OFD Sender: No OFD packet to send [20:15:02]OFD Sender: No OFD packet to send [20:15:07]OFD Sender: No OFD packet to send [20:15:12]OFD Sender: No OFD packet to send [20:15:17]OFD Sender: No OFD packet to send [20:15:22]OFD Sender: No OFD packet to send [20:15:27]OFD Sender: No OFD packet to send [20:15:32]OFD Sender: No OFD packet to send [20:15:37]OFD Sender: No OFD packet to send [20:15:42]OFD Sender: No OFD packet to send [20:15:47]OFD Sender: No OFD packet to send [20:15:52]OFD Sender: No OFD packet to send [20:15:57]OFD Sender: No OFD packet to send [20:16:02]OFD Sender: No OFD packet to send [20:16:02]accept exits with 8 [20:16:02]New connection [20:16:02]New thread 3067039076 created [20:16:02]Thread 3067182436 joined [20:16:02]Waiting for new connection... [20:16:02] Sock 8.Parse request [20:16:02]Sock 8.Check first char [20:16:02]Sock 8.First char is OK [20:16:02]request: POST /json_proto HTTP/1.0 [20:16:02]Method: POST [20:16:02]URL: /json_proto [20:16:02]Method is POST - this is cgi request [20:16:02]url: /json_proto [20:16:02]query_string will be loaded in cgi processing [20:16:02]execute_cgi json_proto POST (null) [20:16:02]execute_cgi path=json_proto method=POST [20:16:02]POST find Content-Length [20:16:02]Host: 172.17.41.195:8080 [20:16:02]Content-Length: 1217 [20:16:02]Content-Type: application/json [20:16:02] [20:16:02]POST finish read [20:16:02]Found Content-Length = 1217 [20:16:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507632\u000A16.05.2024 19:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 50.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 3735.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3972823\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:16:02]execute_script... [20:16:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507632\u000A16.05.2024 19:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 50.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 3735.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3972823\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:16:02]POST & json_proto [20:16:02]process_json_proto [20:16:02]json parsed OK: [20:16:02]protocol is kg_v1.0 [20:16:02]action value=print_text [20:16:02]process_action print_text [20:16:02]cmd_print_text [20:16:02]ExternCall_PrintAddStr [20:16:02]wPrintStart [20:16:02]Write to MH i2c: 01 00 00 D4 23 F7 [20:16:02]Write i2c OK [20:16:02]MH_I2C_Read... [20:16:02]Read from MH i2c: 01 [20:16:02]MH_I2C_Read... [20:16:02]Read from MH i2c: 01 07 00 [20:16:02]MH_I2C_Read... [20:16:02]Read from MH i2c: 01 07 00 D4 23 00 00 00 00 00 FF 0F 0C [20:16:02]RasterBufferAndPrint [20:16:02]line *****ТОВАРНЫЙ ЧЕК***** [20:16:02]line АЗС-91 [20:16:02]line Партнер нефть [20:16:02]line 02508201610067 [20:16:02]line Кассир : Пайзулдаева А. [20:16:02]line Счет N : (1)507632 [20:16:02]line 16.05.2024 19:58 [20:16:02]line ПРОДАЖА [20:16:02]line ТРК (МРК, ГНК): 41 [20:16:02]line Вид ГСМ : 2710194210 [20:16:02]line ДТ-К-5 [20:16:02]line 50.000 x 74.70 [20:16:02]line ИТОГ: 3735.00 [20:16:02]line Тип оплаты: Талоны: Топливные Талоны [20:16:02]line 3972823 [20:16:02]line ______________________ [20:16:02]line (подпись) [20:16:02]written 0, free lines is 4095 [20:16:02]Write to MH i2c: 01 00 00 E8 23 0B [20:16:02]Write i2c OK [20:16:02]MH_I2C_Read... [20:16:02]Read from MH i2c: 01 [20:16:02]MH_I2C_Read... [20:16:02]Read from MH i2c: 01 07 00 [20:16:02]MH_I2C_Read... [20:16:02]Read from MH i2c: 01 07 00 E8 23 00 00 00 00 00 14 0E 34 [20:16:02]RasterBufferAndPrint [20:16:02]line [20:16:02]line [20:16:02]line [20:16:02]line [20:16:02]line [20:16:02]written 0, free lines is 3606 [20:16:03]MH_Cut [20:16:03]Write to MH i2c: D1 01 00 EF 23 01 E4 [20:16:03]Write i2c OK [20:16:03]MH_I2C_Read... [20:16:03]Read from MH i2c: D1 [20:16:03]MH_I2C_Read... [20:16:03]Read from MH i2c: D1 01 00 [20:16:03]MH_I2C_Read... [20:16:03]Read from MH i2c: D1 01 00 EF 23 00 E3 [20:16:03]Write to MH i2c: 01 00 00 F0 23 13 [20:16:03]Write i2c OK [20:16:03]MH_I2C_Read... [20:16:03]*** Cut start [20:16:03]*** Purtial cut [20:16:03]*** Stage 1: CUTSNS_PIN = 1 [20:16:03]Read from MH i2c: 01 [20:16:03]MH_I2C_Read... [20:16:03]*** Stop cut motor [20:16:03]*** Cut end [20:16:03]Read from MH i2c: 01 07 00 [20:16:03]MH_I2C_Read... [20:16:03]Read from MH i2c: 01 07 00 F0 23 00 00 00 00 00 FF 0F 28 [20:16:03]process_action print_text done [20:16:03]requested_data is exist [20:16:03]produce_requested_data [20:16:03]requested_item fm.sn is exist - process it [20:16:03]wFMCommunicate request_size=4 [20:16:03]MH_SAM_APDU [20:16:03]CAPDU: 80 11 00 00 [20:16:03]Write to MH i2c: E2 08 00 F1 23 80 11 00 00 00 00 00 00 8E [20:16:03]Write i2c OK [20:16:03]MH_I2C_Read... [20:16:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:16:03]Read from MH i2c: E2 [20:16:03]MH_I2C_Read... [20:16:03]Read from MH i2c: E2 17 00 [20:16:03]MH_I2C_Read... [20:16:03]Read from MH i2c: E2 17 00 F1 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E4 [20:16:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:16:03]wFMCommunicate OK [20:16:03]requested_item fd.num is exist - process it [20:16:03]SAM_PROTO_GetFieldsCounters [20:16:03]wFMCommunicate request_size=4 [20:16:03]MH_SAM_APDU [20:16:03]CAPDU: 80 13 00 00 [20:16:03]Write to MH i2c: E2 08 00 F2 23 80 13 00 00 00 00 00 00 91 [20:16:03]Write i2c OK [20:16:03]MH_I2C_Read... [20:16:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:16:04]Read from MH i2c: E2 [20:16:04]MH_I2C_Read... [20:16:04]Read from MH i2c: E2 62 00 [20:16:04]MH_I2C_Read... [20:16:04]Read from MH i2c: E2 62 00 F2 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EB 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [20:16: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EB 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:16:04]wFMCommunicate OK [20:16:04]SAM_PROTO_GetFieldsCounters done [20:16:04]requested_item shift.num is exist - process it [20:16:04]requested_item shift.opened is exist - process it [20:16:04]req_shift_opened [20:16:04]FM_GetShiftState [20:16:04]SAM_PROTO_GetShiftState [20:16:04]wFMCommunicate request_size=4 [20:16:04]MH_SAM_APDU [20:16:04]CAPDU: 80 13 01 00 [20:16:04]Write to MH i2c: E2 08 00 F3 23 80 13 01 00 00 00 00 00 93 [20:16:04]Write i2c OK [20:16:04]MH_I2C_Read... [20:16:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:16:04]Read from MH i2c: E2 [20:16:04]MH_I2C_Read... [20:16:04]Read from MH i2c: E2 0E 00 [20:16:04]MH_I2C_Read... [20:16:04]Read from MH i2c: E2 0E 00 F3 23 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 3F [20:16:04]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [20:16:04]wFMCommunicate OK [20:16:04]SAM_PROTO_GetShiftState done [20:16:04]FM_GetShiftState done [20:16:04]req_shift_opened done [20:16:04]requested_item shift.open_date is exist - process it [20:16:04]req_shift_open_date [20:16:04]req_shift_open_date done [20:16:04]produce_requested_data done [20:16:04]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67563,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [20:16:04]process_action_free print_text [20:16:04]json_value_free [20:16:04]json_value_free done [20:16:04]process_json_proto returns [20:16:04]Send response to host [20:16:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67563,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [20:16:04]free response buf [20:16:04]execute_script done [20:16:04]execute_script returns [20:16:04]free content buf [20:16:04]Sock 8.Close socket [20:16:04]Sock 8.Thread stoped [20:16:07]OFD Sender: No OFD packet to send [20:16:12]OFD Sender: No OFD packet to send [20:16:17]OFD Sender: No OFD packet to send [20:16:22]OFD Sender: No OFD packet to send [20:16:27]OFD Sender: No OFD packet to send [20:16:32]OFD Sender: No OFD packet to send [20:16:37]OFD Sender: No OFD packet to send [20:16:42]OFD Sender: No OFD packet to send [20:16:42]accept exits with 9 [20:16:42]New connection [20:16:42]New thread 3067182436 created [20:16:42]Thread 3067039076 joined [20:16:42]Waiting for new connection... [20:16:42] Sock 9.Parse request [20:16:42]Sock 9.Check first char [20:16:42]Sock 9.First char is OK [20:16:42]request: POST /json_proto HTTP/1.0 [20:16:42]Method: POST [20:16:42]URL: /json_proto [20:16:42]Method is POST - this is cgi request [20:16:42]url: /json_proto [20:16:42]query_string will be loaded in cgi processing [20:16:42]execute_cgi json_proto POST (null) [20:16:42]execute_cgi path=json_proto method=POST [20:16:42]POST find Content-Length [20:16:42]Host: 172.17.41.195:8080 [20:16:42]Content-Length: 1210 [20:16:42]Content-Type: application/json [20:16:42] [20:16:42]POST finish read [20:16:42]Found Content-Length = 1210 [20:16:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507633\u000A16.05.2024 19:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 5.990 x 66.80\u000A\u0418\u0422\u041E\u0413: 400.13\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:16:42]execute_script... [20:16:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507633\u000A16.05.2024 19:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 5.990 x 66.80\u000A\u0418\u0422\u041E\u0413: 400.13\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:16:42]POST & json_proto [20:16:42]process_json_proto [20:16:42]json parsed OK: [20:16:42]protocol is kg_v1.0 [20:16:42]action value=print_text [20:16:42]process_action print_text [20:16:42]cmd_print_text [20:16:42]ExternCall_PrintAddStr [20:16:42]wPrintStart [20:16:42]Write to MH i2c: 01 00 00 F4 23 17 [20:16:42]Write i2c OK [20:16:42]MH_I2C_Read... [20:16:42]Read from MH i2c: 01 [20:16:42]MH_I2C_Read... [20:16:42]Read from MH i2c: 01 07 00 [20:16:42]MH_I2C_Read... [20:16:42]Read from MH i2c: 01 07 00 F4 23 00 00 00 00 00 FF 0F 2C [20:16:42]RasterBufferAndPrint [20:16:42]line *****ТОВАРНЫЙ ЧЕК***** [20:16:42]line АЗС-91 [20:16:42]line Партнер нефть [20:16:42]line 02508201610067 [20:16:42]line Кассир : Пайзулдаева А. [20:16:42]line Счет N : (1)507633 [20:16:42]line 16.05.2024 19:59 [20:16:42]line ПРОДАЖА [20:16:42]line ТРК (МРК, ГНК): 33 [20:16:42]line Вид ГСМ : 2710124130 [20:16:42]line Аи-92-К-5 [20:16:42]line 5.990 x 66.80 [20:16:42]line ИТОГ: 400.13 [20:16:42]line Тип оплаты: Талоны: Топливная Карта [20:16:42]line 02750 [20:16:42]line ______________________ [20:16:42]line (подпись) [20:16:42]written 0, free lines is 4095 [20:16:42]Write to MH i2c: 01 00 00 08 24 2C [20:16:42]Write i2c OK [20:16:42]MH_I2C_Read... [20:16:42]Read from MH i2c: 01 [20:16:42]MH_I2C_Read... [20:16:42]Read from MH i2c: 01 07 00 [20:16:42]MH_I2C_Read... [20:16:42]Read from MH i2c: 01 07 00 08 24 00 00 00 00 00 12 0E 53 [20:16:42]RasterBufferAndPrint [20:16:42]line [20:16:42]line [20:16:42]line [20:16:42]line [20:16:42]line [20:16:42]written 0, free lines is 3603 [20:16:42]MH_Cut [20:16:42]Write to MH i2c: D1 01 00 0F 24 01 05 [20:16:42]Write i2c OK [20:16:42]MH_I2C_Read... [20:16:42]Read from MH i2c: D1 [20:16:42]MH_I2C_Read... [20:16:42]Read from MH i2c: D1 01 00 [20:16:42]MH_I2C_Read... [20:16:42]Read from MH i2c: D1 01 00 0F 24 00 04 [20:16:42]Write to MH i2c: 01 00 00 10 24 34 [20:16:42]Write i2c OK [20:16:42]MH_I2C_Read... [20:16:43]*** Cut start [20:16:43]*** Purtial cut [20:16:43]*** CUTSNS_PIN = 0 [20:16:43]*** Stage 1: CUTSNS_PIN = 1 [20:16:45]Read from MH i2c: 01 [20:16:45]MH_I2C_Read... [20:16:45]*** Stop cut motor [20:16:45]*** Cut end [20:16:45]Read from MH i2c: 01 07 00 [20:16:45]MH_I2C_Read... [20:16:45]Read from MH i2c: 01 07 00 10 24 00 00 00 00 00 FF 0F 49 [20:16:45]process_action print_text done [20:16:45]requested_data is exist [20:16:45]produce_requested_data [20:16:45]requested_item fm.sn is exist - process it [20:16:45]wFMCommunicate request_size=4 [20:16:45]MH_SAM_APDU [20:16:45]CAPDU: 80 11 00 00 [20:16:45]Write to MH i2c: E2 08 00 11 24 80 11 00 00 00 00 00 00 AF [20:16:45]Write i2c OK [20:16:45]MH_I2C_Read... [20:16:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:16:45]Read from MH i2c: E2 [20:16:45]MH_I2C_Read... [20:16:45]Read from MH i2c: E2 17 00 [20:16:45]MH_I2C_Read... [20:16:45]Read from MH i2c: E2 17 00 11 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 05 [20:16:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:16:45]wFMCommunicate OK [20:16:45]requested_item fd.num is exist - process it [20:16:45]SAM_PROTO_GetFieldsCounters [20:16:45]wFMCommunicate request_size=4 [20:16:45]MH_SAM_APDU [20:16:45]CAPDU: 80 13 00 00 [20:16:45]Write to MH i2c: E2 08 00 12 24 80 13 00 00 00 00 00 00 B2 [20:16:45]Write i2c OK [20:16:45]MH_I2C_Read... [20:16:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:16:45]Read from MH i2c: E2 [20:16:45]MH_I2C_Read... [20:16:45]Read from MH i2c: E2 62 00 [20:16:45]MH_I2C_Read... [20:16:45]Read from MH i2c: E2 62 00 12 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EB 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [20:16: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EB 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:16:45]wFMCommunicate OK [20:16:45]SAM_PROTO_GetFieldsCounters done [20:16:45]requested_item shift.num is exist - process it [20:16:45]requested_item shift.opened is exist - process it [20:16:45]req_shift_opened [20:16:45]FM_GetShiftState [20:16:45]SAM_PROTO_GetShiftState [20:16:45]wFMCommunicate request_size=4 [20:16:45]MH_SAM_APDU [20:16:45]CAPDU: 80 13 01 00 [20:16:45]Write to MH i2c: E2 08 00 13 24 80 13 01 00 00 00 00 00 B4 [20:16:45]Write i2c OK [20:16:45]MH_I2C_Read... [20:16:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:16:45]Read from MH i2c: E2 [20:16:45]MH_I2C_Read... [20:16:45]Read from MH i2c: E2 0E 00 [20:16:45]MH_I2C_Read... [20:16:45]Read from MH i2c: E2 0E 00 13 24 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 60 [20:16:45]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [20:16:45]wFMCommunicate OK [20:16:45]SAM_PROTO_GetShiftState done [20:16:45]FM_GetShiftState done [20:16:45]req_shift_opened done [20:16:45]requested_item shift.open_date is exist - process it [20:16:45]req_shift_open_date [20:16:45]req_shift_open_date done [20:16:45]produce_requested_data done [20:16:45]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67563,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [20:16:45]process_action_free print_text [20:16:45]json_value_free [20:16:45]json_value_free done [20:16:45]process_json_proto returns [20:16:45]Send response to host [20:16:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67563,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [20:16:45]free response buf [20:16:45]execute_script done [20:16:45]execute_script returns [20:16:45]free content buf [20:16:45]Sock 9.Close socket [20:16:45]Sock 9.Thread stoped [20:16:47]OFD Sender: No OFD packet to send [20:16:52]OFD Sender: No OFD packet to send [20:16:57]OFD Sender: No OFD packet to send [20:17:02]OFD Sender: No OFD packet to send [20:17:07]OFD Sender: No OFD packet to send [20:17:12]OFD Sender: No OFD packet to send [20:17:17]OFD Sender: No OFD packet to send [20:17:22]OFD Sender: No OFD packet to send [20:17:27]OFD Sender: No OFD packet to send [20:17:32]OFD Sender: No OFD packet to send [20:17:37]OFD Sender: No OFD packet to send [20:17:42]OFD Sender: No OFD packet to send [20:17:47]OFD Sender: No OFD packet to send [20:17:52]OFD Sender: No OFD packet to send [20:17:57]OFD Sender: No OFD packet to send [20:18:02]OFD Sender: No OFD packet to send [20:18:07]OFD Sender: No OFD packet to send [20:18:12]OFD Sender: No OFD packet to send [20:18:17]OFD Sender: No OFD packet to send [20:18:22]OFD Sender: No OFD packet to send [20:18:27]OFD Sender: No OFD packet to send [20:18:32]OFD Sender: No OFD packet to send [20:18:37]OFD Sender: No OFD packet to send [20:18:42]OFD Sender: No OFD packet to send [20:18:47]OFD Sender: No OFD packet to send [20:18:52]OFD Sender: No OFD packet to send [20:18:57]OFD Sender: No OFD packet to send [20:19:02]OFD Sender: No OFD packet to send [20:19:07]OFD Sender: No OFD packet to send [20:19:12]OFD Sender: No OFD packet to send [20:19:17]OFD Sender: No OFD packet to send [20:19:22]OFD Sender: No OFD packet to send [20:19:27]OFD Sender: No OFD packet to send [20:19:32]OFD Sender: No OFD packet to send [20:19:37]OFD Sender: No OFD packet to send [20:19:42]OFD Sender: No OFD packet to send [20:19:47]OFD Sender: No OFD packet to send [20:19:52]OFD Sender: No OFD packet to send [20:19:57]OFD Sender: No OFD packet to send [20:20:02]OFD Sender: No OFD packet to send [20:20:07]OFD Sender: No OFD packet to send [20:20:12]OFD Sender: No OFD packet to send [20:20:17]OFD Sender: No OFD packet to send [20:20:22]OFD Sender: No OFD packet to send [20:20:27]OFD Sender: No OFD packet to send [20:20:32]OFD Sender: No OFD packet to send [20:20:37]OFD Sender: No OFD packet to send [20:20:42]OFD Sender: No OFD packet to send [20:20:47]OFD Sender: No OFD packet to send [20:20:52]OFD Sender: No OFD packet to send [20:20:57]OFD Sender: No OFD packet to send [20:21:02]OFD Sender: No OFD packet to send [20:21:07]OFD Sender: No OFD packet to send [20:21:12]OFD Sender: No OFD packet to send [20:21:17]OFD Sender: No OFD packet to send [20:21:22]OFD Sender: No OFD packet to send [20:21:27]OFD Sender: No OFD packet to send [20:21:32]OFD Sender: No OFD packet to send [20:21:37]OFD Sender: No OFD packet to send [20:21:42]OFD Sender: No OFD packet to send [20:21:47]OFD Sender: No OFD packet to send [20:21:52]OFD Sender: No OFD packet to send [20:21:57]OFD Sender: No OFD packet to send [20:22:02]OFD Sender: No OFD packet to send [20:22:07]OFD Sender: No OFD packet to send [20:22:12]OFD Sender: No OFD packet to send [20:22:17]OFD Sender: No OFD packet to send [20:22:22]OFD Sender: No OFD packet to send [20:22:27]OFD Sender: No OFD packet to send [20:22:32]OFD Sender: No OFD packet to send [20:22:37]OFD Sender: No OFD packet to send [20:22:42]OFD Sender: No OFD packet to send [20:22:47]OFD Sender: No OFD packet to send [20:22:52]OFD Sender: No OFD packet to send [20:22:57]OFD Sender: No OFD packet to send [20:23:02]OFD Sender: No OFD packet to send [20:23:07]OFD Sender: No OFD packet to send [20:23:12]OFD Sender: No OFD packet to send [20:23:17]OFD Sender: No OFD packet to send [20:23:22]OFD Sender: No OFD packet to send [20:23:27]OFD Sender: No OFD packet to send [20:23:32]OFD Sender: No OFD packet to send [20:23:37]OFD Sender: No OFD packet to send [20:23:42]OFD Sender: No OFD packet to send [20:23:47]OFD Sender: No OFD packet to send [20:23:52]OFD Sender: No OFD packet to send [20:23:57]OFD Sender: No OFD packet to send [20:24:02]OFD Sender: No OFD packet to send [20:24:07]OFD Sender: No OFD packet to send [20:24:12]OFD Sender: No OFD packet to send [20:24:17]OFD Sender: No OFD packet to send [20:24:22]OFD Sender: No OFD packet to send [20:24:27]OFD Sender: No OFD packet to send [20:24:32]OFD Sender: No OFD packet to send [20:24:37]OFD Sender: No OFD packet to send [20:24:42]OFD Sender: No OFD packet to send [20:24:47]OFD Sender: No OFD packet to send [20:24:52]OFD Sender: No OFD packet to send [20:24:57]OFD Sender: No OFD packet to send [20:25:02]OFD Sender: No OFD packet to send [20:25:07]OFD Sender: No OFD packet to send [20:25:12]OFD Sender: No OFD packet to send [20:25:17]OFD Sender: No OFD packet to send [20:25:22]OFD Sender: No OFD packet to send [20:25:27]OFD Sender: No OFD packet to send [20:25:32]OFD Sender: No OFD packet to send [20:25:37]OFD Sender: No OFD packet to send [20:25:42]OFD Sender: No OFD packet to send [20:25:47]OFD Sender: No OFD packet to send [20:25:52]OFD Sender: No OFD packet to send [20:25:57]OFD Sender: No OFD packet to send [20:26:02]OFD Sender: No OFD packet to send [20:26:07]OFD Sender: No OFD packet to send [20:26:12]OFD Sender: No OFD packet to send [20:26:17]OFD Sender: No OFD packet to send [20:26:22]OFD Sender: No OFD packet to send [20:26:27]OFD Sender: No OFD packet to send [20:26:32]OFD Sender: No OFD packet to send [20:26:37]OFD Sender: No OFD packet to send [20:26:42]OFD Sender: No OFD packet to send [20:26:47]OFD Sender: No OFD packet to send [20:26:52]OFD Sender: No OFD packet to send [20:26:57]OFD Sender: No OFD packet to send [20:27:02]OFD Sender: No OFD packet to send [20:27:07]OFD Sender: No OFD packet to send [20:27:12]OFD Sender: No OFD packet to send [20:27:17]OFD Sender: No OFD packet to send [20:27:22]OFD Sender: No OFD packet to send [20:27:27]OFD Sender: No OFD packet to send [20:27:32]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:11]accept exits with 8 [20:28:11]New connection [20:28:11]New thread 3067039076 created [20:28:11]Thread 3067182436 joined [20:28:11]Waiting for new connection... [20:28:11] Sock 8.Parse request [20:28:11]Sock 8.Check first char [20:28:11]Sock 8.First char is OK [20:28:11]request: POST /json_proto HTTP/1.0 [20:28:11]Method: POST [20:28:11]URL: /json_proto [20:28:11]Method is POST - this is cgi request [20:28:11]url: /json_proto [20:28:11]query_string will be loaded in cgi processing [20:28:11]execute_cgi json_proto POST (null) [20:28:11]execute_cgi path=json_proto method=POST [20:28:11]POST find Content-Length [20:28:11]Host: 172.17.41.195:8080 [20:28:11]Content-Length: 1209 [20:28:11]Content-Type: application/json [20:28:11] [20:28:11]POST finish read [20:28:11]Found Content-Length = 1209 [20:28:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507634\u000A16.05.2024 20:10\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.090 x 74.70\u000A\u0418\u0422\u041E\u0413: 1500.72\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:28:11]execute_script... [20:28:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507634\u000A16.05.2024 20:10\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.090 x 74.70\u000A\u0418\u0422\u041E\u0413: 1500.72\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:28:11]POST & json_proto [20:28:11]process_json_proto [20:28:11]json parsed OK: [20:28:11]protocol is kg_v1.0 [20:28:11]action value=print_text [20:28:11]process_action print_text [20:28:11]cmd_print_text [20:28:11]ExternCall_PrintAddStr [20:28:11]wPrintStart [20:28:11]Write to MH i2c: 01 00 00 14 24 38 [20:28:11]Write i2c OK [20:28:11]MH_I2C_Read... [20:28:11]Read from MH i2c: 01 [20:28:11]MH_I2C_Read... [20:28:11]Read from MH i2c: 01 07 00 [20:28:11]MH_I2C_Read... [20:28:11]Read from MH i2c: 01 07 00 14 24 00 00 00 00 00 FF 0F 4D [20:28:11]RasterBufferAndPrint [20:28:11]line *****ТОВАРНЫЙ ЧЕК***** [20:28:11]line АЗС-91 [20:28:11]line Партнер нефть [20:28:11]line 02508201610067 [20:28:11]line Кассир : Пайзулдаева А. [20:28:11]line Счет N : (1)507634 [20:28:11]line 16.05.2024 20:10 [20:28:11]line ПРОДАЖА [20:28:11]line ТРК (МРК, ГНК): 41 [20:28:11]line Вид ГСМ : 2710194210 [20:28:11]line ДТ-К-5 [20:28:11]line 20.090 x 74.70 [20:28:11]line ИТОГ: 1500.72 [20:28:11]line Тип оплаты: Талоны: Топливная Карта [20:28:11]line 02750 [20:28:11]line ______________________ [20:28:11]line (подпись) [20:28:11]written 0, free lines is 4095 [20:28:11]Write to MH i2c: 01 00 00 28 24 4C [20:28:11]Write i2c OK [20:28:11]MH_I2C_Read... [20:28:11]Read from MH i2c: 01 [20:28:11]MH_I2C_Read... [20:28:11]Read from MH i2c: 01 07 00 [20:28:11]MH_I2C_Read... [20:28:11]Read from MH i2c: 01 07 00 28 24 00 00 00 00 00 10 0E 71 [20:28:11]RasterBufferAndPrint [20:28:11]line [20:28:11]line [20:28:11]line [20:28:11]line [20:28:11]line [20:28:11]written 0, free lines is 3602 [20:28:11]MH_Cut [20:28:11]Write to MH i2c: D1 01 00 2F 24 01 25 [20:28:11]Write i2c OK [20:28:11]MH_I2C_Read... [20:28:11]Read from MH i2c: D1 [20:28:11]MH_I2C_Read... [20:28:11]Read from MH i2c: D1 01 00 [20:28:11]MH_I2C_Read... [20:28:11]Read from MH i2c: D1 01 00 2F 24 00 24 [20:28:11]Write to MH i2c: 01 00 00 30 24 54 [20:28:11]Write i2c OK [20:28:11]MH_I2C_Read... [20:28:11]*** Cut start [20:28:11]*** Purtial cut [20:28:11]*** Stage 1: CUTSNS_PIN = 1 [20:28:12]Read from MH i2c: 01 [20:28:12]MH_I2C_Read... [20:28:12]Read from MH i2c: 01 07 00 [20:28:12]MH_I2C_Read... [20:28:12]*** Stop cut motor [20:28:12]*** Cut end [20:28:12]Read from MH i2c: 01 07 00 30 24 00 00 00 00 00 FF 0F 69 [20:28:12]process_action print_text done [20:28:12]requested_data is exist [20:28:12]produce_requested_data [20:28:12]requested_item fm.sn is exist - process it [20:28:12]wFMCommunicate request_size=4 [20:28:12]MH_SAM_APDU [20:28:12]CAPDU: 80 11 00 00 [20:28:12]Write to MH i2c: E2 08 00 31 24 80 11 00 00 00 00 00 00 CF [20:28:12]Write i2c OK [20:28:12]MH_I2C_Read... [20:28:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:12]Read from MH i2c: E2 [20:28:12]MH_I2C_Read... [20:28:12]Read from MH i2c: E2 17 00 [20:28:12]MH_I2C_Read... [20:28:12]Read from MH i2c: E2 17 00 31 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 25 [20:28:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:28:12]wFMCommunicate OK [20:28:12]requested_item fd.num is exist - process it [20:28:12]SAM_PROTO_GetFieldsCounters [20:28:12]wFMCommunicate request_size=4 [20:28:12]MH_SAM_APDU [20:28:12]CAPDU: 80 13 00 00 [20:28:12]Write to MH i2c: E2 08 00 32 24 80 13 00 00 00 00 00 00 D2 [20:28:12]Write i2c OK [20:28:12]MH_I2C_Read... [20:28:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:28:12]Read from MH i2c: E2 [20:28:12]MH_I2C_Read... [20:28:12]Read from MH i2c: E2 62 00 [20:28:12]MH_I2C_Read... [20:28:12]Read from MH i2c: E2 62 00 32 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EB 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [20:28: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EB 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:28:12]wFMCommunicate OK [20:28:12]SAM_PROTO_GetFieldsCounters done [20:28:12]requested_item shift.num is exist - process it [20:28:12]requested_item shift.opened is exist - process it [20:28:12]req_shift_opened [20:28:12]FM_GetShiftState [20:28:12]SAM_PROTO_GetShiftState [20:28:12]wFMCommunicate request_size=4 [20:28:12]MH_SAM_APDU [20:28:12]CAPDU: 80 13 01 00 [20:28:12]Write to MH i2c: E2 08 00 33 24 80 13 01 00 00 00 00 00 D4 [20:28:12]Write i2c OK [20:28:12]MH_I2C_Read... [20:28:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:12]Read from MH i2c: E2 [20:28:12]MH_I2C_Read... [20:28:12]Read from MH i2c: E2 0E 00 [20:28:12]MH_I2C_Read... [20:28:12]Read from MH i2c: E2 0E 00 33 24 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 80 [20:28:12]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [20:28:12]wFMCommunicate OK [20:28:12]SAM_PROTO_GetShiftState done [20:28:12]FM_GetShiftState done [20:28:12]req_shift_opened done [20:28:12]requested_item shift.open_date is exist - process it [20:28:12]req_shift_open_date [20:28:12]req_shift_open_date done [20:28:12]produce_requested_data done [20:28:12]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67563,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [20:28:12]process_action_free print_text [20:28:12]json_value_free [20:28:12]json_value_free done [20:28:12]process_json_proto returns [20:28:12]Send response to host [20:28:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67563,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [20:28:12]free response buf [20:28:12]execute_script done [20:28:12]execute_script returns [20:28:12]free content buf [20:28:12]Sock 8.Close socket [20:28:12]Sock 8.Thread stoped [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:52]OFD Sender: No OFD packet to send [20:28:57]OFD Sender: No OFD packet to send [20:29:02]OFD Sender: No OFD packet to send [20:29:07]OFD Sender: No OFD packet to send [20:29:12]OFD Sender: No OFD packet to send [20:29:17]OFD Sender: No OFD packet to send [20:29:22]OFD Sender: No OFD packet to send [20:29:25]accept exits with 9 [20:29:25]New connection [20:29:25]New thread 3067182436 created [20:29:25]Thread 3067039076 joined [20:29:25]Waiting for new connection... [20:29:25] Sock 9.Parse request [20:29:25]Sock 9.Check first char [20:29:25]Sock 9.First char is OK [20:29:25]request: POST /json_proto HTTP/1.0 [20:29:25]Method: POST [20:29:25]URL: /json_proto [20:29:25]Method is POST - this is cgi request [20:29:25]url: /json_proto [20:29:25]query_string will be loaded in cgi processing [20:29:25]execute_cgi json_proto POST (null) [20:29:25]execute_cgi path=json_proto method=POST [20:29:25]POST find Content-Length [20:29:25]Host: 172.17.41.195:8080 [20:29:25]Content-Length: 1209 [20:29:25]Content-Type: application/json [20:29:25] [20:29:25]POST finish read [20:29:25]Found Content-Length = 1209 [20:29:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507635\u000A16.05.2024 20:11\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 53.550 x 74.70\u000A\u0418\u0422\u041E\u0413: 4000.19\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:29:25]execute_script... [20:29:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507635\u000A16.05.2024 20:11\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 53.550 x 74.70\u000A\u0418\u0422\u041E\u0413: 4000.19\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:29:25]POST & json_proto [20:29:25]process_json_proto [20:29:25]json parsed OK: [20:29:25]protocol is kg_v1.0 [20:29:25]action value=print_text [20:29:25]process_action print_text [20:29:25]cmd_print_text [20:29:25]ExternCall_PrintAddStr [20:29:25]wPrintStart [20:29:25]Write to MH i2c: 01 00 00 34 24 58 [20:29:25]Write i2c OK [20:29:25]MH_I2C_Read... [20:29:25]Read from MH i2c: 01 [20:29:25]MH_I2C_Read... [20:29:25]Read from MH i2c: 01 07 00 [20:29:25]MH_I2C_Read... [20:29:25]Read from MH i2c: 01 07 00 34 24 00 00 00 00 00 FF 0F 6D [20:29:25]RasterBufferAndPrint [20:29:25]line *****ТОВАРНЫЙ ЧЕК***** [20:29:25]line АЗС-91 [20:29:25]line Партнер нефть [20:29:25]line 02508201610067 [20:29:25]line Кассир : Пайзулдаева А. [20:29:25]line Счет N : (1)507635 [20:29:25]line 16.05.2024 20:11 [20:29:25]line ПРОДАЖА [20:29:25]line ТРК (МРК, ГНК): 21 [20:29:25]line Вид ГСМ : 2710194210 [20:29:25]line ДТ-К-5 [20:29:25]line 53.550 x 74.70 [20:29:25]line ИТОГ: 4000.19 [20:29:25]line Тип оплаты: Талоны: Топливная Карта [20:29:25]line 02750 [20:29:25]line ______________________ [20:29:25]line (подпись) [20:29:25]written 0, free lines is 4095 [20:29:26]Write to MH i2c: 01 00 00 48 24 6C [20:29:26]Write i2c OK [20:29:26]MH_I2C_Read... [20:29:26]Read from MH i2c: 01 [20:29:26]MH_I2C_Read... [20:29:26]Read from MH i2c: 01 07 00 [20:29:26]MH_I2C_Read... [20:29:26]Read from MH i2c: 01 07 00 48 24 00 00 00 00 00 11 0E 92 [20:29:26]RasterBufferAndPrint [20:29:26]line [20:29:26]line [20:29:26]line [20:29:26]line [20:29:26]line [20:29:26]written 0, free lines is 3603 [20:29:26]MH_Cut [20:29:26]Write to MH i2c: D1 01 00 4F 24 01 45 [20:29:26]Write i2c OK [20:29:26]MH_I2C_Read... [20:29:26]Read from MH i2c: D1 [20:29:26]MH_I2C_Read... [20:29:26]Read from MH i2c: D1 01 00 [20:29:26]MH_I2C_Read... [20:29:26]Read from MH i2c: D1 01 00 4F 24 00 44 [20:29:26]Write to MH i2c: 01 00 00 50 24 74 [20:29:26]Write i2c OK [20:29:26]MH_I2C_Read... [20:29:26]*** Cut start [20:29:26]*** Purtial cut [20:29:26]*** CUTSNS_PIN = 0 [20:29:27]*** Stage 1: CUTSNS_PIN = 1 [20:29:27]OFD Sender: No OFD packet to send [20:29:28]Read from MH i2c: 01 [20:29:28]MH_I2C_Read... [20:29:28]*** Stop cut motor [20:29:28]*** Cut end [20:29:28]Read from MH i2c: 01 07 00 [20:29:28]MH_I2C_Read... [20:29:28]Read from MH i2c: 01 07 00 50 24 00 00 00 00 00 FF 0F 89 [20:29:28]process_action print_text done [20:29:28]requested_data is exist [20:29:28]produce_requested_data [20:29:28]requested_item fm.sn is exist - process it [20:29:28]wFMCommunicate request_size=4 [20:29:28]MH_SAM_APDU [20:29:28]CAPDU: 80 11 00 00 [20:29:28]Write to MH i2c: E2 08 00 51 24 80 11 00 00 00 00 00 00 EF [20:29:28]Write i2c OK [20:29:28]MH_I2C_Read... [20:29:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:29:28]Read from MH i2c: E2 [20:29:28]MH_I2C_Read... [20:29:28]Read from MH i2c: E2 17 00 [20:29:28]MH_I2C_Read... [20:29:28]Read from MH i2c: E2 17 00 51 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 45 [20:29:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:29:28]wFMCommunicate OK [20:29:28]requested_item fd.num is exist - process it [20:29:28]SAM_PROTO_GetFieldsCounters [20:29:28]wFMCommunicate request_size=4 [20:29:28]MH_SAM_APDU [20:29:28]CAPDU: 80 13 00 00 [20:29:28]Write to MH i2c: E2 08 00 52 24 80 13 00 00 00 00 00 00 F2 [20:29:28]Write i2c OK [20:29:28]MH_I2C_Read... [20:29:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:29:28]Read from MH i2c: E2 [20:29:28]MH_I2C_Read... [20:29:28]Read from MH i2c: E2 62 00 [20:29:28]MH_I2C_Read... [20:29:28]Read from MH i2c: E2 62 00 52 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EB 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [20:29: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EB 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:29:28]wFMCommunicate OK [20:29:28]SAM_PROTO_GetFieldsCounters done [20:29:28]requested_item shift.num is exist - process it [20:29:28]requested_item shift.opened is exist - process it [20:29:28]req_shift_opened [20:29:28]FM_GetShiftState [20:29:28]SAM_PROTO_GetShiftState [20:29:28]wFMCommunicate request_size=4 [20:29:28]MH_SAM_APDU [20:29:28]CAPDU: 80 13 01 00 [20:29:28]Write to MH i2c: E2 08 00 53 24 80 13 01 00 00 00 00 00 F4 [20:29:28]Write i2c OK [20:29:28]MH_I2C_Read... [20:29:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:29:28]Read from MH i2c: E2 [20:29:28]MH_I2C_Read... [20:29:28]Read from MH i2c: E2 0E 00 [20:29:28]MH_I2C_Read... [20:29:28]Read from MH i2c: E2 0E 00 53 24 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 A0 [20:29:28]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [20:29:28]wFMCommunicate OK [20:29:28]SAM_PROTO_GetShiftState done [20:29:28]FM_GetShiftState done [20:29:28]req_shift_opened done [20:29:28]requested_item shift.open_date is exist - process it [20:29:28]req_shift_open_date [20:29:28]req_shift_open_date done [20:29:28]produce_requested_data done [20:29:28]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67563,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [20:29:28]process_action_free print_text [20:29:28]json_value_free [20:29:28]json_value_free done [20:29:28]process_json_proto returns [20:29:28]Send response to host [20:29:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67563,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [20:29:28]free response buf [20:29:28]execute_script done [20:29:28]execute_script returns [20:29:28]free content buf [20:29:28]Sock 9.Close socket [20:29:28]Sock 9.Thread stoped [20:29:32]OFD Sender: No OFD packet to send [20:29:37]OFD Sender: No OFD packet to send [20:29:42]OFD Sender: No OFD packet to send [20:29:47]OFD Sender: No OFD packet to send [20:29:52]OFD Sender: No OFD packet to send [20:29:57]OFD Sender: No OFD packet to send [20:30:02]OFD Sender: No OFD packet to send [20:30:07]OFD Sender: No OFD packet to send [20:30:12]OFD Sender: No OFD packet to send [20:30:17]OFD Sender: No OFD packet to send [20:30:22]OFD Sender: No OFD packet to send [20:30:27]OFD Sender: No OFD packet to send [20:30:32]OFD Sender: No OFD packet to send [20:30:37]OFD Sender: No OFD packet to send [20:30:42]OFD Sender: No OFD packet to send [20:30:47]OFD Sender: No OFD packet to send [20:30:52]OFD Sender: No OFD packet to send [20:30:57]OFD Sender: No OFD packet to send [20:31:02]OFD Sender: No OFD packet to send [20:31:07]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:23]OFD Sender: No OFD packet to send [20:32:28]OFD Sender: No OFD packet to send [20:32:33]OFD Sender: No OFD packet to send [20:32:38]OFD Sender: No OFD packet to send [20:32:43]OFD Sender: No OFD packet to send [20:32:48]OFD Sender: No OFD packet to send [20:32:53]OFD Sender: No OFD packet to send [20:32:58]OFD Sender: No OFD packet to send [20:33:03]OFD Sender: No OFD packet to send [20:33:08]OFD Sender: No OFD packet to send [20:33:13]OFD Sender: No OFD packet to send [20:33:18]OFD Sender: No OFD packet to send [20:33:23]OFD Sender: No OFD packet to send [20:33:28]OFD Sender: No OFD packet to send [20:33:33]OFD Sender: No OFD packet to send [20:33:38]OFD Sender: No OFD packet to send [20:33:43]OFD Sender: No OFD packet to send [20:33:48]OFD Sender: No OFD packet to send [20:33:53]OFD Sender: No OFD packet to send [20:33:58]OFD Sender: No OFD packet to send [20:34:03]OFD Sender: No OFD packet to send [20:34:08]OFD Sender: No OFD packet to send [20:34:13]OFD Sender: No OFD packet to send [20:34:18]OFD Sender: No OFD packet to send [20:34:23]OFD Sender: No OFD packet to send [20:34:28]OFD Sender: No OFD packet to send [20:34:33]OFD Sender: No OFD packet to send [20:34:38]OFD Sender: No OFD packet to send [20:34:43]OFD Sender: No OFD packet to send [20:34:48]OFD Sender: No OFD packet to send [20:34:53]OFD Sender: No OFD packet to send [20:34:58]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [20:37:03]OFD Sender: No OFD packet to send [20:37:08]OFD Sender: No OFD packet to send [20:37:13]OFD Sender: No OFD packet to send [20:37:18]OFD Sender: No OFD packet to send [20:37:23]OFD Sender: No OFD packet to send [20:37:28]OFD Sender: No OFD packet to send [20:37:33]OFD Sender: No OFD packet to send [20:37:38]OFD Sender: No OFD packet to send [20:37:43]OFD Sender: No OFD packet to send [20:37:48]OFD Sender: No OFD packet to send [20:37:53]OFD Sender: No OFD packet to send [20:37:58]OFD Sender: No OFD packet to send [20:38:01]accept exits with 10 [20:38:01]New connection [20:38:01]New thread 3067039076 created [20:38:01]Thread 3067182436 joined [20:38:01]Waiting for new connection... [20:38:01] Sock 10.Parse request [20:38:01]Sock 10.Check first char [20:38:01]Sock 10.First char is OK [20:38:01]request: POST /json_proto HTTP/1.0 [20:38:01]Method: POST [20:38:01]URL: /json_proto [20:38:01]Method is POST - this is cgi request [20:38:01]url: /json_proto [20:38:01]query_string will be loaded in cgi processing [20:38:01]execute_cgi json_proto POST (null) [20:38:01]execute_cgi path=json_proto method=POST [20:38:01]POST find Content-Length [20:38:01]Host: 172.17.41.195:8080 [20:38:01]Content-Length: 1207 [20:38:01]Content-Type: application/json [20:38:01] [20:38:01]POST finish read [20:38:01]Found Content-Length = 1207 [20:38:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507636\u000A16.05.2024 20:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 5.360 x 74.70\u000A\u0418\u0422\u041E\u0413: 400.39\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:38:01]execute_script... [20:38:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507636\u000A16.05.2024 20:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 5.360 x 74.70\u000A\u0418\u0422\u041E\u0413: 400.39\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:38:01]POST & json_proto [20:38:01]process_json_proto [20:38:01]json parsed OK: [20:38:01]protocol is kg_v1.0 [20:38:01]action value=print_text [20:38:01]process_action print_text [20:38:01]cmd_print_text [20:38:01]ExternCall_PrintAddStr [20:38:01]wPrintStart [20:38:01]Write to MH i2c: 01 00 00 54 24 78 [20:38:01]Write i2c OK [20:38:01]MH_I2C_Read... [20:38:01]Read from MH i2c: 01 [20:38:01]MH_I2C_Read... [20:38:01]Read from MH i2c: 01 07 00 [20:38:01]MH_I2C_Read... [20:38:01]Read from MH i2c: 01 07 00 54 24 00 00 00 00 00 FF 0F 8D [20:38:01]RasterBufferAndPrint [20:38:01]line *****ТОВАРНЫЙ ЧЕК***** [20:38:01]line АЗС-91 [20:38:01]line Партнер нефть [20:38:01]line 02508201610067 [20:38:01]line Кассир : Пайзулдаева А. [20:38:01]line Счет N : (1)507636 [20:38:01]line 16.05.2024 20:20 [20:38:01]line ПРОДАЖА [20:38:01]line ТРК (МРК, ГНК): 31 [20:38:01]line Вид ГСМ : 2710194210 [20:38:01]line ДТ-К-5 [20:38:01]line 5.360 x 74.70 [20:38:01]line ИТОГ: 400.39 [20:38:01]line Тип оплаты: Талоны: Топливная Карта [20:38:01]line 02750 [20:38:01]line ______________________ [20:38:01]line (подпись) [20:38:01]written 0, free lines is 4095 [20:38:01]Write to MH i2c: 01 00 00 68 24 8C [20:38:01]Write i2c OK [20:38:01]MH_I2C_Read... [20:38:01]Read from MH i2c: 01 [20:38:01]MH_I2C_Read... [20:38:01]Read from MH i2c: 01 07 00 [20:38:01]MH_I2C_Read... [20:38:01]Read from MH i2c: 01 07 00 68 24 00 00 00 00 00 0E 0E AF [20:38:01]RasterBufferAndPrint [20:38:01]line [20:38:01]line [20:38:01]line [20:38:01]line [20:38:01]line [20:38:01]written 0, free lines is 3600 [20:38:01]MH_Cut [20:38:01]Write to MH i2c: D1 01 00 6F 24 01 65 [20:38:01]Write i2c OK [20:38:01]MH_I2C_Read... [20:38:01]Read from MH i2c: D1 [20:38:01]MH_I2C_Read... [20:38:01]Read from MH i2c: D1 01 00 [20:38:01]MH_I2C_Read... [20:38:01]Read from MH i2c: D1 01 00 6F 24 00 64 [20:38:01]Write to MH i2c: 01 00 00 70 24 94 [20:38:01]Write i2c OK [20:38:01]MH_I2C_Read... [20:38:01]*** Cut start [20:38:01]*** Purtial cut [20:38:01]*** Stage 1: CUTSNS_PIN = 1 [20:38:02]Read from MH i2c: 01 [20:38:02]MH_I2C_Read... [20:38:02]Read from MH i2c: 01 07 00 [20:38:02]MH_I2C_Read... [20:38:02]*** Stop cut motor [20:38:02]*** Cut end [20:38:02]Read from MH i2c: 01 07 00 70 24 00 00 00 00 00 FF 0F A9 [20:38:02]process_action print_text done [20:38:02]requested_data is exist [20:38:02]produce_requested_data [20:38:02]requested_item fm.sn is exist - process it [20:38:02]wFMCommunicate request_size=4 [20:38:02]MH_SAM_APDU [20:38:02]CAPDU: 80 11 00 00 [20:38:02]Write to MH i2c: E2 08 00 71 24 80 11 00 00 00 00 00 00 0F [20:38:02]Write i2c OK [20:38:02]MH_I2C_Read... [20:38:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:02]Read from MH i2c: E2 [20:38:02]MH_I2C_Read... [20:38:02]Read from MH i2c: E2 17 00 [20:38:02]MH_I2C_Read... [20:38:02]Read from MH i2c: E2 17 00 71 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 65 [20:38:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:38:02]wFMCommunicate OK [20:38:02]requested_item fd.num is exist - process it [20:38:02]SAM_PROTO_GetFieldsCounters [20:38:02]wFMCommunicate request_size=4 [20:38:02]MH_SAM_APDU [20:38:02]CAPDU: 80 13 00 00 [20:38:02]Write to MH i2c: E2 08 00 72 24 80 13 00 00 00 00 00 00 12 [20:38:02]Write i2c OK [20:38:02]MH_I2C_Read... [20:38:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:38:02]Read from MH i2c: E2 [20:38:02]MH_I2C_Read... [20:38:02]Read from MH i2c: E2 62 00 [20:38:02]MH_I2C_Read... [20:38:02]Read from MH i2c: E2 62 00 72 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EB 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [20:38:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EB 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:38:02]wFMCommunicate OK [20:38:02]SAM_PROTO_GetFieldsCounters done [20:38:02]requested_item shift.num is exist - process it [20:38:02]requested_item shift.opened is exist - process it [20:38:02]req_shift_opened [20:38:02]FM_GetShiftState [20:38:02]SAM_PROTO_GetShiftState [20:38:02]wFMCommunicate request_size=4 [20:38:02]MH_SAM_APDU [20:38:02]CAPDU: 80 13 01 00 [20:38:02]Write to MH i2c: E2 08 00 73 24 80 13 01 00 00 00 00 00 14 [20:38:02]Write i2c OK [20:38:02]MH_I2C_Read... [20:38:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:02]Read from MH i2c: E2 [20:38:02]MH_I2C_Read... [20:38:02]Read from MH i2c: E2 0E 00 [20:38:02]MH_I2C_Read... [20:38:02]Read from MH i2c: E2 0E 00 73 24 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 C0 [20:38:02]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [20:38:02]wFMCommunicate OK [20:38:02]SAM_PROTO_GetShiftState done [20:38:02]FM_GetShiftState done [20:38:02]req_shift_opened done [20:38:02]requested_item shift.open_date is exist - process it [20:38:02]req_shift_open_date [20:38:02]req_shift_open_date done [20:38:02]produce_requested_data done [20:38:02]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67563,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [20:38:02]process_action_free print_text [20:38:02]json_value_free [20:38:02]json_value_free done [20:38:02]process_json_proto returns [20:38:02]Send response to host [20:38:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67563,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [20:38:02]free response buf [20:38:02]execute_script done [20:38:02]execute_script returns [20:38:02]free content buf [20:38:02]Sock 10.Close socket [20:38:02]Sock 10.Thread stoped [20:38:03]OFD Sender: No OFD packet to send [20:38:08]OFD Sender: No OFD packet to send [20:38:13]OFD Sender: No OFD packet to send [20:38:18]OFD Sender: No OFD packet to send [20:38:23]OFD Sender: No OFD packet to send [20:38:28]OFD Sender: No OFD packet to send [20:38:33]OFD Sender: No OFD packet to send [20:38:38]OFD Sender: No OFD packet to send [20:38:43]OFD Sender: No OFD packet to send [20:38:48]OFD Sender: No OFD packet to send [20:38:53]OFD Sender: No OFD packet to send [20:38:58]OFD Sender: No OFD packet to send [20:39:03]OFD Sender: No OFD packet to send [20:39:08]OFD Sender: No OFD packet to send [20:39:13]OFD Sender: No OFD packet to send [20:39:18]OFD Sender: No OFD packet to send [20:39:23]OFD Sender: No OFD packet to send [20:39:28]OFD Sender: No OFD packet to send [20:39:33]OFD Sender: No OFD packet to send [20:39:38]OFD Sender: No OFD packet to send [20:39:43]OFD Sender: No OFD packet to send [20:39:48]OFD Sender: No OFD packet to send [20:39:53]OFD Sender: No OFD packet to send [20:39:58]OFD Sender: No OFD packet to send [20:40:03]OFD Sender: No OFD packet to send [20:40:08]OFD Sender: No OFD packet to send [20:40:13]OFD Sender: No OFD packet to send [20:40:18]OFD Sender: No OFD packet to send [20:40:23]OFD Sender: No OFD packet to send [20:40:28]OFD Sender: No OFD packet to send [20:40:33]OFD Sender: No OFD packet to send [20:40:38]OFD Sender: No OFD packet to send [20:40:43]OFD Sender: No OFD packet to send [20:40:48]OFD Sender: No OFD packet to send [20:40:53]OFD Sender: No OFD packet to send [20:40:58]OFD Sender: No OFD packet to send [20:41:03]OFD Sender: No OFD packet to send [20:41:08]OFD Sender: No OFD packet to send [20:41:13]OFD Sender: No OFD packet to send [20:41:18]OFD Sender: No OFD packet to send [20:41:23]OFD Sender: No OFD packet to send [20:41:28]OFD Sender: No OFD packet to send [20:41:33]OFD Sender: No OFD packet to send [20:41:38]OFD Sender: No OFD packet to send [20:41:43]OFD Sender: No OFD packet to send [20:41:48]OFD Sender: No OFD packet to send [20:41:53]OFD Sender: No OFD packet to send [20:41:58]OFD Sender: No OFD packet to send [20:42:03]OFD Sender: No OFD packet to send [20:42:08]OFD Sender: No OFD packet to send [20:42:11]int [20:42:11]Write to MH i2c: 01 00 00 74 24 98 [20:42:11]*** FLAG_PRN_PAP1 set [20:42:11]Write i2c OK [20:42:11]MH_I2C_Read... [20:42:11]Read from MH i2c: 01 [20:42:11]MH_I2C_Read... [20:42:11]Read from MH i2c: 01 07 00 [20:42:11]MH_I2C_Read... [20:42:11]Read from MH i2c: 01 07 00 74 24 00 01 00 00 00 FF 0F AE [20:42:11]state=0 [20:42:11]No paper [20:42:13]OFD Sender: No OFD packet to send [20:42:18]OFD Sender: No OFD packet to send [20:42:19]int [20:42:19]Write to MH i2c: 01 00 00 75 24 99 [20:42:19]*** FLAG_PRN_PAP1 reset [20:42:19]Write i2c OK [20:42:19]MH_I2C_Read... [20:42:19]Read from MH i2c: 01 [20:42:19]MH_I2C_Read... [20:42:19]Read from MH i2c: 01 07 00 [20:42:19]MH_I2C_Read... [20:42:19]Read from MH i2c: 01 07 00 75 24 00 00 00 00 00 FF 0F AE [20:42:19]state=0 [20:42:23]OFD Sender: No OFD packet to send [20:42:28]OFD Sender: No OFD packet to send [20:42:33]OFD Sender: No OFD packet to send [20:42:38]OFD Sender: No OFD packet to send [20:42:43]OFD Sender: No OFD packet to send [20:42:48]OFD Sender: No OFD packet to send [20:42:53]OFD Sender: No OFD packet to send [20:42:58]OFD Sender: No OFD packet to send [20:43:03]OFD Sender: No OFD packet to send [20:43:08]OFD Sender: No OFD packet to send [20:43:13]OFD Sender: No OFD packet to send [20:43:18]OFD Sender: No OFD packet to send [20:43:23]OFD Sender: No OFD packet to send [20:43:28]OFD Sender: No OFD packet to send [20:43:33]OFD Sender: No OFD packet to send [20:43:38]OFD Sender: No OFD packet to send [20:43:43]OFD Sender: No OFD packet to send [20:43:48]OFD Sender: No OFD packet to send [20:43:53]OFD Sender: No OFD packet to send [20:43:58]OFD Sender: No OFD packet to send [20:44:03]OFD Sender: No OFD packet to send [20:44:08]OFD Sender: No OFD packet to send [20:44:13]OFD Sender: No OFD packet to send [20:44:18]OFD Sender: No OFD packet to send [20:44:23]OFD Sender: No OFD packet to send [20:44:28]OFD Sender: No OFD packet to send [20:44:33]OFD Sender: No OFD packet to send [20:44:38]OFD Sender: No OFD packet to send [20:44:43]OFD Sender: No OFD packet to send [20:44:48]OFD Sender: No OFD packet to send [20:44:53]OFD Sender: No OFD packet to send [20:44:58]OFD Sender: No OFD packet to send [20:45:03]OFD Sender: No OFD packet to send [20:45:08]OFD Sender: No OFD packet to send [20:45:13]OFD Sender: No OFD packet to send [20:45:18]OFD Sender: No OFD packet to send [20:45:23]OFD Sender: No OFD packet to send [20:45:28]OFD Sender: No OFD packet to send [20:45:33]OFD Sender: No OFD packet to send [20:45:38]OFD Sender: No OFD packet to send [20:45:43]OFD Sender: No OFD packet to send [20:45:48]OFD Sender: No OFD packet to send [20:45:53]OFD Sender: No OFD packet to send [20:45:58]OFD Sender: No OFD packet to send [20:46:03]OFD Sender: No OFD packet to send [20:46:08]OFD Sender: No OFD packet to send [20:46:13]OFD Sender: No OFD packet to send [20:46:18]OFD Sender: No OFD packet to send [20:46:23]OFD Sender: No OFD packet to send [20:46:28]OFD Sender: No OFD packet to send [20:46:33]OFD Sender: No OFD packet to send [20:46:38]OFD Sender: No OFD packet to send [20:46:43]OFD Sender: No OFD packet to send [20:46:48]OFD Sender: No OFD packet to send [20:46:53]OFD Sender: No OFD packet to send [20:46:58]OFD Sender: No OFD packet to send [20:47:03]OFD Sender: No OFD packet to send [20:47:08]OFD Sender: No OFD packet to send [20:47:13]OFD Sender: No OFD packet to send [20:47:18]OFD Sender: No OFD packet to send [20:47:23]OFD Sender: No OFD packet to send [20:47:28]OFD Sender: No OFD packet to send [20:47:33]OFD Sender: No OFD packet to send [20:47:34]accept exits with 8 [20:47:34]New connection [20:47:34]New thread 3067182436 created [20:47:34]Thread 3067039076 joined [20:47:34]Waiting for new connection... [20:47:34] Sock 8.Parse request [20:47:34]Sock 8.Check first char [20:47:34]Sock 8.First char is OK [20:47:34]request: POST /json_proto HTTP/1.0 [20:47:34]Method: POST [20:47:34]URL: /json_proto [20:47:34]Method is POST - this is cgi request [20:47:34]url: /json_proto [20:47:34]query_string will be loaded in cgi processing [20:47:34]execute_cgi json_proto POST (null) [20:47:34]execute_cgi path=json_proto method=POST [20:47:34]POST find Content-Length [20:47:34]Host: 172.17.41.195:8080 [20:47:34]Content-Length: 1217 [20:47:34]Content-Type: application/json [20:47:34] [20:47:34]POST finish read [20:47:34]Found Content-Length = 1217 [20:47:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507639\u000A16.05.2024 20:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 50.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 3735.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3972881\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:47:34]execute_script... [20:47:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507639\u000A16.05.2024 20:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 50.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 3735.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3972881\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:47:34]POST & json_proto [20:47:34]process_json_proto [20:47:34]json parsed OK: [20:47:34]protocol is kg_v1.0 [20:47:34]action value=print_text [20:47:34]process_action print_text [20:47:34]cmd_print_text [20:47:34]ExternCall_PrintAddStr [20:47:34]wPrintStart [20:47:34]Write to MH i2c: 01 00 00 76 24 9A [20:47:34]Write i2c OK [20:47:34]MH_I2C_Read... [20:47:34]Read from MH i2c: 01 [20:47:34]MH_I2C_Read... [20:47:34]Read from MH i2c: 01 07 00 [20:47:34]MH_I2C_Read... [20:47:34]Read from MH i2c: 01 07 00 76 24 00 00 00 00 00 FF 0F AF [20:47:34]RasterBufferAndPrint [20:47:34]line *****ТОВАРНЫЙ ЧЕК***** [20:47:34]line АЗС-91 [20:47:34]line Партнер нефть [20:47:34]line 02508201610067 [20:47:34]line Кассир : Пайзулдаева А. [20:47:34]line Счет N : (1)507639 [20:47:34]line 16.05.2024 20:30 [20:47:34]line ПРОДАЖА [20:47:34]line ТРК (МРК, ГНК): 31 [20:47:34]line Вид ГСМ : 2710194210 [20:47:34]line ДТ-К-5 [20:47:34]line 50.000 x 74.70 [20:47:34]line ИТОГ: 3735.00 [20:47:34]line Тип оплаты: Талоны: Топливные Талоны [20:47:34]line 3972881 [20:47:34]line ______________________ [20:47:34]line (подпись) [20:47:34]written 0, free lines is 4095 [20:47:34]Write to MH i2c: 01 00 00 8A 24 AE [20:47:34]Write i2c OK [20:47:34]MH_I2C_Read... [20:47:34]Read from MH i2c: 01 [20:47:34]MH_I2C_Read... [20:47:34]Read from MH i2c: 01 07 00 [20:47:34]MH_I2C_Read... [20:47:34]Read from MH i2c: 01 07 00 8A 24 00 00 00 00 00 0F 0E D2 [20:47:34]RasterBufferAndPrint [20:47:34]line [20:47:34]line [20:47:34]line [20:47:34]line [20:47:34]line [20:47:34]written 0, free lines is 3601 [20:47:34]MH_Cut [20:47:34]Write to MH i2c: D1 01 00 91 24 01 87 [20:47:34]Write i2c OK [20:47:34]MH_I2C_Read... [20:47:34]Read from MH i2c: D1 [20:47:34]MH_I2C_Read... [20:47:34]Read from MH i2c: D1 01 00 [20:47:34]MH_I2C_Read... [20:47:34]Read from MH i2c: D1 01 00 91 24 00 86 [20:47:34]Write to MH i2c: 01 00 00 92 24 B6 [20:47:34]Write i2c OK [20:47:34]MH_I2C_Read... [20:47:34]*** Cut start [20:47:34]*** Purtial cut [20:47:34]*** CUTSNS_PIN = 0 [20:47:35]*** Stage 1: CUTSNS_PIN = 1 [20:47:36]Read from MH i2c: 01 [20:47:36]MH_I2C_Read... [20:47:36]*** Stop cut motor [20:47:36]*** Cut end [20:47:36]Read from MH i2c: 01 07 00 [20:47:36]MH_I2C_Read... [20:47:36]Read from MH i2c: 01 07 00 92 24 00 00 00 00 00 FF 0F CB [20:47:36]process_action print_text done [20:47:36]requested_data is exist [20:47:36]produce_requested_data [20:47:36]requested_item fm.sn is exist - process it [20:47:36]wFMCommunicate request_size=4 [20:47:36]MH_SAM_APDU [20:47:36]CAPDU: 80 11 00 00 [20:47:36]Write to MH i2c: E2 08 00 93 24 80 11 00 00 00 00 00 00 31 [20:47:36]Write i2c OK [20:47:36]MH_I2C_Read... [20:47:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:47:36]Read from MH i2c: E2 [20:47:36]MH_I2C_Read... [20:47:36]Read from MH i2c: E2 17 00 [20:47:36]MH_I2C_Read... [20:47:36]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 38 32 39 90 00 87 [20:47:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:47:36]wFMCommunicate OK [20:47:36]requested_item fd.num is exist - process it [20:47:36]SAM_PROTO_GetFieldsCounters [20:47:36]wFMCommunicate request_size=4 [20:47:36]MH_SAM_APDU [20:47:36]CAPDU: 80 13 00 00 [20:47:36]Write to MH i2c: E2 08 00 94 24 80 13 00 00 00 00 00 00 34 [20:47:36]Write i2c OK [20:47:36]MH_I2C_Read... [20:47:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:47:36]Read from MH i2c: E2 [20:47:36]MH_I2C_Read... [20:47:37]Read from MH i2c: E2 62 00 [20:47:37]MH_I2C_Read... [20:47:37]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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EB 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [20:47: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EB 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:47:37]wFMCommunicate OK [20:47:37]SAM_PROTO_GetFieldsCounters done [20:47:37]requested_item shift.num is exist - process it [20:47:37]requested_item shift.opened is exist - process it [20:47:37]req_shift_opened [20:47:37]FM_GetShiftState [20:47:37]SAM_PROTO_GetShiftState [20:47:37]wFMCommunicate request_size=4 [20:47:37]MH_SAM_APDU [20:47:37]CAPDU: 80 13 01 00 [20:47:37]Write to MH i2c: E2 08 00 95 24 80 13 01 00 00 00 00 00 36 [20:47:37]Write i2c OK [20:47:37]MH_I2C_Read... [20:47:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:47:37]Read from MH i2c: E2 [20:47:37]MH_I2C_Read... [20:47:37]Read from MH i2c: E2 0E 00 [20:47:37]MH_I2C_Read... [20:47:37]Read from MH i2c: E2 0E 00 95 24 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 E2 [20:47:37]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [20:47:37]wFMCommunicate OK [20:47:37]SAM_PROTO_GetShiftState done [20:47:37]FM_GetShiftState done [20:47:37]req_shift_opened done [20:47:37]requested_item shift.open_date is exist - process it [20:47:37]req_shift_open_date [20:47:37]req_shift_open_date done [20:47:37]produce_requested_data done [20:47:37]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67563,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [20:47:37]process_action_free print_text [20:47:37]json_value_free [20:47:37]json_value_free done [20:47:37]process_json_proto returns [20:47:37]Send response to host [20:47:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67563,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [20:47:37]free response buf [20:47:37]execute_script done [20:47:37]execute_script returns [20:47:37]free content buf [20:47:37]Sock 8.Close socket [20:47:37]Sock 8.Thread stoped [20:47:38]OFD Sender: No OFD packet to send [20:47:43]OFD Sender: No OFD packet to send [20:47:48]OFD Sender: No OFD packet to send [20:47:53]OFD Sender: No OFD packet to send [20:47:58]OFD Sender: No OFD packet to send [20:48:03]OFD Sender: No OFD packet to send [20:48:08]OFD Sender: No OFD packet to send [20:48:13]OFD Sender: No OFD packet to send [20:48:18]OFD Sender: No OFD packet to send [20:48:22]accept exits with 9 [20:48:22]New connection [20:48:22]New thread 3067039076 created [20:48:22]Thread 3067182436 joined [20:48:22]Waiting for new connection... [20:48:22] Sock 9.Parse request [20:48:22]Sock 9.Check first char [20:48:22]Sock 9.First char is OK [20:48:22]request: POST /json_proto HTTP/1.0 [20:48:22]Method: POST [20:48:22]URL: /json_proto [20:48:22]Method is POST - this is cgi request [20:48:22]url: /json_proto [20:48:22]query_string will be loaded in cgi processing [20:48:22]execute_cgi json_proto POST (null) [20:48:22]execute_cgi path=json_proto method=POST [20:48:22]POST find Content-Length [20:48:22]Host: 172.17.41.195:8080 [20:48:22]Content-Length: 639 [20:48:22]Content-Type: application/json [20:48:22] [20:48:22]POST finish read [20:48:22]Found Content-Length = 639 [20:48:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507640", "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.80, "quantity" : 5.000, "sum" : 334.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 334.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:48:22]execute_script... [20:48:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507640", "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.80, "quantity" : 5.000, "sum" : 334.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 334.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:48:22]POST & json_proto [20:48:22]process_json_proto [20:48:22]json parsed OK: [20:48:22]protocol is kg_v1.0 [20:48:22]action value=close_receipt [20:48:22]process_action close_receipt [20:48:22]cmd_close_receipt [20:48:22]MH_GetDate [20:48:22]Write to MH i2c: F0 00 00 96 24 A9 [20:48:22]Write i2c OK [20:48:22]MH_I2C_Read... [20:48:22]Read from MH i2c: F0 [20:48:22]MH_I2C_Read... [20:48:22]Read from MH i2c: F0 09 00 [20:48:22]MH_I2C_Read... [20:48:22]Read from MH i2c: F0 09 00 96 24 00 18 71 46 66 FC 21 6F 64 D7 [20:48:22]GetLastDocTimeStamp 1715890166 [20:48:22]current date 1715892504 [20:48:22]FM_GetShiftState [20:48:22]SAM_PROTO_GetShiftState [20:48:22]wFMCommunicate request_size=4 [20:48:22]MH_SAM_APDU [20:48:22]CAPDU: 80 13 01 00 [20:48:22]Write to MH i2c: E2 08 00 97 24 80 13 01 00 00 00 00 00 38 [20:48:22]Write i2c OK [20:48:22]MH_I2C_Read... [20:48:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:22]Read from MH i2c: E2 [20:48:22]MH_I2C_Read... [20:48:22]Read from MH i2c: E2 0E 00 [20:48:22]MH_I2C_Read... [20:48:22]Read from MH i2c: E2 0E 00 97 24 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 E4 [20:48:22]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [20:48:22]wFMCommunicate OK [20:48:22]SAM_PROTO_GetShiftState done [20:48:22]FM_GetShiftState done [20:48:22]opened in 1715818916 [20:48:22]opened+sec_in_day 1715905316 [20:48:22]quantity*price = 33400 [20:48:22]sum+1 = 33401 [20:48:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 334.00 НСП 1% : 2.96 НДС 12% : 35.47 Наличными: 334.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 162 16.05.2024 20:48 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67564 ФПД: 49033234547911 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T204824&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67564&fm=49033234547911&tin=02508201610067®Number=0000000000091845&sum=33400 [20:48:23]StoreToDocumentArchive [20:48:23]shift 357 fd 67564 [20:48:23]save to /storage/0357/doc_00067564 [20:48:23]save last doc name /storage/0357/doc_00067564 to /storage/kkm_last_doc_name [20:48:23]save OK [20:48:23]Clear old archive folders... [20:48:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:48:23]tlvbuf is 017947F0 [20:48:23]SAM_PROTO_ClearQueue [20:48:23]wFMCommunicate request_size=4 [20:48:23]MH_SAM_APDU [20:48:23]CAPDU: 80 09 00 00 [20:48:23]Write to MH i2c: E2 08 00 A4 24 80 09 00 00 00 00 00 00 3A [20:48:23]Write i2c OK [20:48:23]MH_I2C_Read... [20:48:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:48:23]Read from MH i2c: E2 [20:48:23]MH_I2C_Read... [20:48:23]Read from MH i2c: E2 03 00 [20:48:23]MH_I2C_Read... [20:48:23]Read from MH i2c: E2 03 00 A4 24 00 90 00 3C [20:48:23]RAPDU: 90 00 [20:48:23]wFMCommunicate OK [20:48:23]SAM_PROTO_ClearQueue done [20:48:23]KKMCreateOFDPacket [20:48:23]OFDProtocolAddRootSTLVToBuf [20:48:23]FM_MakeSignedData [20:48:23]FM_MakeSignedData [20:48:23]SAM_PROTO_SignData [20:48:23]wFMCommunicate request_size=4 [20:48:23]MH_SAM_APDU [20:48:23]CAPDU: 80 0D 01 02 [20:48:23]Write to MH i2c: E2 08 00 A5 24 80 0D 01 02 00 00 00 00 42 [20:48:23]Write i2c OK [20:48:23]MH_I2C_Read... [20:48:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:48:23]Read from MH i2c: E2 [20:48:23]MH_I2C_Read... [20:48:23]Read from MH i2c: E2 03 00 [20:48:23]MH_I2C_Read... [20:48:23]Read from MH i2c: E2 03 00 A5 24 00 90 00 3D [20:48:23]RAPDU: 90 00 [20:48:23]wFMCommunicate OK [20:48:23]wFMCommunicate request_size=255 [20:48:23]MH_SAM_APDU [20:48:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 78 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 0D 00 00 00 00 07 04 06 00 78 82 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 18 71 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EC 07 01 00 35 04 06 00 2C [20:48:23]Write to MH i2c: E2 02 01 A6 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 78 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 0D 00 00 00 00 07 04 06 00 78 82 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 18 71 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EC 07 01 00 35 04 06 00 2C 00 00 7A [20:48:23]Write i2c OK [20:48:23]MH_I2C_Read... [20:48:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:23]Read from MH i2c: E2 [20:48:23]MH_I2C_Read... [20:48:23]Read from MH i2c: E2 03 00 [20:48:23]MH_I2C_Read... [20:48:23]Read from MH i2c: E2 03 00 A6 24 00 90 00 3E [20:48:23]RAPDU: 90 00 [20:48:23]wFMCommunicate OK [20:48:23]wFMCommunicate request_size=10 [20:48:23]MH_SAM_APDU [20:48:23]CAPDU: 80 0D 02 02 05 98 70 87 04 C7 [20:48:23]Write to MH i2c: E2 0D 00 A7 24 80 0D 02 02 05 00 98 70 87 04 C7 00 00 A9 [20:48:23]Write i2c OK [20:48:23]MH_I2C_Read... [20:48:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:23]Read from MH i2c: E2 [20:48:23]MH_I2C_Read... [20:48:23]Read from MH i2c: E2 03 00 [20:48:23]MH_I2C_Read... [20:48:23]Read from MH i2c: E2 03 00 A7 24 00 90 00 3F [20:48:23]RAPDU: 90 00 [20:48:23]wFMCommunicate OK [20:48:23]wFMCommunicate request_size=4 [20:48:23]MH_SAM_APDU [20:48:23]CAPDU: 80 0D 03 02 [20:48:23]Write to MH i2c: E2 08 00 A8 24 80 0D 03 02 00 00 00 00 47 [20:48:23]Write i2c OK [20:48:23]MH_I2C_Read... [20:48:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:48:23]Read from MH i2c: E2 [20:48:23]MH_I2C_Read... [20:48:23]Read from MH i2c: E2 0B 00 [20:48:23]MH_I2C_Read... [20:48:23]Read from MH i2c: E2 0B 00 A8 24 00 77 50 93 92 9D 0F EE E5 90 00 B3 [20:48:23]RAPDU: 77 50 93 92 9D 0F EE E5 90 00 [20:48:23]wFMCommunicate OK [20:48:23]SAM_PROTO_SignData done [20:48:23]FM_MakeSignedData done [20:48:23]CreateOFDProtocolMessage [20:48:23]wFMCommunicate request_size=4 [20:48:23]MH_SAM_APDU [20:48:23]CAPDU: 80 11 00 00 [20:48:23]Write to MH i2c: E2 08 00 A9 24 80 11 00 00 00 00 00 00 47 [20:48:23]Write i2c OK [20:48:23]MH_I2C_Read... [20:48:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:48:23]Read from MH i2c: E2 [20:48:23]MH_I2C_Read... [20:48:23]Read from MH i2c: E2 17 00 [20:48:23]MH_I2C_Read... [20:48:23]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 38 32 39 90 00 9D [20:48:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:48:23]wFMCommunicate OK [20:48:23]CreateOFDProtocolMessage done [20:48:23]OFDSenderStorePacket 67564 [20:48:23]StoreOFDPacket docnum=67564 [20:48:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 4D 19 07 01 2C 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 78 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 0D 00 00 00 00 07 04 06 00 78 82 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 18 71 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EC 07 01 00 35 04 06 00 2C 98 70 87 04 C7 77 50 93 92 9D 0F EE E5 [20:48:23]CheckFolder [20:48:23]dirname=/storage/ofd_packets [20:48:23]CheckFolder done [20:48:23]ProducePacketName [20:48:23]name=ofd_packets/00067564 [20:48:23]NVStorageSaveData ofd_packets/00067564 [20:48:23]File name is /storage/ofd_packets/00067564 [20:48:23]Write 301 bytes [20:48:23]NVStorageSaveData done [20:48:23]OFDSenderStorePacket done [20:48:23]KKMCreateOFDPacket done [20:48:23]NVStorageSaveData kkm_last_timestamp [20:48:23]File name is /storage/kkm_last_timestamp [20:48:23]Write 4 bytes [20:48:23]NVStorageSaveData done [20:48:23]ExternCall_PrintAddStr [20:48:23]wPrintStart [20:48:23]Write to MH i2c: 01 00 00 AA 24 CE [20:48:23]Write i2c OK [20:48:23]MH_I2C_Read... [20:48:23]Read from MH i2c: 01 [20:48:23]MH_I2C_Read... [20:48:23]Read from MH i2c: 01 07 00 [20:48:23]MH_I2C_Read... [20:48:23]Read from MH i2c: 01 07 00 AA 24 00 00 00 00 00 FF 0F E3 [20:48:23]RasterBufferAndPrint [20:48:23]line Счет N : (1)507640 [20:48:23]line ИНН: 02508201610067 [20:48:23]line Контрольно-Кассовый Чек [20:48:23]line ПРОДАЖА [20:48:23]line ТРК (МРК, ГНК) : 43 [20:48:23]line Товар: 2710124130 [20:48:23]line Аи-92-К-5 [20:48:23]line 5.000 * 66.80 [20:48:23]line = 334.00 [20:48:23]line НДС 12% НСП 1% [20:48:23]line > о реализуемом товаре [20:48:23]line ИТОГО: 334.00 [20:48:23]line НСП 1% : 2.96 [20:48:23]line НДС 12% : 35.47 [20:48:23]line Наличными: 334.00 [20:48:23]line Безнал.: 0.00 [20:48:23]line Место: АЗС № 91 "Партнер Нефть" [20:48:23]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:48:23]line СНО: Общий режим [20:48:23]line Чек 162 16.05.2024 20:48 [20:48:23]line Смена: 357 ФФД: 1.0 [20:48:23]line ЗНМ: 0300000119 [20:48:23]line РНМ: 0000000000091845 [20:48:23]line Версия ККМ: 001 [20:48:23]line ФМ: 0000000000871829 [20:48:23]line ФД: 67564 [20:48:23]line ФПД: 49033234547911 [20:48:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T204824&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67564&fm=49033234547911&tin=02508201610067®Number=0000000000091845&sum=33400 [20:48:24]OFD Sender: Processing packet 67564 [packets to send 35, broken 34] [20:48:24]ProducePacketName [20:48:24]name=ofd_packets/00067564 [20:48:24]OFD Sender: To server: pG, [20:48:24]CommunicateWithHost lk.salyk.kg:30040 [20:48:24]ConnectInit lk.salyk.kg [20:48:24]written 0, free lines is 4095 [20:48:24]Connected sock=10 [20:48:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 4D 19 07 01 2C 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 78 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 0D 00 00 00 00 07 04 06 00 78 82 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 18 71 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EC 07 01 00 35 04 06 00 2C 98 70 87 04 C7 77 50 93 92 9D 0F EE E5 [20:48:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 78 E3 47 00 68 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 38 32 39 10 04 04 00 EC 07 01 00 F4 03 04 00 F2 18 46 66 B6 04 01 00 00 97 98 BA BB 0E 76 F2 52 [20:48:24]CommunicateWithHost err = 0 [20:48:24]CheckOFDResponse [20:48:24]1017 (14) - 77093643461234 [20:48:24]1041 (16) - 0000000000871829 [20:48:24]1040 (4) - 67564 [20:48:24]1012 (4) - 16.05.2024 14:32 [20:48:24]1206 (1) - 0 [20:48:24]OFD Sender: Remove packet 67564 [20:48:24]ProducePacketName [20:48:24]name=ofd_packets/00067564 [20:48:24]NVStorageDeleteData [20:48:24]Write to MH i2c: 01 00 00 D1 24 F5 [20:48:24]Write i2c OK [20:48:24]MH_I2C_Read... [20:48:24]Read from MH i2c: 01 [20:48:24]MH_I2C_Read... [20:48:24]Read from MH i2c: 01 07 00 [20:48:24]MH_I2C_Read... [20:48:24]Read from MH i2c: 01 07 00 D1 24 00 00 00 00 00 03 0D 0C [20:48:24]RasterBufferAndPrint [20:48:24]line [20:48:24]line [20:48:24]line [20:48:24]line [20:48:24]line [20:48:24]written 0, free lines is 3337 [20:48:24]MH_Cut [20:48:24]Write to MH i2c: D1 01 00 D8 24 01 CE [20:48:24]Write i2c OK [20:48:24]MH_I2C_Read... [20:48:24]Read from MH i2c: D1 [20:48:24]MH_I2C_Read... [20:48:24]Read from MH i2c: D1 01 00 [20:48:24]MH_I2C_Read... [20:48:24]Read from MH i2c: D1 01 00 D8 24 00 CD [20:48:24]Write to MH i2c: 01 00 00 D9 24 FD [20:48:24]Write i2c OK [20:48:24]MH_I2C_Read... [20:48:25]OFD Sender: No OFD packet to send [20:48:25]*** Cut start [20:48:25]*** Purtial cut [20:48:25]*** Stage 1: CUTSNS_PIN = 1 [20:48:25]Read from MH i2c: 01 [20:48:25]MH_I2C_Read... [20:48:25]*** Stop cut motor [20:48:25]*** Cut end [20:48:25]Read from MH i2c: 01 07 00 [20:48:25]MH_I2C_Read... [20:48:25]Read from MH i2c: 01 07 00 D9 24 00 00 00 00 00 FF 0F 12 [20:48:25]process_action close_receipt done [20:48:25]requested_data is exist [20:48:25]produce_requested_data [20:48:25]requested_item fm.sn is exist - process it [20:48:25]wFMCommunicate request_size=4 [20:48:25]MH_SAM_APDU [20:48:25]CAPDU: 80 11 00 00 [20:48:25]Write to MH i2c: E2 08 00 DA 24 80 11 00 00 00 00 00 00 78 [20:48:25]Write i2c OK [20:48:25]MH_I2C_Read... [20:48:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:48:25]Read from MH i2c: E2 [20:48:25]MH_I2C_Read... [20:48:25]Read from MH i2c: E2 17 00 [20:48:25]MH_I2C_Read... [20:48:25]Read from MH i2c: E2 17 00 DA 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 CE [20:48:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:48:25]wFMCommunicate OK [20:48:25]requested_item fd.num is exist - process it [20:48:25]SAM_PROTO_GetFieldsCounters [20:48:25]wFMCommunicate request_size=4 [20:48:25]MH_SAM_APDU [20:48:25]CAPDU: 80 13 00 00 [20:48:25]Write to MH i2c: E2 08 00 DB 24 80 13 00 00 00 00 00 00 7B [20:48:25]Write i2c OK [20:48:25]MH_I2C_Read... [20:48:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:48:25]Read from MH i2c: E2 [20:48:25]MH_I2C_Read... [20:48:25]Read from MH i2c: E2 62 00 [20:48:25]MH_I2C_Read... [20:48:25]Read from MH i2c: E2 62 00 DB 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EC 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [20:48: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EC 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:48:25]wFMCommunicate OK [20:48:25]SAM_PROTO_GetFieldsCounters done [20:48:25]requested_item shift.num is exist - process it [20:48:25]requested_item shift.opened is exist - process it [20:48:25]req_shift_opened [20:48:25]FM_GetShiftState [20:48:25]SAM_PROTO_GetShiftState [20:48:25]wFMCommunicate request_size=4 [20:48:25]MH_SAM_APDU [20:48:25]CAPDU: 80 13 01 00 [20:48:25]Write to MH i2c: E2 08 00 DC 24 80 13 01 00 00 00 00 00 7D [20:48:25]Write i2c OK [20:48:25]MH_I2C_Read... [20:48:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:25]Read from MH i2c: E2 [20:48:25]MH_I2C_Read... [20:48:25]Read from MH i2c: E2 0E 00 [20:48:25]MH_I2C_Read... [20:48:25]Read from MH i2c: E2 0E 00 DC 24 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 29 [20:48:25]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [20:48:25]wFMCommunicate OK [20:48:25]SAM_PROTO_GetShiftState done [20:48:25]FM_GetShiftState done [20:48:25]req_shift_opened done [20:48:25]requested_item shift.open_date is exist - process it [20:48:25]req_shift_open_date [20:48:25]req_shift_open_date done [20:48:25]produce_requested_data done [20:48:25]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67564,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [20:48:25]process_action_free close_receipt [20:48:25]json_value_free [20:48:25]json_value_free done [20:48:25]process_json_proto returns [20:48:25]Send response to host [20:48:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67564,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [20:48:25]free response buf [20:48:25]execute_script done [20:48:25]execute_script returns [20:48:25]free content buf [20:48:25]Sock 9.Close socket [20:48:25]Sock 9.Thread stoped [20:48:30]OFD Sender: No OFD packet to send [20:48:35]OFD Sender: No OFD packet to send [20:48:40]OFD Sender: No OFD packet to send [20:48:45]OFD Sender: No OFD packet to send [20:48:50]OFD Sender: No OFD packet to send [20:48:55]OFD Sender: No OFD packet to send [20:49:00]OFD Sender: No OFD packet to send [20:49:05]OFD Sender: No OFD packet to send [20:49:10]OFD Sender: No OFD packet to send [20:49:15]OFD Sender: No OFD packet to send [20:49:20]OFD Sender: No OFD packet to send [20:49:25]OFD Sender: No OFD packet to send [20:49:30]OFD Sender: No OFD packet to send [20:49:35]OFD Sender: No OFD packet to send [20:49:40]OFD Sender: No OFD packet to send [20:49:45]OFD Sender: No OFD packet to send [20:49:50]OFD Sender: No OFD packet to send [20:49:55]OFD Sender: No OFD packet to send [20:50:00]OFD Sender: No OFD packet to send [20:50:05]OFD Sender: No OFD packet to send [20:50:10]OFD Sender: No OFD packet to send [20:50:15]OFD Sender: No OFD packet to send [20:50:20]OFD Sender: No OFD packet to send [20:50:25]OFD Sender: No OFD packet to send [20:50:30]OFD Sender: No OFD packet to send [20:50:35]OFD Sender: No OFD packet to send [20:50:40]OFD Sender: No OFD packet to send [20:50:45]OFD Sender: No OFD packet to send [20:50:50]OFD Sender: No OFD packet to send [20:50:55]OFD Sender: No OFD packet to send [20:51:00]OFD Sender: No OFD packet to send [20:51:05]OFD Sender: No OFD packet to send [20:51:10]OFD Sender: No OFD packet to send [20:51:15]OFD Sender: No OFD packet to send [20:51:20]OFD Sender: No OFD packet to send [20:51:25]OFD Sender: No OFD packet to send [20:51:30]OFD Sender: No OFD packet to send [20:51:35]OFD Sender: No OFD packet to send [20:51:37]accept exits with 8 [20:51:37]New connection [20:51:37]New thread 3067182436 created [20:51:37]Thread 3067039076 joined [20:51:37]Waiting for new connection... [20:51:37] Sock 8.Parse request [20:51:37]Sock 8.Check first char [20:51:37]Sock 8.First char is OK [20:51:37]request: POST /json_proto HTTP/1.0 [20:51:37]Method: POST [20:51:37]URL: /json_proto [20:51:37]Method is POST - this is cgi request [20:51:37]url: /json_proto [20:51:37]query_string will be loaded in cgi processing [20:51:37]execute_cgi json_proto POST (null) [20:51:37]execute_cgi path=json_proto method=POST [20:51:37]POST find Content-Length [20:51:37]Host: 172.17.41.195:8080 [20:51:37]Content-Length: 801 [20:51:37]Content-Type: application/json [20:51:37] [20:51:37]POST finish read [20:51:37]Found Content-Length = 801 [20:51:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507638", "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" : 74.70, "quantity" : 123.830, "sum" : 9250.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 9250.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:51:37]execute_script... [20:51: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)507638", "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" : 74.70, "quantity" : 123.830, "sum" : 9250.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 9250.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:51:37]POST & json_proto [20:51:37]process_json_proto [20:51:37]json parsed OK: [20:51:37]protocol is kg_v1.0 [20:51:37]action value=close_receipt [20:51:37]process_action close_receipt [20:51:37]cmd_close_receipt [20:51:37]MH_GetDate [20:51:37]Write to MH i2c: F0 00 00 DD 24 F0 [20:51:37]Write i2c OK [20:51:37]MH_I2C_Read... [20:51:37]Read from MH i2c: F0 [20:51:37]MH_I2C_Read... [20:51:37]Read from MH i2c: F0 09 00 [20:51:37]MH_I2C_Read... [20:51:37]Read from MH i2c: F0 09 00 DD 24 00 DC 71 46 66 FC 21 6F 64 E2 [20:51:37]GetLastDocTimeStamp 1715892504 [20:51:37]current date 1715892700 [20:51:37]FM_GetShiftState [20:51:37]SAM_PROTO_GetShiftState [20:51:37]wFMCommunicate request_size=4 [20:51:37]MH_SAM_APDU [20:51:37]CAPDU: 80 13 01 00 [20:51:37]Write to MH i2c: E2 08 00 DE 24 80 13 01 00 00 00 00 00 7F [20:51:37]Write i2c OK [20:51:37]MH_I2C_Read... [20:51:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:51:37]Read from MH i2c: E2 [20:51:37]MH_I2C_Read... [20:51:37]Read from MH i2c: E2 0E 00 [20:51:37]MH_I2C_Read... [20:51:37]Read from MH i2c: E2 0E 00 DE 24 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 2B [20:51:37]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [20:51:37]wFMCommunicate OK [20:51:37]SAM_PROTO_GetShiftState done [20:51:37]FM_GetShiftState done [20:51:37]opened in 1715818916 [20:51:37]opened+sec_in_day 1715905316 [20:51:37]quantity*price = 925010 [20:51:37]sum+1 = 925011 [20:51:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9250.10 НСП 1% : 81.86 НДС 12% : 982.31 Наличными: 0.00 Безнал.: 9250.10 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 163 16.05.2024 20:51 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67565 ФПД: 103551313353818 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T205140&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67565&fm=103551313353818&tin=02508201610067®Number=0000000000091845&sum=925010 [20:51:38]StoreToDocumentArchive [20:51:38]shift 357 fd 67565 [20:51:38]save to /storage/0357/doc_00067565 [20:51:38]save last doc name /storage/0357/doc_00067565 to /storage/kkm_last_doc_name [20:51:38]save OK [20:51:38]Clear old archive folders... [20:51:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:51:38]tlvbuf is B6DE0300 [20:51:38]SAM_PROTO_ClearQueue [20:51:38]wFMCommunicate request_size=4 [20:51:38]MH_SAM_APDU [20:51:38]CAPDU: 80 09 00 00 [20:51:38]Write to MH i2c: E2 08 00 EB 24 80 09 00 00 00 00 00 00 81 [20:51:38]Write i2c OK [20:51:38]MH_I2C_Read... [20:51:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:51:38]Read from MH i2c: E2 [20:51:38]MH_I2C_Read... [20:51:38]Read from MH i2c: E2 03 00 [20:51:38]MH_I2C_Read... [20:51:38]Read from MH i2c: E2 03 00 EB 24 00 90 00 83 [20:51:38]RAPDU: 90 00 [20:51:38]wFMCommunicate OK [20:51:38]SAM_PROTO_ClearQueue done [20:51:38]KKMCreateOFDPacket [20:51:38]OFDProtocolAddRootSTLVToBuf [20:51:38]FM_MakeSignedData [20:51:38]FM_MakeSignedData [20:51:38]SAM_PROTO_SignData [20:51:38]wFMCommunicate request_size=4 [20:51:38]MH_SAM_APDU [20:51:38]CAPDU: 80 0D 01 02 [20:51:38]Write to MH i2c: E2 08 00 EC 24 80 0D 01 02 00 00 00 00 89 [20:51:38]Write i2c OK [20:51:38]MH_I2C_Read... [20:51:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:51:38]Read from MH i2c: E2 [20:51:38]MH_I2C_Read... [20:51:38]Read from MH i2c: E2 03 00 [20:51:38]MH_I2C_Read... [20:51:38]Read from MH i2c: E2 03 00 EC 24 00 90 00 84 [20:51:38]RAPDU: 90 00 [20:51:38]wFMCommunicate OK [20:51:38]wFMCommunicate request_size=255 [20:51:38]MH_SAM_APDU [20:51:38]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B6 E3 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 52 1D 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 52 1D 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 7F 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 52 1D 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 DC 71 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 ED 07 01 00 35 04 06 00 5E 2D EB 3F [20:51:38]Write to MH i2c: E2 02 01 ED 24 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B6 E3 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 52 1D 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 52 1D 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 7F 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 52 1D 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 DC 71 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 ED 07 01 00 35 04 06 00 5E 2D EB 3F 00 00 43 [20:51:38]Write i2c OK [20:51:38]MH_I2C_Read... [20:51:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:51:39]Read from MH i2c: E2 [20:51:39]MH_I2C_Read... [20:51:39]Read from MH i2c: E2 03 00 [20:51:39]MH_I2C_Read... [20:51:39]Read from MH i2c: E2 03 00 ED 24 00 90 00 85 [20:51:39]RAPDU: 90 00 [20:51:39]wFMCommunicate OK [20:51:39]wFMCommunicate request_size=7 [20:51:39]MH_SAM_APDU [20:51:39]CAPDU: 80 0D 02 02 02 9C 5A [20:51:39]Write to MH i2c: E2 0A 00 EE 24 80 0D 02 02 02 00 9C 5A 00 00 86 [20:51:39]Write i2c OK [20:51:39]MH_I2C_Read... [20:51:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:51:39]Read from MH i2c: E2 [20:51:39]MH_I2C_Read... [20:51:39]Read from MH i2c: E2 03 00 [20:51:39]MH_I2C_Read... [20:51:39]Read from MH i2c: E2 03 00 EE 24 00 90 00 86 [20:51:39]RAPDU: 90 00 [20:51:39]wFMCommunicate OK [20:51:39]wFMCommunicate request_size=4 [20:51:39]MH_SAM_APDU [20:51:39]CAPDU: 80 0D 03 02 [20:51:39]Write to MH i2c: E2 08 00 EF 24 80 0D 03 02 00 00 00 00 8E [20:51:39]Write i2c OK [20:51:39]MH_I2C_Read... [20:51:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:51:39]Read from MH i2c: E2 [20:51:39]MH_I2C_Read... [20:51:39]Read from MH i2c: E2 0B 00 [20:51:39]MH_I2C_Read... [20:51:39]Read from MH i2c: E2 0B 00 EF 24 00 17 70 EF D0 FE 53 CF 1F 90 00 14 [20:51:39]RAPDU: 17 70 EF D0 FE 53 CF 1F 90 00 [20:51:39]wFMCommunicate OK [20:51:39]SAM_PROTO_SignData done [20:51:39]FM_MakeSignedData done [20:51:39]CreateOFDProtocolMessage [20:51:39]wFMCommunicate request_size=4 [20:51:39]MH_SAM_APDU [20:51:39]CAPDU: 80 11 00 00 [20:51:39]Write to MH i2c: E2 08 00 F0 24 80 11 00 00 00 00 00 00 8E [20:51:39]Write i2c OK [20:51:39]MH_I2C_Read... [20:51:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:51:39]Read from MH i2c: E2 [20:51:39]MH_I2C_Read... [20:51:39]Read from MH i2c: E2 17 00 [20:51:39]MH_I2C_Read... [20:51:39]Read from MH i2c: E2 17 00 F0 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E4 [20:51:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:51:39]wFMCommunicate OK [20:51:39]CreateOFDProtocolMessage done [20:51:39]OFDSenderStorePacket 67565 [20:51:39]StoreOFDPacket docnum=67565 [20:51:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 5E AF 04 01 18 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 B6 E3 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 52 1D 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 52 1D 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 7F 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 52 1D 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 DC 71 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 ED 07 01 00 35 04 06 00 5E 2D EB 3F 9C 5A 17 70 EF D0 FE 53 CF 1F [20:51:39]CheckFolder [20:51:39]dirname=/storage/ofd_packets [20:51:39]CheckFolder done [20:51:39]ProducePacketName [20:51:39]name=ofd_packets/00067565 [20:51:39]NVStorageSaveData ofd_packets/00067565 [20:51:39]File name is /storage/ofd_packets/00067565 [20:51:39]Write 298 bytes [20:51:39]NVStorageSaveData done [20:51:39]OFDSenderStorePacket done [20:51:39]KKMCreateOFDPacket done [20:51:39]NVStorageSaveData kkm_last_timestamp [20:51:39]File name is /storage/kkm_last_timestamp [20:51:39]Write 4 bytes [20:51:39]NVStorageSaveData done [20:51:39]ExternCall_PrintAddStr [20:51:39]wPrintStart [20:51:39]Write to MH i2c: 01 00 00 F1 24 15 [20:51:39]Write i2c OK [20:51:39]MH_I2C_Read... [20:51:39]Read from MH i2c: 01 [20:51:39]MH_I2C_Read... [20:51:39]Read from MH i2c: 01 07 00 [20:51:39]MH_I2C_Read... [20:51:39]Read from MH i2c: 01 07 00 F1 24 00 00 00 00 00 FF 0F 2A [20:51:39]RasterBufferAndPrint [20:51:39]line Счет N : (1)507638 [20:51:39]line ИНН: 02508201610067 [20:51:39]line Контрольно-Кассовый Чек [20:51:39]line ПРОДАЖА [20:51:39]line ТРК (МРК, ГНК) : 21 [20:51:39]line Товар: 2710194210 [20:51:39]line ДТ-К-5 [20:51:39]line 123.830 * 74.70 [20:51:39]line = 9250.10 [20:51:39]line НДС 12% НСП 1% [20:51:39]line > о реализуемом товаре [20:51:39]line ИТОГО: 9250.10 [20:51:39]line НСП 1% : 81.86 [20:51:39]line НДС 12% : 982.31 [20:51:39]line Наличными: 0.00 [20:51:39]line Безнал.: 9250.10 [20:51:39]line Место: АЗС № 91 "Партнер Нефть" [20:51:39]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:51:39]line СНО: Общий режим [20:51:39]line Чек 163 16.05.2024 20:51 [20:51:39]line Смена: 357 ФФД: 1.0 [20:51:39]line ЗНМ: 0300000119 [20:51:39]line РНМ: 0000000000091845 [20:51:39]line Версия ККМ: 001 [20:51:39]line Платежная система: O! деньги [20:51:39]line ФМ: 0000000000871829 [20:51:39]line ФД: 67565 [20:51:39]line ФПД: 103551313353818 [20:51:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T205140&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67565&fm=103551313353818&tin=02508201610067®Number=0000000000091845&sum=925010 [20:51:39]OFD Sender: Processing packet 67565 [packets to send 35, broken 34] [20:51:39]ProducePacketName [20:51:39]name=ofd_packets/00067565 [20:51:39]OFD Sender: To server: pG, [20:51:39]CommunicateWithHost lk.salyk.kg:30040 [20:51:39]ConnectInit lk.salyk.kg [20:51:39]written 0, free lines is 4095 [20:51:39]Connected sock=10 [20:51: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 38 32 39 0C 01 00 00 5E AF 04 01 18 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 B6 E3 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 52 1D 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 52 1D 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 7F 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 52 1D 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 DC 71 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 ED 07 01 00 35 04 06 00 5E 2D EB 3F 9C 5A 17 70 EF D0 FE 53 CF 1F [20:51:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 AE 4E 47 00 E9 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 38 32 39 10 04 04 00 ED 07 01 00 F4 03 04 00 B5 19 46 66 B6 04 01 00 00 BA 8C 5B 22 41 27 D3 80 [20:51:39]CommunicateWithHost err = 0 [20:51:39]CheckOFDResponse [20:51:39]1017 (14) - 77093643461234 [20:51:39]1041 (16) - 0000000000871829 [20:51:39]1040 (4) - 67565 [20:51:39]1012 (4) - 16.05.2024 14:35 [20:51:39]1206 (1) - 0 [20:51:39]OFD Sender: Remove packet 67565 [20:51:39]ProducePacketName [20:51:39]name=ofd_packets/00067565 [20:51:39]NVStorageDeleteData [20:51:40]Write to MH i2c: 01 00 00 1A 25 3F [20:51:40]Write i2c OK [20:51:40]MH_I2C_Read... [20:51:40]Read from MH i2c: 01 [20:51:40]MH_I2C_Read... [20:51:40]Read from MH i2c: 01 07 00 [20:51:40]MH_I2C_Read... [20:51:40]Read from MH i2c: 01 07 00 1A 25 00 00 00 00 00 EA 0C 3C [20:51:40]RasterBufferAndPrint [20:51:40]line [20:51:40]line [20:51:40]line [20:51:40]line [20:51:40]line [20:51:40]written 0, free lines is 3311 [20:51:40]MH_Cut [20:51:40]Write to MH i2c: D1 01 00 21 25 01 18 [20:51:40]Write i2c OK [20:51:40]MH_I2C_Read... [20:51:40]Read from MH i2c: D1 [20:51:40]MH_I2C_Read... [20:51:40]Read from MH i2c: D1 01 00 [20:51:40]MH_I2C_Read... [20:51:40]Read from MH i2c: D1 01 00 21 25 00 17 [20:51:40]Write to MH i2c: 01 00 00 22 25 47 [20:51:40]Write i2c OK [20:51:40]MH_I2C_Read... [20:51:40]OFD Sender: No OFD packet to send [20:51:40]*** Cut start [20:51:40]*** Purtial cut [20:51:40]*** CUTSNS_PIN = 0 [20:51:41]*** Stage 1: CUTSNS_PIN = 1 [20:51:42]Read from MH i2c: 01 [20:51:42]MH_I2C_Read... [20:51:42]*** Stop cut motor [20:51:42]*** Cut end [20:51:42]Read from MH i2c: 01 07 00 [20:51:42]MH_I2C_Read... [20:51:42]Read from MH i2c: 01 07 00 22 25 00 00 00 00 00 FF 0F 5C [20:51:42]process_action close_receipt done [20:51:42]requested_data is exist [20:51:42]produce_requested_data [20:51:42]requested_item fm.sn is exist - process it [20:51:42]wFMCommunicate request_size=4 [20:51:42]MH_SAM_APDU [20:51:42]CAPDU: 80 11 00 00 [20:51:42]Write to MH i2c: E2 08 00 23 25 80 11 00 00 00 00 00 00 C2 [20:51:42]Write i2c OK [20:51:42]MH_I2C_Read... [20:51:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:51:42]Read from MH i2c: E2 [20:51:42]MH_I2C_Read... [20:51:42]Read from MH i2c: E2 17 00 [20:51:42]MH_I2C_Read... [20:51:42]Read from MH i2c: E2 17 00 23 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 18 [20:51:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:51:42]wFMCommunicate OK [20:51:42]requested_item fd.num is exist - process it [20:51:42]SAM_PROTO_GetFieldsCounters [20:51:42]wFMCommunicate request_size=4 [20:51:42]MH_SAM_APDU [20:51:42]CAPDU: 80 13 00 00 [20:51:42]Write to MH i2c: E2 08 00 24 25 80 13 00 00 00 00 00 00 C5 [20:51:42]Write i2c OK [20:51:42]MH_I2C_Read... [20:51:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:51:43]Read from MH i2c: E2 [20:51:43]MH_I2C_Read... [20:51:43]Read from MH i2c: E2 62 00 [20:51:43]MH_I2C_Read... [20:51:43]Read from MH i2c: E2 62 00 24 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 ED 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [20:51:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 ED 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:51:43]wFMCommunicate OK [20:51:43]SAM_PROTO_GetFieldsCounters done [20:51:43]requested_item shift.num is exist - process it [20:51:43]requested_item shift.opened is exist - process it [20:51:43]req_shift_opened [20:51:43]FM_GetShiftState [20:51:43]SAM_PROTO_GetShiftState [20:51:43]wFMCommunicate request_size=4 [20:51:43]MH_SAM_APDU [20:51:43]CAPDU: 80 13 01 00 [20:51:43]Write to MH i2c: E2 08 00 25 25 80 13 01 00 00 00 00 00 C7 [20:51:43]Write i2c OK [20:51:43]MH_I2C_Read... [20:51:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:51:43]Read from MH i2c: E2 [20:51:43]MH_I2C_Read... [20:51:43]Read from MH i2c: E2 0E 00 [20:51:43]MH_I2C_Read... [20:51:43]Read from MH i2c: E2 0E 00 25 25 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 73 [20:51:43]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [20:51:43]wFMCommunicate OK [20:51:43]SAM_PROTO_GetShiftState done [20:51:43]FM_GetShiftState done [20:51:43]req_shift_opened done [20:51:43]requested_item shift.open_date is exist - process it [20:51:43]req_shift_open_date [20:51:43]req_shift_open_date done [20:51:43]produce_requested_data done [20:51:43]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67565,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [20:51:43]process_action_free close_receipt [20:51:43]json_value_free [20:51:43]json_value_free done [20:51:43]process_json_proto returns [20:51:43]Send response to host [20:51:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67565,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [20:51:43]free response buf [20:51:43]execute_script done [20:51:43]execute_script returns [20:51:43]free content buf [20:51:43]Sock 8.Close socket [20:51:43]Sock 8.Thread stoped [20:51:45]OFD Sender: No OFD packet to send [20:51:50]OFD Sender: No OFD packet to send [20:51:55]OFD Sender: No OFD packet to send [20:52:00]OFD Sender: No OFD packet to send [20:52:05]OFD Sender: No OFD packet to send [20:52:10]OFD Sender: No OFD packet to send [20:52:15]OFD Sender: No OFD packet to send [20:52:20]OFD Sender: No OFD packet to send [20:52:25]OFD Sender: No OFD packet to send [20:52:30]OFD Sender: No OFD packet to send [20:52:35]OFD Sender: No OFD packet to send [20:52:40]OFD Sender: No OFD packet to send [20:52:45]OFD Sender: No OFD packet to send [20:52:50]OFD Sender: No OFD packet to send [20:52:54]accept exits with 9 [20:52:54]New connection [20:52:54]New thread 3067039076 created [20:52:54]Thread 3067182436 joined [20:52:54]Waiting for new connection... [20:52:54] Sock 9.Parse request [20:52:54]Sock 9.Check first char [20:52:54]Sock 9.First char is OK [20:52:54]request: POST /json_proto HTTP/1.0 [20:52:54]Method: POST [20:52:54]URL: /json_proto [20:52:54]Method is POST - this is cgi request [20:52:54]url: /json_proto [20:52:54]query_string will be loaded in cgi processing [20:52:54]execute_cgi json_proto POST (null) [20:52:54]execute_cgi path=json_proto method=POST [20:52:54]POST find Content-Length [20:52:54]Host: 172.17.41.195:8080 [20:52:54]Content-Length: 801 [20:52:54]Content-Type: application/json [20:52:54] [20:52:54]POST finish read [20:52:54]Found Content-Length = 801 [20:52:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507637", "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" : 74.70, "quantity" : 123.830, "sum" : 9250.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 9250.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:52:54]execute_script... [20:52: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)507637", "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" : 74.70, "quantity" : 123.830, "sum" : 9250.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 9250.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:52:54]POST & json_proto [20:52:54]process_json_proto [20:52:54]json parsed OK: [20:52:54]protocol is kg_v1.0 [20:52:54]action value=close_receipt [20:52:54]process_action close_receipt [20:52:54]cmd_close_receipt [20:52:54]MH_GetDate [20:52:54]Write to MH i2c: F0 00 00 26 25 3A [20:52:54]Write i2c OK [20:52:54]MH_I2C_Read... [20:52:54]Read from MH i2c: F0 [20:52:54]MH_I2C_Read... [20:52:54]Read from MH i2c: F0 09 00 [20:52:54]MH_I2C_Read... [20:52:54]Read from MH i2c: F0 09 00 26 25 00 28 72 46 66 FC 21 6F 64 79 [20:52:54]GetLastDocTimeStamp 1715892700 [20:52:54]current date 1715892776 [20:52:54]FM_GetShiftState [20:52:54]SAM_PROTO_GetShiftState [20:52:54]wFMCommunicate request_size=4 [20:52:54]MH_SAM_APDU [20:52:54]CAPDU: 80 13 01 00 [20:52:54]Write to MH i2c: E2 08 00 27 25 80 13 01 00 00 00 00 00 C9 [20:52:54]Write i2c OK [20:52:54]MH_I2C_Read... [20:52:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:54]Read from MH i2c: E2 [20:52:54]MH_I2C_Read... [20:52:54]Read from MH i2c: E2 0E 00 [20:52:54]MH_I2C_Read... [20:52:54]Read from MH i2c: E2 0E 00 27 25 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 75 [20:52:54]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [20:52:54]wFMCommunicate OK [20:52:54]SAM_PROTO_GetShiftState done [20:52:54]FM_GetShiftState done [20:52:54]opened in 1715818916 [20:52:54]opened+sec_in_day 1715905316 [20:52:54]quantity*price = 925010 [20:52:54]sum+1 = 925011 [20:52:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9250.10 НСП 1% : 81.86 НДС 12% : 982.31 Наличными: 0.00 Безнал.: 9250.10 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 164 16.05.2024 20:52 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67566 ФПД: 115280055909028 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T205256&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67566&fm=115280055909028&tin=02508201610067®Number=0000000000091845&sum=925010 [20:52:55]StoreToDocumentArchive [20:52:55]shift 357 fd 67566 [20:52:55]save to /storage/0357/doc_00067566 [20:52:55]save last doc name /storage/0357/doc_00067566 to /storage/kkm_last_doc_name [20:52:55]save OK [20:52:55]Clear old archive folders... [20:52:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:52:55]tlvbuf is 017E8C10 [20:52:55]SAM_PROTO_ClearQueue [20:52:55]wFMCommunicate request_size=4 [20:52:55]MH_SAM_APDU [20:52:55]CAPDU: 80 09 00 00 [20:52:55]Write to MH i2c: E2 08 00 34 25 80 09 00 00 00 00 00 00 CB [20:52:55]Write i2c OK [20:52:55]MH_I2C_Read... [20:52:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:52:55]Read from MH i2c: E2 [20:52:55]MH_I2C_Read... [20:52:55]Read from MH i2c: E2 03 00 [20:52:55]MH_I2C_Read... [20:52:55]Read from MH i2c: E2 03 00 34 25 00 90 00 CD [20:52:55]RAPDU: 90 00 [20:52:55]wFMCommunicate OK [20:52:55]SAM_PROTO_ClearQueue done [20:52:55]KKMCreateOFDPacket [20:52:55]OFDProtocolAddRootSTLVToBuf [20:52:55]FM_MakeSignedData [20:52:55]FM_MakeSignedData [20:52:55]SAM_PROTO_SignData [20:52:55]wFMCommunicate request_size=4 [20:52:55]MH_SAM_APDU [20:52:55]CAPDU: 80 0D 01 02 [20:52:55]Write to MH i2c: E2 08 00 35 25 80 0D 01 02 00 00 00 00 D3 [20:52:55]Write i2c OK [20:52:55]MH_I2C_Read... [20:52:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:52:55]Read from MH i2c: E2 [20:52:55]MH_I2C_Read... [20:52:55]Read from MH i2c: E2 03 00 [20:52:55]MH_I2C_Read... [20:52:55]Read from MH i2c: E2 03 00 35 25 00 90 00 CE [20:52:55]RAPDU: 90 00 [20:52:55]wFMCommunicate OK [20:52:55]wFMCommunicate request_size=255 [20:52:55]MH_SAM_APDU [20:52: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 B6 E3 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 52 1D 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 52 1D 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 7F 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 52 1D 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 28 72 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EE 07 01 00 35 04 06 00 68 D8 BA C8 [20:52:55]Write to MH i2c: E2 02 01 36 25 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 B6 E3 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 52 1D 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 52 1D 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 7F 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 52 1D 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 28 72 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EE 07 01 00 35 04 06 00 68 D8 BA C8 00 00 E9 [20:52:55]Write i2c OK [20:52:55]MH_I2C_Read... [20:52:55]OFD Sender: No OFD packet to send [20:52:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:52:55]Read from MH i2c: E2 [20:52:55]MH_I2C_Read... [20:52:55]Read from MH i2c: E2 03 00 [20:52:55]MH_I2C_Read... [20:52:55]Read from MH i2c: E2 03 00 36 25 00 90 00 CF [20:52:55]RAPDU: 90 00 [20:52:55]wFMCommunicate OK [20:52:55]wFMCommunicate request_size=7 [20:52:55]MH_SAM_APDU [20:52:55]CAPDU: 80 0D 02 02 02 3A A4 [20:52:55]Write to MH i2c: E2 0A 00 37 25 80 0D 02 02 02 00 3A A4 00 00 B8 [20:52:55]Write i2c OK [20:52:55]MH_I2C_Read... [20:52:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:52:55]Read from MH i2c: E2 [20:52:55]MH_I2C_Read... [20:52:55]Read from MH i2c: E2 03 00 [20:52:55]MH_I2C_Read... [20:52:55]Read from MH i2c: E2 03 00 37 25 00 90 00 D0 [20:52:55]RAPDU: 90 00 [20:52:55]wFMCommunicate OK [20:52:55]wFMCommunicate request_size=4 [20:52:55]MH_SAM_APDU [20:52:55]CAPDU: 80 0D 03 02 [20:52:55]Write to MH i2c: E2 08 00 38 25 80 0D 03 02 00 00 00 00 D8 [20:52:55]Write i2c OK [20:52:55]MH_I2C_Read... [20:52:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:52:55]Read from MH i2c: E2 [20:52:55]MH_I2C_Read... [20:52:55]Read from MH i2c: E2 0B 00 [20:52:55]MH_I2C_Read... [20:52:55]Read from MH i2c: E2 0B 00 38 25 00 EE 0F 79 84 B1 CD 6E 5E 90 00 1D [20:52:55]RAPDU: EE 0F 79 84 B1 CD 6E 5E 90 00 [20:52:55]wFMCommunicate OK [20:52:55]SAM_PROTO_SignData done [20:52:55]FM_MakeSignedData done [20:52:55]CreateOFDProtocolMessage [20:52:55]wFMCommunicate request_size=4 [20:52:55]MH_SAM_APDU [20:52:55]CAPDU: 80 11 00 00 [20:52:55]Write to MH i2c: E2 08 00 39 25 80 11 00 00 00 00 00 00 D8 [20:52:55]Write i2c OK [20:52:55]MH_I2C_Read... [20:52:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:55]Read from MH i2c: E2 [20:52:55]MH_I2C_Read... [20:52:55]Read from MH i2c: E2 17 00 [20:52:55]MH_I2C_Read... [20:52:55]Read from MH i2c: E2 17 00 39 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2E [20:52:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:52:55]wFMCommunicate OK [20:52:55]CreateOFDProtocolMessage done [20:52:55]OFDSenderStorePacket 67566 [20:52:55]StoreOFDPacket docnum=67566 [20:52:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 96 5E 04 01 EC 14 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B6 E3 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 52 1D 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 52 1D 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 7F 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 52 1D 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 28 72 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EE 07 01 00 35 04 06 00 68 D8 BA C8 3A A4 EE 0F 79 84 B1 CD 6E 5E [20:52:55]CheckFolder [20:52:55]dirname=/storage/ofd_packets [20:52:55]CheckFolder done [20:52:55]ProducePacketName [20:52:55]name=ofd_packets/00067566 [20:52:55]NVStorageSaveData ofd_packets/00067566 [20:52:55]File name is /storage/ofd_packets/00067566 [20:52:55]Write 298 bytes [20:52:55]NVStorageSaveData done [20:52:55]OFDSenderStorePacket done [20:52:55]KKMCreateOFDPacket done [20:52:55]NVStorageSaveData kkm_last_timestamp [20:52:55]File name is /storage/kkm_last_timestamp [20:52:55]Write 4 bytes [20:52:55]NVStorageSaveData done [20:52:55]ExternCall_PrintAddStr [20:52:55]wPrintStart [20:52:55]Write to MH i2c: 01 00 00 3A 25 5F [20:52:55]Write i2c OK [20:52:55]MH_I2C_Read... [20:52:55]Read from MH i2c: 01 [20:52:55]MH_I2C_Read... [20:52:55]Read from MH i2c: 01 07 00 [20:52:55]MH_I2C_Read... [20:52:55]Read from MH i2c: 01 07 00 3A 25 00 00 00 00 00 FF 0F 74 [20:52:55]RasterBufferAndPrint [20:52:55]line Счет N : (1)507637 [20:52:55]line ИНН: 02508201610067 [20:52:55]line Контрольно-Кассовый Чек [20:52:55]line ПРОДАЖА [20:52:55]line ТРК (МРК, ГНК) : 11 [20:52:55]line Товар: 2710194210 [20:52:55]line ДТ-К-5 [20:52:55]line 123.830 * 74.70 [20:52:55]line = 9250.10 [20:52:55]line НДС 12% НСП 1% [20:52:55]line > о реализуемом товаре [20:52:55]line ИТОГО: 9250.10 [20:52:55]line НСП 1% : 81.86 [20:52:55]line НДС 12% : 982.31 [20:52:55]line Наличными: 0.00 [20:52:55]line Безнал.: 9250.10 [20:52:55]line Место: АЗС № 91 "Партнер Нефть" [20:52:55]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:52:55]line СНО: Общий режим [20:52:55]line Чек 164 16.05.2024 20:52 [20:52:55]line Смена: 357 ФФД: 1.0 [20:52:55]line ЗНМ: 0300000119 [20:52:55]line РНМ: 0000000000091845 [20:52:55]line Версия ККМ: 001 [20:52:55]line Платежная система: O! деньги [20:52:55]line ФМ: 0000000000871829 [20:52:55]line ФД: 67566 [20:52:55]line ФПД: 115280055909028 [20:52:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T205256&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67566&fm=115280055909028&tin=02508201610067®Number=0000000000091845&sum=925010 [20:52:56]OFD Sender: Processing packet 67566 [packets to send 35, broken 34] [20:52:56]ProducePacketName [20:52:56]name=ofd_packets/00067566 [20:52:56]OFD Sender: To server: pG, [20:52:56]CommunicateWithHost lk.salyk.kg:30040 [20:52:56]ConnectInit lk.salyk.kg [20:52:56]written 0, free lines is 4095 [20:52:56]Connected sock=10 [20:52: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 38 32 39 0C 01 00 00 96 5E 04 01 EC 14 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B6 E3 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 52 1D 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 52 1D 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 7F 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 52 1D 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 28 72 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EE 07 01 00 35 04 06 00 68 D8 BA C8 3A A4 EE 0F 79 84 B1 CD 6E 5E [20:52:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 49 09 47 00 3B 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 38 32 39 10 04 04 00 EE 07 01 00 F4 03 04 00 02 1A 46 66 B6 04 01 00 00 91 FF B4 33 50 BD BE 07 [20:52:56]CommunicateWithHost err = 0 [20:52:56]CheckOFDResponse [20:52:56]1017 (14) - 77093643461234 [20:52:56]1041 (16) - 0000000000871829 [20:52:56]1040 (4) - 67566 [20:52:56]1012 (4) - 16.05.2024 14:36 [20:52:56]1206 (1) - 0 [20:52:56]OFD Sender: Remove packet 67566 [20:52:56]ProducePacketName [20:52:56]name=ofd_packets/00067566 [20:52:56]NVStorageDeleteData [20:52:56]Write to MH i2c: 01 00 00 63 25 88 [20:52:56]Write i2c OK [20:52:56]MH_I2C_Read... [20:52:56]Read from MH i2c: 01 [20:52:56]MH_I2C_Read... [20:52:56]Read from MH i2c: 01 07 00 [20:52:56]MH_I2C_Read... [20:52:56]Read from MH i2c: 01 07 00 63 25 00 00 00 00 00 DF 0C 7A [20:52:56]RasterBufferAndPrint [20:52:56]line [20:52:56]line [20:52:56]line [20:52:56]line [20:52:56]line [20:52:56]written 0, free lines is 3301 [20:52:56]MH_Cut [20:52:56]Write to MH i2c: D1 01 00 6A 25 01 61 [20:52:56]Write i2c OK [20:52:56]MH_I2C_Read... [20:52:56]Read from MH i2c: D1 [20:52:56]MH_I2C_Read... [20:52:56]Read from MH i2c: D1 01 00 [20:52:56]MH_I2C_Read... [20:52:56]Read from MH i2c: D1 01 00 6A 25 00 60 [20:52:56]Write to MH i2c: 01 00 00 6B 25 90 [20:52:56]Write i2c OK [20:52:56]MH_I2C_Read... [20:52:56]OFD Sender: No OFD packet to send [20:52:57]*** Cut start [20:52:57]*** Purtial cut [20:52:57]*** Stage 1: CUTSNS_PIN = 1 [20:52:57]Read from MH i2c: 01 [20:52:57]MH_I2C_Read... [20:52:57]*** Stop cut motor [20:52:57]*** Cut end [20:52:57]Read from MH i2c: 01 07 00 [20:52:57]MH_I2C_Read... [20:52:57]Read from MH i2c: 01 07 00 6B 25 00 00 00 00 00 FF 0F A5 [20:52:57]process_action close_receipt done [20:52:57]requested_data is exist [20:52:57]produce_requested_data [20:52:57]requested_item fm.sn is exist - process it [20:52:57]wFMCommunicate request_size=4 [20:52:57]MH_SAM_APDU [20:52:57]CAPDU: 80 11 00 00 [20:52:57]Write to MH i2c: E2 08 00 6C 25 80 11 00 00 00 00 00 00 0B [20:52:57]Write i2c OK [20:52:57]MH_I2C_Read... [20:52:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:57]Read from MH i2c: E2 [20:52:57]MH_I2C_Read... [20:52:57]Read from MH i2c: E2 17 00 [20:52:57]MH_I2C_Read... [20:52:57]Read from MH i2c: E2 17 00 6C 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 61 [20:52:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:52:57]wFMCommunicate OK [20:52:57]requested_item fd.num is exist - process it [20:52:57]SAM_PROTO_GetFieldsCounters [20:52:57]wFMCommunicate request_size=4 [20:52:57]MH_SAM_APDU [20:52:57]CAPDU: 80 13 00 00 [20:52:57]Write to MH i2c: E2 08 00 6D 25 80 13 00 00 00 00 00 00 0E [20:52:57]Write i2c OK [20:52:57]MH_I2C_Read... [20:52:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:52:57]Read from MH i2c: E2 [20:52:57]MH_I2C_Read... [20:52:57]Read from MH i2c: E2 62 00 [20:52:57]MH_I2C_Read... [20:52:57]Read from MH i2c: E2 62 00 6D 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EE 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [20:52: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EE 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:52:57]wFMCommunicate OK [20:52:57]SAM_PROTO_GetFieldsCounters done [20:52:57]requested_item shift.num is exist - process it [20:52:57]requested_item shift.opened is exist - process it [20:52:57]req_shift_opened [20:52:57]FM_GetShiftState [20:52:57]SAM_PROTO_GetShiftState [20:52:57]wFMCommunicate request_size=4 [20:52:57]MH_SAM_APDU [20:52:57]CAPDU: 80 13 01 00 [20:52:57]Write to MH i2c: E2 08 00 6E 25 80 13 01 00 00 00 00 00 10 [20:52:57]Write i2c OK [20:52:57]MH_I2C_Read... [20:52:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:57]Read from MH i2c: E2 [20:52:57]MH_I2C_Read... [20:52:57]Read from MH i2c: E2 0E 00 [20:52:57]MH_I2C_Read... [20:52:57]Read from MH i2c: E2 0E 00 6E 25 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 BC [20:52:57]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [20:52:57]wFMCommunicate OK [20:52:57]SAM_PROTO_GetShiftState done [20:52:57]FM_GetShiftState done [20:52:57]req_shift_opened done [20:52:57]requested_item shift.open_date is exist - process it [20:52:57]req_shift_open_date [20:52:57]req_shift_open_date done [20:52:57]produce_requested_data done [20:52:57]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67566,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [20:52:57]process_action_free close_receipt [20:52:57]json_value_free [20:52:57]json_value_free done [20:52:57]process_json_proto returns [20:52:57]Send response to host [20:52:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67566,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [20:52:57]free response buf [20:52:57]execute_script done [20:52:57]execute_script returns [20:52:57]free content buf [20:52:57]Sock 9.Close socket [20:52:57]Sock 9.Thread stoped [20:53:01]OFD Sender: No OFD packet to send [20:53:06]OFD Sender: No OFD packet to send [20:53:11]OFD Sender: No OFD packet to send [20:53:16]OFD Sender: No OFD packet to send [20:53:21]OFD Sender: No OFD packet to send [20:53:26]OFD Sender: No OFD packet to send [20:53:31]OFD Sender: No OFD packet to send [20:53:36]OFD Sender: No OFD packet to send [20:53:41]OFD Sender: No OFD packet to send [20:53:46]OFD Sender: No OFD packet to send [20:53:51]OFD Sender: No OFD packet to send [20:53:56]OFD Sender: No OFD packet to send [20:54:01]OFD Sender: No OFD packet to send [20:54:06]OFD Sender: No OFD packet to send [20:54:11]OFD Sender: No OFD packet to send [20:54:16]OFD Sender: No OFD packet to send [20:54:21]OFD Sender: No OFD packet to send [20:54:26]OFD Sender: No OFD packet to send [20:54:31]OFD Sender: No OFD packet to send [20:54:36]OFD Sender: No OFD packet to send [20:54:41]OFD Sender: No OFD packet to send [20:54:46]OFD Sender: No OFD packet to send [20:54:51]OFD Sender: No OFD packet to send [20:54:56]OFD Sender: No OFD packet to send [20:55:02]OFD Sender: No OFD packet to send [20:55:07]OFD Sender: No OFD packet to send [20:55:12]OFD Sender: No OFD packet to send [20:55:17]OFD Sender: No OFD packet to send [20:55:22]OFD Sender: No OFD packet to send [20:55:27]OFD Sender: No OFD packet to send [20:55:32]OFD Sender: No OFD packet to send [20:55:37]OFD Sender: No OFD packet to send [20:55:42]OFD Sender: No OFD packet to send [20:55:47]OFD Sender: No OFD packet to send [20:55:52]OFD Sender: No OFD packet to send [20:55:57]OFD Sender: No OFD packet to send [20:56:02]OFD Sender: No OFD packet to send [20:56:07]OFD Sender: No OFD packet to send [20:56:12]OFD Sender: No OFD packet to send [20:56:17]OFD Sender: No OFD packet to send [20:56:22]OFD Sender: No OFD packet to send [20:56:27]OFD Sender: No OFD packet to send [20:56:32]OFD Sender: No OFD packet to send [20:56:37]OFD Sender: No OFD packet to send [20:56:42]OFD Sender: No OFD packet to send [20:56:47]OFD Sender: No OFD packet to send [20:56:52]OFD Sender: No OFD packet to send [20:56:57]OFD Sender: No OFD packet to send [20:57:02]OFD Sender: No OFD packet to send [20:57:07]OFD Sender: No OFD packet to send [20:57:12]OFD Sender: No OFD packet to send [20:57:17]OFD Sender: No OFD packet to send [20:57:22]OFD Sender: No OFD packet to send [20:57:27]OFD Sender: No OFD packet to send [20:57:32]OFD Sender: No OFD packet to send [20:57:37]OFD Sender: No OFD packet to send [20:57:42]OFD Sender: No OFD packet to send [20:57:47]OFD Sender: No OFD packet to send [20:57:52]OFD Sender: No OFD packet to send [20:57:57]OFD Sender: No OFD packet to send [20:58:02]OFD Sender: No OFD packet to send [20:58:07]OFD Sender: No OFD packet to send [20:58:12]OFD Sender: No OFD packet to send [20:58:17]OFD Sender: No OFD packet to send [20:58:22]OFD Sender: No OFD packet to send [20:58:27]OFD Sender: No OFD packet to send [20:58:32]OFD Sender: No OFD packet to send [20:58:37]OFD Sender: No OFD packet to send [20:58:42]OFD Sender: No OFD packet to send [20:58:47]OFD Sender: No OFD packet to send [20:58:52]OFD Sender: No OFD packet to send [20:58:57]OFD Sender: No OFD packet to send [20:59:02]OFD Sender: No OFD packet to send [20:59:07]OFD Sender: No OFD packet to send [20:59:12]OFD Sender: No OFD packet to send [20:59:17]OFD Sender: No OFD packet to send [20:59:22]OFD Sender: No OFD packet to send [20:59:27]OFD Sender: No OFD packet to send [20:59:32]OFD Sender: No OFD packet to send [20:59:37]OFD Sender: No OFD packet to send [20:59:42]OFD Sender: No OFD packet to send [20:59:47]OFD Sender: No OFD packet to send [20:59:52]OFD Sender: No OFD packet to send [20:59:57]OFD Sender: No OFD packet to send [21:00:02]OFD Sender: No OFD packet to send [21:00:07]OFD Sender: No OFD packet to send [21:00:12]OFD Sender: No OFD packet to send [21:00:17]OFD Sender: No OFD packet to send [21:00:22]OFD Sender: No OFD packet to send [21:00:27]OFD Sender: No OFD packet to send [21:00:32]OFD Sender: No OFD packet to send [21:00:37]OFD Sender: No OFD packet to send [21:00:42]OFD Sender: No OFD packet to send [21:00:47]OFD Sender: No OFD packet to send [21:00:52]OFD Sender: No OFD packet to send [21:00:57]OFD Sender: No OFD packet to send [21:01:02]OFD Sender: No OFD packet to send [21:01:07]OFD Sender: No OFD packet to send [21:01:12]OFD Sender: No OFD packet to send [21:01:17]OFD Sender: No OFD packet to send [21:01:22]OFD Sender: No OFD packet to send [21:01:27]OFD Sender: No OFD packet to send [21:01:32]OFD Sender: No OFD packet to send [21:01:37]OFD Sender: No OFD packet to send [21:27:58]ConnectInit Can't connect to host [21:27:58]OFD Sender: Processing packet 67567 [packets to send 36, broken 34] [21:27:58]ProducePacketName [21:27:58]name=ofd_packets/00067567 [21:27:58]OFD Sender: To server: pG, [21:27:58]CommunicateWithHost lk.salyk.kg:30040 [21:27:58]ConnectInit lk.salyk.kg [21:28:03]ConnectInit Can't take IP for lk.salyk.kg [21:28:03]CommunicateWithHost connect error [21:28:03]CommunicateWithHost err = -1 [21:28:03]OFD Sender: Server communicate error [21:28:08]OFD Sender: Processing packet 67567 [packets to send 36, broken 34] [21:28:08]ProducePacketName [21:28:08]name=ofd_packets/00067567 [21:28:08]OFD Sender: To server: pG, [21:28:08]CommunicateWithHost lk.salyk.kg:30040 [21:28:08]ConnectInit lk.salyk.kg [21:30:19]ConnectInit Can't connect to host [21:30:19]CommunicateWithHost connect error [21:30:19]CommunicateWithHost err = -1 [21:30:19]OFD Sender: Server communicate error [21:30:24]OFD Sender: Processing packet 67567 [packets to send 36, broken 34] [21:30:24]ProducePacketName [21:30:24]name=ofd_packets/00067567 [21:30:24]OFD Sender: To server: pG, [21:30:24]CommunicateWithHost lk.salyk.kg:30040 [21:30:24]ConnectInit lk.salyk.kg [21:30:24]Connected sock=8 [21:30: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 38 32 39 0F 01 00 00 10 69 07 01 11 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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 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 D0 75 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EF 07 01 00 35 04 06 00 72 99 55 13 28 EE 3A 56 47 0C C3 B3 68 F7 [21:30:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 59 40 47 00 1D 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 38 32 39 10 04 04 00 EF 07 01 00 F4 03 04 00 CB 22 46 66 B6 04 01 00 00 AD C0 B2 20 AA 64 DD 6A [21:30:25]CommunicateWithHost err = 0 [21:30:25]CheckOFDResponse [21:30:25]1017 (14) - 77093643461234 [21:30:25]1041 (16) - 0000000000871829 [21:30:25]1040 (4) - 67567 [21:30:25]1012 (4) - 16.05.2024 15:14 [21:30:25]1206 (1) - 0 [21:30:25]OFD Sender: Remove packet 67567 [21:30:25]ProducePacketName [21:30:25]name=ofd_packets/00067567 [21:30:25]NVStorageDeleteData [21:30:25]OFD Sender: Processing packet 67568 [packets to send 35, broken 34] [21:30:25]ProducePacketName [21:30:25]name=ofd_packets/00067568 [21:30:25]OFD Sender: To server: pG, [21:30:25]CommunicateWithHost lk.salyk.kg:30040 [21:30:25]ConnectInit lk.salyk.kg [21:30:25]Connected sock=8 [21:30:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 F8 D8 04 01 7F D4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 DB 79 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F0 07 01 00 35 04 06 00 F1 2F F5 B2 02 DD 3B FA 1C 1E 2F 7A 2D E2 [21:30:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 CA A2 47 00 5D 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 38 32 39 10 04 04 00 F0 07 01 00 F4 03 04 00 CC 22 46 66 B6 04 01 00 00 DA 52 FA 54 43 9A E0 81 [21:30:25]CommunicateWithHost err = 0 [21:30:25]CheckOFDResponse [21:30:25]1017 (14) - 77093643461234 [21:30:25]1041 (16) - 0000000000871829 [21:30:25]1040 (4) - 67568 [21:30:25]1012 (4) - 16.05.2024 15:14 [21:30:25]1206 (1) - 0 [21:30:25]OFD Sender: Remove packet 67568 [21:30:25]ProducePacketName [21:30:25]name=ofd_packets/00067568 [21:30:25]NVStorageDeleteData [21:30:26]OFD Sender: No OFD packet to send [21:30:31]OFD Sender: No OFD packet to send [21:30:36]OFD Sender: No OFD packet to send [21:30:41]OFD Sender: No OFD packet to send [21:30:46]OFD Sender: No OFD packet to send [21:30:51]OFD Sender: No OFD packet to send [21:30:56]OFD Sender: No OFD packet to send [21:31:01]OFD Sender: No OFD packet to send [21:31:06]OFD Sender: No OFD packet to send [21:31:07]accept exits with 11 [21:31:07]New connection [21:31:07]New thread 3067182436 created [21:31:07]Thread 3067039076 joined [21:31:07]Waiting for new connection... [21:31:07] Sock 11.Parse request [21:31:07]Sock 11.Check first char [21:31:07]Sock 11.First char is OK [21:31:07]request: POST /json_proto HTTP/1.0 [21:31:07]Method: POST [21:31:07]URL: /json_proto [21:31:07]Method is POST - this is cgi request [21:31:07]url: /json_proto [21:31:07]query_string will be loaded in cgi processing [21:31:07]execute_cgi json_proto POST (null) [21:31:07]execute_cgi path=json_proto method=POST [21:31:07]POST find Content-Length [21:31:07]Host: 172.17.41.195:8080 [21:31:07]Content-Length: 674 [21:31:07]Content-Type: application/json [21:31:07] [21:31:07]POST finish read [21:31:07]Found Content-Length = 674 [21:31:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507647", "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" : 74.70, "quantity" : 4.730, "sum" : 353.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 353.00, "total" : 353.00, "payments": [ { "type": 0, "sum" : 353.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:31:07]execute_script... [21:31:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507647", "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" : 74.70, "quantity" : 4.730, "sum" : 353.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 353.00, "total" : 353.00, "payments": [ { "type": 0, "sum" : 353.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:31:07]POST & json_proto [21:31:07]process_json_proto [21:31:07]json parsed OK: [21:31:07]protocol is kg_v1.0 [21:31:07]action value=close_receipt [21:31:07]process_action close_receipt [21:31:07]cmd_close_receipt [21:31:07]MH_GetDate [21:31:07]Write to MH i2c: F0 00 00 82 26 97 [21:31:07]Write i2c OK [21:31:07]MH_I2C_Read... [21:31:07]Read from MH i2c: F0 [21:31:07]MH_I2C_Read... [21:31:07]Read from MH i2c: F0 09 00 [21:31:07]MH_I2C_Read... [21:31:07]Read from MH i2c: F0 09 00 82 26 00 1E 7B 46 66 FC 21 6F 64 D5 [21:31:07]GetLastDocTimeStamp 1715894747 [21:31:07]current date 1715895070 [21:31:07]FM_GetShiftState [21:31:07]SAM_PROTO_GetShiftState [21:31:07]wFMCommunicate request_size=4 [21:31:07]MH_SAM_APDU [21:31:07]CAPDU: 80 13 01 00 [21:31:07]Write to MH i2c: E2 08 00 83 26 80 13 01 00 00 00 00 00 26 [21:31:07]Write i2c OK [21:31:07]MH_I2C_Read... [21:31:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:08]Read from MH i2c: E2 [21:31:08]MH_I2C_Read... [21:31:08]Read from MH i2c: E2 0E 00 [21:31:08]MH_I2C_Read... [21:31:08]Read from MH i2c: E2 0E 00 83 26 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 D2 [21:31:08]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [21:31:08]wFMCommunicate OK [21:31:08]SAM_PROTO_GetShiftState done [21:31:08]FM_GetShiftState done [21:31:08]opened in 1715818916 [21:31:08]opened+sec_in_day 1715905316 [21:31:08]quantity*price = 35333 [21:31:08]sum+1 = 35334 [21:31:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 353.00 Внесено: 353.00 СДАЧА: 0.00 НСП 1% : 3.13 НДС 12% : 37.52 Наличными: 353.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 167 16.05.2024 21:31 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67569 ФПД: 217814879092310 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T213110&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67569&fm=217814879092310&tin=02508201610067®Number=0000000000091845&sum=35300 [21:31:09]StoreToDocumentArchive [21:31:09]shift 357 fd 67569 [21:31:09]save to /storage/0357/doc_00067569 [21:31:09]save last doc name /storage/0357/doc_00067569 to /storage/kkm_last_doc_name [21:31:09]save OK [21:31:09]Clear old archive folders... [21:31:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:31:09]tlvbuf is 01801BB0 [21:31:09]SAM_PROTO_ClearQueue [21:31:09]wFMCommunicate request_size=4 [21:31:09]MH_SAM_APDU [21:31:09]CAPDU: 80 09 00 00 [21:31:09]Write to MH i2c: E2 08 00 90 26 80 09 00 00 00 00 00 00 28 [21:31:09]Write i2c OK [21:31:09]MH_I2C_Read... [21:31:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:31:09]Read from MH i2c: E2 [21:31:09]MH_I2C_Read... [21:31:09]Read from MH i2c: E2 03 00 [21:31:09]MH_I2C_Read... [21:31:09]Read from MH i2c: E2 03 00 90 26 00 90 00 2A [21:31:09]RAPDU: 90 00 [21:31:09]wFMCommunicate OK [21:31:09]SAM_PROTO_ClearQueue done [21:31:09]KKMCreateOFDPacket [21:31:09]OFDProtocolAddRootSTLVToBuf [21:31:09]FM_MakeSignedData [21:31:09]FM_MakeSignedData [21:31:09]SAM_PROTO_SignData [21:31:09]wFMCommunicate request_size=4 [21:31:09]MH_SAM_APDU [21:31:09]CAPDU: 80 0D 01 02 [21:31:09]Write to MH i2c: E2 08 00 91 26 80 0D 01 02 00 00 00 00 30 [21:31:09]Write i2c OK [21:31:09]MH_I2C_Read... [21:31:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:31:09]Read from MH i2c: E2 [21:31:09]MH_I2C_Read... [21:31:09]Read from MH i2c: E2 03 00 [21:31:09]MH_I2C_Read... [21:31:09]Read from MH i2c: E2 03 00 91 26 00 90 00 2B [21:31:09]RAPDU: 90 00 [21:31:09]wFMCommunicate OK [21:31:09]wFMCommunicate request_size=255 [21:31:09]MH_SAM_APDU [21:31: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 7A 12 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 05 8A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 89 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 0E 00 00 00 00 07 04 06 00 E4 89 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 1E 7B 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F1 07 01 00 35 04 06 00 C6 19 FA 7E [21:31:09]Write to MH i2c: E2 02 01 92 26 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 12 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 05 8A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 89 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 0E 00 00 00 00 07 04 06 00 E4 89 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 1E 7B 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F1 07 01 00 35 04 06 00 C6 19 FA 7E 00 00 64 [21:31:09]Write i2c OK [21:31:09]MH_I2C_Read... [21:31:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:09]Read from MH i2c: E2 [21:31:09]MH_I2C_Read... [21:31:09]Read from MH i2c: E2 03 00 [21:31:09]MH_I2C_Read... [21:31:09]Read from MH i2c: E2 03 00 92 26 00 90 00 2C [21:31:09]RAPDU: 90 00 [21:31:09]wFMCommunicate OK [21:31:09]wFMCommunicate request_size=7 [21:31:09]MH_SAM_APDU [21:31:09]CAPDU: 80 0D 02 02 02 BE 56 [21:31:09]Write to MH i2c: E2 0A 00 93 26 80 0D 02 02 02 00 BE 56 00 00 4B [21:31:09]Write i2c OK [21:31:09]MH_I2C_Read... [21:31:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:09]Read from MH i2c: E2 [21:31:09]MH_I2C_Read... [21:31:09]Read from MH i2c: E2 03 00 [21:31:09]MH_I2C_Read... [21:31:09]Read from MH i2c: E2 03 00 93 26 00 90 00 2D [21:31:09]RAPDU: 90 00 [21:31:09]wFMCommunicate OK [21:31:09]wFMCommunicate request_size=4 [21:31:09]MH_SAM_APDU [21:31:09]CAPDU: 80 0D 03 02 [21:31:09]Write to MH i2c: E2 08 00 94 26 80 0D 03 02 00 00 00 00 35 [21:31:09]Write i2c OK [21:31:09]MH_I2C_Read... [21:31:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:31:09]Read from MH i2c: E2 [21:31:09]MH_I2C_Read... [21:31:09]Read from MH i2c: E2 0B 00 [21:31:09]MH_I2C_Read... [21:31:09]Read from MH i2c: E2 0B 00 94 26 00 9F 18 97 F2 1C B6 F7 DA 90 00 19 [21:31:09]RAPDU: 9F 18 97 F2 1C B6 F7 DA 90 00 [21:31:09]wFMCommunicate OK [21:31:09]SAM_PROTO_SignData done [21:31:09]FM_MakeSignedData done [21:31:09]CreateOFDProtocolMessage [21:31:09]wFMCommunicate request_size=4 [21:31:09]MH_SAM_APDU [21:31:09]CAPDU: 80 11 00 00 [21:31:09]Write to MH i2c: E2 08 00 95 26 80 11 00 00 00 00 00 00 35 [21:31:09]Write i2c OK [21:31:09]MH_I2C_Read... [21:31:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:09]Read from MH i2c: E2 [21:31:09]MH_I2C_Read... [21:31:09]Read from MH i2c: E2 17 00 [21:31:09]MH_I2C_Read... [21:31:09]Read from MH i2c: E2 17 00 95 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 8B [21:31:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:31:09]wFMCommunicate OK [21:31:09]CreateOFDProtocolMessage done [21:31:09]OFDSenderStorePacket 67569 [21:31:09]StoreOFDPacket docnum=67569 [21:31:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 58 53 04 01 8F CE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 12 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 05 8A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 89 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 0E 00 00 00 00 07 04 06 00 E4 89 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 1E 7B 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F1 07 01 00 35 04 06 00 C6 19 FA 7E BE 56 9F 18 97 F2 1C B6 F7 DA [21:31:09]CheckFolder [21:31:09]dirname=/storage/ofd_packets [21:31:09]CheckFolder done [21:31:09]ProducePacketName [21:31:09]name=ofd_packets/00067569 [21:31:09]NVStorageSaveData ofd_packets/00067569 [21:31:09]File name is /storage/ofd_packets/00067569 [21:31:09]Write 298 bytes [21:31:09]NVStorageSaveData done [21:31:09]OFDSenderStorePacket done [21:31:09]KKMCreateOFDPacket done [21:31:09]NVStorageSaveData kkm_last_timestamp [21:31:09]File name is /storage/kkm_last_timestamp [21:31:09]Write 4 bytes [21:31:09]NVStorageSaveData done [21:31:09]ExternCall_PrintAddStr [21:31:09]wPrintStart [21:31:09]Write to MH i2c: 01 00 00 96 26 BC [21:31:09]Write i2c OK [21:31:09]MH_I2C_Read... [21:31:09]Read from MH i2c: 01 [21:31:09]MH_I2C_Read... [21:31:09]Read from MH i2c: 01 07 00 [21:31:09]MH_I2C_Read... [21:31:09]Read from MH i2c: 01 07 00 96 26 00 00 00 00 00 FF 0F D1 [21:31:09]RasterBufferAndPrint [21:31:09]line Счет N : (1)507647 [21:31:09]line ИНН: 02508201610067 [21:31:09]line Контрольно-Кассовый Чек [21:31:09]line ПРОДАЖА [21:31:09]line ТРК (МРК, ГНК) : 21 [21:31:09]line Товар: 2710194210 [21:31:09]line ДТ-К-5 [21:31:09]line 4.730 * 74.70 [21:31:09]line = 353.33 [21:31:09]line НДС 12% НСП 1% [21:31:09]line > о реализуемом товаре [21:31:09]line ОКРУГЛЕНИЕ: -0.33 [21:31:09]line ИТОГО: 353.00 [21:31:09]line Внесено: 353.00 [21:31:09]line СДАЧА: 0.00 [21:31:09]line НСП 1% : 3.13 [21:31:09]line НДС 12% : 37.52 [21:31:09]line Наличными: 353.00 [21:31:09]line Безнал.: 0.00 [21:31:09]line Место: АЗС № 91 "Партнер Нефть" [21:31:09]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [21:31:09]line СНО: Общий режим [21:31:09]line Чек 167 16.05.2024 21:31 [21:31:09]line Смена: 357 ФФД: 1.0 [21:31:09]line ЗНМ: 0300000119 [21:31:09]line РНМ: 0000000000091845 [21:31:09]line Версия ККМ: 001 [21:31:09]line ФМ: 0000000000871829 [21:31:09]line ФД: 67569 [21:31:09]line ФПД: 217814879092310 [21:31:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T213110&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67569&fm=217814879092310&tin=02508201610067®Number=0000000000091845&sum=35300 [21:31:10]OFD Sender: Processing packet 67569 [packets to send 35, broken 34] [21:31:10]ProducePacketName [21:31:10]name=ofd_packets/00067569 [21:31:10]OFD Sender: To server: pG, [21:31:10]CommunicateWithHost lk.salyk.kg:30040 [21:31:10]ConnectInit lk.salyk.kg [21:31:10]written 0, free lines is 4095 [21:31:10]Connected sock=9 [21:31: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 38 32 39 0C 01 00 00 58 53 04 01 8F CE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 12 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 05 8A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 89 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 0E 00 00 00 00 07 04 06 00 E4 89 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 1E 7B 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F1 07 01 00 35 04 06 00 C6 19 FA 7E BE 56 9F 18 97 F2 1C B6 F7 DA [21:31:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 B3 AA 47 00 1D 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 38 32 39 10 04 04 00 F1 07 01 00 F4 03 04 00 F8 22 46 66 B6 04 01 00 00 9C 0A 31 0B C8 7F 1F 52 [21:31:10]CommunicateWithHost err = 0 [21:31:10]CheckOFDResponse [21:31:10]1017 (14) - 77093643461234 [21:31:10]1041 (16) - 0000000000871829 [21:31:10]1040 (4) - 67569 [21:31:10]1012 (4) - 16.05.2024 15:15 [21:31:10]1206 (1) - 0 [21:31:10]OFD Sender: Remove packet 67569 [21:31:10]ProducePacketName [21:31:10]name=ofd_packets/00067569 [21:31:10]NVStorageDeleteData [21:31:10]Write to MH i2c: 01 00 00 C0 26 E6 [21:31:10]Write i2c OK [21:31:10]MH_I2C_Read... [21:31:10]Read from MH i2c: 01 [21:31:10]MH_I2C_Read... [21:31:10]Read from MH i2c: 01 07 00 [21:31:10]MH_I2C_Read... [21:31:10]Read from MH i2c: 01 07 00 C0 26 00 00 00 00 00 C3 0C BC [21:31:10]RasterBufferAndPrint [21:31:10]line [21:31:10]line [21:31:10]line [21:31:10]line [21:31:10]line [21:31:10]written 0, free lines is 3272 [21:31:10]MH_Cut [21:31:10]Write to MH i2c: D1 01 00 C7 26 01 BF [21:31:10]Write i2c OK [21:31:10]MH_I2C_Read... [21:31:10]Read from MH i2c: D1 [21:31:10]MH_I2C_Read... [21:31:10]Read from MH i2c: D1 01 00 [21:31:10]MH_I2C_Read... [21:31:10]Read from MH i2c: D1 01 00 C7 26 00 BE [21:31:10]Write to MH i2c: 01 00 00 C8 26 EE [21:31:10]Write i2c OK [21:31:10]MH_I2C_Read... [21:31:10]OFD Sender: No OFD packet to send [21:31:11]*** Cut start [21:31:11]*** Purtial cut [21:31:11]*** CUTSNS_PIN = 0 [21:31:11]*** Stage 1: CUTSNS_PIN = 1 [21:31:13]Read from MH i2c: 01 [21:31:13]MH_I2C_Read... [21:31:13]*** Stop cut motor [21:31:13]*** Cut end [21:31:13]Read from MH i2c: 01 07 00 [21:31:13]MH_I2C_Read... [21:31:13]Read from MH i2c: 01 07 00 C8 26 00 00 00 00 00 FF 0F 03 [21:31:13]process_action close_receipt done [21:31:13]requested_data is exist [21:31:13]produce_requested_data [21:31:13]requested_item fm.sn is exist - process it [21:31:13]wFMCommunicate request_size=4 [21:31:13]MH_SAM_APDU [21:31:13]CAPDU: 80 11 00 00 [21:31:13]Write to MH i2c: E2 08 00 C9 26 80 11 00 00 00 00 00 00 69 [21:31:13]Write i2c OK [21:31:13]MH_I2C_Read... [21:31:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:13]Read from MH i2c: E2 [21:31:13]MH_I2C_Read... [21:31:13]Read from MH i2c: E2 17 00 [21:31:13]MH_I2C_Read... [21:31:13]Read from MH i2c: E2 17 00 C9 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BF [21:31:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:31:13]wFMCommunicate OK [21:31:13]requested_item fd.num is exist - process it [21:31:13]SAM_PROTO_GetFieldsCounters [21:31:13]wFMCommunicate request_size=4 [21:31:13]MH_SAM_APDU [21:31:13]CAPDU: 80 13 00 00 [21:31:13]Write to MH i2c: E2 08 00 CA 26 80 13 00 00 00 00 00 00 6C [21:31:13]Write i2c OK [21:31:13]MH_I2C_Read... [21:31:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:31:13]Read from MH i2c: E2 [21:31:13]MH_I2C_Read... [21:31:13]Read from MH i2c: E2 62 00 [21:31:13]MH_I2C_Read... [21:31:13]Read from MH i2c: E2 62 00 CA 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F1 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [21:31: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F1 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:31:13]wFMCommunicate OK [21:31:13]SAM_PROTO_GetFieldsCounters done [21:31:13]requested_item shift.num is exist - process it [21:31:13]requested_item shift.opened is exist - process it [21:31:13]req_shift_opened [21:31:13]FM_GetShiftState [21:31:13]SAM_PROTO_GetShiftState [21:31:13]wFMCommunicate request_size=4 [21:31:13]MH_SAM_APDU [21:31:13]CAPDU: 80 13 01 00 [21:31:13]Write to MH i2c: E2 08 00 CB 26 80 13 01 00 00 00 00 00 6E [21:31:13]Write i2c OK [21:31:13]MH_I2C_Read... [21:31:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:13]Read from MH i2c: E2 [21:31:13]MH_I2C_Read... [21:31:13]Read from MH i2c: E2 0E 00 [21:31:13]MH_I2C_Read... [21:31:13]Read from MH i2c: E2 0E 00 CB 26 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 1A [21:31:13]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [21:31:13]wFMCommunicate OK [21:31:13]SAM_PROTO_GetShiftState done [21:31:13]FM_GetShiftState done [21:31:13]req_shift_opened done [21:31:13]requested_item shift.open_date is exist - process it [21:31:13]req_shift_open_date [21:31:13]req_shift_open_date done [21:31:13]produce_requested_data done [21:31:13]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67569,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [21:31:13]process_action_free close_receipt [21:31:13]json_value_free [21:31:13]json_value_free done [21:31:13]process_json_proto returns [21:31:13]Send response to host [21:31:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67569,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [21:31:13]free response buf [21:31:13]execute_script done [21:31:13]execute_script returns [21:31:13]free content buf [21:31:13]Sock 11.Close socket [21:31:13]Sock 11.Thread stoped [21:31:15]OFD Sender: No OFD packet to send [21:31:20]OFD Sender: No OFD packet to send [21:31:25]OFD Sender: No OFD packet to send [21:31:30]OFD Sender: No OFD packet to send [21:31:35]OFD Sender: No OFD packet to send [21:31:40]OFD Sender: No OFD packet to send [21:31:45]OFD Sender: No OFD packet to send [21:31:50]OFD Sender: No OFD packet to send [21:31:55]OFD Sender: No OFD packet to send [21:32:00]OFD Sender: No OFD packet to send [21:32:05]OFD Sender: No OFD packet to send [21:32:10]OFD Sender: No OFD packet to send [21:32:11]accept exits with 8 [21:32:11]New connection [21:32:11]New thread 3067039076 created [21:32:11]Thread 3067182436 joined [21:32:11]Waiting for new connection... [21:32:11] Sock 8.Parse request [21:32:11]Sock 8.Check first char [21:32:11]Sock 8.First char is OK [21:32:11]request: POST /json_proto HTTP/1.0 [21:32:11]Method: POST [21:32:11]URL: /json_proto [21:32:11]Method is POST - this is cgi request [21:32:11]url: /json_proto [21:32:11]query_string will be loaded in cgi processing [21:32:11]execute_cgi json_proto POST (null) [21:32:11]execute_cgi path=json_proto method=POST [21:32:11]POST find Content-Length [21:32:11]Host: 172.17.41.195:8080 [21:32:11]Content-Length: 1210 [21:32:11]Content-Type: application/json [21:32:11] [21:32:11]POST finish read [21:32:11]Found Content-Length = 1210 [21:32:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507648\u000A16.05.2024 21:14\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 7.490 x 66.80\u000A\u0418\u0422\u041E\u0413: 500.33\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:32:11]execute_script... [21:32:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507648\u000A16.05.2024 21:14\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 7.490 x 66.80\u000A\u0418\u0422\u041E\u0413: 500.33\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:32:11]POST & json_proto [21:32:11]process_json_proto [21:32:11]json parsed OK: [21:32:11]protocol is kg_v1.0 [21:32:11]action value=print_text [21:32:11]process_action print_text [21:32:11]cmd_print_text [21:32:11]ExternCall_PrintAddStr [21:32:11]wPrintStart [21:32:11]Write to MH i2c: 01 00 00 CC 26 F2 [21:32:11]Write i2c OK [21:32:11]MH_I2C_Read... [21:32:11]Read from MH i2c: 01 [21:32:11]MH_I2C_Read... [21:32:11]Read from MH i2c: 01 07 00 [21:32:11]MH_I2C_Read... [21:32:11]Read from MH i2c: 01 07 00 CC 26 00 00 00 00 00 FF 0F 07 [21:32:11]RasterBufferAndPrint [21:32:11]line *****ТОВАРНЫЙ ЧЕК***** [21:32:11]line АЗС-91 [21:32:11]line Партнер нефть [21:32:11]line 02508201610067 [21:32:11]line Кассир : Пайзулдаева А. [21:32:11]line Счет N : (1)507648 [21:32:11]line 16.05.2024 21:14 [21:32:11]line ПРОДАЖА [21:32:11]line ТРК (МРК, ГНК): 33 [21:32:11]line Вид ГСМ : 2710124130 [21:32:11]line Аи-92-К-5 [21:32:11]line 7.490 x 66.80 [21:32:11]line ИТОГ: 500.33 [21:32:11]line Тип оплаты: Талоны: Топливная Карта [21:32:11]line 02750 [21:32:11]line ______________________ [21:32:11]line (подпись) [21:32:11]written 0, free lines is 4095 [21:32:11]Write to MH i2c: 01 00 00 E0 26 06 [21:32:11]Write i2c OK [21:32:11]MH_I2C_Read... [21:32:11]Read from MH i2c: 01 [21:32:11]MH_I2C_Read... [21:32:11]Read from MH i2c: 01 07 00 [21:32:11]MH_I2C_Read... [21:32:11]Read from MH i2c: 01 07 00 E0 26 00 00 00 00 00 10 0E 2B [21:32:11]RasterBufferAndPrint [21:32:11]line [21:32:11]line [21:32:11]line [21:32:11]line [21:32:11]line [21:32:11]written 0, free lines is 3601 [21:32:11]MH_Cut [21:32:11]Write to MH i2c: D1 01 00 E7 26 01 DF [21:32:11]Write i2c OK [21:32:11]MH_I2C_Read... [21:32:11]Read from MH i2c: D1 [21:32:11]MH_I2C_Read... [21:32:11]Read from MH i2c: D1 01 00 [21:32:11]MH_I2C_Read... [21:32:11]Read from MH i2c: D1 01 00 E7 26 00 DE [21:32:11]Write to MH i2c: 01 00 00 E8 26 0E [21:32:11]Write i2c OK [21:32:11]MH_I2C_Read... [21:32:12]*** Cut start [21:32:12]*** Purtial cut [21:32:12]*** Stage 1: CUTSNS_PIN = 1 [21:32:12]Read from MH i2c: 01 [21:32:12]MH_I2C_Read... [21:32:12]*** Stop cut motor [21:32:12]*** Cut end [21:32:12]Read from MH i2c: 01 07 00 [21:32:12]MH_I2C_Read... [21:32:12]Read from MH i2c: 01 07 00 E8 26 00 00 00 00 00 FF 0F 23 [21:32:12]process_action print_text done [21:32:12]requested_data is exist [21:32:12]produce_requested_data [21:32:12]requested_item fm.sn is exist - process it [21:32:12]wFMCommunicate request_size=4 [21:32:12]MH_SAM_APDU [21:32:12]CAPDU: 80 11 00 00 [21:32:12]Write to MH i2c: E2 08 00 E9 26 80 11 00 00 00 00 00 00 89 [21:32:12]Write i2c OK [21:32:12]MH_I2C_Read... [21:32:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:32:12]Read from MH i2c: E2 [21:32:12]MH_I2C_Read... [21:32:12]Read from MH i2c: E2 17 00 [21:32:12]MH_I2C_Read... [21:32:12]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 38 32 39 90 00 DF [21:32:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:32:12]wFMCommunicate OK [21:32:12]requested_item fd.num is exist - process it [21:32:12]SAM_PROTO_GetFieldsCounters [21:32:12]wFMCommunicate request_size=4 [21:32:12]MH_SAM_APDU [21:32:12]CAPDU: 80 13 00 00 [21:32:12]Write to MH i2c: E2 08 00 EA 26 80 13 00 00 00 00 00 00 8C [21:32:12]Write i2c OK [21:32:12]MH_I2C_Read... [21:32:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:32:12]Read from MH i2c: E2 [21:32:12]MH_I2C_Read... [21:32:12]Read from MH i2c: E2 62 00 [21:32:12]MH_I2C_Read... [21:32:12]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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F1 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [21:32: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F1 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:32:12]wFMCommunicate OK [21:32:12]SAM_PROTO_GetFieldsCounters done [21:32:12]requested_item shift.num is exist - process it [21:32:12]requested_item shift.opened is exist - process it [21:32:12]req_shift_opened [21:32:12]FM_GetShiftState [21:32:12]SAM_PROTO_GetShiftState [21:32:12]wFMCommunicate request_size=4 [21:32:12]MH_SAM_APDU [21:32:12]CAPDU: 80 13 01 00 [21:32:12]Write to MH i2c: E2 08 00 EB 26 80 13 01 00 00 00 00 00 8E [21:32:12]Write i2c OK [21:32:12]MH_I2C_Read... [21:32:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:32:12]Read from MH i2c: E2 [21:32:12]MH_I2C_Read... [21:32:12]Read from MH i2c: E2 0E 00 [21:32:12]MH_I2C_Read... [21:32:12]Read from MH i2c: E2 0E 00 EB 26 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 3A [21:32:12]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [21:32:12]wFMCommunicate OK [21:32:12]SAM_PROTO_GetShiftState done [21:32:12]FM_GetShiftState done [21:32:12]req_shift_opened done [21:32:12]requested_item shift.open_date is exist - process it [21:32:12]req_shift_open_date [21:32:12]req_shift_open_date done [21:32:12]produce_requested_data done [21:32:12]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67569,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [21:32:12]process_action_free print_text [21:32:12]json_value_free [21:32:12]json_value_free done [21:32:12]process_json_proto returns [21:32:12]Send response to host [21:32:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67569,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [21:32:12]free response buf [21:32:12]execute_script done [21:32:12]execute_script returns [21:32:12]free content buf [21:32:12]Sock 8.Close socket [21:32:12]Sock 8.Thread stoped [21:32:15]OFD Sender: No OFD packet to send [21:32:20]OFD Sender: No OFD packet to send [21:32:25]OFD Sender: No OFD packet to send [21:32:30]OFD Sender: No OFD packet to send [21:32:35]OFD Sender: No OFD packet to send [21:32:40]OFD Sender: No OFD packet to send [21:32:45]OFD Sender: No OFD packet to send [21:32:50]OFD Sender: No OFD packet to send [21:32:55]OFD Sender: No OFD packet to send [21:33:00]OFD Sender: No OFD packet to send [21:33:05]OFD Sender: No OFD packet to send [21:33:10]OFD Sender: No OFD packet to send [21:33:15]OFD Sender: No OFD packet to send [21:33:20]OFD Sender: No OFD packet to send [21:33:25]OFD Sender: No OFD packet to send [21:33:30]OFD Sender: No OFD packet to send [21:33:35]OFD Sender: No OFD packet to send [21:33:40]OFD Sender: No OFD packet to send [21:33:45]OFD Sender: No OFD packet to send [21:33:50]OFD Sender: No OFD packet to send [21:33:55]OFD Sender: No OFD packet to send [21:34:00]OFD Sender: No OFD packet to send [21:34:05]OFD Sender: No OFD packet to send [21:34:10]OFD Sender: No OFD packet to send [21:34:15]OFD Sender: No OFD packet to send [21:34:20]OFD Sender: No OFD packet to send [21:34:25]OFD Sender: No OFD packet to send [21:34:31]OFD Sender: No OFD packet to send [21:34:36]OFD Sender: No OFD packet to send [21:34:41]OFD Sender: No OFD packet to send [21:34:46]OFD Sender: No OFD packet to send [21:34:51]OFD Sender: No OFD packet to send [21:34:56]OFD Sender: No OFD packet to send [21:35:01]OFD Sender: No OFD packet to send [21:35:06]OFD Sender: No OFD packet to send [21:35:11]OFD Sender: No OFD packet to send [21:35:16]OFD Sender: No OFD packet to send [21:35:21]OFD Sender: No OFD packet to send [21:35:26]OFD Sender: No OFD packet to send [21:35:31]OFD Sender: No OFD packet to send [21:35:36]OFD Sender: No OFD packet to send [21:35:41]OFD Sender: No OFD packet to send [21:35:46]OFD Sender: No OFD packet to send [21:35:51]OFD Sender: No OFD packet to send [21:35:56]OFD Sender: No OFD packet to send [21:36:01]OFD Sender: No OFD packet to send [21:36:06]OFD Sender: No OFD packet to send [21:36:11]OFD Sender: No OFD packet to send [21:36:16]OFD Sender: No OFD packet to send [21:36:21]OFD Sender: No OFD packet to send [21:36:26]OFD Sender: No OFD packet to send [21:36:31]OFD Sender: No OFD packet to send [21:36:36]OFD Sender: No OFD packet to send [21:36:41]OFD Sender: No OFD packet to send [21:36:46]OFD Sender: No OFD packet to send [21:36:51]OFD Sender: No OFD packet to send [21:36:56]OFD Sender: No OFD packet to send [21:37:01]OFD Sender: No OFD packet to send [21:37:06]OFD Sender: No OFD packet to send [21:37:11]OFD Sender: No OFD packet to send [21:37:16]OFD Sender: No OFD packet to send [21:37:21]OFD Sender: No OFD packet to send [21:37:26]OFD Sender: No OFD packet to send [21:37:31]OFD Sender: No OFD packet to send [21:37:36]OFD Sender: No OFD packet to send [21:37:41]OFD Sender: No OFD packet to send [21:37:46]OFD Sender: No OFD packet to send [21:37:51]OFD Sender: No OFD packet to send [21:37:56]OFD Sender: No OFD packet to send [21:38:01]OFD Sender: No OFD packet to send [21:38:06]OFD Sender: No OFD packet to send [21:38:11]OFD Sender: No OFD packet to send [21:38:16]OFD Sender: No OFD packet to send [21:38:21]OFD Sender: No OFD packet to send [21:38:26]OFD Sender: No OFD packet to send [21:38:31]OFD Sender: No OFD packet to send [21:38: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:55]accept exits with 9 [21:38:55]New connection [21:38:55]New thread 3067182436 created [21:38:55]Thread 3067039076 joined [21:38:55]Waiting for new connection... [21:38:55] Sock 9.Parse request [21:38:55]Sock 9.Check first char [21:38:55]Sock 9.First char is OK [21:38:55]request: POST /json_proto HTTP/1.0 [21:38:55]Method: POST [21:38:55]URL: /json_proto [21:38:55]Method is POST - this is cgi request [21:38:55]url: /json_proto [21:38:55]query_string will be loaded in cgi processing [21:38:55]execute_cgi json_proto POST (null) [21:38:55]execute_cgi path=json_proto method=POST [21:38:55]POST find Content-Length [21:38:55]Host: 172.17.41.195:8080 [21:38:55]Content-Length: 800 [21:38:55]Content-Type: application/json [21:38:55] [21:38:55]POST finish read [21:38:55]Found Content-Length = 800 [21:38:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507649", "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" : 74.70, "quantity" : 53.550, "sum" : 4000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 4000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:38:55]execute_script... [21:38: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)507649", "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" : 74.70, "quantity" : 53.550, "sum" : 4000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 4000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:38:55]POST & json_proto [21:38:55]process_json_proto [21:38:55]json parsed OK: [21:38:55]protocol is kg_v1.0 [21:38:55]action value=close_receipt [21:38:55]process_action close_receipt [21:38:55]cmd_close_receipt [21:38:55]MH_GetDate [21:38:55]Write to MH i2c: F0 00 00 EC 26 01 [21:38:55]Write i2c OK [21:38:55]MH_I2C_Read... [21:38:55]Read from MH i2c: F0 [21:38:55]MH_I2C_Read... [21:38:55]Read from MH i2c: F0 09 00 [21:38:55]MH_I2C_Read... [21:38:55]Read from MH i2c: F0 09 00 EC 26 00 F2 7C 46 66 FC 21 6F 64 14 [21:38:55]GetLastDocTimeStamp 1715895070 [21:38:55]current date 1715895538 [21:38:55]FM_GetShiftState [21:38:55]SAM_PROTO_GetShiftState [21:38:55]wFMCommunicate request_size=4 [21:38:55]MH_SAM_APDU [21:38:55]CAPDU: 80 13 01 00 [21:38:55]Write to MH i2c: E2 08 00 ED 26 80 13 01 00 00 00 00 00 90 [21:38:55]Write i2c OK [21:38:55]MH_I2C_Read... [21:38:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:38:55]Read from MH i2c: E2 [21:38:55]MH_I2C_Read... [21:38:55]Read from MH i2c: E2 0E 00 [21:38:55]MH_I2C_Read... [21:38:55]Read from MH i2c: E2 0E 00 ED 26 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 3C [21:38:55]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [21:38:55]wFMCommunicate OK [21:38:55]SAM_PROTO_GetShiftState done [21:38:55]FM_GetShiftState done [21:38:55]opened in 1715818916 [21:38:55]opened+sec_in_day 1715905316 [21:38:55]quantity*price = 400018 [21:38:55]sum+1 = 400020 [21:38:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.19 НСП 1% : 35.40 НДС 12% : 424.80 Наличными: 0.00 Безнал.: 4000.19 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 168 16.05.2024 21:38 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67570 ФПД: 78449488819083 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T213858&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67570&fm=78449488819083&tin=02508201610067®Number=0000000000091845&sum=400019 [21:38:56]StoreToDocumentArchive [21:38:56]shift 357 fd 67570 [21:38:56]save to /storage/0357/doc_00067570 [21:38:56]save last doc name /storage/0357/doc_00067570 to /storage/kkm_last_doc_name [21:38:56]save OK [21:38:56]Clear old archive folders... [21:38:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:38:56]tlvbuf is 01794CD0 [21:38:56]SAM_PROTO_ClearQueue [21:38:56]wFMCommunicate request_size=4 [21:38:56]MH_SAM_APDU [21:38:56]CAPDU: 80 09 00 00 [21:38:56]Write to MH i2c: E2 08 00 FA 26 80 09 00 00 00 00 00 00 92 [21:38:56]Write i2c OK [21:38:56]MH_I2C_Read... [21:38:56]Read from MH i2c: E2 [21:38:56]MH_I2C_Read... [21:38:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:38:56]Read from MH i2c: E2 03 00 [21:38:56]MH_I2C_Read... [21:38:56]Read from MH i2c: E2 03 00 FA 26 00 90 00 94 [21:38:56]RAPDU: 90 00 [21:38:56]wFMCommunicate OK [21:38:56]SAM_PROTO_ClearQueue done [21:38:56]KKMCreateOFDPacket [21:38:56]OFDProtocolAddRootSTLVToBuf [21:38:56]FM_MakeSignedData [21:38:56]FM_MakeSignedData [21:38:56]SAM_PROTO_SignData [21:38:56]wFMCommunicate request_size=4 [21:38:56]MH_SAM_APDU [21:38:56]CAPDU: 80 0D 01 02 [21:38:56]Write to MH i2c: E2 08 00 FB 26 80 0D 01 02 00 00 00 00 9A [21:38:56]Write i2c OK [21:38:56]MH_I2C_Read... [21:38:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:38:56]Read from MH i2c: E2 [21:38:56]MH_I2C_Read... [21:38:56]Read from MH i2c: E2 03 00 [21:38:56]MH_I2C_Read... [21:38:56]Read from MH i2c: E2 03 00 FB 26 00 90 00 95 [21:38:56]RAPDU: 90 00 [21:38:56]wFMCommunicate OK [21:38:56]wFMCommunicate request_size=255 [21:38:56]MH_SAM_APDU [21:38:56]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2E D1 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 93 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 93 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 93 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 F2 7C 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F2 07 01 00 35 04 06 00 47 59 71 E9 [21:38:56]Write to MH i2c: E2 02 01 FC 26 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2E D1 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 93 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 93 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 93 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 F2 7C 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F2 07 01 00 35 04 06 00 47 59 71 E9 00 00 F1 [21:38:56]Write i2c OK [21:38:56]MH_I2C_Read... [21:38:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:38:56]Read from MH i2c: E2 [21:38:56]MH_I2C_Read... [21:38:56]Read from MH i2c: E2 03 00 [21:38:56]MH_I2C_Read... [21:38:56]Read from MH i2c: E2 03 00 FC 26 00 90 00 96 [21:38:56]RAPDU: 90 00 [21:38:56]wFMCommunicate OK [21:38:56]wFMCommunicate request_size=7 [21:38:56]MH_SAM_APDU [21:38:56]CAPDU: 80 0D 02 02 02 F3 8B [21:38:56]Write to MH i2c: E2 0A 00 FD 26 80 0D 02 02 02 00 F3 8B 00 00 1F [21:38:56]Write i2c OK [21:38:56]MH_I2C_Read... [21:38:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:38:57]Read from MH i2c: E2 [21:38:57]MH_I2C_Read... [21:38:57]Read from MH i2c: E2 03 00 [21:38:57]MH_I2C_Read... [21:38:57]Read from MH i2c: E2 03 00 FD 26 00 90 00 97 [21:38:57]RAPDU: 90 00 [21:38:57]wFMCommunicate OK [21:38:57]wFMCommunicate request_size=4 [21:38:57]MH_SAM_APDU [21:38:57]CAPDU: 80 0D 03 02 [21:38:57]Write to MH i2c: E2 08 00 FE 26 80 0D 03 02 00 00 00 00 9F [21:38:57]Write i2c OK [21:38:57]MH_I2C_Read... [21:38:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:38:57]Read from MH i2c: E2 [21:38:57]MH_I2C_Read... [21:38:57]Read from MH i2c: E2 0B 00 [21:38:57]MH_I2C_Read... [21:38:57]Read from MH i2c: E2 0B 00 FE 26 00 30 DB 76 82 4D A9 D2 66 90 00 D1 [21:38:57]RAPDU: 30 DB 76 82 4D A9 D2 66 90 00 [21:38:57]wFMCommunicate OK [21:38:57]SAM_PROTO_SignData done [21:38:57]FM_MakeSignedData done [21:38:57]CreateOFDProtocolMessage [21:38:57]wFMCommunicate request_size=4 [21:38:57]MH_SAM_APDU [21:38:57]CAPDU: 80 11 00 00 [21:38:57]Write to MH i2c: E2 08 00 FF 26 80 11 00 00 00 00 00 00 9F [21:38:57]Write i2c OK [21:38:57]MH_I2C_Read... [21:38:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:38:57]Read from MH i2c: E2 [21:38:57]MH_I2C_Read... [21:38:57]Read from MH i2c: E2 17 00 [21:38:57]MH_I2C_Read... [21:38:57]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 38 32 39 90 00 F5 [21:38:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:38:57]wFMCommunicate OK [21:38:57]CreateOFDProtocolMessage done [21:38:57]OFDSenderStorePacket 67570 [21:38:57]StoreOFDPacket docnum=67570 [21:38:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 3A 7C 04 01 C7 C1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2E D1 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 93 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 93 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 93 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 F2 7C 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F2 07 01 00 35 04 06 00 47 59 71 E9 F3 8B 30 DB 76 82 4D A9 D2 66 [21:38:57]CheckFolder [21:38:57]dirname=/storage/ofd_packets [21:38:57]CheckFolder done [21:38:57]ProducePacketName [21:38:57]name=ofd_packets/00067570 [21:38:57]NVStorageSaveData ofd_packets/00067570 [21:38:57]File name is /storage/ofd_packets/00067570 [21:38:57]Write 298 bytes [21:38:57]NVStorageSaveData done [21:38:57]OFDSenderStorePacket done [21:38:57]KKMCreateOFDPacket done [21:38:57]NVStorageSaveData kkm_last_timestamp [21:38:57]File name is /storage/kkm_last_timestamp [21:38:57]Write 4 bytes [21:38:57]NVStorageSaveData done [21:38:57]ExternCall_PrintAddStr [21:38:57]wPrintStart [21:38:57]Write to MH i2c: 01 00 00 00 27 27 [21:38:57]Write i2c OK [21:38:57]MH_I2C_Read... [21:38:57]Read from MH i2c: 01 [21:38:57]MH_I2C_Read... [21:38:57]Read from MH i2c: 01 07 00 [21:38:57]MH_I2C_Read... [21:38:57]Read from MH i2c: 01 07 00 00 27 00 00 00 00 00 FF 0F 3C [21:38:57]RasterBufferAndPrint [21:38:57]line Счет N : (1)507649 [21:38:57]line ИНН: 02508201610067 [21:38:57]line Контрольно-Кассовый Чек [21:38:57]line ПРОДАЖА [21:38:57]line ТРК (МРК, ГНК) : 31 [21:38:57]line Товар: 2710194210 [21:38:57]line ДТ-К-5 [21:38:57]line 53.550 * 74.70 [21:38:57]line = 4000.19 [21:38:57]line НДС 12% НСП 1% [21:38:57]line > о реализуемом товаре [21:38:57]line ИТОГО: 4000.19 [21:38:57]line НСП 1% : 35.40 [21:38:57]line НДС 12% : 424.80 [21:38:57]line Наличными: 0.00 [21:38:57]line Безнал.: 4000.19 [21:38:57]line Место: АЗС № 91 "Партнер Нефть" [21:38:57]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [21:38:57]line СНО: Общий режим [21:38:57]line Чек 168 16.05.2024 21:38 [21:38:57]line Смена: 357 ФФД: 1.0 [21:38:57]line ЗНМ: 0300000119 [21:38:57]line РНМ: 0000000000091845 [21:38:57]line Версия ККМ: 001 [21:38:57]line Платежная система: O! деньги [21:38:57]line ФМ: 0000000000871829 [21:38:57]line ФД: 67570 [21:38:57]line ФПД: 78449488819083 [21:38:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T213858&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67570&fm=78449488819083&tin=02508201610067®Number=0000000000091845&sum=400019 [21:38:57]OFD Sender: Processing packet 67570 [packets to send 35, broken 34] [21:38:57]ProducePacketName [21:38:57]name=ofd_packets/00067570 [21:38:57]OFD Sender: To server: pG, [21:38:57]CommunicateWithHost lk.salyk.kg:30040 [21:38:57]ConnectInit lk.salyk.kg [21:38:57]written 0, free lines is 4095 [21:38:57]Connected sock=8 [21:38: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 38 32 39 0C 01 00 00 3A 7C 04 01 C7 C1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2E D1 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 93 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 93 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 93 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 F2 7C 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F2 07 01 00 35 04 06 00 47 59 71 E9 F3 8B 30 DB 76 82 4D A9 D2 66 [21:38:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 11 B6 47 00 00 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 38 32 39 10 04 04 00 F2 07 01 00 F4 03 04 00 CB 24 46 66 B6 04 01 00 00 E6 A0 BC 06 73 2D B4 AE [21:38:57]CommunicateWithHost err = 0 [21:38:57]CheckOFDResponse [21:38:57]1017 (14) - 77093643461234 [21:38:57]1041 (16) - 0000000000871829 [21:38:57]1040 (4) - 67570 [21:38:57]1012 (4) - 16.05.2024 15:22 [21:38:57]1206 (1) - 0 [21:38:57]OFD Sender: Remove packet 67570 [21:38:57]ProducePacketName [21:38:57]name=ofd_packets/00067570 [21:38:57]NVStorageDeleteData [21:38:57]Write to MH i2c: 01 00 00 29 27 50 [21:38:57]Write i2c OK [21:38:57]MH_I2C_Read... [21:38:57]Read from MH i2c: 01 [21:38:57]MH_I2C_Read... [21:38:57]Read from MH i2c: 01 07 00 [21:38:57]MH_I2C_Read... [21:38:57]Read from MH i2c: 01 07 00 29 27 00 00 00 00 00 D5 0C 38 [21:38:57]RasterBufferAndPrint [21:38:57]line [21:38:57]line [21:38:57]line [21:38:57]line [21:38:57]line [21:38:57]written 0, free lines is 3293 [21:38:57]MH_Cut [21:38:57]Write to MH i2c: D1 01 00 30 27 01 29 [21:38:57]Write i2c OK [21:38:57]MH_I2C_Read... [21:38:57]Read from MH i2c: D1 [21:38:57]MH_I2C_Read... [21:38:57]Read from MH i2c: D1 01 00 [21:38:57]MH_I2C_Read... [21:38:57]Read from MH i2c: D1 01 00 30 27 00 28 [21:38:57]Write to MH i2c: 01 00 00 31 27 58 [21:38:57]Write i2c OK [21:38:57]MH_I2C_Read... [21:38:58]OFD Sender: No OFD packet to send [21:38:58]*** Cut start [21:38:58]*** Purtial cut [21:38:58]*** Stage 1: CUTSNS_PIN = 1 [21:38:58]Read from MH i2c: 01 [21:38:58]MH_I2C_Read... [21:38:58]*** Stop cut motor [21:38:58]*** Cut end [21:38:58]Read from MH i2c: 01 07 00 [21:38:58]MH_I2C_Read... [21:38:58]Read from MH i2c: 01 07 00 31 27 00 00 00 00 00 FF 0F 6D [21:38:58]process_action close_receipt done [21:38:58]requested_data is exist [21:38:58]produce_requested_data [21:38:58]requested_item fm.sn is exist - process it [21:38:58]wFMCommunicate request_size=4 [21:38:58]MH_SAM_APDU [21:38:58]CAPDU: 80 11 00 00 [21:38:58]Write to MH i2c: E2 08 00 32 27 80 11 00 00 00 00 00 00 D3 [21:38:58]Write i2c OK [21:38:58]MH_I2C_Read... [21:38:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:38:58]Read from MH i2c: E2 [21:38:58]MH_I2C_Read... [21:38:58]Read from MH i2c: E2 17 00 [21:38:58]MH_I2C_Read... [21:38:58]Read from MH i2c: E2 17 00 32 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 29 [21:38:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:38:58]wFMCommunicate OK [21:38:58]requested_item fd.num is exist - process it [21:38:58]SAM_PROTO_GetFieldsCounters [21:38:58]wFMCommunicate request_size=4 [21:38:58]MH_SAM_APDU [21:38:58]CAPDU: 80 13 00 00 [21:38:58]Write to MH i2c: E2 08 00 33 27 80 13 00 00 00 00 00 00 D6 [21:38:58]Write i2c OK [21:38:58]MH_I2C_Read... [21:38:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:38:58]Read from MH i2c: E2 [21:38:58]MH_I2C_Read... [21:38:58]Read from MH i2c: E2 62 00 [21:38:58]MH_I2C_Read... [21:38:58]Read from MH i2c: E2 62 00 33 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F2 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [21:38:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F2 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:38:58]wFMCommunicate OK [21:38:58]SAM_PROTO_GetFieldsCounters done [21:38:58]requested_item shift.num is exist - process it [21:38:58]requested_item shift.opened is exist - process it [21:38:58]req_shift_opened [21:38:58]FM_GetShiftState [21:38:58]SAM_PROTO_GetShiftState [21:38:58]wFMCommunicate request_size=4 [21:38:58]MH_SAM_APDU [21:38:58]CAPDU: 80 13 01 00 [21:38:58]Write to MH i2c: E2 08 00 34 27 80 13 01 00 00 00 00 00 D8 [21:38:58]Write i2c OK [21:38:58]MH_I2C_Read... [21:38:58]Read from MH i2c: E2 [21:38:58]MH_I2C_Read... [21:38:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:38:58]Read from MH i2c: E2 0E 00 [21:38:58]MH_I2C_Read... [21:38:58]Read from MH i2c: E2 0E 00 34 27 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 84 [21:38:58]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [21:38:58]wFMCommunicate OK [21:38:58]SAM_PROTO_GetShiftState done [21:38:58]FM_GetShiftState done [21:38:58]req_shift_opened done [21:38:58]requested_item shift.open_date is exist - process it [21:38:58]req_shift_open_date [21:38:58]req_shift_open_date done [21:38:58]produce_requested_data done [21:38:58]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67570,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [21:38:58]process_action_free close_receipt [21:38:58]json_value_free [21:38:58]json_value_free done [21:38:58]process_json_proto returns [21:38:58]Send response to host [21:38:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67570,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [21:38:58]free response buf [21:38:58]execute_script done [21:38:58]execute_script returns [21:38:58]free content buf [21:38:58]Sock 9.Close socket [21:38:58]Sock 9.Thread stoped [21:39:02]accept exits with 10 [21:39:02]New connection [21:39:02]New thread 3067039076 created [21:39:02]Thread 3067182436 joined [21:39:02]Waiting for new connection... [21:39:02] Sock 10.Parse request [21:39:02]Sock 10.Check first char [21:39:02]Sock 10.First char is OK [21:39:02]request: POST /json_proto HTTP/1.0 [21:39:02]Method: POST [21:39:02]URL: /json_proto [21:39:02]Method is POST - this is cgi request [21:39:02]url: /json_proto [21:39:02]query_string will be loaded in cgi processing [21:39:02]execute_cgi json_proto POST (null) [21:39:02]execute_cgi path=json_proto method=POST [21:39:02]POST find Content-Length [21:39:02]Host: 172.17.41.195:8080 [21:39:02]Content-Length: 679 [21:39:02]Content-Type: application/json [21:39:02] [21:39:02]POST finish read [21:39:02]Found Content-Length = 679 [21:39:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507650", "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" : 74.70, "quantity" : 26.780, "sum" : 2000.47, "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:39:02]execute_script... [21:39: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)507650", "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" : 74.70, "quantity" : 26.780, "sum" : 2000.47, "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:39:02]POST & json_proto [21:39:02]process_json_proto [21:39:02]json parsed OK: [21:39:02]protocol is kg_v1.0 [21:39:02]action value=close_receipt [21:39:02]process_action close_receipt [21:39:02]cmd_close_receipt [21:39:02]MH_GetDate [21:39:02]Write to MH i2c: F0 00 00 35 27 4B [21:39:02]Write i2c OK [21:39:02]MH_I2C_Read... [21:39:02]Read from MH i2c: F0 [21:39:02]MH_I2C_Read... [21:39:02]Read from MH i2c: F0 09 00 [21:39:02]MH_I2C_Read... [21:39:02]Read from MH i2c: F0 09 00 35 27 00 F9 7C 46 66 FC 21 6F 64 65 [21:39:02]GetLastDocTimeStamp 1715895538 [21:39:02]current date 1715895545 [21:39:02]FM_GetShiftState [21:39:02]SAM_PROTO_GetShiftState [21:39:02]wFMCommunicate request_size=4 [21:39:02]MH_SAM_APDU [21:39:02]CAPDU: 80 13 01 00 [21:39:02]Write to MH i2c: E2 08 00 36 27 80 13 01 00 00 00 00 00 DA [21:39:02]Write i2c OK [21:39:02]MH_I2C_Read... [21:39:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:39:02]Read from MH i2c: E2 [21:39:02]MH_I2C_Read... [21:39:02]Read from MH i2c: E2 0E 00 [21:39:02]MH_I2C_Read... [21:39:02]Read from MH i2c: E2 0E 00 36 27 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 86 [21:39:02]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [21:39:02]wFMCommunicate OK [21:39:02]SAM_PROTO_GetShiftState done [21:39:02]FM_GetShiftState done [21:39:02]opened in 1715818916 [21:39:02]opened+sec_in_day 1715905316 [21:39:02]quantity*price = 200046 [21:39:02]sum+1 = 200048 [21:39:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 169 16.05.2024 21:39 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67571 ФПД: 141831881747069 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T213905&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67571&fm=141831881747069&tin=02508201610067®Number=0000000000091845&sum=200000 [21:39:03]StoreToDocumentArchive [21:39:03]shift 357 fd 67571 [21:39:03]save to /storage/0357/doc_00067571 [21:39:03]save last doc name /storage/0357/doc_00067571 to /storage/kkm_last_doc_name [21:39:03]save OK [21:39:03]Clear old archive folders... [21:39:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:39:03]tlvbuf is 0177E040 [21:39:03]SAM_PROTO_ClearQueue [21:39:03]wFMCommunicate request_size=4 [21:39:03]MH_SAM_APDU [21:39:03]CAPDU: 80 09 00 00 [21:39:03]Write to MH i2c: E2 08 00 43 27 80 09 00 00 00 00 00 00 DC [21:39:03]Write i2c OK [21:39:03]MH_I2C_Read... [21:39:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:39:03]Read from MH i2c: E2 [21:39:03]MH_I2C_Read... [21:39:03]Read from MH i2c: E2 03 00 [21:39:03]MH_I2C_Read... [21:39:03]Read from MH i2c: E2 03 00 43 27 00 90 00 DE [21:39:03]RAPDU: 90 00 [21:39:03]wFMCommunicate OK [21:39:03]SAM_PROTO_ClearQueue done [21:39:03]KKMCreateOFDPacket [21:39:03]OFDProtocolAddRootSTLVToBuf [21:39:03]FM_MakeSignedData [21:39:03]FM_MakeSignedData [21:39:03]SAM_PROTO_SignData [21:39:03]wFMCommunicate request_size=4 [21:39:03]MH_SAM_APDU [21:39:03]CAPDU: 80 0D 01 02 [21:39:03]Write to MH i2c: E2 08 00 44 27 80 0D 01 02 00 00 00 00 E4 [21:39:03]Write i2c OK [21:39:03]MH_I2C_Read... [21:39:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:39:03]Read from MH i2c: E2 [21:39:03]MH_I2C_Read... [21:39:03]Read from MH i2c: E2 03 00 [21:39:03]MH_I2C_Read... [21:39:03]Read from MH i2c: E2 03 00 44 27 00 90 00 DF [21:39:03]RAPDU: 90 00 [21:39:03]wFMCommunicate OK [21:39:03]wFMCommunicate request_size=255 [21:39:03]MH_SAM_APDU [21:39: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 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 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 FC 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 A9 00 00 00 F4 03 04 00 F9 7C 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F3 07 01 00 35 04 06 00 80 FE CE ED [21:39:03]Write to MH i2c: E2 02 01 45 27 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 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 FC 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 A9 00 00 00 F4 03 04 00 F9 7C 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F3 07 01 00 35 04 06 00 80 FE CE ED 00 00 56 [21:39:03]Write i2c OK [21:39:03]MH_I2C_Read... [21:39:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:39:04]Read from MH i2c: E2 [21:39:04]MH_I2C_Read... [21:39:04]Read from MH i2c: E2 03 00 [21:39:04]MH_I2C_Read... [21:39:04]Read from MH i2c: E2 03 00 45 27 00 90 00 E0 [21:39:04]RAPDU: 90 00 [21:39:04]wFMCommunicate OK [21:39:04]wFMCommunicate request_size=7 [21:39:04]MH_SAM_APDU [21:39:04]CAPDU: 80 0D 02 02 02 EA 7D [21:39:04]Write to MH i2c: E2 0A 00 46 27 80 0D 02 02 02 00 EA 7D 00 00 52 [21:39:04]Write i2c OK [21:39:04]MH_I2C_Read... [21:39:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:39:04]Read from MH i2c: E2 [21:39:04]MH_I2C_Read... [21:39:04]Read from MH i2c: E2 03 00 [21:39:04]MH_I2C_Read... [21:39:04]Read from MH i2c: E2 03 00 46 27 00 90 00 E1 [21:39:04]RAPDU: 90 00 [21:39:04]wFMCommunicate OK [21:39:04]wFMCommunicate request_size=4 [21:39:04]MH_SAM_APDU [21:39:04]CAPDU: 80 0D 03 02 [21:39:04]Write to MH i2c: E2 08 00 47 27 80 0D 03 02 00 00 00 00 E9 [21:39:04]Write i2c OK [21:39:04]MH_I2C_Read... [21:39:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:39:04]Read from MH i2c: E2 [21:39:04]MH_I2C_Read... [21:39:04]Read from MH i2c: E2 0B 00 [21:39:04]MH_I2C_Read... [21:39:04]Read from MH i2c: E2 0B 00 47 27 00 B5 29 93 6D 72 AF 92 24 90 00 9F [21:39:04]RAPDU: B5 29 93 6D 72 AF 92 24 90 00 [21:39:04]wFMCommunicate OK [21:39:04]SAM_PROTO_SignData done [21:39:04]FM_MakeSignedData done [21:39:04]CreateOFDProtocolMessage [21:39:04]wFMCommunicate request_size=4 [21:39:04]MH_SAM_APDU [21:39:04]CAPDU: 80 11 00 00 [21:39:04]Write to MH i2c: E2 08 00 48 27 80 11 00 00 00 00 00 00 E9 [21:39:04]Write i2c OK [21:39:04]MH_I2C_Read... [21:39:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:04]Read from MH i2c: E2 [21:39:04]MH_I2C_Read... [21:39:04]Read from MH i2c: E2 17 00 [21:39:04]MH_I2C_Read... [21:39:04]Read from MH i2c: E2 17 00 48 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3F [21:39:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:39:04]wFMCommunicate OK [21:39:04]CreateOFDProtocolMessage done [21:39:04]OFDSenderStorePacket 67571 [21:39:04]StoreOFDPacket docnum=67571 [21:39:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 AB 82 04 01 77 9B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 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 FC 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 A9 00 00 00 F4 03 04 00 F9 7C 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F3 07 01 00 35 04 06 00 80 FE CE ED EA 7D B5 29 93 6D 72 AF 92 24 [21:39:04]CheckFolder [21:39:04]dirname=/storage/ofd_packets [21:39:04]CheckFolder done [21:39:04]ProducePacketName [21:39:04]name=ofd_packets/00067571 [21:39:04]NVStorageSaveData ofd_packets/00067571 [21:39:04]File name is /storage/ofd_packets/00067571 [21:39:04]Write 298 bytes [21:39:04]NVStorageSaveData done [21:39:04]OFDSenderStorePacket done [21:39:04]KKMCreateOFDPacket done [21:39:04]NVStorageSaveData kkm_last_timestamp [21:39:04]File name is /storage/kkm_last_timestamp [21:39:04]Write 4 bytes [21:39:04]NVStorageSaveData done [21:39:04]ExternCall_PrintAddStr [21:39:04]wPrintStart [21:39:04]Write to MH i2c: 01 00 00 49 27 70 [21:39:04]Write i2c OK [21:39:04]MH_I2C_Read... [21:39:04]Read from MH i2c: 01 [21:39:04]MH_I2C_Read... [21:39:04]Read from MH i2c: 01 07 00 [21:39:04]MH_I2C_Read... [21:39:04]Read from MH i2c: 01 07 00 49 27 00 00 00 00 00 FF 0F 85 [21:39:04]RasterBufferAndPrint [21:39:04]line Счет N : (1)507650 [21:39:04]line ИНН: 02508201610067 [21:39:04]line Контрольно-Кассовый Чек [21:39:04]line ПРОДАЖА [21:39:04]line ТРК (МРК, ГНК) : 41 [21:39:04]line Товар: 2710194210 [21:39:04]line ДТ-К-5 [21:39:04]line 26.780 * 74.70 [21:39:04]line = 2000.47 [21:39:04]line НДС 12% НСП 1% [21:39:04]line > о реализуемом товаре [21:39:04]line ОКРУГЛЕНИЕ: -0.47 [21:39:04]line ИТОГО: 2000.00 [21:39:04]line Внесено: 2000.00 [21:39:04]line СДАЧА: 0.00 [21:39:04]line НСП 1% : 17.70 [21:39:04]line НДС 12% : 212.44 [21:39:04]line Наличными: 2000.00 [21:39:04]line Безнал.: 0.00 [21:39:04]line Место: АЗС № 91 "Партнер Нефть" [21:39:04]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [21:39:04]line СНО: Общий режим [21:39:04]line Чек 169 16.05.2024 21:39 [21:39:04]line Смена: 357 ФФД: 1.0 [21:39:04]line ЗНМ: 0300000119 [21:39:04]line РНМ: 0000000000091845 [21:39:04]line Версия ККМ: 001 [21:39:04]line ФМ: 0000000000871829 [21:39:04]line ФД: 67571 [21:39:04]line ФПД: 141831881747069 [21:39:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T213905&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67571&fm=141831881747069&tin=02508201610067®Number=0000000000091845&sum=200000 [21:39:04]written 0, free lines is 4095 [21:39:04]OFD Sender: Processing packet 67571 [packets to send 35, broken 34] [21:39:04]ProducePacketName [21:39:04]name=ofd_packets/00067571 [21:39:04]OFD Sender: To server: pG, [21:39:04]CommunicateWithHost lk.salyk.kg:30040 [21:39:04]ConnectInit lk.salyk.kg [21:39:04]Connected sock=9 [21:39: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 38 32 39 0C 01 00 00 AB 82 04 01 77 9B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 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 FC 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 A9 00 00 00 F4 03 04 00 F9 7C 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F3 07 01 00 35 04 06 00 80 FE CE ED EA 7D B5 29 93 6D 72 AF 92 24 [21:39:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 88 92 47 00 C1 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 38 32 39 10 04 04 00 F3 07 01 00 F4 03 04 00 D2 24 46 66 B6 04 01 00 00 97 16 32 E5 A8 43 91 9D [21:39:04]CommunicateWithHost err = 0 [21:39:04]CheckOFDResponse [21:39:04]1017 (14) - 77093643461234 [21:39:04]1041 (16) - 0000000000871829 [21:39:04]1040 (4) - 67571 [21:39:04]1012 (4) - 16.05.2024 15:22 [21:39:04]1206 (1) - 0 [21:39:04]OFD Sender: Remove packet 67571 [21:39:04]ProducePacketName [21:39:04]name=ofd_packets/00067571 [21:39:04]NVStorageDeleteData [21:39:04]Write to MH i2c: 01 00 00 73 27 9A [21:39:04]Write i2c OK [21:39:04]MH_I2C_Read... [21:39:04]Read from MH i2c: 01 [21:39:04]MH_I2C_Read... [21:39:04]Read from MH i2c: 01 07 00 [21:39:04]MH_I2C_Read... [21:39:04]Read from MH i2c: 01 07 00 73 27 00 00 00 00 00 E0 0C 8D [21:39:04]RasterBufferAndPrint [21:39:04]line [21:39:04]line [21:39:04]line [21:39:04]line [21:39:04]line [21:39:04]written 0, free lines is 3309 [21:39:04]MH_Cut [21:39:04]Write to MH i2c: D1 01 00 7A 27 01 73 [21:39:04]Write i2c OK [21:39:04]MH_I2C_Read... [21:39:04]Read from MH i2c: D1 [21:39:04]MH_I2C_Read... [21:39:04]Read from MH i2c: D1 01 00 [21:39:04]MH_I2C_Read... [21:39:04]Read from MH i2c: D1 01 00 7A 27 00 72 [21:39:04]Write to MH i2c: 01 00 00 7B 27 A2 [21:39:04]Write i2c OK [21:39:04]MH_I2C_Read... [21:39:05]OFD Sender: No OFD packet to send [21:39:05]*** Cut start [21:39:05]*** Purtial cut [21:39:05]*** CUTSNS_PIN = 0 [21:39:05]*** Stage 1: CUTSNS_PIN = 1 [21:39:07]Read from MH i2c: 01 [21:39:07]MH_I2C_Read... [21:39:07]*** Stop cut motor [21:39:07]*** Cut end [21:39:07]Read from MH i2c: 01 07 00 [21:39:07]MH_I2C_Read... [21:39:07]Read from MH i2c: 01 07 00 7B 27 00 00 00 00 00 FF 0F B7 [21:39:07]process_action close_receipt done [21:39:07]requested_data is exist [21:39:07]produce_requested_data [21:39:07]requested_item fm.sn is exist - process it [21:39:07]wFMCommunicate request_size=4 [21:39:07]MH_SAM_APDU [21:39:07]CAPDU: 80 11 00 00 [21:39:07]Write to MH i2c: E2 08 00 7C 27 80 11 00 00 00 00 00 00 1D [21:39:07]Write i2c OK [21:39:07]MH_I2C_Read... [21:39:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:07]Read from MH i2c: E2 [21:39:07]MH_I2C_Read... [21:39:07]Read from MH i2c: E2 17 00 [21:39:07]MH_I2C_Read... [21:39:07]Read from MH i2c: E2 17 00 7C 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 73 [21:39:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:39:07]wFMCommunicate OK [21:39:07]requested_item fd.num is exist - process it [21:39:07]SAM_PROTO_GetFieldsCounters [21:39:07]wFMCommunicate request_size=4 [21:39:07]MH_SAM_APDU [21:39:07]CAPDU: 80 13 00 00 [21:39:07]Write to MH i2c: E2 08 00 7D 27 80 13 00 00 00 00 00 00 20 [21:39:07]Write i2c OK [21:39:07]MH_I2C_Read... [21:39:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:39:07]Read from MH i2c: E2 [21:39:07]MH_I2C_Read... [21:39:07]Read from MH i2c: E2 62 00 [21:39:07]MH_I2C_Read... [21:39:07]Read from MH i2c: E2 62 00 7D 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F3 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [21:39: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F3 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:39:07]wFMCommunicate OK [21:39:07]SAM_PROTO_GetFieldsCounters done [21:39:07]requested_item shift.num is exist - process it [21:39:07]requested_item shift.opened is exist - process it [21:39:07]req_shift_opened [21:39:07]FM_GetShiftState [21:39:07]SAM_PROTO_GetShiftState [21:39:07]wFMCommunicate request_size=4 [21:39:07]MH_SAM_APDU [21:39:07]CAPDU: 80 13 01 00 [21:39:07]Write to MH i2c: E2 08 00 7E 27 80 13 01 00 00 00 00 00 22 [21:39:07]Write i2c OK [21:39:07]MH_I2C_Read... [21:39:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:39:07]Read from MH i2c: E2 [21:39:07]MH_I2C_Read... [21:39:07]Read from MH i2c: E2 0E 00 [21:39:07]MH_I2C_Read... [21:39:07]Read from MH i2c: E2 0E 00 7E 27 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 CE [21:39:07]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [21:39:07]wFMCommunicate OK [21:39:07]SAM_PROTO_GetShiftState done [21:39:07]FM_GetShiftState done [21:39:07]req_shift_opened done [21:39:07]requested_item shift.open_date is exist - process it [21:39:07]req_shift_open_date [21:39:07]req_shift_open_date done [21:39:07]produce_requested_data done [21:39:07]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67571,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [21:39:07]process_action_free close_receipt [21:39:07]json_value_free [21:39:07]json_value_free done [21:39:07]process_json_proto returns [21:39:07]Send response to host [21:39:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67571,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [21:39:07]free response buf [21:39:07]execute_script done [21:39:07]execute_script returns [21:39:07]free content buf [21:39:07]Sock 10.Close socket [21:39:07]Sock 10.Thread stoped [21:39:10]OFD Sender: No OFD packet to send [21:39:15]OFD Sender: No OFD packet to send [21:39:20]OFD Sender: No OFD packet to send [21:39:25]OFD Sender: No OFD packet to send [21:39:30]OFD Sender: No OFD packet to send [21:39:35]OFD Sender: No OFD packet to send [21:39:40]OFD Sender: No OFD packet to send [21:39:45]OFD Sender: No OFD packet to send [21:39:50]OFD Sender: No OFD packet to send [21:39:55]OFD Sender: No OFD packet to send [21:40:00]OFD Sender: No OFD packet to send [21:40:05]OFD Sender: No OFD packet to send [21:40:10]OFD Sender: No OFD packet to send [21:40:15]OFD Sender: No OFD packet to send [21:40:20]OFD Sender: No OFD packet to send [21:40:25]OFD Sender: No OFD packet to send [21:40:30]OFD Sender: No OFD packet to send [21:40:35]OFD Sender: No OFD packet to send [21:40:40]OFD Sender: No OFD packet to send [21:40:45]OFD Sender: No OFD packet to send [21:40:50]OFD Sender: No OFD packet to send [21:40:55]OFD Sender: No OFD packet to send [21:41:00]OFD Sender: No OFD packet to send [21:41:05]OFD Sender: No OFD packet to send [21:41:10]OFD Sender: No OFD packet to send [21:41:15]OFD Sender: No OFD packet to send [21:41:20]OFD Sender: No OFD packet to send [21:41:25]OFD Sender: No OFD packet to send [21:41:30]OFD Sender: No OFD packet to send [21:41:35]OFD Sender: No OFD packet to send [21:41:40]OFD Sender: No OFD packet to send [21:41:45]OFD Sender: No OFD packet to send [21:41:50]OFD Sender: No OFD packet to send [21:41:55]OFD Sender: No OFD packet to send [21:42:00]OFD Sender: No OFD packet to send [21:42:05]OFD Sender: No OFD packet to send [21:42:10]OFD Sender: No OFD packet to send [21:42:11]accept exits with 8 [21:42:11]New connection [21:42:11]New thread 3067182436 created [21:42:11]Thread 3067039076 joined [21:42:11]Waiting for new connection... [21:42:11] Sock 8.Parse request [21:42:11]Sock 8.Check first char [21:42:11]Sock 8.First char is OK [21:42:11]request: POST /json_proto HTTP/1.0 [21:42:11]Method: POST [21:42:11]URL: /json_proto [21:42:11]Method is POST - this is cgi request [21:42:11]url: /json_proto [21:42:11]query_string will be loaded in cgi processing [21:42:11]execute_cgi json_proto POST (null) [21:42:11]execute_cgi path=json_proto method=POST [21:42:11]POST find Content-Length [21:42:11]Host: 172.17.41.195:8080 [21:42:11]Content-Length: 679 [21:42:11]Content-Type: application/json [21:42:11] [21:42:11]POST finish read [21:42:11]Found Content-Length = 679 [21:42:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507651", "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" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:42:11]execute_script... [21:42: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)507651", "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" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:42:11]POST & json_proto [21:42:11]process_json_proto [21:42:11]json parsed OK: [21:42:11]protocol is kg_v1.0 [21:42:11]action value=close_receipt [21:42:11]process_action close_receipt [21:42:11]cmd_close_receipt [21:42:11]MH_GetDate [21:42:11]Write to MH i2c: F0 00 00 7F 27 95 [21:42:11]Write i2c OK [21:42:11]MH_I2C_Read... [21:42:11]Read from MH i2c: F0 [21:42:11]MH_I2C_Read... [21:42:11]Read from MH i2c: F0 09 00 [21:42:11]MH_I2C_Read... [21:42:11]Read from MH i2c: F0 09 00 7F 27 00 B6 7D 46 66 FC 21 6F 64 6D [21:42:11]GetLastDocTimeStamp 1715895545 [21:42:11]current date 1715895734 [21:42:11]FM_GetShiftState [21:42:11]SAM_PROTO_GetShiftState [21:42:11]wFMCommunicate request_size=4 [21:42:11]MH_SAM_APDU [21:42:11]CAPDU: 80 13 01 00 [21:42:11]Write to MH i2c: E2 08 00 80 27 80 13 01 00 00 00 00 00 24 [21:42:11]Write i2c OK [21:42:11]MH_I2C_Read... [21:42:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:42:12]Read from MH i2c: E2 [21:42:12]MH_I2C_Read... [21:42:12]Read from MH i2c: E2 0E 00 [21:42:12]MH_I2C_Read... [21:42:12]Read from MH i2c: E2 0E 00 80 27 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 D0 [21:42:12]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [21:42:12]wFMCommunicate OK [21:42:12]SAM_PROTO_GetShiftState done [21:42:12]FM_GetShiftState done [21:42:12]opened in 1715818916 [21:42:12]opened+sec_in_day 1715905316 [21:42:12]quantity*price = 100023 [21:42:12]sum+1 = 100024 [21:42:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 170 16.05.2024 21:42 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67572 ФПД: 91835639493074 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T214214&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67572&fm=91835639493074&tin=02508201610067®Number=0000000000091845&sum=100000 [21:42:13]StoreToDocumentArchive [21:42:13]shift 357 fd 67572 [21:42:13]save to /storage/0357/doc_00067572 [21:42:13]save last doc name /storage/0357/doc_00067572 to /storage/kkm_last_doc_name [21:42:13]save OK [21:42:13]Clear old archive folders... [21:42:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:42:13]tlvbuf is 017E8B80 [21:42:13]SAM_PROTO_ClearQueue [21:42:13]wFMCommunicate request_size=4 [21:42:13]MH_SAM_APDU [21:42:13]CAPDU: 80 09 00 00 [21:42:13]Write to MH i2c: E2 08 00 8D 27 80 09 00 00 00 00 00 00 26 [21:42:13]Write i2c OK [21:42:13]MH_I2C_Read... [21:42:13]Read from MH i2c: E2 [21:42:13]MH_I2C_Read... [21:42:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:42:13]Read from MH i2c: E2 03 00 [21:42:13]MH_I2C_Read... [21:42:13]Read from MH i2c: E2 03 00 8D 27 00 90 00 28 [21:42:13]RAPDU: 90 00 [21:42:13]wFMCommunicate OK [21:42:13]SAM_PROTO_ClearQueue done [21:42:13]KKMCreateOFDPacket [21:42:13]OFDProtocolAddRootSTLVToBuf [21:42:13]FM_MakeSignedData [21:42:13]FM_MakeSignedData [21:42:13]SAM_PROTO_SignData [21:42:13]wFMCommunicate request_size=4 [21:42:13]MH_SAM_APDU [21:42:13]CAPDU: 80 0D 01 02 [21:42:13]Write to MH i2c: E2 08 00 8E 27 80 0D 01 02 00 00 00 00 2E [21:42:13]Write i2c OK [21:42:13]MH_I2C_Read... [21:42:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:42:13]Read from MH i2c: E2 [21:42:13]MH_I2C_Read... [21:42:13]Read from MH i2c: E2 03 00 [21:42:13]MH_I2C_Read... [21:42:13]Read from MH i2c: E2 03 00 8E 27 00 90 00 29 [21:42:13]RAPDU: 90 00 [21:42:13]wFMCommunicate OK [21:42:13]wFMCommunicate request_size=255 [21:42:13]MH_SAM_APDU [21:42: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 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 AA 00 00 00 F4 03 04 00 B6 7D 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F4 07 01 00 35 04 06 00 53 86 26 AB [21:42:13]Write to MH i2c: E2 02 01 8F 27 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 AA 00 00 00 F4 03 04 00 B6 7D 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F4 07 01 00 35 04 06 00 53 86 26 AB 00 00 9D [21:42:13]Write i2c OK [21:42:13]MH_I2C_Read... [21:42:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:42:13]Read from MH i2c: E2 [21:42:13]MH_I2C_Read... [21:42:13]Read from MH i2c: E2 03 00 [21:42:13]MH_I2C_Read... [21:42:13]Read from MH i2c: E2 03 00 8F 27 00 90 00 2A [21:42:13]RAPDU: 90 00 [21:42:13]wFMCommunicate OK [21:42:13]wFMCommunicate request_size=7 [21:42:13]MH_SAM_APDU [21:42:13]CAPDU: 80 0D 02 02 02 71 D2 [21:42:13]Write to MH i2c: E2 0A 00 90 27 80 0D 02 02 02 00 71 D2 00 00 78 [21:42:13]Write i2c OK [21:42:13]MH_I2C_Read... [21:42:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:42:13]Read from MH i2c: E2 [21:42:13]MH_I2C_Read... [21:42:13]Read from MH i2c: E2 03 00 [21:42:13]MH_I2C_Read... [21:42:13]Read from MH i2c: E2 03 00 90 27 00 90 00 2B [21:42:13]RAPDU: 90 00 [21:42:13]wFMCommunicate OK [21:42:13]wFMCommunicate request_size=4 [21:42:13]MH_SAM_APDU [21:42:13]CAPDU: 80 0D 03 02 [21:42:13]Write to MH i2c: E2 08 00 91 27 80 0D 03 02 00 00 00 00 33 [21:42:13]Write i2c OK [21:42:13]MH_I2C_Read... [21:42:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:42:13]Read from MH i2c: E2 [21:42:13]MH_I2C_Read... [21:42:13]Read from MH i2c: E2 0B 00 [21:42:13]MH_I2C_Read... [21:42:13]Read from MH i2c: E2 0B 00 91 27 00 2E 00 9F 96 DC A5 60 27 90 00 9F [21:42:13]RAPDU: 2E 00 9F 96 DC A5 60 27 90 00 [21:42:13]wFMCommunicate OK [21:42:13]SAM_PROTO_SignData done [21:42:13]FM_MakeSignedData done [21:42:13]CreateOFDProtocolMessage [21:42:13]wFMCommunicate request_size=4 [21:42:13]MH_SAM_APDU [21:42:13]CAPDU: 80 11 00 00 [21:42:13]Write to MH i2c: E2 08 00 92 27 80 11 00 00 00 00 00 00 33 [21:42:13]Write i2c OK [21:42:13]MH_I2C_Read... [21:42:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:42:13]Read from MH i2c: E2 [21:42:13]MH_I2C_Read... [21:42:13]Read from MH i2c: E2 17 00 [21:42:13]MH_I2C_Read... [21:42:13]Read from MH i2c: E2 17 00 92 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 89 [21:42:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:42:13]wFMCommunicate OK [21:42:13]CreateOFDProtocolMessage done [21:42:13]OFDSenderStorePacket 67572 [21:42:13]StoreOFDPacket docnum=67572 [21:42:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 EC 96 04 01 99 B5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 AA 00 00 00 F4 03 04 00 B6 7D 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F4 07 01 00 35 04 06 00 53 86 26 AB 71 D2 2E 00 9F 96 DC A5 60 27 [21:42:13]CheckFolder [21:42:13]dirname=/storage/ofd_packets [21:42:13]CheckFolder done [21:42:13]ProducePacketName [21:42:13]name=ofd_packets/00067572 [21:42:13]NVStorageSaveData ofd_packets/00067572 [21:42:13]File name is /storage/ofd_packets/00067572 [21:42:13]Write 298 bytes [21:42:13]NVStorageSaveData done [21:42:13]OFDSenderStorePacket done [21:42:13]KKMCreateOFDPacket done [21:42:13]NVStorageSaveData kkm_last_timestamp [21:42:13]File name is /storage/kkm_last_timestamp [21:42:13]Write 4 bytes [21:42:13]NVStorageSaveData done [21:42:13]ExternCall_PrintAddStr [21:42:13]wPrintStart [21:42:13]Write to MH i2c: 01 00 00 93 27 BA [21:42:13]Write i2c OK [21:42:13]MH_I2C_Read... [21:42:13]Read from MH i2c: 01 [21:42:13]MH_I2C_Read... [21:42:13]Read from MH i2c: 01 07 00 [21:42:13]MH_I2C_Read... [21:42:13]Read from MH i2c: 01 07 00 93 27 00 00 00 00 00 FF 0F CF [21:42:13]RasterBufferAndPrint [21:42:13]line Счет N : (1)507651 [21:42:13]line ИНН: 02508201610067 [21:42:13]line Контрольно-Кассовый Чек [21:42:13]line ПРОДАЖА [21:42:13]line ТРК (МРК, ГНК) : 41 [21:42:13]line Товар: 2710194210 [21:42:13]line ДТ-К-5 [21:42:13]line 13.390 * 74.70 [21:42:13]line = 1000.23 [21:42:13]line НДС 12% НСП 1% [21:42:13]line > о реализуемом товаре [21:42:13]line ОКРУГЛЕНИЕ: -0.23 [21:42:13]line ИТОГО: 1000.00 [21:42:13]line Внесено: 1000.00 [21:42:13]line СДАЧА: 0.00 [21:42:13]line НСП 1% : 8.85 [21:42:13]line НДС 12% : 106.22 [21:42:13]line Наличными: 1000.00 [21:42:13]line Безнал.: 0.00 [21:42:13]line Место: АЗС № 91 "Партнер Нефть" [21:42:13]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [21:42:13]line СНО: Общий режим [21:42:13]line Чек 170 16.05.2024 21:42 [21:42:13]line Смена: 357 ФФД: 1.0 [21:42:13]line ЗНМ: 0300000119 [21:42:13]line РНМ: 0000000000091845 [21:42:13]line Версия ККМ: 001 [21:42:13]line ФМ: 0000000000871829 [21:42:13]line ФД: 67572 [21:42:13]line ФПД: 91835639493074 [21:42:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T214214&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67572&fm=91835639493074&tin=02508201610067®Number=0000000000091845&sum=100000 [21:42:13]OFD Sender: Processing packet 67572 [packets to send 35, broken 34] [21:42:13]ProducePacketName [21:42:13]name=ofd_packets/00067572 [21:42:13]OFD Sender: To server: pG, [21:42:13]CommunicateWithHost lk.salyk.kg:30040 [21:42:13]ConnectInit lk.salyk.kg [21:42:13]written 0, free lines is 4095 [21:42:14]Connected sock=10 [21:42: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 38 32 39 0C 01 00 00 EC 96 04 01 99 B5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 AA 00 00 00 F4 03 04 00 B6 7D 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F4 07 01 00 35 04 06 00 53 86 26 AB 71 D2 2E 00 9F 96 DC A5 60 27 [21:42:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 80 7D 47 00 EB 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 38 32 39 10 04 04 00 F4 07 01 00 F4 03 04 00 90 25 46 66 B6 04 01 00 00 FB E1 6F 2D 61 9A A0 9D [21:42:14]CommunicateWithHost err = 0 [21:42:14]CheckOFDResponse [21:42:14]1017 (14) - 77093643461234 [21:42:14]1041 (16) - 0000000000871829 [21:42:14]1040 (4) - 67572 [21:42:14]1012 (4) - 16.05.2024 15:26 [21:42:14]1206 (1) - 0 [21:42:14]OFD Sender: Remove packet 67572 [21:42:14]ProducePacketName [21:42:14]name=ofd_packets/00067572 [21:42:14]NVStorageDeleteData [21:42:14]Write to MH i2c: 01 00 00 BD 27 E4 [21:42:14]Write i2c OK [21:42:14]MH_I2C_Read... [21:42:14]Read from MH i2c: 01 [21:42:14]MH_I2C_Read... [21:42:14]Read from MH i2c: 01 07 00 [21:42:14]MH_I2C_Read... [21:42:14]Read from MH i2c: 01 07 00 BD 27 00 00 00 00 00 C3 0C BA [21:42:14]RasterBufferAndPrint [21:42:14]line [21:42:14]line [21:42:14]line [21:42:14]line [21:42:14]line [21:42:14]written 0, free lines is 3272 [21:42:14]MH_Cut [21:42:14]Write to MH i2c: D1 01 00 C4 27 01 BD [21:42:14]Write i2c OK [21:42:14]MH_I2C_Read... [21:42:14]Read from MH i2c: D1 [21:42:14]MH_I2C_Read... [21:42:14]Read from MH i2c: D1 01 00 [21:42:14]MH_I2C_Read... [21:42:14]Read from MH i2c: D1 01 00 C4 27 00 BC [21:42:14]Write to MH i2c: 01 00 00 C5 27 EC [21:42:14]Write i2c OK [21:42:14]MH_I2C_Read... [21:42:14]OFD Sender: No OFD packet to send [21:42:15]*** Cut start [21:42:15]*** Purtial cut [21:42:15]*** Stage 1: CUTSNS_PIN = 1 [21:42:15]Read from MH i2c: 01 [21:42:15]MH_I2C_Read... [21:42:15]*** Stop cut motor [21:42:15]*** Cut end [21:42:15]Read from MH i2c: 01 07 00 [21:42:15]MH_I2C_Read... [21:42:15]Read from MH i2c: 01 07 00 C5 27 00 00 00 00 00 FF 0F 01 [21:42:15]process_action close_receipt done [21:42:15]requested_data is exist [21:42:15]produce_requested_data [21:42:15]requested_item fm.sn is exist - process it [21:42:15]wFMCommunicate request_size=4 [21:42:15]MH_SAM_APDU [21:42:15]CAPDU: 80 11 00 00 [21:42:15]Write to MH i2c: E2 08 00 C6 27 80 11 00 00 00 00 00 00 67 [21:42:15]Write i2c OK [21:42:15]MH_I2C_Read... [21:42:15]Read from MH i2c: E2 [21:42:15]MH_I2C_Read... [21:42:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:42:15]Read from MH i2c: E2 17 00 [21:42:15]MH_I2C_Read... [21:42:15]Read from MH i2c: E2 17 00 C6 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BD [21:42:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:42:15]wFMCommunicate OK [21:42:15]requested_item fd.num is exist - process it [21:42:15]SAM_PROTO_GetFieldsCounters [21:42:15]wFMCommunicate request_size=4 [21:42:15]MH_SAM_APDU [21:42:15]CAPDU: 80 13 00 00 [21:42:15]Write to MH i2c: E2 08 00 C7 27 80 13 00 00 00 00 00 00 6A [21:42:15]Write i2c OK [21:42:15]MH_I2C_Read... [21:42:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:42:15]Read from MH i2c: E2 [21:42:15]MH_I2C_Read... [21:42:15]Read from MH i2c: E2 62 00 [21:42:15]MH_I2C_Read... [21:42:15]Read from MH i2c: E2 62 00 C7 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F4 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [21:42: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F4 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:42:15]wFMCommunicate OK [21:42:15]SAM_PROTO_GetFieldsCounters done [21:42:15]requested_item shift.num is exist - process it [21:42:15]requested_item shift.opened is exist - process it [21:42:15]req_shift_opened [21:42:15]FM_GetShiftState [21:42:15]SAM_PROTO_GetShiftState [21:42:15]wFMCommunicate request_size=4 [21:42:15]MH_SAM_APDU [21:42:15]CAPDU: 80 13 01 00 [21:42:15]Write to MH i2c: E2 08 00 C8 27 80 13 01 00 00 00 00 00 6C [21:42:15]Write i2c OK [21:42:15]MH_I2C_Read... [21:42:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:42:15]Read from MH i2c: E2 [21:42:15]MH_I2C_Read... [21:42:15]Read from MH i2c: E2 0E 00 [21:42:15]MH_I2C_Read... [21:42:15]Read from MH i2c: E2 0E 00 C8 27 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 18 [21:42:15]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [21:42:15]wFMCommunicate OK [21:42:15]SAM_PROTO_GetShiftState done [21:42:15]FM_GetShiftState done [21:42:15]req_shift_opened done [21:42:15]requested_item shift.open_date is exist - process it [21:42:15]req_shift_open_date [21:42:15]req_shift_open_date done [21:42:15]produce_requested_data done [21:42:15]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67572,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [21:42:15]process_action_free close_receipt [21:42:15]json_value_free [21:42:15]json_value_free done [21:42:15]process_json_proto returns [21:42:15]Send response to host [21:42:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67572,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [21:42:15]free response buf [21:42:15]execute_script done [21:42:15]execute_script returns [21:42:15]free content buf [21:42:15]Sock 8.Close socket [21:42:15]Sock 8.Thread stoped [21:42:19]OFD Sender: No OFD packet to send [21:42:24]OFD Sender: No OFD packet to send [21:42:29]OFD Sender: No OFD packet to send [21:42:34]OFD Sender: No OFD packet to send [21:42:39]OFD Sender: No OFD packet to send [21:42:44]OFD Sender: No OFD packet to send [21:42:49]OFD Sender: No OFD packet to send [21:42:54]OFD Sender: No OFD packet to send [21:42:59]OFD Sender: No OFD packet to send [21:43:04]OFD Sender: No OFD packet to send [21:43:09]OFD Sender: No OFD packet to send [21:43:14]OFD Sender: No OFD packet to send [21:43:19]OFD Sender: No OFD packet to send [21:43:24]OFD Sender: No OFD packet to send [21:43:29]OFD Sender: No OFD packet to send [21:43:34]OFD Sender: No OFD packet to send [21:43:39]OFD Sender: No OFD packet to send [21:43:44]OFD Sender: No OFD packet to send [21:43:49]OFD Sender: No OFD packet to send [21:43:54]OFD Sender: No OFD packet to send [21:43:59]OFD Sender: No OFD packet to send [21:44:04]OFD Sender: No OFD packet to send [21:44:09]OFD Sender: No OFD packet to send [21:44:14]OFD Sender: No OFD packet to send [21:44:19]OFD Sender: No OFD packet to send [21:44:24]OFD Sender: No OFD packet to send [21:44:29]OFD Sender: No OFD packet to send [21:44:34]OFD Sender: No OFD packet to send [21:44:39]OFD Sender: No OFD packet to send [21:44:44]OFD Sender: No OFD packet to send [21:44:49]OFD Sender: No OFD packet to send [21:44:54]OFD Sender: No OFD packet to send [21:44:59]accept exits with 9 [21:44:59]New connection [21:44:59]New thread 3067039076 created [21:44:59]Thread 3067182436 joined [21:44:59]Waiting for new connection... [21:44:59] Sock 9.Parse request [21:44:59]Sock 9.Check first char [21:44:59]Sock 9.First char is OK [21:44:59]request: POST /json_proto HTTP/1.0 [21:44:59]Method: POST [21:44:59]URL: /json_proto [21:44:59]Method is POST - this is cgi request [21:44:59]url: /json_proto [21:44:59]query_string will be loaded in cgi processing [21:44:59]execute_cgi json_proto POST (null) [21:44:59]execute_cgi path=json_proto method=POST [21:44:59]POST find Content-Length [21:44:59]Host: 172.17.41.195:8080 [21:44:59]Content-Length: 1211 [21:44:59]Content-Type: application/json [21:44:59] [21:44:59]POST finish read [21:44:59]Found Content-Length = 1211 [21:44:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507652\u000A16.05.2024 21:27\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.480 x 66.80\u000A\u0418\u0422\u041E\u0413: 700.06\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:44:59]execute_script... [21:44:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507652\u000A16.05.2024 21:27\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.480 x 66.80\u000A\u0418\u0422\u041E\u0413: 700.06\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:44:59]POST & json_proto [21:44:59]process_json_proto [21:44:59]json parsed OK: [21:44:59]protocol is kg_v1.0 [21:44:59]action value=print_text [21:44:59]process_action print_text [21:44:59]cmd_print_text [21:44:59]ExternCall_PrintAddStr [21:44:59]wPrintStart [21:44:59]Write to MH i2c: 01 00 00 C9 27 F0 [21:44:59]Write i2c OK [21:44:59]MH_I2C_Read... [21:44:59]Read from MH i2c: 01 [21:44:59]MH_I2C_Read... [21:44:59]Read from MH i2c: 01 07 00 [21:44:59]MH_I2C_Read... [21:44:59]Read from MH i2c: 01 07 00 C9 27 00 00 00 00 00 FF 0F 05 [21:44:59]RasterBufferAndPrint [21:44:59]line *****ТОВАРНЫЙ ЧЕК***** [21:44:59]line АЗС-91 [21:44:59]line Партнер нефть [21:44:59]line 02508201610067 [21:44:59]line Кассир : Пайзулдаева А. [21:44:59]line Счет N : (1)507652 [21:44:59]line 16.05.2024 21:27 [21:44:59]line ПРОДАЖА [21:44:59]line ТРК (МРК, ГНК): 43 [21:44:59]line Вид ГСМ : 2710124130 [21:44:59]line Аи-92-К-5 [21:44:59]line 10.480 x 66.80 [21:44:59]line ИТОГ: 700.06 [21:44:59]line Тип оплаты: Талоны: Топливная Карта [21:44:59]line 02750 [21:44:59]line ______________________ [21:44:59]line (подпись) [21:44:59]written 0, free lines is 4095 [21:44:59]Write to MH i2c: 01 00 00 DD 27 04 [21:44:59]Write i2c OK [21:44:59]MH_I2C_Read... [21:44:59]Read from MH i2c: 01 [21:44:59]MH_I2C_Read... [21:44:59]Read from MH i2c: 01 07 00 [21:44:59]MH_I2C_Read... [21:44:59]Read from MH i2c: 01 07 00 DD 27 00 00 00 00 00 11 0E 2A [21:44:59]RasterBufferAndPrint [21:44:59]line [21:44:59]line [21:44:59]line [21:44:59]line [21:44:59]line [21:44:59]written 0, free lines is 3602 [21:44:59]MH_Cut [21:44:59]Write to MH i2c: D1 01 00 E4 27 01 DD [21:44:59]Write i2c OK [21:44:59]MH_I2C_Read... [21:44:59]Read from MH i2c: D1 [21:44:59]MH_I2C_Read... [21:44:59]Read from MH i2c: D1 01 00 [21:44:59]MH_I2C_Read... [21:44:59]Read from MH i2c: D1 01 00 E4 27 00 DC [21:44:59]Write to MH i2c: 01 00 00 E5 27 0C [21:44:59]Write i2c OK [21:44:59]MH_I2C_Read... [21:44:59]OFD Sender: No OFD packet to send [21:45:00]*** Cut start [21:45:00]*** Purtial cut [21:45:00]*** CUTSNS_PIN = 0 [21:45:00]*** Stage 1: CUTSNS_PIN = 1 [21:45:02]Read from MH i2c: 01 [21:45:02]MH_I2C_Read... [21:45:02]Read from MH i2c: 01 07 00 [21:45:02]MH_I2C_Read... [21:45:02]*** Stop cut motor [21:45:02]*** Cut end [21:45:02]Read from MH i2c: 01 07 00 E5 27 00 00 00 00 00 FF 0F 21 [21:45:02]process_action print_text done [21:45:02]requested_data is exist [21:45:02]produce_requested_data [21:45:02]requested_item fm.sn is exist - process it [21:45:02]wFMCommunicate request_size=4 [21:45:02]MH_SAM_APDU [21:45:02]CAPDU: 80 11 00 00 [21:45:02]Write to MH i2c: E2 08 00 E6 27 80 11 00 00 00 00 00 00 87 [21:45:02]Write i2c OK [21:45:02]MH_I2C_Read... [21:45:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:45:02]Read from MH i2c: E2 [21:45:02]MH_I2C_Read... [21:45:02]Read from MH i2c: E2 17 00 [21:45:02]MH_I2C_Read... [21:45:02]Read from MH i2c: E2 17 00 E6 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DD [21:45:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:45:02]wFMCommunicate OK [21:45:02]requested_item fd.num is exist - process it [21:45:02]SAM_PROTO_GetFieldsCounters [21:45:02]wFMCommunicate request_size=4 [21:45:02]MH_SAM_APDU [21:45:02]CAPDU: 80 13 00 00 [21:45:02]Write to MH i2c: E2 08 00 E7 27 80 13 00 00 00 00 00 00 8A [21:45:02]Write i2c OK [21:45:02]MH_I2C_Read... [21:45:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:45:02]Read from MH i2c: E2 [21:45:02]MH_I2C_Read... [21:45:02]Read from MH i2c: E2 62 00 [21:45:02]MH_I2C_Read... [21:45:02]Read from MH i2c: E2 62 00 E7 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F4 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [21:45: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F4 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:45:02]wFMCommunicate OK [21:45:02]SAM_PROTO_GetFieldsCounters done [21:45:02]requested_item shift.num is exist - process it [21:45:02]requested_item shift.opened is exist - process it [21:45:02]req_shift_opened [21:45:02]FM_GetShiftState [21:45:02]SAM_PROTO_GetShiftState [21:45:02]wFMCommunicate request_size=4 [21:45:02]MH_SAM_APDU [21:45:02]CAPDU: 80 13 01 00 [21:45:02]Write to MH i2c: E2 08 00 E8 27 80 13 01 00 00 00 00 00 8C [21:45:02]Write i2c OK [21:45:02]MH_I2C_Read... [21:45:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:45:02]Read from MH i2c: E2 [21:45:02]MH_I2C_Read... [21:45:02]Read from MH i2c: E2 0E 00 [21:45:02]MH_I2C_Read... [21:45:02]Read from MH i2c: E2 0E 00 E8 27 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 38 [21:45:02]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [21:45:02]wFMCommunicate OK [21:45:02]SAM_PROTO_GetShiftState done [21:45:02]FM_GetShiftState done [21:45:02]req_shift_opened done [21:45:02]requested_item shift.open_date is exist - process it [21:45:02]req_shift_open_date [21:45:02]req_shift_open_date done [21:45:02]produce_requested_data done [21:45:02]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67572,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [21:45:02]process_action_free print_text [21:45:02]json_value_free [21:45:02]json_value_free done [21:45:02]process_json_proto returns [21:45:02]Send response to host [21:45:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67572,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [21:45:02]free response buf [21:45:02]execute_script done [21:45:02]execute_script returns [21:45:02]free content buf [21:45:02]Sock 9.Close socket [21:45:02]Sock 9.Thread stoped [21:45:04]OFD Sender: No OFD packet to send [21:45:09]OFD Sender: No OFD packet to send [21:45:14]OFD Sender: No OFD packet to send [21:45:19]OFD Sender: No OFD packet to send [21:45:24]OFD Sender: No OFD packet to send [21:45:29]OFD Sender: No OFD packet to send [21:45:34]OFD Sender: No OFD packet to send [21:45:39]OFD Sender: No OFD packet to send [21:45:44]OFD Sender: No OFD packet to send [21:45:49]OFD Sender: No OFD packet to send [21:45:54]OFD Sender: No OFD packet to send [21:46:00]OFD Sender: No OFD packet to send [21:46:05]OFD Sender: No OFD packet to send [21:46:10]OFD Sender: No OFD packet to send [21:46:15]OFD Sender: No OFD packet to send [21:46:20]OFD Sender: No OFD packet to send [21:46:25]OFD Sender: No OFD packet to send [21:46:30]OFD Sender: No OFD packet to send [21:46:35]OFD Sender: No OFD packet to send [21:46:40]OFD Sender: No OFD packet to send [21:46:45]OFD Sender: No OFD packet to send [21:46:50]OFD Sender: No OFD packet to send [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:50]OFD Sender: No OFD packet to send [21:48:55]OFD Sender: No OFD packet to send [21:49:00]OFD Sender: No OFD packet to send [21:49:05]OFD Sender: No OFD packet to send [21:49:10]OFD Sender: No OFD packet to send [21:49:15]OFD Sender: No OFD packet to send [21:49:20]OFD Sender: No OFD packet to send [21:49:25]OFD Sender: No OFD packet to send [21:49:30]OFD Sender: No OFD packet to send [21:49:35]OFD Sender: No OFD packet to send [21:49:40]OFD Sender: No OFD packet to send [21:49:45]OFD Sender: No OFD packet to send [21:49:50]OFD Sender: No OFD packet to send [21:49:55]OFD Sender: No OFD packet to send [21:50:00]OFD Sender: No OFD packet to send [21:50:05]OFD Sender: No OFD packet to send [21:50:10]OFD Sender: No OFD packet to send [21:50:15]OFD Sender: No OFD packet to send [21:50:20]OFD Sender: No OFD packet to send [21:50:25]OFD Sender: No OFD packet to send [21:50:30]OFD Sender: No OFD packet to send [21:50:35]OFD Sender: No OFD packet to send [21:50:40]OFD Sender: No OFD packet to send [21:50:45]OFD Sender: No OFD packet to send [21:50:50]OFD Sender: No OFD packet to send [21:50:55]OFD Sender: No OFD packet to send [21:51:00]OFD Sender: No OFD packet to send [21:51:05]OFD Sender: No OFD packet to send [21:51:10]OFD Sender: No OFD packet to send [21:51:15]OFD Sender: No OFD packet to send [21:51:20]OFD Sender: No OFD packet to send [21:51:25]OFD Sender: No OFD packet to send [21:51:30]OFD Sender: No OFD packet to send [21:51:35]OFD Sender: No OFD packet to send [21:51:40]OFD Sender: No OFD packet to send [21:51:45]OFD Sender: No OFD packet to send [21:51:50]OFD Sender: No OFD packet to send [21:51:55]OFD Sender: No OFD packet to send [21:52:00]OFD Sender: No OFD packet to send [21:52:05]OFD Sender: No OFD packet to send [21:52:10]OFD Sender: No OFD packet to send [21:52:15]OFD Sender: No OFD packet to send [21:52:20]OFD Sender: No OFD packet to send [21:52:25]OFD Sender: No OFD packet to send [21:52:30]OFD Sender: No OFD packet to send [21:52:35]OFD Sender: No OFD packet to send [21:52:40]OFD Sender: No OFD packet to send [21:52:45]OFD Sender: No OFD packet to send [21:52:50]OFD Sender: No OFD packet to send [21:52:55]OFD Sender: No OFD packet to send [21:53:00]OFD Sender: No OFD packet to send [21:53:05]OFD Sender: No OFD packet to send [21:53:10]OFD Sender: No OFD packet to send [21:53:15]OFD Sender: No OFD packet to send [21:53:20]OFD Sender: No OFD packet to send [21:53:25]OFD Sender: No OFD packet to send [21:53:30]OFD Sender: No OFD packet to send [21:53:35]OFD Sender: No OFD packet to send [21:53:40]OFD Sender: No OFD packet to send [21:53:45]OFD Sender: No OFD packet to send [21:53:50]OFD Sender: No OFD packet to send [21:53:55]OFD Sender: No OFD packet to send [21:54:00]OFD Sender: No OFD packet to send [21:54:05]OFD Sender: No OFD packet to send [21:54:10]OFD Sender: No OFD packet to send [21:54:15]OFD Sender: No OFD packet to send [21:54:20]OFD Sender: No OFD packet to send [21:54:25]OFD Sender: No OFD packet to send [21:54:30]OFD Sender: No OFD packet to send [21:54:35]OFD Sender: No OFD packet to send [21:54:40]OFD Sender: No OFD packet to send [21:54:45]OFD Sender: No OFD packet to send [21:54:50]OFD Sender: No OFD packet to send [21:54:55]OFD Sender: No OFD packet to send [21:55:00]OFD Sender: No OFD packet to send [21:55:05]OFD Sender: No OFD packet to send [21:55:10]OFD Sender: No OFD packet to send [21:55:15]OFD Sender: No OFD packet to send [21:55:20]OFD Sender: No OFD packet to send [21:55:25]OFD Sender: No OFD packet to send [21:55:30]OFD Sender: No OFD packet to send [21:55:35]OFD Sender: No OFD packet to send [21:55:40]OFD Sender: No OFD packet to send [21:55:45]OFD Sender: No OFD packet to send [21:55:50]OFD Sender: No OFD packet to send [21:55:55]OFD Sender: No OFD packet to send [21:56:00]OFD Sender: No OFD packet to send [21:56:05]OFD Sender: No OFD packet to send [21:56:10]OFD Sender: No OFD packet to send [21:56:15]OFD Sender: No OFD packet to send [21:56:20]OFD Sender: No OFD packet to send [21:56:25]OFD Sender: No OFD packet to send [21:56:30]OFD Sender: No OFD packet to send [21:56:35]OFD Sender: No OFD packet to send [21:56:40]OFD Sender: No OFD packet to send [21:56:45]OFD Sender: No OFD packet to send [21:56:50]OFD Sender: No OFD packet to send [21:56:55]OFD Sender: No OFD packet to send [21:57:00]OFD Sender: No OFD packet to send [21:57:05]OFD Sender: No OFD packet to send [21:57:10]OFD Sender: No OFD packet to send [21:57:15]OFD Sender: No OFD packet to send [21:57:19]accept exits with 8 [21:57:19]New connection [21:57:19]New thread 3067182436 created [21:57:19]Thread 3067039076 joined [21:57:19]Waiting for new connection... [21:57:19] Sock 8.Parse request [21:57:19]Sock 8.Check first char [21:57:19]Sock 8.First char is OK [21:57:19]request: POST /json_proto HTTP/1.0 [21:57:19]Method: POST [21:57:19]URL: /json_proto [21:57:19]Method is POST - this is cgi request [21:57:19]url: /json_proto [21:57:19]query_string will be loaded in cgi processing [21:57:19]execute_cgi json_proto POST (null) [21:57:19]execute_cgi path=json_proto method=POST [21:57:19]POST find Content-Length [21:57:19]Host: 172.17.41.195:8080 [21:57:19]Content-Length: 671 [21:57:19]Content-Type: application/json [21:57:19] [21:57:19]POST finish read [21:57:19]Found Content-Length = 671 [21:57:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 10.180, "sum" : 690.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 690.00, "total" : 690.00, "payments": [ { "type": 0, "sum" : 690.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:57:19]execute_script... [21:57: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)507653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 10.180, "sum" : 690.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 690.00, "total" : 690.00, "payments": [ { "type": 0, "sum" : 690.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:57:19]POST & json_proto [21:57:19]process_json_proto [21:57:19]json parsed OK: [21:57:19]protocol is kg_v1.0 [21:57:19]action value=close_receipt [21:57:19]process_action close_receipt [21:57:19]cmd_close_receipt [21:57:19]MH_GetDate [21:57:19]Write to MH i2c: F0 00 00 E9 27 FF [21:57:19]Write i2c OK [21:57:19]MH_I2C_Read... [21:57:19]Read from MH i2c: F0 [21:57:19]MH_I2C_Read... [21:57:19]Read from MH i2c: F0 09 00 [21:57:19]MH_I2C_Read... [21:57:19]Read from MH i2c: F0 09 00 E9 27 00 42 81 46 66 FC 21 6F 64 67 [21:57:19]GetLastDocTimeStamp 1715895734 [21:57:19]current date 1715896642 [21:57:19]FM_GetShiftState [21:57:19]SAM_PROTO_GetShiftState [21:57:19]wFMCommunicate request_size=4 [21:57:19]MH_SAM_APDU [21:57:19]CAPDU: 80 13 01 00 [21:57:19]Write to MH i2c: E2 08 00 EA 27 80 13 01 00 00 00 00 00 8E [21:57:19]Write i2c OK [21:57:19]MH_I2C_Read... [21:57:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:57:19]Read from MH i2c: E2 [21:57:19]MH_I2C_Read... [21:57:19]Read from MH i2c: E2 0E 00 [21:57:19]MH_I2C_Read... [21:57:19]Read from MH i2c: E2 0E 00 EA 27 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 3A [21:57:19]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [21:57:19]wFMCommunicate OK [21:57:19]SAM_PROTO_GetShiftState done [21:57:19]FM_GetShiftState done [21:57:19]opened in 1715818916 [21:57:19]opened+sec_in_day 1715905316 [21:57:19]quantity*price = 69020 [21:57:19]sum+1 = 69021 [21:57:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 690.00 Внесено: 690.00 СДАЧА: 0.00 НСП 1% : 6.11 НДС 12% : 73.30 Наличными: 690.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 171 16.05.2024 21:57 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67573 ФПД: 272134458377149 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T215722&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67573&fm=272134458377149&tin=02508201610067®Number=0000000000091845&sum=69000 [21:57:20]StoreToDocumentArchive [21:57:20]shift 357 fd 67573 [21:57:20]save to /storage/0357/doc_00067573 [21:57:20]save last doc name /storage/0357/doc_00067573 to /storage/kkm_last_doc_name [21:57:20]save OK [21:57:20]Clear old archive folders... [21:57:20]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:57:20]tlvbuf is 017AE2C0 [21:57:20]SAM_PROTO_ClearQueue [21:57:20]wFMCommunicate request_size=4 [21:57:20]MH_SAM_APDU [21:57:20]CAPDU: 80 09 00 00 [21:57:20]Write to MH i2c: E2 08 00 F7 27 80 09 00 00 00 00 00 00 90 [21:57:20]Write i2c OK [21:57:20]MH_I2C_Read... [21:57:20]Read from MH i2c: E2 [21:57:20]MH_I2C_Read... [21:57:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:57:20]Read from MH i2c: E2 03 00 [21:57:20]MH_I2C_Read... [21:57:20]Read from MH i2c: E2 03 00 F7 27 00 90 00 92 [21:57:20]RAPDU: 90 00 [21:57:20]wFMCommunicate OK [21:57:20]SAM_PROTO_ClearQueue done [21:57:20]KKMCreateOFDPacket [21:57:20]OFDProtocolAddRootSTLVToBuf [21:57:20]FM_MakeSignedData [21:57:20]FM_MakeSignedData [21:57:20]SAM_PROTO_SignData [21:57:20]wFMCommunicate request_size=4 [21:57:20]MH_SAM_APDU [21:57:20]CAPDU: 80 0D 01 02 [21:57:20]Write to MH i2c: E2 08 00 F8 27 80 0D 01 02 00 00 00 00 98 [21:57:20]Write i2c OK [21:57:20]MH_I2C_Read... [21:57:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:57:20]Read from MH i2c: E2 [21:57:20]MH_I2C_Read... [21:57:20]Read from MH i2c: E2 03 00 [21:57:20]MH_I2C_Read... [21:57:20]Read from MH i2c: E2 03 00 F8 27 00 90 00 93 [21:57:20]RAPDU: 90 00 [21:57:20]wFMCommunicate OK [21:57:20]wFMCommunicate request_size=255 [21:57:20]MH_SAM_APDU [21:57:20]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 9C 0D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 0D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 1C 00 00 00 00 07 04 06 00 88 0D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 42 81 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F5 07 01 00 35 04 06 00 [21:57:20]Write to MH i2c: E2 02 01 F9 27 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 9C 0D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 0D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 1C 00 00 00 00 07 04 06 00 88 0D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 42 81 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F5 07 01 00 35 04 06 00 00 00 C8 [21:57:21]Write i2c OK [21:57:21]MH_I2C_Read... [21:57:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:57:21]Read from MH i2c: E2 [21:57:21]MH_I2C_Read... [21:57:21]Read from MH i2c: E2 03 00 [21:57:21]MH_I2C_Read... [21:57:21]Read from MH i2c: E2 03 00 F9 27 00 90 00 94 [21:57:21]RAPDU: 90 00 [21:57:21]wFMCommunicate OK [21:57:21]wFMCommunicate request_size=11 [21:57:21]MH_SAM_APDU [21:57:21]CAPDU: 80 0D 02 02 06 F7 81 3D B9 03 BD [21:57:21]Write to MH i2c: E2 0E 00 FA 27 80 0D 02 02 06 00 F7 81 3D B9 03 BD 00 00 D5 [21:57:21]Write i2c OK [21:57:21]MH_I2C_Read... [21:57:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:57:21]Read from MH i2c: E2 [21:57:21]MH_I2C_Read... [21:57:21]Read from MH i2c: E2 03 00 [21:57:21]MH_I2C_Read... [21:57:21]Read from MH i2c: E2 03 00 FA 27 00 90 00 95 [21:57:21]RAPDU: 90 00 [21:57:21]wFMCommunicate OK [21:57:21]wFMCommunicate request_size=4 [21:57:21]MH_SAM_APDU [21:57:21]CAPDU: 80 0D 03 02 [21:57:21]Write to MH i2c: E2 08 00 FB 27 80 0D 03 02 00 00 00 00 9D [21:57:21]Write i2c OK [21:57:21]MH_I2C_Read... [21:57:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:57:21]Read from MH i2c: E2 [21:57:21]MH_I2C_Read... [21:57:21]Read from MH i2c: E2 0B 00 [21:57:21]MH_I2C_Read... [21:57:21]Read from MH i2c: E2 0B 00 FB 27 00 E6 7F 73 A9 12 44 E1 D8 90 00 2E [21:57:21]RAPDU: E6 7F 73 A9 12 44 E1 D8 90 00 [21:57:21]wFMCommunicate OK [21:57:21]SAM_PROTO_SignData done [21:57:21]FM_MakeSignedData done [21:57:21]CreateOFDProtocolMessage [21:57:21]wFMCommunicate request_size=4 [21:57:21]MH_SAM_APDU [21:57:21]CAPDU: 80 11 00 00 [21:57:21]Write to MH i2c: E2 08 00 FC 27 80 11 00 00 00 00 00 00 9D [21:57:21]Write i2c OK [21:57:21]MH_I2C_Read... [21:57:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:57:21]Read from MH i2c: E2 [21:57:21]MH_I2C_Read... [21:57:21]Read from MH i2c: E2 17 00 [21:57:21]MH_I2C_Read... [21:57:21]Read from MH i2c: E2 17 00 FC 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F3 [21:57:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:57:21]wFMCommunicate OK [21:57:21]CreateOFDProtocolMessage done [21:57:21]OFDSenderStorePacket 67573 [21:57:21]StoreOFDPacket docnum=67573 [21:57:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 00 84 08 01 3E BD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 9C 0D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 0D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 1C 00 00 00 00 07 04 06 00 88 0D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 42 81 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F5 07 01 00 35 04 06 00 F7 81 3D B9 03 BD E6 7F 73 A9 12 44 E1 D8 [21:57:21]CheckFolder [21:57:21]dirname=/storage/ofd_packets [21:57:21]CheckFolder done [21:57:21]ProducePacketName [21:57:21]name=ofd_packets/00067573 [21:57:21]NVStorageSaveData ofd_packets/00067573 [21:57:21]File name is /storage/ofd_packets/00067573 [21:57:21]Write 302 bytes [21:57:21]NVStorageSaveData done [21:57:21]OFDSenderStorePacket done [21:57:21]KKMCreateOFDPacket done [21:57:21]NVStorageSaveData kkm_last_timestamp [21:57:21]File name is /storage/kkm_last_timestamp [21:57:21]Write 4 bytes [21:57:21]NVStorageSaveData done [21:57:21]ExternCall_PrintAddStr [21:57:21]wPrintStart [21:57:21]Write to MH i2c: 01 00 00 FD 27 24 [21:57:21]Write i2c OK [21:57:21]MH_I2C_Read... [21:57:21]Read from MH i2c: 01 [21:57:21]MH_I2C_Read... [21:57:21]Read from MH i2c: 01 07 00 [21:57:21]MH_I2C_Read... [21:57:21]Read from MH i2c: 01 07 00 FD 27 00 00 00 00 00 FF 0F 39 [21:57:21]RasterBufferAndPrint [21:57:21]line Счет N : (1)507653 [21:57:21]line ИНН: 02508201610067 [21:57:21]line Контрольно-Кассовый Чек [21:57:21]line ПРОДАЖА [21:57:21]line ТРК (МРК, ГНК) : 32 [21:57:21]line Товар: 2710124130 [21:57:21]line Super-92-К-5 [21:57:21]line 10.180 * 67.80 [21:57:21]line = 690.20 [21:57:21]line НДС 12% НСП 1% [21:57:21]line > о реализуемом товаре [21:57:21]line ОКРУГЛЕНИЕ: -0.20 [21:57:21]line ИТОГО: 690.00 [21:57:21]line Внесено: 690.00 [21:57:21]line СДАЧА: 0.00 [21:57:21]line НСП 1% : 6.11 [21:57:21]line НДС 12% : 73.30 [21:57:21]line Наличными: 690.00 [21:57:21]line Безнал.: 0.00 [21:57:21]line Место: АЗС № 91 "Партнер Нефть" [21:57:21]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [21:57:21]line СНО: Общий режим [21:57:21]line Чек 171 16.05.2024 21:57 [21:57:21]line Смена: 357 ФФД: 1.0 [21:57:21]line ЗНМ: 0300000119 [21:57:21]line РНМ: 0000000000091845 [21:57:21]line Версия ККМ: 001 [21:57:21]line ФМ: 0000000000871829 [21:57:21]line ФД: 67573 [21:57:21]line ФПД: 272134458377149 [21:57:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T215722&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67573&fm=272134458377149&tin=02508201610067®Number=0000000000091845&sum=69000 [21:57:21]OFD Sender: Processing packet 67573 [packets to send 35, broken 34] [21:57:21]ProducePacketName [21:57:21]name=ofd_packets/00067573 [21:57:21]OFD Sender: To server: pG, [21:57:21]CommunicateWithHost lk.salyk.kg:30040 [21:57:21]ConnectInit lk.salyk.kg [21:57:21]written 0, free lines is 4095 [21:57:21]Connected sock=10 [21:57: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 38 32 39 10 01 00 00 00 84 08 01 3E BD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 9C 0D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 0D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 1C 00 00 00 00 07 04 06 00 88 0D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 42 81 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F5 07 01 00 35 04 06 00 F7 81 3D B9 03 BD E6 7F 73 A9 12 44 E1 D8 [21:57:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 E2 25 47 00 37 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 38 32 39 10 04 04 00 F5 07 01 00 F4 03 04 00 1C 29 46 66 B6 04 01 00 00 DF 97 00 0A 4F F0 00 67 [21:57:22]CommunicateWithHost err = 0 [21:57:22]CheckOFDResponse [21:57:22]1017 (14) - 77093643461234 [21:57:22]1041 (16) - 0000000000871829 [21:57:22]1040 (4) - 67573 [21:57:22]1012 (4) - 16.05.2024 15:41 [21:57:22]1206 (1) - 0 [21:57:22]OFD Sender: Remove packet 67573 [21:57:22]ProducePacketName [21:57:22]name=ofd_packets/00067573 [21:57:22]NVStorageDeleteData [21:57:22]Write to MH i2c: 01 00 00 27 28 4F [21:57:22]Write i2c OK [21:57:22]MH_I2C_Read... [21:57:22]Read from MH i2c: 01 [21:57:22]MH_I2C_Read... [21:57:22]Read from MH i2c: 01 07 00 [21:57:22]MH_I2C_Read... [21:57:22]Read from MH i2c: 01 07 00 27 28 00 00 00 00 00 CE 0C 30 [21:57:22]RasterBufferAndPrint [21:57:22]line [21:57:22]line [21:57:22]line [21:57:22]line [21:57:22]line [21:57:22]written 0, free lines is 3285 [21:57:22]MH_Cut [21:57:22]Write to MH i2c: D1 01 00 2E 28 01 28 [21:57:22]Write i2c OK [21:57:22]MH_I2C_Read... [21:57:22]Read from MH i2c: D1 [21:57:22]MH_I2C_Read... [21:57:22]Read from MH i2c: D1 01 00 [21:57:22]MH_I2C_Read... [21:57:22]Read from MH i2c: D1 01 00 2E 28 00 27 [21:57:22]Write to MH i2c: 01 00 00 2F 28 57 [21:57:22]Write i2c OK [21:57:22]MH_I2C_Read... [21:57:22]OFD Sender: No OFD packet to send [21:57:22]*** Cut start [21:57:22]*** Purtial cut [21:57:22]*** Stage 1: CUTSNS_PIN = 1 [21:57:23]Read from MH i2c: 01 [21:57:23]MH_I2C_Read... [21:57:23]*** Stop cut motor [21:57:23]*** Cut end [21:57:23]Read from MH i2c: 01 07 00 [21:57:23]MH_I2C_Read... [21:57:23]Read from MH i2c: 01 07 00 2F 28 00 00 00 00 00 FF 0F 6C [21:57:23]process_action close_receipt done [21:57:23]requested_data is exist [21:57:23]produce_requested_data [21:57:23]requested_item fm.sn is exist - process it [21:57:23]wFMCommunicate request_size=4 [21:57:23]MH_SAM_APDU [21:57:23]CAPDU: 80 11 00 00 [21:57:23]Write to MH i2c: E2 08 00 30 28 80 11 00 00 00 00 00 00 D2 [21:57:23]Write i2c OK [21:57:23]MH_I2C_Read... [21:57:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:57:23]Read from MH i2c: E2 [21:57:23]MH_I2C_Read... [21:57:23]Read from MH i2c: E2 17 00 [21:57:23]MH_I2C_Read... [21:57:23]Read from MH i2c: E2 17 00 30 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 28 [21:57:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:57:23]wFMCommunicate OK [21:57:23]requested_item fd.num is exist - process it [21:57:23]SAM_PROTO_GetFieldsCounters [21:57:23]wFMCommunicate request_size=4 [21:57:23]MH_SAM_APDU [21:57:23]CAPDU: 80 13 00 00 [21:57:23]Write to MH i2c: E2 08 00 31 28 80 13 00 00 00 00 00 00 D5 [21:57:23]Write i2c OK [21:57:23]MH_I2C_Read... [21:57:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:57:23]Read from MH i2c: E2 [21:57:23]MH_I2C_Read... [21:57:23]Read from MH i2c: E2 62 00 [21:57:23]MH_I2C_Read... [21:57:23]Read from MH i2c: E2 62 00 31 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F5 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [21:57: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F5 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:57:23]wFMCommunicate OK [21:57:23]SAM_PROTO_GetFieldsCounters done [21:57:23]requested_item shift.num is exist - process it [21:57:23]requested_item shift.opened is exist - process it [21:57:23]req_shift_opened [21:57:23]FM_GetShiftState [21:57:23]SAM_PROTO_GetShiftState [21:57:23]wFMCommunicate request_size=4 [21:57:23]MH_SAM_APDU [21:57:23]CAPDU: 80 13 01 00 [21:57:23]Write to MH i2c: E2 08 00 32 28 80 13 01 00 00 00 00 00 D7 [21:57:23]Write i2c OK [21:57:23]MH_I2C_Read... [21:57:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:57:23]Read from MH i2c: E2 [21:57:23]MH_I2C_Read... [21:57:23]Read from MH i2c: E2 0E 00 [21:57:23]MH_I2C_Read... [21:57:23]Read from MH i2c: E2 0E 00 32 28 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 83 [21:57:23]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [21:57:23]wFMCommunicate OK [21:57:23]SAM_PROTO_GetShiftState done [21:57:23]FM_GetShiftState done [21:57:23]req_shift_opened done [21:57:23]requested_item shift.open_date is exist - process it [21:57:23]req_shift_open_date [21:57:23]req_shift_open_date done [21:57:23]produce_requested_data done [21:57:23]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67573,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [21:57:23]process_action_free close_receipt [21:57:23]json_value_free [21:57:23]json_value_free done [21:57:23]process_json_proto returns [21:57:23]Send response to host [21:57:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67573,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [21:57:23]free response buf [21:57:23]execute_script done [21:57:23]execute_script returns [21:57:23]free content buf [21:57:23]Sock 8.Close socket [21:57:23]Sock 8.Thread stoped [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:47]OFD Sender: No OFD packet to send [21:59:52]OFD Sender: No OFD packet to send [21:59:57]OFD Sender: No OFD packet to send [22:00:02]OFD Sender: No OFD packet to send [22:00:07]OFD Sender: No OFD packet to send [22:00:12]OFD Sender: No OFD packet to send [22:00:17]OFD Sender: No OFD packet to send [22:00:22]OFD Sender: No OFD packet to send [22:00:27]OFD Sender: No OFD packet to send [22:00:32]OFD Sender: No OFD packet to send [22:00:37]OFD Sender: No OFD packet to send [22:00:42]OFD Sender: No OFD packet to send [22:00:47]OFD Sender: No OFD packet to send [22:00:52]OFD Sender: No OFD packet to send [22:00:57]OFD Sender: No OFD packet to send [22:01:02]OFD Sender: No OFD packet to send [22:01:07]OFD Sender: No OFD packet to send [22:01:12]OFD Sender: No OFD packet to send [22:01:17]OFD Sender: No OFD packet to send [22:01:22]OFD Sender: No OFD packet to send [22:01:27]OFD Sender: No OFD packet to send [22:01:32]OFD Sender: No OFD packet to send [22:01:37]OFD Sender: No OFD packet to send [22:01:42]OFD Sender: No OFD packet to send [22:01:47]OFD Sender: No OFD packet to send [22:01:52]OFD Sender: No OFD packet to send [22:01:57]OFD Sender: No OFD packet to send [22:02:02]OFD Sender: No OFD packet to send [22:02:07]OFD Sender: No OFD packet to send [22:02:12]OFD Sender: No OFD packet to send [22:02:17]OFD Sender: No OFD packet to send [22:02:22]OFD Sender: No OFD packet to send [22:02:27]OFD Sender: No OFD packet to send [22:02:32]OFD Sender: No OFD packet to send [22:02:37]OFD Sender: No OFD packet to send [22:02:42]OFD Sender: No OFD packet to send [22:02:47]OFD Sender: No OFD packet to send [22:02:52]OFD Sender: No OFD packet to send [22:02:57]OFD Sender: No OFD packet to send [22:03:02]OFD Sender: No OFD packet to send [22:03:07]OFD Sender: No OFD packet to send [22:03:12]OFD Sender: No OFD packet to send [22:03:17]OFD Sender: No OFD packet to send [22:03:22]OFD Sender: No OFD packet to send [22:03:27]OFD Sender: No OFD packet to send [22:03:32]OFD Sender: No OFD packet to send [22:03:37]OFD Sender: No OFD packet to send [22:03:42]OFD Sender: No OFD packet to send [22:03:47]OFD Sender: No OFD packet to send [22:03:52]OFD Sender: No OFD packet to send [22:03:57]OFD Sender: No OFD packet to send [22:04:02]OFD Sender: No OFD packet to send [22:04:07]OFD Sender: No OFD packet to send [22:04:12]OFD Sender: No OFD packet to send [22:04:17]OFD Sender: No OFD packet to send [22:04:22]OFD Sender: No OFD packet to send [22:04:27]OFD Sender: No OFD packet to send [22:04:32]OFD Sender: No OFD packet to send [22:04:37]OFD Sender: No OFD packet to send [22:04:42]OFD Sender: No OFD packet to send [22:04:47]OFD Sender: No OFD packet to send [22:04:52]OFD Sender: No OFD packet to send [22:04:57]OFD Sender: No OFD packet to send [22:05:02]OFD Sender: No OFD packet to send [22:05:07]OFD Sender: No OFD packet to send [22:05:12]OFD Sender: No OFD packet to send [22:05:17]OFD Sender: No OFD packet to send [22:05:22]OFD Sender: No OFD packet to send [22:05: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:38]OFD Sender: No OFD packet to send [22:06:43]OFD Sender: No OFD packet to send [22:06:48]OFD Sender: No OFD packet to send [22:06:53]OFD Sender: No OFD packet to send [22:06:58]OFD Sender: No OFD packet to send [22:07:03]OFD Sender: No OFD packet to send [22:07:08]OFD Sender: No OFD packet to send [22:07:13]OFD Sender: No OFD packet to send [22:07:18]OFD Sender: No OFD packet to send [22:07:23]OFD Sender: No OFD packet to send [22:07:28]OFD Sender: No OFD packet to send [22:07:33]OFD Sender: No OFD packet to send [22:07:38]OFD Sender: No OFD packet to send [22:07:43]OFD Sender: No OFD packet to send [22:07:48]OFD Sender: No OFD packet to send [22:07:53]OFD Sender: No OFD packet to send [22:07:58]OFD Sender: No OFD packet to send [22:08:03]OFD Sender: No OFD packet to send [22:08:08]OFD Sender: No OFD packet to send [22:08:13]OFD Sender: No OFD packet to send [22:08:18]OFD Sender: No OFD packet to send [22:08:23]OFD Sender: No OFD packet to send [22:08:28]OFD Sender: No OFD packet to send [22:08:33]OFD Sender: No OFD packet to send [22:08:38]OFD Sender: No OFD packet to send [22:08:43]OFD Sender: No OFD packet to send [22:08:48]OFD Sender: No OFD packet to send [22:08:53]OFD Sender: No OFD packet to send [22:08:58]OFD Sender: No OFD packet to send [22:09:03]OFD Sender: No OFD packet to send [22:09:08]OFD Sender: No OFD packet to send [22:09:13]OFD Sender: No OFD packet to send [22:09:18]OFD Sender: No OFD packet to send [22:09:23]OFD Sender: No OFD packet to send [22:09:28]OFD Sender: No OFD packet to send [22:09:33]OFD Sender: No OFD packet to send [22:09:38]OFD Sender: No OFD packet to send [22:09:43]OFD Sender: No OFD packet to send [22:09:48]OFD Sender: No OFD packet to send [22:09:53]OFD Sender: No OFD packet to send [22:09:58]OFD Sender: No OFD packet to send [22:10:03]OFD Sender: No OFD packet to send [22:10:08]OFD Sender: No OFD packet to send [22:10:13]OFD Sender: No OFD packet to send [22:10:18]OFD Sender: No OFD packet to send [22:10:23]OFD Sender: No OFD packet to send [22:10:28]OFD Sender: No OFD packet to send [22:10:33]OFD Sender: No OFD packet to send [22:10:38]OFD Sender: No OFD packet to send [22:10:43]OFD Sender: No OFD packet to send [22:10:48]OFD Sender: No OFD packet to send [22:10:53]OFD Sender: No OFD packet to send [22:10:58]OFD Sender: No OFD packet to send [22:11:03]OFD Sender: No OFD packet to send [22:11:08]OFD Sender: No OFD packet to send [22:11:13]OFD Sender: No OFD packet to send [22:11:18]OFD Sender: No OFD packet to send [22:11:23]OFD Sender: No OFD packet to send [22:11:28]OFD Sender: No OFD packet to send [22:11:33]OFD Sender: No OFD packet to send [22:11:38]OFD Sender: No OFD packet to send [22:11:43]OFD Sender: No OFD packet to send [22:11:48]OFD Sender: No OFD packet to send [22:11:53]OFD Sender: No OFD packet to send [22:11:58]OFD Sender: No OFD packet to send [22:12:03]OFD Sender: No OFD packet to send [22:12:08]OFD Sender: No OFD packet to send [22:12:13]OFD Sender: No OFD packet to send [22:12:18]OFD Sender: No OFD packet to send [22:12:23]OFD Sender: No OFD packet to send [22:12:28]OFD Sender: No OFD packet to send [22:12:33]OFD Sender: No OFD packet to send [22:12:38]OFD Sender: No OFD packet to send [22:12:43]OFD Sender: No OFD packet to send [22:12:48]OFD Sender: No OFD packet to send [22:12:53]OFD Sender: No OFD packet to send [22:12:58]OFD Sender: No OFD packet to send [22:13:03]OFD Sender: No OFD packet to send [22:13:08]OFD Sender: No OFD packet to send [22:13:13]OFD Sender: No OFD packet to send [22:13:18]OFD Sender: No OFD packet to send [22:13:23]OFD Sender: No OFD packet to send [22:13:28]OFD Sender: No OFD packet to send [22:13:33]OFD Sender: No OFD packet to send [22:13:38]OFD Sender: No OFD packet to send [22:13:38]accept exits with 9 [22:13:38]New connection [22:13:38]New thread 3067039076 created [22:13:38]Thread 3067182436 joined [22:13:38]Waiting for new connection... [22:13:38] Sock 9.Parse request [22:13:38]Sock 9.Check first char [22:13:38]Sock 9.First char is OK [22:13:38]request: POST /json_proto HTTP/1.0 [22:13:38]Method: POST [22:13:38]URL: /json_proto [22:13:38]Method is POST - this is cgi request [22:13:38]url: /json_proto [22:13:38]query_string will be loaded in cgi processing [22:13:38]execute_cgi json_proto POST (null) [22:13:38]execute_cgi path=json_proto method=POST [22:13:38]POST find Content-Length [22:13:38]Host: 172.17.41.195:8080 [22:13:38]Content-Length: 801 [22:13:38]Content-Type: application/json [22:13:38] [22:13:38]POST finish read [22:13:38]Found Content-Length = 801 [22:13:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507655", "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" : 74.70, "quantity" : 127.180, "sum" : 9500.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 9500.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:13:38]execute_script... [22:13: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)507655", "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" : 74.70, "quantity" : 127.180, "sum" : 9500.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 9500.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:13:38]POST & json_proto [22:13:38]process_json_proto [22:13:38]json parsed OK: [22:13:38]protocol is kg_v1.0 [22:13:38]action value=close_receipt [22:13:38]process_action close_receipt [22:13:38]cmd_close_receipt [22:13:38]MH_GetDate [22:13:38]Write to MH i2c: F0 00 00 33 28 4A [22:13:38]Write i2c OK [22:13:38]MH_I2C_Read... [22:13:38]Read from MH i2c: F0 [22:13:38]MH_I2C_Read... [22:13:38]Read from MH i2c: F0 09 00 [22:13:38]MH_I2C_Read... [22:13:38]Read from MH i2c: F0 09 00 33 28 00 15 85 46 66 FC 21 6F 64 89 [22:13:38]GetLastDocTimeStamp 1715896642 [22:13:38]current date 1715897621 [22:13:38]FM_GetShiftState [22:13:38]SAM_PROTO_GetShiftState [22:13:38]wFMCommunicate request_size=4 [22:13:38]MH_SAM_APDU [22:13:38]CAPDU: 80 13 01 00 [22:13:38]Write to MH i2c: E2 08 00 34 28 80 13 01 00 00 00 00 00 D9 [22:13:38]Write i2c OK [22:13:38]MH_I2C_Read... [22:13:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:13:38]Read from MH i2c: E2 [22:13:38]MH_I2C_Read... [22:13:38]Read from MH i2c: E2 0E 00 [22:13:38]MH_I2C_Read... [22:13:38]Read from MH i2c: E2 0E 00 34 28 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 85 [22:13:38]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [22:13:38]wFMCommunicate OK [22:13:38]SAM_PROTO_GetShiftState done [22:13:38]FM_GetShiftState done [22:13:38]opened in 1715818916 [22:13:38]opened+sec_in_day 1715905316 [22:13:38]quantity*price = 950034 [22:13:38]sum+1 = 950036 [22:13:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9500.35 НСП 1% : 84.07 НДС 12% : 1008.89 Наличными: 0.00 Безнал.: 9500.35 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 172 16.05.2024 22:13 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67574 ФПД: 171173673122361 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T221341&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67574&fm=171173673122361&tin=02508201610067®Number=0000000000091845&sum=950035 [22:13:40]StoreToDocumentArchive [22:13:40]shift 357 fd 67574 [22:13:40]save to /storage/0357/doc_00067574 [22:13:40]save last doc name /storage/0357/doc_00067574 to /storage/kkm_last_doc_name [22:13:40]save OK [22:13:40]Clear old archive folders... [22:13:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:13:40]tlvbuf is 017E8CC0 [22:13:40]SAM_PROTO_ClearQueue [22:13:40]wFMCommunicate request_size=4 [22:13:40]MH_SAM_APDU [22:13:40]CAPDU: 80 09 00 00 [22:13:40]Write to MH i2c: E2 08 00 41 28 80 09 00 00 00 00 00 00 DB [22:13:40]Write i2c OK [22:13:40]MH_I2C_Read... [22:13:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:13:40]Read from MH i2c: E2 [22:13:40]MH_I2C_Read... [22:13:40]Read from MH i2c: E2 03 00 [22:13:40]MH_I2C_Read... [22:13:40]Read from MH i2c: E2 03 00 41 28 00 90 00 DD [22:13:40]RAPDU: 90 00 [22:13:40]wFMCommunicate OK [22:13:40]SAM_PROTO_ClearQueue done [22:13:40]KKMCreateOFDPacket [22:13:40]OFDProtocolAddRootSTLVToBuf [22:13:40]FM_MakeSignedData [22:13:40]FM_MakeSignedData [22:13:40]SAM_PROTO_SignData [22:13:40]wFMCommunicate request_size=4 [22:13:40]MH_SAM_APDU [22:13:40]CAPDU: 80 0D 01 02 [22:13:40]Write to MH i2c: E2 08 00 42 28 80 0D 01 02 00 00 00 00 E3 [22:13:40]Write i2c OK [22:13:40]MH_I2C_Read... [22:13:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:13:40]Read from MH i2c: E2 [22:13:40]MH_I2C_Read... [22:13:40]Read from MH i2c: E2 03 00 [22:13:40]MH_I2C_Read... [22:13:40]Read from MH i2c: E2 03 00 42 28 00 90 00 DE [22:13:40]RAPDU: 90 00 [22:13:40]wFMCommunicate OK [22:13:40]wFMCommunicate request_size=255 [22:13:40]MH_SAM_APDU [22:13: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 CC F0 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 13 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 13 7F 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 8A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 7F 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 15 85 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F6 07 01 00 35 04 06 00 9B AE 79 FB [22:13:40]Write to MH i2c: E2 02 01 43 28 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC F0 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 13 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 13 7F 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 8A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 7F 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 15 85 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F6 07 01 00 35 04 06 00 9B AE 79 FB 00 00 DB [22:13:40]Write i2c OK [22:13:40]MH_I2C_Read... [22:13:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:13:40]Read from MH i2c: E2 [22:13:40]MH_I2C_Read... [22:13:40]Read from MH i2c: E2 03 00 [22:13:40]MH_I2C_Read... [22:13:40]Read from MH i2c: E2 03 00 43 28 00 90 00 DF [22:13:40]RAPDU: 90 00 [22:13:40]wFMCommunicate OK [22:13:40]wFMCommunicate request_size=7 [22:13:40]MH_SAM_APDU [22:13:40]CAPDU: 80 0D 02 02 02 3A 39 [22:13:40]Write to MH i2c: E2 0A 00 44 28 80 0D 02 02 02 00 3A 39 00 00 5D [22:13:40]Write i2c OK [22:13:40]MH_I2C_Read... [22:13:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:13:40]Read from MH i2c: E2 [22:13:40]MH_I2C_Read... [22:13:40]Read from MH i2c: E2 03 00 [22:13:40]MH_I2C_Read... [22:13:40]Read from MH i2c: E2 03 00 44 28 00 90 00 E0 [22:13:40]RAPDU: 90 00 [22:13:40]wFMCommunicate OK [22:13:40]wFMCommunicate request_size=4 [22:13:40]MH_SAM_APDU [22:13:40]CAPDU: 80 0D 03 02 [22:13:40]Write to MH i2c: E2 08 00 45 28 80 0D 03 02 00 00 00 00 E8 [22:13:40]Write i2c OK [22:13:40]MH_I2C_Read... [22:13:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:13:40]Read from MH i2c: E2 [22:13:40]MH_I2C_Read... [22:13:40]Read from MH i2c: E2 0B 00 [22:13:40]MH_I2C_Read... [22:13:40]Read from MH i2c: E2 0B 00 45 28 00 7C A6 81 FA 5B 7F 82 88 90 00 6A [22:13:40]RAPDU: 7C A6 81 FA 5B 7F 82 88 90 00 [22:13:40]wFMCommunicate OK [22:13:40]SAM_PROTO_SignData done [22:13:40]FM_MakeSignedData done [22:13:40]CreateOFDProtocolMessage [22:13:40]wFMCommunicate request_size=4 [22:13:40]MH_SAM_APDU [22:13:40]CAPDU: 80 11 00 00 [22:13:40]Write to MH i2c: E2 08 00 46 28 80 11 00 00 00 00 00 00 E8 [22:13:40]Write i2c OK [22:13:40]MH_I2C_Read... [22:13:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:13:40]Read from MH i2c: E2 [22:13:40]MH_I2C_Read... [22:13:40]Read from MH i2c: E2 17 00 [22:13:40]MH_I2C_Read... [22:13:40]Read from MH i2c: E2 17 00 46 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3E [22:13:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:13:40]wFMCommunicate OK [22:13:40]CreateOFDProtocolMessage done [22:13:40]OFDSenderStorePacket 67574 [22:13:40]StoreOFDPacket docnum=67574 [22:13:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 CA A7 04 01 53 C1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC F0 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 13 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 13 7F 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 8A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 7F 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 15 85 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F6 07 01 00 35 04 06 00 9B AE 79 FB 3A 39 7C A6 81 FA 5B 7F 82 88 [22:13:40]CheckFolder [22:13:40]dirname=/storage/ofd_packets [22:13:40]CheckFolder done [22:13:40]ProducePacketName [22:13:40]name=ofd_packets/00067574 [22:13:40]NVStorageSaveData ofd_packets/00067574 [22:13:40]File name is /storage/ofd_packets/00067574 [22:13:40]Write 298 bytes [22:13:40]NVStorageSaveData done [22:13:40]OFDSenderStorePacket done [22:13:40]KKMCreateOFDPacket done [22:13:40]NVStorageSaveData kkm_last_timestamp [22:13:40]File name is /storage/kkm_last_timestamp [22:13:40]Write 4 bytes [22:13:40]NVStorageSaveData done [22:13:40]ExternCall_PrintAddStr [22:13:40]wPrintStart [22:13:40]Write to MH i2c: 01 00 00 47 28 6F [22:13:40]Write i2c OK [22:13:40]MH_I2C_Read... [22:13:40]Read from MH i2c: 01 [22:13:40]MH_I2C_Read... [22:13:40]Read from MH i2c: 01 07 00 [22:13:40]MH_I2C_Read... [22:13:40]Read from MH i2c: 01 07 00 47 28 00 00 00 00 00 FF 0F 84 [22:13:40]RasterBufferAndPrint [22:13:40]line Счет N : (1)507655 [22:13:40]line ИНН: 02508201610067 [22:13:40]line Контрольно-Кассовый Чек [22:13:40]line ПРОДАЖА [22:13:40]line ТРК (МРК, ГНК) : 21 [22:13:40]line Товар: 2710194210 [22:13:40]line ДТ-К-5 [22:13:40]line 127.180 * 74.70 [22:13:40]line = 9500.35 [22:13:40]line НДС 12% НСП 1% [22:13:40]line > о реализуемом товаре [22:13:40]line ИТОГО: 9500.35 [22:13:40]line НСП 1% : 84.07 [22:13:40]line НДС 12% : 1008.89 [22:13:40]line Наличными: 0.00 [22:13:40]line Безнал.: 9500.35 [22:13:40]line Место: АЗС № 91 "Партнер Нефть" [22:13:40]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [22:13:40]line СНО: Общий режим [22:13:40]line Чек 172 16.05.2024 22:13 [22:13:40]line Смена: 357 ФФД: 1.0 [22:13:40]line ЗНМ: 0300000119 [22:13:40]line РНМ: 0000000000091845 [22:13:40]line Версия ККМ: 001 [22:13:40]line Платежная система: O! деньги [22:13:40]line ФМ: 0000000000871829 [22:13:40]line ФД: 67574 [22:13:40]line ФПД: 171173673122361 [22:13:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T221341&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67574&fm=171173673122361&tin=02508201610067®Number=0000000000091845&sum=950035 [22:13:40]OFD Sender: Processing packet 67574 [packets to send 35, broken 34] [22:13:40]ProducePacketName [22:13:40]name=ofd_packets/00067574 [22:13:40]OFD Sender: To server: pG, [22:13:40]CommunicateWithHost lk.salyk.kg:30040 [22:13:40]ConnectInit lk.salyk.kg [22:13:40]written 0, free lines is 4095 [22:13:40]Connected sock=10 [22:13: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 38 32 39 0C 01 00 00 CA A7 04 01 53 C1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC F0 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 13 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 13 7F 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 8A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 7F 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 15 85 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F6 07 01 00 35 04 06 00 9B AE 79 FB 3A 39 7C A6 81 FA 5B 7F 82 88 [22:13:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 D9 35 47 00 92 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 38 32 39 10 04 04 00 F6 07 01 00 F4 03 04 00 EF 2C 46 66 B6 04 01 00 00 64 15 08 1E 54 6C D4 57 [22:13:41]CommunicateWithHost err = 0 [22:13:41]CheckOFDResponse [22:13:41]1017 (14) - 77093643461234 [22:13:41]1041 (16) - 0000000000871829 [22:13:41]1040 (4) - 67574 [22:13:41]1012 (4) - 16.05.2024 15:57 [22:13:41]1206 (1) - 0 [22:13:41]OFD Sender: Remove packet 67574 [22:13:41]ProducePacketName [22:13:41]name=ofd_packets/00067574 [22:13:41]NVStorageDeleteData [22:13:41]Write to MH i2c: 01 00 00 70 28 98 [22:13:41]Write i2c OK [22:13:41]MH_I2C_Read... [22:13:41]Read from MH i2c: 01 [22:13:41]MH_I2C_Read... [22:13:41]Read from MH i2c: 01 07 00 [22:13:41]MH_I2C_Read... [22:13:41]Read from MH i2c: 01 07 00 70 28 00 00 00 00 00 E3 0C 8E [22:13:41]RasterBufferAndPrint [22:13:41]line [22:13:41]line [22:13:41]line [22:13:41]line [22:13:41]line [22:13:41]written 0, free lines is 3305 [22:13:41]MH_Cut [22:13:41]Write to MH i2c: D1 01 00 77 28 01 71 [22:13:41]Write i2c OK [22:13:41]MH_I2C_Read... [22:13:41]Read from MH i2c: D1 [22:13:41]MH_I2C_Read... [22:13:41]Read from MH i2c: D1 01 00 [22:13:41]MH_I2C_Read... [22:13:41]Read from MH i2c: D1 01 00 77 28 00 70 [22:13:41]Write to MH i2c: 01 00 00 78 28 A0 [22:13:41]Write i2c OK [22:13:41]MH_I2C_Read... [22:13:41]OFD Sender: No OFD packet to send [22:13:42]*** Cut start [22:13:42]*** Purtial cut [22:13:42]*** CUTSNS_PIN = 0 [22:13:42]*** Stage 1: CUTSNS_PIN = 1 [22:13:44]Read from MH i2c: 01 [22:13:44]MH_I2C_Read... [22:13:44]*** Stop cut motor [22:13:44]*** Cut end [22:13:44]Read from MH i2c: 01 07 00 [22:13:44]MH_I2C_Read... [22:13:44]Read from MH i2c: 01 07 00 78 28 00 00 00 00 00 FF 0F B5 [22:13:44]process_action close_receipt done [22:13:44]requested_data is exist [22:13:44]produce_requested_data [22:13:44]requested_item fm.sn is exist - process it [22:13:44]wFMCommunicate request_size=4 [22:13:44]MH_SAM_APDU [22:13:44]CAPDU: 80 11 00 00 [22:13:44]Write to MH i2c: E2 08 00 79 28 80 11 00 00 00 00 00 00 1B [22:13:44]Write i2c OK [22:13:44]MH_I2C_Read... [22:13:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:13:44]Read from MH i2c: E2 [22:13:44]MH_I2C_Read... [22:13:44]Read from MH i2c: E2 17 00 [22:13:44]MH_I2C_Read... [22:13:44]Read from MH i2c: E2 17 00 79 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 71 [22:13:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:13:44]wFMCommunicate OK [22:13:44]requested_item fd.num is exist - process it [22:13:44]SAM_PROTO_GetFieldsCounters [22:13:44]wFMCommunicate request_size=4 [22:13:44]MH_SAM_APDU [22:13:44]CAPDU: 80 13 00 00 [22:13:44]Write to MH i2c: E2 08 00 7A 28 80 13 00 00 00 00 00 00 1E [22:13:44]Write i2c OK [22:13:44]MH_I2C_Read... [22:13:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:13:44]Read from MH i2c: E2 [22:13:44]MH_I2C_Read... [22:13:44]Read from MH i2c: E2 62 00 [22:13:44]MH_I2C_Read... [22:13:44]Read from MH i2c: E2 62 00 7A 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F6 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [22:13:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F6 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:13:44]wFMCommunicate OK [22:13:44]SAM_PROTO_GetFieldsCounters done [22:13:44]requested_item shift.num is exist - process it [22:13:44]requested_item shift.opened is exist - process it [22:13:44]req_shift_opened [22:13:44]FM_GetShiftState [22:13:44]SAM_PROTO_GetShiftState [22:13:44]wFMCommunicate request_size=4 [22:13:44]MH_SAM_APDU [22:13:44]CAPDU: 80 13 01 00 [22:13:44]Write to MH i2c: E2 08 00 7B 28 80 13 01 00 00 00 00 00 20 [22:13:44]Write i2c OK [22:13:44]MH_I2C_Read... [22:13:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:13:44]Read from MH i2c: E2 [22:13:44]MH_I2C_Read... [22:13:44]Read from MH i2c: E2 0E 00 [22:13:44]MH_I2C_Read... [22:13:44]Read from MH i2c: E2 0E 00 7B 28 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 CC [22:13:44]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [22:13:44]wFMCommunicate OK [22:13:44]SAM_PROTO_GetShiftState done [22:13:44]FM_GetShiftState done [22:13:44]req_shift_opened done [22:13:44]requested_item shift.open_date is exist - process it [22:13:44]req_shift_open_date [22:13:44]req_shift_open_date done [22:13:44]produce_requested_data done [22:13:44]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67574,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [22:13:44]process_action_free close_receipt [22:13:44]json_value_free [22:13:44]json_value_free done [22:13:44]process_json_proto returns [22:13:44]Send response to host [22:13:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67574,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [22:13:44]free response buf [22:13:44]execute_script done [22:13:44]execute_script returns [22:13:44]free content buf [22:13:44]Sock 9.Close socket [22:13:44]Sock 9.Thread stoped [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:10]accept exits with 8 [22:15:10]New connection [22:15:10]New thread 3067182436 created [22:15:10]Thread 3067039076 joined [22:15:10]Waiting for new connection... [22:15:10] Sock 8.Parse request [22:15:10]Sock 8.Check first char [22:15:10]Sock 8.First char is OK [22:15:10]request: POST /json_proto HTTP/1.0 [22:15:10]Method: POST [22:15:10]URL: /json_proto [22:15:10]Method is POST - this is cgi request [22:15:10]url: /json_proto [22:15:10]query_string will be loaded in cgi processing [22:15:10]execute_cgi json_proto POST (null) [22:15:10]execute_cgi path=json_proto method=POST [22:15:10]POST find Content-Length [22:15:10]Host: 172.17.41.195:8080 [22:15:10]Content-Length: 801 [22:15:10]Content-Type: application/json [22:15:10] [22:15:10]POST finish read [22:15:10]Found Content-Length = 801 [22:15:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507654", "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" : 74.70, "quantity" : 127.180, "sum" : 9500.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 9500.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:15:10]execute_script... [22:15: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)507654", "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" : 74.70, "quantity" : 127.180, "sum" : 9500.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 9500.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:15:10]POST & json_proto [22:15:10]process_json_proto [22:15:10]json parsed OK: [22:15:10]protocol is kg_v1.0 [22:15:10]action value=close_receipt [22:15:10]process_action close_receipt [22:15:10]cmd_close_receipt [22:15:10]MH_GetDate [22:15:10]Write to MH i2c: F0 00 00 7C 28 93 [22:15:10]Write i2c OK [22:15:10]MH_I2C_Read... [22:15:10]Read from MH i2c: F0 [22:15:10]MH_I2C_Read... [22:15:10]Read from MH i2c: F0 09 00 [22:15:10]MH_I2C_Read... [22:15:10]Read from MH i2c: F0 09 00 7C 28 00 71 85 46 66 FC 21 6F 64 2E [22:15:10]GetLastDocTimeStamp 1715897621 [22:15:10]current date 1715897713 [22:15:10]FM_GetShiftState [22:15:10]SAM_PROTO_GetShiftState [22:15:10]wFMCommunicate request_size=4 [22:15:10]MH_SAM_APDU [22:15:10]CAPDU: 80 13 01 00 [22:15:10]Write to MH i2c: E2 08 00 7D 28 80 13 01 00 00 00 00 00 22 [22:15:10]Write i2c OK [22:15:10]MH_I2C_Read... [22:15:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:15:10]Read from MH i2c: E2 [22:15:10]MH_I2C_Read... [22:15:10]Read from MH i2c: E2 0E 00 [22:15:10]MH_I2C_Read... [22:15:10]Read from MH i2c: E2 0E 00 7D 28 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 CE [22:15:10]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [22:15:10]wFMCommunicate OK [22:15:10]SAM_PROTO_GetShiftState done [22:15:10]FM_GetShiftState done [22:15:10]opened in 1715818916 [22:15:10]opened+sec_in_day 1715905316 [22:15:10]quantity*price = 950034 [22:15:10]sum+1 = 950036 [22:15:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9500.35 НСП 1% : 84.07 НДС 12% : 1008.89 Наличными: 0.00 Безнал.: 9500.35 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 173 16.05.2024 22:15 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67575 ФПД: 242553091003862 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T221513&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67575&fm=242553091003862&tin=02508201610067®Number=0000000000091845&sum=950035 [22:15:12]StoreToDocumentArchive [22:15:12]shift 357 fd 67575 [22:15:12]save to /storage/0357/doc_00067575 [22:15:12]save last doc name /storage/0357/doc_00067575 to /storage/kkm_last_doc_name [22:15:12]save OK [22:15:12]Clear old archive folders... [22:15:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:15:12]tlvbuf is 017F7BC0 [22:15:12]SAM_PROTO_ClearQueue [22:15:12]wFMCommunicate request_size=4 [22:15:12]MH_SAM_APDU [22:15:12]CAPDU: 80 09 00 00 [22:15:12]Write to MH i2c: E2 08 00 8A 28 80 09 00 00 00 00 00 00 24 [22:15:12]Write i2c OK [22:15:12]MH_I2C_Read... [22:15:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:15:12]Read from MH i2c: E2 [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: E2 03 00 [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: E2 03 00 8A 28 00 90 00 26 [22:15:12]RAPDU: 90 00 [22:15:12]wFMCommunicate OK [22:15:12]SAM_PROTO_ClearQueue done [22:15:12]KKMCreateOFDPacket [22:15:12]OFDProtocolAddRootSTLVToBuf [22:15:12]FM_MakeSignedData [22:15:12]FM_MakeSignedData [22:15:12]SAM_PROTO_SignData [22:15:12]wFMCommunicate request_size=4 [22:15:12]MH_SAM_APDU [22:15:12]CAPDU: 80 0D 01 02 [22:15:12]Write to MH i2c: E2 08 00 8B 28 80 0D 01 02 00 00 00 00 2C [22:15:12]Write i2c OK [22:15:12]MH_I2C_Read... [22:15:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:15:12]Read from MH i2c: E2 [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: E2 03 00 [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: E2 03 00 8B 28 00 90 00 27 [22:15:12]RAPDU: 90 00 [22:15:12]wFMCommunicate OK [22:15:12]wFMCommunicate request_size=255 [22:15:12]MH_SAM_APDU [22:15: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 CC F0 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 13 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 13 7F 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 8A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 7F 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 71 85 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F7 07 01 00 35 04 06 00 DC 99 CA D4 [22:15:12]Write to MH i2c: E2 02 01 8C 28 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC F0 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 13 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 13 7F 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 8A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 7F 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 71 85 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F7 07 01 00 35 04 06 00 DC 99 CA D4 00 00 D8 [22:15:12]Write i2c OK [22:15:12]MH_I2C_Read... [22:15:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:15:12]Read from MH i2c: E2 [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: E2 03 00 [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: E2 03 00 8C 28 00 90 00 28 [22:15:12]RAPDU: 90 00 [22:15:12]wFMCommunicate OK [22:15:12]wFMCommunicate request_size=7 [22:15:12]MH_SAM_APDU [22:15:12]CAPDU: 80 0D 02 02 02 15 D6 [22:15:12]Write to MH i2c: E2 0A 00 8D 28 80 0D 02 02 02 00 15 D6 00 00 1E [22:15:12]Write i2c OK [22:15:12]MH_I2C_Read... [22:15:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:15:12]Read from MH i2c: E2 [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: E2 03 00 [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: E2 03 00 8D 28 00 90 00 29 [22:15:12]RAPDU: 90 00 [22:15:12]wFMCommunicate OK [22:15:12]wFMCommunicate request_size=4 [22:15:12]MH_SAM_APDU [22:15:12]CAPDU: 80 0D 03 02 [22:15:12]Write to MH i2c: E2 08 00 8E 28 80 0D 03 02 00 00 00 00 31 [22:15:12]Write i2c OK [22:15:12]MH_I2C_Read... [22:15:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:15:12]Read from MH i2c: E2 [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: E2 0B 00 [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: E2 0B 00 8E 28 00 3C 0E 0D 7D 7C CA BA 26 90 00 2C [22:15:12]RAPDU: 3C 0E 0D 7D 7C CA BA 26 90 00 [22:15:12]wFMCommunicate OK [22:15:12]SAM_PROTO_SignData done [22:15:12]FM_MakeSignedData done [22:15:12]CreateOFDProtocolMessage [22:15:12]wFMCommunicate request_size=4 [22:15:12]MH_SAM_APDU [22:15:12]CAPDU: 80 11 00 00 [22:15:12]Write to MH i2c: E2 08 00 8F 28 80 11 00 00 00 00 00 00 31 [22:15:12]Write i2c OK [22:15:12]MH_I2C_Read... [22:15:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:15:12]Read from MH i2c: E2 [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: E2 17 00 [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: E2 17 00 8F 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 87 [22:15:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:15:12]wFMCommunicate OK [22:15:12]CreateOFDProtocolMessage done [22:15:12]OFDSenderStorePacket 67575 [22:15:12]StoreOFDPacket docnum=67575 [22:15:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 EA F9 04 01 B6 74 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC F0 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 13 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 13 7F 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 8A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 7F 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 71 85 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F7 07 01 00 35 04 06 00 DC 99 CA D4 15 D6 3C 0E 0D 7D 7C CA BA 26 [22:15:12]CheckFolder [22:15:12]dirname=/storage/ofd_packets [22:15:12]CheckFolder done [22:15:12]ProducePacketName [22:15:12]name=ofd_packets/00067575 [22:15:12]NVStorageSaveData ofd_packets/00067575 [22:15:12]File name is /storage/ofd_packets/00067575 [22:15:12]Write 298 bytes [22:15:12]NVStorageSaveData done [22:15:12]OFDSenderStorePacket done [22:15:12]KKMCreateOFDPacket done [22:15:12]NVStorageSaveData kkm_last_timestamp [22:15:12]File name is /storage/kkm_last_timestamp [22:15:12]Write 4 bytes [22:15:12]NVStorageSaveData done [22:15:12]ExternCall_PrintAddStr [22:15:12]wPrintStart [22:15:12]Write to MH i2c: 01 00 00 90 28 B8 [22:15:12]Write i2c OK [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: 01 [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: 01 07 00 [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: 01 07 00 90 28 00 00 00 00 00 FF 0F CD [22:15:12]RasterBufferAndPrint [22:15:12]line Счет N : (1)507654 [22:15:12]line ИНН: 02508201610067 [22:15:12]line Контрольно-Кассовый Чек [22:15:12]line ПРОДАЖА [22:15:12]line ТРК (МРК, ГНК) : 11 [22:15:12]line Товар: 2710194210 [22:15:12]line ДТ-К-5 [22:15:12]line 127.180 * 74.70 [22:15:12]line = 9500.35 [22:15:12]line НДС 12% НСП 1% [22:15:12]line > о реализуемом товаре [22:15:12]line ИТОГО: 9500.35 [22:15:12]line НСП 1% : 84.07 [22:15:12]line НДС 12% : 1008.89 [22:15:12]line Наличными: 0.00 [22:15:12]line Безнал.: 9500.35 [22:15:12]line Место: АЗС № 91 "Партнер Нефть" [22:15:12]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [22:15:12]line СНО: Общий режим [22:15:12]line Чек 173 16.05.2024 22:15 [22:15:12]line Смена: 357 ФФД: 1.0 [22:15:12]line ЗНМ: 0300000119 [22:15:12]line РНМ: 0000000000091845 [22:15:12]line Версия ККМ: 001 [22:15:12]line Платежная система: O! деньги [22:15:12]line ФМ: 0000000000871829 [22:15:12]line ФД: 67575 [22:15:12]line ФПД: 242553091003862 [22:15:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T221513&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67575&fm=242553091003862&tin=02508201610067®Number=0000000000091845&sum=950035 [22:15:12]OFD Sender: Processing packet 67575 [packets to send 35, broken 34] [22:15:12]ProducePacketName [22:15:12]name=ofd_packets/00067575 [22:15:12]OFD Sender: To server: pG, [22:15:12]CommunicateWithHost lk.salyk.kg:30040 [22:15:12]ConnectInit lk.salyk.kg [22:15:12]written 0, free lines is 4095 [22:15:12]Connected sock=10 [22:15: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 38 32 39 0C 01 00 00 EA F9 04 01 B6 74 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC F0 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 13 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 13 7F 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 8A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 7F 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 71 85 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F7 07 01 00 35 04 06 00 DC 99 CA D4 15 D6 3C 0E 0D 7D 7C CA BA 26 [22:15:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 8F 27 47 00 DF E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F7 07 01 00 F4 03 04 00 4B 2D 46 66 B6 04 01 00 00 C0 24 29 BF 06 A5 B6 63 [22:15:13]CommunicateWithHost err = 0 [22:15:13]CheckOFDResponse [22:15:13]1017 (14) - 77093643461234 [22:15:13]1041 (16) - 0000000000871829 [22:15:13]1040 (4) - 67575 [22:15:13]1012 (4) - 16.05.2024 15:59 [22:15:13]1206 (1) - 0 [22:15:13]OFD Sender: Remove packet 67575 [22:15:13]ProducePacketName [22:15:13]name=ofd_packets/00067575 [22:15:13]NVStorageDeleteData [22:15:13]Write to MH i2c: 01 00 00 B9 28 E1 [22:15:13]Write i2c OK [22:15:13]MH_I2C_Read... [22:15:13]Read from MH i2c: 01 [22:15:13]MH_I2C_Read... [22:15:13]Read from MH i2c: 01 07 00 [22:15:13]MH_I2C_Read... [22:15:13]Read from MH i2c: 01 07 00 B9 28 00 00 00 00 00 DA 0C CE [22:15:13]RasterBufferAndPrint [22:15:13]line [22:15:13]line [22:15:13]line [22:15:13]line [22:15:13]line [22:15:13]written 0, free lines is 3297 [22:15:13]MH_Cut [22:15:13]Write to MH i2c: D1 01 00 C0 28 01 BA [22:15:13]Write i2c OK [22:15:13]MH_I2C_Read... [22:15:13]Read from MH i2c: D1 [22:15:13]MH_I2C_Read... [22:15:13]Read from MH i2c: D1 01 00 [22:15:13]MH_I2C_Read... [22:15:13]Read from MH i2c: D1 01 00 C0 28 00 B9 [22:15:13]Write to MH i2c: 01 00 00 C1 28 E9 [22:15:13]Write i2c OK [22:15:13]MH_I2C_Read... [22:15:13]OFD Sender: No OFD packet to send [22:15:14]*** Cut start [22:15:14]*** Purtial cut [22:15:14]*** Stage 1: CUTSNS_PIN = 1 [22:15:14]Read from MH i2c: 01 [22:15:14]MH_I2C_Read... [22:15:14]*** Stop cut motor [22:15:14]*** Cut end [22:15:14]Read from MH i2c: 01 07 00 [22:15:14]MH_I2C_Read... [22:15:14]Read from MH i2c: 01 07 00 C1 28 00 00 00 00 00 FF 0F FE [22:15:14]process_action close_receipt done [22:15:14]requested_data is exist [22:15:14]produce_requested_data [22:15:14]requested_item fm.sn is exist - process it [22:15:14]wFMCommunicate request_size=4 [22:15:14]MH_SAM_APDU [22:15:14]CAPDU: 80 11 00 00 [22:15:14]Write to MH i2c: E2 08 00 C2 28 80 11 00 00 00 00 00 00 64 [22:15:14]Write i2c OK [22:15:14]MH_I2C_Read... [22:15:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:15:14]Read from MH i2c: E2 [22:15:14]MH_I2C_Read... [22:15:14]Read from MH i2c: E2 17 00 [22:15:14]MH_I2C_Read... [22:15:14]Read from MH i2c: E2 17 00 C2 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BA [22:15:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:15:14]wFMCommunicate OK [22:15:14]requested_item fd.num is exist - process it [22:15:14]SAM_PROTO_GetFieldsCounters [22:15:14]wFMCommunicate request_size=4 [22:15:14]MH_SAM_APDU [22:15:14]CAPDU: 80 13 00 00 [22:15:14]Write to MH i2c: E2 08 00 C3 28 80 13 00 00 00 00 00 00 67 [22:15:14]Write i2c OK [22:15:14]MH_I2C_Read... [22:15:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:15:14]Read from MH i2c: E2 [22:15:14]MH_I2C_Read... [22:15:14]Read from MH i2c: E2 62 00 [22:15:14]MH_I2C_Read... [22:15:14]Read from MH i2c: E2 62 00 C3 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F7 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [22:15: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F7 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:15:14]wFMCommunicate OK [22:15:14]SAM_PROTO_GetFieldsCounters done [22:15:14]requested_item shift.num is exist - process it [22:15:14]requested_item shift.opened is exist - process it [22:15:14]req_shift_opened [22:15:14]FM_GetShiftState [22:15:14]SAM_PROTO_GetShiftState [22:15:14]wFMCommunicate request_size=4 [22:15:14]MH_SAM_APDU [22:15:14]CAPDU: 80 13 01 00 [22:15:14]Write to MH i2c: E2 08 00 C4 28 80 13 01 00 00 00 00 00 69 [22:15:14]Write i2c OK [22:15:14]MH_I2C_Read... [22:15:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:15:14]Read from MH i2c: E2 [22:15:14]MH_I2C_Read... [22:15:14]Read from MH i2c: E2 0E 00 [22:15:14]MH_I2C_Read... [22:15:14]Read from MH i2c: E2 0E 00 C4 28 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 15 [22:15:14]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [22:15:14]wFMCommunicate OK [22:15:14]SAM_PROTO_GetShiftState done [22:15:14]FM_GetShiftState done [22:15:14]req_shift_opened done [22:15:14]requested_item shift.open_date is exist - process it [22:15:14]req_shift_open_date [22:15:14]req_shift_open_date done [22:15:14]produce_requested_data done [22:15:14]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67575,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [22:15:14]process_action_free close_receipt [22:15:14]json_value_free [22:15:14]json_value_free done [22:15:14]process_json_proto returns [22:15:14]Send response to host [22:15:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67575,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [22:15:14]free response buf [22:15:14]execute_script done [22:15:14]execute_script returns [22:15:14]free content buf [22:15:14]Sock 8.Close socket [22:15:14]Sock 8.Thread stoped [22:15:18]OFD Sender: No OFD packet to send [22:15:23]OFD Sender: No OFD packet to send [22:15:28]OFD Sender: No OFD packet to send [22:15:33]OFD Sender: No OFD packet to send [22:15:38]OFD Sender: No OFD packet to send [22:15:43]OFD Sender: No OFD packet to send [22:15:48]OFD Sender: No OFD packet to send [22:15:53]OFD Sender: No OFD packet to send [22:15:58]OFD Sender: No OFD packet to send [22:16:03]OFD Sender: No OFD packet to send [22:16:08]OFD Sender: No OFD packet to send [22:16:13]OFD Sender: No OFD packet to send [22:16:18]OFD Sender: No OFD packet to send [22:16:23]OFD Sender: No OFD packet to send [22:16:28]OFD Sender: No OFD packet to send [22:16:33]OFD Sender: No OFD packet to send [22:16:38]OFD Sender: No OFD packet to send [22:16:43]OFD Sender: No OFD packet to send [22:16:48]OFD Sender: No OFD packet to send [22:16:53]OFD Sender: No OFD packet to send [22:16:58]OFD Sender: No OFD packet to send [22:17:03]OFD Sender: No OFD packet to send [22:17:08]OFD Sender: No OFD packet to send [22:17:13]OFD Sender: No OFD packet to send [22:17:18]OFD Sender: No OFD packet to send [22:17:23]OFD Sender: No OFD packet to send [22:17:28]OFD Sender: No OFD packet to send [22:17:33]OFD Sender: No OFD packet to send [22:17:35]accept exits with 9 [22:17:35]New connection [22:17:35]New thread 3067039076 created [22:17:35]Thread 3067182436 joined [22:17:35]Waiting for new connection... [22:17:35] Sock 9.Parse request [22:17:35]Sock 9.Check first char [22:17:35]Sock 9.First char is OK [22:17:35]request: POST /json_proto HTTP/1.0 [22:17:35]Method: POST [22:17:35]URL: /json_proto [22:17:35]Method is POST - this is cgi request [22:17:35]url: /json_proto [22:17:35]query_string will be loaded in cgi processing [22:17:35]execute_cgi json_proto POST (null) [22:17:35]execute_cgi path=json_proto method=POST [22:17:35]POST find Content-Length [22:17:35]Host: 172.17.41.195:8080 [22:17:35]Content-Length: 800 [22:17:35]Content-Type: application/json [22:17:35] [22:17:35]POST finish read [22:17:35]Found Content-Length = 800 [22:17:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507656", "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" : 74.70, "quantity" : 26.780, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:17:35]execute_script... [22: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)507656", "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" : 74.70, "quantity" : 26.780, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:17:35]POST & json_proto [22:17:35]process_json_proto [22:17:35]json parsed OK: [22:17:35]protocol is kg_v1.0 [22:17:35]action value=close_receipt [22:17:35]process_action close_receipt [22:17:35]cmd_close_receipt [22:17:35]MH_GetDate [22:17:35]Write to MH i2c: F0 00 00 C5 28 DC [22:17:35]Write i2c OK [22:17:35]MH_I2C_Read... [22:17:35]Read from MH i2c: F0 [22:17:35]MH_I2C_Read... [22:17:35]Read from MH i2c: F0 09 00 [22:17:35]MH_I2C_Read... [22:17:35]Read from MH i2c: F0 09 00 C5 28 00 02 86 46 66 FC 21 6F 64 09 [22:17:35]GetLastDocTimeStamp 1715897713 [22:17:35]current date 1715897858 [22:17:35]FM_GetShiftState [22:17:35]SAM_PROTO_GetShiftState [22:17:35]wFMCommunicate request_size=4 [22:17:35]MH_SAM_APDU [22:17:35]CAPDU: 80 13 01 00 [22:17:35]Write to MH i2c: E2 08 00 C6 28 80 13 01 00 00 00 00 00 6B [22:17:35]Write i2c OK [22:17:35]MH_I2C_Read... [22:17:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:17:35]Read from MH i2c: E2 [22:17:35]MH_I2C_Read... [22:17:35]Read from MH i2c: E2 0E 00 [22:17:35]MH_I2C_Read... [22:17:35]Read from MH i2c: E2 0E 00 C6 28 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 17 [22:17:35]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [22:17:35]wFMCommunicate OK [22:17:35]SAM_PROTO_GetShiftState done [22:17:35]FM_GetShiftState done [22:17:35]opened in 1715818916 [22:17:35]opened+sec_in_day 1715905316 [22:17:35]quantity*price = 200046 [22:17:35]sum+1 = 200048 [22:17:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.47 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 0.00 Безнал.: 2000.47 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 174 16.05.2024 22:17 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67576 ФПД: 93626108646115 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T221738&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67576&fm=93626108646115&tin=02508201610067®Number=0000000000091845&sum=200047 [22:17:36]StoreToDocumentArchive [22:17:36]shift 357 fd 67576 [22:17:36]save to /storage/0357/doc_00067576 [22:17:36]save last doc name /storage/0357/doc_00067576 to /storage/kkm_last_doc_name [22:17:36]save OK [22:17:36]Clear old archive folders... [22:17:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:17:36]tlvbuf is 01794E10 [22:17:36]SAM_PROTO_ClearQueue [22:17:36]wFMCommunicate request_size=4 [22:17:36]MH_SAM_APDU [22:17:36]CAPDU: 80 09 00 00 [22:17:36]Write to MH i2c: E2 08 00 D3 28 80 09 00 00 00 00 00 00 6D [22:17:36]Write i2c OK [22:17:36]MH_I2C_Read... [22:17:36]Read from MH i2c: E2 [22:17:36]MH_I2C_Read... [22:17:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:17:36]Read from MH i2c: E2 03 00 [22:17:36]MH_I2C_Read... [22:17:36]Read from MH i2c: E2 03 00 D3 28 00 90 00 6F [22:17:36]RAPDU: 90 00 [22:17:36]wFMCommunicate OK [22:17:36]SAM_PROTO_ClearQueue done [22:17:36]KKMCreateOFDPacket [22:17:36]OFDProtocolAddRootSTLVToBuf [22:17:36]FM_MakeSignedData [22:17:36]FM_MakeSignedData [22:17:36]SAM_PROTO_SignData [22:17:36]wFMCommunicate request_size=4 [22:17:36]MH_SAM_APDU [22:17:36]CAPDU: 80 0D 01 02 [22:17:36]Write to MH i2c: E2 08 00 D4 28 80 0D 01 02 00 00 00 00 75 [22:17:36]Write i2c OK [22:17:36]MH_I2C_Read... [22:17:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:17:36]Read from MH i2c: E2 [22:17:36]MH_I2C_Read... [22:17:36]Read from MH i2c: E2 03 00 [22:17:36]MH_I2C_Read... [22:17:36]Read from MH i2c: E2 03 00 D4 28 00 90 00 70 [22:17:36]RAPDU: 90 00 [22:17:36]wFMCommunicate OK [22:17:36]wFMCommunicate request_size=255 [22:17:36]MH_SAM_APDU [22:17: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 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 02 86 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F8 07 01 00 35 04 06 00 55 27 06 F2 [22:17:36]Write to MH i2c: E2 02 01 D5 28 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 02 86 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F8 07 01 00 35 04 06 00 55 27 06 F2 00 00 9D [22:17:36]Write i2c OK [22:17:36]MH_I2C_Read... [22:17:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:17:37]Read from MH i2c: E2 [22:17:37]MH_I2C_Read... [22:17:37]Read from MH i2c: E2 03 00 [22:17:37]MH_I2C_Read... [22:17:37]Read from MH i2c: E2 03 00 D5 28 00 90 00 71 [22:17:37]RAPDU: 90 00 [22:17:37]wFMCommunicate OK [22:17:37]wFMCommunicate request_size=7 [22:17:37]MH_SAM_APDU [22:17:37]CAPDU: 80 0D 02 02 02 92 E3 [22:17:37]Write to MH i2c: E2 0A 00 D6 28 80 0D 02 02 02 00 92 E3 00 00 F1 [22:17:37]Write i2c OK [22:17:37]MH_I2C_Read... [22:17:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:17:37]Read from MH i2c: E2 [22:17:37]MH_I2C_Read... [22:17:37]Read from MH i2c: E2 03 00 [22:17:37]MH_I2C_Read... [22:17:37]Read from MH i2c: E2 03 00 D6 28 00 90 00 72 [22:17:37]RAPDU: 90 00 [22:17:37]wFMCommunicate OK [22:17:37]wFMCommunicate request_size=4 [22:17:37]MH_SAM_APDU [22:17:37]CAPDU: 80 0D 03 02 [22:17:37]Write to MH i2c: E2 08 00 D7 28 80 0D 03 02 00 00 00 00 7A [22:17:37]Write i2c OK [22:17:37]MH_I2C_Read... [22:17:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:17:37]Read from MH i2c: E2 [22:17:37]MH_I2C_Read... [22:17:37]Read from MH i2c: E2 0B 00 [22:17:37]MH_I2C_Read... [22:17:37]Read from MH i2c: E2 0B 00 D7 28 00 70 30 52 F1 1A 8B 64 0F 90 00 76 [22:17:37]RAPDU: 70 30 52 F1 1A 8B 64 0F 90 00 [22:17:37]wFMCommunicate OK [22:17:37]SAM_PROTO_SignData done [22:17:37]FM_MakeSignedData done [22:17:37]CreateOFDProtocolMessage [22:17:37]wFMCommunicate request_size=4 [22:17:37]MH_SAM_APDU [22:17:37]CAPDU: 80 11 00 00 [22:17:37]Write to MH i2c: E2 08 00 D8 28 80 11 00 00 00 00 00 00 7A [22:17:37]Write i2c OK [22:17:37]MH_I2C_Read... [22:17:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:17:37]Read from MH i2c: E2 [22:17:37]MH_I2C_Read... [22:17:37]Read from MH i2c: E2 17 00 [22:17:37]MH_I2C_Read... [22:17:37]Read from MH i2c: E2 17 00 D8 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D0 [22:17:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:17:37]wFMCommunicate OK [22:17:37]CreateOFDProtocolMessage done [22:17:37]OFDSenderStorePacket 67576 [22:17:37]StoreOFDPacket docnum=67576 [22:17:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 CC E5 04 01 3E F8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 02 86 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F8 07 01 00 35 04 06 00 55 27 06 F2 92 E3 70 30 52 F1 1A 8B 64 0F [22:17:37]CheckFolder [22:17:37]dirname=/storage/ofd_packets [22:17:37]CheckFolder done [22:17:37]ProducePacketName [22:17:37]name=ofd_packets/00067576 [22:17:37]NVStorageSaveData ofd_packets/00067576 [22:17:37]File name is /storage/ofd_packets/00067576 [22:17:37]Write 298 bytes [22:17:37]NVStorageSaveData done [22:17:37]OFDSenderStorePacket done [22:17:37]KKMCreateOFDPacket done [22:17:37]NVStorageSaveData kkm_last_timestamp [22:17:37]File name is /storage/kkm_last_timestamp [22:17:37]Write 4 bytes [22:17:37]NVStorageSaveData done [22:17:37]ExternCall_PrintAddStr [22:17:37]wPrintStart [22:17:37]Write to MH i2c: 01 00 00 D9 28 01 [22:17:37]Write i2c OK [22:17:37]MH_I2C_Read... [22:17:37]Read from MH i2c: 01 [22:17:37]MH_I2C_Read... [22:17:37]Read from MH i2c: 01 07 00 [22:17:37]MH_I2C_Read... [22:17:37]Read from MH i2c: 01 07 00 D9 28 00 00 00 00 00 FF 0F 16 [22:17:37]RasterBufferAndPrint [22:17:37]line Счет N : (1)507656 [22:17:37]line ИНН: 02508201610067 [22:17:37]line Контрольно-Кассовый Чек [22:17:37]line ПРОДАЖА [22:17:37]line ТРК (МРК, ГНК) : 31 [22:17:37]line Товар: 2710194210 [22:17:37]line ДТ-К-5 [22:17:37]line 26.780 * 74.70 [22:17:37]line = 2000.47 [22:17:37]line НДС 12% НСП 1% [22:17:37]line > о реализуемом товаре [22:17:37]line ИТОГО: 2000.47 [22:17:37]line НСП 1% : 17.70 [22:17:37]line НДС 12% : 212.44 [22:17:37]line Наличными: 0.00 [22:17:37]line Безнал.: 2000.47 [22:17:37]line Место: АЗС № 91 "Партнер Нефть" [22:17:37]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [22:17:37]line СНО: Общий режим [22:17:37]line Чек 174 16.05.2024 22:17 [22:17:37]line Смена: 357 ФФД: 1.0 [22:17:37]line ЗНМ: 0300000119 [22:17:37]line РНМ: 0000000000091845 [22:17:37]line Версия ККМ: 001 [22:17:37]line Платежная система: O! деньги [22:17:37]line ФМ: 0000000000871829 [22:17:37]line ФД: 67576 [22:17:37]line ФПД: 93626108646115 [22:17:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T221738&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67576&fm=93626108646115&tin=02508201610067®Number=0000000000091845&sum=200047 [22:17:37]OFD Sender: Processing packet 67576 [packets to send 35, broken 34] [22:17:37]ProducePacketName [22:17:37]name=ofd_packets/00067576 [22:17:37]OFD Sender: To server: pG, [22:17:37]CommunicateWithHost lk.salyk.kg:30040 [22:17:37]ConnectInit lk.salyk.kg [22:17:37]written 0, free lines is 4095 [22:17:37]Connected sock=8 [22:17: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 38 32 39 0C 01 00 00 CC E5 04 01 3E F8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 02 86 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F8 07 01 00 35 04 06 00 55 27 06 F2 92 E3 70 30 52 F1 1A 8B 64 0F [22:17:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 B6 CF 47 00 16 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 38 32 39 10 04 04 00 F8 07 01 00 F4 03 04 00 DC 2D 46 66 B6 04 01 00 00 3E 07 0D 98 1F F1 CB 5B [22:17:37]CommunicateWithHost err = 0 [22:17:37]CheckOFDResponse [22:17:37]1017 (14) - 77093643461234 [22:17:37]1041 (16) - 0000000000871829 [22:17:37]1040 (4) - 67576 [22:17:37]1012 (4) - 16.05.2024 16:01 [22:17:37]1206 (1) - 0 [22:17:37]OFD Sender: Remove packet 67576 [22:17:37]ProducePacketName [22:17:37]name=ofd_packets/00067576 [22:17:37]NVStorageDeleteData [22:17:37]Write to MH i2c: 01 00 00 02 29 2B [22:17:37]Write i2c OK [22:17:37]MH_I2C_Read... [22:17:37]Read from MH i2c: 01 [22:17:37]MH_I2C_Read... [22:17:37]Read from MH i2c: 01 07 00 [22:17:37]MH_I2C_Read... [22:17:37]Read from MH i2c: 01 07 00 02 29 00 00 00 00 00 D1 0C 0F [22:17:37]RasterBufferAndPrint [22:17:37]line [22:17:37]line [22:17:37]line [22:17:37]line [22:17:37]line [22:17:37]written 0, free lines is 3288 [22:17:37]MH_Cut [22:17:37]Write to MH i2c: D1 01 00 09 29 01 04 [22:17:37]Write i2c OK [22:17:37]MH_I2C_Read... [22:17:37]Read from MH i2c: D1 [22:17:37]MH_I2C_Read... [22:17:37]Read from MH i2c: D1 01 00 [22:17:37]MH_I2C_Read... [22:17:37]Read from MH i2c: D1 01 00 09 29 00 03 [22:17:37]Write to MH i2c: 01 00 00 0A 29 33 [22:17:37]Write i2c OK [22:17:37]MH_I2C_Read... [22:17:38]OFD Sender: No OFD packet to send [22:17:38]*** Cut start [22:17:38]*** Purtial cut [22:17:38]*** CUTSNS_PIN = 0 [22:17:39]*** Stage 1: CUTSNS_PIN = 1 [22:17:40]Read from MH i2c: 01 [22:17:40]MH_I2C_Read... [22:17:40]*** Stop cut motor [22:17:40]*** Cut end [22:17:40]Read from MH i2c: 01 07 00 [22:17:40]MH_I2C_Read... [22:17:40]Read from MH i2c: 01 07 00 0A 29 00 00 00 00 00 FF 0F 48 [22:17:40]process_action close_receipt done [22:17:40]requested_data is exist [22:17:40]produce_requested_data [22:17:40]requested_item fm.sn is exist - process it [22:17:40]wFMCommunicate request_size=4 [22:17:40]MH_SAM_APDU [22:17:40]CAPDU: 80 11 00 00 [22:17:40]Write to MH i2c: E2 08 00 0B 29 80 11 00 00 00 00 00 00 AE [22:17:40]Write i2c OK [22:17:40]MH_I2C_Read... [22:17:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:17:40]Read from MH i2c: E2 [22:17:40]MH_I2C_Read... [22:17:40]Read from MH i2c: E2 17 00 [22:17:40]MH_I2C_Read... [22:17:40]Read from MH i2c: E2 17 00 0B 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 04 [22:17:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:17:40]wFMCommunicate OK [22:17:40]requested_item fd.num is exist - process it [22:17:40]SAM_PROTO_GetFieldsCounters [22:17:40]wFMCommunicate request_size=4 [22:17:40]MH_SAM_APDU [22:17:40]CAPDU: 80 13 00 00 [22:17:40]Write to MH i2c: E2 08 00 0C 29 80 13 00 00 00 00 00 00 B1 [22:17:40]Write i2c OK [22:17:40]MH_I2C_Read... [22:17:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:17:41]Read from MH i2c: E2 [22:17:41]MH_I2C_Read... [22:17:41]Read from MH i2c: E2 62 00 [22:17:41]MH_I2C_Read... [22:17:41]Read from MH i2c: E2 62 00 0C 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F8 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [22:17:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F8 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:17:41]wFMCommunicate OK [22:17:41]SAM_PROTO_GetFieldsCounters done [22:17:41]requested_item shift.num is exist - process it [22:17:41]requested_item shift.opened is exist - process it [22:17:41]req_shift_opened [22:17:41]FM_GetShiftState [22:17:41]SAM_PROTO_GetShiftState [22:17:41]wFMCommunicate request_size=4 [22:17:41]MH_SAM_APDU [22:17:41]CAPDU: 80 13 01 00 [22:17:41]Write to MH i2c: E2 08 00 0D 29 80 13 01 00 00 00 00 00 B3 [22:17:41]Write i2c OK [22:17:41]MH_I2C_Read... [22:17:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:17:41]Read from MH i2c: E2 [22:17:41]MH_I2C_Read... [22:17:41]Read from MH i2c: E2 0E 00 [22:17:41]MH_I2C_Read... [22:17:41]Read from MH i2c: E2 0E 00 0D 29 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 5F [22:17:41]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [22:17:41]wFMCommunicate OK [22:17:41]SAM_PROTO_GetShiftState done [22:17:41]FM_GetShiftState done [22:17:41]req_shift_opened done [22:17:41]requested_item shift.open_date is exist - process it [22:17:41]req_shift_open_date [22:17:41]req_shift_open_date done [22:17:41]produce_requested_data done [22:17:41]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67576,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [22:17:41]process_action_free close_receipt [22:17:41]json_value_free [22:17:41]json_value_free done [22:17:41]process_json_proto returns [22:17:41]Send response to host [22:17:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67576,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [22:17:41]free response buf [22:17:41]execute_script done [22:17:41]execute_script returns [22:17:41]free content buf [22:17:41]Sock 9.Close socket [22:17:41]Sock 9.Thread stoped [22:17:43]OFD Sender: No OFD packet to send [22:17:48]OFD Sender: No OFD packet to send [22:17:53]OFD Sender: No OFD packet to send [22:17:58]OFD Sender: No OFD packet to send [22:18:03]OFD Sender: No OFD packet to send [22:18:08]OFD Sender: No OFD packet to send [22:18:13]OFD Sender: No OFD packet to send [22:18:18]OFD Sender: No OFD packet to send [22:18:23]OFD Sender: No OFD packet to send [22:18:28]OFD Sender: No OFD packet to send [22:18:33]OFD Sender: No OFD packet to send [22:18:38]OFD Sender: No OFD packet to send [22:18:43]OFD Sender: No OFD packet to send [22:18:48]OFD Sender: No OFD packet to send [22:18:53]OFD Sender: No OFD packet to send [22:18:58]OFD Sender: No OFD packet to send [22:19:03]OFD Sender: No OFD packet to send [22:19:08]OFD Sender: No OFD packet to send [22:19:13]OFD Sender: No OFD packet to send [22:19:18]OFD Sender: No OFD packet to send [22:19:23]OFD Sender: No OFD packet to send [22:19:28]OFD Sender: No OFD packet to send [22:19:33]OFD Sender: No OFD packet to send [22:19:38]OFD Sender: No OFD packet to send [22:19:43]OFD Sender: No OFD packet to send [22:19:48]OFD Sender: No OFD packet to send [22:19:53]OFD Sender: No OFD packet to send [22:19:58]OFD Sender: No OFD packet to send [22:20:03]OFD Sender: No OFD packet to send [22:20:08]OFD Sender: No OFD packet to send [22:20:13]OFD Sender: No OFD packet to send [22:20:18]OFD Sender: No OFD packet to send [22:20:23]OFD Sender: No OFD packet to send [22:20:28]OFD Sender: No OFD packet to send [22:20:33]OFD Sender: No OFD packet to send [22:20:38]OFD Sender: No OFD packet to send [22:20:43]OFD Sender: No OFD packet to send [22:20:48]OFD Sender: No OFD packet to send [22:20:53]OFD Sender: No OFD packet to send [22:20:58]OFD Sender: No OFD packet to send [22:21:03]OFD Sender: No OFD packet to send [22:21:08]OFD Sender: No OFD packet to send [22:21:13]OFD Sender: No OFD packet to send [22:21:18]OFD Sender: No OFD packet to send [22:21:23]OFD Sender: No OFD packet to send [22:21:28]OFD Sender: No OFD packet to send [22:21:33]OFD Sender: No OFD packet to send [22:21:38]OFD Sender: No OFD packet to send [22:21:43]OFD Sender: No OFD packet to send [22:21:48]OFD Sender: No OFD packet to send [22:21:53]OFD Sender: No OFD packet to send [22:21:58]OFD Sender: No OFD packet to send [22:22:03]OFD Sender: No OFD packet to send [22:22:08]OFD Sender: No OFD packet to send [22:22:13]OFD Sender: No OFD packet to send [22:22:18]OFD Sender: No OFD packet to send [22:22:23]OFD Sender: No OFD packet to send [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:53]OFD Sender: No OFD packet to send [22:24:58]OFD Sender: No OFD packet to send [22:25:03]OFD Sender: No OFD packet to send [22:25:08]OFD Sender: No OFD packet to send [22:25:13]OFD Sender: No OFD packet to send [22:25:18]OFD Sender: No OFD packet to send [22:25:23]OFD Sender: No OFD packet to send [22:25:28]OFD Sender: No OFD packet to send [22:25:33]accept exits with 10 [22:25:33]New connection [22:25:33]New thread 3067182436 created [22:25:33]Thread 3067039076 joined [22:25:33]Waiting for new connection... [22:25:33] Sock 10.Parse request [22:25:33]Sock 10.Check first char [22:25:33]Sock 10.First char is OK [22:25:33]request: POST /json_proto HTTP/1.0 [22:25:33]Method: POST [22:25:33]URL: /json_proto [22:25:33]Method is POST - this is cgi request [22:25:33]url: /json_proto [22:25:33]query_string will be loaded in cgi processing [22:25:33]execute_cgi json_proto POST (null) [22:25:33]execute_cgi path=json_proto method=POST [22:25:33]POST find Content-Length [22:25:33]Host: 172.17.41.195:8080 [22:25:33]Content-Length: 1211 [22:25:33]Content-Type: application/json [22:25:33] [22:25:33]POST finish read [22:25:33]Found Content-Length = 1211 [22:25:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507657\u000A16.05.2024 22:08\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 7.490 x 66.80\u000A\u0418\u0422\u041E\u0413: 500.33\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750`\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:25:33]execute_script... [22:25:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507657\u000A16.05.2024 22:08\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 7.490 x 66.80\u000A\u0418\u0422\u041E\u0413: 500.33\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750`\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:25:33]POST & json_proto [22:25:33]process_json_proto [22:25:33]json parsed OK: [22:25:33]protocol is kg_v1.0 [22:25:33]action value=print_text [22:25:33]process_action print_text [22:25:33]cmd_print_text [22:25:33]ExternCall_PrintAddStr [22:25:33]wPrintStart [22:25:33]Write to MH i2c: 01 00 00 0E 29 37 [22:25:33]Write i2c OK [22:25:33]MH_I2C_Read... [22:25:33]Read from MH i2c: 01 [22:25:33]MH_I2C_Read... [22:25:33]Read from MH i2c: 01 07 00 [22:25:33]MH_I2C_Read... [22:25:33]Read from MH i2c: 01 07 00 0E 29 00 00 00 00 00 FF 0F 4C [22:25:33]RasterBufferAndPrint [22:25:33]line *****ТОВАРНЫЙ ЧЕК***** [22:25:33]line АЗС-91 [22:25:33]line Партнер нефть [22:25:33]line 02508201610067 [22:25:33]line Кассир : Пайзулдаева А. [22:25:33]line Счет N : (1)507657 [22:25:33]line 16.05.2024 22:08 [22:25:33]line ПРОДАЖА [22:25:33]line ТРК (МРК, ГНК): 33 [22:25:33]line Вид ГСМ : 2710124130 [22:25:33]line Аи-92-К-5 [22:25:33]line 7.490 x 66.80 [22:25:33]line ИТОГ: 500.33 [22:25:33]line Тип оплаты: Талоны: Топливная Карта [22:25:33]line 02750` [22:25:33]line ______________________ [22:25:33]line (подпись) [22:25:33]written 0, free lines is 4095 [22:25:33]Write to MH i2c: 01 00 00 22 29 4B [22:25:33]Write i2c OK [22:25:33]MH_I2C_Read... [22:25:33]Read from MH i2c: 01 [22:25:33]MH_I2C_Read... [22:25:33]Read from MH i2c: 01 07 00 [22:25:33]MH_I2C_Read... [22:25:33]Read from MH i2c: 01 07 00 22 29 00 00 00 00 00 12 0E 72 [22:25:33]RasterBufferAndPrint [22:25:33]line [22:25:33]line [22:25:33]line [22:25:33]line [22:25:33]line [22:25:33]written 0, free lines is 3604 [22:25:33]OFD Sender: No OFD packet to send [22:25:33]MH_Cut [22:25:33]Write to MH i2c: D1 01 00 29 29 01 24 [22:25:33]Write i2c OK [22:25:33]MH_I2C_Read... [22:25:33]Read from MH i2c: D1 [22:25:33]MH_I2C_Read... [22:25:33]Read from MH i2c: D1 01 00 [22:25:33]MH_I2C_Read... [22:25:33]Read from MH i2c: D1 01 00 29 29 00 23 [22:25:33]Write to MH i2c: 01 00 00 2A 29 53 [22:25:33]Write i2c OK [22:25:33]MH_I2C_Read... [22:25:34]*** Cut start [22:25:34]*** Purtial cut [22:25:34]*** Stage 1: CUTSNS_PIN = 1 [22:25:34]Read from MH i2c: 01 [22:25:34]MH_I2C_Read... [22:25:34]*** Stop cut motor [22:25:34]*** Cut end [22:25:34]Read from MH i2c: 01 07 00 [22:25:34]MH_I2C_Read... [22:25:34]Read from MH i2c: 01 07 00 2A 29 00 00 00 00 00 FF 0F 68 [22:25:34]process_action print_text done [22:25:34]requested_data is exist [22:25:34]produce_requested_data [22:25:34]requested_item fm.sn is exist - process it [22:25:34]wFMCommunicate request_size=4 [22:25:34]MH_SAM_APDU [22:25:34]CAPDU: 80 11 00 00 [22:25:34]Write to MH i2c: E2 08 00 2B 29 80 11 00 00 00 00 00 00 CE [22:25:34]Write i2c OK [22:25:34]MH_I2C_Read... [22:25:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:25:34]Read from MH i2c: E2 [22:25:34]MH_I2C_Read... [22:25:34]Read from MH i2c: E2 17 00 [22:25:34]MH_I2C_Read... [22:25:34]Read from MH i2c: E2 17 00 2B 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 24 [22:25:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:25:34]wFMCommunicate OK [22:25:34]requested_item fd.num is exist - process it [22:25:34]SAM_PROTO_GetFieldsCounters [22:25:34]wFMCommunicate request_size=4 [22:25:34]MH_SAM_APDU [22:25:34]CAPDU: 80 13 00 00 [22:25:34]Write to MH i2c: E2 08 00 2C 29 80 13 00 00 00 00 00 00 D1 [22:25:34]Write i2c OK [22:25:34]MH_I2C_Read... [22:25:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:25:34]Read from MH i2c: E2 [22:25:34]MH_I2C_Read... [22:25:34]Read from MH i2c: E2 62 00 [22:25:34]MH_I2C_Read... [22:25:34]Read from MH i2c: E2 62 00 2C 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F8 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [22:25: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F8 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:25:34]wFMCommunicate OK [22:25:34]SAM_PROTO_GetFieldsCounters done [22:25:34]requested_item shift.num is exist - process it [22:25:34]requested_item shift.opened is exist - process it [22:25:34]req_shift_opened [22:25:34]FM_GetShiftState [22:25:34]SAM_PROTO_GetShiftState [22:25:34]wFMCommunicate request_size=4 [22:25:34]MH_SAM_APDU [22:25:34]CAPDU: 80 13 01 00 [22:25:34]Write to MH i2c: E2 08 00 2D 29 80 13 01 00 00 00 00 00 D3 [22:25:34]Write i2c OK [22:25:34]MH_I2C_Read... [22:25:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:25:34]Read from MH i2c: E2 [22:25:34]MH_I2C_Read... [22:25:34]Read from MH i2c: E2 0E 00 [22:25:34]MH_I2C_Read... [22:25:34]Read from MH i2c: E2 0E 00 2D 29 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 7F [22:25:34]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [22:25:34]wFMCommunicate OK [22:25:34]SAM_PROTO_GetShiftState done [22:25:34]FM_GetShiftState done [22:25:34]req_shift_opened done [22:25:34]requested_item shift.open_date is exist - process it [22:25:34]req_shift_open_date [22:25:34]req_shift_open_date done [22:25:34]produce_requested_data done [22:25:34]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67576,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [22:25:34]process_action_free print_text [22:25:34]json_value_free [22:25:34]json_value_free done [22:25:34]process_json_proto returns [22:25:34]Send response to host [22:25:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67576,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [22:25:34]free response buf [22:25:34]execute_script done [22:25:34]execute_script returns [22:25:34]free content buf [22:25:34]Sock 10.Close socket [22:25:34]Sock 10.Thread stoped [22:25:38]OFD Sender: No OFD packet to send [22:25:43]OFD Sender: No OFD packet to send [22:25:48]OFD Sender: No OFD packet to send [22:25:53]OFD Sender: No OFD packet to send [22:25:58]OFD Sender: No OFD packet to send [22:26:03]OFD Sender: No OFD packet to send [22:26:08]OFD Sender: No OFD packet to send [22:26:13]OFD Sender: No OFD packet to send [22:26:18]OFD Sender: No OFD packet to send [22:26:23]OFD Sender: No OFD packet to send [22:26:28]OFD Sender: No OFD packet to send [22:26:33]OFD Sender: No OFD packet to send [22:26:38]OFD Sender: No OFD packet to send [22:26:41]accept exits with 8 [22:26:41]New connection [22:26:41]New thread 3067039076 created [22:26:41]Thread 3067182436 joined [22:26:41]Waiting for new connection... [22:26:41] Sock 8.Parse request [22:26:41]Sock 8.Check first char [22:26:41]Sock 8.First char is OK [22:26:41]request: POST /json_proto HTTP/1.0 [22:26:41]Method: POST [22:26:41]URL: /json_proto [22:26:41]Method is POST - this is cgi request [22:26:41]url: /json_proto [22:26:41]query_string will be loaded in cgi processing [22:26:41]execute_cgi json_proto POST (null) [22:26:41]execute_cgi path=json_proto method=POST [22:26:41]POST find Content-Length [22:26:41]Host: 172.17.41.195:8080 [22:26:41]Content-Length: 796 [22:26:41]Content-Type: application/json [22:26:41] [22:26:41]POST finish read [22:26:41]Found Content-Length = 796 [22:26:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:26:41]execute_script... [22:26: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)507658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:26:41]POST & json_proto [22:26:41]process_json_proto [22:26:41]json parsed OK: [22:26:41]protocol is kg_v1.0 [22:26:41]action value=close_receipt [22:26:41]process_action close_receipt [22:26:41]cmd_close_receipt [22:26:41]MH_GetDate [22:26:41]Write to MH i2c: F0 00 00 2E 29 46 [22:26:41]Write i2c OK [22:26:41]MH_I2C_Read... [22:26:41]Read from MH i2c: F0 [22:26:41]MH_I2C_Read... [22:26:41]Read from MH i2c: F0 09 00 [22:26:41]MH_I2C_Read... [22:26:41]Read from MH i2c: F0 09 00 2E 29 00 24 88 46 66 FC 21 6F 64 97 [22:26:41]GetLastDocTimeStamp 1715897858 [22:26:41]current date 1715898404 [22:26:41]FM_GetShiftState [22:26:41]SAM_PROTO_GetShiftState [22:26:41]wFMCommunicate request_size=4 [22:26:41]MH_SAM_APDU [22:26:41]CAPDU: 80 13 01 00 [22:26:41]Write to MH i2c: E2 08 00 2F 29 80 13 01 00 00 00 00 00 D5 [22:26:41]Write i2c OK [22:26:41]MH_I2C_Read... [22:26:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:26:41]Read from MH i2c: E2 [22:26:41]MH_I2C_Read... [22:26:41]Read from MH i2c: E2 0E 00 [22:26:41]MH_I2C_Read... [22:26:41]Read from MH i2c: E2 0E 00 2F 29 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 81 [22:26:41]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [22:26:41]wFMCommunicate OK [22:26:41]SAM_PROTO_GetShiftState done [22:26:41]FM_GetShiftState done [22:26:41]opened in 1715818916 [22:26:41]opened+sec_in_day 1715905316 [22:26:41]quantity*price = 200010 [22:26:41]sum+1 = 200011 [22:26:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.10 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 0.00 Безнал.: 2000.10 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 175 16.05.2024 22:26 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67577 ФПД: 144853913088929 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T222644&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67577&fm=144853913088929&tin=02508201610067®Number=0000000000091845&sum=200010 [22:26:42]StoreToDocumentArchive [22:26:42]shift 357 fd 67577 [22:26:42]save to /storage/0357/doc_00067577 [22:26:42]save last doc name /storage/0357/doc_00067577 to /storage/kkm_last_doc_name [22:26:42]save OK [22:26:42]Clear old archive folders... [22:26:42]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:26:42]tlvbuf is 017E8470 [22:26:42]SAM_PROTO_ClearQueue [22:26:42]wFMCommunicate request_size=4 [22:26:42]MH_SAM_APDU [22:26:42]CAPDU: 80 09 00 00 [22:26:42]Write to MH i2c: E2 08 00 3C 29 80 09 00 00 00 00 00 00 D7 [22:26:42]Write i2c OK [22:26:42]MH_I2C_Read... [22:26:42]Read from MH i2c: E2 [22:26:42]MH_I2C_Read... [22:26:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:26:42]Read from MH i2c: E2 03 00 [22:26:42]MH_I2C_Read... [22:26:42]Read from MH i2c: E2 03 00 3C 29 00 90 00 D9 [22:26:42]RAPDU: 90 00 [22:26:42]wFMCommunicate OK [22:26:42]SAM_PROTO_ClearQueue done [22:26:42]KKMCreateOFDPacket [22:26:42]OFDProtocolAddRootSTLVToBuf [22:26:42]FM_MakeSignedData [22:26:42]FM_MakeSignedData [22:26:42]SAM_PROTO_SignData [22:26:42]wFMCommunicate request_size=4 [22:26:42]MH_SAM_APDU [22:26:42]CAPDU: 80 0D 01 02 [22:26:42]Write to MH i2c: E2 08 00 3D 29 80 0D 01 02 00 00 00 00 DF [22:26:42]Write i2c OK [22:26:42]MH_I2C_Read... [22:26:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:26:42]Read from MH i2c: E2 [22:26:42]MH_I2C_Read... [22:26:42]Read from MH i2c: E2 03 00 [22:26:42]MH_I2C_Read... [22:26:42]Read from MH i2c: E2 03 00 3D 29 00 90 00 DA [22:26:42]RAPDU: 90 00 [22:26:42]wFMCommunicate OK [22:26:42]wFMCommunicate request_size=255 [22:26:42]MH_SAM_APDU [22:26:42]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 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 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 24 88 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F9 07 01 00 35 04 06 00 [22:26:42]Write to MH i2c: E2 02 01 3E 29 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 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 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 24 88 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F9 07 01 00 35 04 06 00 00 00 13 [22:26:42]Write i2c OK [22:26:42]MH_I2C_Read... [22:26:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:42]Read from MH i2c: E2 [22:26:42]MH_I2C_Read... [22:26:42]Read from MH i2c: E2 03 00 [22:26:42]MH_I2C_Read... [22:26:42]Read from MH i2c: E2 03 00 3E 29 00 90 00 DB [22:26:42]RAPDU: 90 00 [22:26:42]wFMCommunicate OK [22:26:42]wFMCommunicate request_size=11 [22:26:42]MH_SAM_APDU [22:26:42]CAPDU: 80 0D 02 02 06 83 BE 6E 08 B3 A1 [22:26:42]Write to MH i2c: E2 0E 00 3F 29 80 0D 02 02 06 00 83 BE 6E 08 B3 A1 00 00 F9 [22:26:42]Write i2c OK [22:26:42]MH_I2C_Read... [22:26:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:42]Read from MH i2c: E2 [22:26:42]MH_I2C_Read... [22:26:42]Read from MH i2c: E2 03 00 [22:26:42]MH_I2C_Read... [22:26:42]Read from MH i2c: E2 03 00 3F 29 00 90 00 DC [22:26:42]RAPDU: 90 00 [22:26:42]wFMCommunicate OK [22:26:42]wFMCommunicate request_size=4 [22:26:42]MH_SAM_APDU [22:26:42]CAPDU: 80 0D 03 02 [22:26:42]Write to MH i2c: E2 08 00 40 29 80 0D 03 02 00 00 00 00 E4 [22:26:42]Write i2c OK [22:26:42]MH_I2C_Read... [22:26:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:26:43]Read from MH i2c: E2 [22:26:43]MH_I2C_Read... [22:26:43]Read from MH i2c: E2 0B 00 [22:26:43]MH_I2C_Read... [22:26:43]Read from MH i2c: E2 0B 00 40 29 00 75 AA 4B 27 A0 49 C2 BE 90 00 DF [22:26:43]RAPDU: 75 AA 4B 27 A0 49 C2 BE 90 00 [22:26:43]wFMCommunicate OK [22:26:43]SAM_PROTO_SignData done [22:26:43]FM_MakeSignedData done [22:26:43]CreateOFDProtocolMessage [22:26:43]wFMCommunicate request_size=4 [22:26:43]MH_SAM_APDU [22:26:43]CAPDU: 80 11 00 00 [22:26:43]Write to MH i2c: E2 08 00 41 29 80 11 00 00 00 00 00 00 E4 [22:26:43]Write i2c OK [22:26:43]MH_I2C_Read... [22:26:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:26:43]Read from MH i2c: E2 [22:26:43]MH_I2C_Read... [22:26:43]Read from MH i2c: E2 17 00 [22:26:43]MH_I2C_Read... [22:26:43]Read from MH i2c: E2 17 00 41 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3A [22:26:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:26:43]wFMCommunicate OK [22:26:43]CreateOFDProtocolMessage done [22:26:43]OFDSenderStorePacket 67577 [22:26:43]StoreOFDPacket docnum=67577 [22:26:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 0F 44 08 01 98 D3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 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 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 24 88 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F9 07 01 00 35 04 06 00 83 BE 6E 08 B3 A1 75 AA 4B 27 A0 49 C2 BE [22:26:43]CheckFolder [22:26:43]dirname=/storage/ofd_packets [22:26:43]CheckFolder done [22:26:43]ProducePacketName [22:26:43]name=ofd_packets/00067577 [22:26:43]NVStorageSaveData ofd_packets/00067577 [22:26:43]File name is /storage/ofd_packets/00067577 [22:26:43]Write 302 bytes [22:26:43]NVStorageSaveData done [22:26:43]OFDSenderStorePacket done [22:26:43]KKMCreateOFDPacket done [22:26:43]NVStorageSaveData kkm_last_timestamp [22:26:43]File name is /storage/kkm_last_timestamp [22:26:43]Write 4 bytes [22:26:43]NVStorageSaveData done [22:26:43]ExternCall_PrintAddStr [22:26:43]wPrintStart [22:26:43]Write to MH i2c: 01 00 00 42 29 6B [22:26:43]Write i2c OK [22:26:43]MH_I2C_Read... [22:26:43]Read from MH i2c: 01 [22:26:43]MH_I2C_Read... [22:26:43]Read from MH i2c: 01 07 00 [22:26:43]MH_I2C_Read... [22:26:43]Read from MH i2c: 01 07 00 42 29 00 00 00 00 00 FF 0F 80 [22:26:43]RasterBufferAndPrint [22:26:43]line Счет N : (1)507658 [22:26:43]line ИНН: 02508201610067 [22:26:43]line Контрольно-Кассовый Чек [22:26:43]line ПРОДАЖА [22:26:43]line ТРК (МРК, ГНК) : 42 [22:26:43]line Товар: 2710124130 [22:26:43]line Super-92-К-5 [22:26:43]line 29.500 * 67.80 [22:26:43]line = 2000.10 [22:26:43]line НДС 12% НСП 1% [22:26:43]line > о реализуемом товаре [22:26:43]line ИТОГО: 2000.10 [22:26:43]line НСП 1% : 17.70 [22:26:43]line НДС 12% : 212.40 [22:26:43]line Наличными: 0.00 [22:26:43]line Безнал.: 2000.10 [22:26:43]line Место: АЗС № 91 "Партнер Нефть" [22:26:43]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [22:26:43]line СНО: Общий режим [22:26:43]line Чек 175 16.05.2024 22:26 [22:26:43]line Смена: 357 ФФД: 1.0 [22:26:43]line ЗНМ: 0300000119 [22:26:43]line РНМ: 0000000000091845 [22:26:43]line Версия ККМ: 001 [22:26:43]line Платежная система: O! деньги [22:26:43]line ФМ: 0000000000871829 [22:26:43]line ФД: 67577 [22:26:43]line ФПД: 144853913088929 [22:26:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T222644&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67577&fm=144853913088929&tin=02508201610067®Number=0000000000091845&sum=200010 [22:26:43]written 0, free lines is 4095 [22:26:43]OFD Sender: Processing packet 67577 [packets to send 35, broken 34] [22:26:43]ProducePacketName [22:26:43]name=ofd_packets/00067577 [22:26:43]OFD Sender: To server: pG, [22:26:43]CommunicateWithHost lk.salyk.kg:30040 [22:26:43]ConnectInit lk.salyk.kg [22:26:43]Connected sock=10 [22:26: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 38 32 39 10 01 00 00 0F 44 08 01 98 D3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 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 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 24 88 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F9 07 01 00 35 04 06 00 83 BE 6E 08 B3 A1 75 AA 4B 27 A0 49 C2 BE [22:26:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 63 29 47 00 45 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 38 32 39 10 04 04 00 F9 07 01 00 F4 03 04 00 FD 2F 46 66 B6 04 01 00 00 DF 56 A4 5D A4 B4 2B E6 [22:26:43]CommunicateWithHost err = 0 [22:26:43]CheckOFDResponse [22:26:43]1017 (14) - 77093643461234 [22:26:43]1041 (16) - 0000000000871829 [22:26:43]1040 (4) - 67577 [22:26:43]1012 (4) - 16.05.2024 16:10 [22:26:43]1206 (1) - 0 [22:26:43]OFD Sender: Remove packet 67577 [22:26:43]ProducePacketName [22:26:43]name=ofd_packets/00067577 [22:26:43]NVStorageDeleteData [22:26:43]Write to MH i2c: 01 00 00 6B 29 94 [22:26:43]Write i2c OK [22:26:43]MH_I2C_Read... [22:26:43]Read from MH i2c: 01 [22:26:43]MH_I2C_Read... [22:26:43]Read from MH i2c: 01 07 00 [22:26:43]MH_I2C_Read... [22:26:43]Read from MH i2c: 01 07 00 6B 29 00 00 00 00 00 EB 0C 92 [22:26:43]RasterBufferAndPrint [22:26:43]line [22:26:43]line [22:26:43]line [22:26:43]line [22:26:43]line [22:26:43]written 0, free lines is 3313 [22:26:43]MH_Cut [22:26:43]Write to MH i2c: D1 01 00 72 29 01 6D [22:26:43]Write i2c OK [22:26:43]MH_I2C_Read... [22:26:43]Read from MH i2c: D1 [22:26:43]MH_I2C_Read... [22:26:43]Read from MH i2c: D1 01 00 [22:26:43]MH_I2C_Read... [22:26:43]Read from MH i2c: D1 01 00 72 29 00 6C [22:26:43]Write to MH i2c: 01 00 00 73 29 9C [22:26:43]Write i2c OK [22:26:43]MH_I2C_Read... [22:26:43]OFD Sender: No OFD packet to send [22:26:44]*** Cut start [22:26:44]*** Purtial cut [22:26:44]*** CUTSNS_PIN = 0 [22:26:44]*** Stage 1: CUTSNS_PIN = 1 [22:26:46]Read from MH i2c: 01 [22:26:46]MH_I2C_Read... [22:26:46]*** Stop cut motor [22:26:46]*** Cut end [22:26:46]Read from MH i2c: 01 07 00 [22:26:46]MH_I2C_Read... [22:26:46]Read from MH i2c: 01 07 00 73 29 00 00 00 00 00 FF 0F B1 [22:26:46]process_action close_receipt done [22:26:46]requested_data is exist [22:26:46]produce_requested_data [22:26:46]requested_item fm.sn is exist - process it [22:26:46]wFMCommunicate request_size=4 [22:26:46]MH_SAM_APDU [22:26:46]CAPDU: 80 11 00 00 [22:26:46]Write to MH i2c: E2 08 00 74 29 80 11 00 00 00 00 00 00 17 [22:26:46]Write i2c OK [22:26:46]MH_I2C_Read... [22:26:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:26:46]Read from MH i2c: E2 [22:26:46]MH_I2C_Read... [22:26:46]Read from MH i2c: E2 17 00 [22:26:46]MH_I2C_Read... [22:26:46]Read from MH i2c: E2 17 00 74 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 6D [22:26:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:26:46]wFMCommunicate OK [22:26:46]requested_item fd.num is exist - process it [22:26:46]SAM_PROTO_GetFieldsCounters [22:26:46]wFMCommunicate request_size=4 [22:26:46]MH_SAM_APDU [22:26:46]CAPDU: 80 13 00 00 [22:26:46]Write to MH i2c: E2 08 00 75 29 80 13 00 00 00 00 00 00 1A [22:26:46]Write i2c OK [22:26:46]MH_I2C_Read... [22:26:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:26:46]Read from MH i2c: E2 [22:26:46]MH_I2C_Read... [22:26:46]Read from MH i2c: E2 62 00 [22:26:46]MH_I2C_Read... [22:26:46]Read from MH i2c: E2 62 00 75 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F9 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [22:26: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F9 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:26:46]wFMCommunicate OK [22:26:46]SAM_PROTO_GetFieldsCounters done [22:26:46]requested_item shift.num is exist - process it [22:26:46]requested_item shift.opened is exist - process it [22:26:46]req_shift_opened [22:26:46]FM_GetShiftState [22:26:46]SAM_PROTO_GetShiftState [22:26:46]wFMCommunicate request_size=4 [22:26:46]MH_SAM_APDU [22:26:46]CAPDU: 80 13 01 00 [22:26:46]Write to MH i2c: E2 08 00 76 29 80 13 01 00 00 00 00 00 1C [22:26:46]Write i2c OK [22:26:46]MH_I2C_Read... [22:26:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:26:46]Read from MH i2c: E2 [22:26:46]MH_I2C_Read... [22:26:46]Read from MH i2c: E2 0E 00 [22:26:46]MH_I2C_Read... [22:26:46]Read from MH i2c: E2 0E 00 76 29 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 C8 [22:26:46]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [22:26:46]wFMCommunicate OK [22:26:46]SAM_PROTO_GetShiftState done [22:26:46]FM_GetShiftState done [22:26:46]req_shift_opened done [22:26:46]requested_item shift.open_date is exist - process it [22:26:46]req_shift_open_date [22:26:46]req_shift_open_date done [22:26:46]produce_requested_data done [22:26:46]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67577,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [22:26:46]process_action_free close_receipt [22:26:46]json_value_free [22:26:46]json_value_free done [22:26:46]process_json_proto returns [22:26:46]Send response to host [22:26:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67577,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [22:26:46]free response buf [22:26:46]execute_script done [22:26:46]execute_script returns [22:26:46]free content buf [22:26:46]Sock 8.Close socket [22:26:46]Sock 8.Thread stoped [22:26:48]OFD Sender: No OFD packet to send [22:26:53]OFD Sender: No OFD packet to send [22:26:58]OFD Sender: No OFD packet to send [22:27:03]OFD Sender: No OFD packet to send [22:27:08]OFD Sender: No OFD packet to send [22:27:13]OFD Sender: No OFD packet to send [22:27:18]OFD Sender: No OFD packet to send [22:27:24]OFD Sender: No OFD packet to send [22:27:29]OFD Sender: No OFD packet to send [22:27:34]OFD Sender: No OFD packet to send [22:27:39]OFD Sender: No OFD packet to send [22:27:44]OFD Sender: No OFD packet to send [22:27:49]OFD Sender: No OFD packet to send [22:27:54]OFD Sender: No OFD packet to send [22:27:59]OFD Sender: No OFD packet to send [22:28:04]OFD Sender: No OFD packet to send [22:28:09]OFD Sender: No OFD packet to send [22:28:14]OFD Sender: No OFD packet to send [22:28:19]OFD Sender: No OFD packet to send [22:28:24]OFD Sender: No OFD packet to send [22:28:29]OFD Sender: No OFD packet to send [22:28:34]OFD Sender: No OFD packet to send [22:28:39]OFD Sender: No OFD packet to send [22:28:44]OFD Sender: No OFD packet to send [22:28:49]OFD Sender: No OFD packet to send [22:28:54]OFD Sender: No OFD packet to send [22:28:59]OFD Sender: No OFD packet to send [22:29:04]OFD Sender: No OFD packet to send [22:29:09]OFD Sender: No OFD packet to send [22:29:14]OFD Sender: No OFD packet to send [22:29:19]OFD Sender: No OFD packet to send [22:29:24]OFD Sender: No OFD packet to send [22:29:29]OFD Sender: No OFD packet to send [22:29:34]OFD Sender: No OFD packet to send [22:29:39]OFD Sender: No OFD packet to send [22:29:44]OFD Sender: No OFD packet to send [22:29:49]OFD Sender: No OFD packet to send [22:29:54]OFD Sender: No OFD packet to send [22:29:59]OFD Sender: No OFD packet to send [22:30:04]OFD Sender: No OFD packet to send [22:30:09]OFD Sender: No OFD packet to send [22:30:14]OFD Sender: No OFD packet to send [22:30:19]OFD Sender: No OFD packet to send [22:30:24]OFD Sender: No OFD packet to send [22:30: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:33]accept exits with 9 [22:31:33]New connection [22:31:33]New thread 3067182436 created [22:31:33]Thread 3067039076 joined [22:31:33]Waiting for new connection... [22:31:33] Sock 9.Parse request [22:31:33]Sock 9.Check first char [22:31:33]Sock 9.First char is OK [22:31:33]request: POST /json_proto HTTP/1.0 [22:31:33]Method: POST [22:31:33]URL: /json_proto [22:31:33]Method is POST - this is cgi request [22:31:33]url: /json_proto [22:31:33]query_string will be loaded in cgi processing [22:31:33]execute_cgi json_proto POST (null) [22:31:33]execute_cgi path=json_proto method=POST [22:31:33]POST find Content-Length [22:31:33]Host: 172.17.41.195:8080 [22:31:33]Content-Length: 800 [22:31:33]Content-Type: application/json [22:31:33] [22:31:33]POST finish read [22:31:33]Found Content-Length = 800 [22:31:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507659", "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" : 74.70, "quantity" : 20.090, "sum" : 1500.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.72 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:31:33]execute_script... [22:31: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)507659", "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" : 74.70, "quantity" : 20.090, "sum" : 1500.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.72 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:31:33]POST & json_proto [22:31:33]process_json_proto [22:31:33]json parsed OK: [22:31:33]protocol is kg_v1.0 [22:31:33]action value=close_receipt [22:31:33]process_action close_receipt [22:31:33]cmd_close_receipt [22:31:33]MH_GetDate [22:31:33]Write to MH i2c: F0 00 00 77 29 8F [22:31:33]Write i2c OK [22:31:33]MH_I2C_Read... [22:31:33]Read from MH i2c: F0 [22:31:33]MH_I2C_Read... [22:31:33]Read from MH i2c: F0 09 00 [22:31:33]MH_I2C_Read... [22:31:33]Read from MH i2c: F0 09 00 77 29 00 48 89 46 66 FC 21 6F 64 05 [22:31:33]GetLastDocTimeStamp 1715898404 [22:31:33]current date 1715898696 [22:31:33]FM_GetShiftState [22:31:33]SAM_PROTO_GetShiftState [22:31:33]wFMCommunicate request_size=4 [22:31:33]MH_SAM_APDU [22:31:33]CAPDU: 80 13 01 00 [22:31:33]Write to MH i2c: E2 08 00 78 29 80 13 01 00 00 00 00 00 1E [22:31:33]Write i2c OK [22:31:33]MH_I2C_Read... [22:31:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:31:33]Read from MH i2c: E2 [22:31:33]MH_I2C_Read... [22:31:33]Read from MH i2c: E2 0E 00 [22:31:33]MH_I2C_Read... [22:31:33]Read from MH i2c: E2 0E 00 78 29 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 CA [22:31:33]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [22:31:33]wFMCommunicate OK [22:31:33]SAM_PROTO_GetShiftState done [22:31:33]FM_GetShiftState done [22:31:33]opened in 1715818916 [22:31:33]opened+sec_in_day 1715905316 [22:31:33]quantity*price = 150072 [22:31:33]sum+1 = 150073 [22:31:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.72 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 0.00 Безнал.: 1500.72 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 176 16.05.2024 22:31 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67578 ФПД: 193025016487487 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T223136&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67578&fm=193025016487487&tin=02508201610067®Number=0000000000091845&sum=150072 [22:31:34]StoreToDocumentArchive [22:31:34]shift 357 fd 67578 [22:31:34]save to /storage/0357/doc_00067578 [22:31:34]save last doc name /storage/0357/doc_00067578 to /storage/kkm_last_doc_name [22:31:34]save OK [22:31:34]Clear old archive folders... [22:31:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:31:34]tlvbuf is 0177DBE0 [22:31:34]SAM_PROTO_ClearQueue [22:31:34]wFMCommunicate request_size=4 [22:31:34]MH_SAM_APDU [22:31:34]CAPDU: 80 09 00 00 [22:31:34]Write to MH i2c: E2 08 00 85 29 80 09 00 00 00 00 00 00 20 [22:31:34]Write i2c OK [22:31:34]MH_I2C_Read... [22:31:34]Read from MH i2c: E2 [22:31:34]MH_I2C_Read... [22:31:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:31:34]Read from MH i2c: E2 03 00 [22:31:34]MH_I2C_Read... [22:31:34]Read from MH i2c: E2 03 00 85 29 00 90 00 22 [22:31:34]RAPDU: 90 00 [22:31:34]wFMCommunicate OK [22:31:34]SAM_PROTO_ClearQueue done [22:31:34]KKMCreateOFDPacket [22:31:34]OFDProtocolAddRootSTLVToBuf [22:31:34]FM_MakeSignedData [22:31:34]FM_MakeSignedData [22:31:34]SAM_PROTO_SignData [22:31:34]wFMCommunicate request_size=4 [22:31:34]MH_SAM_APDU [22:31:34]CAPDU: 80 0D 01 02 [22:31:34]Write to MH i2c: E2 08 00 86 29 80 0D 01 02 00 00 00 00 28 [22:31:34]Write i2c OK [22:31:34]MH_I2C_Read... [22:31:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:31:34]Read from MH i2c: E2 [22:31:34]MH_I2C_Read... [22:31:34]Read from MH i2c: E2 03 00 [22:31:34]MH_I2C_Read... [22:31:34]Read from MH i2c: E2 03 00 86 29 00 90 00 23 [22:31:34]RAPDU: 90 00 [22:31:34]wFMCommunicate OK [22:31:34]wFMCommunicate request_size=255 [22:31:34]MH_SAM_APDU [22:31: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 7A 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 38 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 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 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 48 89 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FA 07 01 00 35 04 06 00 AF 8E 23 8A [22:31:34]Write to MH i2c: E2 02 01 87 29 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 38 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 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 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 48 89 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FA 07 01 00 35 04 06 00 AF 8E 23 8A 00 00 5C [22:31:34]Write i2c OK [22:31:34]MH_I2C_Read... [22:31:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:31:35]Read from MH i2c: E2 [22:31:35]MH_I2C_Read... [22:31:35]Read from MH i2c: E2 03 00 [22:31:35]MH_I2C_Read... [22:31:35]Read from MH i2c: E2 03 00 87 29 00 90 00 24 [22:31:35]RAPDU: 90 00 [22:31:35]wFMCommunicate OK [22:31:35]wFMCommunicate request_size=7 [22:31:35]MH_SAM_APDU [22:31:35]CAPDU: 80 0D 02 02 02 5E 3F [22:31:35]Write to MH i2c: E2 0A 00 88 29 80 0D 02 02 02 00 5E 3F 00 00 CC [22:31:35]Write i2c OK [22:31:35]MH_I2C_Read... [22:31:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:31:35]Read from MH i2c: E2 [22:31:35]MH_I2C_Read... [22:31:35]Read from MH i2c: E2 03 00 [22:31:35]MH_I2C_Read... [22:31:35]Read from MH i2c: E2 03 00 88 29 00 90 00 25 [22:31:35]RAPDU: 90 00 [22:31:35]wFMCommunicate OK [22:31:35]wFMCommunicate request_size=4 [22:31:35]MH_SAM_APDU [22:31:35]CAPDU: 80 0D 03 02 [22:31:35]Write to MH i2c: E2 08 00 89 29 80 0D 03 02 00 00 00 00 2D [22:31:35]Write i2c OK [22:31:35]MH_I2C_Read... [22:31:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:31:35]Read from MH i2c: E2 [22:31:35]MH_I2C_Read... [22:31:35]Read from MH i2c: E2 0B 00 [22:31:35]MH_I2C_Read... [22:31:35]Read from MH i2c: E2 0B 00 89 29 00 80 EF 00 32 A6 D9 06 25 90 00 79 [22:31:35]RAPDU: 80 EF 00 32 A6 D9 06 25 90 00 [22:31:35]wFMCommunicate OK [22:31:35]SAM_PROTO_SignData done [22:31:35]FM_MakeSignedData done [22:31:35]CreateOFDProtocolMessage [22:31:35]wFMCommunicate request_size=4 [22:31:35]MH_SAM_APDU [22:31:35]CAPDU: 80 11 00 00 [22:31:35]Write to MH i2c: E2 08 00 8A 29 80 11 00 00 00 00 00 00 2D [22:31:35]Write i2c OK [22:31:35]MH_I2C_Read... [22:31:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:31:35]Read from MH i2c: E2 [22:31:35]MH_I2C_Read... [22:31:35]Read from MH i2c: E2 17 00 [22:31:35]MH_I2C_Read... [22:31:35]Read from MH i2c: E2 17 00 8A 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 83 [22:31:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:31:35]wFMCommunicate OK [22:31:35]CreateOFDProtocolMessage done [22:31:35]OFDSenderStorePacket 67578 [22:31:35]StoreOFDPacket docnum=67578 [22:31:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 3C 07 04 01 88 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 7A 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 38 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 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 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 48 89 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FA 07 01 00 35 04 06 00 AF 8E 23 8A 5E 3F 80 EF 00 32 A6 D9 06 25 [22:31:35]CheckFolder [22:31:35]dirname=/storage/ofd_packets [22:31:35]CheckFolder done [22:31:35]ProducePacketName [22:31:35]name=ofd_packets/00067578 [22:31:35]NVStorageSaveData ofd_packets/00067578 [22:31:35]File name is /storage/ofd_packets/00067578 [22:31:35]Write 298 bytes [22:31:35]NVStorageSaveData done [22:31:35]OFDSenderStorePacket done [22:31:35]KKMCreateOFDPacket done [22:31:35]NVStorageSaveData kkm_last_timestamp [22:31:35]File name is /storage/kkm_last_timestamp [22:31:35]Write 4 bytes [22:31:35]NVStorageSaveData done [22:31:35]ExternCall_PrintAddStr [22:31:35]wPrintStart [22:31:35]Write to MH i2c: 01 00 00 8B 29 B4 [22:31:35]Write i2c OK [22:31:35]MH_I2C_Read... [22:31:35]Read from MH i2c: 01 [22:31:35]MH_I2C_Read... [22:31:35]Read from MH i2c: 01 07 00 [22:31:35]MH_I2C_Read... [22:31:35]Read from MH i2c: 01 07 00 8B 29 00 00 00 00 00 FF 0F C9 [22:31:35]RasterBufferAndPrint [22:31:35]line Счет N : (1)507659 [22:31:35]line ИНН: 02508201610067 [22:31:35]line Контрольно-Кассовый Чек [22:31:35]line ПРОДАЖА [22:31:35]line ТРК (МРК, ГНК) : 41 [22:31:35]line Товар: 2710194210 [22:31:35]line ДТ-К-5 [22:31:35]line 20.090 * 74.70 [22:31:35]line = 1500.72 [22:31:35]line НДС 12% НСП 1% [22:31:35]line > о реализуемом товаре [22:31:35]line ИТОГО: 1500.72 [22:31:35]line НСП 1% : 13.28 [22:31:35]line НДС 12% : 159.37 [22:31:35]line Наличными: 0.00 [22:31:35]line Безнал.: 1500.72 [22:31:35]line Место: АЗС № 91 "Партнер Нефть" [22:31:35]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [22:31:35]line СНО: Общий режим [22:31:35]line Чек 176 16.05.2024 22:31 [22:31:35]line Смена: 357 ФФД: 1.0 [22:31:35]line ЗНМ: 0300000119 [22:31:35]line РНМ: 0000000000091845 [22:31:35]line Версия ККМ: 001 [22:31:35]line Платежная система: O! деньги [22:31:35]line ФМ: 0000000000871829 [22:31:35]line ФД: 67578 [22:31:35]line ФПД: 193025016487487 [22:31:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T223136&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67578&fm=193025016487487&tin=02508201610067®Number=0000000000091845&sum=150072 [22:31:35]OFD Sender: Processing packet 67578 [packets to send 35, broken 34] [22:31:35]ProducePacketName [22:31:35]name=ofd_packets/00067578 [22:31:35]OFD Sender: To server: pG, [22:31:35]CommunicateWithHost lk.salyk.kg:30040 [22:31:35]ConnectInit lk.salyk.kg [22:31:35]written 0, free lines is 4095 [22:31:35]Connected sock=10 [22:31: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 38 32 39 0C 01 00 00 3C 07 04 01 88 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 7A 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 38 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 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 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 48 89 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FA 07 01 00 35 04 06 00 AF 8E 23 8A 5E 3F 80 EF 00 32 A6 D9 06 25 [22:31:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 59 1C 47 00 B2 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 38 32 39 10 04 04 00 FA 07 01 00 F4 03 04 00 22 31 46 66 B6 04 01 00 00 56 3B 8D 46 E1 BC EF 1A [22:31:35]CommunicateWithHost err = 0 [22:31:35]CheckOFDResponse [22:31:35]1017 (14) - 77093643461234 [22:31:35]1041 (16) - 0000000000871829 [22:31:35]1040 (4) - 67578 [22:31:35]1012 (4) - 16.05.2024 16:15 [22:31:35]1206 (1) - 0 [22:31:35]OFD Sender: Remove packet 67578 [22:31:35]ProducePacketName [22:31:35]name=ofd_packets/00067578 [22:31:35]NVStorageDeleteData [22:31:35]Write to MH i2c: 01 00 00 B4 29 DD [22:31:35]Write i2c OK [22:31:35]MH_I2C_Read... [22:31:35]Read from MH i2c: 01 [22:31:35]MH_I2C_Read... [22:31:35]Read from MH i2c: 01 07 00 [22:31:35]MH_I2C_Read... [22:31:35]Read from MH i2c: 01 07 00 B4 29 00 00 00 00 00 E2 0C D2 [22:31:35]RasterBufferAndPrint [22:31:35]line [22:31:35]line [22:31:35]line [22:31:35]line [22:31:35]line [22:31:35]written 0, free lines is 3303 [22:31:35]MH_Cut [22:31:35]Write to MH i2c: D1 01 00 BB 29 01 B6 [22:31:35]Write i2c OK [22:31:35]MH_I2C_Read... [22:31:35]Read from MH i2c: D1 [22:31:35]MH_I2C_Read... [22:31:35]Read from MH i2c: D1 01 00 [22:31:35]MH_I2C_Read... [22:31:35]Read from MH i2c: D1 01 00 BB 29 00 B5 [22:31:35]Write to MH i2c: 01 00 00 BC 29 E5 [22:31:35]Write i2c OK [22:31:35]MH_I2C_Read... [22:31:36]OFD Sender: No OFD packet to send [22:31:36]*** Cut start [22:31:36]*** Purtial cut [22:31:36]*** Stage 1: CUTSNS_PIN = 1 [22:31:37]Read from MH i2c: 01 [22:31:37]MH_I2C_Read... [22:31:37]*** Stop cut motor [22:31:37]*** Cut end [22:31:37]Read from MH i2c: 01 07 00 [22:31:37]MH_I2C_Read... [22:31:37]Read from MH i2c: 01 07 00 BC 29 00 00 00 00 00 FF 0F FA [22:31:37]process_action close_receipt done [22:31:37]requested_data is exist [22:31:37]produce_requested_data [22:31:37]requested_item fm.sn is exist - process it [22:31:37]wFMCommunicate request_size=4 [22:31:37]MH_SAM_APDU [22:31:37]CAPDU: 80 11 00 00 [22:31:37]Write to MH i2c: E2 08 00 BD 29 80 11 00 00 00 00 00 00 60 [22:31:37]Write i2c OK [22:31:37]MH_I2C_Read... [22:31:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:31:37]Read from MH i2c: E2 [22:31:37]MH_I2C_Read... [22:31:37]Read from MH i2c: E2 17 00 [22:31:37]MH_I2C_Read... [22:31:37]Read from MH i2c: E2 17 00 BD 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B6 [22:31:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:31:37]wFMCommunicate OK [22:31:37]requested_item fd.num is exist - process it [22:31:37]SAM_PROTO_GetFieldsCounters [22:31:37]wFMCommunicate request_size=4 [22:31:37]MH_SAM_APDU [22:31:37]CAPDU: 80 13 00 00 [22:31:37]Write to MH i2c: E2 08 00 BE 29 80 13 00 00 00 00 00 00 63 [22:31:37]Write i2c OK [22:31:37]MH_I2C_Read... [22:31:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:31:37]Read from MH i2c: E2 [22:31:37]MH_I2C_Read... [22:31:37]Read from MH i2c: E2 62 00 [22:31:37]MH_I2C_Read... [22:31:37]Read from MH i2c: E2 62 00 BE 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FA 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [22:31: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FA 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:31:37]wFMCommunicate OK [22:31:37]SAM_PROTO_GetFieldsCounters done [22:31:37]requested_item shift.num is exist - process it [22:31:37]requested_item shift.opened is exist - process it [22:31:37]req_shift_opened [22:31:37]FM_GetShiftState [22:31:37]SAM_PROTO_GetShiftState [22:31:37]wFMCommunicate request_size=4 [22:31:37]MH_SAM_APDU [22:31:37]CAPDU: 80 13 01 00 [22:31:37]Write to MH i2c: E2 08 00 BF 29 80 13 01 00 00 00 00 00 65 [22:31:37]Write i2c OK [22:31:37]MH_I2C_Read... [22:31:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:31:37]Read from MH i2c: E2 [22:31:37]MH_I2C_Read... [22:31:37]Read from MH i2c: E2 0E 00 [22:31:37]MH_I2C_Read... [22:31:37]Read from MH i2c: E2 0E 00 BF 29 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 11 [22:31:37]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [22:31:37]wFMCommunicate OK [22:31:37]SAM_PROTO_GetShiftState done [22:31:37]FM_GetShiftState done [22:31:37]req_shift_opened done [22:31:37]requested_item shift.open_date is exist - process it [22:31:37]req_shift_open_date [22:31:37]req_shift_open_date done [22:31:37]produce_requested_data done [22:31:37]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67578,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [22:31:37]process_action_free close_receipt [22:31:37]json_value_free [22:31:37]json_value_free done [22:31:37]process_json_proto returns [22:31:37]Send response to host [22:31:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67578,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [22:31:37]free response buf [22:31:37]execute_script done [22:31:37]execute_script returns [22:31:37]free content buf [22:31:37]Sock 9.Close socket [22:31:37]Sock 9.Thread stoped [22:31:41]OFD Sender: No OFD packet to send [22:31:46]OFD Sender: No OFD packet to send [22:31:51]OFD Sender: No OFD packet to send [22:31:56]OFD Sender: No OFD packet to send [22:32:01]OFD Sender: No OFD packet to send [22:32:06]OFD Sender: No OFD packet to send [22:32:11]OFD Sender: No OFD packet to send [22:32:16]OFD Sender: No OFD packet to send [22:32:21]OFD Sender: No OFD packet to send [22:32:26]OFD Sender: No OFD packet to send [22:32:31]OFD Sender: No OFD packet to send [22:32:36]OFD Sender: No OFD packet to send [22:32:41]OFD Sender: No OFD packet to send [22:32:46]OFD Sender: No OFD packet to send [22:32:51]OFD Sender: No OFD packet to send [22:32:56]OFD Sender: No OFD packet to send [22:33:01]OFD Sender: No OFD packet to send [22:33:06]OFD Sender: No OFD packet to send [22:33:11]OFD Sender: No OFD packet to send [22:33:16]OFD Sender: No OFD packet to send [22:33:21]OFD Sender: No OFD packet to send [22:33:26]OFD Sender: No OFD packet to send [22:33:31]OFD Sender: No OFD packet to send [22:33:36]OFD Sender: No OFD packet to send [22:33:41]OFD Sender: No OFD packet to send [22:33:46]OFD Sender: No OFD packet to send [22:33:51]OFD Sender: No OFD packet to send [22:33:56]OFD Sender: No OFD packet to send [22:34:01]OFD Sender: No OFD packet to send [22:34:06]OFD Sender: No OFD packet to send [22:34:11]OFD Sender: No OFD packet to send [22:34:16]OFD Sender: No OFD packet to send [22:34:21]OFD Sender: No OFD packet to send [22:34:26]OFD Sender: No OFD packet to send [22:34:31]OFD Sender: No OFD packet to send [22:34:36]OFD Sender: No OFD packet to send [22:34:41]OFD Sender: No OFD packet to send [22:34:46]OFD Sender: No OFD packet to send [22:34:51]OFD Sender: No OFD packet to send [22:34:56]OFD Sender: No OFD packet to send [22:35:01]OFD Sender: No OFD packet to send [22:35:06]OFD Sender: No OFD packet to send [22:35:11]OFD Sender: No OFD packet to send [22:35:16]OFD Sender: No OFD packet to send [22:35:21]OFD Sender: No OFD packet to send [22:35:26]OFD Sender: No OFD packet to send [22:35:31]OFD Sender: No OFD packet to send [22:35:34]accept exits with 8 [22:35:34]New connection [22:35:34]New thread 3067039076 created [22:35:34]Thread 3067182436 joined [22:35:34]Waiting for new connection... [22:35:34] Sock 8.Parse request [22:35:34]Sock 8.Check first char [22:35:34]Sock 8.First char is OK [22:35:34]request: POST /json_proto HTTP/1.0 [22:35:34]Method: POST [22:35:34]URL: /json_proto [22:35:34]Method is POST - this is cgi request [22:35:34]url: /json_proto [22:35:34]query_string will be loaded in cgi processing [22:35:34]execute_cgi json_proto POST (null) [22:35:34]execute_cgi path=json_proto method=POST [22:35:34]POST find Content-Length [22:35:34]Host: 172.17.41.195:8080 [22:35:34]Content-Length: 679 [22:35:34]Content-Type: application/json [22:35:34] [22:35:34]POST finish read [22:35:34]Found Content-Length = 679 [22:35:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507660", "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" : 74.70, "quantity" : 25.000, "sum" : 1867.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1867.00, "total" : 1867.00, "payments": [ { "type": 0, "sum" : 1867.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:35:34]execute_script... [22:35: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)507660", "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" : 74.70, "quantity" : 25.000, "sum" : 1867.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1867.00, "total" : 1867.00, "payments": [ { "type": 0, "sum" : 1867.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:35:34]POST & json_proto [22:35:34]process_json_proto [22:35:34]json parsed OK: [22:35:34]protocol is kg_v1.0 [22:35:34]action value=close_receipt [22:35:34]process_action close_receipt [22:35:34]cmd_close_receipt [22:35:34]MH_GetDate [22:35:34]Write to MH i2c: F0 00 00 C0 29 D8 [22:35:34]Write i2c OK [22:35:34]MH_I2C_Read... [22:35:34]Read from MH i2c: F0 [22:35:34]MH_I2C_Read... [22:35:34]Read from MH i2c: F0 09 00 [22:35:34]MH_I2C_Read... [22:35:34]Read from MH i2c: F0 09 00 C0 29 00 38 8A 46 66 FC 21 6F 64 3F [22:35:34]GetLastDocTimeStamp 1715898696 [22:35:34]current date 1715898936 [22:35:34]FM_GetShiftState [22:35:34]SAM_PROTO_GetShiftState [22:35:34]wFMCommunicate request_size=4 [22:35:34]MH_SAM_APDU [22:35:34]CAPDU: 80 13 01 00 [22:35:34]Write to MH i2c: E2 08 00 C1 29 80 13 01 00 00 00 00 00 67 [22:35:34]Write i2c OK [22:35:34]MH_I2C_Read... [22:35:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:35:34]Read from MH i2c: E2 [22:35:34]MH_I2C_Read... [22:35:34]Read from MH i2c: E2 0E 00 [22:35:34]MH_I2C_Read... [22:35:34]Read from MH i2c: E2 0E 00 C1 29 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 13 [22:35:34]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [22:35:34]wFMCommunicate OK [22:35:34]SAM_PROTO_GetShiftState done [22:35:34]FM_GetShiftState done [22:35:34]opened in 1715818916 [22:35:34]opened+sec_in_day 1715905316 [22:35:34]quantity*price = 186750 [22:35:34]sum+1 = 186751 [22:35:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 1867.00 Внесено: 1867.00 СДАЧА: 0.00 НСП 1% : 16.53 НДС 12% : 198.32 Наличными: 1867.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 177 16.05.2024 22:35 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67579 ФПД: 254876455674331 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T223537&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67579&fm=254876455674331&tin=02508201610067®Number=0000000000091845&sum=186700 [22:35:35]StoreToDocumentArchive [22:35:35]shift 357 fd 67579 [22:35:35]save to /storage/0357/doc_00067579 [22:35:35]save last doc name /storage/0357/doc_00067579 to /storage/kkm_last_doc_name [22:35:35]save OK [22:35:35]Clear old archive folders... [22:35:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:35:35]tlvbuf is B6EE0220 [22:35:35]SAM_PROTO_ClearQueue [22:35:35]wFMCommunicate request_size=4 [22:35:35]MH_SAM_APDU [22:35:35]CAPDU: 80 09 00 00 [22:35:35]Write to MH i2c: E2 08 00 CE 29 80 09 00 00 00 00 00 00 69 [22:35:35]Write i2c OK [22:35:35]MH_I2C_Read... [22:35:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:35:35]Read from MH i2c: E2 [22:35:35]MH_I2C_Read... [22:35:35]Read from MH i2c: E2 03 00 [22:35:35]MH_I2C_Read... [22:35:35]Read from MH i2c: E2 03 00 CE 29 00 90 00 6B [22:35:35]RAPDU: 90 00 [22:35:35]wFMCommunicate OK [22:35:35]SAM_PROTO_ClearQueue done [22:35:35]KKMCreateOFDPacket [22:35:35]OFDProtocolAddRootSTLVToBuf [22:35:35]FM_MakeSignedData [22:35:35]FM_MakeSignedData [22:35:35]SAM_PROTO_SignData [22:35:35]wFMCommunicate request_size=4 [22:35:35]MH_SAM_APDU [22:35:35]CAPDU: 80 0D 01 02 [22:35:35]Write to MH i2c: E2 08 00 CF 29 80 0D 01 02 00 00 00 00 71 [22:35:35]Write i2c OK [22:35:35]MH_I2C_Read... [22:35:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:35:35]Read from MH i2c: E2 [22:35:35]MH_I2C_Read... [22:35:35]Read from MH i2c: E2 03 00 [22:35:35]MH_I2C_Read... [22:35:35]Read from MH i2c: E2 03 00 CF 29 00 90 00 6C [22:35:35]RAPDU: 90 00 [22:35:35]wFMCommunicate OK [22:35:35]wFMCommunicate request_size=255 [22:35:35]MH_SAM_APDU [22:35: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 A8 61 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 7E D9 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C D9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 4D 00 00 00 00 07 04 06 00 4C D9 02 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 39 8A 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FB 07 01 00 35 04 06 00 E7 CF 0C 9A [22:35:35]Write to MH i2c: E2 02 01 D0 29 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 7E D9 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C D9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 4D 00 00 00 00 07 04 06 00 4C D9 02 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 39 8A 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FB 07 01 00 35 04 06 00 E7 CF 0C 9A 00 00 F3 [22:35:35]Write i2c OK [22:35:35]MH_I2C_Read... [22:35:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:35:35]Read from MH i2c: E2 [22:35:35]MH_I2C_Read... [22:35:35]Read from MH i2c: E2 03 00 [22:35:35]MH_I2C_Read... [22:35:35]Read from MH i2c: E2 03 00 D0 29 00 90 00 6D [22:35:35]RAPDU: 90 00 [22:35:35]wFMCommunicate OK [22:35:35]wFMCommunicate request_size=7 [22:35:35]MH_SAM_APDU [22:35:35]CAPDU: 80 0D 02 02 02 21 DB [22:35:35]Write to MH i2c: E2 0A 00 D1 29 80 0D 02 02 02 00 21 DB 00 00 74 [22:35:35]Write i2c OK [22:35:35]MH_I2C_Read... [22:35:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:35:35]Read from MH i2c: E2 [22:35:35]MH_I2C_Read... [22:35:35]Read from MH i2c: E2 03 00 [22:35:35]MH_I2C_Read... [22:35:35]Read from MH i2c: E2 03 00 D1 29 00 90 00 6E [22:35:35]RAPDU: 90 00 [22:35:35]wFMCommunicate OK [22:35:35]wFMCommunicate request_size=4 [22:35:35]MH_SAM_APDU [22:35:35]CAPDU: 80 0D 03 02 [22:35:35]Write to MH i2c: E2 08 00 D2 29 80 0D 03 02 00 00 00 00 76 [22:35:35]Write i2c OK [22:35:35]MH_I2C_Read... [22:35:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:35:35]Read from MH i2c: E2 [22:35:35]MH_I2C_Read... [22:35:35]Read from MH i2c: E2 0B 00 [22:35:35]MH_I2C_Read... [22:35:35]Read from MH i2c: E2 0B 00 D2 29 00 C2 E8 57 05 B1 58 61 00 90 00 E7 [22:35:35]RAPDU: C2 E8 57 05 B1 58 61 00 90 00 [22:35:35]wFMCommunicate OK [22:35:35]SAM_PROTO_SignData done [22:35:35]FM_MakeSignedData done [22:35:35]CreateOFDProtocolMessage [22:35:35]wFMCommunicate request_size=4 [22:35:35]MH_SAM_APDU [22:35:35]CAPDU: 80 11 00 00 [22:35:35]Write to MH i2c: E2 08 00 D3 29 80 11 00 00 00 00 00 00 76 [22:35:35]Write i2c OK [22:35:35]MH_I2C_Read... [22:35:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:35:35]Read from MH i2c: E2 [22:35:35]MH_I2C_Read... [22:35:35]Read from MH i2c: E2 17 00 [22:35:35]MH_I2C_Read... [22:35:35]Read from MH i2c: E2 17 00 D3 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 CC [22:35:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:35:35]wFMCommunicate OK [22:35:35]CreateOFDProtocolMessage done [22:35:35]OFDSenderStorePacket 67579 [22:35:35]StoreOFDPacket docnum=67579 [22:35:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 1B C8 04 01 E1 97 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 7E D9 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C D9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 4D 00 00 00 00 07 04 06 00 4C D9 02 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 39 8A 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FB 07 01 00 35 04 06 00 E7 CF 0C 9A 21 DB C2 E8 57 05 B1 58 61 00 [22:35:35]CheckFolder [22:35:35]dirname=/storage/ofd_packets [22:35:35]CheckFolder done [22:35:35]ProducePacketName [22:35:35]name=ofd_packets/00067579 [22:35:35]NVStorageSaveData ofd_packets/00067579 [22:35:35]File name is /storage/ofd_packets/00067579 [22:35:35]Write 298 bytes [22:35:35]NVStorageSaveData done [22:35:35]OFDSenderStorePacket done [22:35:35]KKMCreateOFDPacket done [22:35:35]NVStorageSaveData kkm_last_timestamp [22:35:35]File name is /storage/kkm_last_timestamp [22:35:35]Write 4 bytes [22:35:35]NVStorageSaveData done [22:35:35]ExternCall_PrintAddStr [22:35:35]wPrintStart [22:35:35]Write to MH i2c: 01 00 00 D4 29 FD [22:35:35]Write i2c OK [22:35:35]MH_I2C_Read... [22:35:35]Read from MH i2c: 01 [22:35:35]MH_I2C_Read... [22:35:35]Read from MH i2c: 01 07 00 [22:35:35]MH_I2C_Read... [22:35:35]Read from MH i2c: 01 07 00 D4 29 00 00 00 00 00 FF 0F 12 [22:35:35]RasterBufferAndPrint [22:35:35]line Счет N : (1)507660 [22:35:35]line ИНН: 02508201610067 [22:35:35]line Контрольно-Кассовый Чек [22:35:35]line ПРОДАЖА [22:35:35]line ТРК (МРК, ГНК) : 11 [22:35:35]line Товар: 2710194210 [22:35:35]line ДТ-К-5 [22:35:35]line 25.000 * 74.70 [22:35:35]line = 1867.50 [22:35:35]line НДС 12% НСП 1% [22:35:35]line > о реализуемом товаре [22:35:35]line ОКРУГЛЕНИЕ: -0.50 [22:35:35]line ИТОГО: 1867.00 [22:35:35]line Внесено: 1867.00 [22:35:35]line СДАЧА: 0.00 [22:35:35]line НСП 1% : 16.53 [22:35:35]line НДС 12% : 198.32 [22:35:35]line Наличными: 1867.00 [22:35:35]line Безнал.: 0.00 [22:35:35]line Место: АЗС № 91 "Партнер Нефть" [22:35:35]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [22:35:35]line СНО: Общий режим [22:35:35]line Чек 177 16.05.2024 22:35 [22:35:35]line Смена: 357 ФФД: 1.0 [22:35:35]line ЗНМ: 0300000119 [22:35:35]line РНМ: 0000000000091845 [22:35:35]line Версия ККМ: 001 [22:35:35]line ФМ: 0000000000871829 [22:35:35]line ФД: 67579 [22:35:35]line ФПД: 254876455674331 [22:35:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T223537&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67579&fm=254876455674331&tin=02508201610067®Number=0000000000091845&sum=186700 [22:35:36]OFD Sender: Processing packet 67579 [packets to send 35, broken 34] [22:35:36]ProducePacketName [22:35:36]name=ofd_packets/00067579 [22:35:36]OFD Sender: To server: pG, [22:35:36]CommunicateWithHost lk.salyk.kg:30040 [22:35:36]ConnectInit lk.salyk.kg [22:35:36]written 0, free lines is 4095 [22:35:36]Connected sock=10 [22:35: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 38 32 39 0C 01 00 00 1B C8 04 01 E1 97 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 7E D9 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C D9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 4D 00 00 00 00 07 04 06 00 4C D9 02 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 39 8A 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FB 07 01 00 35 04 06 00 E7 CF 0C 9A 21 DB C2 E8 57 05 B1 58 61 00 [22:35:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 AC 40 47 00 D4 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 38 32 39 10 04 04 00 FB 07 01 00 F4 03 04 00 12 32 46 66 B6 04 01 00 00 37 18 F8 02 71 D1 F1 9B [22:35:36]CommunicateWithHost err = 0 [22:35:36]CheckOFDResponse [22:35:36]1017 (14) - 77093643461234 [22:35:36]1041 (16) - 0000000000871829 [22:35:36]1040 (4) - 67579 [22:35:36]1012 (4) - 16.05.2024 16:19 [22:35:36]1206 (1) - 0 [22:35:36]OFD Sender: Remove packet 67579 [22:35:36]ProducePacketName [22:35:36]name=ofd_packets/00067579 [22:35:36]NVStorageDeleteData [22:35:36]Write to MH i2c: 01 00 00 FE 29 27 [22:35:36]Write i2c OK [22:35:36]MH_I2C_Read... [22:35:36]Read from MH i2c: 01 [22:35:36]MH_I2C_Read... [22:35:36]Read from MH i2c: 01 07 00 [22:35:36]MH_I2C_Read... [22:35:36]Read from MH i2c: 01 07 00 FE 29 00 00 00 00 00 DD 0C 17 [22:35:36]RasterBufferAndPrint [22:35:36]line [22:35:36]line [22:35:36]line [22:35:36]line [22:35:36]line [22:35:36]written 0, free lines is 3299 [22:35:36]MH_Cut [22:35:36]Write to MH i2c: D1 01 00 05 2A 01 01 [22:35:36]Write i2c OK [22:35:36]MH_I2C_Read... [22:35:36]Read from MH i2c: D1 [22:35:36]MH_I2C_Read... [22:35:36]Read from MH i2c: D1 01 00 [22:35:36]MH_I2C_Read... [22:35:36]Read from MH i2c: D1 01 00 05 2A 00 00 [22:35:36]Write to MH i2c: 01 00 00 06 2A 30 [22:35:36]Write i2c OK [22:35:36]MH_I2C_Read... [22:35:36]OFD Sender: No OFD packet to send [22:35:37]*** Cut start [22:35:37]*** Purtial cut [22:35:37]*** CUTSNS_PIN = 0 [22:35:37]*** Stage 1: CUTSNS_PIN = 1 [22:35:39]Read from MH i2c: 01 [22:35:39]MH_I2C_Read... [22:35:39]*** Stop cut motor [22:35:39]*** Cut end [22:35:39]Read from MH i2c: 01 07 00 [22:35:39]MH_I2C_Read... [22:35:39]Read from MH i2c: 01 07 00 06 2A 00 00 00 00 00 FF 0F 45 [22:35:39]process_action close_receipt done [22:35:39]requested_data is exist [22:35:39]produce_requested_data [22:35:39]requested_item fm.sn is exist - process it [22:35:39]wFMCommunicate request_size=4 [22:35:39]MH_SAM_APDU [22:35:39]CAPDU: 80 11 00 00 [22:35:39]Write to MH i2c: E2 08 00 07 2A 80 11 00 00 00 00 00 00 AB [22:35:39]Write i2c OK [22:35:39]MH_I2C_Read... [22:35:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:35:39]Read from MH i2c: E2 [22:35:39]MH_I2C_Read... [22:35:39]Read from MH i2c: E2 17 00 [22:35:39]MH_I2C_Read... [22:35:39]Read from MH i2c: E2 17 00 07 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 01 [22:35:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:35:39]wFMCommunicate OK [22:35:39]requested_item fd.num is exist - process it [22:35:39]SAM_PROTO_GetFieldsCounters [22:35:39]wFMCommunicate request_size=4 [22:35:39]MH_SAM_APDU [22:35:39]CAPDU: 80 13 00 00 [22:35:39]Write to MH i2c: E2 08 00 08 2A 80 13 00 00 00 00 00 00 AE [22:35:39]Write i2c OK [22:35:39]MH_I2C_Read... [22:35:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:35:39]Read from MH i2c: E2 [22:35:39]MH_I2C_Read... [22:35:39]Read from MH i2c: E2 62 00 [22:35:39]MH_I2C_Read... [22:35:39]Read from MH i2c: E2 62 00 08 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FB 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [22:35: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FB 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:35:39]wFMCommunicate OK [22:35:39]SAM_PROTO_GetFieldsCounters done [22:35:39]requested_item shift.num is exist - process it [22:35:39]requested_item shift.opened is exist - process it [22:35:39]req_shift_opened [22:35:39]FM_GetShiftState [22:35:39]SAM_PROTO_GetShiftState [22:35:39]wFMCommunicate request_size=4 [22:35:39]MH_SAM_APDU [22:35:39]CAPDU: 80 13 01 00 [22:35:39]Write to MH i2c: E2 08 00 09 2A 80 13 01 00 00 00 00 00 B0 [22:35:39]Write i2c OK [22:35:39]MH_I2C_Read... [22:35:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:35:39]Read from MH i2c: E2 [22:35:39]MH_I2C_Read... [22:35:39]Read from MH i2c: E2 0E 00 [22:35:39]MH_I2C_Read... [22:35:39]Read from MH i2c: E2 0E 00 09 2A 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 5C [22:35:39]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [22:35:39]wFMCommunicate OK [22:35:39]SAM_PROTO_GetShiftState done [22:35:39]FM_GetShiftState done [22:35:39]req_shift_opened done [22:35:39]requested_item shift.open_date is exist - process it [22:35:39]req_shift_open_date [22:35:39]req_shift_open_date done [22:35:39]produce_requested_data done [22:35:39]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67579,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [22:35:39]process_action_free close_receipt [22:35:39]json_value_free [22:35:39]json_value_free done [22:35:39]process_json_proto returns [22:35:39]Send response to host [22:35:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67579,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [22:35:39]free response buf [22:35:39]execute_script done [22:35:39]execute_script returns [22:35:39]free content buf [22:35:39]Sock 8.Close socket [22:35:39]Sock 8.Thread stoped [22:35:41]OFD Sender: No OFD packet to send [22:35:46]OFD Sender: No OFD packet to send [22:35:51]OFD Sender: No OFD packet to send [22:35:56]OFD Sender: No OFD packet to send [22:36:01]OFD Sender: No OFD packet to send [22:36:06]OFD Sender: No OFD packet to send [22:36:11]OFD Sender: No OFD packet to send [22:36:16]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:22]OFD Sender: No OFD packet to send [22:44:27]OFD Sender: No OFD packet to send [22:44:32]OFD Sender: No OFD packet to send [22:44:37]OFD Sender: No OFD packet to send [22:44:42]OFD Sender: No OFD packet to send [22:44:47]OFD Sender: No OFD packet to send [22:44:52]OFD Sender: No OFD packet to send [22:44:57]OFD Sender: No OFD packet to send [22:45:02]OFD Sender: No OFD packet to send [22:45:04]accept exits with 9 [22:45:04]New connection [22:45:04]New thread 3067182436 created [22:45:04]Thread 3067039076 joined [22:45:04]Waiting for new connection... [22:45:04] Sock 9.Parse request [22:45:04]Sock 9.Check first char [22:45:04]Sock 9.First char is OK [22:45:04]request: POST /json_proto HTTP/1.0 [22:45:04]Method: POST [22:45:04]URL: /json_proto [22:45:04]Method is POST - this is cgi request [22:45:04]url: /json_proto [22:45:04]query_string will be loaded in cgi processing [22:45:04]execute_cgi json_proto POST (null) [22:45:04]execute_cgi path=json_proto method=POST [22:45:04]POST find Content-Length [22:45:04]Host: 172.17.41.195:8080 [22:45:04]Content-Length: 801 [22:45:04]Content-Type: application/json [22:45:04] [22:45:04]POST finish read [22:45:04]Found Content-Length = 801 [22:45:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507661", "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" : 74.70, "quantity" : 120.490, "sum" : 9000.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 9000.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:45:04]execute_script... [22:45: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)507661", "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" : 74.70, "quantity" : 120.490, "sum" : 9000.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 9000.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:45:04]POST & json_proto [22:45:04]process_json_proto [22:45:04]json parsed OK: [22:45:04]protocol is kg_v1.0 [22:45:04]action value=close_receipt [22:45:04]process_action close_receipt [22:45:04]cmd_close_receipt [22:45:04]MH_GetDate [22:45:04]Write to MH i2c: F0 00 00 0A 2A 23 [22:45:04]Write i2c OK [22:45:04]MH_I2C_Read... [22:45:04]Read from MH i2c: F0 [22:45:04]MH_I2C_Read... [22:45:04]Read from MH i2c: F0 09 00 [22:45:04]MH_I2C_Read... [22:45:04]Read from MH i2c: F0 09 00 0A 2A 00 73 8C 46 66 FC 21 6F 64 C7 [22:45:04]GetLastDocTimeStamp 1715898937 [22:45:04]current date 1715899507 [22:45:04]FM_GetShiftState [22:45:04]SAM_PROTO_GetShiftState [22:45:04]wFMCommunicate request_size=4 [22:45:04]MH_SAM_APDU [22:45:04]CAPDU: 80 13 01 00 [22:45:04]Write to MH i2c: E2 08 00 0B 2A 80 13 01 00 00 00 00 00 B2 [22:45:04]Write i2c OK [22:45:04]MH_I2C_Read... [22:45:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:45:04]Read from MH i2c: E2 [22:45:04]MH_I2C_Read... [22:45:04]Read from MH i2c: E2 0E 00 [22:45:04]MH_I2C_Read... [22:45:04]Read from MH i2c: E2 0E 00 0B 2A 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 5E [22:45:04]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [22:45:04]wFMCommunicate OK [22:45:04]SAM_PROTO_GetShiftState done [22:45:04]FM_GetShiftState done [22:45:04]opened in 1715818916 [22:45:04]opened+sec_in_day 1715905316 [22:45:04]quantity*price = 900060 [22:45:04]sum+1 = 900061 [22:45:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9000.60 НСП 1% : 79.65 НДС 12% : 955.82 Наличными: 0.00 Безнал.: 9000.60 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 178 16.05.2024 22:45 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67580 ФПД: 173012163052104 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T224507&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67580&fm=173012163052104&tin=02508201610067®Number=0000000000091845&sum=900060 [22:45:05]StoreToDocumentArchive [22:45:05]shift 357 fd 67580 [22:45:05]save to /storage/0357/doc_00067580 [22:45:05]save last doc name /storage/0357/doc_00067580 to /storage/kkm_last_doc_name [22:45:05]save OK [22:45:05]Clear old archive folders... [22:45:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:45:05]tlvbuf is 017E84D0 [22:45:05]SAM_PROTO_ClearQueue [22:45:05]wFMCommunicate request_size=4 [22:45:05]MH_SAM_APDU [22:45:05]CAPDU: 80 09 00 00 [22:45:05]Write to MH i2c: E2 08 00 18 2A 80 09 00 00 00 00 00 00 B4 [22:45:05]Write i2c OK [22:45:05]MH_I2C_Read... [22:45:05]Read from MH i2c: E2 [22:45:05]MH_I2C_Read... [22:45:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:45:05]Read from MH i2c: E2 03 00 [22:45:05]MH_I2C_Read... [22:45:05]Read from MH i2c: E2 03 00 18 2A 00 90 00 B6 [22:45:05]RAPDU: 90 00 [22:45:05]wFMCommunicate OK [22:45:05]SAM_PROTO_ClearQueue done [22:45:05]KKMCreateOFDPacket [22:45:05]OFDProtocolAddRootSTLVToBuf [22:45:05]FM_MakeSignedData [22:45:05]FM_MakeSignedData [22:45:05]SAM_PROTO_SignData [22:45:05]wFMCommunicate request_size=4 [22:45:05]MH_SAM_APDU [22:45:05]CAPDU: 80 0D 01 02 [22:45:05]Write to MH i2c: E2 08 00 19 2A 80 0D 01 02 00 00 00 00 BC [22:45:05]Write i2c OK [22:45:05]MH_I2C_Read... [22:45:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:45:05]Read from MH i2c: E2 [22:45:05]MH_I2C_Read... [22:45:05]Read from MH i2c: E2 03 00 [22:45:05]MH_I2C_Read... [22:45:05]Read from MH i2c: E2 03 00 19 2A 00 90 00 B7 [22:45:05]RAPDU: 90 00 [22:45:05]wFMCommunicate OK [22:45:05]wFMCommunicate request_size=255 [22:45:05]MH_SAM_APDU [22:45:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA D6 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 DC BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 73 8C 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FC 07 01 00 35 04 06 00 9D 5A 88 85 [22:45:05]Write to MH i2c: E2 02 01 1A 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 AA D6 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 DC BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 73 8C 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FC 07 01 00 35 04 06 00 9D 5A 88 85 00 00 B1 [22:45:05]Write i2c OK [22:45:05]MH_I2C_Read... [22:45:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:45:05]Read from MH i2c: E2 [22:45:05]MH_I2C_Read... [22:45:05]Read from MH i2c: E2 03 00 [22:45:05]MH_I2C_Read... [22:45:05]Read from MH i2c: E2 03 00 1A 2A 00 90 00 B8 [22:45:05]RAPDU: 90 00 [22:45:05]wFMCommunicate OK [22:45:05]wFMCommunicate request_size=7 [22:45:05]MH_SAM_APDU [22:45:05]CAPDU: 80 0D 02 02 02 42 48 [22:45:05]Write to MH i2c: E2 0A 00 1B 2A 80 0D 02 02 02 00 42 48 00 00 4D [22:45:05]Write i2c OK [22:45:05]MH_I2C_Read... [22:45:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:45:05]Read from MH i2c: E2 [22:45:05]MH_I2C_Read... [22:45:05]Read from MH i2c: E2 03 00 [22:45:05]MH_I2C_Read... [22:45:05]Read from MH i2c: E2 03 00 1B 2A 00 90 00 B9 [22:45:05]RAPDU: 90 00 [22:45:05]wFMCommunicate OK [22:45:05]wFMCommunicate request_size=4 [22:45:05]MH_SAM_APDU [22:45:05]CAPDU: 80 0D 03 02 [22:45:05]Write to MH i2c: E2 08 00 1C 2A 80 0D 03 02 00 00 00 00 C1 [22:45:05]Write i2c OK [22:45:05]MH_I2C_Read... [22:45:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:45:05]Read from MH i2c: E2 [22:45:05]MH_I2C_Read... [22:45:05]Read from MH i2c: E2 0B 00 [22:45:05]MH_I2C_Read... [22:45:05]Read from MH i2c: E2 0B 00 1C 2A 00 BB 7E 87 EC 8E B4 05 9C 90 00 51 [22:45:05]RAPDU: BB 7E 87 EC 8E B4 05 9C 90 00 [22:45:05]wFMCommunicate OK [22:45:05]SAM_PROTO_SignData done [22:45:05]FM_MakeSignedData done [22:45:05]CreateOFDProtocolMessage [22:45:05]wFMCommunicate request_size=4 [22:45:05]MH_SAM_APDU [22:45:05]CAPDU: 80 11 00 00 [22:45:05]Write to MH i2c: E2 08 00 1D 2A 80 11 00 00 00 00 00 00 C1 [22:45:05]Write i2c OK [22:45:05]MH_I2C_Read... [22:45:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:45:05]Read from MH i2c: E2 [22:45:05]MH_I2C_Read... [22:45:05]Read from MH i2c: E2 17 00 [22:45:05]MH_I2C_Read... [22:45:05]Read from MH i2c: E2 17 00 1D 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 17 [22:45:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:45:05]wFMCommunicate OK [22:45:05]CreateOFDProtocolMessage done [22:45:05]OFDSenderStorePacket 67580 [22:45:05]StoreOFDPacket docnum=67580 [22:45:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 E3 35 04 01 EB E0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 D6 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 DC BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 73 8C 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FC 07 01 00 35 04 06 00 9D 5A 88 85 42 48 BB 7E 87 EC 8E B4 05 9C [22:45:05]CheckFolder [22:45:05]dirname=/storage/ofd_packets [22:45:05]CheckFolder done [22:45:05]ProducePacketName [22:45:05]name=ofd_packets/00067580 [22:45:05]NVStorageSaveData ofd_packets/00067580 [22:45:05]File name is /storage/ofd_packets/00067580 [22:45:05]Write 298 bytes [22:45:05]NVStorageSaveData done [22:45:05]OFDSenderStorePacket done [22:45:05]KKMCreateOFDPacket done [22:45:05]NVStorageSaveData kkm_last_timestamp [22:45:05]File name is /storage/kkm_last_timestamp [22:45:05]Write 4 bytes [22:45:05]NVStorageSaveData done [22:45:05]ExternCall_PrintAddStr [22:45:05]wPrintStart [22:45:05]Write to MH i2c: 01 00 00 1E 2A 48 [22:45:05]Write i2c OK [22:45:05]MH_I2C_Read... [22:45:05]Read from MH i2c: 01 [22:45:05]MH_I2C_Read... [22:45:05]Read from MH i2c: 01 07 00 [22:45:05]MH_I2C_Read... [22:45:05]Read from MH i2c: 01 07 00 1E 2A 00 00 00 00 00 FF 0F 5D [22:45:05]RasterBufferAndPrint [22:45:05]line Счет N : (1)507661 [22:45:05]line ИНН: 02508201610067 [22:45:05]line Контрольно-Кассовый Чек [22:45:05]line ПРОДАЖА [22:45:05]line ТРК (МРК, ГНК) : 21 [22:45:05]line Товар: 2710194210 [22:45:05]line ДТ-К-5 [22:45:05]line 120.490 * 74.70 [22:45:05]line = 9000.60 [22:45:05]line НДС 12% НСП 1% [22:45:05]line > о реализуемом товаре [22:45:05]line ИТОГО: 9000.60 [22:45:05]line НСП 1% : 79.65 [22:45:05]line НДС 12% : 955.82 [22:45:05]line Наличными: 0.00 [22:45:05]line Безнал.: 9000.60 [22:45:05]line Место: АЗС № 91 "Партнер Нефть" [22:45:05]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [22:45:05]line СНО: Общий режим [22:45:05]line Чек 178 16.05.2024 22:45 [22:45:05]line Смена: 357 ФФД: 1.0 [22:45:05]line ЗНМ: 0300000119 [22:45:05]line РНМ: 0000000000091845 [22:45:05]line Версия ККМ: 001 [22:45:05]line Платежная система: O! деньги [22:45:05]line ФМ: 0000000000871829 [22:45:05]line ФД: 67580 [22:45:05]line ФПД: 173012163052104 [22:45:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T224507&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67580&fm=173012163052104&tin=02508201610067®Number=0000000000091845&sum=900060 [22:45:06]OFD Sender: Processing packet 67580 [packets to send 35, broken 34] [22:45:06]ProducePacketName [22:45:06]name=ofd_packets/00067580 [22:45:06]OFD Sender: To server: pG, [22:45:06]CommunicateWithHost lk.salyk.kg:30040 [22:45:06]ConnectInit lk.salyk.kg [22:45:06]written 0, free lines is 4095 [22:45:06]Connected sock=10 [22:45: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 38 32 39 0C 01 00 00 E3 35 04 01 EB E0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 D6 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 DC BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 73 8C 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FC 07 01 00 35 04 06 00 9D 5A 88 85 42 48 BB 7E 87 EC 8E B4 05 9C [22:45:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 F4 BB 47 00 76 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 38 32 39 10 04 04 00 FC 07 01 00 F4 03 04 00 4C 34 46 66 B6 04 01 00 00 5B 97 D8 5B A3 EC C6 1A [22:45:06]CommunicateWithHost err = 0 [22:45:06]CheckOFDResponse [22:45:06]1017 (14) - 77093643461234 [22:45:06]1041 (16) - 0000000000871829 [22:45:06]1040 (4) - 67580 [22:45:06]1012 (4) - 16.05.2024 16:29 [22:45:06]1206 (1) - 0 [22:45:06]OFD Sender: Remove packet 67580 [22:45:06]ProducePacketName [22:45:06]name=ofd_packets/00067580 [22:45:06]NVStorageDeleteData [22:45:06]Write to MH i2c: 01 00 00 47 2A 71 [22:45:06]Write i2c OK [22:45:06]MH_I2C_Read... [22:45:06]Read from MH i2c: 01 [22:45:06]MH_I2C_Read... [22:45:06]Read from MH i2c: 01 07 00 [22:45:06]MH_I2C_Read... [22:45:06]Read from MH i2c: 01 07 00 47 2A 00 00 00 00 00 D4 0C 58 [22:45:06]RasterBufferAndPrint [22:45:06]line [22:45:06]line [22:45:06]line [22:45:06]line [22:45:06]line [22:45:06]written 0, free lines is 3292 [22:45:06]MH_Cut [22:45:06]Write to MH i2c: D1 01 00 4E 2A 01 4A [22:45:06]Write i2c OK [22:45:06]MH_I2C_Read... [22:45:06]Read from MH i2c: D1 [22:45:06]MH_I2C_Read... [22:45:06]Read from MH i2c: D1 01 00 [22:45:06]MH_I2C_Read... [22:45:06]Read from MH i2c: D1 01 00 4E 2A 00 49 [22:45:06]Write to MH i2c: 01 00 00 4F 2A 79 [22:45:06]Write i2c OK [22:45:06]MH_I2C_Read... [22:45:06]OFD Sender: No OFD packet to send [22:45:07]*** Cut start [22:45:07]*** Purtial cut [22:45:07]*** Stage 1: CUTSNS_PIN = 1 [22:45:07]Read from MH i2c: 01 [22:45:07]MH_I2C_Read... [22:45:07]*** Stop cut motor [22:45:07]*** Cut end [22:45:07]Read from MH i2c: 01 07 00 [22:45:07]MH_I2C_Read... [22:45:07]Read from MH i2c: 01 07 00 4F 2A 00 00 00 00 00 FF 0F 8E [22:45:07]process_action close_receipt done [22:45:07]requested_data is exist [22:45:07]produce_requested_data [22:45:07]requested_item fm.sn is exist - process it [22:45:07]wFMCommunicate request_size=4 [22:45:07]MH_SAM_APDU [22:45:07]CAPDU: 80 11 00 00 [22:45:07]Write to MH i2c: E2 08 00 50 2A 80 11 00 00 00 00 00 00 F4 [22:45:07]Write i2c OK [22:45:07]MH_I2C_Read... [22:45:07]Read from MH i2c: E2 [22:45:07]MH_I2C_Read... [22:45:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:45:07]Read from MH i2c: E2 17 00 [22:45:07]MH_I2C_Read... [22:45:07]Read from MH i2c: E2 17 00 50 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 4A [22:45:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:45:07]wFMCommunicate OK [22:45:07]requested_item fd.num is exist - process it [22:45:07]SAM_PROTO_GetFieldsCounters [22:45:07]wFMCommunicate request_size=4 [22:45:07]MH_SAM_APDU [22:45:07]CAPDU: 80 13 00 00 [22:45:07]Write to MH i2c: E2 08 00 51 2A 80 13 00 00 00 00 00 00 F7 [22:45:07]Write i2c OK [22:45:07]MH_I2C_Read... [22:45:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:45:07]Read from MH i2c: E2 [22:45:07]MH_I2C_Read... [22:45:07]Read from MH i2c: E2 62 00 [22:45:07]MH_I2C_Read... [22:45:07]Read from MH i2c: E2 62 00 51 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FC 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [22:45: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FC 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:45:07]wFMCommunicate OK [22:45:07]SAM_PROTO_GetFieldsCounters done [22:45:07]requested_item shift.num is exist - process it [22:45:07]requested_item shift.opened is exist - process it [22:45:07]req_shift_opened [22:45:07]FM_GetShiftState [22:45:07]SAM_PROTO_GetShiftState [22:45:07]wFMCommunicate request_size=4 [22:45:07]MH_SAM_APDU [22:45:07]CAPDU: 80 13 01 00 [22:45:07]Write to MH i2c: E2 08 00 52 2A 80 13 01 00 00 00 00 00 F9 [22:45:07]Write i2c OK [22:45:07]MH_I2C_Read... [22:45:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:45:07]Read from MH i2c: E2 [22:45:07]MH_I2C_Read... [22:45:07]Read from MH i2c: E2 0E 00 [22:45:07]MH_I2C_Read... [22:45:07]Read from MH i2c: E2 0E 00 52 2A 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 A5 [22:45:07]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [22:45:07]wFMCommunicate OK [22:45:07]SAM_PROTO_GetShiftState done [22:45:07]FM_GetShiftState done [22:45:07]req_shift_opened done [22:45:07]requested_item shift.open_date is exist - process it [22:45:07]req_shift_open_date [22:45:07]req_shift_open_date done [22:45:07]produce_requested_data done [22:45:07]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67580,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [22:45:07]process_action_free close_receipt [22:45:07]json_value_free [22:45:07]json_value_free done [22:45:07]process_json_proto returns [22:45:07]Send response to host [22:45:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67580,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [22:45:07]free response buf [22:45:07]execute_script done [22:45:07]execute_script returns [22:45:07]free content buf [22:45:07]Sock 9.Close socket [22:45:07]Sock 9.Thread stoped [22:45:08]int [22:45:08]Write to MH i2c: 01 00 00 53 2A 7D [22:45:08]*** FLAG_PRN_PAP1 set [22:45:08]Write i2c OK [22:45:08]MH_I2C_Read... [22:45:08]Read from MH i2c: 01 [22:45:08]MH_I2C_Read... [22:45:08]Read from MH i2c: 01 07 00 [22:45:08]MH_I2C_Read... [22:45:08]Read from MH i2c: 01 07 00 53 2A 00 01 00 00 00 FF 0F 93 [22:45:08]state=0 [22:45:08]No paper [22:45:09]int [22:45:09]Write to MH i2c: 01 00 00 54 2A 7E [22:45:09]*** FLAG_PRN_PAP2 set [22:45:09]Write i2c OK [22:45:09]MH_I2C_Read... [22:45:09]Read from MH i2c: 01 [22:45:09]MH_I2C_Read... [22:45:09]Read from MH i2c: 01 07 00 [22:45:09]MH_I2C_Read... [22:45:09]Read from MH i2c: 01 07 00 54 2A 00 03 00 00 00 FF 0F 96 [22:45:09]state=0 [22:45:09]No paper [22:45:09]Cover opened [22:45:11]accept exits with 8 [22:45:11]New connection [22:45:11]New thread 3067039076 created [22:45:11]Thread 3067182436 joined [22:45:11]Waiting for new connection... [22:45:11] Sock 8.Parse request [22:45:11]Sock 8.Check first char [22:45:11]Sock 8.First char is OK [22:45:11]request: POST /json_proto HTTP/1.0 [22:45:11]Method: POST [22:45:11]URL: /json_proto [22:45:11]Method is POST - this is cgi request [22:45:11]url: /json_proto [22:45:11]query_string will be loaded in cgi processing [22:45:11]execute_cgi json_proto POST (null) [22:45:11]execute_cgi path=json_proto method=POST [22:45:11]POST find Content-Length [22:45:11]Host: 172.17.41.195:8080 [22:45:11]Content-Length: 800 [22:45:11]Content-Type: application/json [22:45:11] [22:45:11]POST finish read [22:45:11]Found Content-Length = 800 [22:45:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507662", "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" : 74.70, "quantity" : 80.330, "sum" : 6000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 6000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:45:11]execute_script... [22:45: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)507662", "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" : 74.70, "quantity" : 80.330, "sum" : 6000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 6000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:45:11]POST & json_proto [22:45:11]process_json_proto [22:45:11]json parsed OK: [22:45:11]protocol is kg_v1.0 [22:45:11]action value=close_receipt [22:45:11]process_action close_receipt [22:45:11]cmd_close_receipt [22:45:11]MH_GetDate [22:45:11]Write to MH i2c: F0 00 00 55 2A 6E [22:45:11]Write i2c OK [22:45:11]MH_I2C_Read... [22:45:11]Read from MH i2c: F0 [22:45:11]MH_I2C_Read... [22:45:11]Read from MH i2c: F0 09 00 [22:45:11]MH_I2C_Read... [22:45:11]Read from MH i2c: F0 09 00 55 2A 00 7A 8C 46 66 FC 21 6F 64 19 [22:45:11]GetLastDocTimeStamp 1715899507 [22:45:11]current date 1715899514 [22:45:11]FM_GetShiftState [22:45:11]SAM_PROTO_GetShiftState [22:45:11]wFMCommunicate request_size=4 [22:45:11]MH_SAM_APDU [22:45:11]CAPDU: 80 13 01 00 [22:45:11]Write to MH i2c: E2 08 00 56 2A 80 13 01 00 00 00 00 00 FD [22:45:11]Write i2c OK [22:45:11]MH_I2C_Read... [22:45:11]Read from MH i2c: E2 [22:45:11]MH_I2C_Read... [22:45:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:45:11]Read from MH i2c: E2 0E 00 [22:45:11]MH_I2C_Read... [22:45:11]Read from MH i2c: E2 0E 00 56 2A 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 A9 [22:45:11]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [22:45:11]wFMCommunicate OK [22:45:11]SAM_PROTO_GetShiftState done [22:45:11]FM_GetShiftState done [22:45:11]opened in 1715818916 [22:45:11]opened+sec_in_day 1715905316 [22:45:11]quantity*price = 600065 [22:45:11]sum+1 = 600066 [22:45:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 6000.65 НСП 1% : 53.10 НДС 12% : 637.24 Наличными: 0.00 Безнал.: 6000.65 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 179 16.05.2024 22:45 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67581 ФПД: 104791217294849 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T224514&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67581&fm=104791217294849&tin=02508201610067®Number=0000000000091845&sum=600065 [22:45:13]StoreToDocumentArchive [22:45:13]shift 357 fd 67581 [22:45:13]save to /storage/0357/doc_00067581 [22:45:13]save last doc name /storage/0357/doc_00067581 to /storage/kkm_last_doc_name [22:45:13]save OK [22:45:13]Clear old archive folders... [22:45:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:45:13]tlvbuf is 01794630 [22:45:13]SAM_PROTO_ClearQueue [22:45:13]wFMCommunicate request_size=4 [22:45:13]MH_SAM_APDU [22:45:13]CAPDU: 80 09 00 00 [22:45:13]Write to MH i2c: E2 08 00 63 2A 80 09 00 00 00 00 00 00 FF [22:45:13]Write i2c OK [22:45:13]MH_I2C_Read... [22:45:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:45:13]Read from MH i2c: E2 [22:45:13]MH_I2C_Read... [22:45:13]Read from MH i2c: E2 03 00 [22:45:13]MH_I2C_Read... [22:45:13]Read from MH i2c: E2 03 00 63 2A 00 90 00 01 [22:45:13]RAPDU: 90 00 [22:45:13]wFMCommunicate OK [22:45:13]SAM_PROTO_ClearQueue done [22:45:13]KKMCreateOFDPacket [22:45:13]OFDProtocolAddRootSTLVToBuf [22:45:13]FM_MakeSignedData [22:45:13]FM_MakeSignedData [22:45:13]SAM_PROTO_SignData [22:45:13]wFMCommunicate request_size=4 [22:45:13]MH_SAM_APDU [22:45:13]CAPDU: 80 0D 01 02 [22:45:13]Write to MH i2c: E2 08 00 64 2A 80 0D 01 02 00 00 00 00 07 [22:45:13]Write i2c OK [22:45:13]MH_I2C_Read... [22:45:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:45:13]Read from MH i2c: E2 [22:45:13]MH_I2C_Read... [22:45:13]Read from MH i2c: E2 03 00 [22:45:13]MH_I2C_Read... [22:45:13]Read from MH i2c: E2 03 00 64 2A 00 90 00 02 [22:45:13]RAPDU: 90 00 [22:45:13]wFMCommunicate OK [22:45:13]wFMCommunicate request_size=255 [22:45:13]MH_SAM_APDU [22:45: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 CA 39 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 01 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 01 28 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC F8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 01 28 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 7A 8C 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FD 07 01 00 35 04 06 00 5F 4E 9B 48 [22:45:13]Write to MH i2c: E2 02 01 65 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 CA 39 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 01 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 01 28 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC F8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 01 28 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 7A 8C 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FD 07 01 00 35 04 06 00 5F 4E 9B 48 00 00 64 [22:45:13]Write i2c OK [22:45:13]MH_I2C_Read... [22:45:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:45:13]Read from MH i2c: E2 [22:45:13]MH_I2C_Read... [22:45:13]Read from MH i2c: E2 03 00 [22:45:13]MH_I2C_Read... [22:45:13]Read from MH i2c: E2 03 00 65 2A 00 90 00 03 [22:45:13]RAPDU: 90 00 [22:45:13]wFMCommunicate OK [22:45:13]wFMCommunicate request_size=7 [22:45:13]MH_SAM_APDU [22:45:13]CAPDU: 80 0D 02 02 02 4E 01 [22:45:13]Write to MH i2c: E2 0A 00 66 2A 80 0D 02 02 02 00 4E 01 00 00 5D [22:45:13]Write i2c OK [22:45:13]MH_I2C_Read... [22:45:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:45:13]Read from MH i2c: E2 [22:45:13]MH_I2C_Read... [22:45:13]Read from MH i2c: E2 03 00 [22:45:13]MH_I2C_Read... [22:45:13]Read from MH i2c: E2 03 00 66 2A 00 90 00 04 [22:45:13]RAPDU: 90 00 [22:45:13]wFMCommunicate OK [22:45:13]wFMCommunicate request_size=4 [22:45:13]MH_SAM_APDU [22:45:13]CAPDU: 80 0D 03 02 [22:45:13]Write to MH i2c: E2 08 00 67 2A 80 0D 03 02 00 00 00 00 0C [22:45:13]Write i2c OK [22:45:13]MH_I2C_Read... [22:45:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:45:13]Read from MH i2c: E2 [22:45:13]MH_I2C_Read... [22:45:13]Read from MH i2c: E2 0B 00 [22:45:13]MH_I2C_Read... [22:45:13]Read from MH i2c: E2 0B 00 67 2A 00 81 7A 3F 84 33 3E 82 F7 90 00 B5 [22:45:13]RAPDU: 81 7A 3F 84 33 3E 82 F7 90 00 [22:45:13]wFMCommunicate OK [22:45:13]SAM_PROTO_SignData done [22:45:13]FM_MakeSignedData done [22:45:13]CreateOFDProtocolMessage [22:45:13]wFMCommunicate request_size=4 [22:45:13]MH_SAM_APDU [22:45:13]CAPDU: 80 11 00 00 [22:45:13]Write to MH i2c: E2 08 00 68 2A 80 11 00 00 00 00 00 00 0C [22:45:13]Write i2c OK [22:45:13]MH_I2C_Read... [22:45:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:45:13]Read from MH i2c: E2 [22:45:13]MH_I2C_Read... [22:45:13]Read from MH i2c: E2 17 00 [22:45:13]MH_I2C_Read... [22:45:13]Read from MH i2c: E2 17 00 68 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 62 [22:45:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:45:13]wFMCommunicate OK [22:45:13]CreateOFDProtocolMessage done [22:45:13]OFDSenderStorePacket 67581 [22:45:13]StoreOFDPacket docnum=67581 [22:45:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 04 F9 04 01 44 BF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 39 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 01 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 01 28 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC F8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 01 28 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 7A 8C 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FD 07 01 00 35 04 06 00 5F 4E 9B 48 4E 01 81 7A 3F 84 33 3E 82 F7 [22:45:13]CheckFolder [22:45:13]dirname=/storage/ofd_packets [22:45:13]CheckFolder done [22:45:13]ProducePacketName [22:45:13]name=ofd_packets/00067581 [22:45:13]NVStorageSaveData ofd_packets/00067581 [22:45:13]File name is /storage/ofd_packets/00067581 [22:45:13]Write 298 bytes [22:45:13]NVStorageSaveData done [22:45:13]OFDSenderStorePacket done [22:45:13]KKMCreateOFDPacket done [22:45:13]NVStorageSaveData kkm_last_timestamp [22:45:13]File name is /storage/kkm_last_timestamp [22:45:13]Write 4 bytes [22:45:13]NVStorageSaveData done [22:45:13]ExternCall_PrintAddStr [22:45:13]wPrintStart [22:45:13]Write to MH i2c: 01 00 00 69 2A 93 [22:45:13]Write i2c OK [22:45:13]MH_I2C_Read... [22:45:13]Read from MH i2c: 01 [22:45:13]MH_I2C_Read... [22:45:13]Read from MH i2c: 01 07 00 [22:45:13]MH_I2C_Read... [22:45:13]Read from MH i2c: 01 07 00 69 2A 00 03 00 00 00 FF 0F AB [22:45:13]RasterBufferAndPrint [22:45:13]line Счет N : (1)507662 [22:45:13]line ИНН: 02508201610067 [22:45:13]line Контрольно-Кассовый Чек [22:45:13]line ПРОДАЖА [22:45:13]line ТРК (МРК, ГНК) : 11 [22:45:13]line Товар: 2710194210 [22:45:13]line ДТ-К-5 [22:45:13]line 80.330 * 74.70 [22:45:13]line = 6000.65 [22:45:13]line НДС 12% НСП 1% [22:45:13]line > о реализуемом товаре [22:45:13]line ИТОГО: 6000.65 [22:45:13]line НСП 1% : 53.10 [22:45:13]line НДС 12% : 637.24 [22:45:13]line Наличными: 0.00 [22:45:13]line Безнал.: 6000.65 [22:45:13]line Место: АЗС № 91 "Партнер Нефть" [22:45:13]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [22:45:13]line СНО: Общий режим [22:45:13]line Чек 179 16.05.2024 22:45 [22:45:13]line Смена: 357 ФФД: 1.0 [22:45:13]line ЗНМ: 0300000119 [22:45:13]line РНМ: 0000000000091845 [22:45:13]line Версия ККМ: 001 [22:45:13]line Платежная система: O! деньги [22:45:13]line ФМ: 0000000000871829 [22:45:13]line ФД: 67581 [22:45:13]line ФПД: 104791217294849 [22:45:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T224514&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67581&fm=104791217294849&tin=02508201610067®Number=0000000000091845&sum=600065 [22:45:13]written 0, free lines is 4095 [22:45:13]OFD Sender: Processing packet 67581 [packets to send 35, broken 34] [22:45:13]ProducePacketName [22:45:13]name=ofd_packets/00067581 [22:45:13]OFD Sender: To server: pG, [22:45:13]CommunicateWithHost lk.salyk.kg:30040 [22:45:13]ConnectInit lk.salyk.kg [22:45:13]Error from MH - 05 [22:45:13]process_action_free close_receipt [22:45:13]json_value_free [22:45:13]json_value_free done [22:45:13]process_json_proto returns [22:45:13]Send response to host [22:45:13]{"protocol":"kg_v1.0","response":{"error":1033,"error_desc":"No paper"}} [22:45:13]free response buf [22:45:13]execute_script done [22:45:13]execute_script returns [22:45:13]free content buf [22:45:13]Sock 8.Close socket [22:45:13]Sock 8.Thread stoped [22:45:13]Connected sock=10 [22:45: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 38 32 39 0C 01 00 00 04 F9 04 01 44 BF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 39 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 01 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 01 28 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC F8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 01 28 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 7A 8C 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FD 07 01 00 35 04 06 00 5F 4E 9B 48 4E 01 81 7A 3F 84 33 3E 82 F7 [22:45:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 AF 1C 47 00 DF 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 38 32 39 10 04 04 00 FD 07 01 00 F4 03 04 00 54 34 46 66 B6 04 01 00 00 D6 35 7F 44 7A D7 27 F8 [22:45:13]CommunicateWithHost err = 0 [22:45:13]CheckOFDResponse [22:45:13]1017 (14) - 77093643461234 [22:45:13]1041 (16) - 0000000000871829 [22:45:13]1040 (4) - 67581 [22:45:13]1012 (4) - 16.05.2024 16:29 [22:45:13]1206 (1) - 0 [22:45:13]OFD Sender: Remove packet 67581 [22:45:13]ProducePacketName [22:45:13]name=ofd_packets/00067581 [22:45:13]NVStorageDeleteData [22:45:14]int [22:45:14]Write to MH i2c: 01 00 00 6C 2A 96 [22:45:14]*** FLAG_PRN_PAP2 reset [22:45:14]Write i2c OK [22:45:14]MH_I2C_Read... [22:45:14]*** FLAG_PRN_PAP1 reset [22:45:14]Read from MH i2c: 01 [22:45:14]MH_I2C_Read... [22:45:14]Read from MH i2c: 01 07 00 [22:45:14]MH_I2C_Read... [22:45:14]Read from MH i2c: 01 07 00 6C 2A 00 00 00 00 00 FF 0F AB [22:45:14]state=3 [22:45:14]Cover closed [22:45:14]OFD Sender: No OFD packet to send [22:45:19]OFD Sender: No OFD packet to send [22:45:24]OFD Sender: No OFD packet to send [22:45:29]OFD Sender: No OFD packet to send [22:45:34]OFD Sender: No OFD packet to send [22:45:39]OFD Sender: No OFD packet to send [22:45:44]OFD Sender: No OFD packet to send [22:45:49]OFD Sender: No OFD packet to send [22:45:54]OFD Sender: No OFD packet to send [22:45:59]OFD Sender: No OFD packet to send [22:46:04]OFD Sender: No OFD packet to send [22:46:09]OFD Sender: No OFD packet to send [22:46:14]OFD Sender: No OFD packet to send [22:46:19]OFD Sender: No OFD packet to send [22:46:24]OFD Sender: No OFD packet to send [22:46:29]OFD Sender: No OFD packet to send [22:46:34]OFD Sender: No OFD packet to send [22:46:39]OFD Sender: No OFD packet to send [22:46:44]OFD Sender: No OFD packet to send [22:46:49]OFD Sender: No OFD packet to send [22:46:54]OFD Sender: No OFD packet to send [22:46:59]OFD Sender: No OFD packet to send [22:47:04]OFD Sender: No OFD packet to send [22:47:09]OFD Sender: No OFD packet to send [22:47:14]OFD Sender: No OFD packet to send [22:47:19]OFD Sender: No OFD packet to send [22:47:24]OFD Sender: No OFD packet to send [22:47:29]OFD Sender: No OFD packet to send [22:47:34]OFD Sender: No OFD packet to send [22:47:39]OFD Sender: No OFD packet to send [22:47:44]OFD Sender: No OFD packet to send [22:47:49]OFD Sender: No OFD packet to send [22:47:54]OFD Sender: No OFD packet to send [22:47:59]OFD Sender: No OFD packet to send [22:48:04]OFD Sender: No OFD packet to send [22:48:09]OFD Sender: No OFD packet to send [22:48:14]OFD Sender: No OFD packet to send [22:48:19]OFD Sender: No OFD packet to send [22:48:24]OFD Sender: No OFD packet to send [22:48:29]OFD Sender: No OFD packet to send [22:48:34]OFD Sender: No OFD packet to send [22:48:39]OFD Sender: No OFD packet to send [22:48:44]OFD Sender: No OFD packet to send [22:48:49]OFD Sender: No OFD packet to send [22:48:54]OFD Sender: No OFD packet to send [22:48:59]OFD Sender: No OFD packet to send [22:49:04]OFD Sender: No OFD packet to send [22:49:09]OFD Sender: No OFD packet to send [22:49:14]OFD Sender: No OFD packet to send [22:49:19]OFD Sender: No OFD packet to send [22:49:24]OFD Sender: No OFD packet to send [22:49:29]OFD Sender: No OFD packet to send [22:49:34]OFD Sender: No OFD packet to send [22:49:39]OFD Sender: No OFD packet to send [22:49:41]int [22:49:41]Write to MH i2c: 01 00 00 6D 2A 97 [22:49:41]*** FLAG_PRN_PAP1 set [22:49:41]Write i2c OK [22:49:41]MH_I2C_Read... [22:49:41]Read from MH i2c: 01 [22:49:41]MH_I2C_Read... [22:49:41]Read from MH i2c: 01 07 00 [22:49:41]MH_I2C_Read... [22:49:41]Read from MH i2c: 01 07 00 6D 2A 00 01 00 00 00 FF 0F AD [22:49:41]state=0 [22:49:41]No paper [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 4E FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 8A [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30515, crc_r 5823D75D, crc_c: 5823D75D, size: 52480 [00:00:10]*** [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E318 010246F9) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903 init start (LINUX_LIGHT) [00:00:10]*** Serial: 3139303353513838 540000000057254E (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 30895006+1685004796=1715899802 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33540623 [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 4E FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 8B [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30515 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 38 00 FF FF 57 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 9A 8D 46 66 FC 21 6F 64 C2 [22:50:02]Current date/time: 16.05.2024 22:50 [22:50:02]FM_Init [22:50:02]wFMConnect [22:50:02]MH_SAM_On [22:50:02]Write to MH i2c: E0 00 00 08 00 E7 [22:50:02]Write i2c OK [22:50:02]MH_I2C_Read... [22:50:02]*** iso7816_init finished! [22:50:02]*** atr: [22:50:02]*** 0F 3B D5 18 FF 81 91 FE [22:50:02]*** 1F C3 80 73 C8 21 10 0A [22:50:02]*** 00 00 00 00 00 00 00 00 [22:50:02]*** 00 00 00 00 00 00 00 00 [22:50:02]*** 00 00 00 00 00 00 00 00 [22:50:02]*** 00 00 00 00 00 00 00 00 [22:50:02]*** 00 00 00 00 00 00 00 00 [22:50:02]*** 00 00 00 00 00 00 00 00 [22:50:02]Read from MH i2c: E0 [22:50:02]MH_I2C_Read... [22:50:02]Read from MH i2c: E0 10 00 [22:50:02]MH_I2C_Read... [22:50:02]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [22:50:02]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [22:50:02]wFMCommunicate request_size=10 [22:50:02]MH_SAM_APDU [22:50:02]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [22:50:02]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [22:50:02]Write i2c OK [22:50:02]MH_I2C_Read... [22:50:02]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [22:50:02]Read from MH i2c: E2 [22:50:02]MH_I2C_Read... [22:50:02]Read from MH i2c: E2 03 00 [22:50:02]MH_I2C_Read... [22:50:02]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [22:50:02]RAPDU: 90 00 [22:50:02]wFMCommunicate OK [22:50:02]wFMCommunicate request_size=4 [22:50:02]MH_SAM_APDU [22:50:02]CAPDU: 80 11 00 00 [22:50:02]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [22:50:02]Write i2c OK [22:50:02]MH_I2C_Read... [22:50:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:50:02]Read from MH i2c: E2 [22:50:02]MH_I2C_Read... [22:50:02]Read from MH i2c: E2 17 00 [22:50:02]MH_I2C_Read... [22:50:02]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DA [22:50:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:50:02]wFMCommunicate OK [22:50:02]Detected FM SN is 0000000000871829 [22:50:02]Stored FM SN is 0000000000871829 [22:50:02]wFMCommunicate request_size=9 [22:50:02]MH_SAM_APDU [22:50:02]CAPDU: 80 16 00 00 04 44 DD 00 00 [22:50:02]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 44 DD 00 00 00 00 B3 [22:50:02]Write i2c OK [22:50:02]MH_I2C_Read... [22:50:02]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [22:50:02]Read from MH i2c: E2 [22:50:02]MH_I2C_Read... [22:50:02]Read from MH i2c: E2 03 00 [22:50:02]MH_I2C_Read... [22:50:02]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [22:50:02]RAPDU: 90 00 [22:50:02]wFMCommunicate OK [22:50:02]FM PIN OK [22:50:02]wFMCommunicate request_size=8 [22:50:02]MH_SAM_APDU [22:50:02]CAPDU: 80 14 04 00 03 02 00 01 [22:50:02]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [22:50:02]Write i2c OK [22:50:02]MH_I2C_Read... [22:50:02]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [22:50:02]Read from MH i2c: E2 [22:50:02]MH_I2C_Read... [22:50:02]Read from MH i2c: E2 03 00 [22:50:02]MH_I2C_Read... [22:50:02]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [22:50:02]RAPDU: 90 00 [22:50:02]wFMCommunicate OK [22:50:02]wFMCommunicate request_size=13 [22:50:02]MH_SAM_APDU [22:50:02]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [22:50:02]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [22:50:02]Write i2c OK [22:50:02]MH_I2C_Read... [22:50:02]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [22:50:02]Read from MH i2c: E2 [22:50:02]MH_I2C_Read... [22:50:02]Read from MH i2c: E2 03 00 [22:50:02]MH_I2C_Read... [22:50:02]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [22:50:02]RAPDU: 90 00 [22:50:02]wFMCommunicate OK [22:50:02]wFMCommunicate request_size=4 [22:50:02]MH_SAM_APDU [22:50:02]CAPDU: 80 11 00 00 [22:50:02]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [22:50:02]Write i2c OK [22:50:02]MH_I2C_Read... [22:50:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:50:02]Read from MH i2c: E2 [22:50:02]MH_I2C_Read... [22:50:02]Read from MH i2c: E2 17 00 [22:50:02]MH_I2C_Read... [22:50:02]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DE [22:50:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:50:02]wFMCommunicate OK [22:50:02]DocumentArchiveInit [22:50:02]Start Httpd... [22:50:02]Httpd thread 3067915620 created [22:50:02]Write to MH i2c: 01 00 00 0F 00 0F [22:50:02]Write i2c OK [22:50:02]MH_I2C_Read... [22:50:02]Read from MH i2c: 01 [22:50:02]MH_I2C_Read... [22:50:02]Read from MH i2c: 01 07 00 [22:50:02]MH_I2C_Read... [22:50:02]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [22:50:02]MH Int Process started [22:50:02]Allocated Socket 8 [22:50:02]Bind OK [22:50:02]Listen OK [22:50:02]httpd running on port 8080 [22:50:02]Waiting for new connection... [22:50:02]OFD Sender: No OFD packet to send [22:50:07]OFD Sender: No OFD packet to send [22:50:12]OFD Sender: No OFD packet to send [22:50:17]OFD Sender: No OFD packet to send [22:50:18]accept exits with 9 [22:50:18]New connection [22:50:18]New thread 3067628900 created [22:50:18]Waiting for new connection... [22:50:18] Sock 9.Parse request [22:50:18]Sock 9.Check first char [22:50:18]Sock 9.First char is OK [22:50:18]request: POST /json_proto HTTP/1.0 [22:50:18]Method: POST [22:50:18]URL: /json_proto [22:50:18]Method is POST - this is cgi request [22:50:18]url: /json_proto [22:50:18]query_string will be loaded in cgi processing [22:50:18]execute_cgi json_proto POST (null) [22:50:18]execute_cgi path=json_proto method=POST [22:50:18]POST find Content-Length [22:50:18]Host: 172.17.41.195:8080 [22:50:18]Content-Length: 215 [22:50:18]Content-Type: application/json [22:50:18] [22:50:18]POST finish read [22:50:18]Found Content-Length = 215 [22:50:18]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" ] } } [22:50:18]execute_script... [22:50:18]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" ] } } [22:50:18]POST & json_proto [22:50:18]process_json_proto [22:50:18]json parsed OK: [22:50:18]protocol is kg_v1.0 [22:50:18]action value=get_value [22:50:18]process_action get_value [22:50:18]cmd_get_value [22:50:18]process_action get_value done [22:50:18]requested_data is exist [22:50:18]produce_requested_data [22:50:18]requested_item kkm.sn is exist - process it [22:50:18]requested_item kkm.ver is exist - process it [22:50:18]requested_item fm.sn is exist - process it [22:50:18]wFMCommunicate request_size=4 [22:50:18]MH_SAM_APDU [22:50:18]CAPDU: 80 11 00 00 [22:50:18]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [22:50:18]Write i2c OK [22:50:18]MH_I2C_Read... [22:50:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:50:18]Read from MH i2c: E2 [22:50:18]MH_I2C_Read... [22:50:18]Read from MH i2c: E2 17 00 [22:50:18]MH_I2C_Read... [22:50:18]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E0 [22:50:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:50:18]wFMCommunicate OK [22:50:18]requested_item fd.num is exist - process it [22:50:18]SAM_PROTO_GetFieldsCounters [22:50:18]wFMCommunicate request_size=4 [22:50:18]MH_SAM_APDU [22:50:18]CAPDU: 80 13 00 00 [22:50:18]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [22:50:18]Write i2c OK [22:50:18]MH_I2C_Read... [22:50:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:50:18]Read from MH i2c: E2 [22:50:18]MH_I2C_Read... [22:50:18]Read from MH i2c: E2 62 00 [22:50:18]MH_I2C_Read... [22:50:18]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FD 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [22:50: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FD 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:50:18]wFMCommunicate OK [22:50:18]SAM_PROTO_GetFieldsCounters done [22:50:18]requested_item shift.num is exist - process it [22:50:18]requested_item shift.opened is exist - process it [22:50:18]req_shift_opened [22:50:18]FM_GetShiftState [22:50:18]SAM_PROTO_GetShiftState [22:50:18]wFMCommunicate request_size=4 [22:50:18]MH_SAM_APDU [22:50:18]CAPDU: 80 13 01 00 [22:50:18]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [22:50:18]Write i2c OK [22:50:18]MH_I2C_Read... [22:50:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:50:18]Read from MH i2c: E2 [22:50:18]MH_I2C_Read... [22:50:18]Read from MH i2c: E2 0E 00 [22:50:18]MH_I2C_Read... [22:50:18]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 3B [22:50:18]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [22:50:18]wFMCommunicate OK [22:50:18]SAM_PROTO_GetShiftState done [22:50:18]FM_GetShiftState done [22:50:18]req_shift_opened done [22:50:18]requested_item shift.open_date is exist - process it [22:50:18]req_shift_open_date [22:50:18]req_shift_open_date done [22:50:18]produce_requested_data done [22:50:18]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67581,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [22:50:18]process_action_free get_value [22:50:18]json_value_free [22:50:18]json_value_free done [22:50:18]process_json_proto returns [22:50:18]Send response to host [22:50:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67581,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [22:50:18]free response buf [22:50:18]execute_script done [22:50:18]execute_script returns [22:50:18]free content buf [22:50:18]Sock 9.Close socket [22:50:18]Sock 9.Thread stoped [22:50:18]accept exits with 7 [22:50:18]New connection [22:50:18]New thread 3067485540 created [22:50:18]Thread 3067628900 joined [22:50:18]Waiting for new connection... [22:50:18] Sock 7.Parse request [22:50:18]Sock 7.Check first char [22:50:18]Sock 7.First char is OK [22:50:18]request: POST /json_proto HTTP/1.0 [22:50:18]Method: POST [22:50:18]URL: /json_proto [22:50:18]Method is POST - this is cgi request [22:50:18]url: /json_proto [22:50:18]query_string will be loaded in cgi processing [22:50:18]execute_cgi json_proto POST (null) [22:50:18]execute_cgi path=json_proto method=POST [22:50:18]POST find Content-Length [22:50:18]Host: 172.17.41.195:8080 [22:50:18]Content-Length: 331 [22:50:18]Content-Type: application/json [22:50:18] [22:50:18]POST finish read [22:50:18]Found Content-Length = 331 [22:50:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [22:50:18]execute_script... [22:50:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [22:50:18]POST & json_proto [22:50:18]process_json_proto [22:50:18]json parsed OK: [22:50:18]protocol is kg_v1.0 [22:50:18]action value=get_value [22:50:18]process_action get_value [22:50:18]cmd_get_value [22:50:18]process_action get_value done [22:50:18]requested_data is exist [22:50:18]produce_requested_data [22:50:18]requested_item fm.sale.total is exist - process it [22:50:18]SAM_PROTO_GetFMData [22:50:18]wFMCommunicate request_size=4 [22:50:18]MH_SAM_APDU [22:50:18]CAPDU: 80 13 03 00 [22:50:18]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [22:50:18]Write i2c OK [22:50:18]MH_I2C_Read... [22:50:19]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [22:50:19]Read from MH i2c: E2 [22:50:19]MH_I2C_Read... [22:50:19]Read from MH i2c: E2 FD 00 [22:50:19]MH_I2C_Read... [22:50:19]Read from MH i2c: E2 FD 00 13 00 00 C6 04 85 04 C2 04 6E 04 04 00 33 05 01 00 69 04 A3 00 6F 04 04 00 8A 04 01 00 B1 04 05 00 23 4C 46 1C 03 70 04 05 00 3C 71 12 C0 02 72 04 04 00 E7 DA 33 5C 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 EA 5C 92 54 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 DC 1D 0C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 A9 00 00 00 B1 04 04 00 20 8F BE DC 70 04 04 00 20 8F BE DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 63 21 71 17 EF 03 09 90 00 A6 [22:50:19]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 33 05 01 00 69 04 A3 00 6F 04 04 00 8A 04 01 00 B1 04 05 00 23 4C 46 1C 03 70 04 05 00 3C 71 12 C0 02 72 04 04 00 E7 DA 33 5C 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 EA 5C 92 54 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 DC 1D 0C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 A9 00 00 00 B1 04 04 00 20 8F BE DC 70 04 04 00 20 8F BE DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 63 21 71 17 EF 03 09 90 00 [22:50:19]wFMCommunicate OK [22:50:19]wFMCommunicate request_size=4 [22:50:19]MH_SAM_APDU [22:50:19]CAPDU: 80 17 00 00 [22:50:19]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [22:50:19]Write i2c OK [22:50:19]MH_I2C_Read... [22:50:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [22:50:19]Read from MH i2c: E2 [22:50:19]MH_I2C_Read... [22:50:19]Read from MH i2c: E2 FD 00 [22:50:19]MH_I2C_Read... [22:50:19]Read from MH i2c: E2 FD 00 14 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 11 18 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 66 [22:50:19]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 11 18 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [22:50:19]wFMCommunicate OK [22:50:19]wFMCommunicate request_size=4 [22:50:19]MH_SAM_APDU [22:50:19]CAPDU: 80 17 00 00 [22:50:19]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [22:50:19]Write i2c OK [22:50:19]MH_I2C_Read... [22:50:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [22:50:19]Read from MH i2c: E2 [22:50:19]MH_I2C_Read... [22:50:19]Read from MH i2c: E2 FD 00 [22:50:19]MH_I2C_Read... [22:50:19]Read from MH i2c: E2 FD 00 15 00 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 BC [22:50:19]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [22:50:19]wFMCommunicate OK [22:50:19]wFMCommunicate request_size=4 [22:50:19]MH_SAM_APDU [22:50:19]CAPDU: 80 17 00 00 [22:50:19]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [22:50:19]Write i2c OK [22:50:19]MH_I2C_Read... [22:50:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [22:50:20]Read from MH i2c: E2 [22:50:20]MH_I2C_Read... [22:50:20]Read from MH i2c: E2 FD 00 [22:50:20]MH_I2C_Read... [22:50:20]Read from MH i2c: E2 FD 00 16 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 11 [22:50:20]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [22:50:20]wFMCommunicate OK [22:50:20]wFMCommunicate request_size=4 [22:50:20]MH_SAM_APDU [22:50:20]CAPDU: 80 17 00 00 [22:50:20]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [22:50:20]Write i2c OK [22:50:20]MH_I2C_Read... [22:50:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [22:50:20]Read from MH i2c: E2 [22:50:20]MH_I2C_Read... [22:50:20]Read from MH i2c: E2 E3 00 [22:50:20]MH_I2C_Read... [22:50:20]Read from MH i2c: E2 E3 00 17 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 76 [22:50:20]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [22:50:20]wFMCommunicate OK [22:50:20]SAM_PROTO_GetFMData done [22:50:20]requested_item fm.sale_refund.total is exist - process it [22:50:20]requested_item fm.buy.total is exist - process it [22:50:20]requested_item shift.sale.total is exist - process it [22:50:20]SAM_PROTO_GetShiftData [22:50:20]wFMCommunicate request_size=4 [22:50:20]MH_SAM_APDU [22:50:20]CAPDU: 80 13 02 00 [22:50:20]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [22:50:20]Write i2c OK [22:50:20]MH_I2C_Read... [22:50:20]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [22:50:20]Read from MH i2c: E2 [22:50:20]MH_I2C_Read... [22:50:20]Read from MH i2c: E2 FD 00 [22:50:20]MH_I2C_Read... [22:50:20]Read from MH i2c: E2 FD 00 18 00 00 BA 04 AA 04 B6 04 6E 04 04 00 B3 00 00 00 69 04 9D 00 6F 04 04 00 B2 00 00 00 B1 04 04 00 CD 6D 6A 01 70 04 03 00 94 C5 91 72 04 03 00 39 A8 D8 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 59 7E 26 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 23 35 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 90 D0 03 70 04 03 00 90 D0 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 B8 67 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 8B [22:50:20]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 B3 00 00 00 69 04 9D 00 6F 04 04 00 B2 00 00 00 B1 04 04 00 CD 6D 6A 01 70 04 03 00 94 C5 91 72 04 03 00 39 A8 D8 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 59 7E 26 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 23 35 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 90 D0 03 70 04 03 00 90 D0 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 B8 67 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [22:50:20]wFMCommunicate OK [22:50:20]wFMCommunicate request_size=4 [22:50:20]MH_SAM_APDU [22:50:20]CAPDU: 80 17 00 00 [22:50:20]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [22:50:20]Write i2c OK [22:50:20]MH_I2C_Read... [22:50:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [22:50:21]Read from MH i2c: E2 [22:50:21]MH_I2C_Read... [22:50:21]Read from MH i2c: E2 FD 00 [22:50:21]MH_I2C_Read... [22:50:21]Read from MH i2c: E2 FD 00 19 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 A5 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 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 90 00 F0 [22:50:21]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 A5 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 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 90 00 [22:50:21]wFMCommunicate OK [22:50:21]wFMCommunicate request_size=4 [22:50:21]MH_SAM_APDU [22:50:21]CAPDU: 80 17 00 00 [22:50:21]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [22:50:21]Write i2c OK [22:50:21]MH_I2C_Read... [22:50:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [22:50:21]Read from MH i2c: E2 [22:50:21]MH_I2C_Read... [22:50:21]Read from MH i2c: E2 FD 00 [22:50:21]MH_I2C_Read... [22:50:21]Read from MH i2c: E2 FD 00 1A 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C6 [22:50:21]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [22:50:21]wFMCommunicate OK [22:50:21]wFMCommunicate request_size=4 [22:50:21]MH_SAM_APDU [22:50:21]CAPDU: 80 17 00 00 [22:50:21]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [22:50:21]Write i2c OK [22:50:21]MH_I2C_Read... [22:50:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [22:50:21]Read from MH i2c: E2 [22:50:21]MH_I2C_Read... [22:50:21]Read from MH i2c: E2 FD 00 [22:50:21]MH_I2C_Read... [22:50:21]Read from MH i2c: E2 FD 00 1B 00 00 00 EF 03 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 90 00 13 [22:50:21]RAPDU: 00 EF 03 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 90 00 [22:50:21]wFMCommunicate OK [22:50:21]wFMCommunicate request_size=4 [22:50:21]MH_SAM_APDU [22:50:21]CAPDU: 80 17 00 00 [22:50:21]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [22:50:21]Write i2c OK [22:50:21]MH_I2C_Read... [22:50:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [22:50:22]Read from MH i2c: E2 [22:50:22]MH_I2C_Read... [22:50:22]Read from MH i2c: E2 D7 00 [22:50:22]MH_I2C_Read... [22:50:22]Read from MH i2c: E2 D7 00 1C 00 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7F [22:50:22]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [22:50:22]wFMCommunicate OK [22:50:22]SAM_PROTO_GetShiftData done [22:50:22]requested_item shift.sale.total_cash is exist - process it [22:50:22]requested_item shift.sale_refund.total is exist - process it [22:50:22]requested_item shift.sale_refund.total_cash is exist - process it [22:50:22]requested_item shift.buy.total is exist - process it [22:50:22]requested_item shift.buy.total_cash is exist - process it [22:50:22]produce_requested_data done [22:50:22]produce_requested_data return {"fm.sale.total":133592709.47,"fm.sale_refund.total":37034760.00,"fm.buy.total":0.00,"shift.sale.total":237521.41,"shift.sale.total_cash":95533.00,"shift.sale_refund.total":2500.00,"shift.sale_refund.total_cash":2500.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [22:50:22]process_action_free get_value [22:50:22]json_value_free [22:50:22]json_value_free done [22:50:22]process_json_proto returns [22:50:22]Send response to host [22:50:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133592709.47,"fm.sale_refund.total":37034760.00,"fm.buy.total":0.00,"shift.sale.total":237521.41,"shift.sale.total_cash":95533.00,"shift.sale_refund.total":2500.00,"shift.sale_refund.total_cash":2500.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [22:50:22]free response buf [22:50:22]execute_script done [22:50:22]execute_script returns [22:50:22]free content buf [22:50:22]Sock 7.Close socket [22:50:22]Sock 7.Thread stoped [22:50:22]accept exits with 9 [22:50:22]New connection [22:50:22]New thread 3067628900 created [22:50:22]Thread 3067485540 joined [22:50:22]Waiting for new connection... [22:50:22] Sock 9.Parse request [22:50:22]Sock 9.Check first char [22:50:22]Sock 9.First char is OK [22:50:22]request: POST /json_proto HTTP/1.0 [22:50:22]Method: POST [22:50:22]URL: /json_proto [22:50:22]Method is POST - this is cgi request [22:50:22]url: /json_proto [22:50:22]query_string will be loaded in cgi processing [22:50:22]execute_cgi json_proto POST (null) [22:50:22]execute_cgi path=json_proto method=POST [22:50:22]POST find Content-Length [22:50:22]Host: 172.17.41.195:8080 [22:50:22]Content-Length: 144 [22:50:22]Content-Type: application/json [22:50:22] [22:50:22]POST finish read [22:50:22]Found Content-Length = 144 [22:50:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [22:50:22]execute_script... [22:50:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [22:50:22]POST & json_proto [22:50:22]process_json_proto [22:50:22]json parsed OK: [22:50:22]protocol is kg_v1.0 [22:50:22]action value=print_doc [22:50:22]process_action print_doc [22:50:22]ExternCall_PrintAddStr [22:50:22]wPrintStart [22:50:22]Write to MH i2c: 01 00 00 1D 00 1D [22:50:22]Write i2c OK [22:50:22]MH_I2C_Read... [22:50:22]Read from MH i2c: 01 [22:50:22]MH_I2C_Read... [22:50:22]Read from MH i2c: 01 07 00 [22:50:22]MH_I2C_Read... [22:50:22]Read from MH i2c: 01 07 00 1D 00 00 00 00 00 00 FF 0F 32 [22:50:22]RasterBufferAndPrint [22:50:22]line Счет N : (1)507662 [22:50:22]line ИНН: 02508201610067 [22:50:22]line Контрольно-Кассовый Чек [22:50:22]line ПРОДАЖА [22:50:22]line ТРК (МРК, ГНК) : 11 [22:50:22]line Товар: 2710194210 [22:50:22]line ДТ-К-5 [22:50:22]line 80.330 * 74.70 [22:50:22]line = 6000.65 [22:50:22]line НДС 12% НСП 1% [22:50:22]line > о реализуемом товаре [22:50:22]line ИТОГО: 6000.65 [22:50:22]line НСП 1% : 53.10 [22:50:22]line НДС 12% : 637.24 [22:50:22]line Наличными: 0.00 [22:50:22]line Безнал.: 6000.65 [22:50:22]line Место: АЗС № 91 "Партнер Нефть" [22:50:22]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [22:50:22]line СНО: Общий режим [22:50:22]line Чек 179 16.05.2024 22:45 [22:50:22]line Смена: 357 ФФД: 1.0 [22:50:22]line ЗНМ: 0300000119 [22:50:22]line РНМ: 0000000000091845 [22:50:22]line Версия ККМ: 001 [22:50:22]line Платежная система: O! деньги [22:50:22]line ФМ: 0000000000871829 [22:50:22]line ФД: 67581 [22:50:22]line ФПД: 104791217294849 [22:50:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T224514&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67581&fm=104791217294849&tin=02508201610067®Number=0000000000091845&sum=600065 [22:50:22]written 0, free lines is 4095 [22:50:22]OFD Sender: No OFD packet to send [22:50:22]Write to MH i2c: 01 00 00 46 00 46 [22:50:22]Write i2c OK [22:50:22]MH_I2C_Read... [22:50:22]Read from MH i2c: 01 [22:50:22]MH_I2C_Read... [22:50:22]Read from MH i2c: 01 07 00 [22:50:22]MH_I2C_Read... [22:50:22]Read from MH i2c: 01 07 00 46 00 00 00 00 00 00 D6 0C 2F [22:50:22]RasterBufferAndPrint [22:50:22]line [22:50:22]line [22:50:22]line [22:50:22]line [22:50:22]line [22:50:22]written 0, free lines is 3296 [22:50:22]MH_Cut [22:50:22]Write to MH i2c: D1 01 00 4D 00 01 1F [22:50:22]Write i2c OK [22:50:22]MH_I2C_Read... [22:50:22]Read from MH i2c: D1 [22:50:22]MH_I2C_Read... [22:50:22]Read from MH i2c: D1 01 00 [22:50:22]MH_I2C_Read... [22:50:22]Read from MH i2c: D1 01 00 4D 00 00 1E [22:50:22]Write to MH i2c: 01 00 00 4E 00 4E [22:50:22]Write i2c OK [22:50:22]MH_I2C_Read... [22:50:23]*** Cut start [22:50:23]*** Purtial cut [22:50:23]*** CUTSNS_PIN = 0 [22:50:23]*** Stage 1: CUTSNS_PIN = 1 [22:50:25]Read from MH i2c: 01 [22:50:25]MH_I2C_Read... [22:50:25]*** Stop cut motor [22:50:25]*** Cut end [22:50:25]Read from MH i2c: 01 07 00 [22:50:25]MH_I2C_Read... [22:50:25]Read from MH i2c: 01 07 00 4E 00 00 00 00 00 00 FF 0F 63 [22:50:25]process_action print_doc done [22:50:25]requested_data is exist [22:50:25]produce_requested_data [22:50:25]produce_requested_data return (null) [22:50:25]process_action_free print_doc [22:50:25]json_value_free [22:50:25]json_value_free done [22:50:25]process_json_proto returns [22:50:25]Send response to host [22:50:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [22:50:25]free response buf [22:50:25]execute_script done [22:50:25]execute_script returns [22:50:25]free content buf [22:50:25]Sock 9.Close socket [22:50:25]Sock 9.Thread stoped [22:50:27]OFD Sender: No OFD packet to send [22:50:32]OFD Sender: No OFD packet to send [22:50:37]OFD Sender: No OFD packet to send [22:50:42]OFD Sender: No OFD packet to send [22:50:47]OFD Sender: No OFD packet to send [22:50:52]OFD Sender: No OFD packet to send [22:50:57]OFD Sender: No OFD packet to send [22:51:02]OFD Sender: No OFD packet to send [22:51:07]OFD Sender: No OFD packet to send [22:51:12]OFD Sender: No OFD packet to send [22:51:15]accept exits with 7 [22:51:15]New connection [22:51:15]New thread 3067485540 created [22:51:15]Thread 3067628900 joined [22:51:15]Waiting for new connection... [22:51:15] Sock 7.Parse request [22:51:15]Sock 7.Check first char [22:51:15]Sock 7.First char is OK [22:51:15]request: POST /json_proto HTTP/1.0 [22:51:15]Method: POST [22:51:15]URL: /json_proto [22:51:15]Method is POST - this is cgi request [22:51:15]url: /json_proto [22:51:15]query_string will be loaded in cgi processing [22:51:15]execute_cgi json_proto POST (null) [22:51:15]execute_cgi path=json_proto method=POST [22:51:15]POST find Content-Length [22:51:15]Host: 172.17.41.195:8080 [22:51:15]Content-Length: 677 [22:51:15]Content-Type: application/json [22:51:15] [22:51:15]POST finish read [22:51:15]Found Content-Length = 677 [22:51:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507665", "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.80, "quantity" : 7.490, "sum" : 500.33, "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:51:15]execute_script... [22:51: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)507665", "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.80, "quantity" : 7.490, "sum" : 500.33, "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:51:15]POST & json_proto [22:51:15]process_json_proto [22:51:15]json parsed OK: [22:51:15]protocol is kg_v1.0 [22:51:15]action value=close_receipt [22:51:15]process_action close_receipt [22:51:15]cmd_close_receipt [22:51:15]MH_GetDate [22:51:15]Write to MH i2c: F0 00 00 4F 00 3E [22:51:15]Write i2c OK [22:51:15]MH_I2C_Read... [22:51:15]Read from MH i2c: F0 [22:51:15]MH_I2C_Read... [22:51:15]Read from MH i2c: F0 09 00 [22:51:15]MH_I2C_Read... [22:51:15]Read from MH i2c: F0 09 00 4F 00 00 E4 8D 46 66 FC 21 6F 64 54 [22:51:15]GetLastDocTimeStamp 1715899514 [22:51:15]current date 1715899876 [22:51:15]FM_GetShiftState [22:51:15]SAM_PROTO_GetShiftState [22:51:15]wFMCommunicate request_size=4 [22:51:15]MH_SAM_APDU [22:51:15]CAPDU: 80 13 01 00 [22:51:15]Write to MH i2c: E2 08 00 50 00 80 13 01 00 00 00 00 00 CD [22:51:15]Write i2c OK [22:51:15]MH_I2C_Read... [22:51:16]Read from MH i2c: E2 [22:51:16]MH_I2C_Read... [22:51:16]Read from MH i2c: E2 0E 00 [22:51:16]MH_I2C_Read... [22:51:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:51:16]Read from MH i2c: E2 0E 00 50 00 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 79 [22:51:16]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [22:51:16]wFMCommunicate OK [22:51:16]SAM_PROTO_GetShiftState done [22:51:16]FM_GetShiftState done [22:51:16]opened in 1715818916 [22:51:16]opened+sec_in_day 1715905316 [22:51:16]quantity*price = 50033 [22:51:16]sum+1 = 50034 [22:51:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 180 16.05.2024 22:51 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67582 ФПД: 138754757116984 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T225116&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67582&fm=138754757116984&tin=02508201610067®Number=0000000000091845&sum=50000 [22:51:17]StoreToDocumentArchive [22:51:17]shift 357 fd 67582 [22:51:17]save to /storage/0357/doc_00067582 [22:51:17]save last doc name /storage/0357/doc_00067582 to /storage/kkm_last_doc_name [22:51:17]save OK [22:51:17]Clear old archive folders... [22:51:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:51:17]tlvbuf is 01E17C60 [22:51:17]SAM_PROTO_ClearQueue [22:51:17]wFMCommunicate request_size=4 [22:51:17]MH_SAM_APDU [22:51:17]CAPDU: 80 09 00 00 [22:51:17]Write to MH i2c: E2 08 00 5D 00 80 09 00 00 00 00 00 00 CF [22:51:17]Write i2c OK [22:51:17]MH_I2C_Read... [22:51:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:51:17]Read from MH i2c: E2 [22:51:17]MH_I2C_Read... [22:51:17]Read from MH i2c: E2 03 00 [22:51:17]MH_I2C_Read... [22:51:17]Read from MH i2c: E2 03 00 5D 00 00 90 00 D1 [22:51:17]RAPDU: 90 00 [22:51:17]wFMCommunicate OK [22:51:17]SAM_PROTO_ClearQueue done [22:51:17]KKMCreateOFDPacket [22:51:17]OFDProtocolAddRootSTLVToBuf [22:51:17]FM_MakeSignedData [22:51:17]FM_MakeSignedData [22:51:17]SAM_PROTO_SignData [22:51:17]wFMCommunicate request_size=4 [22:51:17]MH_SAM_APDU [22:51:17]CAPDU: 80 0D 01 02 [22:51:17]Write to MH i2c: E2 08 00 5E 00 80 0D 01 02 00 00 00 00 D7 [22:51:17]Write i2c OK [22:51:17]MH_I2C_Read... [22:51:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:51:17]Read from MH i2c: E2 [22:51:17]MH_I2C_Read... [22:51:17]Read from MH i2c: E2 03 00 [22:51:17]MH_I2C_Read... [22:51:17]Read from MH i2c: E2 03 00 5E 00 00 90 00 D2 [22:51:17]RAPDU: 90 00 [22:51:17]wFMCommunicate OK [22:51:17]wFMCommunicate request_size=255 [22:51:17]MH_SAM_APDU [22:51: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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 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 E4 8D 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FE 07 01 00 35 04 06 00 7E [22:51:17]Write to MH i2c: E2 02 01 5F 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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 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 E4 8D 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FE 07 01 00 35 04 06 00 7E 00 00 1D [22:51:17]Write i2c OK [22:51:17]MH_I2C_Read... [22:51:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:51:17]Read from MH i2c: E2 [22:51:17]MH_I2C_Read... [22:51:17]Read from MH i2c: E2 03 00 [22:51:17]MH_I2C_Read... [22:51:17]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [22:51:17]RAPDU: 90 00 [22:51:17]wFMCommunicate OK [22:51:17]wFMCommunicate request_size=10 [22:51:17]MH_SAM_APDU [22:51:17]CAPDU: 80 0D 02 02 05 32 5C 02 44 38 [22:51:17]Write to MH i2c: E2 0D 00 60 00 80 0D 02 02 05 00 32 5C 02 44 38 00 00 F0 [22:51:17]Write i2c OK [22:51:17]MH_I2C_Read... [22:51:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:51:17]Read from MH i2c: E2 [22:51:17]MH_I2C_Read... [22:51:17]Read from MH i2c: E2 03 00 [22:51:17]MH_I2C_Read... [22:51:17]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [22:51:17]RAPDU: 90 00 [22:51:17]wFMCommunicate OK [22:51:17]wFMCommunicate request_size=4 [22:51:17]MH_SAM_APDU [22:51:17]CAPDU: 80 0D 03 02 [22:51:17]Write to MH i2c: E2 08 00 61 00 80 0D 03 02 00 00 00 00 DC [22:51:17]Write i2c OK [22:51:17]MH_I2C_Read... [22:51:17]OFD Sender: No OFD packet to send [22:51:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:51:17]Read from MH i2c: E2 [22:51:17]MH_I2C_Read... [22:51:17]Read from MH i2c: E2 0B 00 [22:51:17]MH_I2C_Read... [22:51:17]Read from MH i2c: E2 0B 00 61 00 00 F3 4A E3 61 6F BE 18 04 90 00 A7 [22:51:17]RAPDU: F3 4A E3 61 6F BE 18 04 90 00 [22:51:17]wFMCommunicate OK [22:51:17]SAM_PROTO_SignData done [22:51:17]FM_MakeSignedData done [22:51:17]CreateOFDProtocolMessage [22:51:17]wFMCommunicate request_size=4 [22:51:17]MH_SAM_APDU [22:51:17]CAPDU: 80 11 00 00 [22:51:17]Write to MH i2c: E2 08 00 62 00 80 11 00 00 00 00 00 00 DC [22:51:17]Write i2c OK [22:51:17]MH_I2C_Read... [22:51:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:51:17]Read from MH i2c: E2 [22:51:17]MH_I2C_Read... [22:51:17]Read from MH i2c: E2 17 00 [22:51:17]MH_I2C_Read... [22:51:17]Read from MH i2c: E2 17 00 62 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 32 [22:51:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:51:17]wFMCommunicate OK [22:51:17]CreateOFDProtocolMessage done [22:51:17]OFDSenderStorePacket 67582 [22:51:17]StoreOFDPacket docnum=67582 [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:09]/dev/ttyS4 opened [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 01 00 00 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 01 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 4E FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 8A [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** Check firmware version 30515, crc_r 5823D75D, crc_c: 5823D75D, size: 52480 [00:00:09]*** [00:00:09]*** Starting fw at address 01020100 (2007E318 010246F9) [00:00:09]*** Waiting for read because exit forced [00:00:09]Read from MH i2c: A0 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:09]*** 10 ms more... [00:00:10]*** MH1903 init start (LINUX_LIGHT) [00:00:10]*** Serial: 3139303353513838 540000000057254E (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 30896766+1685004796=1715901562 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33540623 [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 03 00 02 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 03 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 4E FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 8B [00:00:10]Are we in boot? [00:00:10]We are not in boot now [00:00:10]Write to MH i2c: 01 00 00 04 00 04 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30515 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 38 00 FF FF 57 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 7B 94 46 66 FC 21 6F 64 AA [23:19:23]Current date/time: 16.05.2024 23:19 [23:19:23]FM_Init [23:19:23]wFMConnect [23:19:23]MH_SAM_On [23:19:23]Write to MH i2c: E0 00 00 08 00 E7 [23:19:23]Write i2c OK [23:19:23]MH_I2C_Read... [23:19:23]*** iso7816_init finished! [23:19:23]*** atr: [23:19:23]*** 0F 3B D5 18 FF 81 91 FE [23:19:23]*** 1F C3 80 73 C8 21 10 0A [23:19:23]*** 00 00 00 00 00 00 00 00 [23:19:23]*** 00 00 00 00 00 00 00 00 [23:19:23]*** 00 00 00 00 00 00 00 00 [23:19:23]*** 00 00 00 00 00 00 00 00 [23:19:23]*** 00 00 00 00 00 00 00 00 [23:19:23]*** 00 00 00 00 00 00 00 00 [23:19:23]Read from MH i2c: E0 [23:19:23]MH_I2C_Read... [23:19:23]Read from MH i2c: E0 10 00 [23:19:23]MH_I2C_Read... [23:19:23]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [23:19:23]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [23:19:23]wFMCommunicate request_size=10 [23:19:23]MH_SAM_APDU [23:19:23]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [23:19:23]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [23:19:23]Write i2c OK [23:19:23]MH_I2C_Read... [23:19:23]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [23:19:23]Read from MH i2c: E2 [23:19:23]MH_I2C_Read... [23:19:23]Read from MH i2c: E2 03 00 [23:19:23]MH_I2C_Read... [23:19:23]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [23:19:23]RAPDU: 90 00 [23:19:23]wFMCommunicate OK [23:19:23]wFMCommunicate request_size=4 [23:19:23]MH_SAM_APDU [23:19:23]CAPDU: 80 11 00 00 [23:19:23]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [23:19:23]Write i2c OK [23:19:23]MH_I2C_Read... [23:19:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:23]Read from MH i2c: E2 [23:19:23]MH_I2C_Read... [23:19:23]Read from MH i2c: E2 17 00 [23:19:23]MH_I2C_Read... [23:19:23]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DA [23:19:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [23:19:23]wFMCommunicate OK [23:19:23]Detected FM SN is 0000000000871829 [23:19:23]Stored FM SN is 0000000000871829 [23:19:23]wFMCommunicate request_size=9 [23:19:23]MH_SAM_APDU [23:19:23]CAPDU: 80 16 00 00 04 44 DD 00 00 [23:19:23]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 44 DD 00 00 00 00 B3 [23:19:23]Write i2c OK [23:19:23]MH_I2C_Read... [23:19:23]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [23:19:23]Read from MH i2c: E2 [23:19:23]MH_I2C_Read... [23:19:23]Read from MH i2c: E2 03 00 [23:19:23]MH_I2C_Read... [23:19:23]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [23:19:23]RAPDU: 90 00 [23:19:23]wFMCommunicate OK [23:19:23]FM PIN OK [23:19:23]wFMCommunicate request_size=8 [23:19:23]MH_SAM_APDU [23:19:23]CAPDU: 80 14 04 00 03 02 00 01 [23:19:23]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [23:19:23]Write i2c OK [23:19:23]MH_I2C_Read... [23:19:23]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [23:19:23]Read from MH i2c: E2 [23:19:23]MH_I2C_Read... [23:19:23]Read from MH i2c: E2 03 00 [23:19:23]MH_I2C_Read... [23:19:23]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [23:19:23]RAPDU: 90 00 [23:19:23]wFMCommunicate OK [23:19:23]wFMCommunicate request_size=13 [23:19:23]MH_SAM_APDU [23:19:23]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [23:19:23]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [23:19:23]Write i2c OK [23:19:23]MH_I2C_Read... [23:19:23]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [23:19:23]Read from MH i2c: E2 [23:19:23]MH_I2C_Read... [23:19:23]Read from MH i2c: E2 03 00 [23:19:23]MH_I2C_Read... [23:19:23]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [23:19:23]RAPDU: 90 00 [23:19:23]wFMCommunicate OK [23:19:23]wFMCommunicate request_size=4 [23:19:23]MH_SAM_APDU [23:19:23]CAPDU: 80 11 00 00 [23:19:23]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [23:19:23]Write i2c OK [23:19:23]MH_I2C_Read... [23:19:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:23]Read from MH i2c: E2 [23:19:23]MH_I2C_Read... [23:19:23]Read from MH i2c: E2 17 00 [23:19:23]MH_I2C_Read... [23:19:23]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DE [23:19:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [23:19:23]wFMCommunicate OK [23:19:23]DocumentArchiveInit [23:19:23]Start Httpd... [23:19:23]Httpd thread 3067825508 created [23:19:23]Write to MH i2c: 01 00 00 0F 00 0F [23:19:23]Write i2c OK [23:19:23]MH_I2C_Read... [23:19:23]Read from MH i2c: 01 [23:19:23]MH_I2C_Read... [23:19:23]Read from MH i2c: 01 07 00 [23:19:23]MH_I2C_Read... [23:19:23]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [23:19:23]MH Int Process started [23:19:23]Allocated Socket 8 [23:19:23]Bind OK [23:19:23]Listen OK [23:19:23]httpd running on port 8080 [23:19:23]Waiting for new connection... [23:19:23]OFD Sender: Processing packet 67582 [packets to send 35, broken 34] [23:19:23]ProducePacketName [23:19:23]name=ofd_packets/00067582 [23:19:23]OFD Sender: To server: pG, [23:19:23]CommunicateWithHost lk.salyk.kg:30040 [23:19:23]ConnectInit lk.salyk.kg [23:19:23]Connected sock=6 [23:19: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 38 32 39 0F 01 00 00 35 2A 07 01 1C 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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 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 E4 8D 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FE 07 01 00 35 04 06 00 7E 32 5C 02 44 38 F3 4A E3 61 6F BE 18 04 [23:19:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 31 81 47 00 1B 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 38 32 39 10 04 04 00 FE 07 01 00 F4 03 04 00 53 3C 46 66 B6 04 01 00 00 55 14 9B C1 22 EB CF B5 [23:19:23]CommunicateWithHost err = 0 [23:19:23]CheckOFDResponse [23:19:23]1017 (14) - 77093643461234 [23:19:23]1041 (16) - 0000000000871829 [23:19:23]1040 (4) - 67582 [23:19:23]1012 (4) - 16.05.2024 17:03 [23:19:23]1206 (1) - 0 [23:19:23]OFD Sender: Remove packet 67582 [23:19:23]ProducePacketName [23:19:23]name=ofd_packets/00067582 [23:19:23]NVStorageDeleteData [23:19:24]OFD Sender: No OFD packet to send [23:19:27]accept exits with 9 [23:19:27]New connection [23:19:27]New thread 3067538788 created [23:19:27]Waiting for new connection... [23:19:27] Sock 9.Parse request [23:19:27]Sock 9.Check first char [23:19:27]Sock 9.First char is OK [23:19:27]request: POST /json_proto HTTP/1.0 [23:19:27]Method: POST [23:19:27]URL: /json_proto [23:19:27]Method is POST - this is cgi request [23:19:27]url: /json_proto [23:19:27]query_string will be loaded in cgi processing [23:19:27]execute_cgi json_proto POST (null) [23:19:27]execute_cgi path=json_proto method=POST [23:19:27]POST find Content-Length [23:19:27]Host: 172.17.41.195:8080 [23:19:27]Content-Length: 215 [23:19:27]Content-Type: application/json [23:19:27] [23:19:27]POST finish read [23:19:27]Found Content-Length = 215 [23:19: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" ] } } [23:19:27]execute_script... [23:19: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" ] } } [23:19:27]POST & json_proto [23:19:27]process_json_proto [23:19:27]json parsed OK: [23:19:27]protocol is kg_v1.0 [23:19:27]action value=get_value [23:19:27]process_action get_value [23:19:27]cmd_get_value [23:19:27]process_action get_value done [23:19:27]requested_data is exist [23:19:27]produce_requested_data [23:19:27]requested_item kkm.sn is exist - process it [23:19:27]requested_item kkm.ver is exist - process it [23:19:27]requested_item fm.sn is exist - process it [23:19:27]wFMCommunicate request_size=4 [23:19:27]MH_SAM_APDU [23:19:27]CAPDU: 80 11 00 00 [23:19:27]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [23:19:27]Write i2c OK [23:19:27]MH_I2C_Read... [23:19:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:27]Read from MH i2c: E2 [23:19:27]MH_I2C_Read... [23:19:27]Read from MH i2c: E2 17 00 [23:19:27]MH_I2C_Read... [23:19:27]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E0 [23:19:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [23:19:27]wFMCommunicate OK [23:19:27]requested_item fd.num is exist - process it [23:19:27]SAM_PROTO_GetFieldsCounters [23:19:27]wFMCommunicate request_size=4 [23:19:27]MH_SAM_APDU [23:19:27]CAPDU: 80 13 00 00 [23:19:27]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [23:19:27]Write i2c OK [23:19:27]MH_I2C_Read... [23:19:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:19:27]Read from MH i2c: E2 [23:19:27]MH_I2C_Read... [23:19:27]Read from MH i2c: E2 62 00 [23:19:27]MH_I2C_Read... [23:19:27]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FE 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [23:19: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FE 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:19:27]wFMCommunicate OK [23:19:27]SAM_PROTO_GetFieldsCounters done [23:19:27]requested_item shift.num is exist - process it [23:19:27]requested_item shift.opened is exist - process it [23:19:27]req_shift_opened [23:19:27]FM_GetShiftState [23:19:27]SAM_PROTO_GetShiftState [23:19:27]wFMCommunicate request_size=4 [23:19:27]MH_SAM_APDU [23:19:27]CAPDU: 80 13 01 00 [23:19:27]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [23:19:27]Write i2c OK [23:19:27]MH_I2C_Read... [23:19:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:27]Read from MH i2c: E2 [23:19:27]MH_I2C_Read... [23:19:27]Read from MH i2c: E2 0E 00 [23:19:27]MH_I2C_Read... [23:19:27]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 3B [23:19:27]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [23:19:27]wFMCommunicate OK [23:19:27]SAM_PROTO_GetShiftState done [23:19:27]FM_GetShiftState done [23:19:27]req_shift_opened done [23:19:27]requested_item shift.open_date is exist - process it [23:19:27]req_shift_open_date [23:19:27]req_shift_open_date done [23:19:27]produce_requested_data done [23:19:27]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67582,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [23:19:27]process_action_free get_value [23:19:27]json_value_free [23:19:27]json_value_free done [23:19:27]process_json_proto returns [23:19:27]Send response to host [23:19:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67582,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [23:19:27]free response buf [23:19:27]execute_script done [23:19:27]execute_script returns [23:19:27]free content buf [23:19:27]Sock 9.Close socket [23:19:27]Sock 9.Thread stoped [23:19:27]accept exits with 6 [23:19:27]New connection [23:19:27]New thread 3067395428 created [23:19:27]Thread 3067538788 joined [23:19:27]Waiting for new connection... [23:19:27] Sock 6.Parse request [23:19:27]Sock 6.Check first char [23:19:27]Sock 6.First char is OK [23:19:27]request: POST /json_proto HTTP/1.0 [23:19:27]Method: POST [23:19:27]URL: /json_proto [23:19:27]Method is POST - this is cgi request [23:19:27]url: /json_proto [23:19:27]query_string will be loaded in cgi processing [23:19:27]execute_cgi json_proto POST (null) [23:19:27]execute_cgi path=json_proto method=POST [23:19:27]POST find Content-Length [23:19:27]Host: 172.17.41.195:8080 [23:19:27]Content-Length: 331 [23:19:27]Content-Type: application/json [23:19:27] [23:19:27]POST finish read [23:19:27]Found Content-Length = 331 [23:19: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" ] } } [23:19:27]execute_script... [23:19: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" ] } } [23:19:27]POST & json_proto [23:19:27]process_json_proto [23:19:27]json parsed OK: [23:19:27]protocol is kg_v1.0 [23:19:27]action value=get_value [23:19:27]process_action get_value [23:19:27]cmd_get_value [23:19:27]process_action get_value done [23:19:28]requested_data is exist [23:19:28]produce_requested_data [23:19:28]requested_item fm.sale.total is exist - process it [23:19:28]SAM_PROTO_GetFMData [23:19:28]wFMCommunicate request_size=4 [23:19:28]MH_SAM_APDU [23:19:28]CAPDU: 80 13 03 00 [23:19:28]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [23:19:28]Write i2c OK [23:19:28]MH_I2C_Read... [23:19:28]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:19:28]Read from MH i2c: E2 [23:19:28]MH_I2C_Read... [23:19:28]Read from MH i2c: E2 FD 00 [23:19:28]MH_I2C_Read... [23:19:28]Read from MH i2c: E2 FD 00 13 00 00 C6 04 85 04 C2 04 6E 04 04 00 34 05 01 00 69 04 A3 00 6F 04 04 00 8B 04 01 00 B1 04 05 00 73 0F 47 1C 03 70 04 05 00 8C 34 13 C0 02 72 04 04 00 E7 DA 33 5C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AB 71 92 54 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 97 1F 0C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 A9 00 00 00 B1 04 04 00 20 8F BE DC 70 04 04 00 20 8F BE DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 63 21 71 17 EF 03 09 90 00 63 [23:19:28]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 34 05 01 00 69 04 A3 00 6F 04 04 00 8B 04 01 00 B1 04 05 00 73 0F 47 1C 03 70 04 05 00 8C 34 13 C0 02 72 04 04 00 E7 DA 33 5C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AB 71 92 54 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 97 1F 0C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 A9 00 00 00 B1 04 04 00 20 8F BE DC 70 04 04 00 20 8F BE DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 63 21 71 17 EF 03 09 90 00 [23:19:28]wFMCommunicate OK [23:19:28]wFMCommunicate request_size=4 [23:19:28]MH_SAM_APDU [23:19:28]CAPDU: 80 17 00 00 [23:19:28]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [23:19:28]Write i2c OK [23:19:28]MH_I2C_Read... [23:19:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:19:28]Read from MH i2c: E2 [23:19:28]MH_I2C_Read... [23:19:28]Read from MH i2c: E2 FD 00 [23:19:28]MH_I2C_Read... [23:19:28]Read from MH i2c: E2 FD 00 14 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 11 18 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 66 [23:19:28]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 11 18 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [23:19:28]wFMCommunicate OK [23:19:28]wFMCommunicate request_size=4 [23:19:28]MH_SAM_APDU [23:19:28]CAPDU: 80 17 00 00 [23:19:28]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [23:19:28]Write i2c OK [23:19:28]MH_I2C_Read... [23:19:29]Read from MH i2c: E2 [23:19:29]MH_I2C_Read... [23:19:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:19:29]Read from MH i2c: E2 FD 00 [23:19:29]MH_I2C_Read... [23:19:29]Read from MH i2c: E2 FD 00 15 00 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 BC [23:19:29]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [23:19:29]wFMCommunicate OK [23:19:29]wFMCommunicate request_size=4 [23:19:29]MH_SAM_APDU [23:19:29]CAPDU: 80 17 00 00 [23:19:29]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [23:19:29]Write i2c OK [23:19:29]MH_I2C_Read... [23:19:29]OFD Sender: No OFD packet to send [23:19:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:19:29]Read from MH i2c: E2 [23:19:29]MH_I2C_Read... [23:19:29]Read from MH i2c: E2 FD 00 [23:19:29]MH_I2C_Read... [23:19:29]Read from MH i2c: E2 FD 00 16 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 11 [23:19:29]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [23:19:29]wFMCommunicate OK [23:19:29]wFMCommunicate request_size=4 [23:19:29]MH_SAM_APDU [23:19:29]CAPDU: 80 17 00 00 [23:19:29]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [23:19:29]Write i2c OK [23:19:29]MH_I2C_Read... [23:19:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [23:19:29]Read from MH i2c: E2 [23:19:29]MH_I2C_Read... [23:19:29]Read from MH i2c: E2 E3 00 [23:19:29]MH_I2C_Read... [23:19:29]Read from MH i2c: E2 E3 00 17 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 76 [23:19:29]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:19:29]wFMCommunicate OK [23:19:29]SAM_PROTO_GetFMData done [23:19:29]requested_item fm.sale_refund.total is exist - process it [23:19:29]requested_item fm.buy.total is exist - process it [23:19:29]requested_item shift.sale.total is exist - process it [23:19:29]SAM_PROTO_GetShiftData [23:19:29]wFMCommunicate request_size=4 [23:19:29]MH_SAM_APDU [23:19:29]CAPDU: 80 13 02 00 [23:19:29]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [23:19:29]Write i2c OK [23:19:29]MH_I2C_Read... [23:19:30]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:19:30]Read from MH i2c: E2 [23:19:30]MH_I2C_Read... [23:19:30]Read from MH i2c: E2 FD 00 [23:19:30]MH_I2C_Read... [23:19:30]Read from MH i2c: E2 FD 00 18 00 00 BA 04 AA 04 B6 04 6E 04 04 00 B4 00 00 00 69 04 9D 00 6F 04 04 00 B3 00 00 00 B1 04 04 00 1D 31 6B 01 70 04 03 00 E4 88 92 72 04 03 00 39 A8 D8 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 1A 93 26 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 DE 36 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 90 D0 03 70 04 03 00 90 D0 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 B8 67 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 48 [23:19:30]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 B4 00 00 00 69 04 9D 00 6F 04 04 00 B3 00 00 00 B1 04 04 00 1D 31 6B 01 70 04 03 00 E4 88 92 72 04 03 00 39 A8 D8 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 1A 93 26 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 DE 36 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 90 D0 03 70 04 03 00 90 D0 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 B8 67 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:19:30]wFMCommunicate OK [23:19:30]wFMCommunicate request_size=4 [23:19:30]MH_SAM_APDU [23:19:30]CAPDU: 80 17 00 00 [23:19:30]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [23:19:30]Write i2c OK [23:19:30]MH_I2C_Read... [23:19:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:19:30]Read from MH i2c: E2 [23:19:30]MH_I2C_Read... [23:19:30]Read from MH i2c: E2 FD 00 [23:19:30]MH_I2C_Read... [23:19:30]Read from MH i2c: E2 FD 00 19 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 A5 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 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 90 00 F0 [23:19:30]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 A5 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 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 90 00 [23:19:30]wFMCommunicate OK [23:19:30]wFMCommunicate request_size=4 [23:19:30]MH_SAM_APDU [23:19:30]CAPDU: 80 17 00 00 [23:19:30]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [23:19:30]Write i2c OK [23:19:30]MH_I2C_Read... [23:19:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:19:30]Read from MH i2c: E2 [23:19:30]MH_I2C_Read... [23:19:30]Read from MH i2c: E2 FD 00 [23:19:30]MH_I2C_Read... [23:19:30]Read from MH i2c: E2 FD 00 1A 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C6 [23:19:30]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:19:30]wFMCommunicate OK [23:19:30]wFMCommunicate request_size=4 [23:19:30]MH_SAM_APDU [23:19:30]CAPDU: 80 17 00 00 [23:19:30]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [23:19:30]Write i2c OK [23:19:30]MH_I2C_Read... [23:19:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:19:31]Read from MH i2c: E2 [23:19:31]MH_I2C_Read... [23:19:31]Read from MH i2c: E2 FD 00 [23:19:31]MH_I2C_Read... [23:19:31]Read from MH i2c: E2 FD 00 1B 00 00 00 EF 03 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 90 00 13 [23:19:31]RAPDU: 00 EF 03 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 90 00 [23:19:31]wFMCommunicate OK [23:19:31]wFMCommunicate request_size=4 [23:19:31]MH_SAM_APDU [23:19:31]CAPDU: 80 17 00 00 [23:19:31]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [23:19:31]Write i2c OK [23:19:31]MH_I2C_Read... [23:19:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [23:19:31]Read from MH i2c: E2 [23:19:31]MH_I2C_Read... [23:19:31]Read from MH i2c: E2 D7 00 [23:19:31]MH_I2C_Read... [23:19:31]Read from MH i2c: E2 D7 00 1C 00 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7F [23:19:31]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:19:31]wFMCommunicate OK [23:19:31]SAM_PROTO_GetShiftData done [23:19:31]requested_item shift.sale.total_cash is exist - process it [23:19:31]requested_item shift.sale_refund.total is exist - process it [23:19:31]requested_item shift.sale_refund.total_cash is exist - process it [23:19:31]requested_item shift.buy.total is exist - process it [23:19:31]requested_item shift.buy.total_cash is exist - process it [23:19:31]produce_requested_data done [23:19:31]produce_requested_data return {"fm.sale.total":133593209.47,"fm.sale_refund.total":37034760.00,"fm.buy.total":0.00,"shift.sale.total":238021.41,"shift.sale.total_cash":96033.00,"shift.sale_refund.total":2500.00,"shift.sale_refund.total_cash":2500.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:19:31]process_action_free get_value [23:19:31]json_value_free [23:19:31]json_value_free done [23:19:31]process_json_proto returns [23:19:31]Send response to host [23:19:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133593209.47,"fm.sale_refund.total":37034760.00,"fm.buy.total":0.00,"shift.sale.total":238021.41,"shift.sale.total_cash":96033.00,"shift.sale_refund.total":2500.00,"shift.sale_refund.total_cash":2500.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:19:31]free response buf [23:19:31]execute_script done [23:19:31]execute_script returns [23:19:31]free content buf [23:19:31]Sock 6.Close socket [23:19:31]Sock 6.Thread stoped [23:19:31]accept exits with 9 [23:19:31]New connection [23:19:31]New thread 3067538788 created [23:19:31]Thread 3067395428 joined [23:19:31]Waiting for new connection... [23:19:31] Sock 9.Parse request [23:19:31]Sock 9.Check first char [23:19:31]Sock 9.First char is OK [23:19:31]request: POST /json_proto HTTP/1.0 [23:19:31]Method: POST [23:19:31]URL: /json_proto [23:19:31]Method is POST - this is cgi request [23:19:31]url: /json_proto [23:19:31]query_string will be loaded in cgi processing [23:19:31]execute_cgi json_proto POST (null) [23:19:31]execute_cgi path=json_proto method=POST [23:19:31]POST find Content-Length [23:19:31]Host: 172.17.41.195:8080 [23:19:31]Content-Length: 816 [23:19:31]Content-Type: application/json [23:19:31] [23:19:31]POST finish read [23:19:31]Found Content-Length = 816 [23:19:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507666", "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" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:19:31]execute_script... [23:19:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507666", "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" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:19:31]POST & json_proto [23:19:31]process_json_proto [23:19:31]json parsed OK: [23:19:31]protocol is kg_v1.0 [23:19:31]action value=close_receipt [23:19:31]process_action close_receipt [23:19:31]cmd_close_receipt [23:19:31]MH_GetDate [23:19:31]Write to MH i2c: F0 00 00 1D 00 0C [23:19:31]Write i2c OK [23:19:31]MH_I2C_Read... [23:19:31]Read from MH i2c: F0 [23:19:31]MH_I2C_Read... [23:19:31]Read from MH i2c: F0 09 00 [23:19:31]MH_I2C_Read... [23:19:31]Read from MH i2c: F0 09 00 1D 00 00 84 94 46 66 FC 21 6F 64 C9 [23:19:31]GetLastDocTimeStamp 1715899876 [23:19:31]current date 1715901572 [23:19:31]FM_GetShiftState [23:19:31]SAM_PROTO_GetShiftState [23:19:31]wFMCommunicate request_size=4 [23:19:31]MH_SAM_APDU [23:19:31]CAPDU: 80 13 01 00 [23:19:31]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [23:19:31]Write i2c OK [23:19:31]MH_I2C_Read... [23:19:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:31]Read from MH i2c: E2 [23:19:31]MH_I2C_Read... [23:19:31]Read from MH i2c: E2 0E 00 [23:19:31]MH_I2C_Read... [23:19:31]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 47 [23:19:31]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [23:19:31]wFMCommunicate OK [23:19:31]SAM_PROTO_GetShiftState done [23:19:31]FM_GetShiftState done [23:19:31]opened in 1715818916 [23:19:31]opened+sec_in_day 1715905316 [23:19:31]quantity*price = 100023 [23:19:31]sum+1 = 100024 [23:19:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.23 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.23 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 181 16.05.2024 23:19 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67583 ФПД: 93894142439133 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T231932&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67583&fm=93894142439133&tin=02508201610067®Number=0000000000091845&sum=100023 [23:19:32]StoreToDocumentArchive [23:19:32]shift 357 fd 67583 [23:19:32]save to /storage/0357/doc_00067583 [23:19:32]save last doc name /storage/0357/doc_00067583 to /storage/kkm_last_doc_name [23:19:32]save OK [23:19:32]Clear old archive folders... [23:19:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:19:32]tlvbuf is 01622BA0 [23:19:32]SAM_PROTO_ClearQueue [23:19:32]wFMCommunicate request_size=4 [23:19:32]MH_SAM_APDU [23:19:32]CAPDU: 80 09 00 00 [23:19:32]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [23:19:32]Write i2c OK [23:19:32]MH_I2C_Read... [23:19:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:19:32]Read from MH i2c: E2 [23:19:32]MH_I2C_Read... [23:19:32]Read from MH i2c: E2 03 00 [23:19:32]MH_I2C_Read... [23:19:32]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [23:19:32]RAPDU: 90 00 [23:19:32]wFMCommunicate OK [23:19:32]SAM_PROTO_ClearQueue done [23:19:32]KKMCreateOFDPacket [23:19:32]OFDProtocolAddRootSTLVToBuf [23:19:32]FM_MakeSignedData [23:19:32]FM_MakeSignedData [23:19:32]SAM_PROTO_SignData [23:19:32]wFMCommunicate request_size=4 [23:19:32]MH_SAM_APDU [23:19:32]CAPDU: 80 0D 01 02 [23:19:32]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [23:19:33]Write i2c OK [23:19:33]MH_I2C_Read... [23:19:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:19:33]Read from MH i2c: E2 [23:19:33]MH_I2C_Read... [23:19:33]Read from MH i2c: E2 03 00 [23:19:33]MH_I2C_Read... [23:19:33]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [23:19:33]RAPDU: 90 00 [23:19:33]wFMCommunicate OK [23:19:33]wFMCommunicate request_size=255 [23:19:33]MH_SAM_APDU [23:19:33]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 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 84 94 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FF 07 01 00 35 04 06 00 55 65 6F 01 [23:19:33]Write to MH i2c: E2 02 01 2D 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 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 84 94 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FF 07 01 00 35 04 06 00 55 65 6F 01 00 00 BD [23:19:33]Write i2c OK [23:19:33]MH_I2C_Read... [23:19:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:33]Read from MH i2c: E2 [23:19:33]MH_I2C_Read... [23:19:33]Read from MH i2c: E2 03 00 [23:19:33]MH_I2C_Read... [23:19:33]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [23:19:33]RAPDU: 90 00 [23:19:33]wFMCommunicate OK [23:19:33]wFMCommunicate request_size=7 [23:19:33]MH_SAM_APDU [23:19:33]CAPDU: 80 0D 02 02 02 AE DD [23:19:33]Write to MH i2c: E2 0A 00 2E 00 80 0D 02 02 02 00 AE DD 00 00 37 [23:19:33]Write i2c OK [23:19:33]MH_I2C_Read... [23:19:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:33]Read from MH i2c: E2 [23:19:33]MH_I2C_Read... [23:19:33]Read from MH i2c: E2 03 00 [23:19:33]MH_I2C_Read... [23:19:33]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [23:19:33]RAPDU: 90 00 [23:19:33]wFMCommunicate OK [23:19:33]wFMCommunicate request_size=4 [23:19:33]MH_SAM_APDU [23:19:33]CAPDU: 80 0D 03 02 [23:19:33]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [23:19:33]Write i2c OK [23:19:33]MH_I2C_Read... [23:19:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:19:33]Read from MH i2c: E2 [23:19:33]MH_I2C_Read... [23:19:33]Read from MH i2c: E2 0B 00 [23:19:33]MH_I2C_Read... [23:19:33]Read from MH i2c: E2 0B 00 2F 00 00 08 EF 23 01 8B E5 3F 07 90 00 7C [23:19:33]RAPDU: 08 EF 23 01 8B E5 3F 07 90 00 [23:19:33]wFMCommunicate OK [23:19:33]SAM_PROTO_SignData done [23:19:33]FM_MakeSignedData done [23:19:33]CreateOFDProtocolMessage [23:19:33]wFMCommunicate request_size=4 [23:19:33]MH_SAM_APDU [23:19:33]CAPDU: 80 11 00 00 [23:19:33]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [23:19:33]Write i2c OK [23:19:33]MH_I2C_Read... [23:19:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:33]Read from MH i2c: E2 [23:19:33]MH_I2C_Read... [23:19:33]Read from MH i2c: E2 17 00 [23:19:33]MH_I2C_Read... [23:19:33]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 00 [23:19:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [23:19:33]wFMCommunicate OK [23:19:33]CreateOFDProtocolMessage done [23:19:33]OFDSenderStorePacket 67583 [23:19:33]StoreOFDPacket docnum=67583 [23:19:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 CF FD 04 01 CE 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 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 84 94 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FF 07 01 00 35 04 06 00 55 65 6F 01 AE DD 08 EF 23 01 8B E5 3F 07 [23:19:33]CheckFolder [23:19:33]dirname=/storage/ofd_packets [23:19:33]CheckFolder done [23:19:33]ProducePacketName [23:19:33]name=ofd_packets/00067583 [23:19:33]NVStorageSaveData ofd_packets/00067583 [23:19:33]File name is /storage/ofd_packets/00067583 [23:19:33]Write 298 bytes [23:19:33]NVStorageSaveData done [23:19:33]OFDSenderStorePacket done [23:19:33]KKMCreateOFDPacket done [23:19:33]NVStorageSaveData kkm_last_timestamp [23:19:33]File name is /storage/kkm_last_timestamp [23:19:33]Write 4 bytes [23:19:33]NVStorageSaveData done [23:19:33]ExternCall_PrintAddStr [23:19:33]wPrintStart [23:19:33]Write to MH i2c: 01 00 00 31 00 31 [23:19:33]Write i2c OK [23:19:33]MH_I2C_Read... [23:19:33]Read from MH i2c: 01 [23:19:33]MH_I2C_Read... [23:19:33]Read from MH i2c: 01 07 00 [23:19:33]MH_I2C_Read... [23:19:33]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [23:19:33]RasterBufferAndPrint [23:19:33]line Счет N : (1)507666 [23:19:33]line ИНН: 02508201610067 [23:19:33]line Контрольно-Кассовый Чек [23:19:33]line ПРОДАЖА [23:19:33]line ТРК (МРК, ГНК) : 11 [23:19:33]line Товар: 2710194210 [23:19:33]line ДТ-К-5 [23:19:33]line 13.390 * 74.70 [23:19:33]line = 1000.23 [23:19:33]line НДС 12% НСП 1% [23:19:33]line > о реализуемом товаре [23:19:33]line ИТОГО: 1000.23 [23:19:33]line НСП 1% : 8.85 [23:19:33]line НДС 12% : 106.22 [23:19:33]line Наличными: 0.00 [23:19:33]line Безнал.: 1000.23 [23:19:33]line Место: АЗС № 91 "Партнер Нефть" [23:19:33]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [23:19:33]line СНО: Общий режим [23:19:33]line Чек 181 16.05.2024 23:19 [23:19:33]line Смена: 357 ФФД: 1.0 [23:19:33]line ЗНМ: 0300000119 [23:19:33]line РНМ: 0000000000091845 [23:19:33]line Версия ККМ: 001 [23:19:33]line Платежная система: Бакай Банк [23:19:33]line ФМ: 0000000000871829 [23:19:33]line ФД: 67583 [23:19:33]line ФПД: 93894142439133 [23:19:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T231932&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67583&fm=93894142439133&tin=02508201610067®Number=0000000000091845&sum=100023 [23:19:33]OFD Sender: Processing packet 67583 [packets to send 35, broken 34] [23:19:33]ProducePacketName [23:19:33]name=ofd_packets/00067583 [23:19:33]OFD Sender: To server: pG, [23:19:34]CommunicateWithHost lk.salyk.kg:30040 [23:19:34]ConnectInit lk.salyk.kg [23:19:34]written 0, free lines is 4095 [23:19:34]Connected sock=10 [23:19:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 CF FD 04 01 CE 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 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 84 94 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FF 07 01 00 35 04 06 00 55 65 6F 01 AE DD 08 EF 23 01 8B E5 3F 07 [23:19:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 0D BE 47 00 11 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 38 32 39 10 04 04 00 FF 07 01 00 F4 03 04 00 5E 3C 46 66 B6 04 01 00 00 49 00 77 1E FC 5C 2C 74 [23:19:34]CommunicateWithHost err = 0 [23:19:34]CheckOFDResponse [23:19:34]1017 (14) - 77093643461234 [23:19:34]1041 (16) - 0000000000871829 [23:19:34]1040 (4) - 67583 [23:19:34]1012 (4) - 16.05.2024 17:03 [23:19:34]1206 (1) - 0 [23:19:34]OFD Sender: Remove packet 67583 [23:19:34]ProducePacketName [23:19:34]name=ofd_packets/00067583 [23:19:34]NVStorageDeleteData [23:19:34]Write to MH i2c: 01 00 00 5A 00 5A [23:19:34]Write i2c OK [23:19:34]MH_I2C_Read... [23:19:34]Read from MH i2c: 01 [23:19:34]MH_I2C_Read... [23:19:34]Read from MH i2c: 01 07 00 [23:19:34]MH_I2C_Read... [23:19:34]Read from MH i2c: 01 07 00 5A 00 00 00 00 00 00 E9 0C 56 [23:19:34]RasterBufferAndPrint [23:19:34]line [23:19:34]line [23:19:34]line [23:19:34]line [23:19:34]line [23:19:34]written 0, free lines is 3327 [23:19:34]MH_Cut [23:19:34]Write to MH i2c: D1 01 00 61 00 01 33 [23:19:34]Write i2c OK [23:19:34]MH_I2C_Read... [23:19:34]Read from MH i2c: D1 [23:19:34]MH_I2C_Read... [23:19:34]Read from MH i2c: D1 01 00 [23:19:34]MH_I2C_Read... [23:19:34]Read from MH i2c: D1 01 00 61 00 00 32 [23:19:34]Write to MH i2c: 01 00 00 62 00 62 [23:19:34]Write i2c OK [23:19:34]MH_I2C_Read... [23:19:34]OFD Sender: No OFD packet to send [23:19:35]*** Cut start [23:19:35]*** Purtial cut [23:19:35]*** CUTSNS_PIN = 0 [23:19:35]*** Stage 1: CUTSNS_PIN = 1 [23:19:37]Read from MH i2c: 01 [23:19:37]MH_I2C_Read... [23:19:37]*** Stop cut motor [23:19:37]*** Cut end [23:19:37]Read from MH i2c: 01 07 00 [23:19:37]MH_I2C_Read... [23:19:37]Read from MH i2c: 01 07 00 62 00 00 00 00 00 00 FF 0F 77 [23:19:37]process_action close_receipt done [23:19:37]requested_data is exist [23:19:37]produce_requested_data [23:19:37]requested_item fm.sn is exist - process it [23:19:37]wFMCommunicate request_size=4 [23:19:37]MH_SAM_APDU [23:19:37]CAPDU: 80 11 00 00 [23:19:37]Write to MH i2c: E2 08 00 63 00 80 11 00 00 00 00 00 00 DD [23:19:37]Write i2c OK [23:19:37]MH_I2C_Read... [23:19:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:37]Read from MH i2c: E2 [23:19:37]MH_I2C_Read... [23:19:37]Read from MH i2c: E2 17 00 [23:19:37]MH_I2C_Read... [23:19:37]Read from MH i2c: E2 17 00 63 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 33 [23:19:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [23:19:37]wFMCommunicate OK [23:19:37]requested_item fd.num is exist - process it [23:19:37]SAM_PROTO_GetFieldsCounters [23:19:37]wFMCommunicate request_size=4 [23:19:37]MH_SAM_APDU [23:19:37]CAPDU: 80 13 00 00 [23:19:37]Write to MH i2c: E2 08 00 64 00 80 13 00 00 00 00 00 00 E0 [23:19:37]Write i2c OK [23:19:37]MH_I2C_Read... [23:19:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:19:37]Read from MH i2c: E2 [23:19:37]MH_I2C_Read... [23:19:37]Read from MH i2c: E2 62 00 [23:19:37]MH_I2C_Read... [23:19:37]Read from MH i2c: E2 62 00 64 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FF 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [23:19: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FF 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:19:37]wFMCommunicate OK [23:19:37]SAM_PROTO_GetFieldsCounters done [23:19:37]requested_item shift.num is exist - process it [23:19:37]requested_item shift.opened is exist - process it [23:19:37]req_shift_opened [23:19:37]FM_GetShiftState [23:19:37]SAM_PROTO_GetShiftState [23:19:37]wFMCommunicate request_size=4 [23:19:37]MH_SAM_APDU [23:19:37]CAPDU: 80 13 01 00 [23:19:37]Write to MH i2c: E2 08 00 65 00 80 13 01 00 00 00 00 00 E2 [23:19:37]Write i2c OK [23:19:37]MH_I2C_Read... [23:19:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:37]Read from MH i2c: E2 [23:19:37]MH_I2C_Read... [23:19:37]Read from MH i2c: E2 0E 00 [23:19:37]MH_I2C_Read... [23:19:37]Read from MH i2c: E2 0E 00 65 00 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 8E [23:19:37]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [23:19:37]wFMCommunicate OK [23:19:37]SAM_PROTO_GetShiftState done [23:19:37]FM_GetShiftState done [23:19:37]req_shift_opened done [23:19:37]requested_item shift.open_date is exist - process it [23:19:37]req_shift_open_date [23:19:37]req_shift_open_date done [23:19:37]produce_requested_data done [23:19:37]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67583,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [23:19:37]process_action_free close_receipt [23:19:37]json_value_free [23:19:37]json_value_free done [23:19:37]process_json_proto returns [23:19:37]Send response to host [23:19:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67583,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [23:19:37]free response buf [23:19:37]execute_script done [23:19:37]execute_script returns [23:19:37]free content buf [23:19:37]Sock 9.Close socket [23:19:37]Sock 9.Thread stoped [23:19:39]OFD Sender: No OFD packet to send [23:19:44]OFD Sender: No OFD packet to send [23:19:49]OFD Sender: No OFD packet to send [23:19:54]OFD Sender: No OFD packet to send [23:19:59]OFD Sender: No OFD packet to send [23:20:04]OFD Sender: No OFD packet to send [23:20:09]OFD Sender: No OFD packet to send [23:20:14]OFD Sender: No OFD packet to send [23:20:19]OFD Sender: No OFD packet to send [23:20:24]OFD Sender: No OFD packet to send [23:20:29]OFD Sender: No OFD packet to send [23:20:32]accept exits with 6 [23:20:32]New connection [23:20:32]New thread 3067395428 created [23:20:32]Thread 3067538788 joined [23:20:32]Waiting for new connection... [23:20:32] Sock 6.Parse request [23:20:32]Sock 6.Check first char [23:20:32]Sock 6.First char is OK [23:20:32]request: POST /json_proto HTTP/1.0 [23:20:32]Method: POST [23:20:32]URL: /json_proto [23:20:32]Method is POST - this is cgi request [23:20:32]url: /json_proto [23:20:32]query_string will be loaded in cgi processing [23:20:32]execute_cgi json_proto POST (null) [23:20:32]execute_cgi path=json_proto method=POST [23:20:32]POST find Content-Length [23:20:32]Host: 172.17.41.195:8080 [23:20:32]Content-Length: 816 [23:20:32]Content-Type: application/json [23:20:32] [23:20:32]POST finish read [23:20:32]Found Content-Length = 816 [23:20:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507668", "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.80, "quantity" : 5.990, "sum" : 400.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:20:32]execute_script... [23: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)507668", "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.80, "quantity" : 5.990, "sum" : 400.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:20:32]POST & json_proto [23:20:32]process_json_proto [23:20:32]json parsed OK: [23:20:32]protocol is kg_v1.0 [23:20:32]action value=close_receipt [23:20:32]process_action close_receipt [23:20:32]cmd_close_receipt [23:20:32]MH_GetDate [23:20:32]Write to MH i2c: F0 00 00 66 00 55 [23:20:32]Write i2c OK [23:20:32]MH_I2C_Read... [23:20:32]Read from MH i2c: F0 [23:20:32]MH_I2C_Read... [23:20:32]Read from MH i2c: F0 09 00 [23:20:32]MH_I2C_Read... [23:20:32]Read from MH i2c: F0 09 00 66 00 00 C0 94 46 66 FC 21 6F 64 4E [23:20:32]GetLastDocTimeStamp 1715901572 [23:20:32]current date 1715901632 [23:20:32]FM_GetShiftState [23:20:32]SAM_PROTO_GetShiftState [23:20:32]wFMCommunicate request_size=4 [23:20:32]MH_SAM_APDU [23:20:32]CAPDU: 80 13 01 00 [23:20:32]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [23:20:32]Write i2c OK [23:20:32]MH_I2C_Read... [23:20:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:20:32]Read from MH i2c: E2 [23:20:32]MH_I2C_Read... [23:20:32]Read from MH i2c: E2 0E 00 [23:20:32]MH_I2C_Read... [23:20:32]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 90 [23:20:32]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [23:20:32]wFMCommunicate OK [23:20:32]SAM_PROTO_GetShiftState done [23:20:32]FM_GetShiftState done [23:20:32]opened in 1715818916 [23:20:32]opened+sec_in_day 1715905316 [23:20:32]quantity*price = 40013 [23:20:32]sum+1 = 40014 [23:20:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.13 НСП 1% : 3.54 НДС 12% : 42.49 Наличными: 0.00 Безнал.: 400.13 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 182 16.05.2024 23:20 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67584 ФПД: 198224250467265 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T232032&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67584&fm=198224250467265&tin=02508201610067®Number=0000000000091845&sum=40013 [23:20:33]StoreToDocumentArchive [23:20:33]shift 357 fd 67584 [23:20:33]save to /storage/0357/doc_00067584 [23:20:33]save last doc name /storage/0357/doc_00067584 to /storage/kkm_last_doc_name [23:20:33]save OK [23:20:33]Clear old archive folders... [23:20:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:20:33]tlvbuf is 01628540 [23:20:33]SAM_PROTO_ClearQueue [23:20:33]wFMCommunicate request_size=4 [23:20:33]MH_SAM_APDU [23:20:33]CAPDU: 80 09 00 00 [23:20:33]Write to MH i2c: E2 08 00 74 00 80 09 00 00 00 00 00 00 E6 [23:20:33]Write i2c OK [23:20:33]MH_I2C_Read... [23:20:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:20:33]Read from MH i2c: E2 [23:20:33]MH_I2C_Read... [23:20:33]Read from MH i2c: E2 03 00 [23:20:33]MH_I2C_Read... [23:20:33]Read from MH i2c: E2 03 00 74 00 00 90 00 E8 [23:20:33]RAPDU: 90 00 [23:20:33]wFMCommunicate OK [23:20:33]SAM_PROTO_ClearQueue done [23:20:33]KKMCreateOFDPacket [23:20:33]OFDProtocolAddRootSTLVToBuf [23:20:33]FM_MakeSignedData [23:20:33]FM_MakeSignedData [23:20:33]SAM_PROTO_SignData [23:20:33]wFMCommunicate request_size=4 [23:20:33]MH_SAM_APDU [23:20:33]CAPDU: 80 0D 01 02 [23:20:33]Write to MH i2c: E2 08 00 75 00 80 0D 01 02 00 00 00 00 EE [23:20:33]Write i2c OK [23:20:33]MH_I2C_Read... [23:20:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:20:33]Read from MH i2c: E2 [23:20:33]MH_I2C_Read... [23:20:33]Read from MH i2c: E2 03 00 [23:20:33]MH_I2C_Read... [23:20:33]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [23:20:33]RAPDU: 90 00 [23:20:33]wFMCommunicate OK [23:20:33]wFMCommunicate request_size=255 [23:20:33]MH_SAM_APDU [23:20: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 17 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 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 99 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 C0 94 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 00 08 01 00 35 04 06 00 B4 [23:20:33]Write to MH i2c: E2 02 01 76 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 17 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 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 99 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 C0 94 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 00 08 01 00 35 04 06 00 B4 00 00 4C [23:20:33]Write i2c OK [23:20:33]MH_I2C_Read... [23:20:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:20:33]Read from MH i2c: E2 [23:20:33]MH_I2C_Read... [23:20:33]Read from MH i2c: E2 03 00 [23:20:33]MH_I2C_Read... [23:20:33]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [23:20:33]RAPDU: 90 00 [23:20:33]wFMCommunicate OK [23:20:33]wFMCommunicate request_size=10 [23:20:33]MH_SAM_APDU [23:20:33]CAPDU: 80 0D 02 02 05 48 AE 08 F3 C1 [23:20:33]Write to MH i2c: E2 0D 00 77 00 80 0D 02 02 05 00 48 AE 08 F3 C1 00 00 AD [23:20:33]Write i2c OK [23:20:33]MH_I2C_Read... [23:20:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:20:33]Read from MH i2c: E2 [23:20:33]MH_I2C_Read... [23:20:33]Read from MH i2c: E2 03 00 [23:20:33]MH_I2C_Read... [23:20:33]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [23:20:33]RAPDU: 90 00 [23:20:33]wFMCommunicate OK [23:20:33]wFMCommunicate request_size=4 [23:20:33]MH_SAM_APDU [23:20:33]CAPDU: 80 0D 03 02 [23:20:33]Write to MH i2c: E2 08 00 78 00 80 0D 03 02 00 00 00 00 F3 [23:20:33]Write i2c OK [23:20:33]MH_I2C_Read... [23:20:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:20:33]Read from MH i2c: E2 [23:20:33]MH_I2C_Read... [23:20:33]Read from MH i2c: E2 0B 00 [23:20:33]MH_I2C_Read... [23:20:33]Read from MH i2c: E2 0B 00 78 00 00 21 F0 6D 42 50 3D 10 4A 90 00 9B [23:20:33]RAPDU: 21 F0 6D 42 50 3D 10 4A 90 00 [23:20:33]wFMCommunicate OK [23:20:33]SAM_PROTO_SignData done [23:20:33]FM_MakeSignedData done [23:20:33]CreateOFDProtocolMessage [23:20:33]wFMCommunicate request_size=4 [23:20:33]MH_SAM_APDU [23:20:33]CAPDU: 80 11 00 00 [23:20:33]Write to MH i2c: E2 08 00 79 00 80 11 00 00 00 00 00 00 F3 [23:20:33]Write i2c OK [23:20:33]MH_I2C_Read... [23:20:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:20:34]Read from MH i2c: E2 [23:20:34]MH_I2C_Read... [23:20:34]Read from MH i2c: E2 17 00 [23:20:34]MH_I2C_Read... [23:20:34]Read from MH i2c: E2 17 00 79 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 49 [23:20:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [23:20:34]wFMCommunicate OK [23:20:34]CreateOFDProtocolMessage done [23:20:34]OFDSenderStorePacket 67584 [23:20:34]StoreOFDPacket docnum=67584 [23:20:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 89 A3 07 01 0C 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 66 17 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 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 99 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 C0 94 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 00 08 01 00 35 04 06 00 B4 48 AE 08 F3 C1 21 F0 6D 42 50 3D 10 4A [23:20:34]CheckFolder [23:20:34]dirname=/storage/ofd_packets [23:20:34]CheckFolder done [23:20:34]ProducePacketName [23:20:34]name=ofd_packets/00067584 [23:20:34]NVStorageSaveData ofd_packets/00067584 [23:20:34]File name is /storage/ofd_packets/00067584 [23:20:34]Write 301 bytes [23:20:34]NVStorageSaveData done [23:20:34]OFDSenderStorePacket done [23:20:34]KKMCreateOFDPacket done [23:20:34]NVStorageSaveData kkm_last_timestamp [23:20:34]File name is /storage/kkm_last_timestamp [23:20:34]Write 4 bytes [23:20:34]NVStorageSaveData done [23:20:34]ExternCall_PrintAddStr [23:20:34]wPrintStart [23:20:34]Write to MH i2c: 01 00 00 7A 00 7A [23:20:34]Write i2c OK [23:20:34]MH_I2C_Read... [23:20:34]Read from MH i2c: 01 [23:20:34]MH_I2C_Read... [23:20:34]Read from MH i2c: 01 07 00 [23:20:34]MH_I2C_Read... [23:20:34]Read from MH i2c: 01 07 00 7A 00 00 00 00 00 00 FF 0F 8F [23:20:34]RasterBufferAndPrint [23:20:34]line Счет N : (1)507668 [23:20:34]line ИНН: 02508201610067 [23:20:34]line Контрольно-Кассовый Чек [23:20:34]line ПРОДАЖА [23:20:34]line ТРК (МРК, ГНК) : 43 [23:20:34]line Товар: 2710124130 [23:20:34]line Аи-92-К-5 [23:20:34]line 5.990 * 66.80 [23:20:34]line = 400.13 [23:20:34]line НДС 12% НСП 1% [23:20:34]line > о реализуемом товаре [23:20:34]line ИТОГО: 400.13 [23:20:34]line НСП 1% : 3.54 [23:20:34]line НДС 12% : 42.49 [23:20:34]line Наличными: 0.00 [23:20:34]line Безнал.: 400.13 [23:20:34]line Место: АЗС № 91 "Партнер Нефть" [23:20:34]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [23:20:34]line СНО: Общий режим [23:20:34]line Чек 182 16.05.2024 23:20 [23:20:34]line Смена: 357 ФФД: 1.0 [23:20:34]line ЗНМ: 0300000119 [23:20:34]line РНМ: 0000000000091845 [23:20:34]line Версия ККМ: 001 [23:20:34]line Платежная система: Бакай Банк [23:20:34]line ФМ: 0000000000871829 [23:20:34]line ФД: 67584 [23:20:34]line ФПД: 198224250467265 [23:20:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T232032&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67584&fm=198224250467265&tin=02508201610067®Number=0000000000091845&sum=40013 [23:20:34]OFD Sender: Processing packet 67584 [packets to send 35, broken 34] [23:20:34]ProducePacketName [23:20:34]name=ofd_packets/00067584 [23:20:34]OFD Sender: To server: pG, [23:20:34]CommunicateWithHost lk.salyk.kg:30040 [23:20:34]ConnectInit lk.salyk.kg [23:20:34]written 0, free lines is 4095 [23:20:34]Connected sock=10 [23: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 38 32 39 0F 01 00 00 89 A3 07 01 0C 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 66 17 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 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 99 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 C0 94 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 00 08 01 00 35 04 06 00 B4 48 AE 08 F3 C1 21 F0 6D 42 50 3D 10 4A [23:20:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 17 83 47 00 7E 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 38 32 39 10 04 04 00 00 08 01 00 F4 03 04 00 9A 3C 46 66 B6 04 01 00 00 84 E8 4E AB E7 F7 90 FD [23:20:34]CommunicateWithHost err = 0 [23:20:34]CheckOFDResponse [23:20:34]1017 (14) - 77093643461234 [23:20:34]1041 (16) - 0000000000871829 [23:20:34]1040 (4) - 67584 [23:20:34]1012 (4) - 16.05.2024 17:04 [23:20:34]1206 (1) - 0 [23:20:34]OFD Sender: Remove packet 67584 [23:20:34]ProducePacketName [23:20:34]name=ofd_packets/00067584 [23:20:34]NVStorageDeleteData [23:20:34]Write to MH i2c: 01 00 00 A3 00 A3 [23:20:34]Write i2c OK [23:20:34]MH_I2C_Read... [23:20:34]Read from MH i2c: 01 [23:20:34]MH_I2C_Read... [23:20:34]Read from MH i2c: 01 07 00 [23:20:34]MH_I2C_Read... [23:20:34]Read from MH i2c: 01 07 00 A3 00 00 00 00 00 00 E4 0C 9A [23:20:34]RasterBufferAndPrint [23:20:34]line [23:20:34]line [23:20:34]line [23:20:34]line [23:20:34]line [23:20:34]written 0, free lines is 3308 [23:20:34]MH_Cut [23:20:34]Write to MH i2c: D1 01 00 AA 00 01 7C [23:20:34]Write i2c OK [23:20:34]MH_I2C_Read... [23:20:34]Read from MH i2c: D1 [23:20:34]MH_I2C_Read... [23:20:34]Read from MH i2c: D1 01 00 [23:20:34]MH_I2C_Read... [23:20:34]Read from MH i2c: D1 01 00 AA 00 00 7B [23:20:34]Write to MH i2c: 01 00 00 AB 00 AB [23:20:34]Write i2c OK [23:20:34]MH_I2C_Read... [23:20:35]OFD Sender: No OFD packet to send [23:20:35]*** Cut start [23:20:35]*** Purtial cut [23:20:35]*** Stage 1: CUTSNS_PIN = 1 [23:20:35]Read from MH i2c: 01 [23:20:35]MH_I2C_Read... [23:20:35]*** Stop cut motor [23:20:35]*** Cut end [23:20:35]Read from MH i2c: 01 07 00 [23:20:35]MH_I2C_Read... [23:20:35]Read from MH i2c: 01 07 00 AB 00 00 00 00 00 00 FF 0F C0 [23:20:35]process_action close_receipt done [23:20:35]requested_data is exist [23:20:35]produce_requested_data [23:20:35]requested_item fm.sn is exist - process it [23:20:35]wFMCommunicate request_size=4 [23:20:35]MH_SAM_APDU [23:20:35]CAPDU: 80 11 00 00 [23:20:35]Write to MH i2c: E2 08 00 AC 00 80 11 00 00 00 00 00 00 26 [23:20:35]Write i2c OK [23:20:35]MH_I2C_Read... [23:20:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:20:35]Read from MH i2c: E2 [23:20:35]MH_I2C_Read... [23:20:35]Read from MH i2c: E2 17 00 [23:20:35]MH_I2C_Read... [23:20:35]Read from MH i2c: E2 17 00 AC 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7C [23:20:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [23:20:35]wFMCommunicate OK [23:20:35]requested_item fd.num is exist - process it [23:20:35]SAM_PROTO_GetFieldsCounters [23:20:35]wFMCommunicate request_size=4 [23:20:35]MH_SAM_APDU [23:20:35]CAPDU: 80 13 00 00 [23:20:35]Write to MH i2c: E2 08 00 AD 00 80 13 00 00 00 00 00 00 29 [23:20:35]Write i2c OK [23:20:35]MH_I2C_Read... [23:20:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:20:36]Read from MH i2c: E2 [23:20:36]MH_I2C_Read... [23:20:36]Read from MH i2c: E2 62 00 [23:20:36]MH_I2C_Read... [23:20:36]Read from MH i2c: E2 62 00 AD 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 00 08 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [23:20: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 00 08 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:20:36]wFMCommunicate OK [23:20:36]SAM_PROTO_GetFieldsCounters done [23:20:36]requested_item shift.num is exist - process it [23:20:36]requested_item shift.opened is exist - process it [23:20:36]req_shift_opened [23:20:36]FM_GetShiftState [23:20:36]SAM_PROTO_GetShiftState [23:20:36]wFMCommunicate request_size=4 [23:20:36]MH_SAM_APDU [23:20:36]CAPDU: 80 13 01 00 [23:20:36]Write to MH i2c: E2 08 00 AE 00 80 13 01 00 00 00 00 00 2B [23:20:36]Write i2c OK [23:20:36]MH_I2C_Read... [23:20:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:20:36]Read from MH i2c: E2 [23:20:36]MH_I2C_Read... [23:20:36]Read from MH i2c: E2 0E 00 [23:20:36]MH_I2C_Read... [23:20:36]Read from MH i2c: E2 0E 00 AE 00 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 D7 [23:20:36]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [23:20:36]wFMCommunicate OK [23:20:36]SAM_PROTO_GetShiftState done [23:20:36]FM_GetShiftState done [23:20:36]req_shift_opened done [23:20:36]requested_item shift.open_date is exist - process it [23:20:36]req_shift_open_date [23:20:36]req_shift_open_date done [23:20:36]produce_requested_data done [23:20:36]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67584,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [23:20:36]process_action_free close_receipt [23:20:36]json_value_free [23:20:36]json_value_free done [23:20:36]process_json_proto returns [23:20:36]Send response to host [23:20:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67584,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [23:20:36]free response buf [23:20:36]execute_script done [23:20:36]execute_script returns [23:20:36]free content buf [23:20:36]Sock 6.Close socket [23:20:36]Sock 6.Thread stoped [23:20:40]OFD Sender: No OFD packet to send [23:20:45]OFD Sender: No OFD packet to send [23:20:50]OFD Sender: No OFD packet to send [23:20:55]OFD Sender: No OFD packet to send [23:21:00]OFD Sender: No OFD packet to send [23:21:05]OFD Sender: No OFD packet to send [23:21:10]OFD Sender: No OFD packet to send [23:21:15]OFD Sender: No OFD packet to send [23:21:20]OFD Sender: No OFD packet to send [23:21:25]OFD Sender: No OFD packet to send [23:21:30]OFD Sender: No OFD packet to send [23:21:35]OFD Sender: No OFD packet to send [23:21:40]OFD Sender: No OFD packet to send [23:21:45]OFD Sender: No OFD packet to send [23:21:50]OFD Sender: No OFD packet to send [23:21:55]OFD Sender: No OFD packet to send [23:22:00]OFD Sender: No OFD packet to send [23:22:05]OFD Sender: No OFD packet to send [23:22:10]OFD Sender: No OFD packet to send [23:22:15]OFD Sender: No OFD packet to send [23:22:20]OFD Sender: No OFD packet to send [23:22:25]OFD Sender: No OFD packet to send [23:22:30]OFD Sender: No OFD packet to send [23:22:35]OFD Sender: No OFD packet to send [23:22:40]OFD Sender: No OFD packet to send [23:22:45]OFD Sender: No OFD packet to send [23:22:50]OFD Sender: No OFD packet to send [23:22:55]OFD Sender: No OFD packet to send [23:23:00]OFD Sender: No OFD packet to send [23:23:05]OFD Sender: No OFD packet to send [23:23:10]OFD Sender: No OFD packet to send [23:23:15]OFD Sender: No OFD packet to send [23:23:20]OFD Sender: No OFD packet to send [23:23:25]OFD Sender: No OFD packet to send [23:23:30]OFD Sender: No OFD packet to send [23:23:35]OFD Sender: No OFD packet to send [23:23:40]OFD Sender: No OFD packet to send [23:23:45]OFD Sender: No OFD packet to send [23:23:50]OFD Sender: No OFD packet to send [23:23:55]OFD Sender: No OFD packet to send [23:24:00]OFD Sender: No OFD packet to send [23:24:05]OFD Sender: No OFD packet to send [23:24:10]OFD Sender: No OFD packet to send [23:24:15]OFD Sender: No OFD packet to send [23:24:20]OFD Sender: No OFD packet to send [23:24:25]OFD Sender: No OFD packet to send [23:24:30]OFD Sender: No OFD packet to send [23:24:35]OFD Sender: No OFD packet to send [23:24:40]OFD Sender: No OFD packet to send [23:24:45]OFD Sender: No OFD packet to send [23:24:50]OFD Sender: No OFD packet to send [23:24:55]OFD Sender: No OFD packet to send [23:25:00]OFD Sender: No OFD packet to send [23:25:05]OFD Sender: No OFD packet to send [23:25:10]OFD Sender: No OFD packet to send [23:25:15]OFD Sender: No OFD packet to send [23:25:20]OFD Sender: No OFD packet to send [23:25:25]OFD Sender: No OFD packet to send [23:25:30]OFD Sender: No OFD packet to send [23:25:35]OFD Sender: No OFD packet to send [23:25:40]OFD Sender: No OFD packet to send [23:25:45]OFD Sender: No OFD packet to send [23:25:50]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:40]OFD Sender: No OFD packet to send [23:27:45]OFD Sender: No OFD packet to send [23:27:46]accept exits with 9 [23:27:46]New connection [23:27:46]New thread 3067538788 created [23:27:46]Thread 3067395428 joined [23:27:46]Waiting for new connection... [23:27:46] Sock 9.Parse request [23:27:46]Sock 9.Check first char [23:27:46]Sock 9.First char is OK [23:27:46]request: POST /json_proto HTTP/1.0 [23:27:46]Method: POST [23:27:46]URL: /json_proto [23:27:46]Method is POST - this is cgi request [23:27:46]url: /json_proto [23:27:46]query_string will be loaded in cgi processing [23:27:46]execute_cgi json_proto POST (null) [23:27:46]execute_cgi path=json_proto method=POST [23:27:46]POST find Content-Length [23:27:46]Host: 172.17.41.195:8080 [23:27:46]Content-Length: 801 [23:27:46]Content-Type: application/json [23:27:46] [23:27:46]POST finish read [23:27:46]Found Content-Length = 801 [23:27:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507669", "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.80, "quantity" : 10.480, "sum" : 700.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:27:46]execute_script... [23:27:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507669", "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.80, "quantity" : 10.480, "sum" : 700.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:27:46]POST & json_proto [23:27:46]process_json_proto [23:27:46]json parsed OK: [23:27:46]protocol is kg_v1.0 [23:27:46]action value=close_receipt [23:27:46]process_action close_receipt [23:27:46]cmd_close_receipt [23:27:46]MH_GetDate [23:27:46]Write to MH i2c: F0 00 00 AF 00 9E [23:27:46]Write i2c OK [23:27:46]MH_I2C_Read... [23:27:46]Read from MH i2c: F0 [23:27:46]MH_I2C_Read... [23:27:46]Read from MH i2c: F0 09 00 [23:27:46]MH_I2C_Read... [23:27:46]Read from MH i2c: F0 09 00 AF 00 00 72 96 46 66 FC 21 6F 64 4B [23:27:46]GetLastDocTimeStamp 1715901632 [23:27:46]current date 1715902066 [23:27:46]FM_GetShiftState [23:27:46]SAM_PROTO_GetShiftState [23:27:46]wFMCommunicate request_size=4 [23:27:46]MH_SAM_APDU [23:27:46]CAPDU: 80 13 01 00 [23:27:46]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [23:27:46]Write i2c OK [23:27:46]MH_I2C_Read... [23:27:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:27:46]Read from MH i2c: E2 [23:27:46]MH_I2C_Read... [23:27:46]Read from MH i2c: E2 0E 00 [23:27:46]MH_I2C_Read... [23:27:46]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 D9 [23:27:46]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [23:27:46]wFMCommunicate OK [23:27:46]SAM_PROTO_GetShiftState done [23:27:46]FM_GetShiftState done [23:27:46]opened in 1715818916 [23:27:46]opened+sec_in_day 1715905316 [23:27:46]quantity*price = 70006 [23:27:46]sum+1 = 70007 [23:27:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.06 НСП 1% : 6.19 НДС 12% : 74.34 Наличными: 0.00 Безнал.: 700.06 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 183 16.05.2024 23:27 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67585 ФПД: 169148659818549 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T232746&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67585&fm=169148659818549&tin=02508201610067®Number=0000000000091845&sum=70006 [23:27:47]StoreToDocumentArchive [23:27:47]shift 357 fd 67585 [23:27:47]save to /storage/0357/doc_00067585 [23:27:47]save last doc name /storage/0357/doc_00067585 to /storage/kkm_last_doc_name [23:27:47]save OK [23:27:47]Clear old archive folders... [23:27:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:27:47]tlvbuf is 0162A160 [23:27:47]SAM_PROTO_ClearQueue [23:27:47]wFMCommunicate request_size=4 [23:27:47]MH_SAM_APDU [23:27:47]CAPDU: 80 09 00 00 [23:27:47]Write to MH i2c: E2 08 00 BD 00 80 09 00 00 00 00 00 00 2F [23:27:47]Write i2c OK [23:27:47]MH_I2C_Read... [23:27:47]Read from MH i2c: E2 [23:27:47]MH_I2C_Read... [23:27:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:27:47]Read from MH i2c: E2 03 00 [23:27:47]MH_I2C_Read... [23:27:47]Read from MH i2c: E2 03 00 BD 00 00 90 00 31 [23:27:47]RAPDU: 90 00 [23:27:47]wFMCommunicate OK [23:27:47]SAM_PROTO_ClearQueue done [23:27:47]KKMCreateOFDPacket [23:27:47]OFDProtocolAddRootSTLVToBuf [23:27:47]FM_MakeSignedData [23:27:47]FM_MakeSignedData [23:27:47]SAM_PROTO_SignData [23:27:47]wFMCommunicate request_size=4 [23:27:47]MH_SAM_APDU [23:27:47]CAPDU: 80 0D 01 02 [23:27:47]Write to MH i2c: E2 08 00 BE 00 80 0D 01 02 00 00 00 00 37 [23:27:47]Write i2c OK [23:27:47]MH_I2C_Read... [23:27:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:27:47]Read from MH i2c: E2 [23:27:47]MH_I2C_Read... [23:27:47]Read from MH i2c: E2 03 00 [23:27:47]MH_I2C_Read... [23:27:47]Read from MH i2c: E2 03 00 BE 00 00 90 00 32 [23:27:47]RAPDU: 90 00 [23:27:47]wFMCommunicate OK [23:27:47]wFMCommunicate request_size=255 [23:27:47]MH_SAM_APDU [23:27:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 28 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 76 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 76 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 0A 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 76 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 72 96 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 01 08 01 00 35 04 06 00 99 [23:27:47]Write to MH i2c: E2 02 01 BF 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 28 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 76 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 76 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 0A 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 76 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 72 96 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 01 08 01 00 35 04 06 00 99 00 00 30 [23:27:47]Write i2c OK [23:27:47]MH_I2C_Read... [23:27:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:27:47]Read from MH i2c: E2 [23:27:47]MH_I2C_Read... [23:27:47]Read from MH i2c: E2 03 00 [23:27:47]MH_I2C_Read... [23:27:47]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [23:27:47]RAPDU: 90 00 [23:27:47]wFMCommunicate OK [23:27:47]wFMCommunicate request_size=10 [23:27:47]MH_SAM_APDU [23:27:47]CAPDU: 80 0D 02 02 05 D6 FD C8 60 35 [23:27:47]Write to MH i2c: E2 0D 00 C0 00 80 0D 02 02 05 00 D6 FD C8 60 35 00 00 74 [23:27:47]Write i2c OK [23:27:47]MH_I2C_Read... [23:27:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:27:47]Read from MH i2c: E2 [23:27:47]MH_I2C_Read... [23:27:47]Read from MH i2c: E2 03 00 [23:27:47]MH_I2C_Read... [23:27:47]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [23:27:47]RAPDU: 90 00 [23:27:47]wFMCommunicate OK [23:27:47]wFMCommunicate request_size=4 [23:27:47]MH_SAM_APDU [23:27:47]CAPDU: 80 0D 03 02 [23:27:47]Write to MH i2c: E2 08 00 C1 00 80 0D 03 02 00 00 00 00 3C [23:27:47]Write i2c OK [23:27:47]MH_I2C_Read... [23:27:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:27:47]Read from MH i2c: E2 [23:27:47]MH_I2C_Read... [23:27:47]Read from MH i2c: E2 0B 00 [23:27:47]MH_I2C_Read... [23:27:47]Read from MH i2c: E2 0B 00 C1 00 00 92 85 40 B7 65 94 5A 47 90 00 E5 [23:27:47]RAPDU: 92 85 40 B7 65 94 5A 47 90 00 [23:27:47]wFMCommunicate OK [23:27:47]SAM_PROTO_SignData done [23:27:47]FM_MakeSignedData done [23:27:47]CreateOFDProtocolMessage [23:27:47]wFMCommunicate request_size=4 [23:27:47]MH_SAM_APDU [23:27:47]CAPDU: 80 11 00 00 [23:27:47]Write to MH i2c: E2 08 00 C2 00 80 11 00 00 00 00 00 00 3C [23:27:47]Write i2c OK [23:27:47]MH_I2C_Read... [23:27:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:27:48]Read from MH i2c: E2 [23:27:48]MH_I2C_Read... [23:27:48]Read from MH i2c: E2 17 00 [23:27:48]MH_I2C_Read... [23:27:48]Read from MH i2c: E2 17 00 C2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 92 [23:27:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [23:27:48]wFMCommunicate OK [23:27:48]CreateOFDProtocolMessage done [23:27:48]OFDSenderStorePacket 67585 [23:27:48]StoreOFDPacket docnum=67585 [23:27:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 2B 3B 07 01 C8 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 28 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 76 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 76 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 0A 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 76 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 72 96 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 01 08 01 00 35 04 06 00 99 D6 FD C8 60 35 92 85 40 B7 65 94 5A 47 [23:27:48]CheckFolder [23:27:48]dirname=/storage/ofd_packets [23:27:48]CheckFolder done [23:27:48]ProducePacketName [23:27:48]name=ofd_packets/00067585 [23:27:48]NVStorageSaveData ofd_packets/00067585 [23:27:48]File name is /storage/ofd_packets/00067585 [23:27:48]Write 301 bytes [23:27:48]NVStorageSaveData done [23:27:48]OFDSenderStorePacket done [23:27:48]KKMCreateOFDPacket done [23:27:48]NVStorageSaveData kkm_last_timestamp [23:27:48]File name is /storage/kkm_last_timestamp [23:27:48]Write 4 bytes [23:27:48]NVStorageSaveData done [23:27:48]ExternCall_PrintAddStr [23:27:48]wPrintStart [23:27:48]Write to MH i2c: 01 00 00 C3 00 C3 [23:27:48]Write i2c OK [23:27:48]MH_I2C_Read... [23:27:48]Read from MH i2c: 01 [23:27:48]MH_I2C_Read... [23:27:48]Read from MH i2c: 01 07 00 [23:27:48]MH_I2C_Read... [23:27:48]Read from MH i2c: 01 07 00 C3 00 00 00 00 00 00 FF 0F D8 [23:27:48]RasterBufferAndPrint [23:27:48]line Счет N : (1)507669 [23:27:48]line ИНН: 02508201610067 [23:27:48]line Контрольно-Кассовый Чек [23:27:48]line ПРОДАЖА [23:27:48]line ТРК (МРК, ГНК) : 33 [23:27:48]line Товар: 2710124130 [23:27:48]line Аи-92-К-5 [23:27:48]line 10.480 * 66.80 [23:27:48]line = 700.06 [23:27:48]line НДС 12% НСП 1% [23:27:48]line > о реализуемом товаре [23:27:48]line ИТОГО: 700.06 [23:27:48]line НСП 1% : 6.19 [23:27:48]line НДС 12% : 74.34 [23:27:48]line Наличными: 0.00 [23:27:48]line Безнал.: 700.06 [23:27:48]line Место: АЗС № 91 "Партнер Нефть" [23:27:48]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [23:27:48]line СНО: Общий режим [23:27:48]line Чек 183 16.05.2024 23:27 [23:27:48]line Смена: 357 ФФД: 1.0 [23:27:48]line ЗНМ: 0300000119 [23:27:48]line РНМ: 0000000000091845 [23:27:48]line Версия ККМ: 001 [23:27:48]line Платежная система: O! деньги [23:27:48]line ФМ: 0000000000871829 [23:27:48]line ФД: 67585 [23:27:48]line ФПД: 169148659818549 [23:27:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T232746&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67585&fm=169148659818549&tin=02508201610067®Number=0000000000091845&sum=70006 [23:27:48]OFD Sender: Processing packet 67585 [packets to send 35, broken 34] [23:27:48]ProducePacketName [23:27:48]name=ofd_packets/00067585 [23:27:48]OFD Sender: To server: pG, [23:27:48]CommunicateWithHost lk.salyk.kg:30040 [23:27:48]ConnectInit lk.salyk.kg [23:27:48]written 0, free lines is 4095 [23:27:48]Connected sock=10 [23:27:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 2B 3B 07 01 C8 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 28 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 76 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 76 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 0A 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 76 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 72 96 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 01 08 01 00 35 04 06 00 99 D6 FD C8 60 35 92 85 40 B7 65 94 5A 47 [23:27:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 58 BB 47 00 44 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 01 08 01 00 F4 03 04 00 4C 3E 46 66 B6 04 01 00 00 92 03 5B 1E 61 6A 4C C4 [23:27:48]CommunicateWithHost err = 0 [23:27:48]CheckOFDResponse [23:27:48]1017 (14) - 77093643461234 [23:27:48]1041 (16) - 0000000000871829 [23:27:48]1040 (4) - 67585 [23:27:48]1012 (4) - 16.05.2024 17:11 [23:27:48]1206 (1) - 0 [23:27:48]OFD Sender: Remove packet 67585 [23:27:48]ProducePacketName [23:27:48]name=ofd_packets/00067585 [23:27:48]NVStorageDeleteData [23:27:48]Write to MH i2c: 01 00 00 EC 00 EC [23:27:48]Write i2c OK [23:27:48]MH_I2C_Read... [23:27:48]Read from MH i2c: 01 [23:27:48]MH_I2C_Read... [23:27:48]Read from MH i2c: 01 07 00 [23:27:48]MH_I2C_Read... [23:27:48]Read from MH i2c: 01 07 00 EC 00 00 00 00 00 00 D2 0C D1 [23:27:48]RasterBufferAndPrint [23:27:48]line [23:27:48]line [23:27:48]line [23:27:48]line [23:27:48]line [23:27:48]written 0, free lines is 3287 [23:27:48]MH_Cut [23:27:48]Write to MH i2c: D1 01 00 F3 00 01 C5 [23:27:48]Write i2c OK [23:27:48]MH_I2C_Read... [23:27:48]Read from MH i2c: D1 [23:27:48]MH_I2C_Read... [23:27:48]Read from MH i2c: D1 01 00 [23:27:48]MH_I2C_Read... [23:27:48]Read from MH i2c: D1 01 00 F3 00 00 C4 [23:27:48]Write to MH i2c: 01 00 00 F4 00 F4 [23:27:48]Write i2c OK [23:27:48]MH_I2C_Read... [23:27:49]OFD Sender: No OFD packet to send [23:27:49]*** Cut start [23:27:49]*** Purtial cut [23:27:49]*** CUTSNS_PIN = 0 [23:27:49]*** Stage 1: CUTSNS_PIN = 1 [23:27:51]Read from MH i2c: 01 [23:27:51]MH_I2C_Read... [23:27:51]*** Stop cut motor [23:27:51]*** Cut end [23:27:51]Read from MH i2c: 01 07 00 [23:27:51]MH_I2C_Read... [23:27:51]Read from MH i2c: 01 07 00 F4 00 00 00 00 00 00 FF 0F 09 [23:27:51]process_action close_receipt done [23:27:51]requested_data is exist [23:27:51]produce_requested_data [23:27:51]requested_item fm.sn is exist - process it [23:27:51]wFMCommunicate request_size=4 [23:27:51]MH_SAM_APDU [23:27:51]CAPDU: 80 11 00 00 [23:27:51]Write to MH i2c: E2 08 00 F5 00 80 11 00 00 00 00 00 00 6F [23:27:51]Write i2c OK [23:27:51]MH_I2C_Read... [23:27:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:27:51]Read from MH i2c: E2 [23:27:51]MH_I2C_Read... [23:27:51]Read from MH i2c: E2 17 00 [23:27:51]MH_I2C_Read... [23:27:51]Read from MH i2c: E2 17 00 F5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C5 [23:27:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [23:27:51]wFMCommunicate OK [23:27:51]requested_item fd.num is exist - process it [23:27:51]SAM_PROTO_GetFieldsCounters [23:27:51]wFMCommunicate request_size=4 [23:27:51]MH_SAM_APDU [23:27:51]CAPDU: 80 13 00 00 [23:27:51]Write to MH i2c: E2 08 00 F6 00 80 13 00 00 00 00 00 00 72 [23:27:51]Write i2c OK [23:27:51]MH_I2C_Read... [23:27:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:27:51]Read from MH i2c: E2 [23:27:51]MH_I2C_Read... [23:27:51]Read from MH i2c: E2 62 00 [23:27:51]MH_I2C_Read... [23:27:51]Read from MH i2c: E2 62 00 F6 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 01 08 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [23:27: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 01 08 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:27:51]wFMCommunicate OK [23:27:51]SAM_PROTO_GetFieldsCounters done [23:27:51]requested_item shift.num is exist - process it [23:27:51]requested_item shift.opened is exist - process it [23:27:51]req_shift_opened [23:27:51]FM_GetShiftState [23:27:51]SAM_PROTO_GetShiftState [23:27:51]wFMCommunicate request_size=4 [23:27:51]MH_SAM_APDU [23:27:51]CAPDU: 80 13 01 00 [23:27:51]Write to MH i2c: E2 08 00 F7 00 80 13 01 00 00 00 00 00 74 [23:27:51]Write i2c OK [23:27:51]MH_I2C_Read... [23:27:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:27:51]Read from MH i2c: E2 [23:27:51]MH_I2C_Read... [23:27:51]Read from MH i2c: E2 0E 00 [23:27:51]MH_I2C_Read... [23:27:51]Read from MH i2c: E2 0E 00 F7 00 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 20 [23:27:51]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [23:27:51]wFMCommunicate OK [23:27:51]SAM_PROTO_GetShiftState done [23:27:51]FM_GetShiftState done [23:27:51]req_shift_opened done [23:27:51]requested_item shift.open_date is exist - process it [23:27:51]req_shift_open_date [23:27:51]req_shift_open_date done [23:27:51]produce_requested_data done [23:27:51]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67585,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [23:27:51]process_action_free close_receipt [23:27:51]json_value_free [23:27:51]json_value_free done [23:27:51]process_json_proto returns [23:27:51]Send response to host [23:27:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67585,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [23:27:51]free response buf [23:27:51]execute_script done [23:27:51]execute_script returns [23:27:51]free content buf [23:27:51]Sock 9.Close socket [23:27:51]Sock 9.Thread stoped [23:27:54]OFD Sender: No OFD packet to send [23:27:59]OFD Sender: No OFD packet to send [23:28:04]OFD Sender: No OFD packet to send [23:28:09]OFD Sender: No OFD packet to send [23:28:14]OFD Sender: No OFD packet to send [23:28:19]OFD Sender: No OFD packet to send [23:28:24]OFD Sender: No OFD packet to send [23:28:29]OFD Sender: No OFD packet to send [23:28:34]OFD Sender: No OFD packet to send [23:28:39]OFD Sender: No OFD packet to send [23:28:44]OFD Sender: No OFD packet to send [23:28:49]OFD Sender: No OFD packet to send [23:28:54]OFD Sender: No OFD packet to send [23:28:59]OFD Sender: No OFD packet to send [23:29:04]OFD Sender: No OFD packet to send [23:29:09]OFD Sender: No OFD packet to send [23:29:14]OFD Sender: No OFD packet to send [23:29:19]OFD Sender: No OFD packet to send [23:29:24]OFD Sender: No OFD packet to send [23:29:29]OFD Sender: No OFD packet to send [23:29:34]OFD Sender: No OFD packet to send [23:29:39]OFD Sender: No OFD packet to send [23:29:44]OFD Sender: No OFD packet to send [23:29:49]OFD Sender: No OFD packet to send [23:29:54]OFD Sender: No OFD packet to send [23:29:59]OFD Sender: No OFD packet to send [23:30:04]OFD Sender: No OFD packet to send [23:30:09]OFD Sender: No OFD packet to send [23:30:14]OFD Sender: No OFD packet to send [23:30:19]OFD Sender: No OFD packet to send [23:30:24]OFD Sender: No OFD packet to send [23:30:29]OFD Sender: No OFD packet to send [23:30:34]OFD Sender: No OFD packet to send [23:30:39]OFD Sender: No OFD packet to send [23:30:44]OFD Sender: No OFD packet to send [23:30:49]OFD Sender: No OFD packet to send [23:30:54]OFD Sender: No OFD packet to send [23:30:59]OFD Sender: No OFD packet to send [23:31:04]OFD Sender: No OFD packet to send [23:31:09]OFD Sender: No OFD packet to send [23:31:14]OFD Sender: No OFD packet to send [23:31:19]OFD Sender: No OFD packet to send [23:31:24]OFD Sender: No OFD packet to send [23:31:29]OFD Sender: No OFD packet to send [23:31:34]OFD Sender: No OFD packet to send [23:31:39]OFD Sender: No OFD packet to send [23:31:44]OFD Sender: No OFD packet to send [23:31:49]OFD Sender: No OFD packet to send [23:31:54]OFD Sender: No OFD packet to send [23:31:59]OFD Sender: No OFD packet to send [23:32:04]OFD Sender: No OFD packet to send [23:32:09]OFD Sender: No OFD packet to send [23:32:14]OFD Sender: No OFD packet to send [23:32:19]OFD Sender: No OFD packet to send [23:32:24]OFD Sender: No OFD packet to send [23:32:29]OFD Sender: No OFD packet to send [23:32:34]OFD Sender: No OFD packet to send [23:32:39]OFD Sender: No OFD packet to send [23:32:44]OFD Sender: No OFD packet to send [23:32:49]OFD Sender: No OFD packet to send [23:32:54]OFD Sender: No OFD packet to send [23:32:59]OFD Sender: No OFD packet to send [23:33:04]OFD Sender: No OFD packet to send [23:33:09]OFD Sender: No OFD packet to send [23:33:14]OFD Sender: No OFD packet to send [23:33:19]OFD Sender: No OFD packet to send [23:33:24]OFD Sender: No OFD packet to send [23:33:29]OFD Sender: No OFD packet to send [23:33:34]OFD Sender: No OFD packet to send [23:33:39]OFD Sender: No OFD packet to send [23:33:44]OFD Sender: No OFD packet to send [23:33:49]OFD Sender: No OFD packet to send [23:33:54]OFD Sender: No OFD packet to send [23:33:59]OFD Sender: No OFD packet to send [23:34:04]OFD Sender: No OFD packet to send [23:34:09]OFD Sender: No OFD packet to send [23:34:14]OFD Sender: No OFD packet to send [23:34:19]OFD Sender: No OFD packet to send [23:34:24]OFD Sender: No OFD packet to send [23:34:29]OFD Sender: No OFD packet to send [23:34:34]OFD Sender: No OFD packet to send [23:34:39]OFD Sender: No OFD packet to send [23:34:44]OFD Sender: No OFD packet to send [23:34:49]OFD Sender: No OFD packet to send [23:34:54]OFD Sender: No OFD packet to send [23:34:59]OFD Sender: No OFD packet to send [23:35:04]OFD Sender: No OFD packet to send [23:35:09]OFD Sender: No OFD packet to send [23:35:14]OFD Sender: No OFD packet to send [23:35:19]OFD Sender: No OFD packet to send [23:35:24]OFD Sender: No OFD packet to send [23:35:29]OFD Sender: No OFD packet to send [23:35:34]OFD Sender: No OFD packet to send [23:35:39]OFD Sender: No OFD packet to send [23:35:44]OFD Sender: No OFD packet to send [23:35:49]OFD Sender: No OFD packet to send [23:35:54]OFD Sender: No OFD packet to send [23:35:59]OFD Sender: No OFD packet to send [23:36:04]OFD Sender: No OFD packet to send [23:36:09]OFD Sender: No OFD packet to send [23:36:14]OFD Sender: No OFD packet to send [23:36:19]OFD Sender: No OFD packet to send [23:36:24]OFD Sender: No OFD packet to send [23:36:29]OFD Sender: No OFD packet to send [23:36:34]OFD Sender: No OFD packet to send [23:36:39]accept exits with 7 [23:36:39]New connection [23:36:39]New thread 3067395428 created [23:36:39]Thread 3067538788 joined [23:36:39]Waiting for new connection... [23:36:39] Sock 7.Parse request [23:36:39]Sock 7.Check first char [23:36:39]Sock 7.First char is OK [23:36:39]request: POST /json_proto HTTP/1.0 [23:36:39]Method: POST [23:36:39]URL: /json_proto [23:36:39]Method is POST - this is cgi request [23:36:39]url: /json_proto [23:36:39]query_string will be loaded in cgi processing [23:36:39]execute_cgi json_proto POST (null) [23:36:39]execute_cgi path=json_proto method=POST [23:36:39]POST find Content-Length [23:36:39]Host: 172.17.41.195:8080 [23:36:39]Content-Length: 679 [23:36:39]Content-Type: application/json [23:36:39] [23:36:39]POST finish read [23:36:39]Found Content-Length = 679 [23:36:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507671", "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" : 74.70, "quantity" : 40.170, "sum" : 3000.70, "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" ] } } [23:36:39]execute_script... [23:36: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)507671", "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" : 74.70, "quantity" : 40.170, "sum" : 3000.70, "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" ] } } [23:36:39]POST & json_proto [23:36:39]process_json_proto [23:36:39]json parsed OK: [23:36:39]protocol is kg_v1.0 [23:36:39]action value=close_receipt [23:36:39]process_action close_receipt [23:36:39]cmd_close_receipt [23:36:39]MH_GetDate [23:36:39]Write to MH i2c: F0 00 00 F8 00 E7 [23:36:39]Write i2c OK [23:36:39]MH_I2C_Read... [23:36:39]Read from MH i2c: F0 [23:36:39]MH_I2C_Read... [23:36:39]Read from MH i2c: F0 09 00 [23:36:39]MH_I2C_Read... [23:36:39]Read from MH i2c: F0 09 00 F8 00 00 87 98 46 66 FC 21 6F 64 AB [23:36:39]GetLastDocTimeStamp 1715902066 [23:36:39]current date 1715902599 [23:36:39]FM_GetShiftState [23:36:39]SAM_PROTO_GetShiftState [23:36:39]wFMCommunicate request_size=4 [23:36:39]MH_SAM_APDU [23:36:39]CAPDU: 80 13 01 00 [23:36:39]Write to MH i2c: E2 08 00 F9 00 80 13 01 00 00 00 00 00 76 [23:36:39]Write i2c OK [23:36:39]MH_I2C_Read... [23:36:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:36:39]Read from MH i2c: E2 [23:36:39]MH_I2C_Read... [23:36:39]Read from MH i2c: E2 0E 00 [23:36:39]MH_I2C_Read... [23:36:39]Read from MH i2c: E2 0E 00 F9 00 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 22 [23:36:39]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [23:36:39]wFMCommunicate OK [23:36:39]SAM_PROTO_GetShiftState done [23:36:39]FM_GetShiftState done [23:36:39]opened in 1715818916 [23:36:39]opened+sec_in_day 1715905316 [23:36:39]quantity*price = 300069 [23:36:39]sum+1 = 300071 [23:36:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 184 16.05.2024 23:36 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67586 ФПД: 37959490009481 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T233639&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67586&fm=37959490009481&tin=02508201610067®Number=0000000000091845&sum=300000 [23:36:40]StoreToDocumentArchive [23:36:40]shift 357 fd 67586 [23:36:40]save to /storage/0357/doc_00067586 [23:36:40]save last doc name /storage/0357/doc_00067586 to /storage/kkm_last_doc_name [23:36:40]save OK [23:36:40]Clear old archive folders... [23:36:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:36:40]tlvbuf is 0159E920 [23:36:40]SAM_PROTO_ClearQueue [23:36:40]wFMCommunicate request_size=4 [23:36:40]MH_SAM_APDU [23:36:40]CAPDU: 80 09 00 00 [23:36:40]Write to MH i2c: E2 08 00 06 01 80 09 00 00 00 00 00 00 79 [23:36:40]Write i2c OK [23:36:40]MH_I2C_Read... [23:36:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:36:40]Read from MH i2c: E2 [23:36:40]MH_I2C_Read... [23:36:40]Read from MH i2c: E2 03 00 [23:36:40]MH_I2C_Read... [23:36:40]Read from MH i2c: E2 03 00 06 01 00 90 00 7B [23:36:40]RAPDU: 90 00 [23:36:40]wFMCommunicate OK [23:36:40]SAM_PROTO_ClearQueue done [23:36:40]KKMCreateOFDPacket [23:36:40]OFDProtocolAddRootSTLVToBuf [23:36:40]FM_MakeSignedData [23:36:40]FM_MakeSignedData [23:36:40]SAM_PROTO_SignData [23:36:40]wFMCommunicate request_size=4 [23:36:40]MH_SAM_APDU [23:36:40]CAPDU: 80 0D 01 02 [23:36:40]Write to MH i2c: E2 08 00 07 01 80 0D 01 02 00 00 00 00 81 [23:36:40]Write i2c OK [23:36:40]MH_I2C_Read... [23:36:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:36:40]Read from MH i2c: E2 [23:36:40]MH_I2C_Read... [23:36:40]Read from MH i2c: E2 03 00 [23:36:40]MH_I2C_Read... [23:36:40]Read from MH i2c: E2 03 00 07 01 00 90 00 7C [23:36:40]RAPDU: 90 00 [23:36:40]wFMCommunicate OK [23:36:40]wFMCommunicate request_size=255 [23:36:40]MH_SAM_APDU [23:36: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 EA 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 26 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 7A 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 B8 00 00 00 F4 03 04 00 87 98 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 02 08 01 00 35 04 06 00 22 86 21 EA [23:36:40]Write to MH i2c: E2 02 01 08 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 EA 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 26 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 7A 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 B8 00 00 00 F4 03 04 00 87 98 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 02 08 01 00 35 04 06 00 22 86 21 EA 00 00 66 [23:36:40]Write i2c OK [23:36:40]MH_I2C_Read... [23:36:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:36:40]Read from MH i2c: E2 [23:36:40]MH_I2C_Read... [23:36:40]Read from MH i2c: E2 03 00 [23:36:40]MH_I2C_Read... [23:36:40]Read from MH i2c: E2 03 00 08 01 00 90 00 7D [23:36:40]RAPDU: 90 00 [23:36:40]wFMCommunicate OK [23:36:40]wFMCommunicate request_size=7 [23:36:40]MH_SAM_APDU [23:36:40]CAPDU: 80 0D 02 02 02 F9 89 [23:36:40]Write to MH i2c: E2 0A 00 09 01 80 0D 02 02 02 00 F9 89 00 00 0A [23:36:40]Write i2c OK [23:36:40]MH_I2C_Read... [23:36:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:36:40]Read from MH i2c: E2 [23:36:40]MH_I2C_Read... [23:36:40]Read from MH i2c: E2 03 00 [23:36:40]MH_I2C_Read... [23:36:40]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [23:36:40]RAPDU: 90 00 [23:36:40]wFMCommunicate OK [23:36:40]wFMCommunicate request_size=4 [23:36:40]MH_SAM_APDU [23:36:40]CAPDU: 80 0D 03 02 [23:36:40]Write to MH i2c: E2 08 00 0A 01 80 0D 03 02 00 00 00 00 86 [23:36:40]Write i2c OK [23:36:40]MH_I2C_Read... [23:36:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:36:40]Read from MH i2c: E2 [23:36:40]MH_I2C_Read... [23:36:40]Read from MH i2c: E2 0B 00 [23:36:40]MH_I2C_Read... [23:36:40]Read from MH i2c: E2 0B 00 0A 01 00 00 81 3B AE 1F DE 73 EC 90 00 4D [23:36:40]RAPDU: 00 81 3B AE 1F DE 73 EC 90 00 [23:36:40]wFMCommunicate OK [23:36:40]SAM_PROTO_SignData done [23:36:40]FM_MakeSignedData done [23:36:40]CreateOFDProtocolMessage [23:36:40]wFMCommunicate request_size=4 [23:36:40]MH_SAM_APDU [23:36:40]CAPDU: 80 11 00 00 [23:36:40]Write to MH i2c: E2 08 00 0B 01 80 11 00 00 00 00 00 00 86 [23:36:40]Write i2c OK [23:36:40]MH_I2C_Read... [23:36:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:36:40]Read from MH i2c: E2 [23:36:40]MH_I2C_Read... [23:36:40]Read from MH i2c: E2 17 00 [23:36:40]MH_I2C_Read... [23:36:40]Read from MH i2c: E2 17 00 0B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DC [23:36:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [23:36:40]wFMCommunicate OK [23:36:40]CreateOFDProtocolMessage done [23:36:40]OFDSenderStorePacket 67586 [23:36:40]StoreOFDPacket docnum=67586 [23:36:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 2A 95 04 01 61 5D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 26 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 7A 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 B8 00 00 00 F4 03 04 00 87 98 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 02 08 01 00 35 04 06 00 22 86 21 EA F9 89 00 81 3B AE 1F DE 73 EC [23:36:40]CheckFolder [23:36:40]dirname=/storage/ofd_packets [23:36:40]CheckFolder done [23:36:40]ProducePacketName [23:36:40]name=ofd_packets/00067586 [23:36:40]NVStorageSaveData ofd_packets/00067586 [23:36:40]File name is /storage/ofd_packets/00067586 [23:36:40]Write 298 bytes [23:36:40]NVStorageSaveData done [23:36:40]OFDSenderStorePacket done [23:36:40]KKMCreateOFDPacket done [23:36:40]NVStorageSaveData kkm_last_timestamp [23:36:40]File name is /storage/kkm_last_timestamp [23:36:40]Write 4 bytes [23:36:40]NVStorageSaveData done [23:36:40]ExternCall_PrintAddStr [23:36:40]wPrintStart [23:36:40]Write to MH i2c: 01 00 00 0C 01 0D [23:36:40]Write i2c OK [23:36:40]MH_I2C_Read... [23:36:40]Read from MH i2c: 01 [23:36:40]MH_I2C_Read... [23:36:40]Read from MH i2c: 01 07 00 [23:36:40]MH_I2C_Read... [23:36:40]Read from MH i2c: 01 07 00 0C 01 00 00 00 00 00 FF 0F 22 [23:36:40]RasterBufferAndPrint [23:36:40]line Счет N : (1)507671 [23:36:40]line ИНН: 02508201610067 [23:36:40]line Контрольно-Кассовый Чек [23:36:40]line ПРОДАЖА [23:36:40]line ТРК (МРК, ГНК) : 11 [23:36:40]line Товар: 2710194210 [23:36:40]line ДТ-К-5 [23:36:40]line 40.170 * 74.70 [23:36:40]line = 3000.70 [23:36:40]line НДС 12% НСП 1% [23:36:40]line > о реализуемом товаре [23:36:40]line ОКРУГЛЕНИЕ: -0.70 [23:36:40]line ИТОГО: 3000.00 [23:36:40]line Внесено: 3000.00 [23:36:40]line СДАЧА: 0.00 [23:36:40]line НСП 1% : 26.55 [23:36:40]line НДС 12% : 318.66 [23:36:40]line Наличными: 3000.00 [23:36:40]line Безнал.: 0.00 [23:36:40]line Место: АЗС № 91 "Партнер Нефть" [23:36:40]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [23:36:40]line СНО: Общий режим [23:36:40]line Чек 184 16.05.2024 23:36 [23:36:40]line Смена: 357 ФФД: 1.0 [23:36:40]line ЗНМ: 0300000119 [23:36:40]line РНМ: 0000000000091845 [23:36:40]line Версия ККМ: 001 [23:36:40]line ФМ: 0000000000871829 [23:36:40]line ФД: 67586 [23:36:40]line ФПД: 37959490009481 [23:36:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T233639&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67586&fm=37959490009481&tin=02508201610067®Number=0000000000091845&sum=300000 [23:36:41]OFD Sender: Processing packet 67586 [packets to send 35, broken 34] [23:36:41]ProducePacketName [23:36:41]name=ofd_packets/00067586 [23:36:41]OFD Sender: To server: pG, [23:36:41]CommunicateWithHost lk.salyk.kg:30040 [23:36:41]ConnectInit lk.salyk.kg [23:36:41]written 0, free lines is 4095 [23:36:41]Connected sock=10 [23:36: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 38 32 39 0C 01 00 00 2A 95 04 01 61 5D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 26 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 7A 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 B8 00 00 00 F4 03 04 00 87 98 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 02 08 01 00 35 04 06 00 22 86 21 EA F9 89 00 81 3B AE 1F DE 73 EC [23:36:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 4C 00 47 00 F3 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 38 32 39 10 04 04 00 02 08 01 00 F4 03 04 00 61 40 46 66 B6 04 01 00 00 4B FB 46 76 77 12 F9 30 [23:36:41]CommunicateWithHost err = 0 [23:36:41]CheckOFDResponse [23:36:41]1017 (14) - 77093643461234 [23:36:41]1041 (16) - 0000000000871829 [23:36:41]1040 (4) - 67586 [23:36:41]1012 (4) - 16.05.2024 17:20 [23:36:41]1206 (1) - 0 [23:36:41]OFD Sender: Remove packet 67586 [23:36:41]ProducePacketName [23:36:41]name=ofd_packets/00067586 [23:36:41]NVStorageDeleteData [23:36:41]Write to MH i2c: 01 00 00 36 01 37 [23:36:41]Write i2c OK [23:36:41]MH_I2C_Read... [23:36:41]Read from MH i2c: 01 [23:36:41]MH_I2C_Read... [23:36:41]Read from MH i2c: 01 07 00 [23:36:41]MH_I2C_Read... [23:36:41]Read from MH i2c: 01 07 00 36 01 00 00 00 00 00 C3 0C 0D [23:36:41]RasterBufferAndPrint [23:36:41]line [23:36:41]line [23:36:41]line [23:36:41]line [23:36:41]line [23:36:41]written 0, free lines is 3271 [23:36:41]MH_Cut [23:36:41]Write to MH i2c: D1 01 00 3D 01 01 10 [23:36:41]Write i2c OK [23:36:41]MH_I2C_Read... [23:36:41]Read from MH i2c: D1 [23:36:41]MH_I2C_Read... [23:36:41]Read from MH i2c: D1 01 00 [23:36:41]MH_I2C_Read... [23:36:41]Read from MH i2c: D1 01 00 3D 01 00 0F [23:36:41]Write to MH i2c: 01 00 00 3E 01 3F [23:36:41]Write i2c OK [23:36:41]MH_I2C_Read... [23:36:42]OFD Sender: No OFD packet to send [23:36:42]*** Cut start [23:36:42]*** Purtial cut [23:36:42]*** Stage 1: CUTSNS_PIN = 1 [23:36:42]Read from MH i2c: 01 [23:36:42]MH_I2C_Read... [23:36:42]*** Stop cut motor [23:36:42]*** Cut end [23:36:42]Read from MH i2c: 01 07 00 [23:36:42]MH_I2C_Read... [23:36:42]Read from MH i2c: 01 07 00 3E 01 00 00 00 00 00 FF 0F 54 [23:36:42]process_action close_receipt done [23:36:42]requested_data is exist [23:36:42]produce_requested_data [23:36:42]requested_item fm.sn is exist - process it [23:36:42]wFMCommunicate request_size=4 [23:36:42]MH_SAM_APDU [23:36:42]CAPDU: 80 11 00 00 [23:36:42]Write to MH i2c: E2 08 00 3F 01 80 11 00 00 00 00 00 00 BA [23:36:42]Write i2c OK [23:36:42]MH_I2C_Read... [23:36:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:36:42]Read from MH i2c: E2 [23:36:42]MH_I2C_Read... [23:36:42]Read from MH i2c: E2 17 00 [23:36:42]MH_I2C_Read... [23:36:42]Read from MH i2c: E2 17 00 3F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 10 [23:36:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [23:36:42]wFMCommunicate OK [23:36:42]requested_item fd.num is exist - process it [23:36:42]SAM_PROTO_GetFieldsCounters [23:36:42]wFMCommunicate request_size=4 [23:36:42]MH_SAM_APDU [23:36:42]CAPDU: 80 13 00 00 [23:36:42]Write to MH i2c: E2 08 00 40 01 80 13 00 00 00 00 00 00 BD [23:36:42]Write i2c OK [23:36:42]MH_I2C_Read... [23:36:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:36:43]Read from MH i2c: E2 [23:36:43]MH_I2C_Read... [23:36:43]Read from MH i2c: E2 62 00 [23:36:43]MH_I2C_Read... [23:36:43]Read from MH i2c: E2 62 00 40 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 02 08 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [23:36: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 02 08 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:36:43]wFMCommunicate OK [23:36:43]SAM_PROTO_GetFieldsCounters done [23:36:43]requested_item shift.num is exist - process it [23:36:43]requested_item shift.opened is exist - process it [23:36:43]req_shift_opened [23:36:43]FM_GetShiftState [23:36:43]SAM_PROTO_GetShiftState [23:36:43]wFMCommunicate request_size=4 [23:36:43]MH_SAM_APDU [23:36:43]CAPDU: 80 13 01 00 [23:36:43]Write to MH i2c: E2 08 00 41 01 80 13 01 00 00 00 00 00 BF [23:36:43]Write i2c OK [23:36:43]MH_I2C_Read... [23:36:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:36:43]Read from MH i2c: E2 [23:36:43]MH_I2C_Read... [23:36:43]Read from MH i2c: E2 0E 00 [23:36:43]MH_I2C_Read... [23:36:43]Read from MH i2c: E2 0E 00 41 01 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 6B [23:36:43]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [23:36:43]wFMCommunicate OK [23:36:43]SAM_PROTO_GetShiftState done [23:36:43]FM_GetShiftState done [23:36:43]req_shift_opened done [23:36:43]requested_item shift.open_date is exist - process it [23:36:43]req_shift_open_date [23:36:43]req_shift_open_date done [23:36:43]produce_requested_data done [23:36:43]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67586,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [23:36:43]process_action_free close_receipt [23:36:43]json_value_free [23:36:43]json_value_free done [23:36:43]process_json_proto returns [23:36:43]Send response to host [23:36:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67586,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [23:36:43]free response buf [23:36:43]execute_script done [23:36:43]execute_script returns [23:36:43]free content buf [23:36:43]Sock 7.Close socket [23:36:43]Sock 7.Thread stoped [23:36:43]int [23:36:43]Write to MH i2c: 01 00 00 42 01 43 [23:36:43]*** FLAG_PRN_PAP1 set [23:36:43]Write i2c OK [23:36:43]MH_I2C_Read... [23:36:43]Read from MH i2c: 01 [23:36:43]MH_I2C_Read... [23:36:43]Read from MH i2c: 01 07 00 [23:36:43]MH_I2C_Read... [23:36:43]Read from MH i2c: 01 07 00 42 01 00 01 00 00 00 FF 0F 59 [23:36:43]state=0 [23:36:43]No paper [23:36:44]int [23:36:44]Write to MH i2c: 01 00 00 43 01 44 [23:36:44]*** FLAG_PRN_PAP2 set [23:36:44]Write i2c OK [23:36:44]MH_I2C_Read... [23:36:44]Read from MH i2c: 01 [23:36:44]MH_I2C_Read... [23:36:44]Read from MH i2c: 01 07 00 [23:36:44]MH_I2C_Read... [23:36:44]Read from MH i2c: 01 07 00 43 01 00 03 00 00 00 FF 0F 5C [23:36:44]state=0 [23:36:44]No paper [23:36:44]Cover opened [23:36:47]OFD Sender: No OFD packet to send [23:36:49]Write to MH i2c: 01 00 00 44 01 45 [23:36:49]Write i2c OK [23:36:49]MH_I2C_Read... [23:36:49]Read from MH i2c: 01 [23:36:49]MH_I2C_Read... [23:36:49]Read from MH i2c: 01 07 00 [23:36:49]MH_I2C_Read... [23:36:49]Read from MH i2c: 01 07 00 44 01 00 03 00 00 00 FF 0F 5D [23:36:49]state=3 [23:36:49]No paper [23:36:49]Cover opened [23:36:52]OFD Sender: No OFD packet to send [23:36:52]int [23:36:52]Write to MH i2c: 01 00 00 45 01 46 [23:36:52]*** FLAG_PRN_PAP1 reset [23:36:52]Write i2c OK [23:36:52]MH_I2C_Read... [23:36:52]Read from MH i2c: 01 [23:36:52]MH_I2C_Read... [23:36:52]Read from MH i2c: 01 07 00 [23:36:52]MH_I2C_Read... [23:36:52]Read from MH i2c: 01 07 00 45 01 00 02 00 00 00 FF 0F 5D [23:36:52]state=3 [23:36:52]Cover opened [23:36:52]*** FLAG_PRN_PAP2 reset [23:36:57]OFD Sender: No OFD packet to send [23:36:57]Write to MH i2c: 01 00 00 46 01 47 [23:36:57]Write i2c OK [23:36:57]MH_I2C_Read... [23:36:57]Read from MH i2c: 01 [23:36:57]MH_I2C_Read... [23:36:57]Read from MH i2c: 01 07 00 [23:36:57]MH_I2C_Read... [23:36:57]Read from MH i2c: 01 07 00 46 01 00 00 00 00 00 FF 0F 5C [23:36:57]state=3 [23:36:57]Cover closed [23:37:02]OFD Sender: No OFD packet to send [23:37:04]accept exits with 9 [23:37:04]New connection [23:37:04]New thread 3067538788 created [23:37:04]Thread 3067395428 joined [23:37:04]Waiting for new connection... [23:37:04] Sock 9.Parse request [23:37:04]Sock 9.Check first char [23:37:04]Sock 9.First char is OK [23:37:04]request: POST /json_proto HTTP/1.0 [23:37:04]Method: POST [23:37:04]URL: /json_proto [23:37:04]Method is POST - this is cgi request [23:37:04]url: /json_proto [23:37:04]query_string will be loaded in cgi processing [23:37:04]execute_cgi json_proto POST (null) [23:37:04]execute_cgi path=json_proto method=POST [23:37:04]POST find Content-Length [23:37:04]Host: 172.17.41.195:8080 [23:37:04]Content-Length: 735 [23:37:04]Content-Type: application/json [23:37:04] [23:37:04]POST finish read [23:37:04]Found Content-Length = 735 [23:37:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 67586, "base_FM": "0000000000871829", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507671", "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" : 74.70, "quantity" : 40.170, "sum" : 3000.70, "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" ] } } [23:37:04]execute_script... [23:37:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 67586, "base_FM": "0000000000871829", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507671", "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" : 74.70, "quantity" : 40.170, "sum" : 3000.70, "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" ] } } [23:37:04]POST & json_proto [23:37:04]process_json_proto [23:37:04]json parsed OK: [23:37:04]protocol is kg_v1.0 [23:37:04]action value=close_receipt [23:37:04]process_action close_receipt [23:37:04]cmd_close_receipt [23:37:04]MH_GetDate [23:37:04]Write to MH i2c: F0 00 00 47 01 37 [23:37:04]Write i2c OK [23:37:04]MH_I2C_Read... [23:37:04]Read from MH i2c: F0 [23:37:04]MH_I2C_Read... [23:37:04]Read from MH i2c: F0 09 00 [23:37:04]MH_I2C_Read... [23:37:04]Read from MH i2c: F0 09 00 47 01 00 A0 98 46 66 FC 21 6F 64 14 [23:37:04]GetLastDocTimeStamp 1715902599 [23:37:04]current date 1715902624 [23:37:04]FM_GetShiftState [23:37:04]SAM_PROTO_GetShiftState [23:37:04]wFMCommunicate request_size=4 [23:37:04]MH_SAM_APDU [23:37:04]CAPDU: 80 13 01 00 [23:37:04]Write to MH i2c: E2 08 00 48 01 80 13 01 00 00 00 00 00 C6 [23:37:04]Write i2c OK [23:37:04]MH_I2C_Read... [23:37:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:37:04]Read from MH i2c: E2 [23:37:04]MH_I2C_Read... [23:37:04]Read from MH i2c: E2 0E 00 [23:37:04]MH_I2C_Read... [23:37:04]Read from MH i2c: E2 0E 00 48 01 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 72 [23:37:04]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [23:37:04]wFMCommunicate OK [23:37:04]SAM_PROTO_GetShiftState done [23:37:04]FM_GetShiftState done [23:37:04]opened in 1715818916 [23:37:04]opened+sec_in_day 1715905316 [23:37:04]quantity*price = 300069 [23:37:04]sum+1 = 300071 [23:37:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 3000.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 185 16.05.2024 23:37 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФД осн.: 67586 ФМ осн.: 0000000000871829 ФМ: 0000000000871829 ФД: 67587 ФПД: 82245517939771 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T233705&type=2&operation_type=1&fn_number=0000000000871829&fd_number=67587&fm=82245517939771&tin=02508201610067®Number=0000000000091845&sum=300000 [23:37:05]StoreToDocumentArchive [23:37:05]shift 357 fd 67587 [23:37:05]save to /storage/0357/doc_00067587 [23:37:05]save last doc name /storage/0357/doc_00067587 to /storage/kkm_last_doc_name [23:37:05]save OK [23:37:05]Clear old archive folders... [23:37:05]ProcessDocumentItem done err = 0, tmpTLVsize=276 [23:37:05]tlvbuf is B6F37C80 [23:37:05]SAM_PROTO_ClearQueue [23:37:05]wFMCommunicate request_size=4 [23:37:05]MH_SAM_APDU [23:37:05]CAPDU: 80 09 00 00 [23:37:05]Write to MH i2c: E2 08 00 57 01 80 09 00 00 00 00 00 00 CA [23:37:05]Write i2c OK [23:37:05]MH_I2C_Read... [23:37:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:37:05]Read from MH i2c: E2 [23:37:05]MH_I2C_Read... [23:37:05]Read from MH i2c: E2 03 00 [23:37:05]MH_I2C_Read... [23:37:05]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [23:37:05]RAPDU: 90 00 [23:37:05]wFMCommunicate OK [23:37:05]SAM_PROTO_ClearQueue done [23:37:05]KKMCreateOFDPacket [23:37:05]OFDProtocolAddRootSTLVToBuf [23:37:05]FM_MakeSignedData [23:37:05]FM_MakeSignedData [23:37:05]SAM_PROTO_SignData [23:37:05]wFMCommunicate request_size=4 [23:37:05]MH_SAM_APDU [23:37:05]CAPDU: 80 0D 01 02 [23:37:05]Write to MH i2c: E2 08 00 58 01 80 0D 01 02 00 00 00 00 D2 [23:37:05]Write i2c OK [23:37:05]MH_I2C_Read... [23:37:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:37:05]Read from MH i2c: E2 [23:37:05]MH_I2C_Read... [23:37:05]Read from MH i2c: E2 03 00 [23:37:05]MH_I2C_Read... [23:37:05]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [23:37:05]RAPDU: 90 00 [23:37:05]wFMCommunicate OK [23:37:05]wFMCommunicate request_size=255 [23:37:05]MH_SAM_APDU [23:37:05]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 26 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 7A 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 B9 00 00 00 F4 03 04 00 A1 98 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 27 04 04 00 02 08 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 11 04 10 00 30 30 30 30 [23:37:05]Write to MH i2c: E2 02 01 59 01 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 26 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 7A 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 B9 00 00 00 F4 03 04 00 A1 98 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 27 04 04 00 02 08 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 11 04 10 00 30 30 30 30 00 00 11 [23:37:05]Write i2c OK [23:37:05]MH_I2C_Read... [23:37:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:37:06]Read from MH i2c: E2 [23:37:06]MH_I2C_Read... [23:37:06]Read from MH i2c: E2 03 00 [23:37:06]MH_I2C_Read... [23:37:06]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [23:37:06]RAPDU: 90 00 [23:37:06]wFMCommunicate OK [23:37:06]wFMCommunicate request_size=35 [23:37:06]MH_SAM_APDU [23:37:06]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 03 08 01 00 35 04 06 00 4A CD 46 E1 94 3B [23:37:06]Write to MH i2c: E2 26 00 5A 01 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 03 08 01 00 35 04 06 00 4A CD 46 E1 94 3B 00 00 E4 [23:37:06]Write i2c OK [23:37:06]MH_I2C_Read... [23:37:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:37:06]Read from MH i2c: E2 [23:37:06]MH_I2C_Read... [23:37:06]Read from MH i2c: E2 03 00 [23:37:06]MH_I2C_Read... [23:37:06]Read from MH i2c: E2 03 00 5A 01 00 90 00 CF [23:37:06]RAPDU: 90 00 [23:37:06]wFMCommunicate OK [23:37:06]wFMCommunicate request_size=4 [23:37:06]MH_SAM_APDU [23:37:06]CAPDU: 80 0D 03 02 [23:37:06]Write to MH i2c: E2 08 00 5B 01 80 0D 03 02 00 00 00 00 D7 [23:37:06]Write i2c OK [23:37:06]MH_I2C_Read... [23:37:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:37:06]Read from MH i2c: E2 [23:37:06]MH_I2C_Read... [23:37:06]Read from MH i2c: E2 0B 00 [23:37:06]MH_I2C_Read... [23:37:06]Read from MH i2c: E2 0B 00 5B 01 00 73 AD 14 19 88 82 C3 4E 90 00 40 [23:37:06]RAPDU: 73 AD 14 19 88 82 C3 4E 90 00 [23:37:06]wFMCommunicate OK [23:37:06]SAM_PROTO_SignData done [23:37:06]FM_MakeSignedData done [23:37:06]CreateOFDProtocolMessage [23:37:06]wFMCommunicate request_size=4 [23:37:06]MH_SAM_APDU [23:37:06]CAPDU: 80 11 00 00 [23:37:06]Write to MH i2c: E2 08 00 5C 01 80 11 00 00 00 00 00 00 D7 [23:37:06]Write i2c OK [23:37:06]MH_I2C_Read... [23:37:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:37:06]Read from MH i2c: E2 [23:37:06]MH_I2C_Read... [23:37:06]Read from MH i2c: E2 17 00 [23:37:06]MH_I2C_Read... [23:37:06]Read from MH i2c: E2 17 00 5C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2D [23:37:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [23:37:06]wFMCommunicate OK [23:37:06]CreateOFDProtocolMessage done [23:37:06]OFDSenderStorePacket 67587 [23:37:06]StoreOFDPacket docnum=67587 [23:37:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 28 01 00 00 8E 62 20 01 F1 22 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 26 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 7A 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 B9 00 00 00 F4 03 04 00 A1 98 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 27 04 04 00 02 08 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 03 08 01 00 35 04 06 00 4A CD 46 E1 94 3B 73 AD 14 19 88 82 C3 4E [23:37:06]CheckFolder [23:37:06]dirname=/storage/ofd_packets [23:37:06]CheckFolder done [23:37:06]ProducePacketName [23:37:06]name=ofd_packets/00067587 [23:37:06]NVStorageSaveData ofd_packets/00067587 [23:37:06]File name is /storage/ofd_packets/00067587 [23:37:06]Write 326 bytes [23:37:06]NVStorageSaveData done [23:37:06]OFDSenderStorePacket done [23:37:06]KKMCreateOFDPacket done [23:37:06]NVStorageSaveData kkm_last_timestamp [23:37:06]File name is /storage/kkm_last_timestamp [23:37:06]Write 4 bytes [23:37:06]NVStorageSaveData done [23:37:06]ExternCall_PrintAddStr [23:37:06]wPrintStart [23:37:06]Write to MH i2c: 01 00 00 5D 01 5E [23:37:06]Write i2c OK [23:37:06]MH_I2C_Read... [23:37:06]Read from MH i2c: 01 [23:37:06]MH_I2C_Read... [23:37:06]Read from MH i2c: 01 07 00 [23:37:06]MH_I2C_Read... [23:37:06]Read from MH i2c: 01 07 00 5D 01 00 00 00 00 00 FF 0F 73 [23:37:06]RasterBufferAndPrint [23:37:06]line Счет N : (1)507671 [23:37:06]line ИНН: 02508201610067 [23:37:06]line Контрольно-Кассовый Чек [23:37:06]line ВОЗВРАТ ПРОДАЖИ [23:37:06]line ТРК (МРК, ГНК) : 11 [23:37:06]line Товар: 2710194210 [23:37:06]line ДТ-К-5 [23:37:06]line 40.170 * 74.70 [23:37:06]line = 3000.70 [23:37:06]line НДС 12% НСП 1% [23:37:06]line > о реализуемом товаре [23:37:06]line ОКРУГЛЕНИЕ: -0.70 [23:37:06]line ИТОГО: 3000.00 [23:37:06]line НСП 1% : 26.55 [23:37:06]line НДС 12% : 318.66 [23:37:06]line Наличными: 3000.00 [23:37:06]line Безнал.: 0.00 [23:37:06]line Место: АЗС № 91 "Партнер Нефть" [23:37:06]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [23:37:06]line СНО: Общий режим [23:37:06]line Чек 185 16.05.2024 23:37 [23:37:06]line Смена: 357 ФФД: 1.0 [23:37:06]line ЗНМ: 0300000119 [23:37:06]line РНМ: 0000000000091845 [23:37:06]line Версия ККМ: 001 [23:37:06]line ФД осн.: 67586 [23:37:06]line ФМ осн.: 0000000000871829 [23:37:06]line ФМ: 0000000000871829 [23:37:06]line ФД: 67587 [23:37:06]line ФПД: 82245517939771 [23:37:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T233705&type=2&operation_type=1&fn_number=0000000000871829&fd_number=67587&fm=82245517939771&tin=02508201610067®Number=0000000000091845&sum=300000 [23:37:06]OFD Sender: Processing packet 67587 [packets to send 35, broken 34] [23:37:06]ProducePacketName [23:37:06]name=ofd_packets/00067587 [23:37:06]OFD Sender: To server: pG, [23:37:06]CommunicateWithHost lk.salyk.kg:30040 [23:37:06]ConnectInit lk.salyk.kg [23:37:06]written 0, free lines is 4095 [23:37:06]Connected sock=10 [23:37: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 38 32 39 28 01 00 00 8E 62 20 01 F1 22 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 26 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 7A 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 B9 00 00 00 F4 03 04 00 A1 98 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 27 04 04 00 02 08 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 03 08 01 00 35 04 06 00 4A CD 46 E1 94 3B 73 AD 14 19 88 82 C3 4E [23:37:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 C8 8B 47 00 93 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 03 08 01 00 F4 03 04 00 7A 40 46 66 B6 04 01 00 00 84 CA 2B 0F 42 DC FA 8F [23:37:06]CommunicateWithHost err = 0 [23:37:06]CheckOFDResponse [23:37:06]1017 (14) - 77093643461234 [23:37:06]1041 (16) - 0000000000871829 [23:37:06]1040 (4) - 67587 [23:37:06]1012 (4) - 16.05.2024 17:20 [23:37:06]1206 (1) - 0 [23:37:06]OFD Sender: Remove packet 67587 [23:37:06]ProducePacketName [23:37:06]name=ofd_packets/00067587 [23:37:06]NVStorageDeleteData [23:37:07]Write to MH i2c: 01 00 00 87 01 88 [23:37:07]Write i2c OK [23:37:07]MH_I2C_Read... [23:37:07]Read from MH i2c: 01 [23:37:07]MH_I2C_Read... [23:37:07]Read from MH i2c: 01 07 00 [23:37:07]MH_I2C_Read... [23:37:07]Read from MH i2c: 01 07 00 87 01 00 00 00 00 00 C9 0C 64 [23:37:07]RasterBufferAndPrint [23:37:07]line [23:37:07]line [23:37:07]line [23:37:07]line [23:37:07]line [23:37:07]written 0, free lines is 3279 [23:37:07]MH_Cut [23:37:07]Write to MH i2c: D1 01 00 8E 01 01 61 [23:37:07]Write i2c OK [23:37:07]MH_I2C_Read... [23:37:07]Read from MH i2c: D1 [23:37:07]MH_I2C_Read... [23:37:07]Read from MH i2c: D1 01 00 [23:37:07]MH_I2C_Read... [23:37:07]Read from MH i2c: D1 01 00 8E 01 00 60 [23:37:07]Write to MH i2c: 01 00 00 8F 01 90 [23:37:07]Write i2c OK [23:37:07]MH_I2C_Read... [23:37:07]OFD Sender: No OFD packet to send [23:37:07]*** Cut start [23:37:07]*** Purtial cut [23:37:07]*** CUTSNS_PIN = 0 [23:37:08]*** Stage 1: CUTSNS_PIN = 1 [23:37:09]Read from MH i2c: 01 [23:37:09]MH_I2C_Read... [23:37:09]*** Stop cut motor [23:37:09]*** Cut end [23:37:09]Read from MH i2c: 01 07 00 [23:37:09]MH_I2C_Read... [23:37:09]Read from MH i2c: 01 07 00 8F 01 00 00 00 00 00 FF 0F A5 [23:37:09]process_action close_receipt done [23:37:09]requested_data is exist [23:37:09]produce_requested_data [23:37:09]requested_item fm.sn is exist - process it [23:37:09]wFMCommunicate request_size=4 [23:37:09]MH_SAM_APDU [23:37:09]CAPDU: 80 11 00 00 [23:37:09]Write to MH i2c: E2 08 00 90 01 80 11 00 00 00 00 00 00 0B [23:37:09]Write i2c OK [23:37:09]MH_I2C_Read... [23:37:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:37:10]Read from MH i2c: E2 [23:37:10]MH_I2C_Read... [23:37:10]Read from MH i2c: E2 17 00 [23:37:10]MH_I2C_Read... [23:37:10]Read from MH i2c: E2 17 00 90 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 61 [23:37:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [23:37:10]wFMCommunicate OK [23:37:10]requested_item fd.num is exist - process it [23:37:10]SAM_PROTO_GetFieldsCounters [23:37:10]wFMCommunicate request_size=4 [23:37:10]MH_SAM_APDU [23:37:10]CAPDU: 80 13 00 00 [23:37:10]Write to MH i2c: E2 08 00 91 01 80 13 00 00 00 00 00 00 0E [23:37:10]Write i2c OK [23:37:10]MH_I2C_Read... [23:37:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:37:10]Read from MH i2c: E2 [23:37:10]MH_I2C_Read... [23:37:10]Read from MH i2c: E2 62 00 [23:37:10]MH_I2C_Read... [23:37:10]Read from MH i2c: E2 62 00 91 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 03 08 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [23:37: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 03 08 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:37:10]wFMCommunicate OK [23:37:10]SAM_PROTO_GetFieldsCounters done [23:37:10]requested_item shift.num is exist - process it [23:37:10]requested_item shift.opened is exist - process it [23:37:10]req_shift_opened [23:37:10]FM_GetShiftState [23:37:10]SAM_PROTO_GetShiftState [23:37:10]wFMCommunicate request_size=4 [23:37:10]MH_SAM_APDU [23:37:10]CAPDU: 80 13 01 00 [23:37:10]Write to MH i2c: E2 08 00 92 01 80 13 01 00 00 00 00 00 10 [23:37:10]Write i2c OK [23:37:10]MH_I2C_Read... [23:37:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:37:10]Read from MH i2c: E2 [23:37:10]MH_I2C_Read... [23:37:10]Read from MH i2c: E2 0E 00 [23:37:10]MH_I2C_Read... [23:37:10]Read from MH i2c: E2 0E 00 92 01 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 BC [23:37:10]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [23:37:10]wFMCommunicate OK [23:37:10]SAM_PROTO_GetShiftState done [23:37:10]FM_GetShiftState done [23:37:10]req_shift_opened done [23:37:10]requested_item shift.open_date is exist - process it [23:37:10]req_shift_open_date [23:37:10]req_shift_open_date done [23:37:10]produce_requested_data done [23:37:10]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67587,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [23:37:10]process_action_free close_receipt [23:37:10]json_value_free [23:37:10]json_value_free done [23:37:10]process_json_proto returns [23:37:10]Send response to host [23:37:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67587,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [23:37:10]free response buf [23:37:10]execute_script done [23:37:10]execute_script returns [23:37:10]free content buf [23:37:10]Sock 9.Close socket [23:37:10]Sock 9.Thread stoped [23:37:12]OFD Sender: No OFD packet to send [23:37:17]OFD Sender: No OFD packet to send [23:37:22]OFD Sender: No OFD packet to send [23:37:27]OFD Sender: No OFD packet to send [23:37:32]OFD Sender: No OFD packet to send [23:37:37]OFD Sender: No OFD packet to send [23:37:42]OFD Sender: No OFD packet to send [23:37:44]accept exits with 7 [23:37:44]New connection [23:37:44]New thread 3067395428 created [23:37:44]Thread 3067538788 joined [23:37:44]Waiting for new connection... [23:37:44] Sock 7.Parse request [23:37:44]Sock 7.Check first char [23:37:44]Sock 7.First char is OK [23:37:44]request: POST /json_proto HTTP/1.0 [23:37:44]Method: POST [23:37:44]URL: /json_proto [23:37:44]Method is POST - this is cgi request [23:37:44]url: /json_proto [23:37:44]query_string will be loaded in cgi processing [23:37:44]execute_cgi json_proto POST (null) [23:37:44]execute_cgi path=json_proto method=POST [23:37:44]POST find Content-Length [23:37:44]Host: 172.17.41.195:8080 [23:37:44]Content-Length: 1209 [23:37:44]Content-Type: application/json [23:37:44] [23:37:44]POST finish read [23:37:44]Found Content-Length = 1209 [23:37:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507670\u000A16.05.2024 23:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 40.170 x 74.70\u000A\u0418\u0422\u041E\u0413: 3000.70\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:37:44]execute_script... [23:37:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507670\u000A16.05.2024 23:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 40.170 x 74.70\u000A\u0418\u0422\u041E\u0413: 3000.70\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:37:44]POST & json_proto [23:37:44]process_json_proto [23:37:44]json parsed OK: [23:37:44]protocol is kg_v1.0 [23:37:44]action value=print_text [23:37:44]process_action print_text [23:37:44]cmd_print_text [23:37:44]ExternCall_PrintAddStr [23:37:44]wPrintStart [23:37:44]Write to MH i2c: 01 00 00 93 01 94 [23:37:44]Write i2c OK [23:37:44]MH_I2C_Read... [23:37:44]Read from MH i2c: 01 [23:37:44]MH_I2C_Read... [23:37:44]Read from MH i2c: 01 07 00 [23:37:44]MH_I2C_Read... [23:37:44]Read from MH i2c: 01 07 00 93 01 00 00 00 00 00 FF 0F A9 [23:37:44]RasterBufferAndPrint [23:37:44]line *****ТОВАРНЫЙ ЧЕК***** [23:37:44]line АЗС-91 [23:37:44]line Партнер нефть [23:37:44]line 02508201610067 [23:37:44]line Кассир : Пайзулдаева А. [23:37:44]line Счет N : (1)507670 [23:37:44]line 16.05.2024 23:20 [23:37:44]line ПРОДАЖА [23:37:44]line ТРК (МРК, ГНК): 21 [23:37:44]line Вид ГСМ : 2710194210 [23:37:44]line ДТ-К-5 [23:37:44]line 40.170 x 74.70 [23:37:44]line ИТОГ: 3000.70 [23:37:44]line Тип оплаты: Талоны: Топливная Карта [23:37:44]line 02750 [23:37:44]line ______________________ [23:37:44]line (подпись) [23:37:44]written 0, free lines is 4095 [23:37:44]Write to MH i2c: 01 00 00 A7 01 A8 [23:37:44]Write i2c OK [23:37:44]MH_I2C_Read... [23:37:44]Read from MH i2c: 01 [23:37:44]MH_I2C_Read... [23:37:44]Read from MH i2c: 01 07 00 [23:37:44]MH_I2C_Read... [23:37:44]Read from MH i2c: 01 07 00 A7 01 00 00 00 00 00 0F 0E CC [23:37:44]RasterBufferAndPrint [23:37:44]line [23:37:44]line [23:37:44]line [23:37:44]line [23:37:44]line [23:37:44]written 0, free lines is 3600 [23:37:44]MH_Cut [23:37:44]Write to MH i2c: D1 01 00 AE 01 01 81 [23:37:44]Write i2c OK [23:37:44]MH_I2C_Read... [23:37:44]Read from MH i2c: D1 [23:37:44]MH_I2C_Read... [23:37:44]Read from MH i2c: D1 01 00 [23:37:44]MH_I2C_Read... [23:37:44]Read from MH i2c: D1 01 00 AE 01 00 80 [23:37:44]Write to MH i2c: 01 00 00 AF 01 B0 [23:37:44]Write i2c OK [23:37:44]MH_I2C_Read... [23:37:45]*** Cut start [23:37:45]*** Purtial cut [23:37:45]*** Stage 1: CUTSNS_PIN = 1 [23:37:45]Read from MH i2c: 01 [23:37:45]MH_I2C_Read... [23:37:45]Read from MH i2c: 01 07 00 [23:37:45]MH_I2C_Read... [23:37:45]*** Stop cut motor [23:37:45]*** Cut end [23:37:45]Read from MH i2c: 01 07 00 AF 01 00 00 00 00 00 FF 0F C5 [23:37:45]process_action print_text done [23:37:45]requested_data is exist [23:37:45]produce_requested_data [23:37:45]requested_item fm.sn is exist - process it [23:37:45]wFMCommunicate request_size=4 [23:37:45]MH_SAM_APDU [23:37:45]CAPDU: 80 11 00 00 [23:37:45]Write to MH i2c: E2 08 00 B0 01 80 11 00 00 00 00 00 00 2B [23:37:45]Write i2c OK [23:37:45]MH_I2C_Read... [23:37:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:37:45]Read from MH i2c: E2 [23:37:45]MH_I2C_Read... [23:37:45]Read from MH i2c: E2 17 00 [23:37:45]MH_I2C_Read... [23:37:45]Read from MH i2c: E2 17 00 B0 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 81 [23:37:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [23:37:45]wFMCommunicate OK [23:37:45]requested_item fd.num is exist - process it [23:37:45]SAM_PROTO_GetFieldsCounters [23:37:45]wFMCommunicate request_size=4 [23:37:45]MH_SAM_APDU [23:37:45]CAPDU: 80 13 00 00 [23:37:45]Write to MH i2c: E2 08 00 B1 01 80 13 00 00 00 00 00 00 2E [23:37:45]Write i2c OK [23:37:45]MH_I2C_Read... [23:37:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:37:45]Read from MH i2c: E2 [23:37:45]MH_I2C_Read... [23:37:45]Read from MH i2c: E2 62 00 [23:37:45]MH_I2C_Read... [23:37:45]Read from MH i2c: E2 62 00 B1 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 03 08 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [23:37: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 03 08 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:37:45]wFMCommunicate OK [23:37:45]SAM_PROTO_GetFieldsCounters done [23:37:45]requested_item shift.num is exist - process it [23:37:45]requested_item shift.opened is exist - process it [23:37:45]req_shift_opened [23:37:45]FM_GetShiftState [23:37:45]SAM_PROTO_GetShiftState [23:37:45]wFMCommunicate request_size=4 [23:37:45]MH_SAM_APDU [23:37:45]CAPDU: 80 13 01 00 [23:37:45]Write to MH i2c: E2 08 00 B2 01 80 13 01 00 00 00 00 00 30 [23:37:45]Write i2c OK [23:37:45]MH_I2C_Read... [23:37:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:37:45]Read from MH i2c: E2 [23:37:45]MH_I2C_Read... [23:37:45]Read from MH i2c: E2 0E 00 [23:37:45]MH_I2C_Read... [23:37:45]Read from MH i2c: E2 0E 00 B2 01 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 DC [23:37:45]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [23:37:45]wFMCommunicate OK [23:37:45]SAM_PROTO_GetShiftState done [23:37:45]FM_GetShiftState done [23:37:45]req_shift_opened done [23:37:45]requested_item shift.open_date is exist - process it [23:37:45]req_shift_open_date [23:37:45]req_shift_open_date done [23:37:45]produce_requested_data done [23:37:45]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67587,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [23:37:45]process_action_free print_text [23:37:45]json_value_free [23:37:45]json_value_free done [23:37:45]process_json_proto returns [23:37:45]Send response to host [23:37:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67587,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [23:37:45]free response buf [23:37:45]execute_script done [23:37:45]execute_script returns [23:37:45]free content buf [23:37:45]Sock 7.Close socket [23:37:45]Sock 7.Thread stoped [23:37:47]OFD Sender: No OFD packet to send [23:37:52]OFD Sender: No OFD packet to send [23:37:57]OFD Sender: No OFD packet to send [23:38:02]OFD Sender: No OFD packet to send [23:38:07]OFD Sender: No OFD packet to send [23:38:12]OFD Sender: No OFD packet to send [23:38:17]OFD Sender: No OFD packet to send [23:38:22]OFD Sender: No OFD packet to send [23:38:27]OFD Sender: No OFD packet to send [23:38:32]OFD Sender: No OFD packet to send [23:38:37]OFD Sender: No OFD packet to send [23:38:42]OFD Sender: No OFD packet to send [23:38:47]OFD Sender: No OFD packet to send [23:38:52]OFD Sender: No OFD packet to send [23:38:57]OFD Sender: No OFD packet to send [23:39:02]OFD Sender: No OFD packet to send [23:39:07]OFD Sender: No OFD packet to send [23:39:12]OFD Sender: No OFD packet to send [23:39:17]OFD Sender: No OFD packet to send [23:39:22]OFD Sender: No OFD packet to send [23:39:27]OFD Sender: No OFD packet to send [23:39:32]OFD Sender: No OFD packet to send [23:39:37]OFD Sender: No OFD packet to send [23:39:42]OFD Sender: No OFD packet to send [23:39:47]OFD Sender: No OFD packet to send [23:39:52]OFD Sender: No OFD packet to send [23:39:57]OFD Sender: No OFD packet to send [23:40:02]OFD Sender: No OFD packet to send [23:40:07]OFD Sender: No OFD packet to send [23:40:12]OFD Sender: No OFD packet to send [23:40:17]OFD Sender: No OFD packet to send [23:40:22]OFD Sender: No OFD packet to send [23:40:27]OFD Sender: No OFD packet to send [23:40:32]OFD Sender: No OFD packet to send [23:40:37]OFD Sender: No OFD packet to send [23:40:42]OFD Sender: No OFD packet to send [23:40:47]OFD Sender: No OFD packet to send [23:40:52]OFD Sender: No OFD packet to send [23:40:57]OFD Sender: No OFD packet to send [23:41:02]OFD Sender: No OFD packet to send [23:41:07]OFD Sender: No OFD packet to send [23:41:12]OFD Sender: No OFD packet to send [23:41:17]OFD Sender: No OFD packet to send [23:41:22]OFD Sender: No OFD packet to send [23:41:27]OFD Sender: No OFD packet to send [23:41:32]OFD Sender: No OFD packet to send [23:41:37]OFD Sender: No OFD packet to send [23:41:42]OFD Sender: No OFD packet to send [23:41:47]OFD Sender: No OFD packet to send [23:41:52]OFD Sender: No OFD packet to send [23:41:57]OFD Sender: No OFD packet to send [23:42:02]OFD Sender: No OFD packet to send [23:42:07]OFD Sender: No OFD packet to send [23:42:12]OFD Sender: No OFD packet to send [23:42:17]OFD Sender: No OFD packet to send [23:42:22]OFD Sender: No OFD packet to send [23:42:27]OFD Sender: No OFD packet to send [23:42:32]OFD Sender: No OFD packet to send [23:42:37]OFD Sender: No OFD packet to send [23:42:42]OFD Sender: No OFD packet to send [23:42:47]OFD Sender: No OFD packet to send [23:42:52]OFD Sender: No OFD packet to send [23:42:57]OFD Sender: No OFD packet to send [23:43:02]OFD Sender: No OFD packet to send [23:43:07]OFD Sender: No OFD packet to send [23:43:12]OFD Sender: No OFD packet to send [23:43:17]OFD Sender: No OFD packet to send [23:43:22]OFD Sender: No OFD packet to send [23:43:27]OFD Sender: No OFD packet to send [23:43:32]OFD Sender: No OFD packet to send [23:43:37]OFD Sender: No OFD packet to send [23:43:42]OFD Sender: No OFD packet to send [23:43:47]OFD Sender: No OFD packet to send [23:43:52]OFD Sender: No OFD packet to send [23:43:57]OFD Sender: No OFD packet to send [23:44:02]OFD Sender: No OFD packet to send [23:44:07]OFD Sender: No OFD packet to send [23:44:12]OFD Sender: No OFD packet to send [23:44:17]OFD Sender: No OFD packet to send [23:44:22]OFD Sender: No OFD packet to send [23:44:27]OFD Sender: No OFD packet to send [23:44:32]OFD Sender: No OFD packet to send [23:44:37]OFD Sender: No OFD packet to send [23:44:42]OFD Sender: No OFD packet to send [23:44:47]OFD Sender: No OFD packet to send [23:44:52]OFD Sender: No OFD packet to send [23:44:57]OFD Sender: No OFD packet to send [23:45:02]OFD Sender: No OFD packet to send [23:45:07]OFD Sender: No OFD packet to send [23:45:12]OFD Sender: No OFD packet to send [23:45:17]OFD Sender: No OFD packet to send [23:45:22]OFD Sender: No OFD packet to send [23:45:27]OFD Sender: No OFD packet to send [23:45:32]OFD Sender: No OFD packet to send [23:45:37]OFD Sender: No OFD packet to send [23:45:42]OFD Sender: No OFD packet to send [23:45:47]accept exits with 9 [23:45:47]New connection [23:45:47]New thread 3067538788 created [23:45:47]Thread 3067395428 joined [23:45:47]Waiting for new connection... [23:45:47] Sock 9.Parse request [23:45:47]Sock 9.Check first char [23:45:47]Sock 9.First char is OK [23:45:47]request: POST /json_proto HTTP/1.0 [23:45:47]Method: POST [23:45:47]URL: /json_proto [23:45:47]Method is POST - this is cgi request [23:45:47]url: /json_proto [23:45:47]query_string will be loaded in cgi processing [23:45:47]execute_cgi json_proto POST (null) [23:45:47]execute_cgi path=json_proto method=POST [23:45:47]POST find Content-Length [23:45:47]Host: 172.17.41.195:8080 [23:45:47]Content-Length: 803 [23:45:47]Content-Type: application/json [23:45:47] [23:45:47]POST finish read [23:45:47]Found Content-Length = 803 [23:45:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507672", "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.80, "quantity" : 74.860, "sum" : 5000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 5000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:45:47]execute_script... [23:45: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)507672", "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.80, "quantity" : 74.860, "sum" : 5000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 5000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:45:47]POST & json_proto [23:45:47]process_json_proto [23:45:47]json parsed OK: [23:45:47]protocol is kg_v1.0 [23:45:47]action value=close_receipt [23:45:47]process_action close_receipt [23:45:47]cmd_close_receipt [23:45:47]MH_GetDate [23:45:47]Write to MH i2c: F0 00 00 B3 01 A3 [23:45:47]Write i2c OK [23:45:47]MH_I2C_Read... [23:45:47]Read from MH i2c: F0 [23:45:47]MH_I2C_Read... [23:45:47]Read from MH i2c: F0 09 00 [23:45:47]MH_I2C_Read... [23:45:47]Read from MH i2c: F0 09 00 B3 01 00 AB 9A 46 66 FC 21 6F 64 8D [23:45:47]GetLastDocTimeStamp 1715902625 [23:45:47]current date 1715903147 [23:45:47]FM_GetShiftState [23:45:47]SAM_PROTO_GetShiftState [23:45:47]wFMCommunicate request_size=4 [23:45:47]MH_SAM_APDU [23:45:47]CAPDU: 80 13 01 00 [23:45:47]Write to MH i2c: E2 08 00 B4 01 80 13 01 00 00 00 00 00 32 [23:45:47]Write i2c OK [23:45:47]MH_I2C_Read... [23:45:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:45:47]Read from MH i2c: E2 [23:45:47]MH_I2C_Read... [23:45:47]Read from MH i2c: E2 0E 00 [23:45:47]MH_I2C_Read... [23:45:47]Read from MH i2c: E2 0E 00 B4 01 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 DE [23:45:47]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [23:45:47]wFMCommunicate OK [23:45:47]SAM_PROTO_GetShiftState done [23:45:47]FM_GetShiftState done [23:45:47]opened in 1715818916 [23:45:47]opened+sec_in_day 1715905316 [23:45:47]quantity*price = 500064 [23:45:47]sum+1 = 500066 [23:45:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 5000.65 НСП 1% : 44.25 НДС 12% : 531.04 Наличными: 0.00 Безнал.: 5000.65 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 186 16.05.2024 23:45 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67588 ФПД: 159075107326662 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T234548&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67588&fm=159075107326662&tin=02508201610067®Number=0000000000091845&sum=500065 [23:45:48]StoreToDocumentArchive [23:45:48]shift 357 fd 67588 [23:45:48]save to /storage/0357/doc_00067588 [23:45:48]save last doc name /storage/0357/doc_00067588 to /storage/kkm_last_doc_name [23:45:48]save OK [23:45:48]Clear old archive folders... [23:45:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:45:48]tlvbuf is 015BAB10 [23:45:48]SAM_PROTO_ClearQueue [23:45:48]wFMCommunicate request_size=4 [23:45:48]MH_SAM_APDU [23:45:48]CAPDU: 80 09 00 00 [23:45:48]Write to MH i2c: E2 08 00 C1 01 80 09 00 00 00 00 00 00 34 [23:45:48]Write i2c OK [23:45:48]MH_I2C_Read... [23:45:48]Read from MH i2c: E2 [23:45:48]MH_I2C_Read... [23:45:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:45:48]Read from MH i2c: E2 03 00 [23:45:48]MH_I2C_Read... [23:45:48]Read from MH i2c: E2 03 00 C1 01 00 90 00 36 [23:45:48]RAPDU: 90 00 [23:45:48]wFMCommunicate OK [23:45:48]SAM_PROTO_ClearQueue done [23:45:48]KKMCreateOFDPacket [23:45:48]OFDProtocolAddRootSTLVToBuf [23:45:48]FM_MakeSignedData [23:45:48]FM_MakeSignedData [23:45:48]SAM_PROTO_SignData [23:45:48]wFMCommunicate request_size=4 [23:45:48]MH_SAM_APDU [23:45:48]CAPDU: 80 0D 01 02 [23:45:48]Write to MH i2c: E2 08 00 C2 01 80 0D 01 02 00 00 00 00 3C [23:45:48]Write i2c OK [23:45:48]MH_I2C_Read... [23:45:48]Read from MH i2c: E2 [23:45:48]MH_I2C_Read... [23:45:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:45:48]Read from MH i2c: E2 03 00 [23:45:48]MH_I2C_Read... [23:45:48]Read from MH i2c: E2 03 00 C2 01 00 90 00 37 [23:45:48]RAPDU: 90 00 [23:45:48]wFMCommunicate OK [23:45:48]wFMCommunicate request_size=255 [23:45:48]MH_SAM_APDU [23:45: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 6C 24 01 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 61 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 61 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 61 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 AC 9A 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 04 08 01 00 35 04 06 00 90 [23:45:48]Write to MH i2c: E2 02 01 C3 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 6C 24 01 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 61 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 61 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 61 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 AC 9A 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 04 08 01 00 35 04 06 00 90 00 00 71 [23:45:48]Write i2c OK [23:45:48]MH_I2C_Read... [23:45:48]Read from MH i2c: E2 [23:45:48]MH_I2C_Read... [23:45:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:45:48]Read from MH i2c: E2 03 00 [23:45:48]MH_I2C_Read... [23:45:48]Read from MH i2c: E2 03 00 C3 01 00 90 00 38 [23:45:48]RAPDU: 90 00 [23:45:48]wFMCommunicate OK [23:45:48]wFMCommunicate request_size=10 [23:45:48]MH_SAM_APDU [23:45:48]CAPDU: 80 0D 02 02 05 AD 8F 43 CA C6 [23:45:48]Write to MH i2c: E2 0D 00 C4 01 80 0D 02 02 05 00 AD 8F 43 CA C6 00 00 58 [23:45:49]Write i2c OK [23:45:49]MH_I2C_Read... [23:45:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:45:49]Read from MH i2c: E2 [23:45:49]MH_I2C_Read... [23:45:49]Read from MH i2c: E2 03 00 [23:45:49]MH_I2C_Read... [23:45:49]Read from MH i2c: E2 03 00 C4 01 00 90 00 39 [23:45:49]RAPDU: 90 00 [23:45:49]wFMCommunicate OK [23:45:49]wFMCommunicate request_size=4 [23:45:49]MH_SAM_APDU [23:45:49]CAPDU: 80 0D 03 02 [23:45:49]Write to MH i2c: E2 08 00 C5 01 80 0D 03 02 00 00 00 00 41 [23:45:49]Write i2c OK [23:45:49]MH_I2C_Read... [23:45:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:45:49]Read from MH i2c: E2 [23:45:49]MH_I2C_Read... [23:45:49]Read from MH i2c: E2 0B 00 [23:45:49]MH_I2C_Read... [23:45:49]Read from MH i2c: E2 0B 00 C5 01 00 DF 56 5A 83 DD 63 5C 68 90 00 58 [23:45:49]RAPDU: DF 56 5A 83 DD 63 5C 68 90 00 [23:45:49]wFMCommunicate OK [23:45:49]SAM_PROTO_SignData done [23:45:49]FM_MakeSignedData done [23:45:49]CreateOFDProtocolMessage [23:45:49]wFMCommunicate request_size=4 [23:45:49]MH_SAM_APDU [23:45:49]CAPDU: 80 11 00 00 [23:45:49]Write to MH i2c: E2 08 00 C6 01 80 11 00 00 00 00 00 00 41 [23:45:49]Write i2c OK [23:45:49]MH_I2C_Read... [23:45:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:45:49]Read from MH i2c: E2 [23:45:49]MH_I2C_Read... [23:45:49]Read from MH i2c: E2 17 00 [23:45:49]MH_I2C_Read... [23:45:49]Read from MH i2c: E2 17 00 C6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 97 [23:45:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [23:45:49]wFMCommunicate OK [23:45:49]CreateOFDProtocolMessage done [23:45:49]OFDSenderStorePacket 67588 [23:45:49]StoreOFDPacket docnum=67588 [23:45:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 5E E2 07 01 4A 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 6C 24 01 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 61 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 61 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 61 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 AC 9A 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 04 08 01 00 35 04 06 00 90 AD 8F 43 CA C6 DF 56 5A 83 DD 63 5C 68 [23:45:49]CheckFolder [23:45:49]dirname=/storage/ofd_packets [23:45:49]CheckFolder done [23:45:49]ProducePacketName [23:45:49]name=ofd_packets/00067588 [23:45:49]NVStorageSaveData ofd_packets/00067588 [23:45:49]File name is /storage/ofd_packets/00067588 [23:45:49]Write 301 bytes [23:45:49]NVStorageSaveData done [23:45:49]OFDSenderStorePacket done [23:45:49]KKMCreateOFDPacket done [23:45:49]NVStorageSaveData kkm_last_timestamp [23:45:49]File name is /storage/kkm_last_timestamp [23:45:49]Write 4 bytes [23:45:49]NVStorageSaveData done [23:45:49]ExternCall_PrintAddStr [23:45:49]wPrintStart [23:45:49]Write to MH i2c: 01 00 00 C7 01 C8 [23:45:49]Write i2c OK [23:45:49]MH_I2C_Read... [23:45:49]Read from MH i2c: 01 [23:45:49]MH_I2C_Read... [23:45:49]Read from MH i2c: 01 07 00 [23:45:49]MH_I2C_Read... [23:45:49]Read from MH i2c: 01 07 00 C7 01 00 00 00 00 00 FF 0F DD [23:45:49]RasterBufferAndPrint [23:45:49]line Счет N : (1)507672 [23:45:49]line ИНН: 02508201610067 [23:45:49]line Контрольно-Кассовый Чек [23:45:49]line ПРОДАЖА [23:45:49]line ТРК (МРК, ГНК) : 43 [23:45:49]line Товар: 2710124130 [23:45:49]line Аи-92-К-5 [23:45:49]line 74.860 * 66.80 [23:45:49]line = 5000.65 [23:45:49]line НДС 12% НСП 1% [23:45:49]line > о реализуемом товаре [23:45:49]line ИТОГО: 5000.65 [23:45:49]line НСП 1% : 44.25 [23:45:49]line НДС 12% : 531.04 [23:45:49]line Наличными: 0.00 [23:45:49]line Безнал.: 5000.65 [23:45:49]line Место: АЗС № 91 "Партнер Нефть" [23:45:49]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [23:45:49]line СНО: Общий режим [23:45:49]line Чек 186 16.05.2024 23:45 [23:45:49]line Смена: 357 ФФД: 1.0 [23:45:49]line ЗНМ: 0300000119 [23:45:49]line РНМ: 0000000000091845 [23:45:49]line Версия ККМ: 001 [23:45:49]line Платежная система: O! деньги [23:45:49]line ФМ: 0000000000871829 [23:45:49]line ФД: 67588 [23:45:49]line ФПД: 159075107326662 [23:45:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T234548&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67588&fm=159075107326662&tin=02508201610067®Number=0000000000091845&sum=500065 [23:45:49]written 0, free lines is 4095 [23:45:49]OFD Sender: Processing packet 67588 [packets to send 35, broken 34] [23:45:49]ProducePacketName [23:45:49]name=ofd_packets/00067588 [23:45:49]OFD Sender: To server: pG, [23:45:49]CommunicateWithHost lk.salyk.kg:30040 [23:45:49]ConnectInit lk.salyk.kg [23:45:49]Write to MH i2c: 01 00 00 F0 01 F1 [23:45:49]Write i2c OK [23:45:49]MH_I2C_Read... [23:45:49]Read from MH i2c: 01 [23:45:49]MH_I2C_Read... [23:45:49]Read from MH i2c: 01 07 00 [23:45:49]MH_I2C_Read... [23:45:49]Read from MH i2c: 01 07 00 F0 01 00 00 00 00 00 D9 0C DD [23:45:49]RasterBufferAndPrint [23:45:49]line [23:45:49]line [23:45:49]line [23:45:49]line [23:45:49]line [23:45:49]written 0, free lines is 3295 [23:45:49]MH_Cut [23:45:49]Write to MH i2c: D1 01 00 F7 01 01 CA [23:45:49]Write i2c OK [23:45:49]MH_I2C_Read... [23:45:49]Read from MH i2c: D1 [23:45:49]MH_I2C_Read... [23:45:49]Read from MH i2c: D1 01 00 [23:45:49]MH_I2C_Read... [23:45:49]Read from MH i2c: D1 01 00 F7 01 00 C9 [23:45:49]Write to MH i2c: 01 00 00 F8 01 F9 [23:45:49]Write i2c OK [23:45:49]MH_I2C_Read... [23:45:50]*** Cut start [23:45:50]*** Purtial cut [23:45:50]*** CUTSNS_PIN = 0 [23:45:50]*** Stage 1: CUTSNS_PIN = 1 [23:45:52]Read from MH i2c: 01 [23:45:52]MH_I2C_Read... [23:45:52]*** Stop cut motor [23:45:52]*** Cut end [23:45:52]Read from MH i2c: 01 07 00 [23:45:52]MH_I2C_Read... [23:45:52]Read from MH i2c: 01 07 00 F8 01 00 00 00 00 00 FF 0F 0E [23:45:52]process_action close_receipt done [23:45:52]requested_data is exist [23:45:52]produce_requested_data [23:45:52]requested_item fm.sn is exist - process it [23:45:52]wFMCommunicate request_size=4 [23:45:52]MH_SAM_APDU [23:45:52]CAPDU: 80 11 00 00 [23:45:52]Write to MH i2c: E2 08 00 F9 01 80 11 00 00 00 00 00 00 74 [23:45:52]Write i2c OK [23:45:52]MH_I2C_Read... [23:45:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:45:52]Read from MH i2c: E2 [23:45:52]MH_I2C_Read... [23:45:52]Read from MH i2c: E2 17 00 [23:45:52]MH_I2C_Read... [23:45:52]Read from MH i2c: E2 17 00 F9 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 CA [23:45:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [23:45:52]wFMCommunicate OK [23:45:52]requested_item fd.num is exist - process it [23:45:52]SAM_PROTO_GetFieldsCounters [23:45:52]wFMCommunicate request_size=4 [23:45:52]MH_SAM_APDU [23:45:52]CAPDU: 80 13 00 00 [23:45:52]Write to MH i2c: E2 08 00 FA 01 80 13 00 00 00 00 00 00 77 [23:45:52]Write i2c OK [23:45:52]MH_I2C_Read... [23:45:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:45:52]Read from MH i2c: E2 [23:45:52]MH_I2C_Read... [23:45:52]Read from MH i2c: E2 62 00 [23:45:52]MH_I2C_Read... [23:45:52]Read from MH i2c: E2 62 00 FA 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 04 08 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [23:45:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 04 08 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:45:52]wFMCommunicate OK [23:45:52]SAM_PROTO_GetFieldsCounters done [23:45:52]requested_item shift.num is exist - process it [23:45:52]requested_item shift.opened is exist - process it [23:45:52]req_shift_opened [23:45:52]FM_GetShiftState [23:45:52]SAM_PROTO_GetShiftState [23:45:52]wFMCommunicate request_size=4 [23:45:52]MH_SAM_APDU [23:45:52]CAPDU: 80 13 01 00 [23:45:52]Write to MH i2c: E2 08 00 FB 01 80 13 01 00 00 00 00 00 79 [23:45:52]Write i2c OK [23:45:52]MH_I2C_Read... [23:45:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:45:52]Read from MH i2c: E2 [23:45:52]MH_I2C_Read... [23:45:52]Read from MH i2c: E2 0E 00 [23:45:52]MH_I2C_Read... [23:45:52]Read from MH i2c: E2 0E 00 FB 01 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 25 [23:45:52]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [23:45:52]wFMCommunicate OK [23:45:52]SAM_PROTO_GetShiftState done [23:45:52]FM_GetShiftState done [23:45:52]req_shift_opened done [23:45:52]requested_item shift.open_date is exist - process it [23:45:52]req_shift_open_date [23:45:52]req_shift_open_date done [23:45:52]produce_requested_data done [23:45:52]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67588,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [23:45:52]process_action_free close_receipt [23:45:52]json_value_free [23:45:52]json_value_free done [23:45:52]process_json_proto returns [23:45:52]Send response to host [23:45:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67588,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [23:45:52]free response buf [23:45:52]execute_script done [23:45:52]execute_script returns [23:45:52]free content buf [23:45:52]Sock 9.Close socket [23:45:52]Sock 9.Thread stoped [23:46:10]accept exits with 7 [23:46:10]New connection [23:46:10]New thread 3067395428 created [23:46:10]Thread 3067538788 joined [23:46:10]Waiting for new connection... [23:46:10] Sock 7.Parse request [23:46:10]Sock 7.Check first char [23:46:10]Sock 7.First char is OK [23:46:10]request: POST /json_proto HTTP/1.0 [23:46:10]Method: POST [23:46:10]URL: /json_proto [23:46:10]Method is POST - this is cgi request [23:46:10]url: /json_proto [23:46:10]query_string will be loaded in cgi processing [23:46:10]execute_cgi json_proto POST (null) [23:46:10]execute_cgi path=json_proto method=POST [23:46:10]POST find Content-Length [23:46:10]Host: 172.17.41.195:8080 [23:46:10]Content-Length: 800 [23:46:10]Content-Type: application/json [23:46:10] [23:46:10]POST finish read [23:46:10]Found Content-Length = 800 [23:46:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507673", "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.80, "quantity" : 7.490, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:46:10]execute_script... [23: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)507673", "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.80, "quantity" : 7.490, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:46:10]POST & json_proto [23:46:10]process_json_proto [23:46:10]json parsed OK: [23:46:10]protocol is kg_v1.0 [23:46:10]action value=close_receipt [23:46:10]process_action close_receipt [23:46:10]cmd_close_receipt [23:46:10]MH_GetDate [23:46:10]Write to MH i2c: F0 00 00 FC 01 EC [23:46:10]Write i2c OK [23:46:10]MH_I2C_Read... [23:46:10]Read from MH i2c: F0 [23:46:10]MH_I2C_Read... [23:46:10]Read from MH i2c: F0 09 00 [23:46:10]MH_I2C_Read... [23:46:10]Read from MH i2c: F0 09 00 FC 01 00 C2 9A 46 66 FC 21 6F 64 ED [23:46:10]GetLastDocTimeStamp 1715903148 [23:46:10]current date 1715903170 [23:46:10]FM_GetShiftState [23:46:10]SAM_PROTO_GetShiftState [23:46:10]wFMCommunicate request_size=4 [23:46:10]MH_SAM_APDU [23:46:10]CAPDU: 80 13 01 00 [23:46:10]Write to MH i2c: E2 08 00 FD 01 80 13 01 00 00 00 00 00 7B [23:46:10]Write i2c OK [23:46:10]MH_I2C_Read... [23:46:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:46:10]Read from MH i2c: E2 [23:46:10]MH_I2C_Read... [23:46:10]Read from MH i2c: E2 0E 00 [23:46:10]MH_I2C_Read... [23:46:10]Read from MH i2c: E2 0E 00 FD 01 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 27 [23:46:10]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [23:46:10]wFMCommunicate OK [23:46:10]SAM_PROTO_GetShiftState done [23:46:10]FM_GetShiftState done [23:46:10]opened in 1715818916 [23:46:10]opened+sec_in_day 1715905316 [23:46:10]quantity*price = 50033 [23:46:10]sum+1 = 50034 [23:46:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.33 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 0.00 Безнал.: 500.33 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 187 16.05.2024 23:46 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67589 ФПД: 68610910097902 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T234610&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67589&fm=68610910097902&tin=02508201610067®Number=0000000000091845&sum=50033 [23:46:11]StoreToDocumentArchive [23:46:11]shift 357 fd 67589 [23:46:11]save to /storage/0357/doc_00067589 [23:46:11]save last doc name /storage/0357/doc_00067589 to /storage/kkm_last_doc_name [23:46:11]save OK [23:46:11]Clear old archive folders... [23:46:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:46:11]tlvbuf is 01634520 [23:46:11]SAM_PROTO_ClearQueue [23:46:11]wFMCommunicate request_size=4 [23:46:11]MH_SAM_APDU [23:46:11]CAPDU: 80 09 00 00 [23:46:11]Write to MH i2c: E2 08 00 0A 02 80 09 00 00 00 00 00 00 7E [23:46:11]Write i2c OK [23:46:11]MH_I2C_Read... [23:46:11]Read from MH i2c: E2 [23:46:11]MH_I2C_Read... [23:46:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:46:11]Read from MH i2c: E2 03 00 [23:46:11]MH_I2C_Read... [23:46:11]Read from MH i2c: E2 03 00 0A 02 00 90 00 80 [23:46:11]RAPDU: 90 00 [23:46:11]wFMCommunicate OK [23:46:11]SAM_PROTO_ClearQueue done [23:46:11]KKMCreateOFDPacket [23:46:11]OFDProtocolAddRootSTLVToBuf [23:46:11]FM_MakeSignedData [23:46:11]FM_MakeSignedData [23:46:11]SAM_PROTO_SignData [23:46:11]wFMCommunicate request_size=4 [23:46:11]MH_SAM_APDU [23:46:11]CAPDU: 80 0D 01 02 [23:46:11]Write to MH i2c: E2 08 00 0B 02 80 0D 01 02 00 00 00 00 86 [23:46:11]Write i2c OK [23:46:11]MH_I2C_Read... [23:46:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:46:11]Read from MH i2c: E2 [23:46:11]MH_I2C_Read... [23:46:11]Read from MH i2c: E2 03 00 [23:46:11]MH_I2C_Read... [23:46:11]Read from MH i2c: E2 03 00 0B 02 00 90 00 81 [23:46:11]RAPDU: 90 00 [23:46:11]wFMCommunicate OK [23:46:11]wFMCommunicate request_size=255 [23:46:11]MH_SAM_APDU [23: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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 C2 9A 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 05 08 01 00 35 04 06 00 3E [23:46:11]Write to MH i2c: E2 02 01 0C 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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 C2 9A 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 05 08 01 00 35 04 06 00 3E 00 00 C8 [23:46:11]Write i2c OK [23:46:11]MH_I2C_Read... [23:46:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:46:11]Read from MH i2c: E2 [23:46:11]MH_I2C_Read... [23:46:11]Read from MH i2c: E2 03 00 [23:46:11]MH_I2C_Read... [23:46:11]Read from MH i2c: E2 03 00 0C 02 00 90 00 82 [23:46:11]RAPDU: 90 00 [23:46:11]wFMCommunicate OK [23:46:11]wFMCommunicate request_size=10 [23:46:11]MH_SAM_APDU [23:46:11]CAPDU: 80 0D 02 02 05 66 B8 EC 91 EE [23:46:11]Write to MH i2c: E2 0D 00 0D 02 80 0D 02 02 05 00 66 B8 EC 91 EE 00 00 1C [23:46:11]Write i2c OK [23:46:11]MH_I2C_Read... [23:46:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:46:11]Read from MH i2c: E2 [23:46:11]MH_I2C_Read... [23:46:11]Read from MH i2c: E2 03 00 [23:46:11]MH_I2C_Read... [23:46:11]Read from MH i2c: E2 03 00 0D 02 00 90 00 83 [23:46:11]RAPDU: 90 00 [23:46:11]wFMCommunicate OK [23:46:11]wFMCommunicate request_size=4 [23:46:11]MH_SAM_APDU [23:46:11]CAPDU: 80 0D 03 02 [23:46:11]Write to MH i2c: E2 08 00 0E 02 80 0D 03 02 00 00 00 00 8B [23:46:11]Write i2c OK [23:46:11]MH_I2C_Read... [23:46:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:46:11]Read from MH i2c: E2 [23:46:11]MH_I2C_Read... [23:46:11]Read from MH i2c: E2 0B 00 [23:46:11]MH_I2C_Read... [23:46:11]Read from MH i2c: E2 0B 00 0E 02 00 53 33 16 57 C4 06 0D 83 90 00 D9 [23:46:11]RAPDU: 53 33 16 57 C4 06 0D 83 90 00 [23:46:11]wFMCommunicate OK [23:46:11]SAM_PROTO_SignData done [23:46:11]FM_MakeSignedData done [23:46:11]CreateOFDProtocolMessage [23:46:11]wFMCommunicate request_size=4 [23:46:11]MH_SAM_APDU [23:46:11]CAPDU: 80 11 00 00 [23:46:11]Write to MH i2c: E2 08 00 0F 02 80 11 00 00 00 00 00 00 8B [23:46:11]Write i2c OK [23:46:11]MH_I2C_Read... [23:46:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:46:11]Read from MH i2c: E2 [23:46:11]MH_I2C_Read... [23:46:11]Read from MH i2c: E2 17 00 [23:46:11]MH_I2C_Read... [23:46:11]Read from MH i2c: E2 17 00 0F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E1 [23:46:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [23:46:11]wFMCommunicate OK [23:46:11]CreateOFDProtocolMessage done [23:46:11]OFDSenderStorePacket 67589 [23:46:11]StoreOFDPacket docnum=67589 [23:46:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 55 23 07 01 43 DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 C2 9A 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 05 08 01 00 35 04 06 00 3E 66 B8 EC 91 EE 53 33 16 57 C4 06 0D 83 [23:46:11]CheckFolder [23:46:11]dirname=/storage/ofd_packets [23:46:11]CheckFolder done [23:46:11]ProducePacketName [23:46:11]name=ofd_packets/00067589 [23:46:11]NVStorageSaveData ofd_packets/00067589 [23:46:11]File name is /storage/ofd_packets/00067589 [23:46:11]Write 301 bytes [23:46:11]NVStorageSaveData done [23:46:11]OFDSenderStorePacket done [23:46:11]KKMCreateOFDPacket done [23:46:11]NVStorageSaveData kkm_last_timestamp [23:46:11]File name is /storage/kkm_last_timestamp [23:46:11]Write 4 bytes [23:46:11]NVStorageSaveData done [23:46:11]ExternCall_PrintAddStr [23:46:11]wPrintStart [23:46:11]Write to MH i2c: 01 00 00 10 02 12 [23:46:11]Write i2c OK [23:46:11]MH_I2C_Read... [23:46:11]Read from MH i2c: 01 [23:46:11]MH_I2C_Read... [23:46:11]Read from MH i2c: 01 07 00 [23:46:11]MH_I2C_Read... [23:46:11]Read from MH i2c: 01 07 00 10 02 00 00 00 00 00 FF 0F 27 [23:46:11]RasterBufferAndPrint [23:46:11]line Счет N : (1)507673 [23:46:11]line ИНН: 02508201610067 [23:46:11]line Контрольно-Кассовый Чек [23:46:11]line ПРОДАЖА [23:46:11]line ТРК (МРК, ГНК) : 23 [23:46:11]line Товар: 2710124130 [23:46:11]line Аи-92-К-5 [23:46:11]line 7.490 * 66.80 [23:46:11]line = 500.33 [23:46:11]line НДС 12% НСП 1% [23:46:11]line > о реализуемом товаре [23:46:11]line ИТОГО: 500.33 [23:46:11]line НСП 1% : 4.43 [23:46:11]line НДС 12% : 53.13 [23:46:11]line Наличными: 0.00 [23:46:11]line Безнал.: 500.33 [23:46:11]line Место: АЗС № 91 "Партнер Нефть" [23:46:11]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [23:46:11]line СНО: Общий режим [23:46:11]line Чек 187 16.05.2024 23:46 [23:46:11]line Смена: 357 ФФД: 1.0 [23:46:11]line ЗНМ: 0300000119 [23:46:11]line РНМ: 0000000000091845 [23:46:11]line Версия ККМ: 001 [23:46:11]line Платежная система: O! деньги [23:46:11]line ФМ: 0000000000871829 [23:46:11]line ФД: 67589 [23:46:11]line ФПД: 68610910097902 [23:46:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T234610&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67589&fm=68610910097902&tin=02508201610067®Number=0000000000091845&sum=50033 [23:46:12]written 0, free lines is 4095 [23:46:12]Write to MH i2c: 01 00 00 39 02 3B [23:46:12]Write i2c OK [23:46:12]MH_I2C_Read... [23:46:12]Read from MH i2c: 01 [23:46:12]MH_I2C_Read... [23:46:12]Read from MH i2c: 01 07 00 [23:46:12]MH_I2C_Read... [23:46:12]Read from MH i2c: 01 07 00 39 02 00 00 00 00 00 D2 0C 20 [23:46:12]RasterBufferAndPrint [23:46:12]line [23:46:12]line [23:46:12]line [23:46:12]line [23:46:12]line [23:46:12]written 0, free lines is 3288 [23:46:12]MH_Cut [23:46:12]Write to MH i2c: D1 01 00 40 02 01 14 [23:46:12]Write i2c OK [23:46:12]MH_I2C_Read... [23:46:12]Read from MH i2c: D1 [23:46:12]MH_I2C_Read... [23:46:12]Read from MH i2c: D1 01 00 [23:46:12]MH_I2C_Read... [23:46:12]Read from MH i2c: D1 01 00 40 02 00 13 [23:46:12]Write to MH i2c: 01 00 00 41 02 43 [23:46:12]Write i2c OK [23:46:12]MH_I2C_Read... [23:46:13]*** Cut start [23:46:13]*** Purtial cut [23:46:13]*** Stage 1: CUTSNS_PIN = 1 [23:46:13]Read from MH i2c: 01 [23:46:13]MH_I2C_Read... [23:46:13]*** Stop cut motor [23:46:13]*** Cut end [23:46:13]Read from MH i2c: 01 07 00 [23:46:13]MH_I2C_Read... [23:46:13]Read from MH i2c: 01 07 00 41 02 00 00 00 00 00 FF 0F 58 [23:46:13]process_action close_receipt done [23:46:13]requested_data is exist [23:46:13]produce_requested_data [23:46:13]requested_item fm.sn is exist - process it [23:46:13]wFMCommunicate request_size=4 [23:46:13]MH_SAM_APDU [23:46:13]CAPDU: 80 11 00 00 [23:46:13]Write to MH i2c: E2 08 00 42 02 80 11 00 00 00 00 00 00 BE [23:46:13]Write i2c OK [23:46:13]MH_I2C_Read... [23:46:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:46:13]Read from MH i2c: E2 [23:46:13]MH_I2C_Read... [23:46:13]Read from MH i2c: E2 17 00 [23:46:13]MH_I2C_Read... [23:46:13]Read from MH i2c: E2 17 00 42 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 14 [23:46:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [23:46:13]wFMCommunicate OK [23:46:13]requested_item fd.num is exist - process it [23:46:13]SAM_PROTO_GetFieldsCounters [23:46:13]wFMCommunicate request_size=4 [23:46:13]MH_SAM_APDU [23:46:13]CAPDU: 80 13 00 00 [23:46:13]Write to MH i2c: E2 08 00 43 02 80 13 00 00 00 00 00 00 C1 [23:46:13]Write i2c OK [23:46:13]MH_I2C_Read... [23:46:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:46:13]Read from MH i2c: E2 [23:46:13]MH_I2C_Read... [23:46:13]Read from MH i2c: E2 62 00 [23:46:13]MH_I2C_Read... [23:46:13]Read from MH i2c: E2 62 00 43 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 05 08 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [23:46: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 05 08 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:46:13]wFMCommunicate OK [23:46:13]SAM_PROTO_GetFieldsCounters done [23:46:13]requested_item shift.num is exist - process it [23:46:13]requested_item shift.opened is exist - process it [23:46:13]req_shift_opened [23:46:13]FM_GetShiftState [23:46:13]SAM_PROTO_GetShiftState [23:46:13]wFMCommunicate request_size=4 [23:46:13]MH_SAM_APDU [23:46:13]CAPDU: 80 13 01 00 [23:46:13]Write to MH i2c: E2 08 00 44 02 80 13 01 00 00 00 00 00 C3 [23:46:13]Write i2c OK [23:46:13]MH_I2C_Read... [23:46:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:46:13]Read from MH i2c: E2 [23:46:13]MH_I2C_Read... [23:46:13]Read from MH i2c: E2 0E 00 [23:46:13]MH_I2C_Read... [23:46:13]Read from MH i2c: E2 0E 00 44 02 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 6F [23:46:13]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [23:46:13]wFMCommunicate OK [23:46:13]SAM_PROTO_GetShiftState done [23:46:13]FM_GetShiftState done [23:46:13]req_shift_opened done [23:46:13]requested_item shift.open_date is exist - process it [23:46:13]req_shift_open_date [23:46:13]req_shift_open_date done [23:46:13]produce_requested_data done [23:46:13]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67589,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [23:46:13]process_action_free close_receipt [23:46:13]json_value_free [23:46:13]json_value_free done [23:46:13]process_json_proto returns [23:46:13]Send response to host [23:46:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67589,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [23:46:13]free response buf [23:46:13]execute_script done [23:46:13]execute_script returns [23:46:13]free content buf [23:46:13]Sock 7.Close socket [23:46:13]Sock 7.Thread stoped [23:48:02]ConnectInit Can't connect to host [23:48:02]CommunicateWithHost connect error [23:48:02]CommunicateWithHost err = -1 [23:48:02]OFD Sender: Server communicate error [23:48:03]OFD Sender: Processing packet 67588 [packets to send 36, broken 34] [23:48:03]ProducePacketName [23:48:03]name=ofd_packets/00067588 [23:48:03]OFD Sender: To server: pG, [23:48:03]CommunicateWithHost lk.salyk.kg:30040 [23:48:03]ConnectInit lk.salyk.kg [23:48:03]Connected sock=7 [23:48: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 38 32 39 0F 01 00 00 5E E2 07 01 4A 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 6C 24 01 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 61 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 61 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 61 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 AC 9A 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 04 08 01 00 35 04 06 00 90 AD 8F 43 CA C6 DF 56 5A 83 DD 63 5C 68 [23:48:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 4F 4B 47 00 44 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 04 08 01 00 F4 03 04 00 0B 43 46 66 B6 04 01 00 00 75 0F 95 B0 C0 31 00 4F [23:48:03]CommunicateWithHost err = 0 [23:48:03]CheckOFDResponse [23:48:03]1017 (14) - 77093643461234 [23:48:03]1041 (16) - 0000000000871829 [23:48:03]1040 (4) - 67588 [23:48:03]1012 (4) - 16.05.2024 17:31 [23:48:03]1206 (1) - 0 [23:48:03]OFD Sender: Remove packet 67588 [23:48:03]ProducePacketName [23:48:03]name=ofd_packets/00067588 [23:48:03]NVStorageDeleteData [23:48:03]OFD Sender: Processing packet 67589 [packets to send 35, broken 34] [23:48:03]ProducePacketName [23:48:03]name=ofd_packets/00067589 [23:48:03]OFD Sender: To server: pG, [23:48:03]CommunicateWithHost lk.salyk.kg:30040 [23:48:03]ConnectInit lk.salyk.kg [23:48:03]Connected sock=7 [23:48: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 38 32 39 0F 01 00 00 55 23 07 01 43 DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 C2 9A 46 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 05 08 01 00 35 04 06 00 3E 66 B8 EC 91 EE 53 33 16 57 C4 06 0D 83 [23:48:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 9E 28 47 00 87 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 38 32 39 10 04 04 00 05 08 01 00 F4 03 04 00 0B 43 46 66 B6 04 01 00 00 39 78 9F 5F 4C 64 78 85 [23:48:04]CommunicateWithHost err = 0 [23:48:04]CheckOFDResponse [23:48:04]1017 (14) - 77093643461234 [23:48:04]1041 (16) - 0000000000871829 [23:48:04]1040 (4) - 67589 [23:48:04]1012 (4) - 16.05.2024 17:31 [23:48:04]1206 (1) - 0 [23:48:04]OFD Sender: Remove packet 67589 [23:48:04]ProducePacketName [23:48:04]name=ofd_packets/00067589 [23:48:04]NVStorageDeleteData [23:48:04]OFD Sender: No OFD packet to send [23:48:09]OFD Sender: No OFD packet to send [23:48:14]OFD Sender: No OFD packet to send [23:48:19]OFD Sender: No OFD packet to send [23:48:24]OFD Sender: No OFD packet to send [23:48:29]OFD Sender: No OFD packet to send [23:48:34]OFD Sender: No OFD packet to send [23:48:39]OFD Sender: No OFD packet to send [23:48:44]OFD Sender: No OFD packet to send [23:48:49]OFD Sender: No OFD packet to send [23:48:54]OFD Sender: No OFD packet to send [23:48:59]OFD Sender: No OFD packet to send [23:49:04]OFD Sender: No OFD packet to send [23:49:09]OFD Sender: No OFD packet to send [23:49:14]OFD Sender: No OFD packet to send [23:49:19]OFD Sender: No OFD packet to send [23:49:24]OFD Sender: No OFD packet to send [23:49:29]OFD Sender: No OFD packet to send [23:49:34]OFD Sender: No OFD packet to send [23:49:39]OFD Sender: No OFD packet to send [23:49:44]OFD Sender: No OFD packet to send [23:49:49]OFD Sender: No OFD packet to send [23:49:54]OFD Sender: No OFD packet to send [23:49:59]OFD Sender: No OFD packet to send [23:50:04]OFD Sender: No OFD packet to send [23:50:09]OFD Sender: No OFD packet to send [23:50:14]OFD Sender: No OFD packet to send [23:50:19]OFD Sender: No OFD packet to send [23:50:24]OFD Sender: No OFD packet to send [23:50:29]OFD Sender: No OFD packet to send [23:50:34]OFD Sender: No OFD packet to send [23:50:39]OFD Sender: No OFD packet to send [23:50:44]OFD Sender: No OFD packet to send [23:50:49]OFD Sender: No OFD packet to send [23:50:54]OFD Sender: No OFD packet to send [23:50:59]OFD Sender: No OFD packet to send [23:51:04]OFD Sender: No OFD packet to send [23:51:09]OFD Sender: No OFD packet to send [23:51:14]OFD Sender: No OFD packet to send [23:51:19]OFD Sender: No OFD packet to send [23:51:24]OFD Sender: No OFD packet to send [23:51:29]OFD Sender: No OFD packet to send [23:51:34]OFD Sender: No OFD packet to send [23:51:39]OFD Sender: No OFD packet to send [23:51:44]OFD Sender: No OFD packet to send [23:51:49]OFD Sender: No OFD packet to send [23:51:54]OFD Sender: No OFD packet to send [23:51:59]OFD Sender: No OFD packet to send [23:52:04]OFD Sender: No OFD packet to send [23:52:09]OFD Sender: No OFD packet to send [23:52:14]OFD Sender: No OFD packet to send [23:52:19]OFD Sender: No OFD packet to send [23:52:24]OFD Sender: No OFD packet to send [23:52:29]OFD Sender: No OFD packet to send [23:52:34]OFD Sender: No OFD packet to send [23:52:39]OFD Sender: No OFD packet to send [23:52:44]OFD Sender: No OFD packet to send [23:52:49]OFD Sender: No OFD packet to send [23:52:54]OFD Sender: No OFD packet to send [23:52:59]OFD Sender: No OFD packet to send [23:53:04]OFD Sender: No OFD packet to send [23:53:09]OFD Sender: No OFD packet to send [23:53:14]OFD Sender: No OFD packet to send [23:53:19]OFD Sender: No OFD packet to send [23:53:24]OFD Sender: No OFD packet to send [23:53:29]OFD Sender: No OFD packet to send [23:53:34]OFD Sender: No OFD packet to send [23:53:39]OFD Sender: No OFD packet to send [23:53:44]OFD Sender: No OFD packet to send [23:53:49]OFD Sender: No OFD packet to send [23:53:54]OFD Sender: No OFD packet to send [23:53:59]OFD Sender: No OFD packet to send [23:54:04]OFD Sender: No OFD packet to send [23:54:09]OFD Sender: No OFD packet to send [23:54:14]OFD Sender: No OFD packet to send [23:54:19]OFD Sender: No OFD packet to send [23:54:24]OFD Sender: No OFD packet to send [23:54:29]OFD Sender: No OFD packet to send [23:54:34]OFD Sender: No OFD packet to send [23:54:39]OFD Sender: No OFD packet to send [23:54:44]OFD Sender: No OFD packet to send [23:54:49]OFD Sender: No OFD packet to send [23:54:54]OFD Sender: No OFD packet to send [23:55:00]OFD Sender: No OFD packet to send [23:55:05]OFD Sender: No OFD packet to send [23:55:10]OFD Sender: No OFD packet to send [23:55:15]OFD Sender: No OFD packet to send [23:55:20]OFD Sender: No OFD packet to send [23:55:25]OFD Sender: No OFD packet to send [23:55:30]OFD Sender: No OFD packet to send [23:55:35]OFD Sender: No OFD packet to send [23:55:40]OFD Sender: No OFD packet to send [23:55:45]OFD Sender: No OFD packet to send [23:55:50]OFD Sender: No OFD packet to send [23:55:55]OFD Sender: No OFD packet to send [23:56:00]OFD Sender: No OFD packet to send [23:56:05]OFD Sender: No OFD packet to send [23:56:10]OFD Sender: No OFD packet to send [23:56:15]OFD Sender: No OFD packet to send [23:56:20]OFD Sender: No OFD packet to send [23:56:25]OFD Sender: No OFD packet to send [23:56:30]OFD Sender: No OFD packet to send [23:56:35]OFD Sender: No OFD packet to send [23:56:40]OFD Sender: No OFD packet to send [23:56:45]OFD Sender: No OFD packet to send [23:56:50]OFD Sender: No OFD packet to send [23:56:55]OFD Sender: No OFD packet to send [23:57:00]OFD Sender: No OFD packet to send [23:57:05]OFD Sender: No OFD packet to send [23:57:10]OFD Sender: No OFD packet to send [23:57:15]OFD Sender: No OFD packet to send [23:57:20]OFD Sender: No OFD packet to send [23:57:25]OFD Sender: No OFD packet to send [23:57:30]OFD Sender: No OFD packet to send [23:57:35]OFD Sender: No OFD packet to send [23:57:40]OFD Sender: No OFD packet to send [23:57:45]OFD Sender: No OFD packet to send [23:57:50]OFD Sender: No OFD packet to send [23:57:55]OFD Sender: No OFD packet to send [23:58:00]OFD Sender: No OFD packet to send [23:58:05]OFD Sender: No OFD packet to send [23:58:10]OFD Sender: No OFD packet to send [23:58:15]OFD Sender: No OFD packet to send [23:58:20]OFD Sender: No OFD packet to send [23:58:25]OFD Sender: No OFD packet to send [23:58:30]OFD Sender: No OFD packet to send [23:58:35]OFD Sender: No OFD packet to send [23:58:40]OFD Sender: No OFD packet to send [23:58:45]OFD Sender: No OFD packet to send [23:58:50]OFD Sender: No OFD packet to send [23:58:55]OFD Sender: No OFD packet to send [23:59:00]OFD Sender: No OFD packet to send [23:59:05]OFD Sender: No OFD packet to send [23:59:10]OFD Sender: No OFD packet to send [23:59:15]OFD Sender: No OFD packet to send [23:59:20]OFD Sender: No OFD packet to send [23:59:25]OFD Sender: No OFD packet to send [23:59:30]OFD Sender: No OFD packet to send [23:59:35]OFD Sender: No OFD packet to send [23:59:40]OFD Sender: No OFD packet to send [23:59:45]OFD Sender: No OFD packet to send [23:59:50]OFD Sender: No OFD packet to send [23:59:55]OFD Sender: No OFD packet to send [00:00:00]OFD Sender: No OFD packet to send [00:00:05]OFD Sender: No OFD packet to send [00:00:10]OFD Sender: No OFD packet to send [00:00:15]OFD Sender: No OFD packet to send [00:00:20]OFD Sender: No OFD packet to send [00:00:25]OFD Sender: No OFD packet to send [00:00:30]OFD Sender: No OFD packet to send [00:00:35]OFD Sender: No OFD packet to send [00:00:40]OFD Sender: No OFD packet to send [00:00:45]OFD Sender: No OFD packet to send [00:00:50]OFD Sender: No OFD packet to send [00:00:55]OFD Sender: No OFD packet to send [00:01:00]OFD Sender: No OFD packet to send [00:01:05]OFD Sender: No OFD packet to send [00:01:10]OFD Sender: No OFD packet to send [00:01:15]OFD Sender: No OFD packet to send [00:01:20]OFD Sender: No OFD packet to send [00:01:25]OFD Sender: No OFD packet to send [00:01:30]OFD Sender: No OFD packet to send [00:01:35]OFD Sender: No OFD packet to send [00:01:40]OFD Sender: No OFD packet to send [00:01: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:12]int [00:04:12]Write to MH i2c: 01 00 00 45 02 47 [00:04:12]*** FLAG_PRN_PAP1 set [00:04:12]Write i2c OK [00:04:12]MH_I2C_Read... [00:04:12]Read from MH i2c: 01 [00:04:12]MH_I2C_Read... [00:04:12]Read from MH i2c: 01 07 00 [00:04:12]MH_I2C_Read... [00:04:12]Read from MH i2c: 01 07 00 45 02 00 01 00 00 00 FF 0F 5D [00:04:12]state=0 [00:04:12]No paper [00:04:13]int [00:04:13]Write to MH i2c: 01 00 00 46 02 48 [00:04:13]*** FLAG_PRN_PAP2 set [00:04:13]Write i2c OK [00:04:13]MH_I2C_Read... [00:04:13]Read from MH i2c: 01 [00:04:13]MH_I2C_Read... [00:04:13]Read from MH i2c: 01 07 00 [00:04:13]MH_I2C_Read... [00:04:13]Read from MH i2c: 01 07 00 46 02 00 03 00 00 00 FF 0F 60 [00:04:13]state=0 [00:04:13]No paper [00:04:13]Cover opened [00:04:15]OFD Sender: No OFD packet to send [00:04:16]int [00:04:16]Write to MH i2c: 01 00 00 47 02 49 [00:04:16]*** FLAG_PRN_PAP1 reset [00:04:16]Write i2c OK [00:04:16]MH_I2C_Read... [00:04:16]Read from MH i2c: 01 [00:04:16]MH_I2C_Read... [00:04:16]Read from MH i2c: 01 07 00 [00:04:16]MH_I2C_Read... [00:04:16]Read from MH i2c: 01 07 00 47 02 00 02 00 00 00 FF 0F 60 [00:04:16]state=3 [00:04:16]Cover opened [00:04:16]int line is 0 - check status [00:04:16]Write to MH i2c: 01 00 00 48 02 4A [00:04:16]*** FLAG_PRN_PAP2 reset [00:04:16]Write i2c OK [00:04:16]MH_I2C_Read... [00:04:16]Read from MH i2c: 01 [00:04:16]MH_I2C_Read... [00:04:16]Read from MH i2c: 01 07 00 [00:04:16]MH_I2C_Read... [00:04:16]Read from MH i2c: 01 07 00 48 02 00 00 00 00 00 FF 0F 5F [00:04:16]state=3 [00:04:16]Cover closed [00:04:16]int [00:04:16]Write to MH i2c: 01 00 00 49 02 4B [00:04:16]Write i2c OK [00:04:16]MH_I2C_Read... [00:04:16]Read from MH i2c: 01 [00:04:16]MH_I2C_Read... [00:04:16]Read from MH i2c: 01 07 00 [00:04:16]MH_I2C_Read... [00:04:16]Read from MH i2c: 01 07 00 49 02 00 00 00 00 00 FF 0F 60 [00:04:16]state=0 [00:04:18]int [00:04:18]Write to MH i2c: 01 00 00 4A 02 4C [00:04:18]*** FLAG_PRN_PAP1 set [00:04:18]Write i2c OK [00:04:18]MH_I2C_Read... [00:04:18]Read from MH i2c: 01 [00:04:18]MH_I2C_Read... [00:04:18]Read from MH i2c: 01 07 00 [00:04:18]MH_I2C_Read... [00:04:18]Read from MH i2c: 01 07 00 4A 02 00 01 00 00 00 FF 0F 62 [00:04:18]state=0 [00:04:18]No paper [00:04:18]int [00:04:18]Write to MH i2c: 01 00 00 4B 02 4D [00:04:18]*** FLAG_PRN_PAP2 set [00:04:18]Write i2c OK [00:04:18]MH_I2C_Read... [00:04:18]Read from MH i2c: 01 [00:04:18]MH_I2C_Read... [00:04:18]Read from MH i2c: 01 07 00 [00:04:18]MH_I2C_Read... [00:04:18]Read from MH i2c: 01 07 00 4B 02 00 03 00 00 00 FF 0F 65 [00:04:18]state=0 [00:04:18]No paper [00:04:18]Cover opened [00:04:20]OFD Sender: No OFD packet to send [00:04:20]int [00:04:20]Write to MH i2c: 01 00 00 4C 02 4E [00:04:20]*** FLAG_PRN_PAP2 reset [00:04:20]Write i2c OK [00:04:20]MH_I2C_Read... [00:04:20]Read from MH i2c: 01 [00:04:20]MH_I2C_Read... [00:04:20]Read from MH i2c: 01 07 00 [00:04:20]MH_I2C_Read... [00:04:20]Read from MH i2c: 01 07 00 4C 02 00 01 00 00 00 FF 0F 64 [00:04:20]state=3 [00:04:20]No paper [00:04:20]Cover closed [00:04:20]int [00:04:20]Write to MH i2c: 01 00 00 4D 02 4F [00:04:20]*** FLAG_PRN_PAP1 reset [00:04:20]Write i2c OK [00:04:20]MH_I2C_Read... [00:04:20]Read from MH i2c: 01 [00:04:20]MH_I2C_Read... [00:04:20]Read from MH i2c: 01 07 00 [00:04:20]MH_I2C_Read... [00:04:20]Read from MH i2c: 01 07 00 4D 02 00 00 00 00 00 FF 0F 64 [00:04:20]state=0 [00:04:22]accept exits with 9 [00:04:22]New connection [00:04:22]New thread 3067538788 created [00:04:22]Thread 3067395428 joined [00:04:22]Waiting for new connection... [00:04:22] Sock 9.Parse request [00:04:22]Sock 9.Check first char [00:04:22]Sock 9.First char is OK [00:04:22]request: POST /json_proto HTTP/1.0 [00:04:22]Method: POST [00:04:22]URL: /json_proto [00:04:22]Method is POST - this is cgi request [00:04:22]url: /json_proto [00:04:22]query_string will be loaded in cgi processing [00:04:22]execute_cgi json_proto POST (null) [00:04:22]execute_cgi path=json_proto method=POST [00:04:22]POST find Content-Length [00:04:22]Host: 172.17.41.195:8080 [00:04:22]Content-Length: 215 [00:04:22]Content-Type: application/json [00:04:22] [00:04:22]POST finish read [00:04:22]Found Content-Length = 215 [00:04:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:04:22]execute_script... [00:04:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:04:22]POST & json_proto [00:04:22]process_json_proto [00:04:22]json parsed OK: [00:04:22]protocol is kg_v1.0 [00:04:22]action value=get_value [00:04:22]process_action get_value [00:04:22]cmd_get_value [00:04:22]process_action get_value done [00:04:22]requested_data is exist [00:04:22]produce_requested_data [00:04:22]requested_item kkm.sn is exist - process it [00:04:22]requested_item kkm.ver is exist - process it [00:04:22]requested_item fm.sn is exist - process it [00:04:22]wFMCommunicate request_size=4 [00:04:22]MH_SAM_APDU [00:04:22]CAPDU: 80 11 00 00 [00:04:22]Write to MH i2c: E2 08 00 4E 02 80 11 00 00 00 00 00 00 CA [00:04:22]Write i2c OK [00:04:22]MH_I2C_Read... [00:04:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:04:22]Read from MH i2c: E2 [00:04:22]MH_I2C_Read... [00:04:22]Read from MH i2c: E2 17 00 [00:04:22]MH_I2C_Read... [00:04:22]Read from MH i2c: E2 17 00 4E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 20 [00:04:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [00:04:22]wFMCommunicate OK [00:04:22]requested_item fd.num is exist - process it [00:04:22]SAM_PROTO_GetFieldsCounters [00:04:22]wFMCommunicate request_size=4 [00:04:22]MH_SAM_APDU [00:04:22]CAPDU: 80 13 00 00 [00:04:22]Write to MH i2c: E2 08 00 4F 02 80 13 00 00 00 00 00 00 CD [00:04:22]Write i2c OK [00:04:22]MH_I2C_Read... [00:04:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:04:22]Read from MH i2c: E2 [00:04:22]MH_I2C_Read... [00:04:22]Read from MH i2c: E2 62 00 [00:04:22]MH_I2C_Read... [00:04:22]Read from MH i2c: E2 62 00 4F 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 05 08 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [00:04: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 05 08 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:04:22]wFMCommunicate OK [00:04:22]SAM_PROTO_GetFieldsCounters done [00:04:22]requested_item shift.num is exist - process it [00:04:22]requested_item shift.opened is exist - process it [00:04:22]req_shift_opened [00:04:22]FM_GetShiftState [00:04:22]SAM_PROTO_GetShiftState [00:04:22]wFMCommunicate request_size=4 [00:04:22]MH_SAM_APDU [00:04:22]CAPDU: 80 13 01 00 [00:04:22]Write to MH i2c: E2 08 00 50 02 80 13 01 00 00 00 00 00 CF [00:04:22]Write i2c OK [00:04:22]MH_I2C_Read... [00:04:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:04:22]Read from MH i2c: E2 [00:04:22]MH_I2C_Read... [00:04:22]Read from MH i2c: E2 0E 00 [00:04:22]MH_I2C_Read... [00:04:22]Read from MH i2c: E2 0E 00 50 02 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 7B [00:04:22]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [00:04:22]wFMCommunicate OK [00:04:22]SAM_PROTO_GetShiftState done [00:04:22]FM_GetShiftState done [00:04:22]req_shift_opened done [00:04:22]requested_item shift.open_date is exist - process it [00:04:22]req_shift_open_date [00:04:22]req_shift_open_date done [00:04:22]produce_requested_data done [00:04:22]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67589,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [00:04:22]process_action_free get_value [00:04:22]json_value_free [00:04:22]json_value_free done [00:04:22]process_json_proto returns [00:04:22]Send response to host [00:04:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67589,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [00:04:22]free response buf [00:04:22]execute_script done [00:04:22]execute_script returns [00:04:22]free content buf [00:04:22]Sock 9.Close socket [00:04:22]Sock 9.Thread stoped [00:04:22]accept exits with 7 [00:04:22]New connection [00:04:22]New thread 3067395428 created [00:04:22]Thread 3067538788 joined [00:04:22]Waiting for new connection... [00:04:22] Sock 7.Parse request [00:04:22]Sock 7.Check first char [00:04:22]Sock 7.First char is OK [00:04:22]request: POST /json_proto HTTP/1.0 [00:04:22]Method: POST [00:04:22]URL: /json_proto [00:04:22]Method is POST - this is cgi request [00:04:22]url: /json_proto [00:04:22]query_string will be loaded in cgi processing [00:04:22]execute_cgi json_proto POST (null) [00:04:22]execute_cgi path=json_proto method=POST [00:04:22]POST find Content-Length [00:04:22]Host: 172.17.41.195:8080 [00:04:22]Content-Length: 331 [00:04:22]Content-Type: application/json [00:04:22] [00:04:22]POST finish read [00:04:22]Found Content-Length = 331 [00:04:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:04:22]execute_script... [00:04:22]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:04:22]POST & json_proto [00:04:22]process_json_proto [00:04:22]json parsed OK: [00:04:22]protocol is kg_v1.0 [00:04:22]action value=get_value [00:04:22]process_action get_value [00:04:22]cmd_get_value [00:04:22]process_action get_value done [00:04:22]requested_data is exist [00:04:22]produce_requested_data [00:04:22]requested_item fm.sale.total is exist - process it [00:04:22]SAM_PROTO_GetFMData [00:04:22]wFMCommunicate request_size=4 [00:04:22]MH_SAM_APDU [00:04:22]CAPDU: 80 13 03 00 [00:04:22]Write to MH i2c: E2 08 00 51 02 80 13 03 00 00 00 00 00 D2 [00:04:22]Write i2c OK [00:04:22]MH_I2C_Read... [00:04:23]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:04:23]Read from MH i2c: E2 [00:04:23]MH_I2C_Read... [00:04:23]Read from MH i2c: E2 FD 00 [00:04:23]MH_I2C_Read... [00:04:23]Read from MH i2c: E2 FD 00 51 02 00 C6 04 85 04 C2 04 6E 04 04 00 3B 05 01 00 69 04 A3 00 6F 04 04 00 91 04 01 00 B1 04 05 00 9F 3C 57 1C 03 70 04 05 00 6C C8 17 C0 02 72 04 04 00 33 74 3F 5C 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 77 29 94 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 3C 44 0C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 BC [00:04:23]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 3B 05 01 00 69 04 A3 00 6F 04 04 00 91 04 01 00 B1 04 05 00 9F 3C 57 1C 03 70 04 05 00 6C C8 17 C0 02 72 04 04 00 33 74 3F 5C 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 77 29 94 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 3C 44 0C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 [00:04:23]wFMCommunicate OK [00:04:23]wFMCommunicate request_size=4 [00:04:23]MH_SAM_APDU [00:04:23]CAPDU: 80 17 00 00 [00:04:23]Write to MH i2c: E2 08 00 52 02 80 17 00 00 00 00 00 00 D4 [00:04:23]Write i2c OK [00:04:23]MH_I2C_Read... [00:04:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:23]Read from MH i2c: E2 [00:04:23]MH_I2C_Read... [00:04:23]Read from MH i2c: E2 FD 00 [00:04:23]MH_I2C_Read... [00:04:23]Read from MH i2c: E2 FD 00 52 02 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 0F [00:04:23]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [00:04:23]wFMCommunicate OK [00:04:23]wFMCommunicate request_size=4 [00:04:23]MH_SAM_APDU [00:04:23]CAPDU: 80 17 00 00 [00:04:23]Write to MH i2c: E2 08 00 53 02 80 17 00 00 00 00 00 00 D5 [00:04:23]Write i2c OK [00:04:23]MH_I2C_Read... [00:04:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:23]Read from MH i2c: E2 [00:04:23]MH_I2C_Read... [00:04:23]Read from MH i2c: E2 FD 00 [00:04:23]MH_I2C_Read... [00:04:23]Read from MH i2c: E2 FD 00 53 02 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 FC [00:04:23]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [00:04:23]wFMCommunicate OK [00:04:23]wFMCommunicate request_size=4 [00:04:23]MH_SAM_APDU [00:04:23]CAPDU: 80 17 00 00 [00:04:23]Write to MH i2c: E2 08 00 54 02 80 17 00 00 00 00 00 00 D6 [00:04:23]Write i2c OK [00:04:23]MH_I2C_Read... [00:04:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:24]Read from MH i2c: E2 [00:04:24]MH_I2C_Read... [00:04:24]Read from MH i2c: E2 FD 00 [00:04:24]MH_I2C_Read... [00:04:24]Read from MH i2c: E2 FD 00 54 02 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 51 [00:04:24]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:04:24]wFMCommunicate OK [00:04:24]wFMCommunicate request_size=4 [00:04:24]MH_SAM_APDU [00:04:24]CAPDU: 80 17 00 00 [00:04:24]Write to MH i2c: E2 08 00 55 02 80 17 00 00 00 00 00 00 D7 [00:04:24]Write i2c OK [00:04:24]MH_I2C_Read... [00:04:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [00:04:24]Read from MH i2c: E2 [00:04:24]MH_I2C_Read... [00:04:24]Read from MH i2c: E2 E3 00 [00:04:24]MH_I2C_Read... [00:04:24]Read from MH i2c: E2 E3 00 55 02 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 B6 [00:04:24]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:04:24]wFMCommunicate OK [00:04:24]SAM_PROTO_GetFMData done [00:04:24]requested_item fm.sale_refund.total is exist - process it [00:04:24]requested_item fm.buy.total is exist - process it [00:04:24]requested_item shift.sale.total is exist - process it [00:04:24]SAM_PROTO_GetShiftData [00:04:24]wFMCommunicate request_size=4 [00:04:24]MH_SAM_APDU [00:04:24]CAPDU: 80 13 02 00 [00:04:24]Write to MH i2c: E2 08 00 56 02 80 13 02 00 00 00 00 00 D6 [00:04:24]Write i2c OK [00:04:24]MH_I2C_Read... [00:04:24]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:04:24]Read from MH i2c: E2 [00:04:24]MH_I2C_Read... [00:04:24]Read from MH i2c: E2 FD 00 [00:04:24]MH_I2C_Read... [00:04:24]Read from MH i2c: E2 FD 00 56 02 00 BA 04 AA 04 B6 04 6E 04 04 00 BB 00 00 00 69 04 9D 00 6F 04 04 00 B9 00 00 00 B1 04 04 00 49 5E 7B 01 70 04 03 00 C4 1C 97 72 04 03 00 85 41 E4 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 E6 4A 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 83 5B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 70 64 08 70 04 03 00 70 64 08 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 32 E4 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 A1 [00:04:24]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 BB 00 00 00 69 04 9D 00 6F 04 04 00 B9 00 00 00 B1 04 04 00 49 5E 7B 01 70 04 03 00 C4 1C 97 72 04 03 00 85 41 E4 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 E6 4A 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 83 5B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 70 64 08 70 04 03 00 70 64 08 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 32 E4 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:04:24]wFMCommunicate OK [00:04:24]wFMCommunicate request_size=4 [00:04:24]MH_SAM_APDU [00:04:24]CAPDU: 80 17 00 00 [00:04:24]Write to MH i2c: E2 08 00 57 02 80 17 00 00 00 00 00 00 D9 [00:04:24]Write i2c OK [00:04:24]MH_I2C_Read... [00:04:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:25]Read from MH i2c: E2 [00:04:25]MH_I2C_Read... [00:04:25]Read from MH i2c: E2 FD 00 [00:04:25]MH_I2C_Read... [00:04:25]Read from MH i2c: E2 FD 00 57 02 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 04 13 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9A [00:04:25]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 04 13 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:04:25]wFMCommunicate OK [00:04:25]wFMCommunicate request_size=4 [00:04:25]MH_SAM_APDU [00:04:25]CAPDU: 80 17 00 00 [00:04:25]Write to MH i2c: E2 08 00 58 02 80 17 00 00 00 00 00 00 DA [00:04:25]Write i2c OK [00:04:25]MH_I2C_Read... [00:04:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:25]Read from MH i2c: E2 [00:04:25]MH_I2C_Read... [00:04:25]Read from MH i2c: E2 FD 00 [00:04:25]MH_I2C_Read... [00:04:25]Read from MH i2c: E2 FD 00 58 02 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 06 [00:04:25]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:04:25]wFMCommunicate OK [00:04:25]wFMCommunicate request_size=4 [00:04:25]MH_SAM_APDU [00:04:25]CAPDU: 80 17 00 00 [00:04:25]Write to MH i2c: E2 08 00 59 02 80 17 00 00 00 00 00 00 DB [00:04:25]Write i2c OK [00:04:25]MH_I2C_Read... [00:04:25]OFD Sender: No OFD packet to send [00:04:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:25]Read from MH i2c: E2 [00:04:25]MH_I2C_Read... [00:04:25]Read from MH i2c: E2 FD 00 [00:04:25]MH_I2C_Read... [00:04:25]Read from MH i2c: E2 FD 00 59 02 00 00 EF 03 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 90 00 53 [00:04:25]RAPDU: 00 EF 03 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 90 00 [00:04:25]wFMCommunicate OK [00:04:25]wFMCommunicate request_size=4 [00:04:25]MH_SAM_APDU [00:04:25]CAPDU: 80 17 00 00 [00:04:25]Write to MH i2c: E2 08 00 5A 02 80 17 00 00 00 00 00 00 DC [00:04:25]Write i2c OK [00:04:25]MH_I2C_Read... [00:04:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [00:04:26]Read from MH i2c: E2 [00:04:26]MH_I2C_Read... [00:04:26]Read from MH i2c: E2 D7 00 [00:04:26]MH_I2C_Read... [00:04:26]Read from MH i2c: E2 D7 00 5A 02 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 BF [00:04:26]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:04:26]wFMCommunicate OK [00:04:26]SAM_PROTO_GetShiftData done [00:04:26]requested_item shift.sale.total_cash is exist - process it [00:04:26]requested_item shift.sale_refund.total is exist - process it [00:04:26]requested_item shift.sale_refund.total_cash is exist - process it [00:04:26]requested_item shift.buy.total is exist - process it [00:04:26]requested_item shift.buy.total_cash is exist - process it [00:04:26]produce_requested_data done [00:04:26]produce_requested_data return {"fm.sale.total":133603810.87,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":248622.81,"shift.sale.total_cash":99033.00,"shift.sale_refund.total":5500.00,"shift.sale_refund.total_cash":5500.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:04:26]process_action_free get_value [00:04:26]json_value_free [00:04:26]json_value_free done [00:04:26]process_json_proto returns [00:04:26]Send response to host [00:04:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133603810.87,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":248622.81,"shift.sale.total_cash":99033.00,"shift.sale_refund.total":5500.00,"shift.sale_refund.total_cash":5500.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:04:26]free response buf [00:04:26]execute_script done [00:04:26]execute_script returns [00:04:26]free content buf [00:04:26]Sock 7.Close socket [00:04:26]Sock 7.Thread stoped [00:04:26]accept exits with 9 [00:04:26]New connection [00:04:26]New thread 3067538788 created [00:04:26]Thread 3067395428 joined [00:04:26]Waiting for new connection... [00:04:26] Sock 9.Parse request [00:04:26]Sock 9.Check first char [00:04:26]Sock 9.First char is OK [00:04:26]request: POST /json_proto HTTP/1.0 [00:04:26]Method: POST [00:04:26]URL: /json_proto [00:04:26]Method is POST - this is cgi request [00:04:26]url: /json_proto [00:04:26]query_string will be loaded in cgi processing [00:04:26]execute_cgi json_proto POST (null) [00:04:26]execute_cgi path=json_proto method=POST [00:04:26]POST find Content-Length [00:04:26]Host: 172.17.41.195:8080 [00:04:26]Content-Length: 331 [00:04:26]Content-Type: application/json [00:04:26] [00:04:26]POST finish read [00:04:26]Found Content-Length = 331 [00:04:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:04:26]execute_script... [00:04: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:04:26]POST & json_proto [00:04:26]process_json_proto [00:04:26]json parsed OK: [00:04:26]protocol is kg_v1.0 [00:04:26]action value=get_value [00:04:26]process_action get_value [00:04:26]cmd_get_value [00:04:26]process_action get_value done [00:04:26]requested_data is exist [00:04:26]produce_requested_data [00:04:26]requested_item fm.sale.total is exist - process it [00:04:26]SAM_PROTO_GetFMData [00:04:26]wFMCommunicate request_size=4 [00:04:26]MH_SAM_APDU [00:04:26]CAPDU: 80 13 03 00 [00:04:26]Write to MH i2c: E2 08 00 5B 02 80 13 03 00 00 00 00 00 DC [00:04:26]Write i2c OK [00:04:26]MH_I2C_Read... [00:04:26]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:04:26]Read from MH i2c: E2 [00:04:26]MH_I2C_Read... [00:04:26]Read from MH i2c: E2 FD 00 [00:04:26]MH_I2C_Read... [00:04:26]Read from MH i2c: E2 FD 00 5B 02 00 C6 04 85 04 C2 04 6E 04 04 00 3B 05 01 00 69 04 A3 00 6F 04 04 00 91 04 01 00 B1 04 05 00 9F 3C 57 1C 03 70 04 05 00 6C C8 17 C0 02 72 04 04 00 33 74 3F 5C 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 77 29 94 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 3C 44 0C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 C6 [00:04:26]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 3B 05 01 00 69 04 A3 00 6F 04 04 00 91 04 01 00 B1 04 05 00 9F 3C 57 1C 03 70 04 05 00 6C C8 17 C0 02 72 04 04 00 33 74 3F 5C 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 77 29 94 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 3C 44 0C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 [00:04:26]wFMCommunicate OK [00:04:26]wFMCommunicate request_size=4 [00:04:26]MH_SAM_APDU [00:04:26]CAPDU: 80 17 00 00 [00:04:26]Write to MH i2c: E2 08 00 5C 02 80 17 00 00 00 00 00 00 DE [00:04:26]Write i2c OK [00:04:26]MH_I2C_Read... [00:04:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:27]Read from MH i2c: E2 [00:04:27]MH_I2C_Read... [00:04:27]Read from MH i2c: E2 FD 00 [00:04:27]MH_I2C_Read... [00:04:27]Read from MH i2c: E2 FD 00 5C 02 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 19 [00:04:27]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [00:04:27]wFMCommunicate OK [00:04:27]wFMCommunicate request_size=4 [00:04:27]MH_SAM_APDU [00:04:27]CAPDU: 80 17 00 00 [00:04:27]Write to MH i2c: E2 08 00 5D 02 80 17 00 00 00 00 00 00 DF [00:04:27]Write i2c OK [00:04:27]MH_I2C_Read... [00:04:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:27]Read from MH i2c: E2 [00:04:27]MH_I2C_Read... [00:04:27]Read from MH i2c: E2 FD 00 [00:04:27]MH_I2C_Read... [00:04:27]Read from MH i2c: E2 FD 00 5D 02 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 06 [00:04:27]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [00:04:27]wFMCommunicate OK [00:04:27]wFMCommunicate request_size=4 [00:04:27]MH_SAM_APDU [00:04:27]CAPDU: 80 17 00 00 [00:04:27]Write to MH i2c: E2 08 00 5E 02 80 17 00 00 00 00 00 00 E0 [00:04:27]Write i2c OK [00:04:27]MH_I2C_Read... [00:04:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:27]Read from MH i2c: E2 [00:04:27]MH_I2C_Read... [00:04:27]Read from MH i2c: E2 FD 00 [00:04:27]MH_I2C_Read... [00:04:27]Read from MH i2c: E2 FD 00 5E 02 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 5B [00:04:27]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:04:27]wFMCommunicate OK [00:04:27]wFMCommunicate request_size=4 [00:04:27]MH_SAM_APDU [00:04:27]CAPDU: 80 17 00 00 [00:04:27]Write to MH i2c: E2 08 00 5F 02 80 17 00 00 00 00 00 00 E1 [00:04:27]Write i2c OK [00:04:27]MH_I2C_Read... [00:04:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [00:04:28]Read from MH i2c: E2 [00:04:28]MH_I2C_Read... [00:04:28]Read from MH i2c: E2 E3 00 [00:04:28]MH_I2C_Read... [00:04:28]Read from MH i2c: E2 E3 00 5F 02 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 C0 [00:04:28]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:04:28]wFMCommunicate OK [00:04:28]SAM_PROTO_GetFMData done [00:04:28]requested_item fm.sale_refund.total is exist - process it [00:04:28]requested_item fm.buy.total is exist - process it [00:04:28]requested_item shift.sale.total is exist - process it [00:04:28]SAM_PROTO_GetShiftData [00:04:28]wFMCommunicate request_size=4 [00:04:28]MH_SAM_APDU [00:04:28]CAPDU: 80 13 02 00 [00:04:28]Write to MH i2c: E2 08 00 60 02 80 13 02 00 00 00 00 00 E0 [00:04:28]Write i2c OK [00:04:28]MH_I2C_Read... [00:04:28]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:04:28]Read from MH i2c: E2 [00:04:28]MH_I2C_Read... [00:04:28]Read from MH i2c: E2 FD 00 [00:04:28]MH_I2C_Read... [00:04:28]Read from MH i2c: E2 FD 00 60 02 00 BA 04 AA 04 B6 04 6E 04 04 00 BB 00 00 00 69 04 9D 00 6F 04 04 00 B9 00 00 00 B1 04 04 00 49 5E 7B 01 70 04 03 00 C4 1C 97 72 04 03 00 85 41 E4 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 E6 4A 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 83 5B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 70 64 08 70 04 03 00 70 64 08 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 32 E4 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 AB [00:04:28]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 BB 00 00 00 69 04 9D 00 6F 04 04 00 B9 00 00 00 B1 04 04 00 49 5E 7B 01 70 04 03 00 C4 1C 97 72 04 03 00 85 41 E4 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 E6 4A 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 83 5B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 70 64 08 70 04 03 00 70 64 08 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 32 E4 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:04:28]wFMCommunicate OK [00:04:28]wFMCommunicate request_size=4 [00:04:28]MH_SAM_APDU [00:04:28]CAPDU: 80 17 00 00 [00:04:28]Write to MH i2c: E2 08 00 61 02 80 17 00 00 00 00 00 00 E3 [00:04:28]Write i2c OK [00:04:28]MH_I2C_Read... [00:04:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:29]Read from MH i2c: E2 [00:04:29]MH_I2C_Read... [00:04:29]Read from MH i2c: E2 FD 00 [00:04:29]MH_I2C_Read... [00:04:29]Read from MH i2c: E2 FD 00 61 02 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 04 13 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A4 [00:04:29]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 04 13 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:04:29]wFMCommunicate OK [00:04:29]wFMCommunicate request_size=4 [00:04:29]MH_SAM_APDU [00:04:29]CAPDU: 80 17 00 00 [00:04:29]Write to MH i2c: E2 08 00 62 02 80 17 00 00 00 00 00 00 E4 [00:04:29]Write i2c OK [00:04:29]MH_I2C_Read... [00:04:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:29]Read from MH i2c: E2 [00:04:29]MH_I2C_Read... [00:04:29]Read from MH i2c: E2 FD 00 [00:04:29]MH_I2C_Read... [00:04:29]Read from MH i2c: E2 FD 00 62 02 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 10 [00:04:29]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:04:29]wFMCommunicate OK [00:04:29]wFMCommunicate request_size=4 [00:04:29]MH_SAM_APDU [00:04:29]CAPDU: 80 17 00 00 [00:04:29]Write to MH i2c: E2 08 00 63 02 80 17 00 00 00 00 00 00 E5 [00:04:29]Write i2c OK [00:04:29]MH_I2C_Read... [00:04:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:29]Read from MH i2c: E2 [00:04:29]MH_I2C_Read... [00:04:29]Read from MH i2c: E2 FD 00 [00:04:29]MH_I2C_Read... [00:04:29]Read from MH i2c: E2 FD 00 63 02 00 00 EF 03 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 90 00 5D [00:04:29]RAPDU: 00 EF 03 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 90 00 [00:04:30]wFMCommunicate OK [00:04:30]wFMCommunicate request_size=4 [00:04:30]MH_SAM_APDU [00:04:30]CAPDU: 80 17 00 00 [00:04:30]Write to MH i2c: E2 08 00 64 02 80 17 00 00 00 00 00 00 E6 [00:04:30]Write i2c OK [00:04:30]MH_I2C_Read... [00:04:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [00:04:30]Read from MH i2c: E2 [00:04:30]MH_I2C_Read... [00:04:30]Read from MH i2c: E2 D7 00 [00:04:30]MH_I2C_Read... [00:04:30]Read from MH i2c: E2 D7 00 64 02 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 C9 [00:04:30]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:04:30]wFMCommunicate OK [00:04:30]SAM_PROTO_GetShiftData done [00:04:30]requested_item shift.sale.total_cash is exist - process it [00:04:30]requested_item shift.sale_refund.total is exist - process it [00:04:30]requested_item shift.sale_refund.total_cash is exist - process it [00:04:30]requested_item shift.buy.total is exist - process it [00:04:30]requested_item shift.buy.total_cash is exist - process it [00:04:30]produce_requested_data done [00:04:30]produce_requested_data return {"fm.sale.total":133603810.87,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":248622.81,"shift.sale.total_cash":99033.00,"shift.sale_refund.total":5500.00,"shift.sale_refund.total_cash":5500.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:04:30]process_action_free get_value [00:04:30]json_value_free [00:04:30]json_value_free done [00:04:30]process_json_proto returns [00:04:30]Send response to host [00:04:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133603810.87,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":248622.81,"shift.sale.total_cash":99033.00,"shift.sale_refund.total":5500.00,"shift.sale_refund.total_cash":5500.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:04:30]free response buf [00:04:30]execute_script done [00:04:30]execute_script returns [00:04:30]free content buf [00:04:30]Sock 9.Close socket [00:04:30]Sock 9.Thread stoped [00:04:30]accept exits with 7 [00:04:30]New connection [00:04:30]New thread 3067395428 created [00:04:30]Thread 3067538788 joined [00:04:30]Waiting for new connection... [00:04:30] Sock 7.Parse request [00:04:30]Sock 7.Check first char [00:04:30]Sock 7.First char is OK [00:04:30]request: POST /json_proto HTTP/1.0 [00:04:30]Method: POST [00:04:30]URL: /json_proto [00:04:30]Method is POST - this is cgi request [00:04:30]url: /json_proto [00:04:30]query_string will be loaded in cgi processing [00:04:30]execute_cgi json_proto POST (null) [00:04:30]execute_cgi path=json_proto method=POST [00:04:30]POST find Content-Length [00:04:30]Host: 172.17.41.195:8080 [00:04:30]Content-Length: 274 [00:04:30]Content-Type: application/json [00:04:30] [00:04:30]POST finish read [00:04:30]Found Content-Length = 274 [00:04:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:04:30]execute_script... [00:04:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:04:30]POST & json_proto [00:04:30]process_json_proto [00:04:30]json parsed OK: [00:04:30]protocol is kg_v1.0 [00:04:30]action value=x_report [00:04:30]process_action x_report [00:04:30]cmd_x_report [00:04:30]MH_GetDate [00:04:30]Write to MH i2c: F0 00 00 65 02 56 [00:04:30]Write i2c OK [00:04:30]MH_I2C_Read... [00:04:30]Read from MH i2c: F0 [00:04:30]MH_I2C_Read... [00:04:30]Read from MH i2c: F0 09 00 [00:04:30]MH_I2C_Read... [00:04:30]Read from MH i2c: F0 09 00 65 02 00 0F 9F 46 66 FC 21 6F 64 A9 [00:04:30]GetLastDocTimeStamp 1715903170 [00:04:30]current date 1715904271 [00:04:30]FM_GetShiftState [00:04:30]SAM_PROTO_GetShiftState [00:04:30]wFMCommunicate request_size=4 [00:04:30]MH_SAM_APDU [00:04:30]CAPDU: 80 13 01 00 [00:04:30]Write to MH i2c: E2 08 00 66 02 80 13 01 00 00 00 00 00 E5 [00:04:30]Write i2c OK [00:04:30]MH_I2C_Read... [00:04:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:04:30]Read from MH i2c: E2 [00:04:30]MH_I2C_Read... [00:04:30]Read from MH i2c: E2 0E 00 [00:04:30]MH_I2C_Read... [00:04:30]Read from MH i2c: E2 0E 00 66 02 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 91 [00:04:30]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [00:04:30]wFMCommunicate OK [00:04:30]SAM_PROTO_GetShiftState done [00:04:30]FM_GetShiftState done [00:04:30]KKMCreateXReportDocument [00:04:30]Load OK [00:04:30]Malloc new data [00:04:30]MH_GetDate [00:04:30]Write to MH i2c: F0 00 00 67 02 58 [00:04:30]Write i2c OK [00:04:30]MH_I2C_Read... [00:04:30]Read from MH i2c: F0 [00:04:30]MH_I2C_Read... [00:04:30]Read from MH i2c: F0 09 00 [00:04:30]MH_I2C_Read... [00:04:30]Read from MH i2c: F0 09 00 67 02 00 0F 9F 46 66 FC 21 6F 64 AB [00:04:30]Malloc new data [00:04:30]Malloc new data [00:04:30]wFMCommunicate request_size=4 [00:04:30]MH_SAM_APDU [00:04:30]CAPDU: 80 11 00 00 [00:04:30]Write to MH i2c: E2 08 00 68 02 80 11 00 00 00 00 00 00 E4 [00:04:30]Write i2c OK [00:04:30]MH_I2C_Read... [00:04:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:04:30]Read from MH i2c: E2 [00:04:30]MH_I2C_Read... [00:04:30]Read from MH i2c: E2 17 00 [00:04:30]MH_I2C_Read... [00:04:30]Read from MH i2c: E2 17 00 68 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3A [00:04:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [00:04:30]wFMCommunicate OK [00:04:30]SAM_PROTO_GetFieldsCounters [00:04:30]wFMCommunicate request_size=4 [00:04:30]MH_SAM_APDU [00:04:30]CAPDU: 80 13 00 00 [00:04:30]Write to MH i2c: E2 08 00 69 02 80 13 00 00 00 00 00 00 E7 [00:04:30]Write i2c OK [00:04:30]MH_I2C_Read... [00:04:30]OFD Sender: No OFD packet to send [00:04:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:04:30]Read from MH i2c: E2 [00:04:30]MH_I2C_Read... [00:04:30]Read from MH i2c: E2 62 00 [00:04:30]MH_I2C_Read... [00:04:30]Read from MH i2c: E2 62 00 69 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 05 08 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [00:04: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 05 08 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:04:30]wFMCommunicate OK [00:04:30]SAM_PROTO_GetFieldsCounters done [00:04:30]Malloc new data [00:04:30]Malloc new data [00:04:30]Malloc new data [00:04:30]KKMCreateXReportDocument OK [00:04:30]KKMSetXReportData OK [00:04:30]KKMPrepareXReportFMData [00:04:30]SAM_PROTO_GetShiftData [00:04:30]wFMCommunicate request_size=4 [00:04:30]MH_SAM_APDU [00:04:30]CAPDU: 80 13 02 00 [00:04:30]Write to MH i2c: E2 08 00 6A 02 80 13 02 00 00 00 00 00 EA [00:04:30]Write i2c OK [00:04:30]MH_I2C_Read... [00:04:31]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:04:31]Read from MH i2c: E2 [00:04:31]MH_I2C_Read... [00:04:31]Read from MH i2c: E2 FD 00 [00:04:31]MH_I2C_Read... [00:04:31]Read from MH i2c: E2 FD 00 6A 02 00 BA 04 AA 04 B6 04 6E 04 04 00 BB 00 00 00 69 04 9D 00 6F 04 04 00 B9 00 00 00 B1 04 04 00 49 5E 7B 01 70 04 03 00 C4 1C 97 72 04 03 00 85 41 E4 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 E6 4A 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 83 5B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 70 64 08 70 04 03 00 70 64 08 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 32 E4 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 B5 [00:04:31]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 BB 00 00 00 69 04 9D 00 6F 04 04 00 B9 00 00 00 B1 04 04 00 49 5E 7B 01 70 04 03 00 C4 1C 97 72 04 03 00 85 41 E4 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 E6 4A 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 83 5B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 70 64 08 70 04 03 00 70 64 08 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 32 E4 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:04:31]wFMCommunicate OK [00:04:31]wFMCommunicate request_size=4 [00:04:31]MH_SAM_APDU [00:04:31]CAPDU: 80 17 00 00 [00:04:31]Write to MH i2c: E2 08 00 6B 02 80 17 00 00 00 00 00 00 ED [00:04:31]Write i2c OK [00:04:31]MH_I2C_Read... [00:04:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:31]Read from MH i2c: E2 [00:04:31]MH_I2C_Read... [00:04:31]Read from MH i2c: E2 FD 00 [00:04:31]MH_I2C_Read... [00:04:31]Read from MH i2c: E2 FD 00 6B 02 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 04 13 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AE [00:04:31]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 04 13 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:04:31]wFMCommunicate OK [00:04:31]wFMCommunicate request_size=4 [00:04:31]MH_SAM_APDU [00:04:31]CAPDU: 80 17 00 00 [00:04:31]Write to MH i2c: E2 08 00 6C 02 80 17 00 00 00 00 00 00 EE [00:04:31]Write i2c OK [00:04:31]MH_I2C_Read... [00:04:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:32]Read from MH i2c: E2 [00:04:32]MH_I2C_Read... [00:04:32]Read from MH i2c: E2 FD 00 [00:04:32]MH_I2C_Read... [00:04:32]Read from MH i2c: E2 FD 00 6C 02 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1A [00:04:32]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:04:32]wFMCommunicate OK [00:04:32]wFMCommunicate request_size=4 [00:04:32]MH_SAM_APDU [00:04:32]CAPDU: 80 17 00 00 [00:04:32]Write to MH i2c: E2 08 00 6D 02 80 17 00 00 00 00 00 00 EF [00:04:32]Write i2c OK [00:04:32]MH_I2C_Read... [00:04:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:32]Read from MH i2c: E2 [00:04:32]MH_I2C_Read... [00:04:32]Read from MH i2c: E2 FD 00 [00:04:32]MH_I2C_Read... [00:04:32]Read from MH i2c: E2 FD 00 6D 02 00 00 EF 03 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 90 00 67 [00:04:32]RAPDU: 00 EF 03 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 90 00 [00:04:32]wFMCommunicate OK [00:04:32]wFMCommunicate request_size=4 [00:04:32]MH_SAM_APDU [00:04:32]CAPDU: 80 17 00 00 [00:04:32]Write to MH i2c: E2 08 00 6E 02 80 17 00 00 00 00 00 00 F0 [00:04:32]Write i2c OK [00:04:32]MH_I2C_Read... [00:04:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [00:04:33]Read from MH i2c: E2 [00:04:33]MH_I2C_Read... [00:04:33]Read from MH i2c: E2 D7 00 [00:04:33]MH_I2C_Read... [00:04:33]Read from MH i2c: E2 D7 00 6E 02 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D3 [00:04:33]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:04:33]wFMCommunicate OK [00:04:33]SAM_PROTO_GetShiftData done [00:04:33]1194 (1206) - счетчики итогов смены [00:04:33] 1134 (4) - 187 - количество чеков со всеми признаками расчетов [00:04:33] 1129 (157) - счетчики операций «приход» [00:04:33] 1135 (4) - 185 - количество чеков по признаку расчетов [00:04:33] 1201 (4) - 248622.81 - общая итоговая сумма в чеках [00:04:33] 1136 (3) - 99033.00 - итоговая сумма в чеках наличными [00:04:33] 1138 (3) - 149589.81 - итоговая сумма в чеках безналичными [00:04:33] 1024 (123) - суммы налогов [00:04:33] 1006 (9) - суммы НДС [00:04:33] 1010 (1) - 0% - код ставки НДС [00:04:33] 1011 (0) - 0.00 - сумма НДС по ставке [00:04:33] 1006 (12) - суммы НДС [00:04:33] 1010 (1) - 12% - код ставки НДС [00:04:33] 1011 (3) - 26406.14 - сумма НДС по ставке [00:04:33] 1007 (9) - суммы НСП [00:04:33] 1014 (1) - 0% - код ставки НСП [00:04:33] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:33] 1007 (12) - суммы НСП [00:04:33] 1014 (1) - 1% - код ставки НСП [00:04:33] 1015 (3) - 2200.35 - сумма НСП по ставке [00:04:33] 1007 (9) - суммы НСП [00:04:33] 1014 (1) - 2% - код ставки НСП [00:04:33] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:33] 1007 (9) - суммы НСП [00:04:33] 1014 (1) - 3% - код ставки НСП [00:04:33] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:33] 1007 (9) - суммы НСП [00:04:33] 1014 (1) - 5% - код ставки НСП [00:04:33] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:33] 1007 (9) - суммы НСП [00:04:33] 1014 (1) - 0,50% - код ставки НСП [00:04:33] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:33] 1007 (9) - суммы НСП [00:04:33] 1014 (1) - 1,50% - код ставки НСП [00:04:33] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:33] 1130 (151) - счетчики операций «возврат прихода» [00:04:33] 1135 (4) - 2 - количество чеков по признаку расчетов [00:04:33] 1201 (3) - 5500.00 - общая итоговая сумма в чеках [00:04:33] 1136 (3) - 5500.00 - итоговая сумма в чеках наличными [00:04:33] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:04:33] 1024 (121) - суммы налогов [00:04:33] 1006 (9) - суммы НДС [00:04:33] 1010 (1) - 0% - код ставки НДС [00:04:33] 1011 (0) - 0.00 - сумма НДС по ставке [00:04:33] 1006 (11) - суммы НДС [00:04:33] 1010 (1) - 12% - код ставки НДС [00:04:33] 1011 (2) - 584.18 - сумма НДС по ставке [00:04:33] 1007 (9) - суммы НСП [00:04:33] 1014 (1) - 0% - код ставки НСП [00:04:33] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:33] 1007 (11) - суммы НСП [00:04:33] 1014 (1) - 1% - код ставки НСП [00:04:33] 1015 (2) - 48.68 - сумма НСП по ставке [00:04:33] 1007 (9) - суммы НСП [00:04:33] 1014 (1) - 2% - код ставки НСП [00:04:33] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:33] 1007 (9) - суммы НСП [00:04:33] 1014 (1) - 3% - код ставки НСП [00:04:33] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:33] 1007 (9) - суммы НСП [00:04:33] 1014 (1) - 5% - код ставки НСП [00:04:33] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:33] 1007 (9) - суммы НСП [00:04:33] 1014 (1) - 0,50% - код ставки НСП [00:04:33] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:33] 1007 (9) - суммы НСП [00:04:33] 1014 (1) - 1,50% - код ставки НСП [00:04:33] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:33] 1131 (141) - счетчики операций «расход» [00:04:33] 1135 (4) - 0 - количество чеков по признаку расчетов [00:04:33] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:04:33] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:04:33] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:04:33] 1024 (117) - суммы налогов [00:04:33] 1006 (9) - суммы НДС [00:04:33] 1010 (1) - 0% - код ставки НДС [00:04:33] 1011 (0) - 0.00 - сумма НДС по ставке [00:04:33] 1006 (9) - суммы НДС [00:04:33] 1010 (1) - 12% - код ставки НДС [00:04:33] 1011 (0) - 0.00 - сумма НДС по ставке [00:04:33] 1007 (9) - суммы НСП [00:04:33] 1014 (1) - 0% - код ставки НСП [00:04:33] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:33] 1007 (9) - суммы НСП [00:04:33] 1014 (1) - 1% - код ставки НСП [00:04:33] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:33] 1007 (9) - суммы НСП [00:04:33] 1014 (1) - 2% - код ставки НСП [00:04:33] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:33] 1007 (9) - суммы НСП [00:04:33] 1014 (1) - 3% - код ставки НСП [00:04:33] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:33] 1007 (9) - суммы НСП [00:04:33] 1014 (1) - 5% - код ставки НСП [00:04:33] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:33] 1007 (9) - суммы НСП [00:04:33] 1014 (1) - 0,50% - код ставки НСП [00:04:33] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:33] 1007 (9) - суммы НСП [00:04:33] 1014 (1) - 1,50% - код ставки НСП [00:04:33] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:33] 1132 (141) - счетчики операций «возврат расхода» [00:04:33] 1135 (4) - 0 - количество чеков по признаку расчетов [00:04:33] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:04:33] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:04:33] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:04:33] 1024 (117) - суммы налогов [00:04:33] 1006 (9) - суммы НДС [00:04:33] 1010 (1) - 0% - код ставки НДС [00:04:33] 1011 (0) - 0.00 - сумма НДС по ставке [00:04:33] 1006 (9) - суммы НДС [00:04:33] 1010 (1) - 12% - код ставки НДС [00:04:33] 1011 (0) - 0.00 - сумма НДС по ставке [00:04:33] 1007 (9) - суммы НСП [00:04:33] 1014 (1) - 0% - код ставки НСП [00:04:33] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:33] 1007 (9) - суммы НСП [00:04:33] 1014 (1) - 1% - код ставки НСП [00:04:33] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:33] 1007 (9) - суммы НСП [00:04:33] 1014 (1) - 2% - код ставки НСП [00:04:33] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:33] 1007 (9) - суммы НСП [00:04:33] 1014 (1) - 3% - код ставки НСП [00:04:33] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:33] 1007 (9) - суммы НСП [00:04:33] 1014 (1) - 5% - код ставки НСП [00:04:33] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:33] 1007 (9) - суммы НСП [00:04:33] 1014 (1) - 0,50% - код ставки НСП [00:04:33] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:33] 1007 (9) - суммы НСП [00:04:33] 1014 (1) - 1,50% - код ставки НСП [00:04:33] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:33] 1133 (588) - - счетчики коррекции - не используются [00:04:33]SetTLVBufToDocument [00:04:33]Processing tag 1194 (04AA) [00:04:33]Load OK [00:04:33]SetTLVBufToDocument [00:04:33]Processing tag 1134 (046E) [00:04:33]Malloc new data [00:04:33]Processing tag 1129 (0469) [00:04:33]Load OK [00:04:33]SetTLVBufToDocument [00:04:33]Processing tag 1135 (046F) [00:04:33]Malloc new data [00:04:33]Processing tag 1201 (04B1) [00:04:33]Malloc new data [00:04:33]Processing tag 1136 (0470) [00:04:33]Malloc new data [00:04:33]Processing tag 1138 (0472) [00:04:33]Malloc new data [00:04:33]Processing tag 1024 (0400) [00:04:33]Load OK [00:04:33]SetTLVBufToDocument [00:04:33]Processing tag 1006 (03EE) [00:04:33]Load OK [00:04:33]SetTLVBufToDocument [00:04:33]Processing tag 1010 (03F2) [00:04:33]Malloc new data [00:04:33]Processing tag 1011 (03F3) [00:04:33]Malloc new data [00:04:33]SetTLVBufToDocument err=0 [00:04:33]Processing tag 1006 (03EE) [00:04:33]Load OK [00:04:33]SetTLVBufToDocument [00:04:33]Processing tag 1010 (03F2) [00:04:33]Malloc new data [00:04:33]Processing tag 1011 (03F3) [00:04:33]Malloc new data [00:04:33]SetTLVBufToDocument err=0 [00:04:33]Processing tag 1007 (03EF) [00:04:33]Load OK [00:04:33]SetTLVBufToDocument [00:04:33]Processing tag 1014 (03F6) [00:04:33]Malloc new data [00:04:33]Processing tag 1015 (03F7) [00:04:33]Malloc new data [00:04:33]SetTLVBufToDocument err=0 [00:04:33]Processing tag 1007 (03EF) [00:04:33]Load OK [00:04:33]SetTLVBufToDocument [00:04:33]Processing tag 1014 (03F6) [00:04:33]Malloc new data [00:04:33]Processing tag 1015 (03F7) [00:04:33]Malloc new data [00:04:33]SetTLVBufToDocument err=0 [00:04:33]Processing tag 1007 (03EF) [00:04:33]Load OK [00:04:33]SetTLVBufToDocument [00:04:33]Processing tag 1014 (03F6) [00:04:33]Malloc new data [00:04:33]Processing tag 1015 (03F7) [00:04:33]Malloc new data [00:04:33]SetTLVBufToDocument err=0 [00:04:33]Processing tag 1007 (03EF) [00:04:33]Load OK [00:04:33]SetTLVBufToDocument [00:04:33]Processing tag 1014 (03F6) [00:04:33]Malloc new data [00:04:33]Processing tag 1015 (03F7) [00:04:33]Malloc new data [00:04:33]SetTLVBufToDocument err=0 [00:04:33]Processing tag 1007 (03EF) [00:04:33]Load OK [00:04:33]SetTLVBufToDocument [00:04:33]Processing tag 1014 (03F6) [00:04:33]Malloc new data [00:04:33]Processing tag 1015 (03F7) [00:04:33]Malloc new data [00:04:33]SetTLVBufToDocument err=0 [00:04:33]Processing tag 1007 (03EF) [00:04:33]Load OK [00:04:33]SetTLVBufToDocument [00:04:33]Processing tag 1014 (03F6) [00:04:33]Malloc new data [00:04:33]Processing tag 1015 (03F7) [00:04:33]Malloc new data [00:04:33]SetTLVBufToDocument err=0 [00:04:33]Processing tag 1007 (03EF) [00:04:33]Load OK [00:04:33]SetTLVBufToDocument [00:04:33]Processing tag 1014 (03F6) [00:04:33]Malloc new data [00:04:33]Processing tag 1015 (03F7) [00:04:33]Malloc new data [00:04:33]SetTLVBufToDocument err=0 [00:04:33]SetTLVBufToDocument err=0 [00:04:33]SetTLVBufToDocument err=0 [00:04:33]Processing tag 1130 (046A) [00:04:33]Load OK [00:04:33]SetTLVBufToDocument [00:04:33]Processing tag 1135 (046F) [00:04:33]Malloc new data [00:04:33]Processing tag 1201 (04B1) [00:04:33]Malloc new data [00:04:33]Processing tag 1136 (0470) [00:04:33]Malloc new data [00:04:33]Processing tag 1138 (0472) [00:04:33]Malloc new data [00:04:33]Processing tag 1024 (0400) [00:04:33]Load OK [00:04:33]SetTLVBufToDocument [00:04:33]Processing tag 1006 (03EE) [00:04:33]Load OK [00:04:33]SetTLVBufToDocument [00:04:33]Processing tag 1010 (03F2) [00:04:33]Malloc new data [00:04:33]Processing tag 1011 (03F3) [00:04:33]Malloc new data [00:04:33]SetTLVBufToDocument err=0 [00:04:33]Processing tag 1006 (03EE) [00:04:33]Load OK [00:04:33]SetTLVBufToDocument [00:04:33]Processing tag 1010 (03F2) [00:04:33]Malloc new data [00:04:33]Processing tag 1011 (03F3) [00:04:33]Malloc new data [00:04:33]SetTLVBufToDocument err=0 [00:04:33]Processing tag 1007 (03EF) [00:04:33]Load OK [00:04:33]SetTLVBufToDocument [00:04:33]Processing tag 1014 (03F6) [00:04:33]Malloc new data [00:04:33]Processing tag 1015 (03F7) [00:04:33]Malloc new data [00:04:33]SetTLVBufToDocument err=0 [00:04:33]Processing tag 1007 (03EF) [00:04:33]Load OK [00:04:33]SetTLVBufToDocument [00:04:33]Processing tag 1014 (03F6) [00:04:33]Malloc new data [00:04:33]Processing tag 1015 (03F7) [00:04:33]Malloc new data [00:04:33]SetTLVBufToDocument err=0 [00:04:33]Processing tag 1007 (03EF) [00:04:33]Load OK [00:04:33]SetTLVBufToDocument [00:04:33]Processing tag 1014 (03F6) [00:04:33]Malloc new data [00:04:33]Processing tag 1015 (03F7) [00:04:33]Malloc new data [00:04:33]SetTLVBufToDocument err=0 [00:04:33]Processing tag 1007 (03EF) [00:04:33]Load OK [00:04:33]SetTLVBufToDocument [00:04:33]Processing tag 1014 (03F6) [00:04:33]Malloc new data [00:04:33]Processing tag 1015 (03F7) [00:04:33]Malloc new data [00:04:33]SetTLVBufToDocument err=0 [00:04:33]Processing tag 1007 (03EF) [00:04:33]Load OK [00:04:33]SetTLVBufToDocument [00:04:33]Processing tag 1014 (03F6) [00:04:33]Malloc new data [00:04:33]Processing tag 1015 (03F7) [00:04:33]Malloc new data [00:04:33]SetTLVBufToDocument err=0 [00:04:33]Processing tag 1007 (03EF) [00:04:33]Load OK [00:04:33]SetTLVBufToDocument [00:04:33]Processing tag 1014 (03F6) [00:04:33]Malloc new data [00:04:33]Processing tag 1015 (03F7) [00:04:33]Malloc new data [00:04:33]SetTLVBufToDocument err=0 [00:04:33]Processing tag 1007 (03EF) [00:04:33]Load OK [00:04:33]SetTLVBufToDocument [00:04:33]Processing tag 1014 (03F6) [00:04:33]Malloc new data [00:04:33]Processing tag 1015 (03F7) [00:04:33]Malloc new data [00:04:33]SetTLVBufToDocument err=0 [00:04:33]SetTLVBufToDocument err=0 [00:04:33]SetTLVBufToDocument err=0 [00:04:33]Processing tag 1131 (046B) [00:04:33]Load OK [00:04:33]SetTLVBufToDocument [00:04:33]Processing tag 1135 (046F) [00:04:33]Malloc new data [00:04:33]Processing tag 1201 (04B1) [00:04:33]Malloc new data [00:04:33]Processing tag 1136 (0470) [00:04:33]Malloc new data [00:04:33]Processing tag 1138 (0472) [00:04:33]Malloc new data [00:04:33]Processing tag 1024 (0400) [00:04:33]Load OK [00:04:33]SetTLVBufToDocument [00:04:33]Processing tag 1006 (03EE) [00:04:33]Load OK [00:04:33]SetTLVBufToDocument [00:04:33]Processing tag 1010 (03F2) [00:04:33]Malloc new data [00:04:33]Processing tag 1011 (03F3) [00:04:33]Malloc new data [00:04:33]SetTLVBufToDocument err=0 [00:04:33]Processing tag 1006 (03EE) [00:04:33]Load OK [00:04:33]SetTLVBufToDocument [00:04:33]Processing tag 1010 (03F2) [00:04:33]Malloc new data [00:04:33]Processing tag 1011 (03F3) [00:04:33]Malloc new data [00:04:33]SetTLVBufToDocument err=0 [00:04:33]Processing tag 1007 (03EF) [00:04:33]Load OK [00:04:33]SetTLVBufToDocument [00:04:33]Processing tag 1014 (03F6) [00:04:33]Malloc new data [00:04:33]Processing tag 1015 (03F7) [00:04:33]Malloc new data [00:04:33]SetTLVBufToDocument err=0 [00:04:33]Processing tag 1007 (03EF) [00:04:33]Load OK [00:04:33]SetTLVBufToDocument [00:04:33]Processing tag 1014 (03F6) [00:04:33]Malloc new data [00:04:33]Processing tag 1015 (03F7) [00:04:33]Malloc new data [00:04:33]SetTLVBufToDocument err=0 [00:04:33]Processing tag 1007 (03EF) [00:04:33]Load OK [00:04:33]SetTLVBufToDocument [00:04:33]Processing tag 1014 (03F6) [00:04:33]Malloc new data [00:04:33]Processing tag 1015 (03F7) [00:04:33]Malloc new data [00:04:33]SetTLVBufToDocument err=0 [00:04:33]Processing tag 1007 (03EF) [00:04:33]Load OK [00:04:33]SetTLVBufToDocument [00:04:33]Processing tag 1014 (03F6) [00:04:34]Malloc new data [00:04:34]Processing tag 1015 (03F7) [00:04:34]Malloc new data [00:04:34]SetTLVBufToDocument err=0 [00:04:34]Processing tag 1007 (03EF) [00:04:34]Load OK [00:04:34]SetTLVBufToDocument [00:04:34]Processing tag 1014 (03F6) [00:04:34]Malloc new data [00:04:34]Processing tag 1015 (03F7) [00:04:34]Malloc new data [00:04:34]SetTLVBufToDocument err=0 [00:04:34]Processing tag 1007 (03EF) [00:04:34]Load OK [00:04:34]SetTLVBufToDocument [00:04:34]Processing tag 1014 (03F6) [00:04:34]Malloc new data [00:04:34]Processing tag 1015 (03F7) [00:04:34]Malloc new data [00:04:34]SetTLVBufToDocument err=0 [00:04:34]Processing tag 1007 (03EF) [00:04:34]Load OK [00:04:34]SetTLVBufToDocument [00:04:34]Processing tag 1014 (03F6) [00:04:34]Malloc new data [00:04:34]Processing tag 1015 (03F7) [00:04:34]Malloc new data [00:04:34]SetTLVBufToDocument err=0 [00:04:34]SetTLVBufToDocument err=0 [00:04:34]SetTLVBufToDocument err=0 [00:04:34]Processing tag 1132 (046C) [00:04:34]Load OK [00:04:34]SetTLVBufToDocument [00:04:34]Processing tag 1135 (046F) [00:04:34]Malloc new data [00:04:34]Processing tag 1201 (04B1) [00:04:34]Malloc new data [00:04:34]Processing tag 1136 (0470) [00:04:34]Malloc new data [00:04:34]Processing tag 1138 (0472) [00:04:34]Malloc new data [00:04:34]Processing tag 1024 (0400) [00:04:34]Load OK [00:04:34]SetTLVBufToDocument [00:04:34]Processing tag 1006 (03EE) [00:04:34]Load OK [00:04:34]SetTLVBufToDocument [00:04:34]Processing tag 1010 (03F2) [00:04:34]Malloc new data [00:04:34]Processing tag 1011 (03F3) [00:04:34]Malloc new data [00:04:34]SetTLVBufToDocument err=0 [00:04:34]Processing tag 1006 (03EE) [00:04:34]Load OK [00:04:34]SetTLVBufToDocument [00:04:34]Processing tag 1010 (03F2) [00:04:34]Malloc new data [00:04:34]Processing tag 1011 (03F3) [00:04:34]Malloc new data [00:04:34]SetTLVBufToDocument err=0 [00:04:34]Processing tag 1007 (03EF) [00:04:34]Load OK [00:04:34]SetTLVBufToDocument [00:04:34]Processing tag 1014 (03F6) [00:04:34]Malloc new data [00:04:34]Processing tag 1015 (03F7) [00:04:34]Malloc new data [00:04:34]SetTLVBufToDocument err=0 [00:04:34]Processing tag 1007 (03EF) [00:04:34]Load OK [00:04:34]SetTLVBufToDocument [00:04:34]Processing tag 1014 (03F6) [00:04:34]Malloc new data [00:04:34]Processing tag 1015 (03F7) [00:04:34]Malloc new data [00:04:34]SetTLVBufToDocument err=0 [00:04:34]Processing tag 1007 (03EF) [00:04:34]Load OK [00:04:34]SetTLVBufToDocument [00:04:34]Processing tag 1014 (03F6) [00:04:34]Malloc new data [00:04:34]Processing tag 1015 (03F7) [00:04:34]Malloc new data [00:04:34]SetTLVBufToDocument err=0 [00:04:34]Processing tag 1007 (03EF) [00:04:34]Load OK [00:04:34]SetTLVBufToDocument [00:04:34]Processing tag 1014 (03F6) [00:04:34]Malloc new data [00:04:34]Processing tag 1015 (03F7) [00:04:34]Malloc new data [00:04:34]SetTLVBufToDocument err=0 [00:04:34]Processing tag 1007 (03EF) [00:04:34]Load OK [00:04:34]SetTLVBufToDocument [00:04:34]Processing tag 1014 (03F6) [00:04:34]Malloc new data [00:04:34]Processing tag 1015 (03F7) [00:04:34]Malloc new data [00:04:34]SetTLVBufToDocument err=0 [00:04:34]Processing tag 1007 (03EF) [00:04:34]Load OK [00:04:34]SetTLVBufToDocument [00:04:34]Processing tag 1014 (03F6) [00:04:34]Malloc new data [00:04:34]Processing tag 1015 (03F7) [00:04:34]Malloc new data [00:04:34]SetTLVBufToDocument err=0 [00:04:34]Processing tag 1007 (03EF) [00:04:34]Load OK [00:04:34]SetTLVBufToDocument [00:04:34]Processing tag 1014 (03F6) [00:04:34]Malloc new data [00:04:34]Processing tag 1015 (03F7) [00:04:34]Malloc new data [00:04:34]SetTLVBufToDocument err=0 [00:04:34]SetTLVBufToDocument err=0 [00:04:34]SetTLVBufToDocument err=0 [00:04:34]Processing tag 1133 (046D) [00:04:34]Malloc new data [00:04:34]SetTLVBufToDocument err=0 [00:04:34]SetTLVBufToDocument err=0 [00:04:34]Malloc new data [00:04:34]SAM_PROTO_GetFMData [00:04:34]wFMCommunicate request_size=4 [00:04:34]MH_SAM_APDU [00:04:34]CAPDU: 80 13 03 00 [00:04:34]Write to MH i2c: E2 08 00 6F 02 80 13 03 00 00 00 00 00 F0 [00:04:34]Write i2c OK [00:04:34]MH_I2C_Read... [00:04:34]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:04:34]Read from MH i2c: E2 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: E2 FD 00 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: E2 FD 00 6F 02 00 C6 04 85 04 C2 04 6E 04 04 00 3B 05 01 00 69 04 A3 00 6F 04 04 00 91 04 01 00 B1 04 05 00 9F 3C 57 1C 03 70 04 05 00 6C C8 17 C0 02 72 04 04 00 33 74 3F 5C 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 77 29 94 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 3C 44 0C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 DA [00:04:34]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 3B 05 01 00 69 04 A3 00 6F 04 04 00 91 04 01 00 B1 04 05 00 9F 3C 57 1C 03 70 04 05 00 6C C8 17 C0 02 72 04 04 00 33 74 3F 5C 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 77 29 94 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 3C 44 0C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 [00:04:35]wFMCommunicate OK [00:04:35]wFMCommunicate request_size=4 [00:04:35]MH_SAM_APDU [00:04:35]CAPDU: 80 17 00 00 [00:04:35]Write to MH i2c: E2 08 00 70 02 80 17 00 00 00 00 00 00 F2 [00:04:35]Write i2c OK [00:04:35]MH_I2C_Read... [00:04:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:35]Read from MH i2c: E2 [00:04:35]MH_I2C_Read... [00:04:35]Read from MH i2c: E2 FD 00 [00:04:35]MH_I2C_Read... [00:04:35]Read from MH i2c: E2 FD 00 70 02 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 2D [00:04:35]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [00:04:35]wFMCommunicate OK [00:04:35]wFMCommunicate request_size=4 [00:04:35]MH_SAM_APDU [00:04:35]CAPDU: 80 17 00 00 [00:04:35]Write to MH i2c: E2 08 00 71 02 80 17 00 00 00 00 00 00 F3 [00:04:35]Write i2c OK [00:04:35]MH_I2C_Read... [00:04:35]OFD Sender: No OFD packet to send [00:04:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:35]Read from MH i2c: E2 [00:04:35]MH_I2C_Read... [00:04:35]Read from MH i2c: E2 FD 00 [00:04:35]MH_I2C_Read... [00:04:35]Read from MH i2c: E2 FD 00 71 02 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 1A [00:04:35]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [00:04:36]wFMCommunicate OK [00:04:36]wFMCommunicate request_size=4 [00:04:36]MH_SAM_APDU [00:04:36]CAPDU: 80 17 00 00 [00:04:36]Write to MH i2c: E2 08 00 72 02 80 17 00 00 00 00 00 00 F4 [00:04:36]Write i2c OK [00:04:36]MH_I2C_Read... [00:04:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:36]Read from MH i2c: E2 [00:04:36]MH_I2C_Read... [00:04:36]Read from MH i2c: E2 FD 00 [00:04:36]MH_I2C_Read... [00:04:36]Read from MH i2c: E2 FD 00 72 02 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 6F [00:04:36]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:04:36]wFMCommunicate OK [00:04:36]wFMCommunicate request_size=4 [00:04:36]MH_SAM_APDU [00:04:36]CAPDU: 80 17 00 00 [00:04:36]Write to MH i2c: E2 08 00 73 02 80 17 00 00 00 00 00 00 F5 [00:04:36]Write i2c OK [00:04:36]MH_I2C_Read... [00:04:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [00:04:36]Read from MH i2c: E2 [00:04:36]MH_I2C_Read... [00:04:36]Read from MH i2c: E2 E3 00 [00:04:36]MH_I2C_Read... [00:04:36]Read from MH i2c: E2 E3 00 73 02 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D4 [00:04:37]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:04:37]wFMCommunicate OK [00:04:37]SAM_PROTO_GetFMData done [00:04:37]FM_GetFMData:85 04 C2 04 6E 04 04 00 3B 05 01 00 69 04 A3 00 6F 04 04 00 91 04 01 00 B1 04 05 00 9F 3C 57 1C 03 70 04 05 00 6C C8 17 C0 02 72 04 04 00 33 74 3F 5C 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 77 29 94 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 3C 44 0C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 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 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:04:37]oper:6F 04 04 00 91 04 01 00 B1 04 05 00 9F 3C 57 1C 03 70 04 05 00 6C C8 17 C0 02 72 04 04 00 33 74 3F 5C 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 77 29 94 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 3C 44 0C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:04:38]total:9F 3C 57 1C 03 [00:04:38]Malloc new data [00:04:38]oper:6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 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 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:04:38]total:00 23 C3 DC [00:04:38]Malloc new data [00:04:38]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:04:38]total: [00:04:38]Malloc new data [00:04:38]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:04:38]total: [00:04:38]Malloc new data [00:04:38]KKMPrepareXReportFMData err=0 [00:04:38]Х отчет ИНН: 02508201610067 Кассир: Пайзулдаева А. 17.05.2024 00:04 Смена: 266 РНМ: 0000000000091845 ЗНМ: 0300000119 СНО: Общий режим Всего чеков: 187 ИТОГИ ПРИХОД Чеков: 185 Общий итог: 248622.81 Итого наличными: 99033.00 Итого безнал.: 149589.81 НДС 0% : 0.00 НДС 12% : 26406.14 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2200.35 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 2 Общий итог: 5500.00 Итого наличными: 5500.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 584.18 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 48.68 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 93533.00 НС Приход: 133603810.87 НС Возвр.Прихода: 37037760.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871829 [00:04:38]StoreToDocumentArchive [00:04:38]MH_GetDate [00:04:38]Write to MH i2c: F0 00 00 74 02 65 [00:04:38]Write i2c OK [00:04:38]MH_I2C_Read... [00:04:38]Read from MH i2c: F0 [00:04:38]MH_I2C_Read... [00:04:38]Read from MH i2c: F0 09 00 [00:04:38]MH_I2C_Read... [00:04:38]Read from MH i2c: F0 09 00 74 02 00 16 9F 46 66 FC 21 6F 64 BF [00:04:38]shift 266 fd 1715904278 [00:04:38]Create dir for shift 0266 [00:04:38]save to /storage/0266/doc_1715904278 [00:04:38]save last doc name /storage/0266/doc_1715904278 to /storage/kkm_last_doc_name [00:04:38]save OK [00:04:38]Clear old archive folders... [00:04:38]NVStorageSaveData kkm_last_timestamp [00:04:38]File name is /storage/kkm_last_timestamp [00:04:38]Write 4 bytes [00:04:38]NVStorageSaveData done [00:04:38]ExternCall_PrintAddStr [00:04:38]wPrintStart [00:04:38]Write to MH i2c: 01 00 00 75 02 77 [00:04:38]Write i2c OK [00:04:38]MH_I2C_Read... [00:04:38]Read from MH i2c: 01 [00:04:38]MH_I2C_Read... [00:04:38]Read from MH i2c: 01 07 00 [00:04:38]MH_I2C_Read... [00:04:38]Read from MH i2c: 01 07 00 75 02 00 00 00 00 00 FF 0F 8C [00:04:38]RasterBufferAndPrint [00:04:38]line Х отчет [00:04:38]line ИНН: 02508201610067 [00:04:38]line Кассир: Пайзулдаева А. [00:04:38]line 17.05.2024 00:04 [00:04:38]line Смена: 266 [00:04:38]line РНМ: 0000000000091845 [00:04:38]line ЗНМ: 0300000119 [00:04:38]line СНО: Общий режим [00:04:38]line Всего чеков: 187 [00:04:38]line ИТОГИ ПРИХОД [00:04:38]line Чеков: 185 [00:04:38]line Общий итог: 248622.81 [00:04:38]line Итого наличными: 99033.00 [00:04:38]line Итого безнал.: 149589.81 [00:04:38]line НДС 0% : 0.00 [00:04:38]line НДС 12% : 26406.14 [00:04:38]line НСП 0% : 0.00 [00:04:38]line НСП 1,50% : 0.00 [00:04:38]line НСП 0,50% : 0.00 [00:04:38]line НСП 5% : 0.00 [00:04:38]line НСП 3% : 0.00 [00:04:38]line НСП 2% : 0.00 [00:04:38]line НСП 1% : 2200.35 [00:04:38]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:04:38]line Чеков: 2 [00:04:38]line Общий итог: 5500.00 [00:04:38]line Итого наличными: 5500.00 [00:04:38]line Итого безнал.: 0.00 [00:04:38]line НДС 0% : 0.00 [00:04:38]line НДС 12% : 584.18 [00:04:38]line НСП 0% : 0.00 [00:04:38]line НСП 1,50% : 0.00 [00:04:38]line НСП 0,50% : 0.00 [00:04:38]line НСП 5% : 0.00 [00:04:38]line НСП 3% : 0.00 [00:04:38]line НСП 2% : 0.00 [00:04:38]line НСП 1% : 48.68 [00:04:38]line ИТОГИ РАСХОД [00:04:38]line Чеков: 0 [00:04:38]line Общий итог: 0.00 [00:04:38]line Итого наличными: 0.00 [00:04:38]line Итого безнал.: 0.00 [00:04:38]line НДС 0% : 0.00 [00:04:38]line НДС 12% : 0.00 [00:04:38]line НСП 0% : 0.00 [00:04:38]line НСП 1,50% : 0.00 [00:04:38]line НСП 0,50% : 0.00 [00:04:38]line НСП 5% : 0.00 [00:04:38]line НСП 3% : 0.00 [00:04:38]line НСП 2% : 0.00 [00:04:38]line НСП 1% : 0.00 [00:04:38]line ИТОГИ ВОЗВРАТ РАСХОДА [00:04:38]line Чеков: 0 [00:04:38]line Общий итог: 0.00 [00:04:38]line Итого наличными: 0.00 [00:04:38]line Итого безнал.: 0.00 [00:04:38]line НДС 0% : 0.00 [00:04:38]line НДС 12% : 0.00 [00:04:38]line НСП 0% : 0.00 [00:04:38]line НСП 1,50% : 0.00 [00:04:38]line НСП 0,50% : 0.00 [00:04:38]line НСП 5% : 0.00 [00:04:38]line НСП 3% : 0.00 [00:04:38]line НСП 2% : 0.00 [00:04:38]line НСП 1% : 0.00 [00:04:38]line Сумма внесений: 0.00 [00:04:38]line Сумма выплат: 0.00 [00:04:38]line Нал. в кассе: 93533.00 [00:04:38]line НС Приход: 133603810.87 [00:04:38]line НС Возвр.Прихода: 37037760.00 [00:04:38]line НС Расход: 0.00 [00:04:38]line НС Возвр.Расхода: 0.00 [00:04:38]line ФМ: 0000000000871829 [00:04:38]written 0, free lines is 4095 [00:04:39]Write to MH i2c: 01 00 00 C1 02 C3 [00:04:39]Write i2c OK [00:04:39]MH_I2C_Read... [00:04:39]Read from MH i2c: 01 [00:04:39]MH_I2C_Read... [00:04:39]Read from MH i2c: 01 07 00 [00:04:39]MH_I2C_Read... [00:04:39]Read from MH i2c: 01 07 00 C1 02 00 00 00 00 00 75 0A 49 [00:04:39]RasterBufferAndPrint [00:04:39]line [00:04:39]line [00:04:39]line [00:04:39]line [00:04:39]line [00:04:39]written 0, free lines is 2705 [00:04:39]MH_Cut [00:04:39]Write to MH i2c: D1 01 00 C8 02 01 9C [00:04:39]Write i2c OK [00:04:39]MH_I2C_Read... [00:04:39]Read from MH i2c: D1 [00:04:39]MH_I2C_Read... [00:04:39]Read from MH i2c: D1 01 00 [00:04:39]MH_I2C_Read... [00:04:39]Read from MH i2c: D1 01 00 C8 02 00 9B [00:04:39]Write to MH i2c: 01 00 00 C9 02 CB [00:04:39]Write i2c OK [00:04:39]MH_I2C_Read... [00:04:40]*** Cut start [00:04:40]*** Purtial cut [00:04:40]*** CUTSNS_PIN = 0 [00:04:40]*** Stage 1: CUTSNS_PIN = 1 [00:04:40]OFD Sender: No OFD packet to send [00:04:42]Read from MH i2c: 01 [00:04:42]MH_I2C_Read... [00:04:42]*** Stop cut motor [00:04:42]*** Cut end [00:04:42]Read from MH i2c: 01 07 00 [00:04:42]MH_I2C_Read... [00:04:42]Read from MH i2c: 01 07 00 C9 02 00 00 00 00 00 FF 0F E0 [00:04:42]process_action x_report done [00:04:42]requested_data is exist [00:04:42]produce_requested_data [00:04:42]requested_item fd.num is exist - process it [00:04:42]SAM_PROTO_GetFieldsCounters [00:04:42]wFMCommunicate request_size=4 [00:04:42]MH_SAM_APDU [00:04:42]CAPDU: 80 13 00 00 [00:04:42]Write to MH i2c: E2 08 00 CA 02 80 13 00 00 00 00 00 00 48 [00:04:42]Write i2c OK [00:04:42]MH_I2C_Read... [00:04:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:04:42]Read from MH i2c: E2 [00:04:42]MH_I2C_Read... [00:04:42]Read from MH i2c: E2 62 00 [00:04:42]MH_I2C_Read... [00:04:42]Read from MH i2c: E2 62 00 CA 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 05 08 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [00:04: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 05 08 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:04:42]wFMCommunicate OK [00:04:42]SAM_PROTO_GetFieldsCounters done [00:04:42]requested_item shift.num is exist - process it [00:04:42]requested_item shift.opened is exist - process it [00:04:42]req_shift_opened [00:04:42]FM_GetShiftState [00:04:42]SAM_PROTO_GetShiftState [00:04:42]wFMCommunicate request_size=4 [00:04:42]MH_SAM_APDU [00:04:42]CAPDU: 80 13 01 00 [00:04:42]Write to MH i2c: E2 08 00 CB 02 80 13 01 00 00 00 00 00 4A [00:04:42]Write i2c OK [00:04:42]MH_I2C_Read... [00:04:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:04:42]Read from MH i2c: E2 [00:04:42]MH_I2C_Read... [00:04:42]Read from MH i2c: E2 0E 00 [00:04:42]MH_I2C_Read... [00:04:42]Read from MH i2c: E2 0E 00 CB 02 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 F6 [00:04:42]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [00:04:42]wFMCommunicate OK [00:04:42]SAM_PROTO_GetShiftState done [00:04:42]FM_GetShiftState done [00:04:42]req_shift_opened done [00:04:42]requested_item shift.open_date is exist - process it [00:04:42]req_shift_open_date [00:04:42]req_shift_open_date done [00:04:42]produce_requested_data done [00:04:42]produce_requested_data return {"fd.num":67589,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [00:04:42]process_action_free x_report [00:04:42]json_value_free [00:04:42]json_value_free done [00:04:42]process_json_proto returns [00:04:42]Send response to host [00:04:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":67589,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [00:04:42]free response buf [00:04:42]execute_script done [00:04:42]execute_script returns [00:04:42]free content buf [00:04:42]Sock 7.Close socket [00:04:42]Sock 7.Thread stoped [00:04:45]OFD Sender: No OFD packet to send [00:04:47]accept exits with 9 [00:04:47]New connection [00:04:47]New thread 3067538788 created [00:04:47]Thread 3067395428 joined [00:04:47]Waiting for new connection... [00:04:47] Sock 9.Parse request [00:04:47]Sock 9.Check first char [00:04:47]Sock 9.First char is OK [00:04:47]request: POST /json_proto HTTP/1.0 [00:04:47]Method: POST [00:04:47]URL: /json_proto [00:04:47]Method is POST - this is cgi request [00:04:47]url: /json_proto [00:04:47]query_string will be loaded in cgi processing [00:04:47]execute_cgi json_proto POST (null) [00:04:47]execute_cgi path=json_proto method=POST [00:04:47]POST find Content-Length [00:04:47]Host: 172.17.41.195:8080 [00:04:47]Content-Length: 215 [00:04:47]Content-Type: application/json [00:04:47] [00:04:47]POST finish read [00:04:47]Found Content-Length = 215 [00:04:47]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:04:47]execute_script... [00:04:47]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:04:47]POST & json_proto [00:04:47]process_json_proto [00:04:47]json parsed OK: [00:04:47]protocol is kg_v1.0 [00:04:47]action value=get_value [00:04:47]process_action get_value [00:04:47]cmd_get_value [00:04:47]process_action get_value done [00:04:47]requested_data is exist [00:04:47]produce_requested_data [00:04:47]requested_item kkm.sn is exist - process it [00:04:47]requested_item kkm.ver is exist - process it [00:04:47]requested_item fm.sn is exist - process it [00:04:47]wFMCommunicate request_size=4 [00:04:47]MH_SAM_APDU [00:04:47]CAPDU: 80 11 00 00 [00:04:47]Write to MH i2c: E2 08 00 CC 02 80 11 00 00 00 00 00 00 48 [00:04:47]Write i2c OK [00:04:47]MH_I2C_Read... [00:04:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:04:48]Read from MH i2c: E2 [00:04:48]MH_I2C_Read... [00:04:48]Read from MH i2c: E2 17 00 [00:04:48]MH_I2C_Read... [00:04:48]Read from MH i2c: E2 17 00 CC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 9E [00:04:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [00:04:48]wFMCommunicate OK [00:04:48]requested_item fd.num is exist - process it [00:04:48]SAM_PROTO_GetFieldsCounters [00:04:48]wFMCommunicate request_size=4 [00:04:48]MH_SAM_APDU [00:04:48]CAPDU: 80 13 00 00 [00:04:48]Write to MH i2c: E2 08 00 CD 02 80 13 00 00 00 00 00 00 4B [00:04:48]Write i2c OK [00:04:48]MH_I2C_Read... [00:04:48]Read from MH i2c: E2 [00:04:48]MH_I2C_Read... [00:04:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:04:48]Read from MH i2c: E2 62 00 [00:04:48]MH_I2C_Read... [00:04:48]Read from MH i2c: E2 62 00 CD 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 05 08 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [00: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 05 08 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:04:48]wFMCommunicate OK [00:04:48]SAM_PROTO_GetFieldsCounters done [00:04:48]requested_item shift.num is exist - process it [00:04:48]requested_item shift.opened is exist - process it [00:04:48]req_shift_opened [00:04:48]FM_GetShiftState [00:04:48]SAM_PROTO_GetShiftState [00:04:48]wFMCommunicate request_size=4 [00:04:48]MH_SAM_APDU [00:04:48]CAPDU: 80 13 01 00 [00:04:48]Write to MH i2c: E2 08 00 CE 02 80 13 01 00 00 00 00 00 4D [00:04:48]Write i2c OK [00:04:48]MH_I2C_Read... [00:04:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:04:48]Read from MH i2c: E2 [00:04:48]MH_I2C_Read... [00:04:48]Read from MH i2c: E2 0E 00 [00:04:48]MH_I2C_Read... [00:04:48]Read from MH i2c: E2 0E 00 CE 02 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 F9 [00:04:48]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [00:04:48]wFMCommunicate OK [00:04:48]SAM_PROTO_GetShiftState done [00:04:48]FM_GetShiftState done [00:04:48]req_shift_opened done [00:04:48]requested_item shift.open_date is exist - process it [00:04:48]req_shift_open_date [00:04:48]req_shift_open_date done [00:04:48]produce_requested_data done [00:04:48]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67589,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [00:04:48]process_action_free get_value [00:04:48]json_value_free [00:04:48]json_value_free done [00:04:48]process_json_proto returns [00:04:48]Send response to host [00:04:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67589,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [00:04:48]free response buf [00:04:48]execute_script done [00:04:48]execute_script returns [00:04:48]free content buf [00:04:48]Sock 9.Close socket [00:04:48]Sock 9.Thread stoped [00:04:48]accept exits with 7 [00:04:48]New connection [00:04:48]New thread 3067395428 created [00:04:48]Thread 3067538788 joined [00:04:48]Waiting for new connection... [00:04:48] Sock 7.Parse request [00:04:48]Sock 7.Check first char [00:04:48]Sock 7.First char is OK [00:04:48]request: POST /json_proto HTTP/1.0 [00:04:48]Method: POST [00:04:48]URL: /json_proto [00:04:48]Method is POST - this is cgi request [00:04:48]url: /json_proto [00:04:48]query_string will be loaded in cgi processing [00:04:48]execute_cgi json_proto POST (null) [00:04:48]execute_cgi path=json_proto method=POST [00:04:48]POST find Content-Length [00:04:48]Host: 172.17.41.195:8080 [00:04:48]Content-Length: 331 [00:04:48]Content-Type: application/json [00:04:48] [00:04:48]POST finish read [00:04:48]Found Content-Length = 331 [00:04:48]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:04:48]execute_script... [00:04:48]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:04:48]POST & json_proto [00:04:48]process_json_proto [00:04:48]json parsed OK: [00:04:48]protocol is kg_v1.0 [00:04:48]action value=get_value [00:04:48]process_action get_value [00:04:48]cmd_get_value [00:04:48]process_action get_value done [00:04:48]requested_data is exist [00:04:48]produce_requested_data [00:04:48]requested_item fm.sale.total is exist - process it [00:04:48]SAM_PROTO_GetFMData [00:04:48]wFMCommunicate request_size=4 [00:04:48]MH_SAM_APDU [00:04:48]CAPDU: 80 13 03 00 [00:04:48]Write to MH i2c: E2 08 00 CF 02 80 13 03 00 00 00 00 00 50 [00:04:48]Write i2c OK [00:04:48]MH_I2C_Read... [00:04:48]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:04:48]Read from MH i2c: E2 [00:04:48]MH_I2C_Read... [00:04:48]Read from MH i2c: E2 FD 00 [00:04:48]MH_I2C_Read... [00:04:48]Read from MH i2c: E2 FD 00 CF 02 00 C6 04 85 04 C2 04 6E 04 04 00 3B 05 01 00 69 04 A3 00 6F 04 04 00 91 04 01 00 B1 04 05 00 9F 3C 57 1C 03 70 04 05 00 6C C8 17 C0 02 72 04 04 00 33 74 3F 5C 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 77 29 94 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 3C 44 0C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 3A [00:04:49]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 3B 05 01 00 69 04 A3 00 6F 04 04 00 91 04 01 00 B1 04 05 00 9F 3C 57 1C 03 70 04 05 00 6C C8 17 C0 02 72 04 04 00 33 74 3F 5C 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 77 29 94 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 3C 44 0C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 [00:04:49]wFMCommunicate OK [00:04:49]wFMCommunicate request_size=4 [00:04:49]MH_SAM_APDU [00:04:49]CAPDU: 80 17 00 00 [00:04:49]Write to MH i2c: E2 08 00 D0 02 80 17 00 00 00 00 00 00 52 [00:04:49]Write i2c OK [00:04:49]MH_I2C_Read... [00:04:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:49]Read from MH i2c: E2 [00:04:49]MH_I2C_Read... [00:04:49]Read from MH i2c: E2 FD 00 [00:04:49]MH_I2C_Read... [00:04:49]Read from MH i2c: E2 FD 00 D0 02 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 8D [00:04:49]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [00:04:49]wFMCommunicate OK [00:04:49]wFMCommunicate request_size=4 [00:04:49]MH_SAM_APDU [00:04:49]CAPDU: 80 17 00 00 [00:04:49]Write to MH i2c: E2 08 00 D1 02 80 17 00 00 00 00 00 00 53 [00:04:49]Write i2c OK [00:04:49]MH_I2C_Read... [00:04:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:49]Read from MH i2c: E2 [00:04:49]MH_I2C_Read... [00:04:49]Read from MH i2c: E2 FD 00 [00:04:49]MH_I2C_Read... [00:04:49]Read from MH i2c: E2 FD 00 D1 02 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 7A [00:04:50]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [00:04:50]wFMCommunicate OK [00:04:50]wFMCommunicate request_size=4 [00:04:50]MH_SAM_APDU [00:04:50]CAPDU: 80 17 00 00 [00:04:50]Write to MH i2c: E2 08 00 D2 02 80 17 00 00 00 00 00 00 54 [00:04:50]Write i2c OK [00:04:50]MH_I2C_Read... [00:04:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:50]Read from MH i2c: E2 [00:04:50]MH_I2C_Read... [00:04:50]Read from MH i2c: E2 FD 00 [00:04:50]MH_I2C_Read... [00:04:50]Read from MH i2c: E2 FD 00 D2 02 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 CF [00:04:50]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:04:50]wFMCommunicate OK [00:04:50]wFMCommunicate request_size=4 [00:04:50]MH_SAM_APDU [00:04:50]CAPDU: 80 17 00 00 [00:04:50]Write to MH i2c: E2 08 00 D3 02 80 17 00 00 00 00 00 00 55 [00:04:50]OFD Sender: No OFD packet to send [00:04:50]Write i2c OK [00:04:50]MH_I2C_Read... [00:04:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [00:04:51]Read from MH i2c: E2 [00:04:51]MH_I2C_Read... [00:04:51]Read from MH i2c: E2 E3 00 [00:04:51]MH_I2C_Read... [00:04:51]Read from MH i2c: E2 E3 00 D3 02 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 34 [00:04:51]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:04:51]wFMCommunicate OK [00:04:51]SAM_PROTO_GetFMData done [00:04:51]requested_item fm.sale_refund.total is exist - process it [00:04:51]requested_item fm.buy.total is exist - process it [00:04:51]requested_item shift.sale.total is exist - process it [00:04:51]SAM_PROTO_GetShiftData [00:04:51]wFMCommunicate request_size=4 [00:04:51]MH_SAM_APDU [00:04:51]CAPDU: 80 13 02 00 [00:04:51]Write to MH i2c: E2 08 00 D4 02 80 13 02 00 00 00 00 00 54 [00:04:51]Write i2c OK [00:04:51]MH_I2C_Read... [00:04:51]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:04:51]Read from MH i2c: E2 [00:04:51]MH_I2C_Read... [00:04:51]Read from MH i2c: E2 FD 00 [00:04:51]MH_I2C_Read... [00:04:51]Read from MH i2c: E2 FD 00 D4 02 00 BA 04 AA 04 B6 04 6E 04 04 00 BB 00 00 00 69 04 9D 00 6F 04 04 00 B9 00 00 00 B1 04 04 00 49 5E 7B 01 70 04 03 00 C4 1C 97 72 04 03 00 85 41 E4 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 E6 4A 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 83 5B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 70 64 08 70 04 03 00 70 64 08 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 32 E4 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 1F [00:04:51]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 BB 00 00 00 69 04 9D 00 6F 04 04 00 B9 00 00 00 B1 04 04 00 49 5E 7B 01 70 04 03 00 C4 1C 97 72 04 03 00 85 41 E4 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 E6 4A 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 83 5B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 70 64 08 70 04 03 00 70 64 08 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 32 E4 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:04:52]wFMCommunicate OK [00:04:52]wFMCommunicate request_size=4 [00:04:52]MH_SAM_APDU [00:04:52]CAPDU: 80 17 00 00 [00:04:52]Write to MH i2c: E2 08 00 D5 02 80 17 00 00 00 00 00 00 57 [00:04:52]Write i2c OK [00:04:52]MH_I2C_Read... [00:04:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:52]Read from MH i2c: E2 [00:04:52]MH_I2C_Read... [00:04:52]Read from MH i2c: E2 FD 00 [00:04:52]MH_I2C_Read... [00:04:52]Read from MH i2c: E2 FD 00 D5 02 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 04 13 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 18 [00:04:52]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 04 13 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:04:52]wFMCommunicate OK [00:04:52]wFMCommunicate request_size=4 [00:04:52]MH_SAM_APDU [00:04:52]CAPDU: 80 17 00 00 [00:04:52]Write to MH i2c: E2 08 00 D6 02 80 17 00 00 00 00 00 00 58 [00:04:52]Write i2c OK [00:04:52]MH_I2C_Read... [00:04:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:52]Read from MH i2c: E2 [00:04:52]MH_I2C_Read... [00:04:52]Read from MH i2c: E2 FD 00 [00:04:52]MH_I2C_Read... [00:04:52]Read from MH i2c: E2 FD 00 D6 02 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 84 [00:04:53]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:04:53]wFMCommunicate OK [00:04:53]wFMCommunicate request_size=4 [00:04:53]MH_SAM_APDU [00:04:53]CAPDU: 80 17 00 00 [00:04:53]Write to MH i2c: E2 08 00 D7 02 80 17 00 00 00 00 00 00 59 [00:04:53]Write i2c OK [00:04:53]MH_I2C_Read... [00:04:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:53]Read from MH i2c: E2 [00:04:53]MH_I2C_Read... [00:04:53]Read from MH i2c: E2 FD 00 [00:04:53]MH_I2C_Read... [00:04:53]Read from MH i2c: E2 FD 00 D7 02 00 00 EF 03 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 90 00 D1 [00:04:53]RAPDU: 00 EF 03 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 90 00 [00:04:54]wFMCommunicate OK [00:04:54]wFMCommunicate request_size=4 [00:04:54]MH_SAM_APDU [00:04:54]CAPDU: 80 17 00 00 [00:04:54]Write to MH i2c: E2 08 00 D8 02 80 17 00 00 00 00 00 00 5A [00:04:54]Write i2c OK [00:04:54]MH_I2C_Read... [00:04:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [00:04:54]Read from MH i2c: E2 [00:04:54]MH_I2C_Read... [00:04:54]Read from MH i2c: E2 D7 00 [00:04:54]MH_I2C_Read... [00:04:54]Read from MH i2c: E2 D7 00 D8 02 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3D [00:04:54]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:04:54]wFMCommunicate OK [00:04:54]SAM_PROTO_GetShiftData done [00:04:54]requested_item shift.sale.total_cash is exist - process it [00:04:54]requested_item shift.sale_refund.total is exist - process it [00:04:54]requested_item shift.sale_refund.total_cash is exist - process it [00:04:54]requested_item shift.buy.total is exist - process it [00:04:54]requested_item shift.buy.total_cash is exist - process it [00:04:54]produce_requested_data done [00:04:54]produce_requested_data return {"fm.sale.total":133603810.87,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":248622.81,"shift.sale.total_cash":99033.00,"shift.sale_refund.total":5500.00,"shift.sale_refund.total_cash":5500.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:04:54]process_action_free get_value [00:04:54]json_value_free [00:04:54]json_value_free done [00:04:54]process_json_proto returns [00:04:54]Send response to host [00:04:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133603810.87,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":248622.81,"shift.sale.total_cash":99033.00,"shift.sale_refund.total":5500.00,"shift.sale_refund.total_cash":5500.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:04:54]free response buf [00:04:54]execute_script done [00:04:54]execute_script returns [00:04:54]free content buf [00:04:54]Sock 7.Close socket [00:04:54]Sock 7.Thread stoped [00:04:54]accept exits with 9 [00:04:54]New connection [00:04:54]New thread 3067538788 created [00:04:54]Thread 3067395428 joined [00:04:54]Waiting for new connection... [00:04:54] Sock 9.Parse request [00:04:54]Sock 9.Check first char [00:04:54]Sock 9.First char is OK [00:04:54]request: POST /json_proto HTTP/1.0 [00:04:54]Method: POST [00:04:54]URL: /json_proto [00:04:54]Method is POST - this is cgi request [00:04:54]url: /json_proto [00:04:54]query_string will be loaded in cgi processing [00:04:54]execute_cgi json_proto POST (null) [00:04:54]execute_cgi path=json_proto method=POST [00:04:54]POST find Content-Length [00:04:54]Host: 172.17.41.195:8080 [00:04:54]Content-Length: 331 [00:04:54]Content-Type: application/json [00:04:54] [00:04:54]POST finish read [00:04:54]Found Content-Length = 331 [00:04:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:04:54]execute_script... [00:04:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:04:54]POST & json_proto [00:04:54]process_json_proto [00:04:54]json parsed OK: [00:04:54]protocol is kg_v1.0 [00:04:54]action value=get_value [00:04:54]process_action get_value [00:04:54]cmd_get_value [00:04:54]process_action get_value done [00:04:54]requested_data is exist [00:04:54]produce_requested_data [00:04:54]requested_item fm.sale.total is exist - process it [00:04:54]SAM_PROTO_GetFMData [00:04:54]wFMCommunicate request_size=4 [00:04:54]MH_SAM_APDU [00:04:54]CAPDU: 80 13 03 00 [00:04:54]Write to MH i2c: E2 08 00 D9 02 80 13 03 00 00 00 00 00 5A [00:04:54]Write i2c OK [00:04:54]MH_I2C_Read... [00:04:55]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:04:55]Read from MH i2c: E2 [00:04:55]MH_I2C_Read... [00:04:55]Read from MH i2c: E2 FD 00 [00:04:55]MH_I2C_Read... [00:04:55]Read from MH i2c: E2 FD 00 D9 02 00 C6 04 85 04 C2 04 6E 04 04 00 3B 05 01 00 69 04 A3 00 6F 04 04 00 91 04 01 00 B1 04 05 00 9F 3C 57 1C 03 70 04 05 00 6C C8 17 C0 02 72 04 04 00 33 74 3F 5C 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 77 29 94 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 3C 44 0C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 44 [00:04:55]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 3B 05 01 00 69 04 A3 00 6F 04 04 00 91 04 01 00 B1 04 05 00 9F 3C 57 1C 03 70 04 05 00 6C C8 17 C0 02 72 04 04 00 33 74 3F 5C 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 77 29 94 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 3C 44 0C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 [00:04:55]wFMCommunicate OK [00:04:55]wFMCommunicate request_size=4 [00:04:55]MH_SAM_APDU [00:04:55]CAPDU: 80 17 00 00 [00:04:55]Write to MH i2c: E2 08 00 DA 02 80 17 00 00 00 00 00 00 5C [00:04:55]Write i2c OK [00:04:55]MH_I2C_Read... [00:04:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:55]Read from MH i2c: E2 [00:04:55]MH_I2C_Read... [00:04:55]Read from MH i2c: E2 FD 00 [00:04:55]MH_I2C_Read... [00:04:55]Read from MH i2c: E2 FD 00 DA 02 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 97 [00:04:55]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 OFD Sender: No OFD packet to send [00:04:56]00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [00:04:56]wFMCommunicate OK [00:04:56]wFMCommunicate request_size=4 [00:04:56]MH_SAM_APDU [00:04:56]CAPDU: 80 17 00 00 [00:04:56]Write to MH i2c: E2 08 00 DB 02 80 17 00 00 00 00 00 00 5D [00:04:56]Write i2c OK [00:04:56]MH_I2C_Read... [00:04:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:56]Read from MH i2c: E2 [00:04:56]MH_I2C_Read... [00:04:56]Read from MH i2c: E2 FD 00 [00:04:56]MH_I2C_Read... [00:04:56]Read from MH i2c: E2 FD 00 DB 02 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 84 [00:04:56]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [00:04:56]wFMCommunicate OK [00:04:56]wFMCommunicate request_size=4 [00:04:56]MH_SAM_APDU [00:04:56]CAPDU: 80 17 00 00 [00:04:56]Write to MH i2c: E2 08 00 DC 02 80 17 00 00 00 00 00 00 5E [00:04:56]Write i2c OK [00:04:56]MH_I2C_Read... [00:04:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:56]Read from MH i2c: E2 [00:04:57]MH_I2C_Read... [00:04:57]Read from MH i2c: E2 FD 00 [00:04:57]MH_I2C_Read... [00:04:57]Read from MH i2c: E2 FD 00 DC 02 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 D9 [00:04:57]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:04:57]wFMCommunicate OK [00:04:57]wFMCommunicate request_size=4 [00:04:57]MH_SAM_APDU [00:04:57]CAPDU: 80 17 00 00 [00:04:57]Write to MH i2c: E2 08 00 DD 02 80 17 00 00 00 00 00 00 5F [00:04:57]Write i2c OK [00:04:57]MH_I2C_Read... [00:04:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [00:04:57]Read from MH i2c: E2 [00:04:57]MH_I2C_Read... [00:04:57]Read from MH i2c: E2 E3 00 [00:04:57]MH_I2C_Read... [00:04:57]Read from MH i2c: E2 E3 00 DD 02 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 3E [00:04:57]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:04:57]wFMCommunicate OK [00:04:57]SAM_PROTO_GetFMData done [00:04:57]requested_item fm.sale_refund.total is exist - process it [00:04:57]requested_item fm.buy.total is exist - process it [00:04:57]requested_item shift.sale.total is exist - process it [00:04:57]SAM_PROTO_GetShiftData [00:04:57]wFMCommunicate request_size=4 [00:04:57]MH_SAM_APDU [00:04:57]CAPDU: 80 13 02 00 [00:04:57]Write to MH i2c: E2 08 00 DE 02 80 13 02 00 00 00 00 00 5E [00:04:57]Write i2c OK [00:04:57]MH_I2C_Read... [00:04:58]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:04:58]Read from MH i2c: E2 [00:04:58]MH_I2C_Read... [00:04:58]Read from MH i2c: E2 FD 00 [00:04:58]MH_I2C_Read... [00:04:58]Read from MH i2c: E2 FD 00 DE 02 00 BA 04 AA 04 B6 04 6E 04 04 00 BB 00 00 00 69 04 9D 00 6F 04 04 00 B9 00 00 00 B1 04 04 00 49 5E 7B 01 70 04 03 00 C4 1C 97 72 04 03 00 85 41 E4 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 E6 4A 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 83 5B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 70 64 08 70 04 03 00 70 64 08 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 32 E4 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 29 [00:04:58]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 BB 00 00 00 69 04 9D 00 6F 04 04 00 B9 00 00 00 B1 04 04 00 49 5E 7B 01 70 04 03 00 C4 1C 97 72 04 03 00 85 41 E4 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 E6 4A 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 83 5B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 70 64 08 70 04 03 00 70 64 08 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 32 E4 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:04:58]wFMCommunicate OK [00:04:58]wFMCommunicate request_size=4 [00:04:58]MH_SAM_APDU [00:04:58]CAPDU: 80 17 00 00 [00:04:58]Write to MH i2c: E2 08 00 DF 02 80 17 00 00 00 00 00 00 61 [00:04:58]Write i2c OK [00:04:58]MH_I2C_Read... [00:04:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:59]Read from MH i2c: E2 [00:04:59]MH_I2C_Read... [00:04:59]Read from MH i2c: E2 FD 00 [00:04:59]MH_I2C_Read... [00:04:59]Read from MH i2c: E2 FD 00 DF 02 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 04 13 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 22 [00:04:59]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 04 13 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:04:59]wFMCommunicate OK [00:04:59]wFMCommunicate request_size=4 [00:04:59]MH_SAM_APDU [00:04:59]CAPDU: 80 17 00 00 [00:04:59]Write to MH i2c: E2 08 00 E0 02 80 17 00 00 00 00 00 00 62 [00:04:59]Write i2c OK [00:04:59]MH_I2C_Read... [00:04:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:59]Read from MH i2c: E2 [00:04:59]MH_I2C_Read... [00:04:59]Read from MH i2c: E2 FD 00 [00:04:59]MH_I2C_Read... [00:04:59]Read from MH i2c: E2 FD 00 E0 02 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8E [00:04:59]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:05:00]wFMCommunicate OK [00:05:00]wFMCommunicate request_size=4 [00:05:00]MH_SAM_APDU [00:05:00]CAPDU: 80 17 00 00 [00:05:00]Write to MH i2c: E2 08 00 E1 02 80 17 00 00 00 00 00 00 63 [00:05:00]Write i2c OK [00:05:00]MH_I2C_Read... [00:05:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:00]Read from MH i2c: E2 [00:05:00]MH_I2C_Read... [00:05:00]Read from MH i2c: E2 FD 00 [00:05:00]MH_I2C_Read... [00:05:00]Read from MH i2c: E2 FD 00 E1 02 00 00 EF 03 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 90 00 DB [00:05:00]RAPDU: 00 EF 03 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 90 00 [00:05:00]wFMCommunicate OK [00:05:00]wFMCommunicate request_size=4 [00:05:00]MH_SAM_APDU [00:05:00]CAPDU: 80 17 00 00 [00:05:00]Write to MH i2c: E2 08 00 E2 02 80 17 00 00 00 00 00 00 64 [00:05:00]Write i2c OK [00:05:00]MH_I2C_Read... [00:05:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [00:05:00]Read from MH i2c: E2 [00:05:00]MH_I2C_Read... [00:05:00]Read from MH i2c: E2 D7 00 [00:05:00]MH_I2C_Read... [00:05:00]Read from MH i2c: E2 D7 00 E2 02 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 47 [00:05:01]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 OFD Sender: No OFD packet to send [00:05:01]F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:05:01]wFMCommunicate OK [00:05:01]SAM_PROTO_GetShiftData done [00:05:01]requested_item shift.sale.total_cash is exist - process it [00:05:01]requested_item shift.sale_refund.total is exist - process it [00:05:01]requested_item shift.sale_refund.total_cash is exist - process it [00:05:01]requested_item shift.buy.total is exist - process it [00:05:01]requested_item shift.buy.total_cash is exist - process it [00:05:01]produce_requested_data done [00:05:01]produce_requested_data return {"fm.sale.total":133603810.87,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":248622.81,"shift.sale.total_cash":99033.00,"shift.sale_refund.total":5500.00,"shift.sale_refund.total_cash":5500.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:05:01]process_action_free get_value [00:05:01]json_value_free [00:05:01]json_value_free done [00:05:01]process_json_proto returns [00:05:01]Send response to host [00:05:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133603810.87,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":248622.81,"shift.sale.total_cash":99033.00,"shift.sale_refund.total":5500.00,"shift.sale_refund.total_cash":5500.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:05:01]free response buf [00:05:01]execute_script done [00:05:01]execute_script returns [00:05:01]free content buf [00:05:01]Sock 9.Close socket [00:05:01]Sock 9.Thread stoped [00:05:01]accept exits with 7 [00:05:01]New connection [00:05:01]New thread 3067395428 created [00:05:01]Thread 3067538788 joined [00:05:01]Waiting for new connection... [00:05:01] Sock 7.Parse request [00:05:01]Sock 7.Check first char [00:05:01]Sock 7.First char is OK [00:05:01]request: POST /json_proto HTTP/1.0 [00:05:01]Method: POST [00:05:01]URL: /json_proto [00:05:01]Method is POST - this is cgi request [00:05:01]url: /json_proto [00:05:01]query_string will be loaded in cgi processing [00:05:01]execute_cgi json_proto POST (null) [00:05:01]execute_cgi path=json_proto method=POST [00:05:01]POST find Content-Length [00:05:01]Host: 172.17.41.195:8080 [00:05:01]Content-Length: 277 [00:05:01]Content-Type: application/json [00:05:01] [00:05:01]POST finish read [00:05:01]Found Content-Length = 277 [00:05:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:05:01]execute_script... [00:05:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:05:01]POST & json_proto [00:05:01]process_json_proto [00:05:01]json parsed OK: [00:05:01]protocol is kg_v1.0 [00:05:01]action value=close_shift [00:05:01]process_action close_shift [00:05:01]cmd_close_shift [00:05:01]MH_GetDate [00:05:01]Write to MH i2c: F0 00 00 E3 02 D4 [00:05:01]Write i2c OK [00:05:01]MH_I2C_Read... [00:05:01]Read from MH i2c: F0 [00:05:01]MH_I2C_Read... [00:05:01]Read from MH i2c: F0 09 00 [00:05:01]MH_I2C_Read... [00:05:01]Read from MH i2c: F0 09 00 E3 02 00 2E 9F 46 66 FC 21 6F 64 46 [00:05:01]GetLastDocTimeStamp 1715904271 [00:05:01]current date 1715904302 [00:05:01]FM_GetShiftState [00:05:01]SAM_PROTO_GetShiftState [00:05:01]wFMCommunicate request_size=4 [00:05:01]MH_SAM_APDU [00:05:01]CAPDU: 80 13 01 00 [00:05:01]Write to MH i2c: E2 08 00 E4 02 80 13 01 00 00 00 00 00 63 [00:05:01]Write i2c OK [00:05:01]MH_I2C_Read... [00:05:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:05:01]Read from MH i2c: E2 [00:05:01]MH_I2C_Read... [00:05:01]Read from MH i2c: E2 0E 00 [00:05:01]MH_I2C_Read... [00:05:01]Read from MH i2c: E2 0E 00 E4 02 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 0F [00:05:01]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [00:05:01]wFMCommunicate OK [00:05:01]SAM_PROTO_GetShiftState done [00:05:01]FM_GetShiftState done [00:05:01]KKMCreateCloseShiftDocument [00:05:01]Load OK [00:05:01]Malloc new data [00:05:01]MH_GetDate [00:05:01]Write to MH i2c: F0 00 00 E5 02 D6 [00:05:01]Write i2c OK [00:05:01]MH_I2C_Read... [00:05:01]Read from MH i2c: F0 [00:05:01]MH_I2C_Read... [00:05:01]Read from MH i2c: F0 09 00 [00:05:01]MH_I2C_Read... [00:05:01]Read from MH i2c: F0 09 00 E5 02 00 2E 9F 46 66 FC 21 6F 64 48 [00:05:01]Malloc new data [00:05:01]Malloc new data [00:05:01]Malloc new data [00:05:01]Malloc new data [00:05:01]KKMCreateCloseShiftDocument OK [00:05:01]KKMSetCloseShiftData OK [00:05:01]ProcessDocumentItem done err = 0, tmpTLVsize=76 [00:05:01]tlvbuf is 015D92D0 [00:05:01]KKMLoadAndSignCloseShiftData [00:05:01]SAM_PROTO_ProcessDocument [00:05:01]wFMCommunicate request_size=9 [00:05:01]MH_SAM_APDU [00:05:01]CAPDU: 80 15 01 00 04 05 00 4C 00 [00:05:01]Write to MH i2c: E2 0C 00 E6 02 80 15 01 00 04 00 05 00 4C 00 00 00 C0 [00:05:01]Write i2c OK [00:05:01]MH_I2C_Read... [00:05:01]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:05:01]Read from MH i2c: E2 [00:05:01]MH_I2C_Read... [00:05:01]Read from MH i2c: E2 03 00 [00:05:01]MH_I2C_Read... [00:05:01]Read from MH i2c: E2 03 00 E6 02 00 90 00 5C [00:05:01]RAPDU: 90 00 [00:05:01]wFMCommunicate OK [00:05:01]wFMCommunicate request_size=23 [00:05:01]MH_SAM_APDU [00:05:01]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:05:01]Write to MH i2c: E2 1A 00 E7 02 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 5E [00:05:01]Write i2c OK [00:05:01]MH_I2C_Read... [00:05:01]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:05:01]Read from MH i2c: E2 [00:05:01]MH_I2C_Read... [00:05:01]Read from MH i2c: E2 03 00 [00:05:01]MH_I2C_Read... [00:05:01]Read from MH i2c: E2 03 00 E7 02 00 90 00 5D [00:05:01]RAPDU: 90 00 [00:05:01]wFMCommunicate OK [00:05:01]wFMCommunicate request_size=35 [00:05:01]MH_SAM_APDU [00:05:01]CAPDU: 80 15 02 00 1E FD 03 1A 00 D0 9F D0 B0 D0 B9 D0 B7 D1 83 D0 BB D0 B4 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 90 2E [00:05:01]Write to MH i2c: E2 26 00 E8 02 80 15 02 00 1E 00 FD 03 1A 00 D0 9F D0 B0 D0 B9 D0 B7 D1 83 D0 BB D0 B4 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 90 2E 00 00 D7 [00:05:01]Write i2c OK [00:05:01]MH_I2C_Read... [00:05:01]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:05:01]Read from MH i2c: E2 [00:05:01]MH_I2C_Read... [00:05:01]Read from MH i2c: E2 03 00 [00:05:01]MH_I2C_Read... [00:05:01]Read from MH i2c: E2 03 00 E8 02 00 90 00 5E [00:05:01]RAPDU: 90 00 [00:05:01]wFMCommunicate OK [00:05:01]wFMCommunicate request_size=13 [00:05:01]MH_SAM_APDU [00:05:01]CAPDU: 80 15 02 00 08 F4 03 04 00 2E 9F 46 66 [00:05:02]Write to MH i2c: E2 10 00 E9 02 80 15 02 00 08 00 F4 03 04 00 2E 9F 46 66 00 00 EF [00:05:02]Write i2c OK [00:05:02]MH_I2C_Read... [00:05:02]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:05:02]Read from MH i2c: E2 [00:05:02]MH_I2C_Read... [00:05:02]Read from MH i2c: E2 03 00 [00:05:02]MH_I2C_Read... [00:05:02]Read from MH i2c: E2 03 00 E9 02 00 90 00 5F [00:05:02]RAPDU: 90 00 [00:05:02]wFMCommunicate OK [00:05:02]wFMCommunicate request_size=25 [00:05:02]MH_SAM_APDU [00:05:02]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 [00:05:02]Write to MH i2c: E2 1C 00 EA 02 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 00 00 D0 [00:05:02]Write i2c OK [00:05:02]MH_I2C_Read... [00:05:02]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:05:02]Read from MH i2c: E2 [00:05:02]MH_I2C_Read... [00:05:02]Read from MH i2c: E2 03 00 [00:05:02]MH_I2C_Read... [00:05:02]Read from MH i2c: E2 03 00 EA 02 00 90 00 60 [00:05:02]RAPDU: 90 00 [00:05:02]wFMCommunicate OK [00:05:02]wFMCommunicate request_size=4 [00:05:02]MH_SAM_APDU [00:05:02]CAPDU: 80 15 03 00 [00:05:02]Write to MH i2c: E2 08 00 EB 02 80 15 03 00 00 00 00 00 6E [00:05:02]Write i2c OK [00:05:02]MH_I2C_Read... [00:05:02]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:05:02]Read from MH i2c: E2 [00:05:02]MH_I2C_Read... [00:05:02]Read from MH i2c: E2 FD 00 [00:05:02]MH_I2C_Read... [00:05:02]Read from MH i2c: E2 FD 00 EB 02 00 FD 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 06 08 01 00 0E 04 04 00 65 01 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BD 00 00 00 AA 04 B6 04 6E 04 04 00 BB 00 00 00 69 04 9D 00 6F 04 04 00 B9 00 00 00 B1 04 04 00 49 5E 7B 01 70 04 03 00 C4 1C 97 72 04 03 00 85 41 E4 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 E6 4A 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 83 5B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 70 64 90 00 3C [00:05:02]RAPDU: FD 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 06 08 01 00 0E 04 04 00 65 01 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BD 00 00 00 AA 04 B6 04 6E 04 04 00 BB 00 00 00 69 04 9D 00 6F 04 04 00 B9 00 00 00 B1 04 04 00 49 5E 7B 01 70 04 03 00 C4 1C 97 72 04 03 00 85 41 E4 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 E6 4A 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 83 5B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 70 64 90 00 [00:05:03]wFMCommunicate OK [00:05:03]SAM_PROTO_ProcessDocument answer len = 1277 [00:05:03]SAM_PROTO_ProcessDocument remain to read = 1029 [00:05:03]wFMCommunicate request_size=4 [00:05:03]MH_SAM_APDU [00:05:03]CAPDU: 80 17 00 00 [00:05:03]Write to MH i2c: E2 08 00 EC 02 80 17 00 00 00 00 00 00 6E [00:05:03]Write i2c OK [00:05:03]MH_I2C_Read... [00:05:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:03]Read from MH i2c: E2 [00:05:03]MH_I2C_Read... [00:05:03]Read from MH i2c: E2 FD 00 [00:05:03]MH_I2C_Read... [00:05:03]Read from MH i2c: E2 FD 00 EC 02 00 08 70 04 03 00 70 64 08 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 32 E4 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 04 13 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 59 [00:05:03]RAPDU: 08 70 04 03 00 70 64 08 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 32 E4 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 04 13 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:05:03]wFMCommunicate OK [00:05:03]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:05:03]SAM_PROTO_ProcessDocument remain to read = 779 [00:05:03]wFMCommunicate request_size=4 [00:05:03]MH_SAM_APDU [00:05:03]CAPDU: 80 17 00 00 [00:05:03]Write to MH i2c: E2 08 00 ED 02 80 17 00 00 00 00 00 00 6F [00:05:03]Write i2c OK [00:05:03]MH_I2C_Read... [00:05:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:04]Read from MH i2c: E2 [00:05:04]MH_I2C_Read... [00:05:04]Read from MH i2c: E2 FD 00 [00:05:04]MH_I2C_Read... [00:05:04]Read from MH i2c: E2 FD 00 ED 02 00 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 90 00 D5 [00:05:04]RAPDU: 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:05:04]wFMCommunicate OK [00:05:04]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:05:04]SAM_PROTO_ProcessDocument remain to read = 529 [00:05:04]wFMCommunicate request_size=4 [00:05:04]MH_SAM_APDU [00:05:04]CAPDU: 80 17 00 00 [00:05:04]Write to MH i2c: E2 08 00 EE 02 80 17 00 00 00 00 00 00 70 [00:05:04]Write i2c OK [00:05:04]MH_I2C_Read... [00:05:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:04]Read from MH i2c: E2 [00:05:04]MH_I2C_Read... [00:05:04]Read from MH i2c: E2 FD 00 [00:05:04]MH_I2C_Read... [00:05:04]Read from MH i2c: E2 FD 00 EE 02 00 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7F [00:05:05]RAPDU: 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:05:05]wFMCommunicate OK [00:05:05]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:05:05]SAM_PROTO_ProcessDocument remain to read = 279 [00:05:05]wFMCommunicate request_size=4 [00:05:05]MH_SAM_APDU [00:05:05]CAPDU: 80 17 00 00 [00:05:05]Write to MH i2c: E2 08 00 EF 02 80 17 00 00 00 00 00 00 71 [00:05:05]Write i2c OK [00:05:05]MH_I2C_Read... [00:05:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:05]Read from MH i2c: E2 [00:05:05]MH_I2C_Read... [00:05:05]Read from MH i2c: E2 FD 00 [00:05:05]MH_I2C_Read... [00:05:05]Read from MH i2c: E2 FD 00 EF 02 00 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AF [00:05:05]RAPDU: 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:05:05]wFMCommunicate OK [00:05:05]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:05:05]SAM_PROTO_ProcessDocument remain to read = 29 [00:05:05]wFMCommunicate request_size=4 [00:05:05]MH_SAM_APDU [00:05:05]CAPDU: 80 17 00 00 [00:05:05]Write to MH i2c: E2 08 00 F0 02 80 17 00 00 00 00 00 00 72 [00:05:05]Write i2c OK [00:05:05]MH_I2C_Read... [00:05:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 29! [00:05:06]Read from MH i2c: E2 [00:05:06]MH_I2C_Read... [00:05:06]Read from MH i2c: E2 20 00 [00:05:06]MH_I2C_Read... [00:05:06]Read from MH i2c: E2 20 00 F0 02 00 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 DA 7A 5F 13 4E 23 90 00 ED [00:05:06]RAPDU: 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 DA 7A 5F 13 4E 23 90 00 [00:05:06]wFMCommunicate OK [00:05:06]SAM_PROTO_ProcessDocument received (without SW) 29 bytes [00:05:06]SAM_PROTO_ProcessDocument done [00:05:06]1209 (1) - 1.0 - номер версии ФФД [00:05:06]1041 (16) - 0000000000871829 - номер ФМ [00:05:06]1040 (4) - 67590 - номер ФД [00:05:06]1038 (4) - 357 - номер смены [00:05:06]1118 (4) - 187 - количество кассовых чеков за смену [00:05:06]1111 (4) - 189 - общее количество ФД за смену [00:05:06]1194 (1206) - счетчики итогов смены [00:05:06] 1134 (4) - 187 - количество чеков со всеми признаками расчетов [00:05:06] 1129 (157) - счетчики операций «приход» [00:05:06] 1135 (4) - 185 - количество чеков по признаку расчетов [00:05:06] 1201 (4) - 248622.81 - общая итоговая сумма в чеках [00:05:06] 1136 (3) - 99033.00 - итоговая сумма в чеках наличными [00:05:06] 1138 (3) - 149589.81 - итоговая сумма в чеках безналичными [00:05:06] 1024 (123) - суммы налогов [00:05:06] 1006 (9) - суммы НДС [00:05:06] 1010 (1) - 0% - код ставки НДС [00:05:06] 1011 (0) - 0.00 - сумма НДС по ставке [00:05:06] 1006 (12) - суммы НДС [00:05:06] 1010 (1) - 12% - код ставки НДС [00:05:06] 1011 (3) - 26406.14 - сумма НДС по ставке [00:05:06] 1007 (9) - суммы НСП [00:05:06] 1014 (1) - 0% - код ставки НСП [00:05:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:06] 1007 (12) - суммы НСП [00:05:06] 1014 (1) - 1% - код ставки НСП [00:05:06] 1015 (3) - 2200.35 - сумма НСП по ставке [00:05:06] 1007 (9) - суммы НСП [00:05:06] 1014 (1) - 2% - код ставки НСП [00:05:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:06] 1007 (9) - суммы НСП [00:05:06] 1014 (1) - 3% - код ставки НСП [00:05:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:06] 1007 (9) - суммы НСП [00:05:06] 1014 (1) - 5% - код ставки НСП [00:05:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:06] 1007 (9) - суммы НСП [00:05:06] 1014 (1) - 0,50% - код ставки НСП [00:05:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:06] 1007 (9) - суммы НСП [00:05:06] 1014 (1) - 1,50% - код ставки НСП [00:05:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:06] 1130 (151) - счетчики операций «возврат прихода» [00:05:06] 1135 (4) - 2 - количество чеков по признаку расчетов [00:05:06] 1201 (3) - 5500.00 - общая итоговая сумма в чеках [00:05:06] 1136 (3) - 5500.00 - итоговая сумма в чеках наличными [00:05:06] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:05:06] 1024 (121) - суммы налогов [00:05:06] 1006 (9) - суммы НДС [00:05:06] 1010 (1) - 0% - код ставки НДС [00:05:06] 1011 (0) - 0.00 - сумма НДС по ставке [00:05:06] 1006 (11) - суммы НДС [00:05:06] 1010 (1) - 12% - код ставки НДС [00:05:06] 1011 (2) - 584.18 - сумма НДС по ставке [00:05:06] 1007 (9) - суммы НСП [00:05:06] 1014 (1) - 0% - код ставки НСП [00:05:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:06] 1007 (11) - суммы НСП [00:05:06] 1014 (1) - 1% - код ставки НСП [00:05:06] 1015 (2) - 48.68 - сумма НСП по ставке [00:05:06] 1007 (9) - суммы НСП [00:05:06] 1014 (1) - 2% - код ставки НСП [00:05:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:06] 1007 (9) - суммы НСП [00:05:06] 1014 (1) - 3% - код ставки НСП [00:05:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:06] 1007 (9) - суммы НСП [00:05:06] 1014 (1) - 5% - код ставки НСП [00:05:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:06] 1007 (9) - суммы НСП [00:05:06] 1014 (1) - 0,50% - код ставки НСП [00:05:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:06] 1007 (9) - суммы НСП [00:05:06] 1014 (1) - 1,50% - код ставки НСП [00:05:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:06] 1131 (141) - счетчики операций «расход» [00:05:06] 1135 (4) - 0 - количество чеков по признаку расчетов [00:05:06] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:05:06] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:05:06] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:05:06] 1024 (117) - суммы налогов [00:05:06] 1006 (9) - суммы НДС [00:05:06] 1010 (1) - 0% - код ставки НДС [00:05:06] 1011 (0) - 0.00 - сумма НДС по ставке [00:05:06] 1006 (9) - суммы НДС [00:05:06] 1010 (1) - 12% - код ставки НДС [00:05:06] 1011 (0) - 0.00 - сумма НДС по ставке [00:05:06] 1007 (9) - суммы НСП [00:05:06] 1014 (1) - 0% - код ставки НСП [00:05:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:06] 1007 (9) - суммы НСП [00:05:06] OFD Sender: No OFD packet to send [00:05:06] 1014 (1) - 1% - код ставки НСП [00:05:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:06] 1007 (9) - суммы НСП [00:05:06] 1014 (1) - 2% - код ставки НСП [00:05:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:06] 1007 (9) - суммы НСП [00:05:06] 1014 (1) - 3% - код ставки НСП [00:05:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:06] 1007 (9) - суммы НСП [00:05:06] 1014 (1) - 5% - код ставки НСП [00:05:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:06] 1007 (9) - суммы НСП [00:05:06] 1014 (1) - 0,50% - код ставки НСП [00:05:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:06] 1007 (9) - суммы НСП [00:05:06] 1014 (1) - 1,50% - код ставки НСП [00:05:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:06] 1132 (141) - счетчики операций «возврат расхода» [00:05:06] 1135 (4) - 0 - количество чеков по признаку расчетов [00:05:06] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:05:06] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:05:06] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:05:06] 1024 (117) - суммы налогов [00:05:06] 1006 (9) - суммы НДС [00:05:06] 1010 (1) - 0% - код ставки НДС [00:05:06] 1011 (0) - 0.00 - сумма НДС по ставке [00:05:06] 1006 (9) - суммы НДС [00:05:06] 1010 (1) - 12% - код ставки НДС [00:05:06] 1011 (0) - 0.00 - сумма НДС по ставке [00:05:06] 1007 (9) - суммы НСП [00:05:06] 1014 (1) - 0% - код ставки НСП [00:05:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:06] 1007 (9) - суммы НСП [00:05:06] 1014 (1) - 1% - код ставки НСП [00:05:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:06] 1007 (9) - суммы НСП [00:05:06] 1014 (1) - 2% - код ставки НСП [00:05:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:06] 1007 (9) - суммы НСП [00:05:06] 1014 (1) - 3% - код ставки НСП [00:05:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:06] 1007 (9) - суммы НСП [00:05:06] 1014 (1) - 5% - код ставки НСП [00:05:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:06] 1007 (9) - суммы НСП [00:05:06] 1014 (1) - 0,50% - код ставки НСП [00:05:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:06] 1007 (9) - суммы НСП [00:05:06] 1014 (1) - 1,50% - код ставки НСП [00:05:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:06] 1133 (588) - - счетчики коррекции - не используются [00:05:06]1077 (6) - 240219115965987 - ФПД [00:05:06]SetTLVBufToDocument [00:05:06]Processing tag 1209 (04B9) [00:05:06]Malloc new data [00:05:06]Processing tag 1041 (0411) [00:05:06]Processing tag 1040 (0410) [00:05:06]Malloc new data [00:05:06]Processing tag 1038 (040E) [00:05:06]Malloc new data [00:05:06]Processing tag 1118 (045E) [00:05:06]Malloc new data [00:05:06]Processing tag 1111 (0457) [00:05:06]Malloc new data [00:05:06]Processing tag 1194 (04AA) [00:05:06]Load OK [00:05:06]SetTLVBufToDocument [00:05:06]Processing tag 1134 (046E) [00:05:06]Malloc new data [00:05:06]Processing tag 1129 (0469) [00:05:06]Load OK [00:05:06]SetTLVBufToDocument [00:05:06]Processing tag 1135 (046F) [00:05:06]Malloc new data [00:05:06]Processing tag 1201 (04B1) [00:05:06]Malloc new data [00:05:06]Processing tag 1136 (0470) [00:05:06]Malloc new data [00:05:06]Processing tag 1138 (0472) [00:05:06]Malloc new data [00:05:06]Processing tag 1024 (0400) [00:05:06]Load OK [00:05:06]SetTLVBufToDocument [00:05:06]Processing tag 1006 (03EE) [00:05:06]Load OK [00:05:06]SetTLVBufToDocument [00:05:06]Processing tag 1010 (03F2) [00:05:06]Malloc new data [00:05:06]Processing tag 1011 (03F3) [00:05:06]Malloc new data [00:05:06]SetTLVBufToDocument err=0 [00:05:06]Processing tag 1006 (03EE) [00:05:06]Load OK [00:05:06]SetTLVBufToDocument [00:05:06]Processing tag 1010 (03F2) [00:05:06]Malloc new data [00:05:06]Processing tag 1011 (03F3) [00:05:06]Malloc new data [00:05:06]SetTLVBufToDocument err=0 [00:05:06]Processing tag 1007 (03EF) [00:05:06]Load OK [00:05:06]SetTLVBufToDocument [00:05:06]Processing tag 1014 (03F6) [00:05:06]Malloc new data [00:05:06]Processing tag 1015 (03F7) [00:05:06]Malloc new data [00:05:06]SetTLVBufToDocument err=0 [00:05:06]Processing tag 1007 (03EF) [00:05:06]Load OK [00:05:06]SetTLVBufToDocument [00:05:06]Processing tag 1014 (03F6) [00:05:06]Malloc new data [00:05:06]Processing tag 1015 (03F7) [00:05:06]Malloc new data [00:05:06]SetTLVBufToDocument err=0 [00:05:06]Processing tag 1007 (03EF) [00:05:06]Load OK [00:05:06]SetTLVBufToDocument [00:05:06]Processing tag 1014 (03F6) [00:05:06]Malloc new data [00:05:06]Processing tag 1015 (03F7) [00:05:06]Malloc new data [00:05:06]SetTLVBufToDocument err=0 [00:05:06]Processing tag 1007 (03EF) [00:05:06]Load OK [00:05:06]SetTLVBufToDocument [00:05:06]Processing tag 1014 (03F6) [00:05:06]Malloc new data [00:05:06]Processing tag 1015 (03F7) [00:05:06]Malloc new data [00:05:06]SetTLVBufToDocument err=0 [00:05:06]Processing tag 1007 (03EF) [00:05:06]Load OK [00:05:06]SetTLVBufToDocument [00:05:06]Processing tag 1014 (03F6) [00:05:06]Malloc new data [00:05:06]Processing tag 1015 (03F7) [00:05:06]Malloc new data [00:05:06]SetTLVBufToDocument err=0 [00:05:06]Processing tag 1007 (03EF) [00:05:06]Load OK [00:05:06]SetTLVBufToDocument [00:05:06]Processing tag 1014 (03F6) [00:05:06]Malloc new data [00:05:06]Processing tag 1015 (03F7) [00:05:06]Malloc new data [00:05:06]SetTLVBufToDocument err=0 [00:05:06]Processing tag 1007 (03EF) [00:05:06]Load OK [00:05:06]SetTLVBufToDocument [00:05:06]Processing tag 1014 (03F6) [00:05:06]Malloc new data [00:05:06]Processing tag 1015 (03F7) [00:05:06]Malloc new data [00:05:06]SetTLVBufToDocument err=0 [00:05:06]SetTLVBufToDocument err=0 [00:05:06]SetTLVBufToDocument err=0 [00:05:06]Processing tag 1130 (046A) [00:05:06]Load OK [00:05:06]SetTLVBufToDocument [00:05:06]Processing tag 1135 (046F) [00:05:06]Malloc new data [00:05:06]Processing tag 1201 (04B1) [00:05:06]Malloc new data [00:05:06]Processing tag 1136 (0470) [00:05:06]Malloc new data [00:05:06]Processing tag 1138 (0472) [00:05:06]Malloc new data [00:05:06]Processing tag 1024 (0400) [00:05:06]Load OK [00:05:06]SetTLVBufToDocument [00:05:06]Processing tag 1006 (03EE) [00:05:06]Load OK [00:05:06]SetTLVBufToDocument [00:05:06]Processing tag 1010 (03F2) [00:05:06]Malloc new data [00:05:06]Processing tag 1011 (03F3) [00:05:06]Malloc new data [00:05:06]SetTLVBufToDocument err=0 [00:05:06]Processing tag 1006 (03EE) [00:05:06]Load OK [00:05:06]SetTLVBufToDocument [00:05:06]Processing tag 1010 (03F2) [00:05:06]Malloc new data [00:05:06]Processing tag 1011 (03F3) [00:05:06]Malloc new data [00:05:06]SetTLVBufToDocument err=0 [00:05:06]Processing tag 1007 (03EF) [00:05:06]Load OK [00:05:06]SetTLVBufToDocument [00:05:06]Processing tag 1014 (03F6) [00:05:06]Malloc new data [00:05:06]Processing tag 1015 (03F7) [00:05:06]Malloc new data [00:05:06]SetTLVBufToDocument err=0 [00:05:06]Processing tag 1007 (03EF) [00:05:06]Load OK [00:05:06]SetTLVBufToDocument [00:05:06]Processing tag 1014 (03F6) [00:05:06]Malloc new data [00:05:06]Processing tag 1015 (03F7) [00:05:06]Malloc new data [00:05:06]SetTLVBufToDocument err=0 [00:05:06]Processing tag 1007 (03EF) [00:05:06]Load OK [00:05:06]SetTLVBufToDocument [00:05:06]Processing tag 1014 (03F6) [00:05:06]Malloc new data [00:05:06]Processing tag 1015 (03F7) [00:05:06]Malloc new data [00:05:06]SetTLVBufToDocument err=0 [00:05:06]Processing tag 1007 (03EF) [00:05:06]Load OK [00:05:06]SetTLVBufToDocument [00:05:06]Processing tag 1014 (03F6) [00:05:06]Malloc new data [00:05:06]Processing tag 1015 (03F7) [00:05:06]Malloc new data [00:05:06]SetTLVBufToDocument err=0 [00:05:06]Processing tag 1007 (03EF) [00:05:06]Load OK [00:05:06]SetTLVBufToDocument [00:05:06]Processing tag 1014 (03F6) [00:05:06]Malloc new data [00:05:06]Processing tag 1015 (03F7) [00:05:06]Malloc new data [00:05:06]SetTLVBufToDocument err=0 [00:05:06]Processing tag 1007 (03EF) [00:05:06]Load OK [00:05:06]SetTLVBufToDocument [00:05:06]Processing tag 1014 (03F6) [00:05:06]Malloc new data [00:05:06]Processing tag 1015 (03F7) [00:05:06]Malloc new data [00:05:06]SetTLVBufToDocument err=0 [00:05:06]Processing tag 1007 (03EF) [00:05:06]Load OK [00:05:06]SetTLVBufToDocument [00:05:06]Processing tag 1014 (03F6) [00:05:06]Malloc new data [00:05:06]Processing tag 1015 (03F7) [00:05:06]Malloc new data [00:05:06]SetTLVBufToDocument err=0 [00:05:06]SetTLVBufToDocument err=0 [00:05:06]SetTLVBufToDocument err=0 [00:05:06]Processing tag 1131 (046B) [00:05:06]Load OK [00:05:06]SetTLVBufToDocument [00:05:06]Processing tag 1135 (046F) [00:05:06]Malloc new data [00:05:06]Processing tag 1201 (04B1) [00:05:06]Malloc new data [00:05:06]Processing tag 1136 (0470) [00:05:06]Malloc new data [00:05:06]Processing tag 1138 (0472) [00:05:06]Malloc new data [00:05:06]Processing tag 1024 (0400) [00:05:06]Load OK [00:05:06]SetTLVBufToDocument [00:05:06]Processing tag 1006 (03EE) [00:05:06]Load OK [00:05:06]SetTLVBufToDocument [00:05:06]Processing tag 1010 (03F2) [00:05:06]Malloc new data [00:05:06]Processing tag 1011 (03F3) [00:05:06]Malloc new data [00:05:06]SetTLVBufToDocument err=0 [00:05:06]Processing tag 1006 (03EE) [00:05:06]Load OK [00:05:06]SetTLVBufToDocument [00:05:06]Processing tag 1010 (03F2) [00:05:06]Malloc new data [00:05:06]Processing tag 1011 (03F3) [00:05:06]Malloc new data [00:05:06]SetTLVBufToDocument err=0 [00:05:06]Processing tag 1007 (03EF) [00:05:06]Load OK [00:05:06]SetTLVBufToDocument [00:05:06]Processing tag 1014 (03F6) [00:05:06]Malloc new data [00:05:06]Processing tag 1015 (03F7) [00:05:06]Malloc new data [00:05:06]SetTLVBufToDocument err=0 [00:05:06]Processing tag 1007 (03EF) [00:05:06]Load OK [00:05:06]SetTLVBufToDocument [00:05:06]Processing tag 1014 (03F6) [00:05:06]Malloc new data [00:05:06]Processing tag 1015 (03F7) [00:05:06]Malloc new data [00:05:06]SetTLVBufToDocument err=0 [00:05:06]Processing tag 1007 (03EF) [00:05:06]Load OK [00:05:06]SetTLVBufToDocument [00:05:06]Processing tag 1014 (03F6) [00:05:06]Malloc new data [00:05:06]Processing tag 1015 (03F7) [00:05:06]Malloc new data [00:05:06]SetTLVBufToDocument err=0 [00:05:06]Processing tag 1007 (03EF) [00:05:07]Load OK [00:05:07]SetTLVBufToDocument [00:05:07]Processing tag 1014 (03F6) [00:05:07]Malloc new data [00:05:07]Processing tag 1015 (03F7) [00:05:07]Malloc new data [00:05:07]SetTLVBufToDocument err=0 [00:05:07]Processing tag 1007 (03EF) [00:05:07]Load OK [00:05:07]SetTLVBufToDocument [00:05:07]Processing tag 1014 (03F6) [00:05:07]Malloc new data [00:05:07]Processing tag 1015 (03F7) [00:05:07]Malloc new data [00:05:07]SetTLVBufToDocument err=0 [00:05:07]Processing tag 1007 (03EF) [00:05:07]Load OK [00:05:07]SetTLVBufToDocument [00:05:07]Processing tag 1014 (03F6) [00:05:07]Malloc new data [00:05:07]Processing tag 1015 (03F7) [00:05:07]Malloc new data [00:05:07]SetTLVBufToDocument err=0 [00:05:07]Processing tag 1007 (03EF) [00:05:07]Load OK [00:05:07]SetTLVBufToDocument [00:05:07]Processing tag 1014 (03F6) [00:05:07]Malloc new data [00:05:07]Processing tag 1015 (03F7) [00:05:07]Malloc new data [00:05:07]SetTLVBufToDocument err=0 [00:05:07]SetTLVBufToDocument err=0 [00:05:07]SetTLVBufToDocument err=0 [00:05:07]Processing tag 1132 (046C) [00:05:07]Load OK [00:05:07]SetTLVBufToDocument [00:05:07]Processing tag 1135 (046F) [00:05:07]Malloc new data [00:05:07]Processing tag 1201 (04B1) [00:05:07]Malloc new data [00:05:07]Processing tag 1136 (0470) [00:05:07]Malloc new data [00:05:07]Processing tag 1138 (0472) [00:05:07]Malloc new data [00:05:07]Processing tag 1024 (0400) [00:05:07]Load OK [00:05:07]SetTLVBufToDocument [00:05:07]Processing tag 1006 (03EE) [00:05:07]Load OK [00:05:07]SetTLVBufToDocument [00:05:07]Processing tag 1010 (03F2) [00:05:07]Malloc new data [00:05:07]Processing tag 1011 (03F3) [00:05:07]Malloc new data [00:05:07]SetTLVBufToDocument err=0 [00:05:07]Processing tag 1006 (03EE) [00:05:07]Load OK [00:05:07]SetTLVBufToDocument [00:05:07]Processing tag 1010 (03F2) [00:05:07]Malloc new data [00:05:07]Processing tag 1011 (03F3) [00:05:07]Malloc new data [00:05:07]SetTLVBufToDocument err=0 [00:05:07]Processing tag 1007 (03EF) [00:05:07]Load OK [00:05:07]SetTLVBufToDocument [00:05:07]Processing tag 1014 (03F6) [00:05:07]Malloc new data [00:05:07]Processing tag 1015 (03F7) [00:05:07]Malloc new data [00:05:07]SetTLVBufToDocument err=0 [00:05:07]Processing tag 1007 (03EF) [00:05:07]Load OK [00:05:07]SetTLVBufToDocument [00:05:07]Processing tag 1014 (03F6) [00:05:07]Malloc new data [00:05:07]Processing tag 1015 (03F7) [00:05:07]Malloc new data [00:05:07]SetTLVBufToDocument err=0 [00:05:07]Processing tag 1007 (03EF) [00:05:07]Load OK [00:05:07]SetTLVBufToDocument [00:05:07]Processing tag 1014 (03F6) [00:05:07]Malloc new data [00:05:07]Processing tag 1015 (03F7) [00:05:07]Malloc new data [00:05:07]SetTLVBufToDocument err=0 [00:05:07]Processing tag 1007 (03EF) [00:05:07]Load OK [00:05:07]SetTLVBufToDocument [00:05:07]Processing tag 1014 (03F6) [00:05:07]Malloc new data [00:05:07]Processing tag 1015 (03F7) [00:05:07]Malloc new data [00:05:07]SetTLVBufToDocument err=0 [00:05:07]Processing tag 1007 (03EF) [00:05:07]Load OK [00:05:07]SetTLVBufToDocument [00:05:07]Processing tag 1014 (03F6) [00:05:07]Malloc new data [00:05:07]Processing tag 1015 (03F7) [00:05:07]Malloc new data [00:05:07]SetTLVBufToDocument err=0 [00:05:07]Processing tag 1007 (03EF) [00:05:07]Load OK [00:05:07]SetTLVBufToDocument [00:05:07]Processing tag 1014 (03F6) [00:05:07]Malloc new data [00:05:07]Processing tag 1015 (03F7) [00:05:07]Malloc new data [00:05:07]SetTLVBufToDocument err=0 [00:05:07]Processing tag 1007 (03EF) [00:05:07]Load OK [00:05:07]SetTLVBufToDocument [00:05:07]Processing tag 1014 (03F6) [00:05:07]Malloc new data [00:05:07]Processing tag 1015 (03F7) [00:05:07]Malloc new data [00:05:07]SetTLVBufToDocument err=0 [00:05:07]SetTLVBufToDocument err=0 [00:05:07]SetTLVBufToDocument err=0 [00:05:07]Processing tag 1133 (046D) [00:05:07]Malloc new data [00:05:07]SetTLVBufToDocument err=0 [00:05:07]Processing tag 1077 (0435) [00:05:07]Malloc new data [00:05:07]SetTLVBufToDocument err=0 [00:05:07]Malloc new data [00:05:07]SAM_PROTO_GetFMData [00:05:07]wFMCommunicate request_size=4 [00:05:07]MH_SAM_APDU [00:05:07]CAPDU: 80 13 03 00 [00:05:07]Write to MH i2c: E2 08 00 F1 02 80 13 03 00 00 00 00 00 72 [00:05:07]Write i2c OK [00:05:07]MH_I2C_Read... [00:05:07]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:05:07]Read from MH i2c: E2 [00:05:07]MH_I2C_Read... [00:05:07]Read from MH i2c: E2 FD 00 [00:05:07]MH_I2C_Read... [00:05:07]Read from MH i2c: E2 FD 00 F1 02 00 C6 04 85 04 C2 04 6E 04 04 00 3B 05 01 00 69 04 A3 00 6F 04 04 00 91 04 01 00 B1 04 05 00 9F 3C 57 1C 03 70 04 05 00 6C C8 17 C0 02 72 04 04 00 33 74 3F 5C 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 77 29 94 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 3C 44 0C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 5C [00:05:07]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 3B 05 01 00 69 04 A3 00 6F 04 04 00 91 04 01 00 B1 04 05 00 9F 3C 57 1C 03 70 04 05 00 6C C8 17 C0 02 72 04 04 00 33 74 3F 5C 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 77 29 94 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 3C 44 0C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 [00:05:08]wFMCommunicate OK [00:05:08]wFMCommunicate request_size=4 [00:05:08]MH_SAM_APDU [00:05:08]CAPDU: 80 17 00 00 [00:05:08]Write to MH i2c: E2 08 00 F2 02 80 17 00 00 00 00 00 00 74 [00:05:08]Write i2c OK [00:05:08]MH_I2C_Read... [00:05:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:08]Read from MH i2c: E2 [00:05:08]MH_I2C_Read... [00:05:08]Read from MH i2c: E2 FD 00 [00:05:08]MH_I2C_Read... [00:05:08]Read from MH i2c: E2 FD 00 F2 02 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 AF [00:05:08]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [00:05:08]wFMCommunicate OK [00:05:08]wFMCommunicate request_size=4 [00:05:08]MH_SAM_APDU [00:05:08]CAPDU: 80 17 00 00 [00:05:08]Write to MH i2c: E2 08 00 F3 02 80 17 00 00 00 00 00 00 75 [00:05:08]Write i2c OK [00:05:08]MH_I2C_Read... [00:05:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:09]Read from MH i2c: E2 [00:05:09]MH_I2C_Read... [00:05:09]Read from MH i2c: E2 FD 00 [00:05:09]MH_I2C_Read... [00:05:09]Read from MH i2c: E2 FD 00 F3 02 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 9C [00:05:09]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [00:05:09]wFMCommunicate OK [00:05:09]wFMCommunicate request_size=4 [00:05:09]MH_SAM_APDU [00:05:09]CAPDU: 80 17 00 00 [00:05:09]Write to MH i2c: E2 08 00 F4 02 80 17 00 00 00 00 00 00 76 [00:05:09]Write i2c OK [00:05:09]MH_I2C_Read... [00:05:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:09]Read from MH i2c: E2 [00:05:09]MH_I2C_Read... [00:05:09]Read from MH i2c: E2 FD 00 [00:05:09]MH_I2C_Read... [00:05:09]Read from MH i2c: E2 FD 00 F4 02 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 F1 [00:05:10]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:05:10]wFMCommunicate OK [00:05:10]wFMCommunicate request_size=4 [00:05:10]MH_SAM_APDU [00:05:10]CAPDU: 80 17 00 00 [00:05:10]Write to MH i2c: E2 08 00 F5 02 80 17 00 00 00 00 00 00 77 [00:05:10]Write i2c OK [00:05:10]MH_I2C_Read... [00:05:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [00:05:10]Read from MH i2c: E2 [00:05:10]MH_I2C_Read... [00:05:10]Read from MH i2c: E2 E3 00 [00:05:10]MH_I2C_Read... [00:05:10]Read from MH i2c: E2 E3 00 F5 02 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 56 [00:05:10]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:05:11]wFMCommunicate OK [00:05:11]SAM_PROTO_GetFMData done [00:05:11]Malloc new data [00:05:11]Malloc new data [00:05:11]Malloc new data [00:05:11]Malloc new data [00:05:11]KKMLoadAndSignCloseShiftData err=0 [00:05:11]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Пайзулдаева А. 17.05.2024 00:05 Смена: 357 РНМ: 0000000000091845 ЗНМ: 0300000119 СНО: Общий режим Чеков за смену: 187 ФД за смену: 189 Всего чеков: 187 ИТОГИ ПРИХОД Чеков: 185 Общий итог: 248622.81 Итого наличными: 99033.00 Итого безнал.: 149589.81 НДС 0% : 0.00 НДС 12% : 26406.14 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2200.35 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 2 Общий итог: 5500.00 Итого наличными: 5500.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 584.18 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 48.68 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 93533.00 НС Приход: 133603810.87 НС Возвр.Прихода: 37037760.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 67590 ФМ: 0000000000871829 ФПД: 240219115965987 [00:05:11]StoreToDocumentArchive [00:05:11]shift 357 fd 67590 [00:05:11]save to /storage/0357/doc_00067590 [00:05:11]save last doc name /storage/0357/doc_00067590 to /storage/kkm_last_doc_name [00:05:11]save OK [00:05:11]Clear old archive folders... [00:05:11]Remove dir /storage/0266 [00:05:11]opendir ok [00:05:11]file . [00:05:11]file .. [00:05:11]file doc_1715904278 [00:05:11]remove file /storage/0266/doc_1715904278 [00:05:11]remove dir /storage/0266 [00:05:11]NVStorageSaveData kkm_registers [00:05:11]File name is /storage/kkm_registers [00:05:11]Write 24 bytes [00:05:11]NVStorageSaveData done [00:05:11]NVStorageSaveData kkm_registers [00:05:11]File name is /storage/kkm_registers [00:05:11]Write 24 bytes [00:05:11]NVStorageSaveData done [00:05:11]ProcessDocumentItem done err = 0, tmpTLVsize=1392 [00:05:11]tlvbuf is 0165B650 [00:05:11]SAM_PROTO_ClearQueue [00:05:11]wFMCommunicate request_size=4 [00:05:11]MH_SAM_APDU [00:05:11]CAPDU: 80 09 00 00 [00:05:11]Write to MH i2c: E2 08 00 F6 02 80 09 00 00 00 00 00 00 6A [00:05:11]Write i2c OK [00:05:11]MH_I2C_Read... [00:05:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:05:11]Read from MH i2c: E2 [00:05:11]MH_I2C_Read... [00:05:11]Read from MH i2c: E2 03 00 [00:05:11]MH_I2C_Read... [00:05:11]Read from MH i2c: E2 03 00 F6 02 00 90 00 6C [00:05:11]RAPDU: 90 00 [00:05:11]wFMCommunicate OK [00:05:11]SAM_PROTO_ClearQueue done [00:05:11]KKMCreateOFDPacket [00:05:11]OFDProtocolAddRootSTLVToBuf [00:05:11]FM_MakeSignedData [00:05:11]FM_MakeSignedData [00:05:11]SAM_PROTO_SignData [00:05:11]wFMCommunicate request_size=4 [00:05:11]MH_SAM_APDU [00:05:11]CAPDU: 80 0D 01 02 [00:05:11]Write to MH i2c: E2 08 00 F7 02 80 0D 01 02 00 00 00 00 72 [00:05:11]Write i2c OK [00:05:11]MH_I2C_Read... [00:05:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:05:11]Read from MH i2c: E2 [00:05:11]MH_I2C_Read... [00:05:11]Read from MH i2c: E2 03 00 [00:05:11]MH_I2C_Read... [00:05:11]Read from MH i2c: E2 03 00 F7 02 00 90 00 6D [00:05:11]RAPDU: 90 00 [00:05:11]wFMCommunicate OK [00:05:11]wFMCommunicate request_size=255 [00:05:11]MH_SAM_APDU [00:05:11]CAPDU: 80 0D 02 02 FA 05 00 70 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 1A 00 D0 9F D0 B0 D0 B9 D0 B7 D1 83 D0 BB D0 B4 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 90 2E F4 03 04 00 2E 9F 46 66 0E 04 04 00 65 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 5E 04 04 00 BB 00 00 00 57 04 04 00 BD 00 00 00 AA 04 DD 04 6E 04 04 00 BB 00 00 00 69 04 A4 00 6F 04 04 00 B9 00 00 00 B1 04 04 00 49 5E OFD Sender: No OFD packet to send [00:05:11]7B 01 70 04 03 00 C4 1C 97 72 04 03 00 85 41 E4 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 E6 4A 28 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 [00:05:11]Write to MH i2c: E2 02 01 F8 02 80 0D 02 02 FA 00 05 00 70 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 1A 00 D0 9F D0 B0 D0 B9 D0 B7 D1 83 D0 BB D0 B4 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 90 2E F4 03 04 00 2E 9F 46 66 0E 04 04 00 65 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 5E 04 04 00 BB 00 00 00 57 04 04 00 BD 00 00 00 AA 04 DD 04 6E 04 04 00 BB 00 00 00 69 04 A4 00 6F 04 04 00 B9 00 00 00 B1 04 04 00 49 5E 7B 01 70 04 03 00 C4 1C 97 72 04 03 00 85 41 E4 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 E6 4A 28 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 00 00 73 [00:05:12]Write i2c OK [00:05:12]MH_I2C_Read... [00:05:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:05:12]Read from MH i2c: E2 [00:05:12]MH_I2C_Read... [00:05:12]Read from MH i2c: E2 03 00 [00:05:12]MH_I2C_Read... [00:05:12]Read from MH i2c: E2 03 00 F8 02 00 90 00 6E [00:05:12]RAPDU: 90 00 [00:05:12]wFMCommunicate OK [00:05:12]wFMCommunicate request_size=255 [00:05:12]MH_SAM_APDU [00:05:12]CAPDU: 80 0D 02 02 FA 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 83 5B 03 6A 04 9F 00 6F 04 04 00 02 00 00 00 B1 04 03 00 70 64 08 70 04 03 00 70 64 08 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 32 E4 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 04 13 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:05:12]Write to MH i2c: E2 02 01 F9 02 80 0D 02 02 FA 00 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 83 5B 03 6A 04 9F 00 6F 04 04 00 02 00 00 00 B1 04 03 00 70 64 08 70 04 03 00 70 64 08 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 32 E4 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 04 13 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 00 D2 [00:05:12]Write i2c OK [00:05:12]MH_I2C_Read... [00:05:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:05:13]Read from MH i2c: E2 [00:05:13]MH_I2C_Read... [00:05:13]Read from MH i2c: E2 03 00 [00:05:13]MH_I2C_Read... [00:05:13]Read from MH i2c: E2 03 00 F9 02 00 90 00 6F [00:05:13]RAPDU: 90 00 [00:05:13]wFMCommunicate OK [00:05:13]wFMCommunicate request_size=255 [00:05:13]MH_SAM_APDU [00:05:13]CAPDU: 80 0D 02 02 FA 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:05:13]Write to MH i2c: E2 02 01 FA 02 80 0D 02 02 FA 00 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 34 [00:05:13]Write i2c OK [00:05:13]MH_I2C_Read... [00:05:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:05:13]Read from MH i2c: E2 [00:05:13]MH_I2C_Read... [00:05:13]Read from MH i2c: E2 03 00 [00:05:13]MH_I2C_Read... [00:05:13]Read from MH i2c: E2 03 00 FA 02 00 90 00 70 [00:05:13]RAPDU: 90 00 [00:05:13]wFMCommunicate OK [00:05:13]wFMCommunicate request_size=255 [00:05:13]MH_SAM_APDU [00:05:13]CAPDU: 80 0D 02 02 FA 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 [00:05:14]Write to MH i2c: E2 02 01 FB 02 80 0D 02 02 FA 00 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 00 00 3A [00:05:14]Write i2c OK [00:05:14]MH_I2C_Read... [00:05:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:05:14]Read from MH i2c: E2 [00:05:14]MH_I2C_Read... [00:05:14]Read from MH i2c: E2 03 00 [00:05:14]MH_I2C_Read... [00:05:14]Read from MH i2c: E2 03 00 FB 02 00 90 00 71 [00:05:14]RAPDU: 90 00 [00:05:14]wFMCommunicate OK [00:05:14]wFMCommunicate request_size=255 [00:05:14]MH_SAM_APDU [00:05:14]CAPDU: 80 0D 02 02 FA 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:05:15]Write to MH i2c: E2 02 01 FC 02 80 0D 02 02 FA 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 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 00 00 15 [00:05:15]Write i2c OK [00:05:15]MH_I2C_Read... [00:05:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:05:15]Read from MH i2c: E2 [00:05:15]MH_I2C_Read... [00:05:15]Read from MH i2c: E2 03 00 [00:05:15]MH_I2C_Read... [00:05:15]Read from MH i2c: E2 03 00 FC 02 00 90 00 72 [00:05:15]RAPDU: 90 00 [00:05:15]wFMCommunicate OK [00:05:15]wFMCommunicate request_size=151 [00:05:15]MH_SAM_APDU [00:05:15]CAPDU: 80 0D 02 02 92 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 06 08 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 35 04 06 00 DA 7A 5F 13 4E 23 [00:05:15]Write to MH i2c: E2 9A 00 FD 02 80 0D 02 02 92 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 06 08 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 35 04 06 00 DA 7A 5F 13 4E 23 00 00 FD [00:05:16]Write i2c OK [00:05:16]MH_I2C_Read... [00:05:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:05:16]Read from MH i2c: E2 [00:05:16]MH_I2C_Read... [00:05:16]Read from MH i2c: E2 03 00 [00:05:16]MH_I2C_Read... [00:05:16]Read from MH i2c: E2 03 00 FD 02 00 90 00 73 [00:05:16]RAPDU: 90 00 [00:05:16]wFMCommunicate OK [00:05:16]wFMCommunicate request_size=4 [00:05:16]MH_SAM_APDU [00:05:16]CAPDU: 80 0D 03 02 [00:05:16]Write to MH i2c: E2 08 00 FE 02 80 0D 03 02 00 00 00 00 7B [00:05:16]Write i2c OK [00:05:16]MH_I2C_Read... [00:05:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:05:16]Read from MH i2c: E2 [00:05:16]MH_I2C_Read... [00:05:16]Read from MH i2c: E2 0B 00 [00:05:16]MH_I2C_Read... [00:05:16]Read from MH i2c: E2 0B 00 FE 02 00 67 4E 6C 27 44 AE D2 6D 90 00 F5 [00:05:16]RAPDU: 67 4E 6C 27 44 AE D2 6D 90 00 [00:05:16]wFMCommunicate OK [00:05:16]SAM_PROTO_SignData done [00:05:16]FM_MakeSignedData done [00:05:16]CreateOFDProtocolMessage [00:05:16]wFMCommunicate request_size=4 [00:05:16]MH_SAM_APDU [00:05:16]CAPDU: 80 11 00 00 [00:05:16]Write to MH i2c: E2 08 00 FF 02 80 11 00 00 00 00 00 00 7B [00:05:16]Write i2c OK [00:05:16]MH_I2C_Read... [00:05:16]Read from MH i2c: E2 [00:05:16]MH_I2C_Read... [00:05:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:05:16]Read from MH i2c: E2 17 00 [00:05:16]MH_I2C_Read... [00:05:16]Read from MH i2c: E2 17 00 FF 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D1 [00:05:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [00:05:16]wFMCommunicate OK [00:05:16]CreateOFDProtocolMessage done [00:05:16]OFDSenderStorePacket 67590 [00:05:16]StoreOFDPacket docnum=67590 [00:05:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 84 05 00 00 A6 AC 7C 05 DF 76 5A 05 01 00 05 00 70 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 1A 00 D0 9F D0 B0 D0 B9 D0 B7 D1 83 D0 BB D0 B4 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 90 2E F4 03 04 00 2E 9F 46 66 0E 04 04 00 65 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 5E 04 04 00 BB 00 00 00 57 04 04 00 BD 00 00 00 AA 04 DD 04 6E 04 04 00 BB 00 00 00 69 04 A4 00 6F 04 04 00 B9 00 00 00 B1 04 04 00 49 5E 7B 01 70 04 03 00 C4 1C 97 72 04 03 00 85 41 E4 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 E6 4A 28 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 83 5B 03 6A 04 9F 00 6F 04 04 00 02 00 00 00 B1 04 03 00 70 64 08 70 04 03 00 70 64 08 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 32 E4 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 04 13 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 06 08 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 35 04 06 00 DA 7A 5F 13 4E 23 67 4E 6C 27 44 AE D2 6D [00:05:16]CheckFolder [00:05:16]dirname=/storage/ofd_packets [00:05:16]CheckFolder done [00:05:16]ProducePacketName [00:05:16]OFD Sender: No OFD packet to send [00:05:16]name=ofd_packets/00067590 [00:05:16]NVStorageSaveData ofd_packets/00067590 [00:05:16]File name is /storage/ofd_packets/00067590 [00:05:16]Write 1442 bytes [00:05:16]NVStorageSaveData done [00:05:16]OFDSenderStorePacket done [00:05:16]KKMCreateOFDPacket done [00:05:16]NVStorageSaveData kkm_last_timestamp [00:05:16]File name is /storage/kkm_last_timestamp [00:05:16]Write 4 bytes [00:05:16]NVStorageSaveData done [00:05:16]ExternCall_PrintAddStr [00:05:16]wPrintStart [00:05:16]Write to MH i2c: 01 00 00 00 03 03 [00:05:16]Write i2c OK [00:05:16]MH_I2C_Read... [00:05:16]Read from MH i2c: 01 [00:05:16]MH_I2C_Read... [00:05:16]Read from MH i2c: 01 07 00 [00:05:16]MH_I2C_Read... [00:05:16]Read from MH i2c: 01 07 00 00 03 00 00 00 00 00 FF 0F 18 [00:05:16]RasterBufferAndPrint [00:05:16]line Отчет о закрытии смены [00:05:16]line ФФД: 1.0 [00:05:16]line ИНН: 02508201610067 [00:05:16]line Кассир: Пайзулдаева А. [00:05:16]line 17.05.2024 00:05 [00:05:16]line Смена: 357 [00:05:16]line РНМ: 0000000000091845 [00:05:16]line ЗНМ: 0300000119 [00:05:16]line СНО: Общий режим [00:05:16]line Чеков за смену: 187 [00:05:16]line ФД за смену: 189 [00:05:16]line Всего чеков: 187 [00:05:16]line ИТОГИ ПРИХОД [00:05:16]line Чеков: 185 [00:05:16]line Общий итог: 248622.81 [00:05:16]line Итого наличными: 99033.00 [00:05:16]line Итого безнал.: 149589.81 [00:05:16]line НДС 0% : 0.00 [00:05:16]line НДС 12% : 26406.14 [00:05:16]line НСП 0% : 0.00 [00:05:16]line НСП 1,50% : 0.00 [00:05:16]line НСП 0,50% : 0.00 [00:05:16]line НСП 5% : 0.00 [00:05:17]line НСП 3% : 0.00 [00:05:17]line НСП 2% : 0.00 [00:05:17]line НСП 1% : 2200.35 [00:05:17]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:05:17]line Чеков: 2 [00:05:17]line Общий итог: 5500.00 [00:05:17]line Итого наличными: 5500.00 [00:05:17]line Итого безнал.: 0.00 [00:05:17]line НДС 0% : 0.00 [00:05:17]line НДС 12% : 584.18 [00:05:17]line НСП 0% : 0.00 [00:05:17]line НСП 1,50% : 0.00 [00:05:17]line НСП 0,50% : 0.00 [00:05:17]line НСП 5% : 0.00 [00:05:17]line НСП 3% : 0.00 [00:05:17]line НСП 2% : 0.00 [00:05:17]line НСП 1% : 48.68 [00:05:17]line ИТОГИ РАСХОД [00:05:17]line Чеков: 0 [00:05:17]line Общий итог: 0.00 [00:05:17]OFD Sender: Processing packet 67590 [packets to send 35, broken 34] [00:05:17]line Итого наличными: 0.00 [00:05:17]ProducePacketName [00:05:17]line Итого безнал.: 0.00 [00:05:17]name=ofd_packets/00067590 [00:05:17]line НДС 0% : 0.00 [00:05:17]OFD Sender: To server: pG, [00:05:17]line НДС 12% : 0.00 [00:05:17]CommunicateWithHost lk.salyk.kg:30040 [00:05:17]line НСП 0% : 0.00 [00:05:17]line НСП 1,50% : 0.00 [00:05:17]line НСП 0,50% : 0.00 [00:05:17]line НСП 5% : 0.00 [00:05:17]line НСП 3% : 0.00 [00:05:17]line НСП 2% : 0.00 [00:05:17]line НСП 1% : 0.00 [00:05:17]line ИТОГИ ВОЗВРАТ РАСХОДА [00:05:17]line Чеков: 0 [00:05:17]line Общий итог: 0.00 [00:05:17]ConnectInit lk.salyk.kg [00:05:17]line Итого наличными: 0.00 [00:05:17]line Итого безнал.: 0.00 [00:05:17]line НДС 0% : 0.00 [00:05:17]line НДС 12% : 0.00 [00:05:17]line НСП 0% : 0.00 [00:05:17]line НСП 1,50% : 0.00 [00:05:17]line НСП 0,50% : 0.00 [00:05:17]line НСП 5% : 0.00 [00:05:17]line НСП 3% : 0.00 [00:05:17]line НСП 2% : 0.00 [00:05:17]line НСП 1% : 0.00 [00:05:17]line Сумма внесений: 0.00 [00:05:17]line Сумма выплат: 0.00 [00:05:17]line Нал. в кассе: 93533.00 [00:05:17]line НС Приход: 133603810.87 [00:05:17]line НС Возвр.Прихода: 37037760.00 [00:05:17]line НС Расход: 0.00 [00:05:17]line НС Возвр.Расхода: 0.00 [00:05:17]line ФД: 67590 [00:05:17]line ФМ: 0000000000871829 [00:05:17]line ФПД: 240219115965987 [00:05:17]written 0, free lines is 4095 [00:05:17]Connected sock=10 [00: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 38 32 39 84 05 00 00 A6 AC 7C 05 DF 76 5A 05 01 00 05 00 70 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 1A 00 D0 9F D0 B0 D0 B9 D0 B7 D1 83 D0 BB D0 B4 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 90 2E F4 03 04 00 2E 9F 46 66 0E 04 04 00 65 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 5E 04 04 00 BB 00 00 00 57 04 04 00 BD 00 00 00 AA 04 DD 04 6E 04 04 00 BB 00 00 00 69 04 A4 00 6F 04 04 00 B9 00 00 00 B1 04 04 00 49 5E 7B 01 70 04 03 00 C4 1C 97 72 04 03 00 85 41 E4 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 E6 4A 28 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 83 5B 03 6A 04 9F 00 6F 04 04 00 02 00 00 00 B1 04 03 00 70 64 08 70 04 03 00 70 64 08 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 32 E4 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 04 13 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 Write to MH i2c: F7 01 03 00 01 00 00 51 00 03 EF 54 03 [00:05:17]0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 Write i2c OK [00:05:17]F6 MH_I2C_Read... [00:05:17]03 Read from MH i2c: 01 01 00 [00:05:17]04 MH_I2C_Read... [00:05:17]F7 Read from MH i2c: 03 01 01 07 00 00 EF 03 0A 00 F6 03 01 00 03 00 F7 [00:05:17]03 MH_I2C_Read... [00:05:17]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 Read from MH i2c: 00 01 EE 07 03 00 09 51 00 F2 03 01 00 00 F3 03 00 00 EE 03 03 00 09 00 00 00 F2 00 03 00 01 79 00 0A 01 DE F3 [00:05:18]03 RasterBufferAndPrint [00:05:18]00 line [00:05:18]00 line [00:05:18]EF line [00:05:18]03 09 00 F6 03 01 00 00 F7 03 00 line [00:05:18]00 EF line [00:05:18]03 09 written 0, free lines is 3118 [00:05:18]00 F6 03 01 00 01 F7 03 00 00 EF 03 09 MH_Cut [00:05:18]00 Write to MH i2c: F6 D1 03 01 01 00 02 F7 03 00 00 EF 03 09 00 00 58 F6 03 03 01 01 2D 00 03 F7 03 00 00 EF 03 09 00 F6 [00:05:18]03 Write i2c OK [00:05:18]01 MH_I2C_Read... [00:05:18]00 Read from MH i2c: 04 D1 F7 [00:05:18]03 MH_I2C_Read... [00:05:18]00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 Read from MH i2c: D1 EF 01 03 00 09 [00:05:18]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 MH_I2C_Read... [00:05:18]00 Read from MH i2c: 01 D1 F7 01 03 00 00 00 EF 03 09 00 F6 03 01 00 58 02 03 F7 00 2C 03 [00:05:18]00 Write to MH i2c: 00 01 EF 00 03 00 09 59 00 F6 03 01 00 03 F7 03 00 00 EF 03 03 5C 09 [00:05:18]00 F6 03 01 00 Write i2c OK [00:05:18]04 MH_I2C_Read... [00:05:18]F7 03 00 00 EF 03 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 06 08 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 35 04 06 00 DA 7A 5F 13 4E 23 67 4E 6C 27 44 AE D2 6D [00:05:19]*** Cut start [00:05:19]*** Purtial cut [00:05:19]*** Stage 1: CUTSNS_PIN = 1 [00:05:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 47 A7 47 00 9A 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 38 32 39 10 04 04 00 06 08 01 00 F4 03 04 00 16 47 46 66 B6 04 01 00 00 9B 55 DC DE 73 52 2A 5D [00:05:19]CommunicateWithHost err = 0 [00:05:19]CheckOFDResponse [00:05:19]1017 (14) - 77093643461234 [00:05:19]1041 (16) - 0000000000871829 [00:05:19]1040 (4) - 67590 [00:05:19]1012 (4) - 16.05.2024 17:49 [00:05:19]1206 (1) - 0 [00:05:19]OFD Sender: Remove packet 67590 [00:05:19]ProducePacketName [00:05:19]name=ofd_packets/00067590 [00:05:19]NVStorageDeleteData [00:05:19]Read from MH i2c: 01 [00:05:19]MH_I2C_Read... [00:05:19]*** Stop cut motor [00:05:19]*** Cut end [00:05:19]Read from MH i2c: 01 07 00 [00:05:19]MH_I2C_Read... [00:05:19]Read from MH i2c: 01 07 00 59 03 00 00 00 00 00 FF 0F 71 [00:05:19]process_action close_shift done [00:05:19]requested_data is exist [00:05:19]produce_requested_data [00:05:19]requested_item fd.num is exist - process it [00:05:19]SAM_PROTO_GetFieldsCounters [00:05:19]wFMCommunicate request_size=4 [00:05:19]MH_SAM_APDU [00:05:19]CAPDU: 80 13 00 00 [00:05:19]Write to MH i2c: E2 08 00 5A 03 80 13 00 00 00 00 00 00 D9 [00:05:19]Write i2c OK [00:05:19]MH_I2C_Read... [00:05:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:05:19]Read from MH i2c: E2 [00:05:19]MH_I2C_Read... [00:05:19]Read from MH i2c: E2 62 00 [00:05:19]MH_I2C_Read... [00:05:19]Read from MH i2c: E2 62 00 5A 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 06 08 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [00: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 06 08 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 BB 00 00 00 5E OFD Sender: No OFD packet to send [00:05:19]04 04 00 BB 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:05:19]wFMCommunicate OK [00:05:19]SAM_PROTO_GetFieldsCounters done [00:05:19]requested_item shift.num is exist - process it [00:05:19]requested_item shift.opened is exist - process it [00:05:19]req_shift_opened [00:05:19]FM_GetShiftState [00:05:19]SAM_PROTO_GetShiftState [00:05:19]wFMCommunicate request_size=4 [00:05:19]MH_SAM_APDU [00:05:19]CAPDU: 80 13 01 00 [00:05:19]Write to MH i2c: E2 08 00 5B 03 80 13 01 00 00 00 00 00 DB [00:05:19]Write i2c OK [00:05:19]MH_I2C_Read... [00:05:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:05:19]Read from MH i2c: E2 [00:05:19]MH_I2C_Read... [00:05:19]Read from MH i2c: E2 0E 00 [00:05:19]MH_I2C_Read... [00:05:19]Read from MH i2c: E2 0E 00 5B 03 00 09 00 00 00 00 00 00 00 00 00 00 90 00 E6 [00:05:19]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:05:19]wFMCommunicate OK [00:05:19]SAM_PROTO_GetShiftState done [00:05:19]FM_GetShiftState done [00:05:19]req_shift_opened done [00:05:19]requested_item shift.open_date is exist - process it [00:05:19]req_shift_open_date [00:05:19]FM_GetShiftState [00:05:19]SAM_PROTO_GetShiftState [00:05:19]wFMCommunicate request_size=4 [00:05:19]MH_SAM_APDU [00:05:19]CAPDU: 80 13 01 00 [00:05:19]Write to MH i2c: E2 08 00 5C 03 80 13 01 00 00 00 00 00 DC [00:05:19]Write i2c OK [00:05:20]MH_I2C_Read... [00:05:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:05:20]Read from MH i2c: E2 [00:05:20]MH_I2C_Read... [00:05:20]Read from MH i2c: E2 0E 00 [00:05:20]MH_I2C_Read... [00:05:20]Read from MH i2c: E2 0E 00 5C 03 00 09 00 00 00 00 00 00 00 00 00 00 90 00 E7 [00:05:20]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:05:20]wFMCommunicate OK [00:05:20]SAM_PROTO_GetShiftState done [00:05:20]FM_GetShiftState done [00:05:20]req_shift_open_date done [00:05:20]produce_requested_data done [00:05:20]produce_requested_data return {"fd.num":67590,"shift.num":357,"shift.opened":0,"shift.open_date":0} [00:05:20]process_action_free close_shift [00:05:20]json_value_free [00:05:20]json_value_free done [00:05:20]process_json_proto returns [00:05:20]Send response to host [00:05:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":67590,"shift.num":357,"shift.opened":0,"shift.open_date":0}}} [00:05:20]free response buf [00:05:20]execute_script done [00:05:20]execute_script returns [00:05:20]free content buf [00:05:20]Sock 7.Close socket [00:05:20]Sock 7.Thread stoped [00:05:24]OFD Sender: No OFD packet to send [00:05:29]OFD Sender: No OFD packet to send [00:05:34]OFD Sender: No OFD packet to send [00:05:39]OFD Sender: No OFD packet to send [00:05:44]OFD Sender: No OFD packet to send [00:05:49]OFD Sender: No OFD packet to send [00:05:54]OFD Sender: No OFD packet to send [00:05:59]OFD Sender: No OFD packet to send [00:06:03]int [00:06:03]Write to MH i2c: 01 00 00 5D 03 60 [00:06:03]*** FLAG_PRN_PAP1 set [00:06:03]Write i2c OK [00:06:03]MH_I2C_Read... [00:06:03]Read from MH i2c: 01 [00:06:03]MH_I2C_Read... [00:06:03]Read from MH i2c: 01 07 00 [00:06:03]MH_I2C_Read... [00:06:03]Read from MH i2c: 01 07 00 5D 03 00 01 00 00 00 FF 0F 76 [00:06:03]state=0 [00:06:03]No paper [00:06:03]int [00:06:03]Write to MH i2c: 01 00 00 5E 03 61 [00:06:03]*** FLAG_PRN_PAP2 set [00:06:03]Write i2c OK [00:06:03]MH_I2C_Read... [00:06:03]Read from MH i2c: 01 [00:06:03]MH_I2C_Read... [00:06:03]Read from MH i2c: 01 07 00 [00:06:03]MH_I2C_Read... [00:06:03]Read from MH i2c: 01 07 00 5E 03 00 03 00 00 00 FF 0F 79 [00:06:03]state=0 [00:06:03]No paper [00:06:03]Cover opened [00:06:04]int [00:06:04]Write to MH i2c: 01 00 00 5F 03 62 [00:06:04]*** FLAG_PRN_PAP2 reset [00:06:04]Write i2c OK [00:06:04]MH_I2C_Read... [00:06:04]Read from MH i2c: 01 [00:06:04]MH_I2C_Read... [00:06:04]Read from MH i2c: 01 07 00 [00:06:04]MH_I2C_Read... [00:06:04]Read from MH i2c: 01 07 00 5F 03 00 01 00 00 00 FF 0F 78 [00:06:04]state=3 [00:06:04]No paper [00:06:04]Cover closed [00:06:04]int [00:06:04]Write to MH i2c: 01 00 00 60 03 63 [00:06:04]*** FLAG_PRN_PAP2 set [00:06:04]Write i2c OK [00:06:04]MH_I2C_Read... [00:06:04]Read from MH i2c: 01 [00:06:04]MH_I2C_Read... [00:06:04]Read from MH i2c: 01 07 00 [00:06:04]MH_I2C_Read... [00:06:04]Read from MH i2c: 01 07 00 60 03 00 03 00 00 00 FF 0F 7B [00:06:04]state=0 [00:06:04]No paper [00:06:04]Cover opened [00:06:04]OFD Sender: No OFD packet to send [00:06:04]int [00:06:04]Write to MH i2c: 01 00 00 61 03 64 [00:06:04]*** FLAG_PRN_PAP2 reset [00:06:04]Write i2c OK [00:06:04]MH_I2C_Read... [00:06:04]Read from MH i2c: 01 [00:06:04]MH_I2C_Read... [00:06:04]Read from MH i2c: 01 07 00 [00:06:04]MH_I2C_Read... [00:06:04]Read from MH i2c: 01 07 00 61 03 00 01 00 00 00 FF 0F 7A [00:06:04]state=3 [00:06:04]No paper [00:06:04]Cover closed [00:06:04]int [00:06:04]Write to MH i2c: 01 00 00 62 03 65 [00:06:04]*** FLAG_PRN_PAP2 set [00:06:04]Write i2c OK [00:06:04]MH_I2C_Read... [00:06:04]Read from MH i2c: 01 [00:06:04]MH_I2C_Read... [00:06:04]Read from MH i2c: 01 07 00 [00:06:05]MH_I2C_Read... [00:06:05]Read from MH i2c: 01 07 00 62 03 00 03 00 00 00 FF 0F 7D [00:06:05]state=0 [00:06:05]No paper [00:06:05]Cover opened [00:06:09]OFD Sender: No OFD packet to send [00:06:10]Write to MH i2c: 01 00 00 63 03 66 [00:06:10]Write i2c OK [00:06:10]MH_I2C_Read... [00:06:10]Read from MH i2c: 01 [00:06:10]MH_I2C_Read... [00:06:10]Read from MH i2c: 01 07 00 [00:06:10]MH_I2C_Read... [00:06:10]Read from MH i2c: 01 07 00 63 03 00 03 00 00 00 FF 0F 7E [00:06:10]state=3 [00:06:10]No paper [00:06:10]Cover opened [00:06:14]OFD Sender: No OFD packet to send [00:06:15]Write to MH i2c: 01 00 00 64 03 67 [00:06:15]Write i2c OK [00:06:15]MH_I2C_Read... [00:06:15]Read from MH i2c: 01 [00:06:15]MH_I2C_Read... [00:06:15]Read from MH i2c: 01 07 00 [00:06:15]MH_I2C_Read... [00:06:15]Read from MH i2c: 01 07 00 64 03 00 03 00 00 00 FF 0F 7F [00:06:15]state=3 [00:06:15]No paper [00:06:15]Cover opened [00:06:19]OFD Sender: No OFD packet to send [00:06:20]Write to MH i2c: 01 00 00 65 03 68 [00:06:20]Write i2c OK [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: 01 [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: 01 07 00 [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: 01 07 00 65 03 00 03 00 00 00 FF 0F 80 [00:06:20]state=3 [00:06:20]No paper [00:06:20]Cover opened [00:06:21]int [00:06:21]Write to MH i2c: 01 00 00 66 03 69 [00:06:21]*** FLAG_PRN_PAP1 reset [00:06:21]*** FLAG_PRN_PAP2 reset [00:06:21]Write i2c OK [00:06:21]MH_I2C_Read... [00:06:21]Read from MH i2c: 01 [00:06:21]MH_I2C_Read... [00:06:21]Read from MH i2c: 01 07 00 [00:06:21]MH_I2C_Read... [00:06:21]Read from MH i2c: 01 07 00 66 03 00 00 00 00 00 FF 0F 7E [00:06:21]state=3 [00:06:21]Cover closed [00:06:24]OFD Sender: No OFD packet to send [00:06:29]OFD Sender: No OFD packet to send [00:06:34]OFD Sender: No OFD packet to send [00:06:39]OFD Sender: No OFD packet to send [00:06:44]OFD Sender: No OFD packet to send [00:06:49]OFD Sender: No OFD packet to send [00:06:54]OFD Sender: No OFD packet to send [00:06:59]OFD Sender: No OFD packet to send [00:07:04]OFD Sender: No OFD packet to send [00:07:09]OFD Sender: No OFD packet to send [00:07:14]OFD Sender: No OFD packet to send [00:07:19]OFD Sender: No OFD packet to send [00:07:24]OFD Sender: No OFD packet to send [00:07:29]OFD Sender: No OFD packet to send [00:07:34]OFD Sender: No OFD packet to send [00:07:39]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:55]OFD Sender: No OFD packet to send [00:09:00]OFD Sender: No OFD packet to send [00:09:05]OFD Sender: No OFD packet to send [00:09:10]OFD Sender: No OFD packet to send [00:09:15]OFD Sender: No OFD packet to send [00:09:20]OFD Sender: No OFD packet to send [00:09:25]OFD Sender: No OFD packet to send [00:09:30]OFD Sender: No OFD packet to send [00:09:35]OFD Sender: No OFD packet to send [00:09:40]OFD Sender: No OFD packet to send [00:09:45]OFD Sender: No OFD packet to send [00:09:50]OFD Sender: No OFD packet to send [00:09:55]OFD Sender: No OFD packet to send [00:10:00]OFD Sender: No OFD packet to send [00:10:05]OFD Sender: No OFD packet to send [00:10:10]OFD Sender: No OFD packet to send [00:10:15]OFD Sender: No OFD packet to send [00:10:20]OFD Sender: No OFD packet to send [00:10:25]OFD Sender: No OFD packet to send [00:10:30]OFD Sender: No OFD packet to send [00:10:35]OFD Sender: No OFD packet to send [00:10:40]OFD Sender: No OFD packet to send [00:10:45]OFD Sender: No OFD packet to send [00:10:50]OFD Sender: No OFD packet to send [00:10:55]OFD Sender: No OFD packet to send [00:11:00]OFD Sender: No OFD packet to send [00:11:05]OFD Sender: No OFD packet to send [00:11:10]OFD Sender: No OFD packet to send [00:11:15]OFD Sender: No OFD packet to send [00:11:20]OFD Sender: No OFD packet to send [00:11:25]OFD Sender: No OFD packet to send [00:11:30]OFD Sender: No OFD packet to send [00:11:35]OFD Sender: No OFD packet to send [00:11:40]OFD Sender: No OFD packet to send [00:11:45]OFD Sender: No OFD packet to send [00:11:50]OFD Sender: No OFD packet to send [00:11:55]OFD Sender: No OFD packet to send [00:12:00]OFD Sender: No OFD packet to send [00:12:05]OFD Sender: No OFD packet to send [00:12:10]OFD Sender: No OFD packet to send [00:12:15]OFD Sender: No OFD packet to send [00:12:20]OFD Sender: No OFD packet to send [00:12:25]OFD Sender: No OFD packet to send [00:12:30]OFD Sender: No OFD packet to send [00:12:35]OFD Sender: No OFD packet to send [00:12:40]OFD Sender: No OFD packet to send [00:12:45]OFD Sender: No OFD packet to send [00:12:50]OFD Sender: No OFD packet to send [00:12:55]OFD Sender: No OFD packet to send [00:13:00]OFD Sender: No OFD packet to send [00:13:05]OFD Sender: No OFD packet to send [00:13:10]OFD Sender: No OFD packet to send [00:13:15]OFD Sender: No OFD packet to send [00:13:20]OFD Sender: No OFD packet to send [00:13:25]OFD Sender: No OFD packet to send [00:13:30]OFD Sender: No OFD packet to send [00:13:35]OFD Sender: No OFD packet to send [00:13:40]OFD Sender: No OFD packet to send [00:13:45]OFD Sender: No OFD packet to send [00:13:50]OFD Sender: No OFD packet to send [00:13:55]OFD Sender: No OFD packet to send [00:14:00]OFD Sender: No OFD packet to send [00:14:05]OFD Sender: No OFD packet to send [00:14:10]OFD Sender: No OFD packet to send [00:14:15]OFD Sender: No OFD packet to send [00:14:20]OFD Sender: No OFD packet to send [00:14:25]OFD Sender: No OFD packet to send [00:14:30]OFD Sender: No OFD packet to send [00:14:35]OFD Sender: No OFD packet to send [00:14:40]OFD Sender: No OFD packet to send [00:14:45]OFD Sender: No OFD packet to send [00:14:50]OFD Sender: No OFD packet to send [00:14:55]OFD Sender: No OFD packet to send [00:15:00]OFD Sender: No OFD packet to send [00:15:05]OFD Sender: No OFD packet to send [00:15:10]OFD Sender: No OFD packet to send [00:15:15]OFD Sender: No OFD packet to send [00:15:20]OFD Sender: No OFD packet to send [00:15:25]OFD Sender: No OFD packet to send [00:15:30]OFD Sender: No OFD packet to send [00:15:35]OFD Sender: No OFD packet to send [00:15:40]OFD Sender: No OFD packet to send [00:15:45]OFD Sender: No OFD packet to send [00:15:50]OFD Sender: No OFD packet to send [00:15:55]OFD Sender: No OFD packet to send [00:16:00]OFD Sender: No OFD packet to send [00:16:05]OFD Sender: No OFD packet to send [00:16:10]OFD Sender: No OFD packet to send [00:16:15]OFD Sender: No OFD packet to send [00:16:20]OFD Sender: No OFD packet to send [00:16:25]OFD Sender: No OFD packet to send [00:16:30]OFD Sender: No OFD packet to send [00:16:35]OFD Sender: No OFD packet to send [00:16:40]OFD Sender: No OFD packet to send [00:16:45]OFD Sender: No OFD packet to send [00:16:50]OFD Sender: No OFD packet to send [00:16:55]OFD Sender: No OFD packet to send [00:17:00]OFD Sender: No OFD packet to send [00:17:05]OFD Sender: No OFD packet to send [00:17:10]OFD Sender: No OFD packet to send [00:17:15]OFD Sender: No OFD packet to send [00:17:20]OFD Sender: No OFD packet to send [00:17:25]OFD Sender: No OFD packet to send [00:17:30]OFD Sender: No OFD packet to send [00:17:35]OFD Sender: No OFD packet to send [00:17:40]OFD Sender: No OFD packet to send [00:17:43]accept exits with 9 [00:17:43]New connection [00:17:43]New thread 3067538788 created [00:17:43]Thread 3067395428 joined [00:17:43]Waiting for new connection... [00:17:43] Sock 9.Parse request [00:17:43]Sock 9.Check first char [00:17:43]Sock 9.First char is OK [00:17:43]request: POST /json_proto HTTP/1.0 [00:17:43]Method: POST [00:17:43]URL: /json_proto [00:17:43]Method is POST - this is cgi request [00:17:43]url: /json_proto [00:17:43]query_string will be loaded in cgi processing [00:17:43]execute_cgi json_proto POST (null) [00:17:43]execute_cgi path=json_proto method=POST [00:17:43]POST find Content-Length [00:17:43]Host: 172.17.41.195:8080 [00:17:43]Content-Length: 215 [00:17:43]Content-Type: application/json [00:17:43] [00:17:43]POST finish read [00:17:43]Found Content-Length = 215 [00:17:43]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:17:43]execute_script... [00:17:43]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:17:43]POST & json_proto [00:17:43]process_json_proto [00:17:43]json parsed OK: [00:17:43]protocol is kg_v1.0 [00:17:43]action value=get_value [00:17:43]process_action get_value [00:17:43]cmd_get_value [00:17:43]process_action get_value done [00:17:43]requested_data is exist [00:17:43]produce_requested_data [00:17:43]requested_item kkm.sn is exist - process it [00:17:43]requested_item kkm.ver is exist - process it [00:17:43]requested_item fm.sn is exist - process it [00:17:43]wFMCommunicate request_size=4 [00:17:43]MH_SAM_APDU [00:17:43]CAPDU: 80 11 00 00 [00:17:43]Write to MH i2c: E2 08 00 67 03 80 11 00 00 00 00 00 00 E4 [00:17:43]Write i2c OK [00:17:43]MH_I2C_Read... [00:17:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:17:43]Read from MH i2c: E2 [00:17:43]MH_I2C_Read... [00:17:43]Read from MH i2c: E2 17 00 [00:17:43]MH_I2C_Read... [00:17:43]Read from MH i2c: E2 17 00 67 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3A [00:17:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [00:17:43]wFMCommunicate OK [00:17:43]requested_item fd.num is exist - process it [00:17:43]SAM_PROTO_GetFieldsCounters [00:17:43]wFMCommunicate request_size=4 [00:17:43]MH_SAM_APDU [00:17:43]CAPDU: 80 13 00 00 [00:17:43]Write to MH i2c: E2 08 00 68 03 80 13 00 00 00 00 00 00 E7 [00:17:43]Write i2c OK [00:17:43]MH_I2C_Read... [00:17:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:17:43]Read from MH i2c: E2 [00:17:43]MH_I2C_Read... [00:17:43]Read from MH i2c: E2 62 00 [00:17:43]MH_I2C_Read... [00:17:43]Read from MH i2c: E2 62 00 68 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 06 08 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [00:17: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 06 08 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:17:43]wFMCommunicate OK [00:17:43]SAM_PROTO_GetFieldsCounters done [00:17:43]requested_item shift.num is exist - process it [00:17:43]requested_item shift.opened is exist - process it [00:17:43]req_shift_opened [00:17:43]FM_GetShiftState [00:17:43]SAM_PROTO_GetShiftState [00:17:43]wFMCommunicate request_size=4 [00:17:43]MH_SAM_APDU [00:17:43]CAPDU: 80 13 01 00 [00:17:43]Write to MH i2c: E2 08 00 69 03 80 13 01 00 00 00 00 00 E9 [00:17:43]Write i2c OK [00:17:43]MH_I2C_Read... [00:17:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:17:43]Read from MH i2c: E2 [00:17:43]MH_I2C_Read... [00:17:43]Read from MH i2c: E2 0E 00 [00:17:43]MH_I2C_Read... [00:17:43]Read from MH i2c: E2 0E 00 69 03 00 09 00 00 00 00 00 00 00 00 00 00 90 00 F4 [00:17:43]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:17:43]wFMCommunicate OK [00:17:43]SAM_PROTO_GetShiftState done [00:17:43]FM_GetShiftState done [00:17:43]req_shift_opened done [00:17:43]requested_item shift.open_date is exist - process it [00:17:43]req_shift_open_date [00:17:43]FM_GetShiftState [00:17:43]SAM_PROTO_GetShiftState [00:17:43]wFMCommunicate request_size=4 [00:17:43]MH_SAM_APDU [00:17:43]CAPDU: 80 13 01 00 [00:17:43]Write to MH i2c: E2 08 00 6A 03 80 13 01 00 00 00 00 00 EA [00:17:43]Write i2c OK [00:17:43]MH_I2C_Read... [00:17:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:17:43]Read from MH i2c: E2 [00:17:43]MH_I2C_Read... [00:17:43]Read from MH i2c: E2 0E 00 [00:17:43]MH_I2C_Read... [00:17:43]Read from MH i2c: E2 0E 00 6A 03 00 09 00 00 00 00 00 00 00 00 00 00 90 00 F5 [00:17:43]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:17:43]wFMCommunicate OK [00:17:43]SAM_PROTO_GetShiftState done [00:17:43]FM_GetShiftState done [00:17:43]req_shift_open_date done [00:17:43]produce_requested_data done [00:17:43]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67590,"shift.num":357,"shift.opened":0,"shift.open_date":0} [00:17:43]process_action_free get_value [00:17:43]json_value_free [00:17:43]json_value_free done [00:17:43]process_json_proto returns [00:17:43]Send response to host [00:17:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67590,"shift.num":357,"shift.opened":0,"shift.open_date":0}}} [00:17:43]free response buf [00:17:43]execute_script done [00:17:43]execute_script returns [00:17:43]free content buf [00:17:43]Sock 9.Close socket [00:17:43]Sock 9.Thread stoped [00:17:43]accept exits with 7 [00:17:43]New connection [00:17:43]New thread 3067395428 created [00:17:43]Thread 3067538788 joined [00:17:43]Waiting for new connection... [00:17:43] Sock 7.Parse request [00:17:43]Sock 7.Check first char [00:17:43]Sock 7.First char is OK [00:17:43]request: POST /json_proto HTTP/1.0 [00:17:43]Method: POST [00:17:43]URL: /json_proto [00:17:43]Method is POST - this is cgi request [00:17:43]url: /json_proto [00:17:43]query_string will be loaded in cgi processing [00:17:43]execute_cgi json_proto POST (null) [00:17:43]execute_cgi path=json_proto method=POST [00:17:43]POST find Content-Length [00:17:43]Host: 172.17.41.195:8080 [00:17:43]Content-Length: 331 [00:17:43]Content-Type: application/json [00:17:43] [00:17:43]POST finish read [00:17:43]Found Content-Length = 331 [00:17:43]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:17:43]execute_script... [00:17:43]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:17:43]POST & json_proto [00:17:43]process_json_proto [00:17:43]json parsed OK: [00:17:43]protocol is kg_v1.0 [00:17:43]action value=get_value [00:17:43]process_action get_value [00:17:43]cmd_get_value [00:17:43]process_action get_value done [00:17:43]requested_data is exist [00:17:43]produce_requested_data [00:17:43]requested_item fm.sale.total is exist - process it [00:17:43]SAM_PROTO_GetFMData [00:17:43]wFMCommunicate request_size=4 [00:17:43]MH_SAM_APDU [00:17:43]CAPDU: 80 13 03 00 [00:17:43]Write to MH i2c: E2 08 00 6B 03 80 13 03 00 00 00 00 00 ED [00:17:43]Write i2c OK [00:17:43]MH_I2C_Read... [00:17:44]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:17:44]Read from MH i2c: E2 [00:17:44]MH_I2C_Read... [00:17:44]Read from MH i2c: E2 FD 00 [00:17:44]MH_I2C_Read... [00:17:44]Read from MH i2c: E2 FD 00 6B 03 00 C6 04 85 04 C2 04 6E 04 04 00 3B 05 01 00 69 04 A3 00 6F 04 04 00 91 04 01 00 B1 04 05 00 9F 3C 57 1C 03 70 04 05 00 6C C8 17 C0 02 72 04 04 00 33 74 3F 5C 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 77 29 94 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 3C 44 0C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 D7 [00:17:44]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 3B 05 01 00 69 04 A3 00 6F 04 04 00 91 04 01 00 B1 04 05 00 9F 3C 57 1C 03 70 04 05 00 6C C8 17 C0 02 72 04 04 00 33 74 3F 5C 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 77 29 94 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 3C 44 0C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 [00:17:44]wFMCommunicate OK [00:17:44]wFMCommunicate request_size=4 [00:17:44]MH_SAM_APDU [00:17:44]CAPDU: 80 17 00 00 [00:17:44]Write to MH i2c: E2 08 00 6C 03 80 17 00 00 00 00 00 00 EF [00:17:44]Write i2c OK [00:17:44]MH_I2C_Read... [00:17:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:44]Read from MH i2c: E2 [00:17:44]MH_I2C_Read... [00:17:44]Read from MH i2c: E2 FD 00 [00:17:44]MH_I2C_Read... [00:17:44]Read from MH i2c: E2 FD 00 6C 03 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 2A [00:17:44]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [00:17:44]wFMCommunicate OK [00:17:44]wFMCommunicate request_size=4 [00:17:44]MH_SAM_APDU [00:17:44]CAPDU: 80 17 00 00 [00:17:44]Write to MH i2c: E2 08 00 6D 03 80 17 00 00 00 00 00 00 F0 [00:17:44]Write i2c OK [00:17:44]MH_I2C_Read... [00:17:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:44]Read from MH i2c: E2 [00:17:44]MH_I2C_Read... [00:17:44]Read from MH i2c: E2 FD 00 [00:17:44]MH_I2C_Read... [00:17:44]Read from MH i2c: E2 FD 00 6D 03 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 17 [00:17:44]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [00:17:44]wFMCommunicate OK [00:17:44]wFMCommunicate request_size=4 [00:17:44]MH_SAM_APDU [00:17:44]CAPDU: 80 17 00 00 [00:17:44]Write to MH i2c: E2 08 00 6E 03 80 17 00 00 00 00 00 00 F1 [00:17:44]Write i2c OK [00:17:44]MH_I2C_Read... [00:17:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:45]Read from MH i2c: E2 [00:17:45]MH_I2C_Read... [00:17:45]Read from MH i2c: E2 FD 00 [00:17:45]MH_I2C_Read... [00:17:45]Read from MH i2c: E2 FD 00 6E 03 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 6C [00:17:45]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:17:45]wFMCommunicate OK [00:17:45]wFMCommunicate request_size=4 [00:17:45]MH_SAM_APDU [00:17:45]CAPDU: 80 17 00 00 [00:17:45]Write to MH i2c: E2 08 00 6F 03 80 17 00 00 00 00 00 00 F2 [00:17:45]Write i2c OK [00:17:45]MH_I2C_Read... [00:17:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [00:17:45]Read from MH i2c: E2 [00:17:45]MH_I2C_Read... [00:17:45]Read from MH i2c: E2 E3 00 [00:17:45]MH_I2C_Read... [00:17:45]Read from MH i2c: E2 E3 00 6F 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D1 [00:17:45]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:17:45]wFMCommunicate OK [00:17:45]SAM_PROTO_GetFMData done [00:17:45]requested_item fm.sale_refund.total is exist - process it [00:17:45]requested_item fm.buy.total is exist - process it [00:17:45]requested_item shift.sale.total is exist - process it [00:17:45]SAM_PROTO_GetShiftData [00:17:45]wFMCommunicate request_size=4 [00:17:45]MH_SAM_APDU [00:17:45]CAPDU: 80 13 02 00 [00:17:45]Write to MH i2c: E2 08 00 70 03 80 13 02 00 00 00 00 00 F1 [00:17:45]Write i2c OK [00:17:45]MH_I2C_Read... [00:17:45]OFD Sender: No OFD packet to send [00:17:45]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:17:45]Read from MH i2c: E2 [00:17:45]MH_I2C_Read... [00:17:45]Read from MH i2c: E2 FD 00 [00:17:45]MH_I2C_Read... [00:17:45]Read from MH i2c: E2 FD 00 70 03 00 BA 04 AA 04 B6 04 6E 04 04 00 BB 00 00 00 69 04 9D 00 6F 04 04 00 B9 00 00 00 B1 04 04 00 49 5E 7B 01 70 04 03 00 C4 1C 97 72 04 03 00 85 41 E4 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 E6 4A 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 83 5B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 70 64 08 70 04 03 00 70 64 08 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 32 E4 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 BC [00:17:45]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 BB 00 00 00 69 04 9D 00 6F 04 04 00 B9 00 00 00 B1 04 04 00 49 5E 7B 01 70 04 03 00 C4 1C 97 72 04 03 00 85 41 E4 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 E6 4A 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 83 5B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 70 64 08 70 04 03 00 70 64 08 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 32 E4 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:17:45]wFMCommunicate OK [00:17:45]wFMCommunicate request_size=4 [00:17:45]MH_SAM_APDU [00:17:45]CAPDU: 80 17 00 00 [00:17:45]Write to MH i2c: E2 08 00 71 03 80 17 00 00 00 00 00 00 F4 [00:17:45]Write i2c OK [00:17:45]MH_I2C_Read... [00:17:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:46]Read from MH i2c: E2 [00:17:46]MH_I2C_Read... [00:17:46]Read from MH i2c: E2 FD 00 [00:17:46]MH_I2C_Read... [00:17:46]Read from MH i2c: E2 FD 00 71 03 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 04 13 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B5 [00:17:46]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 04 13 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:17:46]wFMCommunicate OK [00:17:46]wFMCommunicate request_size=4 [00:17:46]MH_SAM_APDU [00:17:46]CAPDU: 80 17 00 00 [00:17:46]Write to MH i2c: E2 08 00 72 03 80 17 00 00 00 00 00 00 F5 [00:17:46]Write i2c OK [00:17:46]MH_I2C_Read... [00:17:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:46]Read from MH i2c: E2 [00:17:46]MH_I2C_Read... [00:17:46]Read from MH i2c: E2 FD 00 [00:17:46]MH_I2C_Read... [00:17:46]Read from MH i2c: E2 FD 00 72 03 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 21 [00:17:46]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:17:46]wFMCommunicate OK [00:17:46]wFMCommunicate request_size=4 [00:17:46]MH_SAM_APDU [00:17:46]CAPDU: 80 17 00 00 [00:17:46]Write to MH i2c: E2 08 00 73 03 80 17 00 00 00 00 00 00 F6 [00:17:46]Write i2c OK [00:17:46]MH_I2C_Read... [00:17:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:46]Read from MH i2c: E2 [00:17:46]MH_I2C_Read... [00:17:46]Read from MH i2c: E2 FD 00 [00:17:46]MH_I2C_Read... [00:17:46]Read from MH i2c: E2 FD 00 73 03 00 00 EF 03 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 90 00 6E [00:17:46]RAPDU: 00 EF 03 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 90 00 [00:17:46]wFMCommunicate OK [00:17:46]wFMCommunicate request_size=4 [00:17:46]MH_SAM_APDU [00:17:46]CAPDU: 80 17 00 00 [00:17:46]Write to MH i2c: E2 08 00 74 03 80 17 00 00 00 00 00 00 F7 [00:17:46]Write i2c OK [00:17:46]MH_I2C_Read... [00:17:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [00:17:47]Read from MH i2c: E2 [00:17:47]MH_I2C_Read... [00:17:47]Read from MH i2c: E2 D7 00 [00:17:47]MH_I2C_Read... [00:17:47]Read from MH i2c: E2 D7 00 74 03 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 DA [00:17:47]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:17:47]wFMCommunicate OK [00:17:47]SAM_PROTO_GetShiftData done [00:17:47]requested_item shift.sale.total_cash is exist - process it [00:17:47]requested_item shift.sale_refund.total is exist - process it [00:17:47]requested_item shift.sale_refund.total_cash is exist - process it [00:17:47]requested_item shift.buy.total is exist - process it [00:17:47]requested_item shift.buy.total_cash is exist - process it [00:17:47]produce_requested_data done [00:17:47]produce_requested_data return {"fm.sale.total":133603810.87,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":248622.81,"shift.sale.total_cash":99033.00,"shift.sale_refund.total":5500.00,"shift.sale_refund.total_cash":5500.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:17:47]process_action_free get_value [00:17:47]json_value_free [00:17:47]json_value_free done [00:17:47]process_json_proto returns [00:17:47]Send response to host [00:17:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133603810.87,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":248622.81,"shift.sale.total_cash":99033.00,"shift.sale_refund.total":5500.00,"shift.sale_refund.total_cash":5500.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:17:47]free response buf [00:17:47]execute_script done [00:17:47]execute_script returns [00:17:47]free content buf [00:17:47]Sock 7.Close socket [00:17:47]Sock 7.Thread stoped [00:17:47]accept exits with 9 [00:17:47]New connection [00:17:47]New thread 3067538788 created [00:17:47]Thread 3067395428 joined [00:17:47]Waiting for new connection... [00:17:47] Sock 9.Parse request [00:17:47]Sock 9.Check first char [00:17:47]Sock 9.First char is OK [00:17:47]request: POST /json_proto HTTP/1.0 [00:17:47]Method: POST [00:17:47]URL: /json_proto [00:17:47]Method is POST - this is cgi request [00:17:47]url: /json_proto [00:17:47]query_string will be loaded in cgi processing [00:17:47]execute_cgi json_proto POST (null) [00:17:47]execute_cgi path=json_proto method=POST [00:17:47]POST find Content-Length [00:17:47]Host: 172.17.41.195:8080 [00:17:47]Content-Length: 246 [00:17:47]Content-Type: application/json [00:17:47] [00:17:47]POST finish read [00:17:47]Found Content-Length = 246 [00:17:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0410\u0434\u0438\u0448\u043E\u0432 \u0418." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:17:47]execute_script... [00:17:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0410\u0434\u0438\u0448\u043E\u0432 \u0418." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:17:47]POST & json_proto [00:17:47]process_json_proto [00:17:47]json parsed OK: [00:17:47]protocol is kg_v1.0 [00:17:47]action value=open_shift [00:17:47]process_action open_shift [00:17:47]cmd_open_shift [00:17:47]MH_GetDate [00:17:47]Write to MH i2c: F0 00 00 75 03 67 [00:17:47]Write i2c OK [00:17:47]MH_I2C_Read... [00:17:47]Read from MH i2c: F0 [00:17:47]MH_I2C_Read... [00:17:47]Read from MH i2c: F0 09 00 [00:17:47]MH_I2C_Read... [00:17:47]Read from MH i2c: F0 09 00 75 03 00 2B A2 46 66 FC 21 6F 64 D9 [00:17:47]GetLastDocTimeStamp 1715904302 [00:17:47]current date 1715905067 [00:17:47]FM_GetShiftState [00:17:47]SAM_PROTO_GetShiftState [00:17:47]wFMCommunicate request_size=4 [00:17:47]MH_SAM_APDU [00:17:47]CAPDU: 80 13 01 00 [00:17:47]Write to MH i2c: E2 08 00 76 03 80 13 01 00 00 00 00 00 F6 [00:17:47]Write i2c OK [00:17:47]MH_I2C_Read... [00:17:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:17:47]Read from MH i2c: E2 [00:17:47]MH_I2C_Read... [00:17:47]Read from MH i2c: E2 0E 00 [00:17:47]MH_I2C_Read... [00:17:47]Read from MH i2c: E2 0E 00 76 03 00 09 00 00 00 00 00 00 00 00 00 00 90 00 01 [00:17:47]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:17:47]wFMCommunicate OK [00:17:47]SAM_PROTO_GetShiftState done [00:17:47]FM_GetShiftState done [00:17:47]KKMCreateOpenShiftDocument [00:17:47]Load OK [00:17:47]Malloc new data [00:17:47]MH_GetDate [00:17:47]Write to MH i2c: F0 00 00 77 03 69 [00:17:47]Write i2c OK [00:17:47]MH_I2C_Read... [00:17:47]Read from MH i2c: F0 [00:17:47]MH_I2C_Read... [00:17:47]Read from MH i2c: F0 09 00 [00:17:47]MH_I2C_Read... [00:17:47]Read from MH i2c: F0 09 00 77 03 00 2C A2 46 66 FC 21 6F 64 DC [00:17:47]Malloc new data [00:17:47]KKMCreateOpenShiftDocument OK [00:17:47]KKMSetOpenShiftData OK [00:17:47]ProcessDocumentItem done err = 0, tmpTLVsize=179 [00:17:47]tlvbuf is 01657EA0 [00:17:47]KKMLoadAndSignOpenShiftData [00:17:47]SAM_PROTO_ProcessDocument [00:17:47]wFMCommunicate request_size=9 [00:17:47]MH_SAM_APDU [00:17:47]CAPDU: 80 15 01 00 04 02 00 B3 00 [00:17:47]Write to MH i2c: E2 0C 00 78 03 80 15 01 00 04 00 02 00 B3 00 00 00 B7 [00:17:47]Write i2c OK [00:17:47]MH_I2C_Read... [00:17:47]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:17:47]Read from MH i2c: E2 [00:17:47]MH_I2C_Read... [00:17:47]Read from MH i2c: E2 03 00 [00:17:47]MH_I2C_Read... [00:17:47]Read from MH i2c: E2 03 00 78 03 00 90 00 EF [00:17:47]RAPDU: 90 00 [00:17:47]wFMCommunicate OK [00:17:47]wFMCommunicate request_size=23 [00:17:47]MH_SAM_APDU [00:17:47]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:17:47]Write to MH i2c: E2 1A 00 79 03 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 F1 [00:17:47]Write i2c OK [00:17:47]MH_I2C_Read... [00:17:47]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:17:47]Read from MH i2c: E2 [00:17:47]MH_I2C_Read... [00:17:47]Read from MH i2c: E2 03 00 [00:17:47]MH_I2C_Read... [00:17:47]Read from MH i2c: E2 03 00 79 03 00 90 00 F0 [00:17:47]RAPDU: 90 00 [00:17:47]wFMCommunicate OK [00:17:47]wFMCommunicate request_size=25 [00:17:47]MH_SAM_APDU [00:17:47]CAPDU: 80 15 02 00 14 FD 03 10 00 D0 90 D0 B4 D0 B8 D1 88 D0 BE D0 B2 20 D0 98 2E [00:17:47]Write to MH i2c: E2 1C 00 7A 03 80 15 02 00 14 00 FD 03 10 00 D0 90 D0 B4 D0 B8 D1 88 D0 BE D0 B2 20 D0 98 2E 00 00 C0 [00:17:47]Write i2c OK [00:17:47]MH_I2C_Read... [00:17:47]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:17:47]Read from MH i2c: E2 [00:17:47]MH_I2C_Read... [00:17:47]Read from MH i2c: E2 03 00 [00:17:47]MH_I2C_Read... [00:17:47]Read from MH i2c: E2 03 00 7A 03 00 90 00 F1 [00:17:47]RAPDU: 90 00 [00:17:47]wFMCommunicate OK [00:17:47]wFMCommunicate request_size=73 [00:17:47]MH_SAM_APDU [00:17:47]CAPDU: 80 15 02 00 44 F1 03 40 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A2 D0 BE D0 BB D0 BE D0 B9 D0 BA D0 BE D0 BD 2C 20 D1 83 D0 BB 2E 20 D0 94 D0 AD D0 A3 2C 20 34 30 2E 34 37 33 33 30 32 2C 20 37 32 2E 37 35 36 36 39 39 [00:17:47]Write to MH i2c: E2 4C 00 7B 03 80 15 02 00 44 00 F1 03 40 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A2 D0 BE D0 BB D0 BE D0 B9 D0 BA D0 BE D0 BD 2C 20 D1 83 D0 BB 2E 20 D0 94 D0 AD D0 A3 2C 20 34 30 2E 34 37 33 33 30 32 2C 20 37 32 2E 37 35 36 36 39 39 00 00 22 [00:17:47]Write i2c OK [00:17:47]MH_I2C_Read... [00:17:47]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:17:47]Read from MH i2c: E2 [00:17:47]MH_I2C_Read... [00:17:47]Read from MH i2c: E2 03 00 [00:17:47]MH_I2C_Read... [00:17:47]Read from MH i2c: E2 03 00 7B 03 00 90 00 F2 [00:17:47]RAPDU: 90 00 [00:17:47]wFMCommunicate OK [00:17:47]wFMCommunicate request_size=50 [00:17:47]MH_SAM_APDU [00:17:47]CAPDU: 80 15 02 00 2D A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 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:17:47]Write to MH i2c: E2 35 00 7C 03 80 15 02 00 2D 00 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 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 78 [00:17:47]Write i2c OK [00:17:47]MH_I2C_Read... [00:17:47]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:17:47]Read from MH i2c: E2 [00:17:47]MH_I2C_Read... [00:17:47]Read from MH i2c: E2 03 00 [00:17:47]MH_I2C_Read... [00:17:47]Read from MH i2c: E2 03 00 7C 03 00 90 00 F3 [00:17:47]RAPDU: 90 00 [00:17:47]wFMCommunicate OK [00:17:47]wFMCommunicate request_size=13 [00:17:47]MH_SAM_APDU [00:17:47]CAPDU: 80 15 02 00 08 F4 03 04 00 2C A2 46 66 [00:17:47]Write to MH i2c: E2 10 00 7D 03 80 15 02 00 08 00 F4 03 04 00 2C A2 46 66 00 00 85 [00:17:47]Write i2c OK [00:17:47]MH_I2C_Read... [00:17:47]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:17:47]Read from MH i2c: E2 [00:17:47]MH_I2C_Read... [00:17:47]Read from MH i2c: E2 03 00 [00:17:47]MH_I2C_Read... [00:17:47]Read from MH i2c: E2 03 00 7D 03 00 90 00 F4 [00:17:47]RAPDU: 90 00 [00:17:47]wFMCommunicate OK [00:17:47]wFMCommunicate request_size=25 [00:17:47]MH_SAM_APDU [00:17:47]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 [00:17:47]Write to MH i2c: E2 1C 00 7E 03 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 00 00 65 [00:17:47]Write i2c OK [00:17:47]MH_I2C_Read... [00:17:48]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:17:48]Read from MH i2c: E2 [00:17:48]MH_I2C_Read... [00:17:48]Read from MH i2c: E2 03 00 [00:17:48]MH_I2C_Read... [00:17:48]Read from MH i2c: E2 03 00 7E 03 00 90 00 F5 [00:17:48]RAPDU: 90 00 [00:17:48]wFMCommunicate OK [00:17:48]wFMCommunicate request_size=4 [00:17:48]MH_SAM_APDU [00:17:48]CAPDU: 80 15 03 00 [00:17:48]Write to MH i2c: E2 08 00 7F 03 80 15 03 00 00 00 00 00 03 [00:17:48]Write i2c OK [00:17:48]MH_I2C_Read... [00:17:48]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:17:48]Read from MH i2c: E2 [00:17:48]MH_I2C_Read... [00:17:48]Read from MH i2c: E2 38 00 [00:17:48]MH_I2C_Read... [00:17:48]Read from MH i2c: E2 38 00 7F 03 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 07 08 01 00 0E 04 04 00 66 01 00 00 35 04 06 00 55 A3 C5 D2 57 25 90 00 54 [00:17:48]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 38 32 39 10 04 04 00 07 08 01 00 0E 04 04 00 66 01 00 00 35 04 06 00 55 A3 C5 D2 57 25 90 00 [00:17:48]wFMCommunicate OK [00:17:48]SAM_PROTO_ProcessDocument answer len = 51 [00:17:48]SAM_PROTO_ProcessDocument done [00:17:48]SetTLVBufToDocument [00:17:48]Processing tag 1209 (04B9) [00:17:48]Malloc new data [00:17:48]Processing tag 1041 (0411) [00:17:48]Processing tag 1040 (0410) [00:17:48]Malloc new data [00:17:48]Processing tag 1038 (040E) [00:17:48]Malloc new data [00:17:48]Processing tag 1077 (0435) [00:17:48]Malloc new data [00:17:48]SetTLVBufToDocument err=0 [00:17:48]KKMLoadAndSignOpenShiftData store KKM data [00:17:48]KKMLoadAndSignOpenShiftData err=0 [00:17:48]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Адишов И. Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 Место: АЗС № 91 "Партнер Нефть" 17.05.2024 00:17 Смена: 358 РНМ: 0000000000091845 ЗНМ: 0300000119 ФД: 67591 ФМ: 0000000000871829 ФПД: 94161886926629 [00:17:48]StoreToDocumentArchive [00:17:48]shift 358 fd 67591 [00:17:48]Create dir for shift 0358 [00:17:48]save to /storage/0358/doc_00067591 [00:17:48]save last doc name /storage/0358/doc_00067591 to /storage/kkm_last_doc_name [00:17:48]save OK [00:17:48]Clear old archive folders... [00:17:48]Remove dir /storage/0357 [00:17:48]opendir ok [00:17:48]file . [00:17:48]file .. [00:17:48]file doc_00067402 [00:17:48]remove file /storage/0357/doc_00067402 [00:17:48]file doc_00067403 [00:17:48]remove file /storage/0357/doc_00067403 [00:17:48]file doc_00067404 [00:17:48]remove file /storage/0357/doc_00067404 [00:17:48]file doc_00067405 [00:17:48]remove file /storage/0357/doc_00067405 [00:17:48]file doc_00067406 [00:17:48]remove file /storage/0357/doc_00067406 [00:17:48]file doc_00067407 [00:17:48]remove file /storage/0357/doc_00067407 [00:17:48]file doc_00067408 [00:17:48]remove file /storage/0357/doc_00067408 [00:17:48]file doc_00067409 [00:17:48]remove file /storage/0357/doc_00067409 [00:17:48]file doc_00067410 [00:17:48]remove file /storage/0357/doc_00067410 [00:17:48]file doc_00067411 [00:17:48]remove file /storage/0357/doc_00067411 [00:17:48]file doc_00067412 [00:17:48]remove file /storage/0357/doc_00067412 [00:17:48]file doc_00067413 [00:17:48]remove file /storage/0357/doc_00067413 [00:17:48]file doc_00067414 [00:17:48]remove file /storage/0357/doc_00067414 [00:17:48]file doc_00067415 [00:17:48]remove file /storage/0357/doc_00067415 [00:17:48]file doc_00067416 [00:17:48]remove file /storage/0357/doc_00067416 [00:17:48]file doc_00067417 [00:17:48]remove file /storage/0357/doc_00067417 [00:17:48]file doc_00067418 [00:17:48]remove file /storage/0357/doc_00067418 [00:17:48]file doc_00067419 [00:17:48]remove file /storage/0357/doc_00067419 [00:17:48]file doc_00067420 [00:17:48]remove file /storage/0357/doc_00067420 [00:17:48]file doc_00067421 [00:17:48]remove file /storage/0357/doc_00067421 [00:17:48]file doc_00067422 [00:17:48]remove file /storage/0357/doc_00067422 [00:17:48]file doc_00067423 [00:17:48]remove file /storage/0357/doc_00067423 [00:17:48]file doc_00067424 [00:17:48]remove file /storage/0357/doc_00067424 [00:17:48]file doc_00067425 [00:17:48]remove file /storage/0357/doc_00067425 [00:17:48]file doc_00067426 [00:17:48]remove file /storage/0357/doc_00067426 [00:17:48]file doc_00067427 [00:17:48]remove file /storage/0357/doc_00067427 [00:17:48]file doc_00067428 [00:17:48]remove file /storage/0357/doc_00067428 [00:17:48]file doc_00067429 [00:17:48]remove file /storage/0357/doc_00067429 [00:17:48]file doc_00067430 [00:17:48]remove file /storage/0357/doc_00067430 [00:17:48]file doc_00067431 [00:17:48]remove file /storage/0357/doc_00067431 [00:17:48]file doc_00067432 [00:17:48]remove file /storage/0357/doc_00067432 [00:17:48]file doc_00067433 [00:17:48]remove file /storage/0357/doc_00067433 [00:17:48]file doc_00067434 [00:17:48]remove file /storage/0357/doc_00067434 [00:17:48]file doc_00067435 [00:17:48]remove file /storage/0357/doc_00067435 [00:17:48]file doc_00067436 [00:17:48]remove file /storage/0357/doc_00067436 [00:17:48]file doc_00067437 [00:17:48]remove file /storage/0357/doc_00067437 [00:17:48]file doc_00067438 [00:17:48]remove file /storage/0357/doc_00067438 [00:17:48]file doc_00067439 [00:17:48]remove file /storage/0357/doc_00067439 [00:17:48]file doc_00067440 [00:17:48]remove file /storage/0357/doc_00067440 [00:17:48]file doc_00067441 [00:17:48]remove file /storage/0357/doc_00067441 [00:17:48]file doc_00067442 [00:17:48]remove file /storage/0357/doc_00067442 [00:17:48]file doc_00067443 [00:17:48]remove file /storage/0357/doc_00067443 [00:17:48]file doc_00067444 [00:17:48]remove file /storage/0357/doc_00067444 [00:17:48]file doc_00067445 [00:17:48]remove file /storage/0357/doc_00067445 [00:17:48]file doc_00067446 [00:17:48]remove file /storage/0357/doc_00067446 [00:17:48]file doc_00067447 [00:17:48]remove file /storage/0357/doc_00067447 [00:17:48]file doc_00067448 [00:17:48]remove file /storage/0357/doc_00067448 [00:17:48]file doc_00067449 [00:17:48]remove file /storage/0357/doc_00067449 [00:17:48]file doc_00067450 [00:17:48]remove file /storage/0357/doc_00067450 [00:17:48]file doc_00067451 [00:17:48]remove file /storage/0357/doc_00067451 [00:17:48]file doc_00067452 [00:17:48]remove file /storage/0357/doc_00067452 [00:17:48]file doc_00067453 [00:17:48]remove file /storage/0357/doc_00067453 [00:17:48]file doc_00067454 [00:17:48]remove file /storage/0357/doc_00067454 [00:17:48]file doc_00067455 [00:17:48]remove file /storage/0357/doc_00067455 [00:17:48]file doc_00067456 [00:17:48]remove file /storage/0357/doc_00067456 [00:17:48]file doc_00067457 [00:17:48]remove file /storage/0357/doc_00067457 [00:17:48]file doc_00067458 [00:17:48]remove file /storage/0357/doc_00067458 [00:17:48]file doc_00067459 [00:17:48]remove file /storage/0357/doc_00067459 [00:17:48]file doc_00067460 [00:17:48]remove file /storage/0357/doc_00067460 [00:17:48]file doc_00067461 [00:17:48]remove file /storage/0357/doc_00067461 [00:17:48]file doc_00067462 [00:17:48]remove file /storage/0357/doc_00067462 [00:17:48]file doc_00067463 [00:17:48]remove file /storage/0357/doc_00067463 [00:17:48]file doc_00067464 [00:17:48]remove file /storage/0357/doc_00067464 [00:17:48]file doc_00067465 [00:17:48]remove file /storage/0357/doc_00067465 [00:17:48]file doc_00067466 [00:17:48]remove file /storage/0357/doc_00067466 [00:17:48]file doc_00067467 [00:17:48]remove file /storage/0357/doc_00067467 [00:17:48]file doc_00067468 [00:17:48]remove file /storage/0357/doc_00067468 [00:17:48]file doc_00067469 [00:17:48]remove file /storage/0357/doc_00067469 [00:17:48]file doc_00067470 [00:17:48]remove file /storage/0357/doc_00067470 [00:17:48]file doc_00067471 [00:17:48]remove file /storage/0357/doc_00067471 [00:17:48]file doc_00067472 [00:17:48]remove file /storage/0357/doc_00067472 [00:17:48]file doc_00067473 [00:17:48]remove file /storage/0357/doc_00067473 [00:17:48]file doc_00067474 [00:17:48]remove file /storage/0357/doc_00067474 [00:17:48]file doc_00067475 [00:17:48]remove file /storage/0357/doc_00067475 [00:17:48]file doc_00067476 [00:17:48]remove file /storage/0357/doc_00067476 [00:17:48]file doc_00067477 [00:17:48]remove file /storage/0357/doc_00067477 [00:17:48]file doc_00067478 [00:17:48]remove file /storage/0357/doc_00067478 [00:17:48]file doc_00067479 [00:17:48]remove file /storage/0357/doc_00067479 [00:17:48]file doc_00067480 [00:17:48]remove file /storage/0357/doc_00067480 [00:17:48]file doc_00067481 [00:17:48]remove file /storage/0357/doc_00067481 [00:17:48]file doc_00067482 [00:17:48]remove file /storage/0357/doc_00067482 [00:17:48]file doc_00067483 [00:17:48]remove file /storage/0357/doc_00067483 [00:17:48]file doc_00067484 [00:17:48]remove file /storage/0357/doc_00067484 [00:17:48]file doc_00067485 [00:17:48]remove file /storage/0357/doc_00067485 [00:17:48]file doc_00067486 [00:17:48]remove file /storage/0357/doc_00067486 [00:17:48]file doc_00067487 [00:17:48]remove file /storage/0357/doc_00067487 [00:17:48]file doc_00067488 [00:17:48]remove file /storage/0357/doc_00067488 [00:17:48]file doc_00067489 [00:17:48]remove file /storage/0357/doc_00067489 [00:17:48]file doc_00067490 [00:17:48]remove file /storage/0357/doc_00067490 [00:17:48]file doc_00067491 [00:17:48]remove file /storage/0357/doc_00067491 [00:17:48]file doc_00067492 [00:17:48]remove file /storage/0357/doc_00067492 [00:17:48]file doc_00067493 [00:17:48]remove file /storage/0357/doc_00067493 [00:17:48]file doc_00067494 [00:17:48]remove file /storage/0357/doc_00067494 [00:17:48]file doc_00067495 [00:17:48]remove file /storage/0357/doc_00067495 [00:17:48]file doc_00067496 [00:17:48]remove file /storage/0357/doc_00067496 [00:17:48]file doc_00067497 [00:17:48]remove file /storage/0357/doc_00067497 [00:17:48]file doc_00067498 [00:17:48]remove file /storage/0357/doc_00067498 [00:17:48]file doc_00067499 [00:17:48]remove file /storage/0357/doc_00067499 [00:17:48]file doc_00067500 [00:17:48]remove file /storage/0357/doc_00067500 [00:17:48]file doc_00067501 [00:17:48]remove file /storage/0357/doc_00067501 [00:17:48]file doc_00067502 [00:17:48]remove file /storage/0357/doc_00067502 [00:17:48]file doc_00067503 [00:17:48]remove file /storage/0357/doc_00067503 [00:17:48]file doc_00067504 [00:17:48]remove file /storage/0357/doc_00067504 [00:17:48]file doc_00067505 [00:17:48]remove file /storage/0357/doc_00067505 [00:17:48]file doc_00067506 [00:17:48]remove file /storage/0357/doc_00067506 [00:17:48]file doc_00067507 [00:17:48]remove file /storage/0357/doc_00067507 [00:17:48]file doc_00067508 [00:17:48]remove file /storage/0357/doc_00067508 [00:17:48]file doc_00067509 [00:17:48]remove file /storage/0357/doc_00067509 [00:17:48]file doc_00067510 [00:17:48]remove file /storage/0357/doc_00067510 [00:17:48]file doc_00067511 [00:17:48]remove file /storage/0357/doc_00067511 [00:17:48]file doc_00067512 [00:17:48]remove file /storage/0357/doc_00067512 [00:17:48]file doc_00067513 [00:17:48]remove file /storage/0357/doc_00067513 [00:17:48]file doc_00067514 [00:17:48]remove file /storage/0357/doc_00067514 [00:17:48]file doc_00067515 [00:17:48]remove file /storage/0357/doc_00067515 [00:17:48]file doc_00067516 [00:17:48]remove file /storage/0357/doc_00067516 [00:17:48]file doc_00067517 [00:17:48]remove file /storage/0357/doc_00067517 [00:17:48]file doc_00067518 [00:17:48]remove file /storage/0357/doc_00067518 [00:17:48]file doc_00067519 [00:17:48]remove file /storage/0357/doc_00067519 [00:17:48]file doc_00067520 [00:17:48]remove file /storage/0357/doc_00067520 [00:17:48]file doc_00067521 [00:17:48]remove file /storage/0357/doc_00067521 [00:17:48]file doc_00067522 [00:17:48]remove file /storage/0357/doc_00067522 [00:17:48]file doc_00067523 [00:17:48]remove file /storage/0357/doc_00067523 [00:17:48]file doc_00067524 [00:17:48]remove file /storage/0357/doc_00067524 [00:17:48]file doc_00067525 [00:17:48]remove file /storage/0357/doc_00067525 [00:17:48]file doc_00067526 [00:17:48]remove file /storage/0357/doc_00067526 [00:17:48]file doc_00067527 [00:17:48]remove file /storage/0357/doc_00067527 [00:17:48]file doc_00067528 [00:17:48]remove file /storage/0357/doc_00067528 [00:17:48]file doc_00067529 [00:17:48]remove file /storage/0357/doc_00067529 [00:17:48]file doc_00067530 [00:17:48]remove file /storage/0357/doc_00067530 [00:17:48]file doc_00067531 [00:17:48]remove file /storage/0357/doc_00067531 [00:17:48]file doc_00067532 [00:17:48]remove file /storage/0357/doc_00067532 [00:17:48]file doc_00067533 [00:17:48]remove file /storage/0357/doc_00067533 [00:17:48]file doc_00067534 [00:17:48]remove file /storage/0357/doc_00067534 [00:17:48]file doc_00067535 [00:17:48]remove file /storage/0357/doc_00067535 [00:17:48]file doc_00067536 [00:17:48]remove file /storage/0357/doc_00067536 [00:17:48]file doc_00067537 [00:17:48]remove file /storage/0357/doc_00067537 [00:17:48]file doc_00067538 [00:17:48]remove file /storage/0357/doc_00067538 [00:17:48]file doc_00067539 [00:17:48]remove file /storage/0357/doc_00067539 [00:17:48]file doc_00067540 [00:17:48]remove file /storage/0357/doc_00067540 [00:17:48]file doc_00067541 [00:17:48]remove file /storage/0357/doc_00067541 [00:17:48]file doc_00067542 [00:17:48]remove file /storage/0357/doc_00067542 [00:17:48]file doc_00067543 [00:17:48]remove file /storage/0357/doc_00067543 [00:17:48]file doc_00067544 [00:17:48]remove file /storage/0357/doc_00067544 [00:17:48]file doc_00067545 [00:17:48]remove file /storage/0357/doc_00067545 [00:17:48]file doc_00067546 [00:17:48]remove file /storage/0357/doc_00067546 [00:17:48]file doc_00067547 [00:17:48]remove file /storage/0357/doc_00067547 [00:17:48]file doc_00067548 [00:17:48]remove file /storage/0357/doc_00067548 [00:17:48]file doc_00067549 [00:17:48]remove file /storage/0357/doc_00067549 [00:17:48]file doc_00067550 [00:17:48]remove file /storage/0357/doc_00067550 [00:17:48]file doc_00067551 [00:17:48]remove file /storage/0357/doc_00067551 [00:17:48]file doc_00067552 [00:17:48]remove file /storage/0357/doc_00067552 [00:17:48]file doc_00067553 [00:17:48]remove file /storage/0357/doc_00067553 [00:17:48]file doc_00067554 [00:17:48]remove file /storage/0357/doc_00067554 [00:17:48]file doc_00067555 [00:17:48]remove file /storage/0357/doc_00067555 [00:17:48]file doc_00067556 [00:17:48]remove file /storage/0357/doc_00067556 [00:17:48]file doc_00067557 [00:17:48]remove file /storage/0357/doc_00067557 [00:17:48]file doc_00067558 [00:17:48]remove file /storage/0357/doc_00067558 [00:17:48]file doc_00067559 [00:17:48]remove file /storage/0357/doc_00067559 [00:17:48]file doc_00067560 [00:17:48]remove file /storage/0357/doc_00067560 [00:17:48]file doc_00067561 [00:17:48]remove file /storage/0357/doc_00067561 [00:17:48]file doc_00067562 [00:17:48]remove file /storage/0357/doc_00067562 [00:17:48]file doc_00067563 [00:17:48]remove file /storage/0357/doc_00067563 [00:17:48]file doc_00067564 [00:17:48]remove file /storage/0357/doc_00067564 [00:17:48]file doc_00067565 [00:17:48]remove file /storage/0357/doc_00067565 [00:17:48]file doc_00067566 [00:17:48]remove file /storage/0357/doc_00067566 [00:17:48]file doc_00067567 [00:17:48]remove file /storage/0357/doc_00067567 [00:17:48]file doc_00067568 [00:17:48]remove file /storage/0357/doc_00067568 [00:17:49]file doc_00067569 [00:17:49]remove file /storage/0357/doc_00067569 [00:17:49]file doc_00067570 [00:17:49]remove file /storage/0357/doc_00067570 [00:17:49]file doc_00067571 [00:17:49]remove file /storage/0357/doc_00067571 [00:17:49]file doc_00067572 [00:17:49]remove file /storage/0357/doc_00067572 [00:17:49]file doc_00067573 [00:17:49]remove file /storage/0357/doc_00067573 [00:17:49]file doc_00067574 [00:17:49]remove file /storage/0357/doc_00067574 [00:17:49]file doc_00067575 [00:17:49]remove file /storage/0357/doc_00067575 [00:17:49]file doc_00067576 [00:17:49]remove file /storage/0357/doc_00067576 [00:17:49]file doc_00067577 [00:17:49]remove file /storage/0357/doc_00067577 [00:17:49]file doc_00067578 [00:17:49]remove file /storage/0357/doc_00067578 [00:17:49]file doc_00067579 [00:17:49]remove file /storage/0357/doc_00067579 [00:17:49]file doc_00067580 [00:17:49]remove file /storage/0357/doc_00067580 [00:17:49]file doc_00067581 [00:17:49]remove file /storage/0357/doc_00067581 [00:17:49]file doc_00067582 [00:17:49]remove file /storage/0357/doc_00067582 [00:17:49]file doc_00067583 [00:17:49]remove file /storage/0357/doc_00067583 [00:17:49]file doc_00067584 [00:17:49]remove file /storage/0357/doc_00067584 [00:17:49]file doc_00067585 [00:17:49]remove file /storage/0357/doc_00067585 [00:17:49]file doc_00067586 [00:17:49]remove file /storage/0357/doc_00067586 [00:17:49]file doc_00067587 [00:17:49]remove file /storage/0357/doc_00067587 [00:17:49]file doc_00067588 [00:17:49]remove file /storage/0357/doc_00067588 [00:17:49]file doc_00067589 [00:17:49]remove file /storage/0357/doc_00067589 [00:17:49]file doc_00067590 [00:17:49]remove file /storage/0357/doc_00067590 [00:17:49]remove dir /storage/0357 [00:17:49]ProcessDocumentItem done err = 0, tmpTLVsize=230 [00:17:49]tlvbuf is 015D9930 [00:17:49]SAM_PROTO_ClearQueue [00:17:49]wFMCommunicate request_size=4 [00:17:49]MH_SAM_APDU [00:17:49]CAPDU: 80 09 00 00 [00:17:49]Write to MH i2c: E2 08 00 80 03 80 09 00 00 00 00 00 00 F5 [00:17:49]Write i2c OK [00:17:49]MH_I2C_Read... [00:17:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:17:49]Read from MH i2c: E2 [00:17:49]MH_I2C_Read... [00:17:49]Read from MH i2c: E2 03 00 [00:17:49]MH_I2C_Read... [00:17:49]Read from MH i2c: E2 03 00 80 03 00 90 00 F7 [00:17:49]RAPDU: 90 00 [00:17:49]wFMCommunicate OK [00:17:49]SAM_PROTO_ClearQueue done [00:17:49]KKMCreateOFDPacket [00:17:49]OFDProtocolAddRootSTLVToBuf [00:17:49]FM_MakeSignedData [00:17:49]FM_MakeSignedData [00:17:49]SAM_PROTO_SignData [00:17:49]wFMCommunicate request_size=4 [00:17:49]MH_SAM_APDU [00:17:49]CAPDU: 80 0D 01 02 [00:17:49]Write to MH i2c: E2 08 00 81 03 80 0D 01 02 00 00 00 00 FD [00:17:49]Write i2c OK [00:17:49]MH_I2C_Read... [00:17:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:17:49]Read from MH i2c: E2 [00:17:49]MH_I2C_Read... [00:17:49]Read from MH i2c: E2 03 00 [00:17:49]MH_I2C_Read... [00:17:49]Read from MH i2c: E2 03 00 81 03 00 90 00 F8 [00:17:49]RAPDU: 90 00 [00:17:49]wFMCommunicate OK [00:17:49]wFMCommunicate request_size=239 [00:17:49]MH_SAM_APDU [00:17:49]CAPDU: 80 0D 02 02 EA 02 00 E6 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 10 00 D0 90 D0 B4 D0 B8 D1 88 D0 BE D0 B2 20 D0 98 2E F1 03 40 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A2 D0 BE D0 BB D0 BE D0 B9 D0 BA D0 BE D0 BD 2C 20 D1 83 D0 BB 2E 20 D0 94 D0 AD D0 A3 2C 20 34 30 2E 34 37 33 33 30 32 2C 20 37 32 2E 37 35 36 36 39 39 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 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 2C A2 46 66 0E 04 04 00 66 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 07 08 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 35 04 06 00 55 A3 C5 D2 57 25 [00:17:49]Write to MH i2c: E2 F2 00 82 03 80 0D 02 02 EA 00 02 00 E6 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 10 00 D0 90 D0 B4 D0 B8 D1 88 D0 BE D0 B2 20 D0 98 2E F1 03 40 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A2 D0 BE D0 BB D0 BE D0 B9 D0 BA D0 BE D0 BD 2C 20 D1 83 D0 BB 2E 20 D0 94 D0 AD D0 A3 2C 20 34 30 2E 34 37 33 33 30 32 2C 20 37 32 2E 37 35 36 36 39 39 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 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 2C A2 46 66 0E 04 04 00 66 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 07 08 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 35 04 06 00 55 A3 C5 D2 57 25 00 00 89 [00:17:49]Write i2c OK [00:17:49]MH_I2C_Read... [00:17:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:17:49]Read from MH i2c: E2 [00:17:49]MH_I2C_Read... [00:17:49]Read from MH i2c: E2 03 00 [00:17:49]MH_I2C_Read... [00:17:49]Read from MH i2c: E2 03 00 82 03 00 90 00 F9 [00:17:49]RAPDU: 90 00 [00:17:49]wFMCommunicate OK [00:17:49]wFMCommunicate request_size=4 [00:17:49]MH_SAM_APDU [00:17:49]CAPDU: 80 0D 03 02 [00:17:49]Write to MH i2c: E2 08 00 83 03 80 0D 03 02 00 00 00 00 01 [00:17:49]Write i2c OK [00:17:49]MH_I2C_Read... [00:17:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:17:49]Read from MH i2c: E2 [00:17:49]MH_I2C_Read... [00:17:49]Read from MH i2c: E2 0B 00 [00:17:49]MH_I2C_Read... [00:17:49]Read from MH i2c: E2 0B 00 83 03 00 45 52 B6 53 A2 E3 C6 18 90 00 05 [00:17:49]RAPDU: 45 52 B6 53 A2 E3 C6 18 90 00 [00:17:49]wFMCommunicate OK [00:17:49]SAM_PROTO_SignData done [00:17:49]FM_MakeSignedData done [00:17:49]CreateOFDProtocolMessage [00:17:49]wFMCommunicate request_size=4 [00:17:49]MH_SAM_APDU [00:17:49]CAPDU: 80 11 00 00 [00:17:49]Write to MH i2c: E2 08 00 84 03 80 11 00 00 00 00 00 00 01 [00:17:49]Write i2c OK [00:17:49]MH_I2C_Read... [00:17:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:17:49]Read from MH i2c: E2 [00:17:49]MH_I2C_Read... [00:17:49]Read from MH i2c: E2 17 00 [00:17:49]MH_I2C_Read... [00:17:49]Read from MH i2c: E2 17 00 84 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 57 [00:17:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [00:17:49]wFMCommunicate OK [00:17:49]CreateOFDProtocolMessage done [00:17:49]OFDSenderStorePacket 67591 [00:17:49]StoreOFDPacket docnum=67591 [00:17:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 FA 00 00 00 08 0D F2 00 B6 AF 5A 02 01 00 02 00 E6 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 10 00 D0 90 D0 B4 D0 B8 D1 88 D0 BE D0 B2 20 D0 98 2E F1 03 40 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A2 D0 BE D0 BB D0 BE D0 B9 D0 BA D0 BE D0 BD 2C 20 D1 83 D0 BB 2E 20 D0 94 D0 AD D0 A3 2C 20 34 30 2E 34 37 33 33 30 32 2C 20 37 32 2E 37 35 36 36 39 39 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 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 2C A2 46 66 0E 04 04 00 66 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 07 08 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 35 04 06 00 55 A3 C5 D2 57 25 45 52 B6 53 A2 E3 C6 18 [00:17:49]CheckFolder [00:17:49]dirname=/storage/ofd_packets [00:17:49]CheckFolder done [00:17:49]ProducePacketName [00:17:49]name=ofd_packets/00067591 [00:17:49]NVStorageSaveData ofd_packets/00067591 [00:17:49]File name is /storage/ofd_packets/00067591 [00:17:49]Write 280 bytes [00:17:49]NVStorageSaveData done [00:17:49]OFDSenderStorePacket done [00:17:49]KKMCreateOFDPacket done [00:17:49]NVStorageSaveData kkm_last_timestamp [00:17:49]File name is /storage/kkm_last_timestamp [00:17:49]Write 4 bytes [00:17:49]NVStorageSaveData done [00:17:49]ExternCall_PrintAddStr [00:17:49]wPrintStart [00:17:49]Write to MH i2c: 01 00 00 85 03 88 [00:17:49]Write i2c OK [00:17:49]MH_I2C_Read... [00:17:49]Read from MH i2c: 01 [00:17:49]MH_I2C_Read... [00:17:49]Read from MH i2c: 01 07 00 [00:17:49]MH_I2C_Read... [00:17:49]Read from MH i2c: 01 07 00 85 03 00 00 00 00 00 FF 0F 9D [00:17:49]RasterBufferAndPrint [00:17:49]line Отчет об открытии смены [00:17:49]line ФФД: 1.0 [00:17:49]line ИНН: 02508201610067 [00:17:49]line Кассир: Адишов И. [00:17:49]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [00:17:49]line Место: АЗС № 91 "Партнер Нефть" [00:17:49]line 17.05.2024 00:17 [00:17:49]line Смена: 358 [00:17:49]line РНМ: 0000000000091845 [00:17:49]line ЗНМ: 0300000119 [00:17:49]line ФД: 67591 [00:17:49]line ФМ: 0000000000871829 [00:17:49]line ФПД: 94161886926629 [00:17:49]written 0, free lines is 4095 [00:17:49]OFD Sender: Processing packet 67591 [packets to send 35, broken 34] [00:17:49]ProducePacketName [00:17:49]name=ofd_packets/00067591 [00:17:49]OFD Sender: To server: pG, [00:17:49]CommunicateWithHost lk.salyk.kg:30040 [00:17:49]ConnectInit lk.salyk.kg [00:17:50]Connected sock=10 [00:17: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 38 32 39 FA 00 00 00 08 0D F2 00 B6 AF 5A 02 01 00 02 00 E6 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 10 00 D0 90 D0 B4 D0 B8 D1 88 D0 BE D0 B2 20 D0 98 2E F1 03 40 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A2 D0 BE D0 BB D0 BE D0 B9 D0 BA D0 BE D0 BD 2C 20 D1 83 D0 BB 2E 20 D0 94 D0 AD D0 A3 2C 20 34 30 2E 34 37 33 33 30 32 2C 20 37 32 2E 37 35 36 36 39 39 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 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 2C A2 46 66 0E 04 04 00 66 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 07 08 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 35 04 06 00 55 A3 C5 D2 57 25 45 52 B6 53 A2 E3 C6 18 [00:17:50]Write to MH i2c: 01 00 00 96 03 99 [00:17:50]Write i2c OK [00:17:50]MH_I2C_Read... [00:17:50]Read from MH i2c: 01 [00:17:50]MH_I2C_Read... [00:17:50]Read from MH i2c: 01 07 00 [00:17:50]MH_I2C_Read... [00:17:50]Read from MH i2c: 01 07 00 96 03 00 00 00 00 00 74 0E 22 [00:17:50]RasterBufferAndPrint [00:17:50]line [00:17:50]line [00:17:50]line [00:17:50]line [00:17:50]line [00:17:50]written 0, free lines is 3713 [00:17:50]MH_Cut [00:17:50]Write to MH i2c: D1 01 00 9D 03 01 72 [00:17:50]Write i2c OK [00:17:50]MH_I2C_Read... [00:17:50]Read from MH i2c: D1 [00:17:50]MH_I2C_Read... [00:17:50]Read from MH i2c: D1 01 00 [00:17:50]MH_I2C_Read... [00:17:50]Read from MH i2c: D1 01 00 9D 03 00 71 [00:17:50]Write to MH i2c: 01 00 00 9E 03 A1 [00:17:50]Write i2c OK [00:17:50]MH_I2C_Read... [00:17:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 49 87 47 00 84 C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 07 08 01 00 F4 03 04 00 06 4A 46 66 B6 04 01 00 00 9A 9C 23 83 81 57 B6 E0 [00:17:50]CommunicateWithHost err = 0 [00:17:50]CheckOFDResponse [00:17:50]1017 (14) - 77093643461234 [00:17:50]1041 (16) - 0000000000871829 [00:17:50]1040 (4) - 67591 [00:17:50]1012 (4) - 16.05.2024 18:01 [00:17:50]1206 (1) - 0 [00:17:50]OFD Sender: Remove packet 67591 [00:17:50]ProducePacketName [00:17:50]name=ofd_packets/00067591 [00:17:50]NVStorageDeleteData [00:17:50]*** Cut start [00:17:50]*** Purtial cut [00:17:50]*** CUTSNS_PIN = 0 [00:17:50]OFD Sender: No OFD packet to send [00:17:50]*** Stage 1: CUTSNS_PIN = 1 [00:17:52]Read from MH i2c: 01 [00:17:52]MH_I2C_Read... [00:17:52]*** Stop cut motor [00:17:52]*** Cut end [00:17:52]Read from MH i2c: 01 07 00 [00:17:52]MH_I2C_Read... [00:17:52]Read from MH i2c: 01 07 00 9E 03 00 00 00 00 00 FF 0F B6 [00:17:52]process_action open_shift done [00:17:52]requested_data is exist [00:17:52]produce_requested_data [00:17:52]requested_item fd.num is exist - process it [00:17:52]SAM_PROTO_GetFieldsCounters [00:17:52]wFMCommunicate request_size=4 [00:17:52]MH_SAM_APDU [00:17:52]CAPDU: 80 13 00 00 [00:17:52]Write to MH i2c: E2 08 00 9F 03 80 13 00 00 00 00 00 00 1E [00:17:52]Write i2c OK [00:17:52]MH_I2C_Read... [00:17:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:17:52]Read from MH i2c: E2 [00:17:52]MH_I2C_Read... [00:17:52]Read from MH i2c: E2 62 00 [00:17:52]MH_I2C_Read... [00:17:52]Read from MH i2c: E2 62 00 9F 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 07 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [00:17: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 07 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:17:52]wFMCommunicate OK [00:17:52]SAM_PROTO_GetFieldsCounters done [00:17:52]requested_item shift.num is exist - process it [00:17:52]requested_item shift.opened is exist - process it [00:17:52]req_shift_opened [00:17:52]FM_GetShiftState [00:17:52]SAM_PROTO_GetShiftState [00:17:52]wFMCommunicate request_size=4 [00:17:52]MH_SAM_APDU [00:17:52]CAPDU: 80 13 01 00 [00:17:52]Write to MH i2c: E2 08 00 A0 03 80 13 01 00 00 00 00 00 20 [00:17:52]Write i2c OK [00:17:52]MH_I2C_Read... [00:17:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:17:52]Read from MH i2c: E2 [00:17:52]MH_I2C_Read... [00:17:52]Read from MH i2c: E2 0E 00 [00:17:52]MH_I2C_Read... [00:17:52]Read from MH i2c: E2 0E 00 A0 03 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 A6 [00:17:52]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [00:17:52]wFMCommunicate OK [00:17:52]SAM_PROTO_GetShiftState done [00:17:52]FM_GetShiftState done [00:17:52]req_shift_opened done [00:17:52]requested_item shift.open_date is exist - process it [00:17:52]req_shift_open_date [00:17:52]req_shift_open_date done [00:17:52]produce_requested_data done [00:17:52]produce_requested_data return {"fd.num":67591,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [00:17:52]process_action_free open_shift [00:17:52]json_value_free [00:17:52]json_value_free done [00:17:52]process_json_proto returns [00:17:52]Send response to host [00:17:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":67591,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [00:17:52]free response buf [00:17:52]execute_script done [00:17:52]execute_script returns [00:17:52]free content buf [00:17:52]Sock 9.Close socket [00:17:52]Sock 9.Thread stoped [00:17:52]accept exits with 7 [00:17:52]New connection [00:17:52]New thread 3067395428 created [00:17:52]Thread 3067538788 joined [00:17:52]Waiting for new connection... [00:17:52] Sock 7.Parse request [00:17:52]Sock 7.Check first char [00:17:52]Sock 7.First char is OK [00:17:52]request: POST /json_proto HTTP/1.0 [00:17:52]Method: POST [00:17:52]URL: /json_proto [00:17:52]Method is POST - this is cgi request [00:17:52]url: /json_proto [00:17:52]query_string will be loaded in cgi processing [00:17:52]execute_cgi json_proto POST (null) [00:17:52]execute_cgi path=json_proto method=POST [00:17:52]POST find Content-Length [00:17:52]Host: 172.17.41.195:8080 [00:17:52]Content-Length: 331 [00:17:52]Content-Type: application/json [00:17:52] [00:17:52]POST finish read [00:17:52]Found Content-Length = 331 [00:17:52]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:17:52]execute_script... [00:17:52]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:17:52]POST & json_proto [00:17:52]process_json_proto [00:17:52]json parsed OK: [00:17:52]protocol is kg_v1.0 [00:17:52]action value=get_value [00:17:52]process_action get_value [00:17:52]cmd_get_value [00:17:52]process_action get_value done [00:17:52]requested_data is exist [00:17:52]produce_requested_data [00:17:52]requested_item fm.sale.total is exist - process it [00:17:52]SAM_PROTO_GetFMData [00:17:52]wFMCommunicate request_size=4 [00:17:52]MH_SAM_APDU [00:17:52]CAPDU: 80 13 03 00 [00:17:53]Write to MH i2c: E2 08 00 A1 03 80 13 03 00 00 00 00 00 23 [00:17:53]Write i2c OK [00:17:53]MH_I2C_Read... [00:17:53]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:17:53]Read from MH i2c: E2 [00:17:53]MH_I2C_Read... [00:17:53]Read from MH i2c: E2 FD 00 [00:17:53]MH_I2C_Read... [00:17:53]Read from MH i2c: E2 FD 00 A1 03 00 C6 04 85 04 C2 04 6E 04 04 00 3B 05 01 00 69 04 A3 00 6F 04 04 00 91 04 01 00 B1 04 05 00 9F 3C 57 1C 03 70 04 05 00 6C C8 17 C0 02 72 04 04 00 33 74 3F 5C 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 77 29 94 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 3C 44 0C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 0D [00:17:53]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 3B 05 01 00 69 04 A3 00 6F 04 04 00 91 04 01 00 B1 04 05 00 9F 3C 57 1C 03 70 04 05 00 6C C8 17 C0 02 72 04 04 00 33 74 3F 5C 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 77 29 94 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 3C 44 0C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 [00:17:53]wFMCommunicate OK [00:17:53]wFMCommunicate request_size=4 [00:17:53]MH_SAM_APDU [00:17:53]CAPDU: 80 17 00 00 [00:17:53]Write to MH i2c: E2 08 00 A2 03 80 17 00 00 00 00 00 00 25 [00:17:53]Write i2c OK [00:17:53]MH_I2C_Read... [00:17:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:53]Read from MH i2c: E2 [00:17:53]MH_I2C_Read... [00:17:53]Read from MH i2c: E2 FD 00 [00:17:53]MH_I2C_Read... [00:17:53]Read from MH i2c: E2 FD 00 A2 03 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 60 [00:17:53]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [00:17:53]wFMCommunicate OK [00:17:53]wFMCommunicate request_size=4 [00:17:53]MH_SAM_APDU [00:17:53]CAPDU: 80 17 00 00 [00:17:53]Write to MH i2c: E2 08 00 A3 03 80 17 00 00 00 00 00 00 26 [00:17:53]Write i2c OK [00:17:53]MH_I2C_Read... [00:17:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:54]Read from MH i2c: E2 [00:17:54]MH_I2C_Read... [00:17:54]Read from MH i2c: E2 FD 00 [00:17:54]MH_I2C_Read... [00:17:54]Read from MH i2c: E2 FD 00 A3 03 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 4D [00:17:54]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [00:17:54]wFMCommunicate OK [00:17:54]wFMCommunicate request_size=4 [00:17:54]MH_SAM_APDU [00:17:54]CAPDU: 80 17 00 00 [00:17:54]Write to MH i2c: E2 08 00 A4 03 80 17 00 00 00 00 00 00 27 [00:17:54]Write i2c OK [00:17:54]MH_I2C_Read... [00:17:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:54]Read from MH i2c: E2 [00:17:54]MH_I2C_Read... [00:17:54]Read from MH i2c: E2 FD 00 [00:17:54]MH_I2C_Read... [00:17:54]Read from MH i2c: E2 FD 00 A4 03 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 A2 [00:17:54]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:17:54]wFMCommunicate OK [00:17:54]wFMCommunicate request_size=4 [00:17:54]MH_SAM_APDU [00:17:54]CAPDU: 80 17 00 00 [00:17:54]Write to MH i2c: E2 08 00 A5 03 80 17 00 00 00 00 00 00 28 [00:17:54]Write i2c OK [00:17:54]MH_I2C_Read... [00:17:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [00:17:54]Read from MH i2c: E2 [00:17:54]MH_I2C_Read... [00:17:54]Read from MH i2c: E2 E3 00 [00:17:54]MH_I2C_Read... [00:17:54]Read from MH i2c: E2 E3 00 A5 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 07 [00:17:55]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:17:55]wFMCommunicate OK [00:17:55]SAM_PROTO_GetFMData done [00:17:55]requested_item fm.sale_refund.total is exist - process it [00:17:55]requested_item fm.buy.total is exist - process it [00:17:55]requested_item shift.sale.total is exist - process it [00:17:55]SAM_PROTO_GetShiftData [00:17:55]wFMCommunicate request_size=4 [00:17:55]MH_SAM_APDU [00:17:55]CAPDU: 80 13 02 00 [00:17:55]Write to MH i2c: E2 08 00 A6 03 80 13 02 00 00 00 00 00 27 [00:17:55]Write i2c OK [00:17:55]MH_I2C_Read... [00:17:55]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:17:55]Read from MH i2c: E2 [00:17:55]MH_I2C_Read... [00:17:55]Read from MH i2c: E2 FD 00 [00:17:55]MH_I2C_Read... [00:17:55]Read from MH i2c: E2 FD 00 A6 03 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 9A [00:17:55]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:17:55]wFMCommunicate OK [00:17:55]wFMCommunicate request_size=4 [00:17:55]MH_SAM_APDU [00:17:55]CAPDU: 80 17 00 00 [00:17:55]Write to MH i2c: E2 08 00 A7 03 80 17 00 00 00 00 00 00 2A [00:17:55]Write i2c OK [00:17:55]MH_I2C_Read... [00:17:55]OFD Sender: No OFD packet to send [00:17:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:55]Read from MH i2c: E2 [00:17:55]MH_I2C_Read... [00:17:55]Read from MH i2c: E2 FD 00 [00:17:55]MH_I2C_Read... [00:17:55]Read from MH i2c: E2 FD 00 A7 03 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 32 [00:17:56]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:17:56]wFMCommunicate OK [00:17:56]wFMCommunicate request_size=4 [00:17:56]MH_SAM_APDU [00:17:56]CAPDU: 80 17 00 00 [00:17:56]Write to MH i2c: E2 08 00 A8 03 80 17 00 00 00 00 00 00 2B [00:17:56]Write i2c OK [00:17:56]MH_I2C_Read... [00:17:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:56]Read from MH i2c: E2 [00:17:56]MH_I2C_Read... [00:17:56]Read from MH i2c: E2 FD 00 [00:17:56]MH_I2C_Read... [00:17:56]Read from MH i2c: E2 FD 00 A8 03 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 FD [00:17:56]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:17:56]wFMCommunicate OK [00:17:56]wFMCommunicate request_size=4 [00:17:56]MH_SAM_APDU [00:17:56]CAPDU: 80 17 00 00 [00:17:56]Write to MH i2c: E2 08 00 A9 03 80 17 00 00 00 00 00 00 2C [00:17:56]Write i2c OK [00:17:56]MH_I2C_Read... [00:17:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:56]Read from MH i2c: E2 [00:17:56]MH_I2C_Read... [00:17:56]Read from MH i2c: E2 FD 00 [00:17:56]MH_I2C_Read... [00:17:56]Read from MH i2c: E2 FD 00 A9 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 9E [00:17:56]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:17:57]wFMCommunicate OK [00:17:57]wFMCommunicate request_size=4 [00:17:57]MH_SAM_APDU [00:17:57]CAPDU: 80 17 00 00 [00:17:57]Write to MH i2c: E2 08 00 AA 03 80 17 00 00 00 00 00 00 2D [00:17:57]Write i2c OK [00:17:57]MH_I2C_Read... [00:17:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:17:57]Read from MH i2c: E2 [00:17:57]MH_I2C_Read... [00:17:57]Read from MH i2c: E2 BD 00 [00:17:57]MH_I2C_Read... [00:17:57]Read from MH i2c: E2 BD 00 AA 03 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 13 [00:17:57]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:17:57]wFMCommunicate OK [00:17:57]SAM_PROTO_GetShiftData done [00:17:57]requested_item shift.sale.total_cash is exist - process it [00:17:57]requested_item shift.sale_refund.total is exist - process it [00:17:57]requested_item shift.sale_refund.total_cash is exist - process it [00:17:57]requested_item shift.buy.total is exist - process it [00:17:57]requested_item shift.buy.total_cash is exist - process it [00:17:57]produce_requested_data done [00:17:57]produce_requested_data return {"fm.sale.total":133603810.87,"fm.sale_refund.total":37037760.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:17:57]process_action_free get_value [00:17:57]json_value_free [00:17:57]json_value_free done [00:17:57]process_json_proto returns [00:17:57]Send response to host [00:17:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133603810.87,"fm.sale_refund.total":37037760.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:17:57]free response buf [00:17:57]execute_script done [00:17:57]execute_script returns [00:17:57]free content buf [00:17:57]Sock 7.Close socket [00:17:57]Sock 7.Thread stoped [00:18:00]OFD Sender: No OFD packet to send [00:18:05]OFD Sender: No OFD packet to send [00:18:10]OFD Sender: No OFD packet to send [00:18:15]OFD Sender: No OFD packet to send [00:18:20]OFD Sender: No OFD packet to send [00:18:25]OFD Sender: No OFD packet to send [00:18:30]OFD Sender: No OFD packet to send [00:18:35]OFD Sender: No OFD packet to send [00:18:41]OFD Sender: No OFD packet to send [00:18:46]OFD Sender: No OFD packet to send [00:18:51]OFD Sender: No OFD packet to send [00:18:56]OFD Sender: No OFD packet to send [00:19:01]OFD Sender: No OFD packet to send [00:19:06]OFD Sender: No OFD packet to send [00:19:11]OFD Sender: No OFD packet to send [00:19:16]OFD Sender: No OFD packet to send [00:19:21]OFD Sender: No OFD packet to send [00:19:26]OFD Sender: No OFD packet to send [00:19:31]OFD Sender: No OFD packet to send [00:19:36]OFD Sender: No OFD packet to send [00:19:41]OFD Sender: No OFD packet to send [00:19:46]OFD Sender: No OFD packet to send [00:19:51]OFD Sender: No OFD packet to send [00:19:56]accept exits with 9 [00:19:56]New connection [00:19:56]New thread 3067538788 created [00:19:56]Thread 3067395428 joined [00:19:56]Waiting for new connection... [00:19:56] Sock 9.Parse request [00:19:56]Sock 9.Check first char [00:19:56]Sock 9.First char is OK [00:19:56]request: POST /json_proto HTTP/1.0 [00:19:56]Method: POST [00:19:56]URL: /json_proto [00:19:56]Method is POST - this is cgi request [00:19:56]url: /json_proto [00:19:56]query_string will be loaded in cgi processing [00:19:56]execute_cgi json_proto POST (null) [00:19:56]execute_cgi path=json_proto method=POST [00:19:56]POST find Content-Length [00:19:56]Host: 172.17.41.195:8080 [00:19:56]Content-Length: 706 [00:19:56]Content-Type: application/json [00:19:56] [00:19:56]POST finish read [00:19:56]Found Content-Length = 706 [00:19:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12096", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0439 Nitro 0.45 \u0436/\u0431", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:56]execute_script... [00:19:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12096", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0439 Nitro 0.45 \u0436/\u0431", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:56]POST & json_proto [00:19:56]process_json_proto [00:19:56]json parsed OK: [00:19:56]protocol is kg_v1.0 [00:19:56]action value=close_receipt [00:19:56]process_action close_receipt [00:19:56]cmd_close_receipt [00:19:56]MH_GetDate [00:19:56]Write to MH i2c: F0 00 00 AB 03 9D [00:19:56]Write i2c OK [00:19:56]MH_I2C_Read... [00:19:56]Read from MH i2c: F0 [00:19:56]MH_I2C_Read... [00:19:56]Read from MH i2c: F0 09 00 [00:19:56]MH_I2C_Read... [00:19:56]Read from MH i2c: F0 09 00 AB 03 00 AC A2 46 66 FC 21 6F 64 90 [00:19:56]GetLastDocTimeStamp 1715905068 [00:19:56]current date 1715905196 [00:19:56]FM_GetShiftState [00:19:56]SAM_PROTO_GetShiftState [00:19:56]wFMCommunicate request_size=4 [00:19:56]MH_SAM_APDU [00:19:56]CAPDU: 80 13 01 00 [00:19:56]Write to MH i2c: E2 08 00 AC 03 80 13 01 00 00 00 00 00 2C [00:19:56]Write i2c OK [00:19:56]MH_I2C_Read... [00:19:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:56]Read from MH i2c: E2 [00:19:56]MH_I2C_Read... [00:19:56]Read from MH i2c: E2 0E 00 [00:19:56]MH_I2C_Read... [00:19:56]Read from MH i2c: E2 0E 00 AC 03 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 B2 [00:19:56]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [00:19:56]wFMCommunicate OK [00:19:56]SAM_PROTO_GetShiftState done [00:19:56]FM_GetShiftState done [00:19:56]opened in 1715905068 [00:19:56]opened+sec_in_day 1715991468 [00:19:56]quantity*price = 7500 [00:19:56]sum+1 = 7501 [00:19:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 1 17.05.2024 00:19 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67592 ФПД: 26696540785206 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T001956&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67592&fm=26696540785206&tin=02508201610067®Number=0000000000091845&sum=7500 0 [00:19:57]StoreToDocumentArchive [00:19:57]shift 358 fd 67592 [00:19:57]save to /storage/0358/doc_00067592 [00:19:57]save last doc name /storage/0358/doc_00067592 to /storage/kkm_last_doc_name [00:19:57]save OK [00:19:57]Clear old archive folders... [00:19:57]ProcessDocumentItem done err = 0, tmpTLVsize=302 [00:19:57]tlvbuf is 0163F1E0 [00:19:57]SAM_PROTO_ClearQueue [00:19:57]wFMCommunicate request_size=4 [00:19:57]MH_SAM_APDU [00:19:57]CAPDU: 80 09 00 00 [00:19:57]Write to MH i2c: E2 08 00 B9 03 80 09 00 00 00 00 00 00 2E [00:19:57]Write i2c OK [00:19:57]MH_I2C_Read... [00:19:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:19:57]Read from MH i2c: E2 [00:19:57]MH_I2C_Read... [00:19:57]Read from MH i2c: E2 03 00 [00:19:57]MH_I2C_Read... [00:19:57]Read from MH i2c: E2 03 00 B9 03 00 90 00 30 [00:19:57]RAPDU: 90 00 [00:19:57]wFMCommunicate OK [00:19:57]SAM_PROTO_ClearQueue done [00:19:57]KKMCreateOFDPacket [00:19:57]OFDProtocolAddRootSTLVToBuf [00:19:57]FM_MakeSignedData [00:19:57]FM_MakeSignedData [00:19:57]SAM_PROTO_SignData [00:19:57]wFMCommunicate request_size=4 [00:19:57]MH_SAM_APDU [00:19:57]CAPDU: 80 0D 01 02 [00:19:57]Write to MH i2c: E2 08 00 BA 03 80 0D 01 02 00 00 00 00 36 [00:19:57]Write i2c OK [00:19:57]MH_I2C_Read... [00:19:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:19:57]Read from MH i2c: E2 [00:19:57]MH_I2C_Read... [00:19:57]Read from MH i2c: E2 03 00 [00:19:57]MH_I2C_Read... [00:19:57]Read from MH i2c: E2 03 00 BA 03 00 90 00 31 [00:19:57]RAPDU: 90 00 [00:19:57]wFMCommunicate OK [00:19:57]wFMCommunicate request_size=255 [00:19:57]MH_SAM_APDU [00:19:57]CAPDU: 80 0D 02 02 FA 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 D0 B5 D1 82 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 4E 69 74 72 6F 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 AC A2 46 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 [00:19:57]Write to MH i2c: E2 02 01 BB 03 80 0D 02 02 FA 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 D0 B5 D1 82 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 4E 69 74 72 6F 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 AC A2 46 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 00 00 EB [00:19:57]Write i2c OK [00:19:57]MH_I2C_Read... [00:19:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:57]Read from MH i2c: E2 [00:19:57]MH_I2C_Read... [00:19:57]Read from MH i2c: E2 03 00 [00:19:57]MH_I2C_Read... [00:19:57]Read from MH i2c: E2 03 00 BB 03 00 90 00 32 [00:19:57]RAPDU: 90 00 [00:19:57]wFMCommunicate OK [00:19:57]wFMCommunicate request_size=61 [00:19:57]MH_SAM_APDU [00:19:57]CAPDU: 80 0D 02 02 38 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 08 08 01 00 35 04 06 00 18 47 C5 D4 8A 36 [00:19:57]Write to MH i2c: E2 40 00 BC 03 80 0D 02 02 38 00 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 08 08 01 00 35 04 06 00 18 47 C5 D4 8A 36 00 00 3C [00:19:57]Write i2c OK [00:19:57]MH_I2C_Read... [00:19:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:57]Read from MH i2c: E2 [00:19:57]MH_I2C_Read... [00:19:57]Read from MH i2c: E2 03 00 [00:19:57]MH_I2C_Read... [00:19:57]Read from MH i2c: E2 03 00 BC 03 00 90 00 33 [00:19:57]RAPDU: 90 00 [00:19:57]wFMCommunicate OK [00:19:57]wFMCommunicate request_size=4 [00:19:57]MH_SAM_APDU [00:19:57]CAPDU: 80 0D 03 02 [00:19:57]Write to MH i2c: E2 08 00 BD 03 80 0D 03 02 00 00 00 00 3B [00:19:57]Write i2c OK [00:19:57]MH_I2C_Read... [00:19:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:19:57]Read from MH i2c: E2 [00:19:57]MH_I2C_Read... [00:19:57]Read from MH i2c: E2 0B 00 [00:19:57]MH_I2C_Read... [00:19:57]Read from MH i2c: E2 0B 00 BD 03 00 AD 5C A5 4A 65 29 EC 86 90 00 34 [00:19:57]RAPDU: AD 5C A5 4A 65 29 EC 86 90 00 [00:19:57]wFMCommunicate OK [00:19:57]SAM_PROTO_SignData done [00:19:57]FM_MakeSignedData done [00:19:57]CreateOFDProtocolMessage [00:19:57]wFMCommunicate request_size=4 [00:19:57]MH_SAM_APDU [00:19:57]CAPDU: 80 11 00 00 [00:19:57]Write to MH i2c: E2 08 00 BE 03 80 11 00 00 00 00 00 00 3B [00:19:57]Write i2c OK [00:19:57]MH_I2C_Read... [00:19:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:57]Read from MH i2c: E2 [00:19:57]MH_I2C_Read... [00:19:57]Read from MH i2c: E2 17 00 [00:19:57]MH_I2C_Read... [00:19:57]Read from MH i2c: E2 17 00 BE 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 91 [00:19:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [00:19:57]wFMCommunicate OK [00:19:57]CreateOFDProtocolMessage done [00:19:57]OFDSenderStorePacket 67592 [00:19:57]StoreOFDPacket docnum=67592 [00:19:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 42 01 00 00 6C 51 3A 01 5B 22 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 D0 B5 D1 82 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 4E 69 74 72 6F 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 AC A2 46 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 08 08 01 00 35 04 06 00 18 47 C5 D4 8A 36 AD 5C A5 4A 65 29 EC 86 [00:19:57]CheckFolder [00:19:57]dirname=/storage/ofd_packets [00:19:57]CheckFolder done [00:19:57]ProducePacketName [00:19:57]name=ofd_packets/00067592 [00:19:57]NVStorageSaveData ofd_packets/00067592 [00:19:57]File name is /storage/ofd_packets/00067592 [00:19:57]Write 352 bytes [00:19:57]NVStorageSaveData done [00:19:57]OFDSenderStorePacket done [00:19:57]KKMCreateOFDPacket done [00:19:57]NVStorageSaveData kkm_last_timestamp [00:19:57]File name is /storage/kkm_last_timestamp [00:19:57]Write 4 bytes [00:19:57]NVStorageSaveData done [00:19:57]ExternCall_PrintAddStr [00:19:57]wPrintStart [00:19:57]Write to MH i2c: 01 00 00 BF 03 C2 [00:19:57]Write i2c OK [00:19:57]MH_I2C_Read... [00:19:57]Read from MH i2c: 01 [00:19:57]MH_I2C_Read... [00:19:57]Read from MH i2c: 01 07 00 [00:19:57]MH_I2C_Read... [00:19:57]Read from MH i2c: 01 07 00 BF 03 00 00 00 00 00 FF 0F D7 [00:19:57]RasterBufferAndPrint [00:19:57]line Счет N : (3)12096 [00:19:57]line ИНН: 02508201610067 [00:19:57]line Контрольно-Кассовый Чек [00:19:57]line ПРОДАЖА [00:19:57]line Товар: 4700000480050 [00:19:57]line Напиток энергетический Nitro 0.45 ж/б [00:19:57]line 1.000 * 75.00 [00:19:57]line = 75.00 [00:19:57]line НДС 12% НСП 1% [00:19:57]line > о реализуемом товаре [00:19:57]line ИТОГО: 75.00 [00:19:57]line НСП 1% : 0.66 [00:19:57]line НДС 12% : 7.96 [00:19:57]line Наличными: 75.00 [00:19:57]line Безнал.: 0.00 [00:19:57]line Место: АЗС № 91 "Партнер Нефть" [00:19:57]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [00:19:57]line СНО: Общий режим [00:19:57]line Чек 1 17.05.2024 00:19 [00:19:57]line Смена: 358 ФФД: 1.0 [00:19:58]line ЗНМ: 0300000119 [00:19:58]line РНМ: 0000000000091845 [00:19:58]line Версия ККМ: 001 [00:19:58]line ФМ: 0000000000871829 [00:19:58]line ФД: 67592 [00:19:58]line ФПД: 26696540785206 [00:19:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T001956&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67592&fm=26696540785206&tin=02508201610067®Number=0000000000091845&sum=7500 [00:19:58]line 0 [00:19:58]OFD Sender: Processing packet 67592 [packets to send 35, broken 34] [00:19:58]ProducePacketName [00:19:58]name=ofd_packets/00067592 [00:19:58]OFD Sender: To server: pG, [00:19:58]CommunicateWithHost lk.salyk.kg:30040 [00:19:58]ConnectInit lk.salyk.kg [00:19:58]written 0, free lines is 4095 [00:19:58]Connected sock=10 [00:19: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 38 32 39 42 01 00 00 6C 51 3A 01 5B 22 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 D0 B5 D1 82 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 4E 69 74 72 6F 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 AC A2 46 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 08 08 01 00 35 04 06 00 18 47 C5 D4 8A 36 AD 5C A5 4A 65 29 EC 86 [00:19:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 99 20 47 00 DB 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 38 32 39 10 04 04 00 08 08 01 00 F4 03 04 00 86 4A 46 66 B6 04 01 00 00 5E 37 23 1E 1A BA A7 F7 [00:19:58]CommunicateWithHost err = 0 [00:19:58]CheckOFDResponse [00:19:58]1017 (14) - 77093643461234 [00:19:58]1041 (16) - 0000000000871829 [00:19:58]1040 (4) - 67592 [00:19:58]1012 (4) - 16.05.2024 18:03 [00:19:58]1206 (1) - 0 [00:19:58]OFD Sender: Remove packet 67592 [00:19:58]ProducePacketName [00:19:58]name=ofd_packets/00067592 [00:19:58]NVStorageDeleteData [00:19:58]Write to MH i2c: 01 00 00 E7 03 EA [00:19:58]Write i2c OK [00:19:58]MH_I2C_Read... [00:19:58]Read from MH i2c: 01 [00:19:58]MH_I2C_Read... [00:19:58]Read from MH i2c: 01 07 00 [00:19:58]MH_I2C_Read... [00:19:58]Read from MH i2c: 01 07 00 E7 03 00 00 00 00 00 CD 0C CA [00:19:58]RasterBufferAndPrint [00:19:58]line [00:19:58]line [00:19:58]line [00:19:58]line [00:19:58]line [00:19:58]written 0, free lines is 3281 [00:19:58]MH_Cut [00:19:58]Write to MH i2c: D1 01 00 EE 03 01 C3 [00:19:58]Write i2c OK [00:19:58]MH_I2C_Read... [00:19:58]Read from MH i2c: D1 [00:19:58]MH_I2C_Read... [00:19:58]Read from MH i2c: D1 01 00 [00:19:58]MH_I2C_Read... [00:19:58]Read from MH i2c: D1 01 00 EE 03 00 C2 [00:19:58]Write to MH i2c: 01 00 00 EF 03 F2 [00:19:58]Write i2c OK [00:19:58]MH_I2C_Read... [00:19:58]OFD Sender: No OFD packet to send [00:19:59]*** Cut start [00:19:59]*** Purtial cut [00:19:59]*** Stage 1: CUTSNS_PIN = 1 [00:19:59]Read from MH i2c: 01 [00:19:59]MH_I2C_Read... [00:19:59]*** Stop cut motor [00:19:59]*** Cut end [00:19:59]Read from MH i2c: 01 07 00 [00:19:59]MH_I2C_Read... [00:19:59]Read from MH i2c: 01 07 00 EF 03 00 00 00 00 00 FF 0F 07 [00:19:59]process_action close_receipt done [00:19:59]requested_data is exist [00:19:59]produce_requested_data [00:19:59]requested_item fm.sn is exist - process it [00:19:59]wFMCommunicate request_size=4 [00:19:59]MH_SAM_APDU [00:19:59]CAPDU: 80 11 00 00 [00:19:59]Write to MH i2c: E2 08 00 F0 03 80 11 00 00 00 00 00 00 6D [00:19:59]Write i2c OK [00:19:59]MH_I2C_Read... [00:19:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:59]Read from MH i2c: E2 [00:19:59]MH_I2C_Read... [00:19:59]Read from MH i2c: E2 17 00 [00:19:59]MH_I2C_Read... [00:19:59]Read from MH i2c: E2 17 00 F0 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C3 [00:19:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [00:19:59]wFMCommunicate OK [00:19:59]requested_item fd.num is exist - process it [00:19:59]SAM_PROTO_GetFieldsCounters [00:19:59]wFMCommunicate request_size=4 [00:19:59]MH_SAM_APDU [00:19:59]CAPDU: 80 13 00 00 [00:19:59]Write to MH i2c: E2 08 00 F1 03 80 13 00 00 00 00 00 00 70 [00:19:59]Write i2c OK [00:19:59]MH_I2C_Read... [00:19:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:19:59]Read from MH i2c: E2 [00:19:59]MH_I2C_Read... [00:19:59]Read from MH i2c: E2 62 00 [00:19:59]MH_I2C_Read... [00:19:59]Read from MH i2c: E2 62 00 F1 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 08 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [00:19: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 08 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:19:59]wFMCommunicate OK [00:19:59]SAM_PROTO_GetFieldsCounters done [00:19:59]requested_item shift.num is exist - process it [00:19:59]requested_item shift.opened is exist - process it [00:19:59]req_shift_opened [00:19:59]FM_GetShiftState [00:19:59]SAM_PROTO_GetShiftState [00:19:59]wFMCommunicate request_size=4 [00:19:59]MH_SAM_APDU [00:19:59]CAPDU: 80 13 01 00 [00:19:59]Write to MH i2c: E2 08 00 F2 03 80 13 01 00 00 00 00 00 72 [00:19:59]Write i2c OK [00:19:59]MH_I2C_Read... [00:19:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:59]Read from MH i2c: E2 [00:19:59]MH_I2C_Read... [00:19:59]Read from MH i2c: E2 0E 00 [00:19:59]MH_I2C_Read... [00:19:59]Read from MH i2c: E2 0E 00 F2 03 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 F8 [00:19:59]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [00:19:59]wFMCommunicate OK [00:19:59]SAM_PROTO_GetShiftState done [00:19:59]FM_GetShiftState done [00:19:59]req_shift_opened done [00:19:59]requested_item shift.open_date is exist - process it [00:19:59]req_shift_open_date [00:19:59]req_shift_open_date done [00:19:59]produce_requested_data done [00:19:59]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67592,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [00:19:59]process_action_free close_receipt [00:19:59]json_value_free [00:19:59]json_value_free done [00:19:59]process_json_proto returns [00:19:59]Send response to host [00:19:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67592,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [00:19:59]free response buf [00:19:59]execute_script done [00:19:59]execute_script returns [00:19:59]free content buf [00:19:59]Sock 9.Close socket [00:19:59]Sock 9.Thread stoped [00:20:03]OFD Sender: No OFD packet to send [00:20:09]OFD Sender: No OFD packet to send [00:20:14]OFD Sender: No OFD packet to send [00:20:19]OFD Sender: No OFD packet to send [00:20:24]OFD Sender: No OFD packet to send [00:20:29]OFD Sender: No OFD packet to send [00:20:34]OFD Sender: No OFD packet to send [00:20:39]OFD Sender: No OFD packet to send [00:20:44]OFD Sender: No OFD packet to send [00:20:49]OFD Sender: No OFD packet to send [00:20:54]OFD Sender: No OFD packet to send [00:20:59]OFD Sender: No OFD packet to send [00:21:04]OFD Sender: No OFD packet to send [00:21:09]OFD Sender: No OFD packet to send [00:21:14]OFD Sender: No OFD packet to send [00:21:16]accept exits with 7 [00:21:16]New connection [00:21:16]New thread 3067395428 created [00:21:16]Thread 3067538788 joined [00:21:16]Waiting for new connection... [00:21:16] Sock 7.Parse request [00:21:16]Sock 7.Check first char [00:21:16]Sock 7.First char is OK [00:21:16]request: POST /json_proto HTTP/1.0 [00:21:16]Method: POST [00:21:16]URL: /json_proto [00:21:16]Method is POST - this is cgi request [00:21:16]url: /json_proto [00:21:16]query_string will be loaded in cgi processing [00:21:16]execute_cgi json_proto POST (null) [00:21:16]execute_cgi path=json_proto method=POST [00:21:16]POST find Content-Length [00:21:16]Host: 172.17.41.195:8080 [00:21:16]Content-Length: 800 [00:21:16]Content-Type: application/json [00:21:16] [00:21:16]POST finish read [00:21:16]Found Content-Length = 800 [00:21:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507674", "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" : 74.70, "quantity" : 40.170, "sum" : 3000.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:21:16]execute_script... [00: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)507674", "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" : 74.70, "quantity" : 40.170, "sum" : 3000.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:21:16]POST & json_proto [00:21:16]process_json_proto [00:21:16]json parsed OK: [00:21:16]protocol is kg_v1.0 [00:21:16]action value=close_receipt [00:21:16]process_action close_receipt [00:21:16]cmd_close_receipt [00:21:16]MH_GetDate [00:21:16]Write to MH i2c: F0 00 00 F3 03 E5 [00:21:16]Write i2c OK [00:21:16]MH_I2C_Read... [00:21:16]Read from MH i2c: F0 [00:21:16]MH_I2C_Read... [00:21:16]Read from MH i2c: F0 09 00 [00:21:16]MH_I2C_Read... [00:21:16]Read from MH i2c: F0 09 00 F3 03 00 FC A2 46 66 FC 21 6F 64 28 [00:21:16]GetLastDocTimeStamp 1715905196 [00:21:16]current date 1715905276 [00:21:16]FM_GetShiftState [00:21:16]SAM_PROTO_GetShiftState [00:21:16]wFMCommunicate request_size=4 [00:21:16]MH_SAM_APDU [00:21:16]CAPDU: 80 13 01 00 [00:21:16]Write to MH i2c: E2 08 00 F4 03 80 13 01 00 00 00 00 00 74 [00:21:16]Write i2c OK [00:21:16]MH_I2C_Read... [00:21:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:16]Read from MH i2c: E2 [00:21:16]MH_I2C_Read... [00:21:16]Read from MH i2c: E2 0E 00 [00:21:16]MH_I2C_Read... [00:21:16]Read from MH i2c: E2 0E 00 F4 03 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 FA [00:21:16]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [00:21:16]wFMCommunicate OK [00:21:16]SAM_PROTO_GetShiftState done [00:21:16]FM_GetShiftState done [00:21:16]opened in 1715905068 [00:21:16]opened+sec_in_day 1715991468 [00:21:16]quantity*price = 300069 [00:21:16]sum+1 = 300071 [00:21:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.70 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.70 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 2 17.05.2024 00:21 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67593 ФПД: 133721591341649 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T002116&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67593&fm=133721591341649&tin=02508201610067®Number=0000000000091845&sum=300070 [00:21:17]StoreToDocumentArchive [00:21:17]shift 358 fd 67593 [00:21:17]save to /storage/0358/doc_00067593 [00:21:17]save last doc name /storage/0358/doc_00067593 to /storage/kkm_last_doc_name [00:21:17]save OK [00:21:17]Clear old archive folders... [00:21:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:21:17]tlvbuf is 015BC6B0 [00:21:17]SAM_PROTO_ClearQueue [00:21:17]wFMCommunicate request_size=4 [00:21:17]MH_SAM_APDU [00:21:17]CAPDU: 80 09 00 00 [00:21:17]Write to MH i2c: E2 08 00 01 04 80 09 00 00 00 00 00 00 77 [00:21:17]Write i2c OK [00:21:17]MH_I2C_Read... [00:21:17]Read from MH i2c: E2 [00:21:17]MH_I2C_Read... [00:21:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:21:17]Read from MH i2c: E2 03 00 [00:21:17]MH_I2C_Read... [00:21:17]Read from MH i2c: E2 03 00 01 04 00 90 00 79 [00:21:17]RAPDU: 90 00 [00:21:17]wFMCommunicate OK [00:21:17]SAM_PROTO_ClearQueue done [00:21:17]KKMCreateOFDPacket [00:21:17]OFDProtocolAddRootSTLVToBuf [00:21:17]FM_MakeSignedData [00:21:17]FM_MakeSignedData [00:21:17]SAM_PROTO_SignData [00:21:17]wFMCommunicate request_size=4 [00:21:17]MH_SAM_APDU [00:21:17]CAPDU: 80 0D 01 02 [00:21:17]Write to MH i2c: E2 08 00 02 04 80 0D 01 02 00 00 00 00 7F [00:21:17]Write i2c OK [00:21:17]MH_I2C_Read... [00:21:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:21:17]Read from MH i2c: E2 [00:21:17]MH_I2C_Read... [00:21:17]Read from MH i2c: E2 03 00 [00:21:17]MH_I2C_Read... [00:21:17]Read from MH i2c: E2 03 00 02 04 00 90 00 7A [00:21:17]RAPDU: 90 00 [00:21:17]wFMCommunicate OK [00:21:17]wFMCommunicate request_size=255 [00:21:17]MH_SAM_APDU [00:21: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 EA 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 26 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 26 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 FC A2 46 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 09 08 01 00 35 04 06 00 79 9E 7B F3 [00:21:17]Write to MH i2c: E2 02 01 03 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 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 26 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 26 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 FC A2 46 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 09 08 01 00 35 04 06 00 79 9E 7B F3 00 00 95 [00:21:17]Write i2c OK [00:21:17]MH_I2C_Read... [00:21:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:17]Read from MH i2c: E2 [00:21:17]MH_I2C_Read... [00:21:17]Read from MH i2c: E2 03 00 [00:21:17]MH_I2C_Read... [00:21:17]Read from MH i2c: E2 03 00 03 04 00 90 00 7B [00:21:17]RAPDU: 90 00 [00:21:17]wFMCommunicate OK [00:21:17]wFMCommunicate request_size=7 [00:21:17]MH_SAM_APDU [00:21:17]CAPDU: 80 0D 02 02 02 62 51 [00:21:17]Write to MH i2c: E2 0A 00 04 04 80 0D 02 02 02 00 62 51 00 00 39 [00:21:17]Write i2c OK [00:21:17]MH_I2C_Read... [00:21:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:17]Read from MH i2c: E2 [00:21:17]MH_I2C_Read... [00:21:17]Read from MH i2c: E2 03 00 [00:21:17]MH_I2C_Read... [00:21:17]Read from MH i2c: E2 03 00 04 04 00 90 00 7C [00:21:17]RAPDU: 90 00 [00:21:17]wFMCommunicate OK [00:21:17]wFMCommunicate request_size=4 [00:21:17]MH_SAM_APDU [00:21:17]CAPDU: 80 0D 03 02 [00:21:17]Write to MH i2c: E2 08 00 05 04 80 0D 03 02 00 00 00 00 84 [00:21:17]Write i2c OK [00:21:17]MH_I2C_Read... [00:21:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:21:17]Read from MH i2c: E2 [00:21:17]MH_I2C_Read... [00:21:17]Read from MH i2c: E2 0B 00 [00:21:17]MH_I2C_Read... [00:21:17]Read from MH i2c: E2 0B 00 05 04 00 DA 87 D0 D2 5F 2F 73 4A 90 00 D3 [00:21:17]RAPDU: DA 87 D0 D2 5F 2F 73 4A 90 00 [00:21:17]wFMCommunicate OK [00:21:17]SAM_PROTO_SignData done [00:21:17]FM_MakeSignedData done [00:21:17]CreateOFDProtocolMessage [00:21:17]wFMCommunicate request_size=4 [00:21:17]MH_SAM_APDU [00:21:17]CAPDU: 80 11 00 00 [00:21:17]Write to MH i2c: E2 08 00 06 04 80 11 00 00 00 00 00 00 84 [00:21:17]Write i2c OK [00:21:17]MH_I2C_Read... [00:21:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:21:17]Read from MH i2c: E2 [00:21:17]MH_I2C_Read... [00:21:17]Read from MH i2c: E2 17 00 [00:21:17]MH_I2C_Read... [00:21:17]Read from MH i2c: E2 17 00 06 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DA [00:21:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [00:21:17]wFMCommunicate OK [00:21:17]CreateOFDProtocolMessage done [00:21:17]OFDSenderStorePacket 67593 [00:21:17]StoreOFDPacket docnum=67593 [00:21:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 C1 9C 04 01 39 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 EA 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 26 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 26 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 FC A2 46 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 09 08 01 00 35 04 06 00 79 9E 7B F3 62 51 DA 87 D0 D2 5F 2F 73 4A [00:21:17]CheckFolder [00:21:17]dirname=/storage/ofd_packets [00:21:17]CheckFolder done [00:21:17]ProducePacketName [00:21:17]name=ofd_packets/00067593 [00:21:17]NVStorageSaveData ofd_packets/00067593 [00:21:17]File name is /storage/ofd_packets/00067593 [00:21:17]Write 298 bytes [00:21:17]NVStorageSaveData done [00:21:17]OFDSenderStorePacket done [00:21:17]KKMCreateOFDPacket done [00:21:17]NVStorageSaveData kkm_last_timestamp [00:21:17]File name is /storage/kkm_last_timestamp [00:21:17]Write 4 bytes [00:21:17]NVStorageSaveData done [00:21:17]ExternCall_PrintAddStr [00:21:17]wPrintStart [00:21:17]Write to MH i2c: 01 00 00 07 04 0B [00:21:17]Write i2c OK [00:21:17]MH_I2C_Read... [00:21:17]Read from MH i2c: 01 [00:21:17]MH_I2C_Read... [00:21:17]Read from MH i2c: 01 07 00 [00:21:17]MH_I2C_Read... [00:21:17]Read from MH i2c: 01 07 00 07 04 00 00 00 00 00 FF 0F 20 [00:21:17]RasterBufferAndPrint [00:21:17]line Счет N : (1)507674 [00:21:17]line ИНН: 02508201610067 [00:21:17]line Контрольно-Кассовый Чек [00:21:17]line ПРОДАЖА [00:21:17]line ТРК (МРК, ГНК) : 11 [00:21:17]line Товар: 2710194210 [00:21:17]line ДТ-К-5 [00:21:17]line 40.170 * 74.70 [00:21:17]line = 3000.70 [00:21:17]line НДС 12% НСП 1% [00:21:17]line > о реализуемом товаре [00:21:17]line ИТОГО: 3000.70 [00:21:17]line НСП 1% : 26.55 [00:21:17]line НДС 12% : 318.66 [00:21:17]line Наличными: 0.00 [00:21:17]line Безнал.: 3000.70 [00:21:17]line Место: АЗС № 91 "Партнер Нефть" [00:21:17]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [00:21:17]line СНО: Общий режим [00:21:17]line Чек 2 17.05.2024 00:21 [00:21:17]line Смена: 358 ФФД: 1.0 [00:21:17]line ЗНМ: 0300000119 [00:21:17]line РНМ: 0000000000091845 [00:21:17]line Версия ККМ: 001 [00:21:17]line Платежная система: O! деньги [00:21:17]line ФМ: 0000000000871829 [00:21:17]line ФД: 67593 [00:21:17]line ФПД: 133721591341649 [00:21:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T002116&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67593&fm=133721591341649&tin=02508201610067®Number=0000000000091845&sum=300070 [00:21:18]OFD Sender: Processing packet 67593 [packets to send 35, broken 34] [00:21:18]ProducePacketName [00:21:18]name=ofd_packets/00067593 [00:21:18]OFD Sender: To server: pG, [00:21:18]CommunicateWithHost lk.salyk.kg:30040 [00:21:18]ConnectInit lk.salyk.kg [00:21:18]written 0, free lines is 4095 [00:21:18]Connected sock=10 [00: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 38 32 39 0C 01 00 00 C1 9C 04 01 39 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 EA 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 26 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 26 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 FC A2 46 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 09 08 01 00 35 04 06 00 79 9E 7B F3 62 51 DA 87 D0 D2 5F 2F 73 4A [00: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 38 32 39 4F 00 00 00 FB E2 47 00 B6 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 38 32 39 10 04 04 00 09 08 01 00 F4 03 04 00 D6 4A 46 66 B6 04 01 00 00 D9 11 B3 44 75 A6 38 1C [00:21:18]CommunicateWithHost err = 0 [00:21:18]CheckOFDResponse [00:21:18]1017 (14) - 77093643461234 [00:21:18]1041 (16) - 0000000000871829 [00:21:18]1040 (4) - 67593 [00:21:18]1012 (4) - 16.05.2024 18:05 [00:21:18]1206 (1) - 0 [00:21:18]OFD Sender: Remove packet 67593 [00:21:18]ProducePacketName [00:21:18]name=ofd_packets/00067593 [00:21:18]NVStorageDeleteData [00:21:18]Write to MH i2c: 01 00 00 30 04 34 [00:21:18]Write i2c OK [00:21:18]MH_I2C_Read... [00:21:18]Read from MH i2c: 01 [00:21:18]MH_I2C_Read... [00:21:18]Read from MH i2c: 01 07 00 [00:21:18]MH_I2C_Read... [00:21:18]Read from MH i2c: 01 07 00 30 04 00 00 00 00 00 D8 0C 1F [00:21:18]RasterBufferAndPrint [00:21:18]line [00:21:18]line [00:21:18]line [00:21:18]line [00:21:18]line [00:21:18]written 0, free lines is 3297 [00:21:18]MH_Cut [00:21:18]Write to MH i2c: D1 01 00 37 04 01 0D [00:21:18]Write i2c OK [00:21:18]MH_I2C_Read... [00:21:18]Read from MH i2c: D1 [00:21:18]MH_I2C_Read... [00:21:18]Read from MH i2c: D1 01 00 [00:21:18]MH_I2C_Read... [00:21:18]Read from MH i2c: D1 01 00 37 04 00 0C [00:21:18]Write to MH i2c: 01 00 00 38 04 3C [00:21:18]Write i2c OK [00:21:18]MH_I2C_Read... [00:21:19]OFD Sender: No OFD packet to send [00:21:19]*** Cut start [00:21:19]*** Purtial cut [00:21:19]*** CUTSNS_PIN = 0 [00:21:19]*** Stage 1: CUTSNS_PIN = 1 [00:21:21]Read from MH i2c: 01 [00:21:21]MH_I2C_Read... [00:21:21]*** Stop cut motor [00:21:21]*** Cut end [00:21:21]Read from MH i2c: 01 07 00 [00:21:21]MH_I2C_Read... [00:21:21]Read from MH i2c: 01 07 00 38 04 00 00 00 00 00 FF 0F 51 [00:21:21]process_action close_receipt done [00:21:21]requested_data is exist [00:21:21]produce_requested_data [00:21:21]requested_item fm.sn is exist - process it [00:21:21]wFMCommunicate request_size=4 [00:21:21]MH_SAM_APDU [00:21:21]CAPDU: 80 11 00 00 [00:21:21]Write to MH i2c: E2 08 00 39 04 80 11 00 00 00 00 00 00 B7 [00:21:21]Write i2c OK [00:21:21]MH_I2C_Read... [00:21:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:21:21]Read from MH i2c: E2 [00:21:21]MH_I2C_Read... [00:21:21]Read from MH i2c: E2 17 00 [00:21:21]MH_I2C_Read... [00:21:21]Read from MH i2c: E2 17 00 39 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0D [00:21:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [00:21:21]wFMCommunicate OK [00:21:21]requested_item fd.num is exist - process it [00:21:21]SAM_PROTO_GetFieldsCounters [00:21:21]wFMCommunicate request_size=4 [00:21:21]MH_SAM_APDU [00:21:21]CAPDU: 80 13 00 00 [00:21:21]Write to MH i2c: E2 08 00 3A 04 80 13 00 00 00 00 00 00 BA [00:21:21]Write i2c OK [00:21:21]MH_I2C_Read... [00:21:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:21:21]Read from MH i2c: E2 [00:21:21]MH_I2C_Read... [00:21:21]Read from MH i2c: E2 62 00 [00:21:21]MH_I2C_Read... [00:21:21]Read from MH i2c: E2 62 00 3A 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 09 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [00:21:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 09 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:21:21]wFMCommunicate OK [00:21:21]SAM_PROTO_GetFieldsCounters done [00:21:21]requested_item shift.num is exist - process it [00:21:21]requested_item shift.opened is exist - process it [00:21:21]req_shift_opened [00:21:21]FM_GetShiftState [00:21:21]SAM_PROTO_GetShiftState [00:21:21]wFMCommunicate request_size=4 [00:21:21]MH_SAM_APDU [00:21:21]CAPDU: 80 13 01 00 [00:21:21]Write to MH i2c: E2 08 00 3B 04 80 13 01 00 00 00 00 00 BC [00:21:21]Write i2c OK [00:21:21]MH_I2C_Read... [00:21:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:21]Read from MH i2c: E2 [00:21:21]MH_I2C_Read... [00:21:21]Read from MH i2c: E2 0E 00 [00:21:21]MH_I2C_Read... [00:21:21]Read from MH i2c: E2 0E 00 3B 04 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 42 [00:21:21]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [00:21:21]wFMCommunicate OK [00:21:21]SAM_PROTO_GetShiftState done [00:21:21]FM_GetShiftState done [00:21:21]req_shift_opened done [00:21:21]requested_item shift.open_date is exist - process it [00:21:21]req_shift_open_date [00:21:21]req_shift_open_date done [00:21:21]produce_requested_data done [00:21:21]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67593,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [00:21:21]process_action_free close_receipt [00:21:21]json_value_free [00:21:21]json_value_free done [00:21:21]process_json_proto returns [00:21:21]Send response to host [00:21:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67593,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [00:21:21]free response buf [00:21:21]execute_script done [00:21:21]execute_script returns [00:21:21]free content buf [00:21:21]Sock 7.Close socket [00:21:21]Sock 7.Thread stoped [00:21:24]OFD Sender: No OFD packet to send [00:21:29]OFD Sender: No OFD packet to send [00:21:31]accept exits with 9 [00:21:31]New connection [00:21:31]New thread 3067538788 created [00:21:31]Thread 3067395428 joined [00:21:31]Waiting for new connection... [00:21:31] Sock 9.Parse request [00:21:31]Sock 9.Check first char [00:21:31]Sock 9.First char is OK [00:21:31]request: POST /json_proto HTTP/1.0 [00:21:31]Method: POST [00:21:31]URL: /json_proto [00:21:31]Method is POST - this is cgi request [00:21:31]url: /json_proto [00:21:31]query_string will be loaded in cgi processing [00:21:31]execute_cgi json_proto POST (null) [00:21:31]execute_cgi path=json_proto method=POST [00:21:31]POST find Content-Length [00:21:31]Host: 172.17.41.195:8080 [00:21:31]Content-Length: 800 [00:21:31]Content-Type: application/json [00:21:31] [00:21:31]POST finish read [00:21:31]Found Content-Length = 800 [00:21:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507675", "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" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:21:31]execute_script... [00:21: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)507675", "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" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:21:31]POST & json_proto [00:21:31]process_json_proto [00:21:31]json parsed OK: [00:21:31]protocol is kg_v1.0 [00:21:31]action value=close_receipt [00:21:31]process_action close_receipt [00:21:31]cmd_close_receipt [00:21:31]MH_GetDate [00:21:31]Write to MH i2c: F0 00 00 3C 04 2F [00:21:31]Write i2c OK [00:21:31]MH_I2C_Read... [00:21:31]Read from MH i2c: F0 [00:21:31]MH_I2C_Read... [00:21:31]Read from MH i2c: F0 09 00 [00:21:31]MH_I2C_Read... [00:21:31]Read from MH i2c: F0 09 00 3C 04 00 0B A3 46 66 FC 21 6F 64 82 [00:21:31]GetLastDocTimeStamp 1715905276 [00:21:31]current date 1715905291 [00:21:31]FM_GetShiftState [00:21:31]SAM_PROTO_GetShiftState [00:21:31]wFMCommunicate request_size=4 [00:21:31]MH_SAM_APDU [00:21:31]CAPDU: 80 13 01 00 [00:21:31]Write to MH i2c: E2 08 00 3D 04 80 13 01 00 00 00 00 00 BE [00:21:31]Write i2c OK [00:21:31]MH_I2C_Read... [00:21:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:31]Read from MH i2c: E2 [00:21:31]MH_I2C_Read... [00:21:31]Read from MH i2c: E2 0E 00 [00:21:31]MH_I2C_Read... [00:21:31]Read from MH i2c: E2 0E 00 3D 04 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 44 [00:21:31]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [00:21:31]wFMCommunicate OK [00:21:31]SAM_PROTO_GetShiftState done [00:21:31]FM_GetShiftState done [00:21:31]opened in 1715905068 [00:21:31]opened+sec_in_day 1715991468 [00:21:31]quantity*price = 100023 [00:21:31]sum+1 = 100024 [00:21:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.23 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.23 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 3 17.05.2024 00:21 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67594 ФПД: 192214506988318 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T002132&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67594&fm=192214506988318&tin=02508201610067®Number=0000000000091845&sum=100023 [00:21:32]StoreToDocumentArchive [00:21:32]shift 358 fd 67594 [00:21:32]save to /storage/0358/doc_00067594 [00:21:32]save last doc name /storage/0358/doc_00067594 to /storage/kkm_last_doc_name [00:21:32]save OK [00:21:32]Clear old archive folders... [00:21:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:21:32]tlvbuf is 015BA380 [00:21:32]SAM_PROTO_ClearQueue [00:21:32]wFMCommunicate request_size=4 [00:21:32]MH_SAM_APDU [00:21:32]CAPDU: 80 09 00 00 [00:21:32]Write to MH i2c: E2 08 00 4A 04 80 09 00 00 00 00 00 00 C0 [00:21:32]Write i2c OK [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: E2 [00:21:32]MH_I2C_Read... [00:21:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:21:32]Read from MH i2c: E2 03 00 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: E2 03 00 4A 04 00 90 00 C2 [00:21:32]RAPDU: 90 00 [00:21:32]wFMCommunicate OK [00:21:32]SAM_PROTO_ClearQueue done [00:21:32]KKMCreateOFDPacket [00:21:32]OFDProtocolAddRootSTLVToBuf [00:21:32]FM_MakeSignedData [00:21:32]FM_MakeSignedData [00:21:32]SAM_PROTO_SignData [00:21:32]wFMCommunicate request_size=4 [00:21:32]MH_SAM_APDU [00:21:32]CAPDU: 80 0D 01 02 [00:21:32]Write to MH i2c: E2 08 00 4B 04 80 0D 01 02 00 00 00 00 C8 [00:21:32]Write i2c OK [00:21:32]MH_I2C_Read... [00:21:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:21:32]Read from MH i2c: E2 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: E2 03 00 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: E2 03 00 4B 04 00 90 00 C3 [00:21:32]RAPDU: 90 00 [00:21:32]wFMCommunicate OK [00:21:32]wFMCommunicate request_size=255 [00:21:32]MH_SAM_APDU [00:21: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 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 0C A3 46 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0A 08 01 00 35 04 06 00 AE D1 6D 68 [00:21:32]Write to MH i2c: E2 02 01 4C 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 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 0C A3 46 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0A 08 01 00 35 04 06 00 AE D1 6D 68 00 00 FC [00:21:32]Write i2c OK [00:21:32]MH_I2C_Read... [00:21:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:32]Read from MH i2c: E2 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: E2 03 00 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: E2 03 00 4C 04 00 90 00 C4 [00:21:32]RAPDU: 90 00 [00:21:32]wFMCommunicate OK [00:21:32]wFMCommunicate request_size=7 [00:21:32]MH_SAM_APDU [00:21:32]CAPDU: 80 0D 02 02 02 E3 1E [00:21:32]Write to MH i2c: E2 0A 00 4D 04 80 0D 02 02 02 00 E3 1E 00 00 D0 [00:21:32]Write i2c OK [00:21:32]MH_I2C_Read... [00:21:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:32]Read from MH i2c: E2 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: E2 03 00 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: E2 03 00 4D 04 00 90 00 C5 [00:21:32]RAPDU: 90 00 [00:21:32]wFMCommunicate OK [00:21:32]wFMCommunicate request_size=4 [00:21:32]MH_SAM_APDU [00:21:32]CAPDU: 80 0D 03 02 [00:21:32]Write to MH i2c: E2 08 00 4E 04 80 0D 03 02 00 00 00 00 CD [00:21:32]Write i2c OK [00:21:32]MH_I2C_Read... [00:21:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:21:32]Read from MH i2c: E2 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: E2 0B 00 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: E2 0B 00 4E 04 00 FE 4B 9E 3B F1 B6 05 F8 90 00 94 [00:21:32]RAPDU: FE 4B 9E 3B F1 B6 05 F8 90 00 [00:21:32]wFMCommunicate OK [00:21:32]SAM_PROTO_SignData done [00:21:32]FM_MakeSignedData done [00:21:32]CreateOFDProtocolMessage [00:21:32]wFMCommunicate request_size=4 [00:21:32]MH_SAM_APDU [00:21:32]CAPDU: 80 11 00 00 [00:21:32]Write to MH i2c: E2 08 00 4F 04 80 11 00 00 00 00 00 00 CD [00:21:32]Write i2c OK [00:21:32]MH_I2C_Read... [00:21:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:21:33]Read from MH i2c: E2 [00:21:33]MH_I2C_Read... [00:21:33]Read from MH i2c: E2 17 00 [00:21:33]MH_I2C_Read... [00:21:33]Read from MH i2c: E2 17 00 4F 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 23 [00:21:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [00:21:33]wFMCommunicate OK [00:21:33]CreateOFDProtocolMessage done [00:21:33]OFDSenderStorePacket 67594 [00:21:33]StoreOFDPacket docnum=67594 [00:21:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 3D 84 04 01 20 D4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 0C A3 46 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0A 08 01 00 35 04 06 00 AE D1 6D 68 E3 1E FE 4B 9E 3B F1 B6 05 F8 [00:21:33]CheckFolder [00:21:33]dirname=/storage/ofd_packets [00:21:33]CheckFolder done [00:21:33]ProducePacketName [00:21:33]name=ofd_packets/00067594 [00:21:33]NVStorageSaveData ofd_packets/00067594 [00:21:33]File name is /storage/ofd_packets/00067594 [00:21:33]Write 298 bytes [00:21:33]NVStorageSaveData done [00:21:33]OFDSenderStorePacket done [00:21:33]KKMCreateOFDPacket done [00:21:33]NVStorageSaveData kkm_last_timestamp [00:21:33]File name is /storage/kkm_last_timestamp [00:21:33]Write 4 bytes [00:21:33]NVStorageSaveData done [00:21:33]ExternCall_PrintAddStr [00:21:33]wPrintStart [00:21:33]Write to MH i2c: 01 00 00 50 04 54 [00:21:33]Write i2c OK [00:21:33]MH_I2C_Read... [00:21:33]Read from MH i2c: 01 [00:21:33]MH_I2C_Read... [00:21:33]Read from MH i2c: 01 07 00 [00:21:33]MH_I2C_Read... [00:21:33]Read from MH i2c: 01 07 00 50 04 00 00 00 00 00 FF 0F 69 [00:21:33]RasterBufferAndPrint [00:21:33]line Счет N : (1)507675 [00:21:33]line ИНН: 02508201610067 [00:21:33]line Контрольно-Кассовый Чек [00:21:33]line ПРОДАЖА [00:21:33]line ТРК (МРК, ГНК) : 31 [00:21:33]line Товар: 2710194210 [00:21:33]line ДТ-К-5 [00:21:33]line 13.390 * 74.70 [00:21:33]line = 1000.23 [00:21:33]line НДС 12% НСП 1% [00:21:33]line > о реализуемом товаре [00:21:33]line ИТОГО: 1000.23 [00:21:33]line НСП 1% : 8.85 [00:21:33]line НДС 12% : 106.22 [00:21:33]line Наличными: 0.00 [00:21:33]line Безнал.: 1000.23 [00:21:33]line Место: АЗС № 91 "Партнер Нефть" [00:21:33]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [00:21:33]line СНО: Общий режим [00:21:33]line Чек 3 17.05.2024 00:21 [00:21:33]line Смена: 358 ФФД: 1.0 [00:21:33]line ЗНМ: 0300000119 [00:21:33]line РНМ: 0000000000091845 [00:21:33]line Версия ККМ: 001 [00:21:33]line Платежная система: O! деньги [00:21:33]line ФМ: 0000000000871829 [00:21:33]line ФД: 67594 [00:21:33]line ФПД: 192214506988318 [00:21:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T002132&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67594&fm=192214506988318&tin=02508201610067®Number=0000000000091845&sum=100023 [00:21:33]OFD Sender: Processing packet 67594 [packets to send 35, broken 34] [00:21:33]ProducePacketName [00:21:33]name=ofd_packets/00067594 [00:21:33]OFD Sender: To server: pG, [00:21:33]CommunicateWithHost lk.salyk.kg:30040 [00:21:33]ConnectInit lk.salyk.kg [00:21:33]written 0, free lines is 4095 [00:21:33]Connected sock=10 [00:21: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 38 32 39 0C 01 00 00 3D 84 04 01 20 D4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 0C A3 46 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0A 08 01 00 35 04 06 00 AE D1 6D 68 E3 1E FE 4B 9E 3B F1 B6 05 F8 [00:21:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 13 41 47 00 C5 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 38 32 39 10 04 04 00 0A 08 01 00 F4 03 04 00 E5 4A 46 66 B6 04 01 00 00 E2 15 F5 A9 C5 61 AC 1D [00:21:33]CommunicateWithHost err = 0 [00:21:33]CheckOFDResponse [00:21:33]1017 (14) - 77093643461234 [00:21:33]1041 (16) - 0000000000871829 [00:21:33]1040 (4) - 67594 [00:21:33]1012 (4) - 16.05.2024 18:05 [00:21:33]1206 (1) - 0 [00:21:33]OFD Sender: Remove packet 67594 [00:21:33]ProducePacketName [00:21:33]name=ofd_packets/00067594 [00:21:33]NVStorageDeleteData [00:21:33]Write to MH i2c: 01 00 00 79 04 7D [00:21:33]Write i2c OK [00:21:33]MH_I2C_Read... [00:21:33]Read from MH i2c: 01 [00:21:33]MH_I2C_Read... [00:21:33]Read from MH i2c: 01 07 00 [00:21:33]MH_I2C_Read... [00:21:33]Read from MH i2c: 01 07 00 79 04 00 00 00 00 00 D8 0C 68 [00:21:33]RasterBufferAndPrint [00:21:33]line [00:21:33]line [00:21:33]line [00:21:33]line [00:21:33]line [00:21:33]written 0, free lines is 3293 [00:21:33]MH_Cut [00:21:33]Write to MH i2c: D1 01 00 80 04 01 56 [00:21:33]Write i2c OK [00:21:33]MH_I2C_Read... [00:21:33]Read from MH i2c: D1 [00:21:33]MH_I2C_Read... [00:21:33]Read from MH i2c: D1 01 00 [00:21:33]MH_I2C_Read... [00:21:33]Read from MH i2c: D1 01 00 80 04 00 55 [00:21:33]Write to MH i2c: 01 00 00 81 04 85 [00:21:33]Write i2c OK [00:21:33]MH_I2C_Read... [00:21:34]OFD Sender: No OFD packet to send [00:21:34]*** Cut start [00:21:34]*** Purtial cut [00:21:34]*** Stage 1: CUTSNS_PIN = 1 [00:21:34]Read from MH i2c: 01 [00:21:34]MH_I2C_Read... [00:21:34]*** Stop cut motor [00:21:34]*** Cut end [00:21:34]Read from MH i2c: 01 07 00 [00:21:34]MH_I2C_Read... [00:21:34]Read from MH i2c: 01 07 00 81 04 00 00 00 00 00 FF 0F 9A [00:21:34]process_action close_receipt done [00:21:34]requested_data is exist [00:21:34]produce_requested_data [00:21:34]requested_item fm.sn is exist - process it [00:21:34]wFMCommunicate request_size=4 [00:21:34]MH_SAM_APDU [00:21:34]CAPDU: 80 11 00 00 [00:21:34]Write to MH i2c: E2 08 00 82 04 80 11 00 00 00 00 00 00 00 [00:21:34]Write i2c OK [00:21:34]MH_I2C_Read... [00:21:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:21:34]Read from MH i2c: E2 [00:21:35]MH_I2C_Read... [00:21:35]Read from MH i2c: E2 17 00 [00:21:35]MH_I2C_Read... [00:21:35]Read from MH i2c: E2 17 00 82 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 56 [00:21:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [00:21:35]wFMCommunicate OK [00:21:35]requested_item fd.num is exist - process it [00:21:35]SAM_PROTO_GetFieldsCounters [00:21:35]wFMCommunicate request_size=4 [00:21:35]MH_SAM_APDU [00:21:35]CAPDU: 80 13 00 00 [00:21:35]Write to MH i2c: E2 08 00 83 04 80 13 00 00 00 00 00 00 03 [00:21:35]Write i2c OK [00:21:35]MH_I2C_Read... [00:21:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:21:35]Read from MH i2c: E2 [00:21:35]MH_I2C_Read... [00:21:35]Read from MH i2c: E2 62 00 [00:21:35]MH_I2C_Read... [00:21:35]Read from MH i2c: E2 62 00 83 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 0A 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [00:21:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 0A 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:21:35]wFMCommunicate OK [00:21:35]SAM_PROTO_GetFieldsCounters done [00:21:35]requested_item shift.num is exist - process it [00:21:35]requested_item shift.opened is exist - process it [00:21:35]req_shift_opened [00:21:35]FM_GetShiftState [00:21:35]SAM_PROTO_GetShiftState [00:21:35]wFMCommunicate request_size=4 [00:21:35]MH_SAM_APDU [00:21:35]CAPDU: 80 13 01 00 [00:21:35]Write to MH i2c: E2 08 00 84 04 80 13 01 00 00 00 00 00 05 [00:21:35]Write i2c OK [00:21:35]MH_I2C_Read... [00:21:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:35]Read from MH i2c: E2 [00:21:35]MH_I2C_Read... [00:21:35]Read from MH i2c: E2 0E 00 [00:21:35]MH_I2C_Read... [00:21:35]Read from MH i2c: E2 0E 00 84 04 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 8B [00:21:35]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [00:21:35]wFMCommunicate OK [00:21:35]SAM_PROTO_GetShiftState done [00:21:35]FM_GetShiftState done [00:21:35]req_shift_opened done [00:21:35]requested_item shift.open_date is exist - process it [00:21:35]req_shift_open_date [00:21:35]req_shift_open_date done [00:21:35]produce_requested_data done [00:21:35]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67594,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [00:21:35]process_action_free close_receipt [00:21:35]json_value_free [00:21:35]json_value_free done [00:21:35]process_json_proto returns [00:21:35]Send response to host [00:21:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67594,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [00:21:35]free response buf [00:21:35]execute_script done [00:21:35]execute_script returns [00:21:35]free content buf [00:21:35]Sock 9.Close socket [00:21:35]Sock 9.Thread stoped [00:21:39]OFD Sender: No OFD packet to send [00:21:44]OFD Sender: No OFD packet to send [00:21:49]OFD Sender: No OFD packet to send [00:21:54]OFD Sender: No OFD packet to send [00:21:59]OFD Sender: No OFD packet to send [00:22:04]OFD Sender: No OFD packet to send [00:22:09]OFD Sender: No OFD packet to send [00:22:14]OFD Sender: No OFD packet to send [00:22:19]OFD Sender: No OFD packet to send [00:22:24]OFD Sender: No OFD packet to send [00:22:29]OFD Sender: No OFD packet to send [00:22:34]OFD Sender: No OFD packet to send [00:22:39]OFD Sender: No OFD packet to send [00:22:44]OFD Sender: No OFD packet to send [00:22:49]OFD Sender: No OFD packet to send [00:22:54]OFD Sender: No OFD packet to send [00:22:59]OFD Sender: No OFD packet to send [00:23:04]OFD Sender: No OFD packet to send [00:23:09]OFD Sender: No OFD packet to send [00:23:14]OFD Sender: No OFD packet to send [00:23:19]OFD Sender: No OFD packet to send [00:23:24]OFD Sender: No OFD packet to send [00:23:29]OFD Sender: No OFD packet to send [00:23:34]OFD Sender: No OFD packet to send [00:23:39]OFD Sender: No OFD packet to send [00:23:44]OFD Sender: No OFD packet to send [00:23:49]OFD Sender: No OFD packet to send [00:23:54]OFD Sender: No OFD packet to send [00:23:59]OFD Sender: No OFD packet to send [00:24:04]OFD Sender: No OFD packet to send [00:24:09]OFD Sender: No OFD packet to send [00:24:14]OFD Sender: No OFD packet to send [00:24:19]OFD Sender: No OFD packet to send [00:24:24]OFD Sender: No OFD packet to send [00:24:29]OFD Sender: No OFD packet to send [00:24:34]OFD Sender: No OFD packet to send [00:24:39]OFD Sender: No OFD packet to send [00:24:44]OFD Sender: No OFD packet to send [00:24:49]OFD Sender: No OFD packet to send [00:24:54]OFD Sender: No OFD packet to send [00:24:59]OFD Sender: No OFD packet to send [00:25:04]OFD Sender: No OFD packet to send [00:25:09]OFD Sender: No OFD packet to send [00:25:14]OFD Sender: No OFD packet to send [00:25:19]OFD Sender: No OFD packet to send [00:25:24]OFD Sender: No OFD packet to send [00:25:29]OFD Sender: No OFD packet to send [00:25:34]OFD Sender: No OFD packet to send [00:25:39]OFD Sender: No OFD packet to send [00:25:44]OFD Sender: No OFD packet to send [00:25:49]OFD Sender: No OFD packet to send [00:25:54]OFD Sender: No OFD packet to send [00:25:59]OFD Sender: No OFD packet to send [00:26:04]OFD Sender: No OFD packet to send [00:26:09]OFD Sender: No OFD packet to send [00:26:14]OFD Sender: No OFD packet to send [00:26:19]OFD Sender: No OFD packet to send [00:26:24]OFD Sender: No OFD packet to send [00:26:29]OFD Sender: No OFD packet to send [00:26:34]OFD Sender: No OFD packet to send [00:26:39]OFD Sender: No OFD packet to send [00:26:44]OFD Sender: No OFD packet to send [00:26:49]OFD Sender: No OFD packet to send [00:26:54]OFD Sender: No OFD packet to send [00:26:59]OFD Sender: No OFD packet to send [00:27:04]OFD Sender: No OFD packet to send [00:27:09]OFD Sender: No OFD packet to send [00:27:14]OFD Sender: No OFD packet to send [00:27:19]OFD Sender: No OFD packet to send [00:27:24]OFD Sender: No OFD packet to send [00:27:29]OFD Sender: No OFD packet to send [00:27:34]OFD Sender: No OFD packet to send [00:27:39]OFD Sender: No OFD packet to send [00:27:44]OFD Sender: No OFD packet to send [00:27:49]OFD Sender: No OFD packet to send [00:27:54]OFD Sender: No OFD packet to send [00:27:59]OFD Sender: No OFD packet to send [00:28:04]OFD Sender: No OFD packet to send [00:28:09]OFD Sender: No OFD packet to send [00:28:14]OFD Sender: No OFD packet to send [00:28:19]OFD Sender: No OFD packet to send [00:28:24]OFD Sender: No OFD packet to send [00:28:29]OFD Sender: No OFD packet to send [00:28:34]OFD Sender: No OFD packet to send [00:28:39]OFD Sender: No OFD packet to send [00:28:44]OFD Sender: No OFD packet to send [00:28:49]OFD Sender: No OFD packet to send [00:28:54]OFD Sender: No OFD packet to send [00:28:59]OFD Sender: No OFD packet to send [00:29:04]OFD Sender: No OFD packet to send [00:29:09]OFD Sender: No OFD packet to send [00:29:14]OFD Sender: No OFD packet to send [00:29:19]OFD Sender: No OFD packet to send [00:29:24]OFD Sender: No OFD packet to send [00:29:29]OFD Sender: No OFD packet to send [00:29:34]OFD Sender: No OFD packet to send [00:29:39]OFD Sender: No OFD packet to send [00:29:44]OFD Sender: No OFD packet to send [00:29:49]OFD Sender: No OFD packet to send [00:29:54]OFD Sender: No OFD packet to send [00:29:59]OFD Sender: No OFD packet to send [00:30:04]OFD Sender: No OFD packet to send [00:30:09]OFD Sender: No OFD packet to send [00:30:14]OFD Sender: No OFD packet to send [00:30:19]OFD Sender: No OFD packet to send [00:30:24]OFD Sender: No OFD packet to send [00:30:29]OFD Sender: No OFD packet to send [00:30:34]OFD Sender: No OFD packet to send [00:30:39]OFD Sender: No OFD packet to send [00:30:44]OFD Sender: No OFD packet to send [00:30:49]OFD Sender: No OFD packet to send [00:30:54]OFD Sender: No OFD packet to send [00:30:59]OFD Sender: No OFD packet to send [00:31:04]OFD Sender: No OFD packet to send [00:31:09]OFD Sender: No OFD packet to send [00:31:14]OFD Sender: No OFD packet to send [00:31:19]OFD Sender: No OFD packet to send [00:31:22]accept exits with 7 [00:31:22]New connection [00:31:22]New thread 3067395428 created [00:31:22]Thread 3067538788 joined [00:31:22]Waiting for new connection... [00:31:22] Sock 7.Parse request [00:31:22]Sock 7.Check first char [00:31:22]Sock 7.First char is OK [00:31:22]request: POST /json_proto HTTP/1.0 [00:31:22]Method: POST [00:31:22]URL: /json_proto [00:31:22]Method is POST - this is cgi request [00:31:22]url: /json_proto [00:31:22]query_string will be loaded in cgi processing [00:31:22]execute_cgi json_proto POST (null) [00:31:22]execute_cgi path=json_proto method=POST [00:31:22]POST find Content-Length [00:31:22]Host: 172.17.41.195:8080 [00:31:22]Content-Length: 637 [00:31:22]Content-Type: application/json [00:31:22] [00:31:22]POST finish read [00:31:22]Found Content-Length = 637 [00:31:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507676", "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" : 74.70, "quantity" : 10.000, "sum" : 747.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 747.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:31:22]execute_script... [00:31:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507676", "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" : 74.70, "quantity" : 10.000, "sum" : 747.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 747.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:31:22]POST & json_proto [00:31:22]process_json_proto [00:31:22]json parsed OK: [00:31:22]protocol is kg_v1.0 [00:31:22]action value=close_receipt [00:31:22]process_action close_receipt [00:31:22]cmd_close_receipt [00:31:22]MH_GetDate [00:31:22]Write to MH i2c: F0 00 00 85 04 78 [00:31:22]Write i2c OK [00:31:22]MH_I2C_Read... [00:31:22]Read from MH i2c: F0 [00:31:22]MH_I2C_Read... [00:31:22]Read from MH i2c: F0 09 00 [00:31:22]MH_I2C_Read... [00:31:22]Read from MH i2c: F0 09 00 85 04 00 5B A5 46 66 FC 21 6F 64 1D [00:31:22]GetLastDocTimeStamp 1715905292 [00:31:22]current date 1715905883 [00:31:22]FM_GetShiftState [00:31:22]SAM_PROTO_GetShiftState [00:31:22]wFMCommunicate request_size=4 [00:31:22]MH_SAM_APDU [00:31:22]CAPDU: 80 13 01 00 [00:31:22]Write to MH i2c: E2 08 00 86 04 80 13 01 00 00 00 00 00 07 [00:31:22]Write i2c OK [00:31:22]MH_I2C_Read... [00:31:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:31:22]Read from MH i2c: E2 [00:31:22]MH_I2C_Read... [00:31:22]Read from MH i2c: E2 0E 00 [00:31:22]MH_I2C_Read... [00:31:22]Read from MH i2c: E2 0E 00 86 04 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 8D [00:31:22]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [00:31:22]wFMCommunicate OK [00:31:22]SAM_PROTO_GetShiftState done [00:31:22]FM_GetShiftState done [00:31:22]opened in 1715905068 [00:31:22]opened+sec_in_day 1715991468 [00:31:22]quantity*price = 74700 [00:31:22]sum+1 = 74701 [00:31:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 747.00 НСП 1% : 6.61 НДС 12% : 79.33 Наличными: 747.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 4 17.05.2024 00:31 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67595 ФПД: 142785250587600 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T003123&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67595&fm=142785250587600&tin=02508201610067®Number=0000000000091845&sum=74700 [00:31:23]StoreToDocumentArchive [00:31:23]shift 358 fd 67595 [00:31:23]save to /storage/0358/doc_00067595 [00:31:23]save last doc name /storage/0358/doc_00067595 to /storage/kkm_last_doc_name [00:31:23]save OK [00:31:23]Clear old archive folders... [00:31:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:31:23]tlvbuf is 015CD0A0 [00:31:23]SAM_PROTO_ClearQueue [00:31:23]wFMCommunicate request_size=4 [00:31:23]MH_SAM_APDU [00:31:23]CAPDU: 80 09 00 00 [00:31:23]Write to MH i2c: E2 08 00 93 04 80 09 00 00 00 00 00 00 09 [00:31:23]Write i2c OK [00:31:23]MH_I2C_Read... [00:31:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:31:23]Read from MH i2c: E2 [00:31:23]MH_I2C_Read... [00:31:23]Read from MH i2c: E2 03 00 [00:31:23]MH_I2C_Read... [00:31:23]Read from MH i2c: E2 03 00 93 04 00 90 00 0B [00:31:23]RAPDU: 90 00 [00:31:23]wFMCommunicate OK [00:31:23]SAM_PROTO_ClearQueue done [00:31:23]KKMCreateOFDPacket [00:31:23]OFDProtocolAddRootSTLVToBuf [00:31:23]FM_MakeSignedData [00:31:23]FM_MakeSignedData [00:31:23]SAM_PROTO_SignData [00:31:23]wFMCommunicate request_size=4 [00:31:23]MH_SAM_APDU [00:31:23]CAPDU: 80 0D 01 02 [00:31:23]Write to MH i2c: E2 08 00 94 04 80 0D 01 02 00 00 00 00 11 [00:31:23]Write i2c OK [00:31:23]MH_I2C_Read... [00:31:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:31:23]Read from MH i2c: E2 [00:31:23]MH_I2C_Read... [00:31:23]Read from MH i2c: E2 03 00 [00:31:23]MH_I2C_Read... [00:31:23]Read from MH i2c: E2 03 00 94 04 00 90 00 0C [00:31:23]RAPDU: 90 00 [00:31:23]wFMCommunicate OK [00:31:23]wFMCommunicate request_size=255 [00:31:23]MH_SAM_APDU [00:31: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 10 27 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 CC 23 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 23 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1E 00 00 00 00 07 04 06 00 CC 23 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 5B A5 46 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0B 08 01 00 35 04 06 00 81 DC C8 23 [00:31:23]Write to MH i2c: E2 02 01 95 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 10 27 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 CC 23 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 23 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1E 00 00 00 00 07 04 06 00 CC 23 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 5B A5 46 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0B 08 01 00 35 04 06 00 81 DC C8 23 00 00 EA [00:31:23]Write i2c OK [00:31:23]MH_I2C_Read... [00:31:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:31:23]Read from MH i2c: E2 [00:31:23]MH_I2C_Read... [00:31:23]Read from MH i2c: E2 03 00 [00:31:23]MH_I2C_Read... [00:31:23]Read from MH i2c: E2 03 00 95 04 00 90 00 0D [00:31:23]RAPDU: 90 00 [00:31:23]wFMCommunicate OK [00:31:23]wFMCommunicate request_size=7 [00:31:23]MH_SAM_APDU [00:31:23]CAPDU: 80 0D 02 02 02 F3 D0 [00:31:23]Write to MH i2c: E2 0A 00 96 04 80 0D 02 02 02 00 F3 D0 00 00 DB [00:31:23]Write i2c OK [00:31:23]MH_I2C_Read... [00:31:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:31:24]Read from MH i2c: E2 [00:31:24]MH_I2C_Read... [00:31:24]Read from MH i2c: E2 03 00 [00:31:24]MH_I2C_Read... [00:31:24]Read from MH i2c: E2 03 00 96 04 00 90 00 0E [00:31:24]RAPDU: 90 00 [00:31:24]wFMCommunicate OK [00:31:24]wFMCommunicate request_size=4 [00:31:24]MH_SAM_APDU [00:31:24]CAPDU: 80 0D 03 02 [00:31:24]Write to MH i2c: E2 08 00 97 04 80 0D 03 02 00 00 00 00 16 [00:31:24]Write i2c OK [00:31:24]MH_I2C_Read... [00:31:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:31:24]Read from MH i2c: E2 [00:31:24]MH_I2C_Read... [00:31:24]Read from MH i2c: E2 0B 00 [00:31:24]MH_I2C_Read... [00:31:24]Read from MH i2c: E2 0B 00 97 04 00 B0 BE CF 5C 87 D8 4B C3 90 00 1D [00:31:24]RAPDU: B0 BE CF 5C 87 D8 4B C3 90 00 [00:31:24]wFMCommunicate OK [00:31:24]SAM_PROTO_SignData done [00:31:24]FM_MakeSignedData done [00:31:24]CreateOFDProtocolMessage [00:31:24]wFMCommunicate request_size=4 [00:31:24]MH_SAM_APDU [00:31:24]CAPDU: 80 11 00 00 [00:31:24]Write to MH i2c: E2 08 00 98 04 80 11 00 00 00 00 00 00 16 [00:31:24]Write i2c OK [00:31:24]MH_I2C_Read... [00:31:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:31:24]Read from MH i2c: E2 [00:31:24]MH_I2C_Read... [00:31:24]Read from MH i2c: E2 17 00 [00:31:24]MH_I2C_Read... [00:31:24]Read from MH i2c: E2 17 00 98 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 6C [00:31:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [00:31:24]wFMCommunicate OK [00:31:24]CreateOFDProtocolMessage done [00:31:24]OFDSenderStorePacket 67595 [00:31:24]StoreOFDPacket docnum=67595 [00:31:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 8D CE 04 01 F5 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 10 27 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 CC 23 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 23 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1E 00 00 00 00 07 04 06 00 CC 23 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 5B A5 46 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0B 08 01 00 35 04 06 00 81 DC C8 23 F3 D0 B0 BE CF 5C 87 D8 4B C3 [00:31:24]CheckFolder [00:31:24]dirname=/storage/ofd_packets [00:31:24]CheckFolder done [00:31:24]ProducePacketName [00:31:24]name=ofd_packets/00067595 [00:31:24]NVStorageSaveData ofd_packets/00067595 [00:31:24]File name is /storage/ofd_packets/00067595 [00:31:24]Write 298 bytes [00:31:24]NVStorageSaveData done [00:31:24]OFDSenderStorePacket done [00:31:24]KKMCreateOFDPacket done [00:31:24]NVStorageSaveData kkm_last_timestamp [00:31:24]File name is /storage/kkm_last_timestamp [00:31:24]Write 4 bytes [00:31:24]NVStorageSaveData done [00:31:24]ExternCall_PrintAddStr [00:31:24]wPrintStart [00:31:24]Write to MH i2c: 01 00 00 99 04 9D [00:31:24]Write i2c OK [00:31:24]MH_I2C_Read... [00:31:24]Read from MH i2c: 01 [00:31:24]MH_I2C_Read... [00:31:24]Read from MH i2c: 01 07 00 [00:31:24]MH_I2C_Read... [00:31:24]Read from MH i2c: 01 07 00 99 04 00 00 00 00 00 FF 0F B2 [00:31:24]RasterBufferAndPrint [00:31:24]line Счет N : (1)507676 [00:31:24]line ИНН: 02508201610067 [00:31:24]line Контрольно-Кассовый Чек [00:31:24]line ПРОДАЖА [00:31:24]line ТРК (МРК, ГНК) : 21 [00:31:24]line Товар: 2710194210 [00:31:24]line ДТ-К-5 [00:31:24]line 10.000 * 74.70 [00:31:24]line = 747.00 [00:31:24]line НДС 12% НСП 1% [00:31:24]line > о реализуемом товаре [00:31:24]line ИТОГО: 747.00 [00:31:24]line НСП 1% : 6.61 [00:31:24]line НДС 12% : 79.33 [00:31:24]line Наличными: 747.00 [00:31:24]line Безнал.: 0.00 [00:31:24]line Место: АЗС № 91 "Партнер Нефть" [00:31:24]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [00:31:24]line СНО: Общий режим [00:31:24]line Чек 4 17.05.2024 00:31 [00:31:24]line Смена: 358 ФФД: 1.0 [00:31:24]line ЗНМ: 0300000119 [00:31:24]line РНМ: 0000000000091845 [00:31:24]line Версия ККМ: 001 [00:31:24]line ФМ: 0000000000871829 [00:31:24]line ФД: 67595 [00:31:24]line ФПД: 142785250587600 [00:31:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T003123&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67595&fm=142785250587600&tin=02508201610067®Number=0000000000091845&sum=74700 [00:31:24]OFD Sender: Processing packet 67595 [packets to send 35, broken 34] [00:31:24]ProducePacketName [00:31:24]name=ofd_packets/00067595 [00:31:24]OFD Sender: To server: pG, [00:31:24]CommunicateWithHost lk.salyk.kg:30040 [00:31:24]ConnectInit lk.salyk.kg [00:31:24]written 0, free lines is 4095 [00:31:24]Connected sock=11 [00:31:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 8D CE 04 01 F5 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 10 27 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 CC 23 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 23 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1E 00 00 00 00 07 04 06 00 CC 23 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 5B A5 46 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0B 08 01 00 35 04 06 00 81 DC C8 23 F3 D0 B0 BE CF 5C 87 D8 4B C3 [00:31:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 DD 16 47 00 E7 D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0B 08 01 00 F4 03 04 00 34 4D 46 66 B6 04 01 00 00 96 24 80 C1 79 1A E3 12 [00:31:24]CommunicateWithHost err = 0 [00:31:24]CheckOFDResponse [00:31:24]1017 (14) - 77093643461234 [00:31:24]1041 (16) - 0000000000871829 [00:31:24]1040 (4) - 67595 [00:31:24]1012 (4) - 16.05.2024 18:15 [00:31:24]1206 (1) - 0 [00:31:24]OFD Sender: Remove packet 67595 [00:31:24]ProducePacketName [00:31:24]name=ofd_packets/00067595 [00:31:24]NVStorageDeleteData [00:31:24]Write to MH i2c: 01 00 00 C0 04 C4 [00:31:24]Write i2c OK [00:31:24]MH_I2C_Read... [00:31:24]Read from MH i2c: 01 [00:31:24]MH_I2C_Read... [00:31:24]Read from MH i2c: 01 07 00 [00:31:24]MH_I2C_Read... [00:31:24]Read from MH i2c: 01 07 00 C0 04 00 00 00 00 00 EE 0C C5 [00:31:24]RasterBufferAndPrint [00:31:24]line [00:31:24]line [00:31:24]line [00:31:24]line [00:31:24]line [00:31:24]written 0, free lines is 3314 [00:31:24]MH_Cut [00:31:24]Write to MH i2c: D1 01 00 C7 04 01 9D [00:31:24]Write i2c OK [00:31:24]MH_I2C_Read... [00:31:24]Read from MH i2c: D1 [00:31:24]MH_I2C_Read... [00:31:24]Read from MH i2c: D1 01 00 [00:31:24]MH_I2C_Read... [00:31:24]Read from MH i2c: D1 01 00 C7 04 00 9C [00:31:24]Write to MH i2c: 01 00 00 C8 04 CC [00:31:24]Write i2c OK [00:31:24]MH_I2C_Read... [00:31:25]OFD Sender: No OFD packet to send [00:31:25]*** Cut start [00:31:25]*** Purtial cut [00:31:25]*** CUTSNS_PIN = 0 [00:31:25]*** Stage 1: CUTSNS_PIN = 1 [00:31:27]Read from MH i2c: 01 [00:31:27]MH_I2C_Read... [00:31:27]*** Stop cut motor [00:31:27]*** Cut end [00:31:27]Read from MH i2c: 01 07 00 [00:31:27]MH_I2C_Read... [00:31:27]Read from MH i2c: 01 07 00 C8 04 00 00 00 00 00 FF 0F E1 [00:31:27]process_action close_receipt done [00:31:27]requested_data is exist [00:31:27]produce_requested_data [00:31:27]requested_item fm.sn is exist - process it [00:31:27]wFMCommunicate request_size=4 [00:31:27]MH_SAM_APDU [00:31:27]CAPDU: 80 11 00 00 [00:31:27]Write to MH i2c: E2 08 00 C9 04 80 11 00 00 00 00 00 00 47 [00:31:27]Write i2c OK [00:31:27]MH_I2C_Read... [00:31:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:31:27]Read from MH i2c: E2 [00:31:27]MH_I2C_Read... [00:31:27]Read from MH i2c: E2 17 00 [00:31:27]MH_I2C_Read... [00:31:27]Read from MH i2c: E2 17 00 C9 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 9D [00:31:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [00:31:27]wFMCommunicate OK [00:31:27]requested_item fd.num is exist - process it [00:31:27]SAM_PROTO_GetFieldsCounters [00:31:27]wFMCommunicate request_size=4 [00:31:27]MH_SAM_APDU [00:31:27]CAPDU: 80 13 00 00 [00:31:27]Write to MH i2c: E2 08 00 CA 04 80 13 00 00 00 00 00 00 4A [00:31:27]Write i2c OK [00:31:27]MH_I2C_Read... [00:31:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:31:27]Read from MH i2c: E2 [00:31:27]MH_I2C_Read... [00:31:27]Read from MH i2c: E2 62 00 [00:31:27]MH_I2C_Read... [00:31:27]Read from MH i2c: E2 62 00 CA 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 0B 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [00:31: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 0B 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:31:27]wFMCommunicate OK [00:31:27]SAM_PROTO_GetFieldsCounters done [00:31:27]requested_item shift.num is exist - process it [00:31:27]requested_item shift.opened is exist - process it [00:31:27]req_shift_opened [00:31:27]FM_GetShiftState [00:31:27]SAM_PROTO_GetShiftState [00:31:27]wFMCommunicate request_size=4 [00:31:27]MH_SAM_APDU [00:31:27]CAPDU: 80 13 01 00 [00:31:27]Write to MH i2c: E2 08 00 CB 04 80 13 01 00 00 00 00 00 4C [00:31:27]Write i2c OK [00:31:27]MH_I2C_Read... [00:31:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:31:27]Read from MH i2c: E2 [00:31:27]MH_I2C_Read... [00:31:27]Read from MH i2c: E2 0E 00 [00:31:27]MH_I2C_Read... [00:31:27]Read from MH i2c: E2 0E 00 CB 04 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 D2 [00:31:27]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [00:31:27]wFMCommunicate OK [00:31:27]SAM_PROTO_GetShiftState done [00:31:27]FM_GetShiftState done [00:31:27]req_shift_opened done [00:31:27]requested_item shift.open_date is exist - process it [00:31:27]req_shift_open_date [00:31:27]req_shift_open_date done [00:31:27]produce_requested_data done [00:31:27]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67595,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [00:31:27]process_action_free close_receipt [00:31:27]json_value_free [00:31:27]json_value_free done [00:31:27]process_json_proto returns [00:31:27]Send response to host [00:31:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67595,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [00:31:27]free response buf [00:31:27]execute_script done [00:31:27]execute_script returns [00:31:27]free content buf [00:31:27]Sock 7.Close socket [00:31:27]Sock 7.Thread stoped [00:31:30]OFD Sender: No OFD packet to send [00:31:35]OFD Sender: No OFD packet to send [00:31:40]OFD Sender: No OFD packet to send [00:31:45]OFD Sender: No OFD packet to send [00:31:50]OFD Sender: No OFD packet to send [00:31:55]OFD Sender: No OFD packet to send [00:32:00]OFD Sender: No OFD packet to send [00:32:05]OFD Sender: No OFD packet to send [00:32:10]OFD Sender: No OFD packet to send [00:32:15]OFD Sender: No OFD packet to send [00:32:20]OFD Sender: No OFD packet to send [00:32:25]OFD Sender: No OFD packet to send [00:32:30]OFD Sender: No OFD packet to send [00:32:35]OFD Sender: No OFD packet to send [00:32:40]OFD Sender: No OFD packet to send [00:32:45]OFD Sender: No OFD packet to send [00:32:50]OFD Sender: No OFD packet to send [00:32:55]OFD Sender: No OFD packet to send [00:33:00]OFD Sender: No OFD packet to send [00:33:05]OFD Sender: No OFD packet to send [00:33:10]OFD Sender: No OFD packet to send [00:33:15]OFD Sender: No OFD packet to send [00:33:20]OFD Sender: No OFD packet to send [00:33:25]OFD Sender: No OFD packet to send [00:33:30]OFD Sender: No OFD packet to send [00:33:35]OFD Sender: No OFD packet to send [00:33:40]OFD Sender: No OFD packet to send [00:33:45]OFD Sender: No OFD packet to send [00:33:50]OFD Sender: No OFD packet to send [00:33:55]OFD Sender: No OFD packet to send [00:34:00]OFD Sender: No OFD packet to send [00:34:05]OFD Sender: No OFD packet to send [00:34:10]OFD Sender: No OFD packet to send [00:34:15]OFD Sender: No OFD packet to send [00:34:20]OFD Sender: No OFD packet to send [00:34:25]OFD Sender: No OFD packet to send [00:34:30]OFD Sender: No OFD packet to send [00:34:35]OFD Sender: No OFD packet to send [00:34:40]OFD Sender: No OFD packet to send [00:34:45]OFD Sender: No OFD packet to send [00:34:50]OFD Sender: No OFD packet to send [00:34:55]OFD Sender: No OFD packet to send [00:34:59]accept exits with 9 [00:34:59]New connection [00:34:59]New thread 3067538788 created [00:34:59]Thread 3067395428 joined [00:34:59]Waiting for new connection... [00:34:59] Sock 9.Parse request [00:34:59]Sock 9.Check first char [00:34:59]Sock 9.First char is OK [00:34:59]request: POST /json_proto HTTP/1.0 [00:34:59]Method: POST [00:34:59]URL: /json_proto [00:34:59]Method is POST - this is cgi request [00:34:59]url: /json_proto [00:34:59]query_string will be loaded in cgi processing [00:34:59]execute_cgi json_proto POST (null) [00:34:59]execute_cgi path=json_proto method=POST [00:34:59]POST find Content-Length [00:34:59]Host: 172.17.41.195:8080 [00:34:59]Content-Length: 677 [00:34:59]Content-Type: application/json [00:34:59] [00:34:59]POST finish read [00:34:59]Found Content-Length = 677 [00:34:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507677", "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.80, "quantity" : 7.490, "sum" : 500.33, "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:34:59]execute_script... [00:34: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)507677", "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.80, "quantity" : 7.490, "sum" : 500.33, "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:34:59]POST & json_proto [00:34:59]process_json_proto [00:34:59]json parsed OK: [00:34:59]protocol is kg_v1.0 [00:34:59]action value=close_receipt [00:34:59]process_action close_receipt [00:34:59]cmd_close_receipt [00:34:59]MH_GetDate [00:34:59]Write to MH i2c: F0 00 00 CC 04 BF [00:34:59]Write i2c OK [00:34:59]MH_I2C_Read... [00:34:59]Read from MH i2c: F0 [00:34:59]MH_I2C_Read... [00:34:59]Read from MH i2c: F0 09 00 [00:34:59]MH_I2C_Read... [00:34:59]Read from MH i2c: F0 09 00 CC 04 00 34 A6 46 66 FC 21 6F 64 3E [00:34:59]GetLastDocTimeStamp 1715905883 [00:34:59]current date 1715906100 [00:34:59]FM_GetShiftState [00:34:59]SAM_PROTO_GetShiftState [00:34:59]wFMCommunicate request_size=4 [00:34:59]MH_SAM_APDU [00:34:59]CAPDU: 80 13 01 00 [00:34:59]Write to MH i2c: E2 08 00 CD 04 80 13 01 00 00 00 00 00 4E [00:34:59]Write i2c OK [00:34:59]MH_I2C_Read... [00:35:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:00]Read from MH i2c: E2 [00:35:00]MH_I2C_Read... [00:35:00]Read from MH i2c: E2 0E 00 [00:35:00]MH_I2C_Read... [00:35:00]Read from MH i2c: E2 0E 00 CD 04 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 D4 [00:35:00]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [00:35:00]wFMCommunicate OK [00:35:00]SAM_PROTO_GetShiftState done [00:35:00]FM_GetShiftState done [00:35:00]opened in 1715905068 [00:35:00]opened+sec_in_day 1715991468 [00:35:00]quantity*price = 50033 [00:35:00]sum+1 = 50034 [00:35:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 5 17.05.2024 00:35 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67596 ФПД: 153751882880982 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T003500&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67596&fm=153751882880982&tin=02508201610067®Number=0000000000091845&sum=50000 [00:35:01]StoreToDocumentArchive [00:35:01]shift 358 fd 67596 [00:35:01]save to /storage/0358/doc_00067596 [00:35:01]save last doc name /storage/0358/doc_00067596 to /storage/kkm_last_doc_name [00:35:01]save OK [00:35:01]Clear old archive folders... [00:35:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:35:01]tlvbuf is 01639810 [00:35:01]SAM_PROTO_ClearQueue [00:35:01]wFMCommunicate request_size=4 [00:35:01]MH_SAM_APDU [00:35:01]CAPDU: 80 09 00 00 [00:35:01]Write to MH i2c: E2 08 00 DA 04 80 09 00 00 00 00 00 00 50 [00:35:01]Write i2c OK [00:35:01]MH_I2C_Read... [00:35:01]Read from MH i2c: E2 [00:35:01]MH_I2C_Read... [00:35:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:35:01]Read from MH i2c: E2 03 00 [00:35:01]MH_I2C_Read... [00:35:01]Read from MH i2c: E2 03 00 DA 04 00 90 00 52 [00:35:01]RAPDU: 90 00 [00:35:01]wFMCommunicate OK [00:35:01]SAM_PROTO_ClearQueue done [00:35:01]KKMCreateOFDPacket [00:35:01]OFDProtocolAddRootSTLVToBuf [00:35:01]FM_MakeSignedData [00:35:01]FM_MakeSignedData [00:35:01]SAM_PROTO_SignData [00:35:01]wFMCommunicate request_size=4 [00:35:01]MH_SAM_APDU [00:35:01]CAPDU: 80 0D 01 02 [00:35:01]Write to MH i2c: E2 08 00 DB 04 80 0D 01 02 00 00 00 00 58 [00:35:01]Write i2c OK [00:35:01]MH_I2C_Read... [00:35:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:35:01]Read from MH i2c: E2 [00:35:01]MH_I2C_Read... [00:35:01]Read from MH i2c: E2 03 00 [00:35:01]MH_I2C_Read... [00:35:01]Read from MH i2c: E2 03 00 DB 04 00 90 00 53 [00:35:01]RAPDU: 90 00 [00:35:01]wFMCommunicate OK [00:35:01]wFMCommunicate request_size=255 [00:35:01]MH_SAM_APDU [00:35: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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 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 34 A6 46 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0C 08 01 00 35 04 06 00 8B [00:35:01]Write to MH i2c: E2 02 01 DC 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 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 34 A6 46 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0C 08 01 00 35 04 06 00 8B 00 00 75 [00:35:01]Write i2c OK [00:35:01]MH_I2C_Read... [00:35:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:35:01]Read from MH i2c: E2 [00:35:01]MH_I2C_Read... [00:35:01]Read from MH i2c: E2 03 00 [00:35:01]MH_I2C_Read... [00:35:01]Read from MH i2c: E2 03 00 DC 04 00 90 00 54 [00:35:01]RAPDU: 90 00 [00:35:01]wFMCommunicate OK [00:35:01]wFMCommunicate request_size=10 [00:35:01]MH_SAM_APDU [00:35:01]CAPDU: 80 0D 02 02 05 D6 26 5C D7 D6 [00:35:01]Write to MH i2c: E2 0D 00 DD 04 80 0D 02 02 05 00 D6 26 5C D7 D6 00 00 6A [00:35:01]Write i2c OK [00:35:01]MH_I2C_Read... [00:35:01]Read from MH i2c: E2 [00:35:01]MH_I2C_Read... [00:35:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:35:01]Read from MH i2c: E2 03 00 [00:35:01]MH_I2C_Read... [00:35:01]Read from MH i2c: E2 03 00 DD 04 00 90 00 55 [00:35:01]RAPDU: 90 00 [00:35:01]wFMCommunicate OK [00:35:01]wFMCommunicate request_size=4 [00:35:01]MH_SAM_APDU [00:35:01]CAPDU: 80 0D 03 02 [00:35:01]Write to MH i2c: E2 08 00 DE 04 80 0D 03 02 00 00 00 00 5D [00:35:01]Write i2c OK [00:35:01]MH_I2C_Read... [00:35:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:35:01]Read from MH i2c: E2 [00:35:01]MH_I2C_Read... [00:35:01]Read from MH i2c: E2 0B 00 [00:35:01]MH_I2C_Read... [00:35:01]Read from MH i2c: E2 0B 00 DE 04 00 4E C9 58 83 38 F0 62 CB 90 00 A5 [00:35:01]RAPDU: 4E C9 58 83 38 F0 62 CB 90 00 [00:35:01]wFMCommunicate OK [00:35:01]SAM_PROTO_SignData done [00:35:01]FM_MakeSignedData done [00:35:01]CreateOFDProtocolMessage [00:35:01]wFMCommunicate request_size=4 [00:35:01]MH_SAM_APDU [00:35:01]CAPDU: 80 11 00 00 [00:35:01]Write to MH i2c: E2 08 00 DF 04 80 11 00 00 00 00 00 00 5D [00:35:01]Write i2c OK [00:35:01]MH_I2C_Read... [00:35:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:35:01]Read from MH i2c: E2 [00:35:01]MH_I2C_Read... [00:35:01]Read from MH i2c: E2 17 00 [00:35:01]MH_I2C_Read... [00:35:01]Read from MH i2c: E2 17 00 DF 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B3 [00:35:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [00:35:01]wFMCommunicate OK [00:35:01]CreateOFDProtocolMessage done [00:35:01]OFDSenderStorePacket 67596 [00:35:01]StoreOFDPacket docnum=67596 [00:35:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 5C 43 07 01 F1 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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 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 34 A6 46 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0C 08 01 00 35 04 06 00 8B D6 26 5C D7 D6 4E C9 58 83 38 F0 62 CB [00:35:01]CheckFolder [00:35:01]dirname=/storage/ofd_packets [00:35:01]CheckFolder done [00:35:01]ProducePacketName [00:35:01]name=ofd_packets/00067596 [00:35:01]NVStorageSaveData ofd_packets/00067596 [00:35:01]File name is /storage/ofd_packets/00067596 [00:35:01]Write 301 bytes [00:35:01]NVStorageSaveData done [00:35:01]OFDSenderStorePacket done [00:35:01]KKMCreateOFDPacket done [00:35:01]NVStorageSaveData kkm_last_timestamp [00:35:01]File name is /storage/kkm_last_timestamp [00:35:01]Write 4 bytes [00:35:01]NVStorageSaveData done [00:35:01]ExternCall_PrintAddStr [00:35:01]wPrintStart [00:35:01]Write to MH i2c: 01 00 00 E0 04 E4 [00:35:01]Write i2c OK [00:35:01]MH_I2C_Read... [00:35:01]Read from MH i2c: 01 [00:35:01]MH_I2C_Read... [00:35:01]Read from MH i2c: 01 07 00 [00:35:01]MH_I2C_Read... [00:35:01]Read from MH i2c: 01 07 00 E0 04 00 00 00 00 00 FF 0F F9 [00:35:01]RasterBufferAndPrint [00:35:01]line Счет N : (1)507677 [00:35:01]line ИНН: 02508201610067 [00:35:01]line Контрольно-Кассовый Чек [00:35:01]line ПРОДАЖА [00:35:01]line ТРК (МРК, ГНК) : 23 [00:35:01]line Товар: 2710124130 [00:35:01]line Аи-92-К-5 [00:35:01]line 7.490 * 66.80 [00:35:01]line = 500.33 [00:35:01]line НДС 12% НСП 1% [00:35:01]line > о реализуемом товаре [00:35:01]line ОКРУГЛЕНИЕ: -0.33 [00:35:01]line ИТОГО: 500.00 [00:35:01]line Внесено: 500.00 [00:35:01]line СДАЧА: 0.00 [00:35:01]line НСП 1% : 4.43 [00:35:01]line НДС 12% : 53.13 [00:35:01]line Наличными: 500.00 [00:35:01]line Безнал.: 0.00 [00:35:01]line Место: АЗС № 91 "Партнер Нефть" [00:35:01]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [00:35:01]line СНО: Общий режим [00:35:01]line Чек 5 17.05.2024 00:35 [00:35:01]line Смена: 358 ФФД: 1.0 [00:35:01]line ЗНМ: 0300000119 [00:35:01]line РНМ: 0000000000091845 [00:35:01]line Версия ККМ: 001 [00:35:01]line ФМ: 0000000000871829 [00:35:01]line ФД: 67596 [00:35:01]line ФПД: 153751882880982 [00:35:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T003500&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67596&fm=153751882880982&tin=02508201610067®Number=0000000000091845&sum=50000 [00:35:01]OFD Sender: Processing packet 67596 [packets to send 35, broken 34] [00:35:01]ProducePacketName [00:35:01]name=ofd_packets/00067596 [00:35:01]OFD Sender: To server: pG, [00:35:01]CommunicateWithHost lk.salyk.kg:30040 [00:35:01]ConnectInit lk.salyk.kg [00:35:01]written 0, free lines is 4095 [00:35:02]Connected sock=10 [00:35: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 38 32 39 0F 01 00 00 5C 43 07 01 F1 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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C1 14 00 00 00 00 07 04 06 00 50 C3 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 34 A6 46 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0C 08 01 00 35 04 06 00 8B D6 26 5C D7 D6 4E C9 58 83 38 F0 62 CB [00:35:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 EF C0 47 00 44 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 38 32 39 10 04 04 00 0C 08 01 00 F4 03 04 00 0E 4E 46 66 B6 04 01 00 00 71 9B BF 00 B5 08 A7 22 [00:35:02]CommunicateWithHost err = 0 [00:35:02]CheckOFDResponse [00:35:02]1017 (14) - 77093643461234 [00:35:02]1041 (16) - 0000000000871829 [00:35:02]1040 (4) - 67596 [00:35:02]1012 (4) - 16.05.2024 18:18 [00:35:02]1206 (1) - 0 [00:35:02]OFD Sender: Remove packet 67596 [00:35:02]ProducePacketName [00:35:02]name=ofd_packets/00067596 [00:35:02]NVStorageDeleteData [00:35:02]Write to MH i2c: 01 00 00 0A 05 0F [00:35:02]Write i2c OK [00:35:02]MH_I2C_Read... [00:35:02]Read from MH i2c: 01 [00:35:02]MH_I2C_Read... [00:35:02]Read from MH i2c: 01 07 00 [00:35:02]MH_I2C_Read... [00:35:02]Read from MH i2c: 01 07 00 0A 05 00 00 00 00 00 C4 0C E6 [00:35:02]RasterBufferAndPrint [00:35:02]line [00:35:02]line [00:35:02]line [00:35:02]line [00:35:02]line [00:35:02]written 0, free lines is 3273 [00:35:02]MH_Cut [00:35:02]Write to MH i2c: D1 01 00 11 05 01 E8 [00:35:02]Write i2c OK [00:35:02]MH_I2C_Read... [00:35:02]Read from MH i2c: D1 [00:35:02]MH_I2C_Read... [00:35:02]Read from MH i2c: D1 01 00 [00:35:02]MH_I2C_Read... [00:35:02]Read from MH i2c: D1 01 00 11 05 00 E7 [00:35:02]Write to MH i2c: 01 00 00 12 05 17 [00:35:02]Write i2c OK [00:35:02]MH_I2C_Read... [00:35:02]OFD Sender: No OFD packet to send [00:35:03]*** Cut start [00:35:03]*** Purtial cut [00:35:03]*** Stage 1: CUTSNS_PIN = 1 [00:35:03]Read from MH i2c: 01 [00:35:03]MH_I2C_Read... [00:35:03]*** Stop cut motor [00:35:03]*** Cut end [00:35:03]Read from MH i2c: 01 07 00 [00:35:03]MH_I2C_Read... [00:35:03]Read from MH i2c: 01 07 00 12 05 00 00 00 00 00 FF 0F 2C [00:35:03]process_action close_receipt done [00:35:03]requested_data is exist [00:35:03]produce_requested_data [00:35:03]requested_item fm.sn is exist - process it [00:35:03]wFMCommunicate request_size=4 [00:35:03]MH_SAM_APDU [00:35:03]CAPDU: 80 11 00 00 [00:35:03]Write to MH i2c: E2 08 00 13 05 80 11 00 00 00 00 00 00 92 [00:35:03]Write i2c OK [00:35:03]MH_I2C_Read... [00:35:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:35:03]Read from MH i2c: E2 [00:35:03]MH_I2C_Read... [00:35:03]Read from MH i2c: E2 17 00 [00:35:03]MH_I2C_Read... [00:35:03]Read from MH i2c: E2 17 00 13 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E8 [00:35:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [00:35:03]wFMCommunicate OK [00:35:03]requested_item fd.num is exist - process it [00:35:03]SAM_PROTO_GetFieldsCounters [00:35:03]wFMCommunicate request_size=4 [00:35:03]MH_SAM_APDU [00:35:03]CAPDU: 80 13 00 00 [00:35:03]Write to MH i2c: E2 08 00 14 05 80 13 00 00 00 00 00 00 95 [00:35:03]Write i2c OK [00:35:03]MH_I2C_Read... [00:35:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:35:03]Read from MH i2c: E2 [00:35:03]MH_I2C_Read... [00:35:03]Read from MH i2c: E2 62 00 [00:35:03]MH_I2C_Read... [00:35:03]Read from MH i2c: E2 62 00 14 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 0C 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [00:35: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 0C 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:35:03]wFMCommunicate OK [00:35:03]SAM_PROTO_GetFieldsCounters done [00:35:03]requested_item shift.num is exist - process it [00:35:03]requested_item shift.opened is exist - process it [00:35:03]req_shift_opened [00:35:03]FM_GetShiftState [00:35:03]SAM_PROTO_GetShiftState [00:35:03]wFMCommunicate request_size=4 [00:35:03]MH_SAM_APDU [00:35:03]CAPDU: 80 13 01 00 [00:35:03]Write to MH i2c: E2 08 00 15 05 80 13 01 00 00 00 00 00 97 [00:35:03]Write i2c OK [00:35:03]MH_I2C_Read... [00:35:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:03]Read from MH i2c: E2 [00:35:03]MH_I2C_Read... [00:35:03]Read from MH i2c: E2 0E 00 [00:35:03]MH_I2C_Read... [00:35:03]Read from MH i2c: E2 0E 00 15 05 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 1D [00:35:03]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [00:35:03]wFMCommunicate OK [00:35:03]SAM_PROTO_GetShiftState done [00:35:03]FM_GetShiftState done [00:35:03]req_shift_opened done [00:35:03]requested_item shift.open_date is exist - process it [00:35:03]req_shift_open_date [00:35:03]req_shift_open_date done [00:35:03]produce_requested_data done [00:35:03]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67596,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [00:35:03]process_action_free close_receipt [00:35:03]json_value_free [00:35:03]json_value_free done [00:35:03]process_json_proto returns [00:35:03]Send response to host [00:35:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67596,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [00:35:03]free response buf [00:35:03]execute_script done [00:35:03]execute_script returns [00:35:03]free content buf [00:35:03]Sock 9.Close socket [00:35:03]Sock 9.Thread stoped [00:35:07]OFD Sender: No OFD packet to send [00:35:12]OFD Sender: No OFD packet to send [00:35:17]OFD Sender: No OFD packet to send [00:35:22]OFD Sender: No OFD packet to send [00:35:27]OFD Sender: No OFD packet to send [00:35:32]OFD Sender: No OFD packet to send [00:35:37]OFD Sender: No OFD packet to send [00:35:42]OFD Sender: No OFD packet to send [00:35:47]OFD Sender: No OFD packet to send [00:35:52]OFD Sender: No OFD packet to send [00:35:57]OFD Sender: No OFD packet to send [00:36:02]OFD Sender: No OFD packet to send [00:36:07]OFD Sender: No OFD packet to send [00:36:12]OFD Sender: No OFD packet to send [00:36:17]OFD Sender: No OFD packet to send [00:36:22]OFD Sender: No OFD packet to send [00:36:27]OFD Sender: No OFD packet to send [00:36:32]OFD Sender: No OFD packet to send [00:36:37]OFD Sender: No OFD packet to send [00:36:42]OFD Sender: No OFD packet to send [00:36:47]OFD Sender: No OFD packet to send [00:36:52]OFD Sender: No OFD packet to send [00:36:57]OFD Sender: No OFD packet to send [00:37:02]OFD Sender: No OFD packet to send [00:37:07]OFD Sender: No OFD packet to send [00:37:12]OFD Sender: No OFD packet to send [00:37:17]OFD Sender: No OFD packet to send [00:37:22]OFD Sender: No OFD packet to send [00:37:27]OFD Sender: No OFD packet to send [00:37:32]OFD Sender: No OFD packet to send [00:37:37]OFD Sender: No OFD packet to send [00:37:42]OFD Sender: No OFD packet to send [00:37:47]OFD Sender: No OFD packet to send [00:37:52]OFD Sender: No OFD packet to send [00:37:57]OFD Sender: No OFD packet to send [00:38:02]OFD Sender: No OFD packet to send [00:38:07]OFD Sender: No OFD packet to send [00:38:12]OFD Sender: No OFD packet to send [00:38:17]OFD Sender: No OFD packet to send [00:38:22]OFD Sender: No OFD packet to send [00:38:28]OFD Sender: No OFD packet to send [00:38:33]OFD Sender: No OFD packet to send [00:38:38]OFD Sender: No OFD packet to send [00:38:43]OFD Sender: No OFD packet to send [00:38:48]OFD Sender: No OFD packet to send [00:38:53]OFD Sender: No OFD packet to send [00:38:58]OFD Sender: No OFD packet to send [00:39:03]OFD Sender: No OFD packet to send [00:39:08]OFD Sender: No OFD packet to send [00:39:13]OFD Sender: No OFD packet to send [00:39:18]OFD Sender: No OFD packet to send [00:39:23]OFD Sender: No OFD packet to send [00:39:28]OFD Sender: No OFD packet to send [00:39:33]OFD Sender: No OFD packet to send [00:39:38]OFD Sender: No OFD packet to send [00:39:43]OFD Sender: No OFD packet to send [00:39:48]OFD Sender: No OFD packet to send [00:39:53]OFD Sender: No OFD packet to send [00:39:58]OFD Sender: No OFD packet to send [00:40:03]OFD Sender: No OFD packet to send [00:40:08]OFD Sender: No OFD packet to send [00:40:13]OFD Sender: No OFD packet to send [00:40:18]OFD Sender: No OFD packet to send [00:40:23]OFD Sender: No OFD packet to send [00:40:28]OFD Sender: No OFD packet to send [00:40:33]OFD Sender: No OFD packet to send [00:40:38]OFD Sender: No OFD packet to send [00:40:43]OFD Sender: No OFD packet to send [00:40:48]OFD Sender: No OFD packet to send [00:40:53]OFD Sender: No OFD packet to send [00:40:58]OFD Sender: No OFD packet to send [00:41:03]OFD Sender: No OFD packet to send [00:41:08]OFD Sender: No OFD packet to send [00:41:13]OFD Sender: No OFD packet to send [00:41:18]OFD Sender: No OFD packet to send [00:41:23]OFD Sender: No OFD packet to send [00:41:28]OFD Sender: No OFD packet to send [00:41:33]OFD Sender: No OFD packet to send [00:41:38]OFD Sender: No OFD packet to send [00:41:43]OFD Sender: No OFD packet to send [00:41:48]OFD Sender: No OFD packet to send [00:41:53]OFD Sender: No OFD packet to send [00:41:58]OFD Sender: No OFD packet to send [00:42:03]OFD Sender: No OFD packet to send [00:42:08]OFD Sender: No OFD packet to send [00:42:13]OFD Sender: No OFD packet to send [00:42:18]OFD Sender: No OFD packet to send [00:42:23]OFD Sender: No OFD packet to send [00:42:28]OFD Sender: No OFD packet to send [00:42:33]OFD Sender: No OFD packet to send [00:42:38]OFD Sender: No OFD packet to send [00:42:43]OFD Sender: No OFD packet to send [00:42:48]OFD Sender: No OFD packet to send [00:42:53]OFD Sender: No OFD packet to send [00:42:58]OFD Sender: No OFD packet to send [00:43:03]OFD Sender: No OFD packet to send [00:43:08]OFD Sender: No OFD packet to send [00:43:13]OFD Sender: No OFD packet to send [00:43:18]OFD Sender: No OFD packet to send [00:43:23]OFD Sender: No OFD packet to send [00:43:28]OFD Sender: No OFD packet to send [00:43:33]OFD Sender: No OFD packet to send [00:43:38]OFD Sender: No OFD packet to send [00:43:43]OFD Sender: No OFD packet to send [00:43:48]OFD Sender: No OFD packet to send [00:43:53]OFD Sender: No OFD packet to send [00:43:58]OFD Sender: No OFD packet to send [00:44:03]OFD Sender: No OFD packet to send [00:44:08]OFD Sender: No OFD packet to send [00:44:13]OFD Sender: No OFD packet to send [00:44:18]OFD Sender: No OFD packet to send [00:44:23]OFD Sender: No OFD packet to send [00:44:28]OFD Sender: No OFD packet to send [00:44:33]OFD Sender: No OFD packet to send [00:44:38]OFD Sender: No OFD packet to send [00:44:43]OFD Sender: No OFD packet to send [00:44:48]OFD Sender: No OFD packet to send [00:44:53]OFD Sender: No OFD packet to send [00:44:58]OFD Sender: No OFD packet to send [00:45:03]OFD Sender: No OFD packet to send [00:45:08]OFD Sender: No OFD packet to send [00:45:13]OFD Sender: No OFD packet to send [00:45:14]accept exits with 7 [00:45:14]New connection [00:45:14]New thread 3067395428 created [00:45:14]Thread 3067538788 joined [00:45:14]Waiting for new connection... [00:45:14] Sock 7.Parse request [00:45:14]Sock 7.Check first char [00:45:14]Sock 7.First char is OK [00:45:14]request: POST /json_proto HTTP/1.0 [00:45:14]Method: POST [00:45:14]URL: /json_proto [00:45:14]Method is POST - this is cgi request [00:45:14]url: /json_proto [00:45:14]query_string will be loaded in cgi processing [00:45:14]execute_cgi json_proto POST (null) [00:45:14]execute_cgi path=json_proto method=POST [00:45:14]POST find Content-Length [00:45:14]Host: 172.17.41.195:8080 [00:45:14]Content-Length: 639 [00:45:14]Content-Type: application/json [00:45:14] [00:45:14]POST finish read [00:45:14]Found Content-Length = 639 [00:45:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507678", "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" : 74.70, "quantity" : 40.000, "sum" : 2988.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2988.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:45:14]execute_script... [00:45: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)507678", "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" : 74.70, "quantity" : 40.000, "sum" : 2988.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2988.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:45:14]POST & json_proto [00:45:14]process_json_proto [00:45:14]json parsed OK: [00:45:14]protocol is kg_v1.0 [00:45:14]action value=close_receipt [00:45:14]process_action close_receipt [00:45:14]cmd_close_receipt [00:45:14]MH_GetDate [00:45:14]Write to MH i2c: F0 00 00 16 05 0A [00:45:14]Write i2c OK [00:45:14]MH_I2C_Read... [00:45:14]Read from MH i2c: F0 [00:45:14]MH_I2C_Read... [00:45:14]Read from MH i2c: F0 09 00 [00:45:14]MH_I2C_Read... [00:45:14]Read from MH i2c: F0 09 00 16 05 00 9B A8 46 66 FC 21 6F 64 F2 [00:45:14]GetLastDocTimeStamp 1715906100 [00:45:14]current date 1715906715 [00:45:14]FM_GetShiftState [00:45:14]SAM_PROTO_GetShiftState [00:45:14]wFMCommunicate request_size=4 [00:45:14]MH_SAM_APDU [00:45:14]CAPDU: 80 13 01 00 [00:45:14]Write to MH i2c: E2 08 00 17 05 80 13 01 00 00 00 00 00 99 [00:45:14]Write i2c OK [00:45:14]MH_I2C_Read... [00:45:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:45:14]Read from MH i2c: E2 [00:45:14]MH_I2C_Read... [00:45:14]Read from MH i2c: E2 0E 00 [00:45:14]MH_I2C_Read... [00:45:14]Read from MH i2c: E2 0E 00 17 05 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 1F [00:45:14]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [00:45:14]wFMCommunicate OK [00:45:14]SAM_PROTO_GetShiftState done [00:45:14]FM_GetShiftState done [00:45:14]opened in 1715905068 [00:45:14]opened+sec_in_day 1715991468 [00:45:14]quantity*price = 298800 [00:45:14]sum+1 = 298801 [00:45:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2988.00 НСП 1% : 26.44 НДС 12% : 317.31 Наличными: 2988.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 6 17.05.2024 00:45 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67597 ФПД: 205286402094147 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T004515&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67597&fm=205286402094147&tin=02508201610067®Number=0000000000091845&sum=298800 [00:45:15]StoreToDocumentArchive [00:45:15]shift 358 fd 67597 [00:45:15]save to /storage/0358/doc_00067597 [00:45:15]save last doc name /storage/0358/doc_00067597 to /storage/kkm_last_doc_name [00:45:15]save OK [00:45:15]Clear old archive folders... [00:45:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:45:15]tlvbuf is 01641820 [00:45:15]SAM_PROTO_ClearQueue [00:45:15]wFMCommunicate request_size=4 [00:45:15]MH_SAM_APDU [00:45:15]CAPDU: 80 09 00 00 [00:45:15]Write to MH i2c: E2 08 00 24 05 80 09 00 00 00 00 00 00 9B [00:45:15]Write i2c OK [00:45:15]MH_I2C_Read... [00:45:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:45:15]Read from MH i2c: E2 [00:45:15]MH_I2C_Read... [00:45:15]Read from MH i2c: E2 03 00 [00:45:15]MH_I2C_Read... [00:45:15]Read from MH i2c: E2 03 00 24 05 00 90 00 9D [00:45:15]RAPDU: 90 00 [00:45:15]wFMCommunicate OK [00:45:15]SAM_PROTO_ClearQueue done [00:45:15]KKMCreateOFDPacket [00:45:15]OFDProtocolAddRootSTLVToBuf [00:45:15]FM_MakeSignedData [00:45:15]FM_MakeSignedData [00:45:15]SAM_PROTO_SignData [00:45:15]wFMCommunicate request_size=4 [00:45:15]MH_SAM_APDU [00:45:15]CAPDU: 80 0D 01 02 [00:45:15]Write to MH i2c: E2 08 00 25 05 80 0D 01 02 00 00 00 00 A3 [00:45:15]Write i2c OK [00:45:15]MH_I2C_Read... [00:45:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:45:15]Read from MH i2c: E2 [00:45:15]MH_I2C_Read... [00:45:15]Read from MH i2c: E2 03 00 [00:45:15]MH_I2C_Read... [00:45:15]Read from MH i2c: E2 03 00 25 05 00 90 00 9E [00:45:15]RAPDU: 90 00 [00:45:15]wFMCommunicate OK [00:45:15]wFMCommunicate request_size=255 [00:45:15]MH_SAM_APDU [00:45: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 40 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 30 8F 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 8F 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 7B 00 00 00 00 07 04 06 00 30 8F 04 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 9B A8 46 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0D 08 01 00 35 04 06 00 BA B4 F7 12 [00:45:15]Write to MH i2c: E2 02 01 26 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 40 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 30 8F 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 8F 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 7B 00 00 00 00 07 04 06 00 30 8F 04 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 9B A8 46 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0D 08 01 00 35 04 06 00 BA B4 F7 12 00 00 2A [00:45:15]Write i2c OK [00:45:15]MH_I2C_Read... [00:45:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:45:16]Read from MH i2c: E2 [00:45:16]MH_I2C_Read... [00:45:16]Read from MH i2c: E2 03 00 [00:45:16]MH_I2C_Read... [00:45:16]Read from MH i2c: E2 03 00 26 05 00 90 00 9F [00:45:16]RAPDU: 90 00 [00:45:16]wFMCommunicate OK [00:45:16]wFMCommunicate request_size=7 [00:45:16]MH_SAM_APDU [00:45:16]CAPDU: 80 0D 02 02 02 F4 43 [00:45:16]Write to MH i2c: E2 0A 00 27 05 80 0D 02 02 02 00 F4 43 00 00 E1 [00:45:16]Write i2c OK [00:45:16]MH_I2C_Read... [00:45:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:45:16]Read from MH i2c: E2 [00:45:16]MH_I2C_Read... [00:45:16]Read from MH i2c: E2 03 00 [00:45:16]MH_I2C_Read... [00:45:16]Read from MH i2c: E2 03 00 27 05 00 90 00 A0 [00:45:16]RAPDU: 90 00 [00:45:16]wFMCommunicate OK [00:45:16]wFMCommunicate request_size=4 [00:45:16]MH_SAM_APDU [00:45:16]CAPDU: 80 0D 03 02 [00:45:16]Write to MH i2c: E2 08 00 28 05 80 0D 03 02 00 00 00 00 A8 [00:45:16]Write i2c OK [00:45:16]MH_I2C_Read... [00:45:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:45:16]Read from MH i2c: E2 [00:45:16]MH_I2C_Read... [00:45:16]Read from MH i2c: E2 0B 00 [00:45:16]MH_I2C_Read... [00:45:16]Read from MH i2c: E2 0B 00 28 05 00 74 97 C8 30 E1 D5 01 F7 90 00 5A [00:45:16]RAPDU: 74 97 C8 30 E1 D5 01 F7 90 00 [00:45:16]wFMCommunicate OK [00:45:16]SAM_PROTO_SignData done [00:45:16]FM_MakeSignedData done [00:45:16]CreateOFDProtocolMessage [00:45:16]wFMCommunicate request_size=4 [00:45:16]MH_SAM_APDU [00:45:16]CAPDU: 80 11 00 00 [00:45:16]Write to MH i2c: E2 08 00 29 05 80 11 00 00 00 00 00 00 A8 [00:45:16]Write i2c OK [00:45:16]MH_I2C_Read... [00:45:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:45:16]Read from MH i2c: E2 [00:45:16]MH_I2C_Read... [00:45:16]Read from MH i2c: E2 17 00 [00:45:16]MH_I2C_Read... [00:45:16]Read from MH i2c: E2 17 00 29 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 FE [00:45:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [00:45:16]wFMCommunicate OK [00:45:16]CreateOFDProtocolMessage done [00:45:16]OFDSenderStorePacket 67597 [00:45:16]StoreOFDPacket docnum=67597 [00:45:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 D8 2F 04 01 BB 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 40 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 30 8F 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 8F 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 7B 00 00 00 00 07 04 06 00 30 8F 04 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 9B A8 46 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0D 08 01 00 35 04 06 00 BA B4 F7 12 F4 43 74 97 C8 30 E1 D5 01 F7 [00:45:16]CheckFolder [00:45:16]dirname=/storage/ofd_packets [00:45:16]CheckFolder done [00:45:16]ProducePacketName [00:45:16]name=ofd_packets/00067597 [00:45:16]NVStorageSaveData ofd_packets/00067597 [00:45:16]File name is /storage/ofd_packets/00067597 [00:45:16]Write 298 bytes [00:45:16]NVStorageSaveData done [00:45:16]OFDSenderStorePacket done [00:45:16]KKMCreateOFDPacket done [00:45:16]NVStorageSaveData kkm_last_timestamp [00:45:16]File name is /storage/kkm_last_timestamp [00:45:16]Write 4 bytes [00:45:16]NVStorageSaveData done [00:45:16]ExternCall_PrintAddStr [00:45:16]wPrintStart [00:45:16]Write to MH i2c: 01 00 00 2A 05 2F [00:45:16]Write i2c OK [00:45:16]MH_I2C_Read... [00:45:16]Read from MH i2c: 01 [00:45:16]MH_I2C_Read... [00:45:16]Read from MH i2c: 01 07 00 [00:45:16]MH_I2C_Read... [00:45:16]Read from MH i2c: 01 07 00 2A 05 00 00 00 00 00 FF 0F 44 [00:45:16]RasterBufferAndPrint [00:45:16]line Счет N : (1)507678 [00:45:16]line ИНН: 02508201610067 [00:45:16]line Контрольно-Кассовый Чек [00:45:16]line ПРОДАЖА [00:45:16]line ТРК (МРК, ГНК) : 11 [00:45:16]line Товар: 2710194210 [00:45:16]line ДТ-К-5 [00:45:16]line 40.000 * 74.70 [00:45:16]line = 2988.00 [00:45:16]line НДС 12% НСП 1% [00:45:16]line > о реализуемом товаре [00:45:16]line ИТОГО: 2988.00 [00:45:16]line НСП 1% : 26.44 [00:45:16]line НДС 12% : 317.31 [00:45:16]line Наличными: 2988.00 [00:45:16]line Безнал.: 0.00 [00:45:16]line Место: АЗС № 91 "Партнер Нефть" [00:45:16]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [00:45:16]line СНО: Общий режим [00:45:16]line Чек 6 17.05.2024 00:45 [00:45:16]line Смена: 358 ФФД: 1.0 [00:45:16]line ЗНМ: 0300000119 [00:45:16]line РНМ: 0000000000091845 [00:45:16]line Версия ККМ: 001 [00:45:16]line ФМ: 0000000000871829 [00:45:16]line ФД: 67597 [00:45:16]line ФПД: 205286402094147 [00:45:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T004515&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67597&fm=205286402094147&tin=02508201610067®Number=0000000000091845&sum=298800 [00:45:16]OFD Sender: Processing packet 67597 [packets to send 35, broken 34] [00:45:16]ProducePacketName [00:45:16]name=ofd_packets/00067597 [00:45:16]OFD Sender: To server: pG, [00:45:16]CommunicateWithHost lk.salyk.kg:30040 [00:45:16]ConnectInit lk.salyk.kg [00:45:16]written 0, free lines is 4095 [00:45:16]Connected sock=10 [00:45: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 38 32 39 0C 01 00 00 D8 2F 04 01 BB 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 40 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 30 8F 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 8F 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 7B 00 00 00 00 07 04 06 00 30 8F 04 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 9B A8 46 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0D 08 01 00 35 04 06 00 BA B4 F7 12 F4 43 74 97 C8 30 E1 D5 01 F7 [00:45:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 40 E8 47 00 CE 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 38 32 39 10 04 04 00 0D 08 01 00 F4 03 04 00 74 50 46 66 B6 04 01 00 00 73 06 1B 19 3D C2 D6 7A [00:45:16]CommunicateWithHost err = 0 [00:45:16]CheckOFDResponse [00:45:16]1017 (14) - 77093643461234 [00:45:16]1041 (16) - 0000000000871829 [00:45:16]1040 (4) - 67597 [00:45:16]1012 (4) - 16.05.2024 18:29 [00:45:16]1206 (1) - 0 [00:45:16]OFD Sender: Remove packet 67597 [00:45:16]ProducePacketName [00:45:16]name=ofd_packets/00067597 [00:45:16]NVStorageDeleteData [00:45:16]Write to MH i2c: 01 00 00 51 05 56 [00:45:16]Write i2c OK [00:45:16]MH_I2C_Read... [00:45:16]Read from MH i2c: 01 [00:45:16]MH_I2C_Read... [00:45:16]Read from MH i2c: 01 07 00 [00:45:16]MH_I2C_Read... [00:45:16]Read from MH i2c: 01 07 00 51 05 00 00 00 00 00 FE 0C 67 [00:45:16]RasterBufferAndPrint [00:45:16]line [00:45:16]line [00:45:16]line [00:45:16]line [00:45:16]line [00:45:16]written 0, free lines is 3330 [00:45:16]MH_Cut [00:45:16]Write to MH i2c: D1 01 00 58 05 01 2F [00:45:16]Write i2c OK [00:45:16]MH_I2C_Read... [00:45:16]Read from MH i2c: D1 [00:45:16]MH_I2C_Read... [00:45:16]Read from MH i2c: D1 01 00 [00:45:16]MH_I2C_Read... [00:45:16]Read from MH i2c: D1 01 00 58 05 00 2E [00:45:16]Write to MH i2c: 01 00 00 59 05 5E [00:45:16]Write i2c OK [00:45:16]MH_I2C_Read... [00:45:17]OFD Sender: No OFD packet to send [00:45:17]*** Cut start [00:45:17]*** Purtial cut [00:45:17]*** CUTSNS_PIN = 0 [00:45:17]*** Stage 1: CUTSNS_PIN = 1 [00:45:19]Read from MH i2c: 01 [00:45:19]MH_I2C_Read... [00:45:19]*** Stop cut motor [00:45:19]*** Cut end [00:45:19]Read from MH i2c: 01 07 00 [00:45:19]MH_I2C_Read... [00:45:19]Read from MH i2c: 01 07 00 59 05 00 00 00 00 00 FF 0F 73 [00:45:19]process_action close_receipt done [00:45:19]requested_data is exist [00:45:19]produce_requested_data [00:45:19]requested_item fm.sn is exist - process it [00:45:19]wFMCommunicate request_size=4 [00:45:19]MH_SAM_APDU [00:45:19]CAPDU: 80 11 00 00 [00:45:19]Write to MH i2c: E2 08 00 5A 05 80 11 00 00 00 00 00 00 D9 [00:45:19]Write i2c OK [00:45:19]MH_I2C_Read... [00:45:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:45:19]Read from MH i2c: E2 [00:45:19]MH_I2C_Read... [00:45:19]Read from MH i2c: E2 17 00 [00:45:19]MH_I2C_Read... [00:45:19]Read from MH i2c: E2 17 00 5A 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2F [00:45:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [00:45:19]wFMCommunicate OK [00:45:19]requested_item fd.num is exist - process it [00:45:19]SAM_PROTO_GetFieldsCounters [00:45:19]wFMCommunicate request_size=4 [00:45:19]MH_SAM_APDU [00:45:19]CAPDU: 80 13 00 00 [00:45:19]Write to MH i2c: E2 08 00 5B 05 80 13 00 00 00 00 00 00 DC [00:45:19]Write i2c OK [00:45:19]MH_I2C_Read... [00:45:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:45:19]Read from MH i2c: E2 [00:45:19]MH_I2C_Read... [00:45:19]Read from MH i2c: E2 62 00 [00:45:19]MH_I2C_Read... [00:45:19]Read from MH i2c: E2 62 00 5B 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 0D 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [00:45: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 0D 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:45:19]wFMCommunicate OK [00:45:19]SAM_PROTO_GetFieldsCounters done [00:45:19]requested_item shift.num is exist - process it [00:45:19]requested_item shift.opened is exist - process it [00:45:19]req_shift_opened [00:45:19]FM_GetShiftState [00:45:19]SAM_PROTO_GetShiftState [00:45:19]wFMCommunicate request_size=4 [00:45:19]MH_SAM_APDU [00:45:19]CAPDU: 80 13 01 00 [00:45:19]Write to MH i2c: E2 08 00 5C 05 80 13 01 00 00 00 00 00 DE [00:45:19]Write i2c OK [00:45:19]MH_I2C_Read... [00:45:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:45:19]Read from MH i2c: E2 [00:45:19]MH_I2C_Read... [00:45:19]Read from MH i2c: E2 0E 00 [00:45:19]MH_I2C_Read... [00:45:19]Read from MH i2c: E2 0E 00 5C 05 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 64 [00:45:19]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [00:45:19]wFMCommunicate OK [00:45:19]SAM_PROTO_GetShiftState done [00:45:19]FM_GetShiftState done [00:45:19]req_shift_opened done [00:45:19]requested_item shift.open_date is exist - process it [00:45:19]req_shift_open_date [00:45:19]req_shift_open_date done [00:45:19]produce_requested_data done [00:45:19]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67597,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [00:45:19]process_action_free close_receipt [00:45:19]json_value_free [00:45:19]json_value_free done [00:45:19]process_json_proto returns [00:45:19]Send response to host [00:45:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67597,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [00:45:19]free response buf [00:45:19]execute_script done [00:45:19]execute_script returns [00:45:19]free content buf [00:45:19]Sock 7.Close socket [00:45:19]Sock 7.Thread stoped [00:45:22]OFD Sender: No OFD packet to send [00:45:27]OFD Sender: No OFD packet to send [00:45:32]OFD Sender: No OFD packet to send [00:45:37]OFD Sender: No OFD packet to send [00:45:42]OFD Sender: No OFD packet to send [00:45:47]OFD Sender: No OFD packet to send [00:45:52]OFD Sender: No OFD packet to send [00:45:57]OFD Sender: No OFD packet to send [00:46:02]OFD Sender: No OFD packet to send [00:46:07]OFD Sender: No OFD packet to send [00:46:12]OFD Sender: No OFD packet to send [00:46:17]OFD Sender: No OFD packet to send [00:46:22]OFD Sender: No OFD packet to send [00:46:27]OFD Sender: No OFD packet to send [00:46:32]OFD Sender: No OFD packet to send [00:46:37]OFD Sender: No OFD packet to send [00:46:42]OFD Sender: No OFD packet to send [00:46:47]OFD Sender: No OFD packet to send [00:46:52]OFD Sender: No OFD packet to send [00:46:57]OFD Sender: No OFD packet to send [00:47:02]OFD Sender: No OFD packet to send [00:47:07]OFD Sender: No OFD packet to send [00:47:12]OFD Sender: No OFD packet to send [00:47:17]OFD Sender: No OFD packet to send [00:47:22]OFD Sender: No OFD packet to send [00:47:27]OFD Sender: No OFD packet to send [00:47:32]OFD Sender: No OFD packet to send [00:47:37]OFD Sender: No OFD packet to send [00:47:42]OFD Sender: No OFD packet to send [00:47:47]OFD Sender: No OFD packet to send [00:47:52]OFD Sender: No OFD packet to send [00:47:57]OFD Sender: No OFD packet to send [00:48:02]OFD Sender: No OFD packet to send [00:48:07]OFD Sender: No OFD packet to send [00:48:12]OFD Sender: No OFD packet to send [00:48:17]OFD Sender: No OFD packet to send [00:48:22]OFD Sender: No OFD packet to send [00:48:27]OFD Sender: No OFD packet to send [00:48:32]OFD Sender: No OFD packet to send [00:48:37]OFD Sender: No OFD packet to send [00:48:42]OFD Sender: No OFD packet to send [00:48:45]accept exits with 9 [00:48:45]New connection [00:48:45]New thread 3067538788 created [00:48:45]Thread 3067395428 joined [00:48:45]Waiting for new connection... [00:48:45] Sock 9.Parse request [00:48:45]Sock 9.Check first char [00:48:45]Sock 9.First char is OK [00:48:45]request: POST /json_proto HTTP/1.0 [00:48:45]Method: POST [00:48:45]URL: /json_proto [00:48:45]Method is POST - this is cgi request [00:48:45]url: /json_proto [00:48:45]query_string will be loaded in cgi processing [00:48:45]execute_cgi json_proto POST (null) [00:48:45]execute_cgi path=json_proto method=POST [00:48:45]POST find Content-Length [00:48:45]Host: 172.17.41.195:8080 [00:48:45]Content-Length: 800 [00:48:45]Content-Type: application/json [00:48:45] [00:48:45]POST finish read [00:48:45]Found Content-Length = 800 [00:48:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507679", "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" : 74.70, "quantity" : 26.780, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:48:45]execute_script... [00:48: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)507679", "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" : 74.70, "quantity" : 26.780, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:48:45]POST & json_proto [00:48:45]process_json_proto [00:48:45]json parsed OK: [00:48:45]protocol is kg_v1.0 [00:48:45]action value=close_receipt [00:48:45]process_action close_receipt [00:48:45]cmd_close_receipt [00:48:45]MH_GetDate [00:48:45]Write to MH i2c: F0 00 00 5D 05 51 [00:48:45]Write i2c OK [00:48:45]MH_I2C_Read... [00:48:45]Read from MH i2c: F0 [00:48:45]MH_I2C_Read... [00:48:45]Read from MH i2c: F0 09 00 [00:48:45]MH_I2C_Read... [00:48:45]Read from MH i2c: F0 09 00 5D 05 00 6E A9 46 66 FC 21 6F 64 0D [00:48:45]GetLastDocTimeStamp 1715906715 [00:48:45]current date 1715906926 [00:48:45]FM_GetShiftState [00:48:45]SAM_PROTO_GetShiftState [00:48:45]wFMCommunicate request_size=4 [00:48:45]MH_SAM_APDU [00:48:45]CAPDU: 80 13 01 00 [00:48:45]Write to MH i2c: E2 08 00 5E 05 80 13 01 00 00 00 00 00 E0 [00:48:45]Write i2c OK [00:48:45]MH_I2C_Read... [00:48:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:48:45]Read from MH i2c: E2 [00:48:45]MH_I2C_Read... [00:48:45]Read from MH i2c: E2 0E 00 [00:48:45]MH_I2C_Read... [00:48:45]Read from MH i2c: E2 0E 00 5E 05 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 66 [00:48:45]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [00:48:45]wFMCommunicate OK [00:48:45]SAM_PROTO_GetShiftState done [00:48:45]FM_GetShiftState done [00:48:45]opened in 1715905068 [00:48:45]opened+sec_in_day 1715991468 [00:48:45]quantity*price = 200046 [00:48:45]sum+1 = 200048 [00:48:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.47 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 0.00 Безнал.: 2000.47 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 7 17.05.2024 00:48 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67598 ФПД: 5139116609074 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T004846&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67598&fm=5139116609074&tin=02508201610067®Number=0000000000091845&sum=200047 [00:48:46]StoreToDocumentArchive [00:48:46]shift 358 fd 67598 [00:48:46]save to /storage/0358/doc_00067598 [00:48:46]save last doc name /storage/0358/doc_00067598 to /storage/kkm_last_doc_name [00:48:46]save OK [00:48:46]Clear old archive folders... [00:48:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:48:46]tlvbuf is 0163F7D0 [00:48:46]SAM_PROTO_ClearQueue [00:48:46]wFMCommunicate request_size=4 [00:48:46]MH_SAM_APDU [00:48:46]CAPDU: 80 09 00 00 [00:48:46]Write to MH i2c: E2 08 00 6B 05 80 09 00 00 00 00 00 00 E2 [00:48:46]Write i2c OK [00:48:46]MH_I2C_Read... [00:48:46]Read from MH i2c: E2 [00:48:46]MH_I2C_Read... [00:48:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:48:46]Read from MH i2c: E2 03 00 [00:48:46]MH_I2C_Read... [00:48:46]Read from MH i2c: E2 03 00 6B 05 00 90 00 E4 [00:48:46]RAPDU: 90 00 [00:48:46]wFMCommunicate OK [00:48:46]SAM_PROTO_ClearQueue done [00:48:46]KKMCreateOFDPacket [00:48:46]OFDProtocolAddRootSTLVToBuf [00:48:46]FM_MakeSignedData [00:48:46]FM_MakeSignedData [00:48:46]SAM_PROTO_SignData [00:48:46]wFMCommunicate request_size=4 [00:48:46]MH_SAM_APDU [00:48:46]CAPDU: 80 0D 01 02 [00:48:46]Write to MH i2c: E2 08 00 6C 05 80 0D 01 02 00 00 00 00 EA [00:48:46]Write i2c OK [00:48:46]MH_I2C_Read... [00:48:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:48:46]Read from MH i2c: E2 [00:48:46]MH_I2C_Read... [00:48:46]Read from MH i2c: E2 03 00 [00:48:46]MH_I2C_Read... [00:48:46]Read from MH i2c: E2 03 00 6C 05 00 90 00 E5 [00:48:46]RAPDU: 90 00 [00:48:46]wFMCommunicate OK [00:48:46]wFMCommunicate request_size=255 [00:48:46]MH_SAM_APDU [00:48:46]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 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 6E A9 46 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0E 08 01 00 35 04 06 00 04 AC 8B 38 [00:48:46]Write to MH i2c: E2 02 01 6D 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 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 6E A9 46 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0E 08 01 00 35 04 06 00 04 AC 8B 38 00 00 11 [00:48:46]Write i2c OK [00:48:46]MH_I2C_Read... [00:48:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:48:47]Read from MH i2c: E2 [00:48:47]MH_I2C_Read... [00:48:47]Read from MH i2c: E2 03 00 [00:48:47]MH_I2C_Read... [00:48:47]Read from MH i2c: E2 03 00 6D 05 00 90 00 E6 [00:48:47]RAPDU: 90 00 [00:48:47]wFMCommunicate OK [00:48:47]wFMCommunicate request_size=7 [00:48:47]MH_SAM_APDU [00:48:47]CAPDU: 80 0D 02 02 02 4E 32 [00:48:47]Write to MH i2c: E2 0A 00 6E 05 80 0D 02 02 02 00 4E 32 00 00 71 [00:48:47]Write i2c OK [00:48:47]MH_I2C_Read... [00:48:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:48:47]Read from MH i2c: E2 [00:48:47]MH_I2C_Read... [00:48:47]Read from MH i2c: E2 03 00 [00:48:47]MH_I2C_Read... [00:48:47]Read from MH i2c: E2 03 00 6E 05 00 90 00 E7 [00:48:47]RAPDU: 90 00 [00:48:47]wFMCommunicate OK [00:48:47]wFMCommunicate request_size=4 [00:48:47]MH_SAM_APDU [00:48:47]CAPDU: 80 0D 03 02 [00:48:47]Write to MH i2c: E2 08 00 6F 05 80 0D 03 02 00 00 00 00 EF [00:48:47]Write i2c OK [00:48:47]MH_I2C_Read... [00:48:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:48:47]Read from MH i2c: E2 [00:48:47]MH_I2C_Read... [00:48:47]Read from MH i2c: E2 0B 00 [00:48:47]MH_I2C_Read... [00:48:47]Read from MH i2c: E2 0B 00 6F 05 00 75 D4 C0 1A C4 4E D1 EF 90 00 E5 [00:48:47]RAPDU: 75 D4 C0 1A C4 4E D1 EF 90 00 [00:48:47]wFMCommunicate OK [00:48:47]SAM_PROTO_SignData done [00:48:47]FM_MakeSignedData done [00:48:47]CreateOFDProtocolMessage [00:48:47]wFMCommunicate request_size=4 [00:48:47]MH_SAM_APDU [00:48:47]CAPDU: 80 11 00 00 [00:48:47]Write to MH i2c: E2 08 00 70 05 80 11 00 00 00 00 00 00 EF [00:48:47]Write i2c OK [00:48:47]MH_I2C_Read... [00:48:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:48:47]Read from MH i2c: E2 [00:48:47]MH_I2C_Read... [00:48:47]Read from MH i2c: E2 17 00 [00:48:47]MH_I2C_Read... [00:48:47]Read from MH i2c: E2 17 00 70 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 45 [00:48:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [00:48:47]wFMCommunicate OK [00:48:47]CreateOFDProtocolMessage done [00:48:47]OFDSenderStorePacket 67598 [00:48:47]StoreOFDPacket docnum=67598 [00:48:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 25 77 04 01 FB B5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 6E A9 46 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0E 08 01 00 35 04 06 00 04 AC 8B 38 4E 32 75 D4 C0 1A C4 4E D1 EF [00:48:47]CheckFolder [00:48:47]dirname=/storage/ofd_packets [00:48:47]CheckFolder done [00:48:47]ProducePacketName [00:48:47]name=ofd_packets/00067598 [00:48:47]NVStorageSaveData ofd_packets/00067598 [00:48:47]File name is /storage/ofd_packets/00067598 [00:48:47]Write 298 bytes [00:48:47]NVStorageSaveData done [00:48:47]OFDSenderStorePacket done [00:48:47]KKMCreateOFDPacket done [00:48:47]NVStorageSaveData kkm_last_timestamp [00:48:47]File name is /storage/kkm_last_timestamp [00:48:47]Write 4 bytes [00:48:47]NVStorageSaveData done [00:48:47]ExternCall_PrintAddStr [00:48:47]wPrintStart [00:48:47]Write to MH i2c: 01 00 00 71 05 76 [00:48:47]Write i2c OK [00:48:47]MH_I2C_Read... [00:48:47]Read from MH i2c: 01 [00:48:47]MH_I2C_Read... [00:48:47]Read from MH i2c: 01 07 00 [00:48:47]MH_I2C_Read... [00:48:47]Read from MH i2c: 01 07 00 71 05 00 00 00 00 00 FF 0F 8B [00:48:47]RasterBufferAndPrint [00:48:47]line Счет N : (1)507679 [00:48:47]line ИНН: 02508201610067 [00:48:47]line Контрольно-Кассовый Чек [00:48:47]line ПРОДАЖА [00:48:47]line ТРК (МРК, ГНК) : 31 [00:48:47]line Товар: 2710194210 [00:48:47]line ДТ-К-5 [00:48:47]line 26.780 * 74.70 [00:48:47]line = 2000.47 [00:48:47]line НДС 12% НСП 1% [00:48:47]line > о реализуемом товаре [00:48:47]line ИТОГО: 2000.47 [00:48:47]line НСП 1% : 17.70 [00:48:47]line НДС 12% : 212.44 [00:48:47]line Наличными: 0.00 [00:48:47]line Безнал.: 2000.47 [00:48:47]line Место: АЗС № 91 "Партнер Нефть" [00:48:47]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [00:48:47]line СНО: Общий режим [00:48:47]line Чек 7 17.05.2024 00:48 [00:48:47]line Смена: 358 ФФД: 1.0 [00:48:47]line ЗНМ: 0300000119 [00:48:47]line РНМ: 0000000000091845 [00:48:47]line Версия ККМ: 001 [00:48:47]line Платежная система: O! деньги [00:48:47]line ФМ: 0000000000871829 [00:48:47]line ФД: 67598 [00:48:47]line ФПД: 5139116609074 [00:48:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T004846&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67598&fm=5139116609074&tin=02508201610067®Number=0000000000091845&sum=200047 [00:48:47]OFD Sender: Processing packet 67598 [packets to send 35, broken 34] [00:48:47]ProducePacketName [00:48:47]name=ofd_packets/00067598 [00:48:47]OFD Sender: To server: pG, [00:48:47]CommunicateWithHost lk.salyk.kg:30040 [00:48:47]ConnectInit lk.salyk.kg [00:48:47]written 0, free lines is 4095 [00:48:47]Connected sock=10 [00:48: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 38 32 39 0C 01 00 00 25 77 04 01 FB B5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 6E A9 46 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0E 08 01 00 35 04 06 00 04 AC 8B 38 4E 32 75 D4 C0 1A C4 4E D1 EF [00:48:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 34 90 47 00 E5 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 38 32 39 10 04 04 00 0E 08 01 00 F4 03 04 00 47 51 46 66 B6 04 01 00 00 03 93 1C 8C ED A6 19 D1 [00:48:47]CommunicateWithHost err = 0 [00:48:47]CheckOFDResponse [00:48:47]1017 (14) - 77093643461234 [00:48:47]1041 (16) - 0000000000871829 [00:48:47]1040 (4) - 67598 [00:48:47]1012 (4) - 16.05.2024 18:32 [00:48:47]1206 (1) - 0 [00:48:47]OFD Sender: Remove packet 67598 [00:48:47]ProducePacketName [00:48:47]name=ofd_packets/00067598 [00:48:47]NVStorageDeleteData [00:48:47]Write to MH i2c: 01 00 00 9A 05 9F [00:48:47]Write i2c OK [00:48:47]MH_I2C_Read... [00:48:47]Read from MH i2c: 01 [00:48:47]MH_I2C_Read... [00:48:47]Read from MH i2c: 01 07 00 [00:48:47]MH_I2C_Read... [00:48:47]Read from MH i2c: 01 07 00 9A 05 00 00 00 00 00 D7 0C 89 [00:48:47]RasterBufferAndPrint [00:48:47]line [00:48:47]line [00:48:47]line [00:48:47]line [00:48:47]line [00:48:47]written 0, free lines is 3295 [00:48:47]MH_Cut [00:48:47]Write to MH i2c: D1 01 00 A1 05 01 78 [00:48:47]Write i2c OK [00:48:47]MH_I2C_Read... [00:48:47]Read from MH i2c: D1 [00:48:47]MH_I2C_Read... [00:48:47]Read from MH i2c: D1 01 00 [00:48:47]MH_I2C_Read... [00:48:47]Read from MH i2c: D1 01 00 A1 05 00 77 [00:48:47]Write to MH i2c: 01 00 00 A2 05 A7 [00:48:47]Write i2c OK [00:48:47]MH_I2C_Read... [00:48:48]OFD Sender: No OFD packet to send [00:48:48]*** Cut start [00:48:48]*** Purtial cut [00:48:48]*** Stage 1: CUTSNS_PIN = 1 [00:48:49]Read from MH i2c: 01 [00:48:49]MH_I2C_Read... [00:48:49]*** Stop cut motor [00:48:49]*** Cut end [00:48:49]Read from MH i2c: 01 07 00 [00:48:49]MH_I2C_Read... [00:48:49]Read from MH i2c: 01 07 00 A2 05 00 00 00 00 00 FF 0F BC [00:48:49]process_action close_receipt done [00:48:49]requested_data is exist [00:48:49]produce_requested_data [00:48:49]requested_item fm.sn is exist - process it [00:48:49]wFMCommunicate request_size=4 [00:48:49]MH_SAM_APDU [00:48:49]CAPDU: 80 11 00 00 [00:48:49]Write to MH i2c: E2 08 00 A3 05 80 11 00 00 00 00 00 00 22 [00:48:49]Write i2c OK [00:48:49]MH_I2C_Read... [00:48:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:48:49]Read from MH i2c: E2 [00:48:49]MH_I2C_Read... [00:48:49]Read from MH i2c: E2 17 00 [00:48:49]MH_I2C_Read... [00:48:49]Read from MH i2c: E2 17 00 A3 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 78 [00:48:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [00:48:49]wFMCommunicate OK [00:48:49]requested_item fd.num is exist - process it [00:48:49]SAM_PROTO_GetFieldsCounters [00:48:49]wFMCommunicate request_size=4 [00:48:49]MH_SAM_APDU [00:48:49]CAPDU: 80 13 00 00 [00:48:49]Write to MH i2c: E2 08 00 A4 05 80 13 00 00 00 00 00 00 25 [00:48:49]Write i2c OK [00:48:49]MH_I2C_Read... [00:48:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:48:49]Read from MH i2c: E2 [00:48:49]MH_I2C_Read... [00:48:49]Read from MH i2c: E2 62 00 [00:48:49]MH_I2C_Read... [00:48:49]Read from MH i2c: E2 62 00 A4 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 0E 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [00:48: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 0E 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:48:49]wFMCommunicate OK [00:48:49]SAM_PROTO_GetFieldsCounters done [00:48:49]requested_item shift.num is exist - process it [00:48:49]requested_item shift.opened is exist - process it [00:48:49]req_shift_opened [00:48:49]FM_GetShiftState [00:48:49]SAM_PROTO_GetShiftState [00:48:49]wFMCommunicate request_size=4 [00:48:49]MH_SAM_APDU [00:48:49]CAPDU: 80 13 01 00 [00:48:49]Write to MH i2c: E2 08 00 A5 05 80 13 01 00 00 00 00 00 27 [00:48:49]Write i2c OK [00:48:49]MH_I2C_Read... [00:48:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:48:49]Read from MH i2c: E2 [00:48:49]MH_I2C_Read... [00:48:49]Read from MH i2c: E2 0E 00 [00:48:49]MH_I2C_Read... [00:48:49]Read from MH i2c: E2 0E 00 A5 05 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 AD [00:48:49]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [00:48:49]wFMCommunicate OK [00:48:49]SAM_PROTO_GetShiftState done [00:48:49]FM_GetShiftState done [00:48:49]req_shift_opened done [00:48:49]requested_item shift.open_date is exist - process it [00:48:49]req_shift_open_date [00:48:49]req_shift_open_date done [00:48:49]produce_requested_data done [00:48:49]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67598,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [00:48:49]process_action_free close_receipt [00:48:49]json_value_free [00:48:49]json_value_free done [00:48:49]process_json_proto returns [00:48:49]Send response to host [00:48:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67598,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [00:48:49]free response buf [00:48:49]execute_script done [00:48:49]execute_script returns [00:48:49]free content buf [00:48:49]Sock 9.Close socket [00:48:49]Sock 9.Thread stoped [00:48:53]OFD Sender: No OFD packet to send [00:48:58]OFD Sender: No OFD packet to send [00:49:03]OFD Sender: No OFD packet to send [00:49:08]OFD Sender: No OFD packet to send [00:49:13]OFD Sender: No OFD packet to send [00:49:18]OFD Sender: No OFD packet to send [00:49:23]OFD Sender: No OFD packet to send [00:49:28]OFD Sender: No OFD packet to send [00:49:33]OFD Sender: No OFD packet to send [00:49:38]OFD Sender: No OFD packet to send [00:49:43]OFD Sender: No OFD packet to send [00:49:48]OFD Sender: No OFD packet to send [00:49:53]OFD Sender: No OFD packet to send [00:49:58]OFD Sender: No OFD packet to send [00:50:03]OFD Sender: No OFD packet to send [00:50:08]OFD Sender: No OFD packet to send [00:50:13]OFD Sender: No OFD packet to send [00:50:18]OFD Sender: No OFD packet to send [00:50:23]OFD Sender: No OFD packet to send [00:50:28]OFD Sender: No OFD packet to send [00:50:33]OFD Sender: No OFD packet to send [00:50:38]OFD Sender: No OFD packet to send [00:50:43]OFD Sender: No OFD packet to send [00:50:48]OFD Sender: No OFD packet to send [00:50:53]OFD Sender: No OFD packet to send [00:50:58]OFD Sender: No OFD packet to send [00:51:03]OFD Sender: No OFD packet to send [00:51:08]OFD Sender: No OFD packet to send [00:51:13]OFD Sender: No OFD packet to send [00:51:18]OFD Sender: No OFD packet to send [00:51:23]OFD Sender: No OFD packet to send [00:51:28]OFD Sender: No OFD packet to send [00:51:33]OFD Sender: No OFD packet to send [00:51:38]OFD Sender: No OFD packet to send [00:51:43]OFD Sender: No OFD packet to send [00:51:48]OFD Sender: No OFD packet to send [00:51:53]OFD Sender: No OFD packet to send [00:51:58]OFD Sender: No OFD packet to send [00:52:03]OFD Sender: No OFD packet to send [00:52:08]OFD Sender: No OFD packet to send [00:52:13]OFD Sender: No OFD packet to send [00:52:18]OFD Sender: No OFD packet to send [00:52:23]OFD Sender: No OFD packet to send [00:52:28]OFD Sender: No OFD packet to send [00:52:33]OFD Sender: No OFD packet to send [00:52:38]OFD Sender: No OFD packet to send [00:52:43]OFD Sender: No OFD packet to send [00:52:48]OFD Sender: No OFD packet to send [00:52:53]OFD Sender: No OFD packet to send [00:52:58]OFD Sender: No OFD packet to send [00:53:03]OFD Sender: No OFD packet to send [00:53:08]OFD Sender: No OFD packet to send [00:53:13]OFD Sender: No OFD packet to send [00:53:18]OFD Sender: No OFD packet to send [00:53:23]OFD Sender: No OFD packet to send [00:53:28]OFD Sender: No OFD packet to send [00:53:33]OFD Sender: No OFD packet to send [00:53:38]OFD Sender: No OFD packet to send [00:53:43]OFD Sender: No OFD packet to send [00:53:48]OFD Sender: No OFD packet to send [00:53:53]OFD Sender: No OFD packet to send [00:53:58]OFD Sender: No OFD packet to send [00:54:03]OFD Sender: No OFD packet to send [00:54:08]OFD Sender: No OFD packet to send [00:54:13]OFD Sender: No OFD packet to send [00:54:18]OFD Sender: No OFD packet to send [00:54:23]OFD Sender: No OFD packet to send [00:54:28]OFD Sender: No OFD packet to send [00:54:33]OFD Sender: No OFD packet to send [00:54:38]OFD Sender: No OFD packet to send [00:54:43]OFD Sender: No OFD packet to send [00:54:48]OFD Sender: No OFD packet to send [00:54:53]OFD Sender: No OFD packet to send [00:54:58]OFD Sender: No OFD packet to send [00:55:03]OFD Sender: No OFD packet to send [00:55:08]OFD Sender: No OFD packet to send [00:55:13]OFD Sender: No OFD packet to send [00:55:18]OFD Sender: No OFD packet to send [00:55:23]OFD Sender: No OFD packet to send [00:55:28]OFD Sender: No OFD packet to send [00:55:33]OFD Sender: No OFD packet to send [00:55:38]OFD Sender: No OFD packet to send [00:55:43]OFD Sender: No OFD packet to send [00:55:48]OFD Sender: No OFD packet to send [00:55:53]OFD Sender: No OFD packet to send [00:55:58]OFD Sender: No OFD packet to send [00:56:03]OFD Sender: No OFD packet to send [00:56:08]OFD Sender: No OFD packet to send [00:56:13]OFD Sender: No OFD packet to send [00:56:18]OFD Sender: No OFD packet to send [00:56:23]OFD Sender: No OFD packet to send [00:56:28]OFD Sender: No OFD packet to send [00:56:33]OFD Sender: No OFD packet to send [00:56:38]OFD Sender: No OFD packet to send [00:56:43]OFD Sender: No OFD packet to send [00:56:48]OFD Sender: No OFD packet to send [00:56:53]OFD Sender: No OFD packet to send [00:56:58]OFD Sender: No OFD packet to send [00:57:03]OFD Sender: No OFD packet to send [00:57:08]OFD Sender: No OFD packet to send [00:57:13]OFD Sender: No OFD packet to send [00:57:18]OFD Sender: No OFD packet to send [00:57:23]OFD Sender: No OFD packet to send [00:57:28]OFD Sender: No OFD packet to send [00:57:33]OFD Sender: No OFD packet to send [00:57:38]OFD Sender: No OFD packet to send [00:57:43]OFD Sender: No OFD packet to send [00:57:48]OFD Sender: No OFD packet to send [00:57:53]OFD Sender: No OFD packet to send [00:57:58]OFD Sender: No OFD packet to send [00:58:03]OFD Sender: No OFD packet to send [00:58:08]OFD Sender: No OFD packet to send [00:58:13]OFD Sender: No OFD packet to send [00:58:18]OFD Sender: No OFD packet to send [00:58:23]OFD Sender: No OFD packet to send [00:58:28]OFD Sender: No OFD packet to send [00:58:33]OFD Sender: No OFD packet to send [00:58:38]OFD Sender: No OFD packet to send [00:58:43]OFD Sender: No OFD packet to send [00:58:48]OFD Sender: No OFD packet to send [00:58:53]OFD Sender: No OFD packet to send [00:58:58]OFD Sender: No OFD packet to send [00:59:03]OFD Sender: No OFD packet to send [00:59:08]OFD Sender: No OFD packet to send [00:59:13]OFD Sender: No OFD packet to send [00:59:18]OFD Sender: No OFD packet to send [00:59:23]OFD Sender: No OFD packet to send [00:59:28]OFD Sender: No OFD packet to send [00:59:33]OFD Sender: No OFD packet to send [00:59:38]OFD Sender: No OFD packet to send [00:59:43]OFD Sender: No OFD packet to send [00:59:48]OFD Sender: No OFD packet to send [00:59:53]OFD Sender: No OFD packet to send [00:59:58]OFD Sender: No OFD packet to send [01:00:03]OFD Sender: No OFD packet to send [01:00:08]OFD Sender: No OFD packet to send [01:00:13]OFD Sender: No OFD packet to send [01:00:18]OFD Sender: No OFD packet to send [01:00:23]OFD Sender: No OFD packet to send [01:00:28]OFD Sender: No OFD packet to send [01:00:33]OFD Sender: No OFD packet to send [01:00:38]OFD Sender: No OFD packet to send [01:00:43]OFD Sender: No OFD packet to send [01:00:48]OFD Sender: No OFD packet to send [01:00:53]OFD Sender: No OFD packet to send [01:00:58]OFD Sender: No OFD packet to send [01:01:03]OFD Sender: No OFD packet to send [01:01:08]OFD Sender: No OFD packet to send [01:01:14]OFD Sender: No OFD packet to send [01:01:19]OFD Sender: No OFD packet to send [01:01:24]OFD Sender: No OFD packet to send [01:01:29]OFD Sender: No OFD packet to send [01:01:34]OFD Sender: No OFD packet to send [01:01:39]OFD Sender: No OFD packet to send [01:01:44]OFD Sender: No OFD packet to send [01:01:49]OFD Sender: No OFD packet to send [01:01:54]OFD Sender: No OFD packet to send [01:01:59]OFD Sender: No OFD packet to send [01:02:04]OFD Sender: No OFD packet to send [01:02:09]OFD Sender: No OFD packet to send [01:02:14]OFD Sender: No OFD packet to send [01:02:19]OFD Sender: No OFD packet to send [01:02:24]OFD Sender: No OFD packet to send [01:02:29]OFD Sender: No OFD packet to send [01:02:34]OFD Sender: No OFD packet to send [01:02:39]OFD Sender: No OFD packet to send [01:02:44]OFD Sender: No OFD packet to send [01:02:49]OFD Sender: No OFD packet to send [01:02:54]OFD Sender: No OFD packet to send [01:02:59]OFD Sender: No OFD packet to send [01:03:04]OFD Sender: No OFD packet to send [01:03:09]OFD Sender: No OFD packet to send [01:03:14]OFD Sender: No OFD packet to send [01:03:19]OFD Sender: No OFD packet to send [01:03:24]OFD Sender: No OFD packet to send [01:03:29]OFD Sender: No OFD packet to send [01:03:34]OFD Sender: No OFD packet to send [01:03:39]OFD Sender: No OFD packet to send [01:03:44]OFD Sender: No OFD packet to send [01:03:49]OFD Sender: No OFD packet to send [01:03:54]OFD Sender: No OFD packet to send [01:03:59]OFD Sender: No OFD packet to send [01:04:04]OFD Sender: No OFD packet to send [01:04:09]OFD Sender: No OFD packet to send [01:04:14]OFD Sender: No OFD packet to send [01:04:19]OFD Sender: No OFD packet to send [01:04:24]OFD Sender: No OFD packet to send [01:04:29]OFD Sender: No OFD packet to send [01:04:34]OFD Sender: No OFD packet to send [01:04:39]OFD Sender: No OFD packet to send [01:04:44]OFD Sender: No OFD packet to send [01:04:49]OFD Sender: No OFD packet to send [01:04:54]OFD Sender: No OFD packet to send [01:04:59]OFD Sender: No OFD packet to send [01:05:04]OFD Sender: No OFD packet to send [01:05:09]OFD Sender: No OFD packet to send [01:05:14]OFD Sender: No OFD packet to send [01:05:19]OFD Sender: No OFD packet to send [01:05:24]OFD Sender: No OFD packet to send [01:05:29]OFD Sender: No OFD packet to send [01:05:34]OFD Sender: No OFD packet to send [01:05:39]OFD Sender: No OFD packet to send [01:05:44]OFD Sender: No OFD packet to send [01:05:49]OFD Sender: No OFD packet to send [01:05:54]OFD Sender: No OFD packet to send [01:05:59]OFD Sender: No OFD packet to send [01:06:04]OFD Sender: No OFD packet to send [01:06:09]OFD Sender: No OFD packet to send [01:06:14]OFD Sender: No OFD packet to send [01:06:19]OFD Sender: No OFD packet to send [01:06:24]OFD Sender: No OFD packet to send [01:06:29]OFD Sender: No OFD packet to send [01:06:34]OFD Sender: No OFD packet to send [01:06:39]OFD Sender: No OFD packet to send [01:06:44]OFD Sender: No OFD packet to send [01:06:49]OFD Sender: No OFD packet to send [01:06:54]OFD Sender: No OFD packet to send [01:06:59]OFD Sender: No OFD packet to send [01:07:04]OFD Sender: No OFD packet to send [01:07:09]OFD Sender: No OFD packet to send [01:07:14]OFD Sender: No OFD packet to send [01:07:19]OFD Sender: No OFD packet to send [01:07:24]OFD Sender: No OFD packet to send [01:07:29]OFD Sender: No OFD packet to send [01:07:34]OFD Sender: No OFD packet to send [01:07:39]OFD Sender: No OFD packet to send [01:07:44]OFD Sender: No OFD packet to send [01:07:49]OFD Sender: No OFD packet to send [01:07:54]OFD Sender: No OFD packet to send [01:07:59]OFD Sender: No OFD packet to send [01:08:04]OFD Sender: No OFD packet to send [01:08:09]OFD Sender: No OFD packet to send [01:08:14]OFD Sender: No OFD packet to send [01:08:19]OFD Sender: No OFD packet to send [01:08:24]OFD Sender: No OFD packet to send [01:08:29]OFD Sender: No OFD packet to send [01:08:34]OFD Sender: No OFD packet to send [01:08:39]OFD Sender: No OFD packet to send [01:08:44]OFD Sender: No OFD packet to send [01:08:49]OFD Sender: No OFD packet to send [01:08:54]OFD Sender: No OFD packet to send [01:08:59]OFD Sender: No OFD packet to send [01:09:04]OFD Sender: No OFD packet to send [01:09:09]OFD Sender: No OFD packet to send [01:09:14]OFD Sender: No OFD packet to send [01:09:19]OFD Sender: No OFD packet to send [01:09:24]OFD Sender: No OFD packet to send [01:09:29]OFD Sender: No OFD packet to send [01:09:34]OFD Sender: No OFD packet to send [01:09:39]OFD Sender: No OFD packet to send [01:09:44]OFD Sender: No OFD packet to send [01:09:49]OFD Sender: No OFD packet to send [01:09:54]OFD Sender: No OFD packet to send [01:09:59]OFD Sender: No OFD packet to send [01:10:04]OFD Sender: No OFD packet to send [01:10:09]OFD Sender: No OFD packet to send [01:10:14]OFD Sender: No OFD packet to send [01:10:19]OFD Sender: No OFD packet to send [01:10:20]accept exits with 7 [01:10:20]New connection [01:10:20]New thread 3067395428 created [01:10:20]Thread 3067538788 joined [01:10:20]Waiting for new connection... [01:10:20] Sock 7.Parse request [01:10:20]Sock 7.Check first char [01:10:20]Sock 7.First char is OK [01:10:20]request: POST /json_proto HTTP/1.0 [01:10:20]Method: POST [01:10:20]URL: /json_proto [01:10:20]Method is POST - this is cgi request [01:10:20]url: /json_proto [01:10:20]query_string will be loaded in cgi processing [01:10:20]execute_cgi json_proto POST (null) [01:10:20]execute_cgi path=json_proto method=POST [01:10:20]POST find Content-Length [01:10:20]Host: 172.17.41.195:8080 [01:10:20]Content-Length: 671 [01:10:20]Content-Type: application/json [01:10:20] [01:10:20]POST finish read [01:10:20]Found Content-Length = 671 [01:10:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 12.540, "sum" : 850.21, "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" ] } } [01:10:20]execute_script... [01:10: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)507680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 12.540, "sum" : 850.21, "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" ] } } [01:10:20]POST & json_proto [01:10:20]process_json_proto [01:10:20]json parsed OK: [01:10:20]protocol is kg_v1.0 [01:10:20]action value=close_receipt [01:10:20]process_action close_receipt [01:10:20]cmd_close_receipt [01:10:20]MH_GetDate [01:10:20]Write to MH i2c: F0 00 00 A6 05 9A [01:10:20]Write i2c OK [01:10:20]MH_I2C_Read... [01:10:20]Read from MH i2c: F0 [01:10:20]MH_I2C_Read... [01:10:20]Read from MH i2c: F0 09 00 [01:10:20]MH_I2C_Read... [01:10:20]Read from MH i2c: F0 09 00 A6 05 00 7D AE 46 66 FC 21 6F 64 6A [01:10:20]GetLastDocTimeStamp 1715906926 [01:10:20]current date 1715908221 [01:10:20]FM_GetShiftState [01:10:20]SAM_PROTO_GetShiftState [01:10:20]wFMCommunicate request_size=4 [01:10:20]MH_SAM_APDU [01:10:20]CAPDU: 80 13 01 00 [01:10:20]Write to MH i2c: E2 08 00 A7 05 80 13 01 00 00 00 00 00 29 [01:10:20]Write i2c OK [01:10:20]MH_I2C_Read... [01:10:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:10:20]Read from MH i2c: E2 [01:10:20]MH_I2C_Read... [01:10:20]Read from MH i2c: E2 0E 00 [01:10:20]MH_I2C_Read... [01:10:20]Read from MH i2c: E2 0E 00 A7 05 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 AF [01:10:20]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [01:10:20]wFMCommunicate OK [01:10:20]SAM_PROTO_GetShiftState done [01:10:20]FM_GetShiftState done [01:10:20]opened in 1715905068 [01:10:20]opened+sec_in_day 1715991468 [01:10:20]quantity*price = 85021 [01:10:20]sum+1 = 85022 [01:10:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 850.00 Внесено: 850.00 СДАЧА: 0.00 НСП 1% : 7.52 НДС 12% : 90.29 Наличными: 850.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 8 17.05.2024 01:10 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67599 ФПД: 128377467017911 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T011021&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67599&fm=128377467017911&tin=02508201610067®Number=0000000000091845&sum=85000 [01:10:21]StoreToDocumentArchive [01:10:21]shift 358 fd 67599 [01:10:21]save to /storage/0358/doc_00067599 [01:10:21]save last doc name /storage/0358/doc_00067599 to /storage/kkm_last_doc_name [01:10:21]save OK [01:10:21]Clear old archive folders... [01:10:21]ProcessDocumentItem done err = 0, tmpTLVsize=252 [01:10:21]tlvbuf is 0163E170 [01:10:21]SAM_PROTO_ClearQueue [01:10:21]wFMCommunicate request_size=4 [01:10:21]MH_SAM_APDU [01:10:21]CAPDU: 80 09 00 00 [01:10:21]Write to MH i2c: E2 08 00 B4 05 80 09 00 00 00 00 00 00 2B [01:10:21]Write i2c OK [01:10:21]MH_I2C_Read... [01:10:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:10:21]Read from MH i2c: E2 [01:10:21]MH_I2C_Read... [01:10:21]Read from MH i2c: E2 03 00 [01:10:21]MH_I2C_Read... [01:10:21]Read from MH i2c: E2 03 00 B4 05 00 90 00 2D [01:10:21]RAPDU: 90 00 [01:10:21]wFMCommunicate OK [01:10:21]SAM_PROTO_ClearQueue done [01:10:21]KKMCreateOFDPacket [01:10:21]OFDProtocolAddRootSTLVToBuf [01:10:21]FM_MakeSignedData [01:10:21]FM_MakeSignedData [01:10:21]SAM_PROTO_SignData [01:10:21]wFMCommunicate request_size=4 [01:10:21]MH_SAM_APDU [01:10:21]CAPDU: 80 0D 01 02 [01:10:21]Write to MH i2c: E2 08 00 B5 05 80 0D 01 02 00 00 00 00 33 [01:10:21]Write i2c OK [01:10:21]MH_I2C_Read... [01:10:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:10:21]Read from MH i2c: E2 [01:10:21]MH_I2C_Read... [01:10:21]Read from MH i2c: E2 03 00 [01:10:21]MH_I2C_Read... [01:10:21]Read from MH i2c: E2 03 00 B5 05 00 90 00 2E [01:10:21]RAPDU: 90 00 [01:10:21]wFMCommunicate OK [01:10:21]wFMCommunicate request_size=255 [01:10:21]MH_SAM_APDU [01:10:21]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 30 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 1D 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 45 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 08 00 00 00 F4 03 04 00 7D AE 46 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0F 08 01 00 35 04 06 00 [01:10:21]Write to MH i2c: E2 02 01 B6 05 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 30 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 1D 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 45 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 08 00 00 00 F4 03 04 00 7D AE 46 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0F 08 01 00 35 04 06 00 00 00 FA [01:10:21]Write i2c OK [01:10:21]MH_I2C_Read... [01:10:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:10:22]Read from MH i2c: E2 [01:10:22]MH_I2C_Read... [01:10:22]Read from MH i2c: E2 03 00 [01:10:22]MH_I2C_Read... [01:10:22]Read from MH i2c: E2 03 00 B6 05 00 90 00 2F [01:10:22]RAPDU: 90 00 [01:10:22]wFMCommunicate OK [01:10:22]wFMCommunicate request_size=11 [01:10:22]MH_SAM_APDU [01:10:22]CAPDU: 80 0D 02 02 06 74 C2 35 51 9A B7 [01:10:22]Write to MH i2c: E2 0E 00 B7 05 80 0D 02 02 06 00 74 C2 35 51 9A B7 00 00 4F [01:10:22]Write i2c OK [01:10:22]MH_I2C_Read... [01:10:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:10:22]Read from MH i2c: E2 [01:10:22]MH_I2C_Read... [01:10:22]Read from MH i2c: E2 03 00 [01:10:22]MH_I2C_Read... [01:10:22]Read from MH i2c: E2 03 00 B7 05 00 90 00 30 [01:10:22]RAPDU: 90 00 [01:10:22]wFMCommunicate OK [01:10:22]wFMCommunicate request_size=4 [01:10:22]MH_SAM_APDU [01:10:22]CAPDU: 80 0D 03 02 [01:10:22]Write to MH i2c: E2 08 00 B8 05 80 0D 03 02 00 00 00 00 38 [01:10:22]Write i2c OK [01:10:22]MH_I2C_Read... [01:10:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:10:22]Read from MH i2c: E2 [01:10:22]MH_I2C_Read... [01:10:22]Read from MH i2c: E2 0B 00 [01:10:22]MH_I2C_Read... [01:10:22]Read from MH i2c: E2 0B 00 B8 05 00 FD A9 35 51 02 6A B3 D3 90 00 57 [01:10:22]RAPDU: FD A9 35 51 02 6A B3 D3 90 00 [01:10:22]wFMCommunicate OK [01:10:22]SAM_PROTO_SignData done [01:10:22]FM_MakeSignedData done [01:10:22]CreateOFDProtocolMessage [01:10:22]wFMCommunicate request_size=4 [01:10:22]MH_SAM_APDU [01:10:22]CAPDU: 80 11 00 00 [01:10:22]Write to MH i2c: E2 08 00 B9 05 80 11 00 00 00 00 00 00 38 [01:10:22]Write i2c OK [01:10:22]MH_I2C_Read... [01:10:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:10:22]Read from MH i2c: E2 [01:10:22]MH_I2C_Read... [01:10:22]Read from MH i2c: E2 17 00 [01:10:22]MH_I2C_Read... [01:10:22]Read from MH i2c: E2 17 00 B9 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 8E [01:10:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [01:10:22]wFMCommunicate OK [01:10:22]CreateOFDProtocolMessage done [01:10:22]OFDSenderStorePacket 67599 [01:10:22]StoreOFDPacket docnum=67599 [01:10:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 AD E5 08 01 C0 36 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 30 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 1D 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 45 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 08 00 00 00 F4 03 04 00 7D AE 46 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0F 08 01 00 35 04 06 00 74 C2 35 51 9A B7 FD A9 35 51 02 6A B3 D3 [01:10:22]CheckFolder [01:10:22]dirname=/storage/ofd_packets [01:10:22]CheckFolder done [01:10:22]ProducePacketName [01:10:22]name=ofd_packets/00067599 [01:10:22]NVStorageSaveData ofd_packets/00067599 [01:10:22]File name is /storage/ofd_packets/00067599 [01:10:22]Write 302 bytes [01:10:22]NVStorageSaveData done [01:10:22]OFDSenderStorePacket done [01:10:22]KKMCreateOFDPacket done [01:10:22]NVStorageSaveData kkm_last_timestamp [01:10:22]File name is /storage/kkm_last_timestamp [01:10:22]Write 4 bytes [01:10:22]NVStorageSaveData done [01:10:22]ExternCall_PrintAddStr [01:10:22]wPrintStart [01:10:22]Write to MH i2c: 01 00 00 BA 05 BF [01:10:22]Write i2c OK [01:10:22]MH_I2C_Read... [01:10:22]Read from MH i2c: 01 [01:10:22]MH_I2C_Read... [01:10:22]Read from MH i2c: 01 07 00 [01:10:22]MH_I2C_Read... [01:10:22]Read from MH i2c: 01 07 00 BA 05 00 00 00 00 00 FF 0F D4 [01:10:22]RasterBufferAndPrint [01:10:22]line Счет N : (1)507680 [01:10:22]line ИНН: 02508201610067 [01:10:22]line Контрольно-Кассовый Чек [01:10:22]line ПРОДАЖА [01:10:22]line ТРК (МРК, ГНК) : 42 [01:10:22]line Товар: 2710124130 [01:10:22]line Super-92-К-5 [01:10:22]line 12.540 * 67.80 [01:10:22]line = 850.21 [01:10:22]line НДС 12% НСП 1% [01:10:22]line > о реализуемом товаре [01:10:22]line ОКРУГЛЕНИЕ: -0.21 [01:10:22]line ИТОГО: 850.00 [01:10:22]line Внесено: 850.00 [01:10:22]line СДАЧА: 0.00 [01:10:22]line НСП 1% : 7.52 [01:10:22]line НДС 12% : 90.29 [01:10:22]line Наличными: 850.00 [01:10:22]line Безнал.: 0.00 [01:10:22]line Место: АЗС № 91 "Партнер Нефть" [01:10:22]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [01:10:22]line СНО: Общий режим [01:10:22]line Чек 8 17.05.2024 01:10 [01:10:22]line Смена: 358 ФФД: 1.0 [01:10:22]line ЗНМ: 0300000119 [01:10:22]line РНМ: 0000000000091845 [01:10:22]line Версия ККМ: 001 [01:10:22]line ФМ: 0000000000871829 [01:10:22]line ФД: 67599 [01:10:22]line ФПД: 128377467017911 [01:10:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T011021&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67599&fm=128377467017911&tin=02508201610067®Number=0000000000091845&sum=85000 [01:10:22]written 0, free lines is 4095 [01:10:22]OFD Sender: Processing packet 67599 [packets to send 35, broken 34] [01:10:22]ProducePacketName [01:10:22]name=ofd_packets/00067599 [01:10:22]OFD Sender: To server: pG, [01:10:22]CommunicateWithHost lk.salyk.kg:30040 [01:10:22]ConnectInit lk.salyk.kg [01:10:22]Connected sock=10 [01:10: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 38 32 39 10 01 00 00 AD E5 08 01 C0 36 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 30 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 1D 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 45 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 08 00 00 00 F4 03 04 00 7D AE 46 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0F 08 01 00 35 04 06 00 74 C2 35 51 9A B7 FD A9 35 51 02 6A B3 D3 [01:10:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 C2 39 47 00 E7 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0F 08 01 00 F4 03 04 00 56 56 46 66 B6 04 01 00 00 67 C9 D2 ED DB 3E 18 F2 [01:10:22]CommunicateWithHost err = 0 [01:10:22]CheckOFDResponse [01:10:22]1017 (14) - 77093643461234 [01:10:22]1041 (16) - 0000000000871829 [01:10:22]1040 (4) - 67599 [01:10:22]1012 (4) - 16.05.2024 18:54 [01:10:22]1206 (1) - 0 [01:10:22]OFD Sender: Remove packet 67599 [01:10:22]ProducePacketName [01:10:22]name=ofd_packets/00067599 [01:10:22]NVStorageDeleteData [01:10:22]Write to MH i2c: 01 00 00 E4 05 E9 [01:10:22]Write i2c OK [01:10:22]MH_I2C_Read... [01:10:22]Read from MH i2c: 01 [01:10:22]MH_I2C_Read... [01:10:22]Read from MH i2c: 01 07 00 [01:10:22]MH_I2C_Read... [01:10:22]Read from MH i2c: 01 07 00 E4 05 00 00 00 00 00 D1 0C CD [01:10:22]RasterBufferAndPrint [01:10:22]line [01:10:22]line [01:10:22]line [01:10:22]line [01:10:22]line [01:10:22]written 0, free lines is 3287 [01:10:22]MH_Cut [01:10:22]Write to MH i2c: D1 01 00 EB 05 01 C2 [01:10:22]Write i2c OK [01:10:22]MH_I2C_Read... [01:10:22]Read from MH i2c: D1 [01:10:22]MH_I2C_Read... [01:10:22]Read from MH i2c: D1 01 00 [01:10:22]MH_I2C_Read... [01:10:22]Read from MH i2c: D1 01 00 EB 05 00 C1 [01:10:22]Write to MH i2c: 01 00 00 EC 05 F1 [01:10:22]Write i2c OK [01:10:22]MH_I2C_Read... [01:10:23]OFD Sender: No OFD packet to send [01:10:23]*** Cut start [01:10:23]*** Purtial cut [01:10:23]*** CUTSNS_PIN = 0 [01:10:23]*** Stage 1: CUTSNS_PIN = 1 [01:10:25]Read from MH i2c: 01 [01:10:25]MH_I2C_Read... [01:10:25]*** Stop cut motor [01:10:25]*** Cut end [01:10:25]Read from MH i2c: 01 07 00 [01:10:25]MH_I2C_Read... [01:10:25]Read from MH i2c: 01 07 00 EC 05 00 00 00 00 00 FF 0F 06 [01:10:25]process_action close_receipt done [01:10:25]requested_data is exist [01:10:25]produce_requested_data [01:10:25]requested_item fm.sn is exist - process it [01:10:25]wFMCommunicate request_size=4 [01:10:25]MH_SAM_APDU [01:10:25]CAPDU: 80 11 00 00 [01:10:25]Write to MH i2c: E2 08 00 ED 05 80 11 00 00 00 00 00 00 6C [01:10:25]Write i2c OK [01:10:25]MH_I2C_Read... [01:10:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:10:25]Read from MH i2c: E2 [01:10:25]MH_I2C_Read... [01:10:25]Read from MH i2c: E2 17 00 [01:10:25]MH_I2C_Read... [01:10:25]Read from MH i2c: E2 17 00 ED 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C2 [01:10:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [01:10:25]wFMCommunicate OK [01:10:25]requested_item fd.num is exist - process it [01:10:25]SAM_PROTO_GetFieldsCounters [01:10:25]wFMCommunicate request_size=4 [01:10:25]MH_SAM_APDU [01:10:25]CAPDU: 80 13 00 00 [01:10:25]Write to MH i2c: E2 08 00 EE 05 80 13 00 00 00 00 00 00 6F [01:10:25]Write i2c OK [01:10:25]MH_I2C_Read... [01:10:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:10:25]Read from MH i2c: E2 [01:10:25]MH_I2C_Read... [01:10:25]Read from MH i2c: E2 62 00 [01:10:25]MH_I2C_Read... [01:10:25]Read from MH i2c: E2 62 00 EE 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 0F 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [01:10: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 0F 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:10:25]wFMCommunicate OK [01:10:25]SAM_PROTO_GetFieldsCounters done [01:10:25]requested_item shift.num is exist - process it [01:10:25]requested_item shift.opened is exist - process it [01:10:25]req_shift_opened [01:10:25]FM_GetShiftState [01:10:25]SAM_PROTO_GetShiftState [01:10:25]wFMCommunicate request_size=4 [01:10:25]MH_SAM_APDU [01:10:25]CAPDU: 80 13 01 00 [01:10:25]Write to MH i2c: E2 08 00 EF 05 80 13 01 00 00 00 00 00 71 [01:10:25]Write i2c OK [01:10:25]MH_I2C_Read... [01:10:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:10:25]Read from MH i2c: E2 [01:10:25]MH_I2C_Read... [01:10:25]Read from MH i2c: E2 0E 00 [01:10:25]MH_I2C_Read... [01:10:25]Read from MH i2c: E2 0E 00 EF 05 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 F7 [01:10:25]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [01:10:25]wFMCommunicate OK [01:10:25]SAM_PROTO_GetShiftState done [01:10:25]FM_GetShiftState done [01:10:25]req_shift_opened done [01:10:25]requested_item shift.open_date is exist - process it [01:10:25]req_shift_open_date [01:10:25]req_shift_open_date done [01:10:25]produce_requested_data done [01:10:25]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67599,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [01:10:25]process_action_free close_receipt [01:10:25]json_value_free [01:10:25]json_value_free done [01:10:25]process_json_proto returns [01:10:25]Send response to host [01:10:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67599,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [01:10:25]free response buf [01:10:25]execute_script done [01:10:25]execute_script returns [01:10:25]free content buf [01:10:25]Sock 7.Close socket [01:10:25]Sock 7.Thread stoped [01:10:28]OFD Sender: No OFD packet to send [01:10:33]OFD Sender: No OFD packet to send [01:10:38]OFD Sender: No OFD packet to send [01:10:43]OFD Sender: No OFD packet to send [01:10:48]OFD Sender: No OFD packet to send [01:10:53]OFD Sender: No OFD packet to send [01:10:58]OFD Sender: No OFD packet to send [01:11:03]OFD Sender: No OFD packet to send [01:11:08]OFD Sender: No OFD packet to send [01:11:13]OFD Sender: No OFD packet to send [01:11:18]OFD Sender: No OFD packet to send [01:11:23]OFD Sender: No OFD packet to send [01:11:28]OFD Sender: No OFD packet to send [01:11:33]OFD Sender: No OFD packet to send [01:11:38]OFD Sender: No OFD packet to send [01:11:43]OFD Sender: No OFD packet to send [01:11:48]OFD Sender: No OFD packet to send [01:11:53]OFD Sender: No OFD packet to send [01:11:58]OFD Sender: No OFD packet to send [01:12:03]OFD Sender: No OFD packet to send [01:12:08]OFD Sender: No OFD packet to send [01:12:13]OFD Sender: No OFD packet to send [01:12:18]OFD Sender: No OFD packet to send [01:12:23]OFD Sender: No OFD packet to send [01:12:28]OFD Sender: No OFD packet to send [01:12:33]OFD Sender: No OFD packet to send [01:12:38]OFD Sender: No OFD packet to send [01:12:43]OFD Sender: No OFD packet to send [01:12:48]OFD Sender: No OFD packet to send [01:12:53]OFD Sender: No OFD packet to send [01:12:58]OFD Sender: No OFD packet to send [01:13:03]OFD Sender: No OFD packet to send [01:13:08]OFD Sender: No OFD packet to send [01:13:13]OFD Sender: No OFD packet to send [01:13:18]OFD Sender: No OFD packet to send [01:13:23]OFD Sender: No OFD packet to send [01:13:28]OFD Sender: No OFD packet to send [01:13:33]OFD Sender: No OFD packet to send [01:13:38]OFD Sender: No OFD packet to send [01:13:43]OFD Sender: No OFD packet to send [01:13:48]OFD Sender: No OFD packet to send [01:13:53]OFD Sender: No OFD packet to send [01:13:58]OFD Sender: No OFD packet to send [01:14:03]OFD Sender: No OFD packet to send [01:14:08]OFD Sender: No OFD packet to send [01:14:13]OFD Sender: No OFD packet to send [01:14:18]OFD Sender: No OFD packet to send [01:14:23]OFD Sender: No OFD packet to send [01:14:28]OFD Sender: No OFD packet to send [01:14:33]OFD Sender: No OFD packet to send [01:14:38]OFD Sender: No OFD packet to send [01:14:43]OFD Sender: No OFD packet to send [01:14:48]OFD Sender: No OFD packet to send [01:14:53]OFD Sender: No OFD packet to send [01:14:58]OFD Sender: No OFD packet to send [01:15:03]OFD Sender: No OFD packet to send [01:15:08]OFD Sender: No OFD packet to send [01:15:13]OFD Sender: No OFD packet to send [01:15:18]OFD Sender: No OFD packet to send [01:15:23]OFD Sender: No OFD packet to send [01:15:28]OFD Sender: No OFD packet to send [01:15:33]OFD Sender: No OFD packet to send [01:15:38]OFD Sender: No OFD packet to send [01:15:43]OFD Sender: No OFD packet to send [01:15:48]OFD Sender: No OFD packet to send [01:15:53]OFD Sender: No OFD packet to send [01:15:58]OFD Sender: No OFD packet to send [01:16:03]OFD Sender: No OFD packet to send [01:16:08]OFD Sender: No OFD packet to send [01:16:13]OFD Sender: No OFD packet to send [01:16:18]OFD Sender: No OFD packet to send [01:16:23]OFD Sender: No OFD packet to send [01:16:28]OFD Sender: No OFD packet to send [01:16:33]OFD Sender: No OFD packet to send [01:16:38]OFD Sender: No OFD packet to send [01:16:43]OFD Sender: No OFD packet to send [01:16:48]OFD Sender: No OFD packet to send [01:16:53]OFD Sender: No OFD packet to send [01:16:58]OFD Sender: No OFD packet to send [01:17:03]OFD Sender: No OFD packet to send [01:17:08]OFD Sender: No OFD packet to send [01:17:13]OFD Sender: No OFD packet to send [01:17:18]OFD Sender: No OFD packet to send [01:17:23]OFD Sender: No OFD packet to send [01:17:28]OFD Sender: No OFD packet to send [01:17:33]OFD Sender: No OFD packet to send [01:17:38]OFD Sender: No OFD packet to send [01:17:43]OFD Sender: No OFD packet to send [01:17:48]OFD Sender: No OFD packet to send [01:17:53]OFD Sender: No OFD packet to send [01:17:58]OFD Sender: No OFD packet to send [01:18:03]OFD Sender: No OFD packet to send [01:18:08]OFD Sender: No OFD packet to send [01:18:13]OFD Sender: No OFD packet to send [01:18:18]OFD Sender: No OFD packet to send [01:18:23]OFD Sender: No OFD packet to send [01:18:28]OFD Sender: No OFD packet to send [01:18:33]OFD Sender: No OFD packet to send [01:18:38]OFD Sender: No OFD packet to send [01:18:43]OFD Sender: No OFD packet to send [01:18:48]OFD Sender: No OFD packet to send [01:18:53]OFD Sender: No OFD packet to send [01:18:58]OFD Sender: No OFD packet to send [01:19:03]OFD Sender: No OFD packet to send [01:19:08]OFD Sender: No OFD packet to send [01:19:13]OFD Sender: No OFD packet to send [01:19:18]OFD Sender: No OFD packet to send [01:19:23]OFD Sender: No OFD packet to send [01:19:28]OFD Sender: No OFD packet to send [01:19:33]OFD Sender: No OFD packet to send [01:19:38]OFD Sender: No OFD packet to send [01:19:43]OFD Sender: No OFD packet to send [01:19:48]OFD Sender: No OFD packet to send [01:19:53]OFD Sender: No OFD packet to send [01:19:58]OFD Sender: No OFD packet to send [01:20:03]OFD Sender: No OFD packet to send [01:20:08]OFD Sender: No OFD packet to send [01:20:13]OFD Sender: No OFD packet to send [01:20:18]OFD Sender: No OFD packet to send [01:20:23]OFD Sender: No OFD packet to send [01:20:28]OFD Sender: No OFD packet to send [01:20:33]OFD Sender: No OFD packet to send [01:20:38]OFD Sender: No OFD packet to send [01:20:43]OFD Sender: No OFD packet to send [01:20:48]OFD Sender: No OFD packet to send [01:20:53]OFD Sender: No OFD packet to send [01:20:58]OFD Sender: No OFD packet to send [01:21:03]OFD Sender: No OFD packet to send [01:21:08]OFD Sender: No OFD packet to send [01:21:13]OFD Sender: No OFD packet to send [01:21:18]OFD Sender: No OFD packet to send [01:21:23]OFD Sender: No OFD packet to send [01:21:28]OFD Sender: No OFD packet to send [01:21:33]OFD Sender: No OFD packet to send [01:21:38]OFD Sender: No OFD packet to send [01:21:43]OFD Sender: No OFD packet to send [01:21:48]OFD Sender: No OFD packet to send [01:21:53]OFD Sender: No OFD packet to send [01:21:58]OFD Sender: No OFD packet to send [01:22:03]OFD Sender: No OFD packet to send [01:22:08]OFD Sender: No OFD packet to send [01:22:13]OFD Sender: No OFD packet to send [01:22:18]OFD Sender: No OFD packet to send [01:22:23]OFD Sender: No OFD packet to send [01:22:28]OFD Sender: No OFD packet to send [01:22:33]OFD Sender: No OFD packet to send [01:22:38]OFD Sender: No OFD packet to send [01:22:43]OFD Sender: No OFD packet to send [01:22:48]OFD Sender: No OFD packet to send [01:22:53]OFD Sender: No OFD packet to send [01:22:58]OFD Sender: No OFD packet to send [01:23:03]OFD Sender: No OFD packet to send [01:23:06]accept exits with 9 [01:23:06]New connection [01:23:06]New thread 3067538788 created [01:23:06]Thread 3067395428 joined [01:23:06]Waiting for new connection... [01:23:06] Sock 9.Parse request [01:23:06]Sock 9.Check first char [01:23:06]Sock 9.First char is OK [01:23:06]request: POST /json_proto HTTP/1.0 [01:23:06]Method: POST [01:23:06]URL: /json_proto [01:23:06]Method is POST - this is cgi request [01:23:06]url: /json_proto [01:23:06]query_string will be loaded in cgi processing [01:23:06]execute_cgi json_proto POST (null) [01:23:06]execute_cgi path=json_proto method=POST [01:23:06]POST find Content-Length [01:23:06]Host: 172.17.41.195:8080 [01:23:06]Content-Length: 671 [01:23:06]Content-Type: application/json [01:23:06] [01:23:06]POST finish read [01:23:06]Found Content-Length = 671 [01:23:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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" ] } } [01:23:06]execute_script... [01:23: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)507681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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" ] } } [01:23:06]POST & json_proto [01:23:06]process_json_proto [01:23:06]json parsed OK: [01:23:06]protocol is kg_v1.0 [01:23:06]action value=close_receipt [01:23:06]process_action close_receipt [01:23:06]cmd_close_receipt [01:23:06]MH_GetDate [01:23:06]Write to MH i2c: F0 00 00 F0 05 E4 [01:23:06]Write i2c OK [01:23:06]MH_I2C_Read... [01:23:06]Read from MH i2c: F0 [01:23:06]MH_I2C_Read... [01:23:06]Read from MH i2c: F0 09 00 [01:23:06]MH_I2C_Read... [01:23:06]Read from MH i2c: F0 09 00 F0 05 00 7B B1 46 66 FC 21 6F 64 B5 [01:23:06]GetLastDocTimeStamp 1715908221 [01:23:06]current date 1715908987 [01:23:06]FM_GetShiftState [01:23:06]SAM_PROTO_GetShiftState [01:23:06]wFMCommunicate request_size=4 [01:23:06]MH_SAM_APDU [01:23:06]CAPDU: 80 13 01 00 [01:23:06]Write to MH i2c: E2 08 00 F1 05 80 13 01 00 00 00 00 00 73 [01:23:06]Write i2c OK [01:23:06]MH_I2C_Read... [01:23:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:23:06]Read from MH i2c: E2 [01:23:06]MH_I2C_Read... [01:23:06]Read from MH i2c: E2 0E 00 [01:23:06]MH_I2C_Read... [01:23:06]Read from MH i2c: E2 0E 00 F1 05 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 F9 [01:23:06]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [01:23:06]wFMCommunicate OK [01:23:06]SAM_PROTO_GetShiftState done [01:23:06]FM_GetShiftState done [01:23:06]opened in 1715905068 [01:23:06]opened+sec_in_day 1715991468 [01:23:06]quantity*price = 70037 [01:23:06]sum+1 = 70038 [01:23:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 9 17.05.2024 01:23 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67600 ФПД: 81975743062013 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T012307&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67600&fm=81975743062013&tin=02508201610067®Number=0000000000091845&sum=70000 [01:23:07]StoreToDocumentArchive [01:23:07]shift 358 fd 67600 [01:23:07]save to /storage/0358/doc_00067600 [01:23:07]save last doc name /storage/0358/doc_00067600 to /storage/kkm_last_doc_name [01:23:07]save OK [01:23:07]Clear old archive folders... [01:23:07]ProcessDocumentItem done err = 0, tmpTLVsize=252 [01:23:07]tlvbuf is 0162EF20 [01:23:07]SAM_PROTO_ClearQueue [01:23:07]wFMCommunicate request_size=4 [01:23:07]MH_SAM_APDU [01:23:07]CAPDU: 80 09 00 00 [01:23:07]Write to MH i2c: E2 08 00 FE 05 80 09 00 00 00 00 00 00 75 [01:23:07]Write i2c OK [01:23:07]MH_I2C_Read... [01:23:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:23:07]Read from MH i2c: E2 [01:23:07]MH_I2C_Read... [01:23:07]Read from MH i2c: E2 03 00 [01:23:07]MH_I2C_Read... [01:23:07]Read from MH i2c: E2 03 00 FE 05 00 90 00 77 [01:23:07]RAPDU: 90 00 [01:23:07]wFMCommunicate OK [01:23:07]SAM_PROTO_ClearQueue done [01:23:07]KKMCreateOFDPacket [01:23:07]OFDProtocolAddRootSTLVToBuf [01:23:07]FM_MakeSignedData [01:23:07]FM_MakeSignedData [01:23:07]SAM_PROTO_SignData [01:23:07]wFMCommunicate request_size=4 [01:23:07]MH_SAM_APDU [01:23:07]CAPDU: 80 0D 01 02 [01:23:07]Write to MH i2c: E2 08 00 FF 05 80 0D 01 02 00 00 00 00 7D [01:23:07]Write i2c OK [01:23:07]MH_I2C_Read... [01:23:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:23:07]Read from MH i2c: E2 [01:23:07]MH_I2C_Read... [01:23:07]Read from MH i2c: E2 03 00 [01:23:07]MH_I2C_Read... [01:23:07]Read from MH i2c: E2 03 00 FF 05 00 90 00 78 [01:23:07]RAPDU: 90 00 [01:23:07]wFMCommunicate OK [01:23:07]wFMCommunicate request_size=255 [01:23:07]MH_SAM_APDU [01:23:07]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 00 00 00 F4 03 04 00 7B B1 46 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 10 08 01 00 35 04 06 00 [01:23:07]Write to MH i2c: E2 02 01 00 06 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 00 00 00 F4 03 04 00 7B B1 46 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 10 08 01 00 35 04 06 00 00 00 74 [01:23:07]Write i2c OK [01:23:07]MH_I2C_Read... [01:23:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:23:07]Read from MH i2c: E2 [01:23:07]MH_I2C_Read... [01:23:07]Read from MH i2c: E2 03 00 [01:23:07]MH_I2C_Read... [01:23:07]Read from MH i2c: E2 03 00 00 06 00 90 00 7A [01:23:07]RAPDU: 90 00 [01:23:07]wFMCommunicate OK [01:23:07]wFMCommunicate request_size=11 [01:23:07]MH_SAM_APDU [01:23:07]CAPDU: 80 0D 02 02 06 4A 8E 77 0B 9F FD [01:23:07]Write to MH i2c: E2 0E 00 01 06 80 0D 02 02 06 00 4A 8E 77 0B 9F FD 00 00 83 [01:23:07]Write i2c OK [01:23:07]MH_I2C_Read... [01:23:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:23:07]Read from MH i2c: E2 [01:23:07]MH_I2C_Read... [01:23:07]Read from MH i2c: E2 03 00 [01:23:07]MH_I2C_Read... [01:23:07]Read from MH i2c: E2 03 00 01 06 00 90 00 7B [01:23:07]RAPDU: 90 00 [01:23:07]wFMCommunicate OK [01:23:07]wFMCommunicate request_size=4 [01:23:07]MH_SAM_APDU [01:23:07]CAPDU: 80 0D 03 02 [01:23:07]Write to MH i2c: E2 08 00 02 06 80 0D 03 02 00 00 00 00 83 [01:23:07]Write i2c OK [01:23:07]MH_I2C_Read... [01:23:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:23:07]Read from MH i2c: E2 [01:23:07]MH_I2C_Read... [01:23:07]Read from MH i2c: E2 0B 00 [01:23:07]MH_I2C_Read... [01:23:07]Read from MH i2c: E2 0B 00 02 06 00 46 8A 78 3A 8E E9 32 30 90 00 DF [01:23:07]RAPDU: 46 8A 78 3A 8E E9 32 30 90 00 [01:23:07]wFMCommunicate OK [01:23:07]SAM_PROTO_SignData done [01:23:07]FM_MakeSignedData done [01:23:07]CreateOFDProtocolMessage [01:23:07]wFMCommunicate request_size=4 [01:23:07]MH_SAM_APDU [01:23:07]CAPDU: 80 11 00 00 [01:23:07]Write to MH i2c: E2 08 00 03 06 80 11 00 00 00 00 00 00 83 [01:23:07]Write i2c OK [01:23:07]MH_I2C_Read... [01:23:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:23:07]Read from MH i2c: E2 [01:23:07]MH_I2C_Read... [01:23:07]Read from MH i2c: E2 17 00 [01:23:07]MH_I2C_Read... [01:23:07]Read from MH i2c: E2 17 00 03 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D9 [01:23:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [01:23:07]wFMCommunicate OK [01:23:07]CreateOFDProtocolMessage done [01:23:07]OFDSenderStorePacket 67600 [01:23:07]StoreOFDPacket docnum=67600 [01:23:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 E3 EA 08 01 89 E4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 00 00 00 F4 03 04 00 7B B1 46 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 10 08 01 00 35 04 06 00 4A 8E 77 0B 9F FD 46 8A 78 3A 8E E9 32 30 [01:23:07]CheckFolder [01:23:07]dirname=/storage/ofd_packets [01:23:07]CheckFolder done [01:23:07]ProducePacketName [01:23:07]name=ofd_packets/00067600 [01:23:07]NVStorageSaveData ofd_packets/00067600 [01:23:07]File name is /storage/ofd_packets/00067600 [01:23:07]Write 302 bytes [01:23:07]NVStorageSaveData done [01:23:07]OFDSenderStorePacket done [01:23:07]KKMCreateOFDPacket done [01:23:07]NVStorageSaveData kkm_last_timestamp [01:23:07]File name is /storage/kkm_last_timestamp [01:23:07]Write 4 bytes [01:23:07]NVStorageSaveData done [01:23:07]ExternCall_PrintAddStr [01:23:07]wPrintStart [01:23:07]Write to MH i2c: 01 00 00 04 06 0A [01:23:07]Write i2c OK [01:23:07]MH_I2C_Read... [01:23:07]Read from MH i2c: 01 [01:23:07]MH_I2C_Read... [01:23:07]Read from MH i2c: 01 07 00 [01:23:07]MH_I2C_Read... [01:23:07]Read from MH i2c: 01 07 00 04 06 00 00 00 00 00 FF 0F 1F [01:23:07]RasterBufferAndPrint [01:23:07]line Счет N : (1)507681 [01:23:07]line ИНН: 02508201610067 [01:23:07]line Контрольно-Кассовый Чек [01:23:07]line ПРОДАЖА [01:23:07]line ТРК (МРК, ГНК) : 32 [01:23:07]line Товар: 2710124130 [01:23:08]line Super-92-К-5 [01:23:08]line 10.330 * 67.80 [01:23:08]line = 700.37 [01:23:08]line НДС 12% НСП 1% [01:23:08]line > о реализуемом товаре [01:23:08]line ОКРУГЛЕНИЕ: -0.37 [01:23:08]line ИТОГО: 700.00 [01:23:08]line Внесено: 700.00 [01:23:08]line СДАЧА: 0.00 [01:23:08]line НСП 1% : 6.20 [01:23:08]line НДС 12% : 74.38 [01:23:08]line Наличными: 700.00 [01:23:08]line Безнал.: 0.00 [01:23:08]line Место: АЗС № 91 "Партнер Нефть" [01:23:08]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [01:23:08]line СНО: Общий режим [01:23:08]line Чек 9 17.05.2024 01:23 [01:23:08]line Смена: 358 ФФД: 1.0 [01:23:08]line ЗНМ: 0300000119 [01:23:08]line РНМ: 0000000000091845 [01:23:08]line Версия ККМ: 001 [01:23:08]line ФМ: 0000000000871829 [01:23:08]line ФД: 67600 [01:23:08]line ФПД: 81975743062013 [01:23:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T012307&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67600&fm=81975743062013&tin=02508201610067®Number=0000000000091845&sum=70000 [01:23:08]OFD Sender: Processing packet 67600 [packets to send 35, broken 34] [01:23:08]ProducePacketName [01:23:08]name=ofd_packets/00067600 [01:23:08]OFD Sender: To server: pG, [01:23:08]CommunicateWithHost lk.salyk.kg:30040 [01:23:08]ConnectInit lk.salyk.kg [01:23:08]written 0, free lines is 4095 [01:23:08]Connected sock=10 [01:23: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 38 32 39 10 01 00 00 E3 EA 08 01 89 E4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 00 00 00 F4 03 04 00 7B B1 46 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 10 08 01 00 35 04 06 00 4A 8E 77 0B 9F FD 46 8A 78 3A 8E E9 32 30 [01:23:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 11 CD 47 00 1A 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 38 32 39 10 04 04 00 10 08 01 00 F4 03 04 00 54 59 46 66 B6 04 01 00 00 A9 D1 29 36 BC BE 8E 08 [01:23:08]CommunicateWithHost err = 0 [01:23:08]CheckOFDResponse [01:23:08]1017 (14) - 77093643461234 [01:23:08]1041 (16) - 0000000000871829 [01:23:08]1040 (4) - 67600 [01:23:08]1012 (4) - 16.05.2024 19:07 [01:23:08]1206 (1) - 0 [01:23:08]OFD Sender: Remove packet 67600 [01:23:08]ProducePacketName [01:23:08]name=ofd_packets/00067600 [01:23:08]NVStorageDeleteData [01:23:08]Write to MH i2c: 01 00 00 2E 06 34 [01:23:08]Write i2c OK [01:23:08]MH_I2C_Read... [01:23:08]Read from MH i2c: 01 [01:23:08]MH_I2C_Read... [01:23:08]Read from MH i2c: 01 07 00 [01:23:08]MH_I2C_Read... [01:23:08]Read from MH i2c: 01 07 00 2E 06 00 00 00 00 00 B9 0C 00 [01:23:08]RasterBufferAndPrint [01:23:08]line [01:23:08]line [01:23:08]line [01:23:08]line [01:23:08]line [01:23:08]written 0, free lines is 3264 [01:23:08]MH_Cut [01:23:08]Write to MH i2c: D1 01 00 35 06 01 0D [01:23:08]Write i2c OK [01:23:08]MH_I2C_Read... [01:23:08]Read from MH i2c: D1 [01:23:08]MH_I2C_Read... [01:23:08]Read from MH i2c: D1 01 00 [01:23:08]MH_I2C_Read... [01:23:08]Read from MH i2c: D1 01 00 35 06 00 0C [01:23:08]Write to MH i2c: 01 00 00 36 06 3C [01:23:08]Write i2c OK [01:23:08]MH_I2C_Read... [01:23:09]OFD Sender: No OFD packet to send [01:23:09]*** Cut start [01:23:09]*** Purtial cut [01:23:09]*** Stage 1: CUTSNS_PIN = 1 [01:23:09]Read from MH i2c: 01 [01:23:09]MH_I2C_Read... [01:23:09]*** Stop cut motor [01:23:09]*** Cut end [01:23:09]Read from MH i2c: 01 07 00 [01:23:09]MH_I2C_Read... [01:23:09]Read from MH i2c: 01 07 00 36 06 00 00 00 00 00 FF 0F 51 [01:23:09]process_action close_receipt done [01:23:09]requested_data is exist [01:23:09]produce_requested_data [01:23:09]requested_item fm.sn is exist - process it [01:23:09]wFMCommunicate request_size=4 [01:23:09]MH_SAM_APDU [01:23:09]CAPDU: 80 11 00 00 [01:23:09]Write to MH i2c: E2 08 00 37 06 80 11 00 00 00 00 00 00 B7 [01:23:09]Write i2c OK [01:23:09]MH_I2C_Read... [01:23:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:23:09]Read from MH i2c: E2 [01:23:09]MH_I2C_Read... [01:23:09]Read from MH i2c: E2 17 00 [01:23:09]MH_I2C_Read... [01:23:09]Read from MH i2c: E2 17 00 37 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0D [01:23:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [01:23:09]wFMCommunicate OK [01:23:09]requested_item fd.num is exist - process it [01:23:09]SAM_PROTO_GetFieldsCounters [01:23:09]wFMCommunicate request_size=4 [01:23:09]MH_SAM_APDU [01:23:09]CAPDU: 80 13 00 00 [01:23:09]Write to MH i2c: E2 08 00 38 06 80 13 00 00 00 00 00 00 BA [01:23:09]Write i2c OK [01:23:09]MH_I2C_Read... [01:23:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:23:10]Read from MH i2c: E2 [01:23:10]MH_I2C_Read... [01:23:10]Read from MH i2c: E2 62 00 [01:23:10]MH_I2C_Read... [01:23:10]Read from MH i2c: E2 62 00 38 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 10 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [01:23: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 10 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:23:10]wFMCommunicate OK [01:23:10]SAM_PROTO_GetFieldsCounters done [01:23:10]requested_item shift.num is exist - process it [01:23:10]requested_item shift.opened is exist - process it [01:23:10]req_shift_opened [01:23:10]FM_GetShiftState [01:23:10]SAM_PROTO_GetShiftState [01:23:10]wFMCommunicate request_size=4 [01:23:10]MH_SAM_APDU [01:23:10]CAPDU: 80 13 01 00 [01:23:10]Write to MH i2c: E2 08 00 39 06 80 13 01 00 00 00 00 00 BC [01:23:10]Write i2c OK [01:23:10]MH_I2C_Read... [01:23:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:23:10]Read from MH i2c: E2 [01:23:10]MH_I2C_Read... [01:23:10]Read from MH i2c: E2 0E 00 [01:23:10]MH_I2C_Read... [01:23:10]Read from MH i2c: E2 0E 00 39 06 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 42 [01:23:10]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [01:23:10]wFMCommunicate OK [01:23:10]SAM_PROTO_GetShiftState done [01:23:10]FM_GetShiftState done [01:23:10]req_shift_opened done [01:23:10]requested_item shift.open_date is exist - process it [01:23:10]req_shift_open_date [01:23:10]req_shift_open_date done [01:23:10]produce_requested_data done [01:23:10]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67600,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [01:23:10]process_action_free close_receipt [01:23:10]json_value_free [01:23:10]json_value_free done [01:23:10]process_json_proto returns [01:23:10]Send response to host [01:23:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67600,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [01:23:10]free response buf [01:23:10]execute_script done [01:23:10]execute_script returns [01:23:10]free content buf [01:23:10]Sock 9.Close socket [01:23:10]Sock 9.Thread stoped [01:23:14]OFD Sender: No OFD packet to send [01:23:19]OFD Sender: No OFD packet to send [01:23:24]OFD Sender: No OFD packet to send [01:23:29]OFD Sender: No OFD packet to send [01:23:34]OFD Sender: No OFD packet to send [01:23:39]OFD Sender: No OFD packet to send [01:23:44]OFD Sender: No OFD packet to send [01:23:49]OFD Sender: No OFD packet to send [01:23:54]OFD Sender: No OFD packet to send [01:23:59]OFD Sender: No OFD packet to send [01:24:04]OFD Sender: No OFD packet to send [01:24:09]OFD Sender: No OFD packet to send [01:24:14]OFD Sender: No OFD packet to send [01:24:19]OFD Sender: No OFD packet to send [01:24:24]OFD Sender: No OFD packet to send [01:24:29]OFD Sender: No OFD packet to send [01:24:34]OFD Sender: No OFD packet to send [01:24:39]OFD Sender: No OFD packet to send [01:24:44]OFD Sender: No OFD packet to send [01:24:49]OFD Sender: No OFD packet to send [01:24:54]OFD Sender: No OFD packet to send [01:24:59]OFD Sender: No OFD packet to send [01:25:04]OFD Sender: No OFD packet to send [01:25:09]OFD Sender: No OFD packet to send [01:25:14]OFD Sender: No OFD packet to send [01:25:19]OFD Sender: No OFD packet to send [01:25:24]OFD Sender: No OFD packet to send [01:25:29]OFD Sender: No OFD packet to send [01:25:34]OFD Sender: No OFD packet to send [01:25:39]OFD Sender: No OFD packet to send [01:25:44]OFD Sender: No OFD packet to send [01:25:49]OFD Sender: No OFD packet to send [01:25:54]OFD Sender: No OFD packet to send [01:25:59]OFD Sender: No OFD packet to send [01:26:04]OFD Sender: No OFD packet to send [01:26:09]OFD Sender: No OFD packet to send [01:26:14]OFD Sender: No OFD packet to send [01:26:19]OFD Sender: No OFD packet to send [01:26:24]OFD Sender: No OFD packet to send [01:26:29]OFD Sender: No OFD packet to send [01:26:34]OFD Sender: No OFD packet to send [01:26:39]OFD Sender: No OFD packet to send [01:26:44]OFD Sender: No OFD packet to send [01:26:49]OFD Sender: No OFD packet to send [01:26:54]OFD Sender: No OFD packet to send [01:26:59]OFD Sender: No OFD packet to send [01:27:04]OFD Sender: No OFD packet to send [01:27:09]OFD Sender: No OFD packet to send [01:27:14]OFD Sender: No OFD packet to send [01:27:19]OFD Sender: No OFD packet to send [01:27:24]OFD Sender: No OFD packet to send [01:27:29]OFD Sender: No OFD packet to send [01:27:34]OFD Sender: No OFD packet to send [01:27:39]OFD Sender: No OFD packet to send [01:27:44]OFD Sender: No OFD packet to send [01:27:49]OFD Sender: No OFD packet to send [01:27:54]OFD Sender: No OFD packet to send [01:27:59]OFD Sender: No OFD packet to send [01:28:04]OFD Sender: No OFD packet to send [01:28:09]OFD Sender: No OFD packet to send [01:28:14]OFD Sender: No OFD packet to send [01:28:19]OFD Sender: No OFD packet to send [01:28:24]OFD Sender: No OFD packet to send [01:28:29]OFD Sender: No OFD packet to send [01:28:34]OFD Sender: No OFD packet to send [01:28:39]OFD Sender: No OFD packet to send [01:28:44]OFD Sender: No OFD packet to send [01:28:49]OFD Sender: No OFD packet to send [01:28:54]OFD Sender: No OFD packet to send [01:28:59]OFD Sender: No OFD packet to send [01:29:04]OFD Sender: No OFD packet to send [01:29:09]OFD Sender: No OFD packet to send [01:29:14]OFD Sender: No OFD packet to send [01:29:19]OFD Sender: No OFD packet to send [01:29:24]OFD Sender: No OFD packet to send [01:29:29]OFD Sender: No OFD packet to send [01:29:34]OFD Sender: No OFD packet to send [01:29:39]OFD Sender: No OFD packet to send [01:29:44]OFD Sender: No OFD packet to send [01:29:49]OFD Sender: No OFD packet to send [01:29:54]OFD Sender: No OFD packet to send [01:29:59]OFD Sender: No OFD packet to send [01:30:04]OFD Sender: No OFD packet to send [01:30:09]OFD Sender: No OFD packet to send [01:30:14]OFD Sender: No OFD packet to send [01:30:19]OFD Sender: No OFD packet to send [01:30:24]OFD Sender: No OFD packet to send [01:30:29]OFD Sender: No OFD packet to send [01:30:34]OFD Sender: No OFD packet to send [01:30:39]OFD Sender: No OFD packet to send [01:30:44]OFD Sender: No OFD packet to send [01:30:49]OFD Sender: No OFD packet to send [01:30:54]OFD Sender: No OFD packet to send [01:30:59]OFD Sender: No OFD packet to send [01:31:04]OFD Sender: No OFD packet to send [01:31:09]OFD Sender: No OFD packet to send [01:31:14]OFD Sender: No OFD packet to send [01:31:19]OFD Sender: No OFD packet to send [01:31:24]OFD Sender: No OFD packet to send [01:31:29]OFD Sender: No OFD packet to send [01:31:34]OFD Sender: No OFD packet to send [01:31:39]OFD Sender: No OFD packet to send [01:31:44]OFD Sender: No OFD packet to send [01:31:49]OFD Sender: No OFD packet to send [01:31:54]OFD Sender: No OFD packet to send [01:31:59]OFD Sender: No OFD packet to send [01:32:04]OFD Sender: No OFD packet to send [01:32:09]OFD Sender: No OFD packet to send [01:32:14]OFD Sender: No OFD packet to send [01:32:19]OFD Sender: No OFD packet to send [01:32:24]OFD Sender: No OFD packet to send [01:32:29]OFD Sender: No OFD packet to send [01:32:34]OFD Sender: No OFD packet to send [01:32:39]OFD Sender: No OFD packet to send [01:32:44]OFD Sender: No OFD packet to send [01:32:49]OFD Sender: No OFD packet to send [01:32:54]OFD Sender: No OFD packet to send [01:32:59]OFD Sender: No OFD packet to send [01:33:04]OFD Sender: No OFD packet to send [01:33:09]OFD Sender: No OFD packet to send [01:33:14]OFD Sender: No OFD packet to send [01:33:19]OFD Sender: No OFD packet to send [01:33:24]OFD Sender: No OFD packet to send [01:33:29]OFD Sender: No OFD packet to send [01:33:34]OFD Sender: No OFD packet to send [01:33:39]OFD Sender: No OFD packet to send [01:33:44]OFD Sender: No OFD packet to send [01:33:49]OFD Sender: No OFD packet to send [01:33:54]OFD Sender: No OFD packet to send [01:33:59]OFD Sender: No OFD packet to send [01:34:04]OFD Sender: No OFD packet to send [01:34:09]OFD Sender: No OFD packet to send [01:34:14]OFD Sender: No OFD packet to send [01:34:19]OFD Sender: No OFD packet to send [01:34:24]OFD Sender: No OFD packet to send [01:34:29]OFD Sender: No OFD packet to send [01:34:34]OFD Sender: No OFD packet to send [01:34:39]OFD Sender: No OFD packet to send [01:34:44]OFD Sender: No OFD packet to send [01:34:49]OFD Sender: No OFD packet to send [01:34:54]OFD Sender: No OFD packet to send [01:34:59]OFD Sender: No OFD packet to send [01:35:04]OFD Sender: No OFD packet to send [01:35:09]OFD Sender: No OFD packet to send [01:35:14]OFD Sender: No OFD packet to send [01:35:19]OFD Sender: No OFD packet to send [01:35:24]OFD Sender: No OFD packet to send [01:35:29]OFD Sender: No OFD packet to send [01:35:34]OFD Sender: No OFD packet to send [01:35:39]OFD Sender: No OFD packet to send [01:35:44]OFD Sender: No OFD packet to send [01:35:49]OFD Sender: No OFD packet to send [01:35:54]OFD Sender: No OFD packet to send [01:35:59]OFD Sender: No OFD packet to send [01:36:04]OFD Sender: No OFD packet to send [01:36:09]OFD Sender: No OFD packet to send [01:36:14]OFD Sender: No OFD packet to send [01:36:19]OFD Sender: No OFD packet to send [01:36:24]OFD Sender: No OFD packet to send [01:36:29]OFD Sender: No OFD packet to send [01:36:34]OFD Sender: No OFD packet to send [01:36:39]OFD Sender: No OFD packet to send [01:36:44]OFD Sender: No OFD packet to send [01:36:49]OFD Sender: No OFD packet to send [01:36:54]OFD Sender: No OFD packet to send [01:36:59]OFD Sender: No OFD packet to send [01:37:04]OFD Sender: No OFD packet to send [01:37:09]OFD Sender: No OFD packet to send [01:37:14]OFD Sender: No OFD packet to send [01:37:19]OFD Sender: No OFD packet to send [01:37:24]OFD Sender: No OFD packet to send [01:37:29]OFD Sender: No OFD packet to send [01:37:34]OFD Sender: No OFD packet to send [01:37:39]OFD Sender: No OFD packet to send [01:37:44]OFD Sender: No OFD packet to send [01:37:49]OFD Sender: No OFD packet to send [01:37:54]OFD Sender: No OFD packet to send [01:37:59]OFD Sender: No OFD packet to send [01:38:04]OFD Sender: No OFD packet to send [01:38:09]OFD Sender: No OFD packet to send [01:38:14]OFD Sender: No OFD packet to send [01:38:19]OFD Sender: No OFD packet to send [01:38:24]OFD Sender: No OFD packet to send [01:38:29]OFD Sender: No OFD packet to send [01:38:34]OFD Sender: No OFD packet to send [01:38:39]OFD Sender: No OFD packet to send [01:38:44]OFD Sender: No OFD packet to send [01:38:49]OFD Sender: No OFD packet to send [01:38:54]OFD Sender: No OFD packet to send [01:38:59]OFD Sender: No OFD packet to send [01:39:04]OFD Sender: No OFD packet to send [01:39:09]OFD Sender: No OFD packet to send [01:39:14]OFD Sender: No OFD packet to send [01:39:20]OFD Sender: No OFD packet to send [01:39:25]OFD Sender: No OFD packet to send [01:39:30]OFD Sender: No OFD packet to send [01:39:35]OFD Sender: No OFD packet to send [01:39:40]OFD Sender: No OFD packet to send [01:39:45]OFD Sender: No OFD packet to send [01:39:50]OFD Sender: No OFD packet to send [01:39:55]OFD Sender: No OFD packet to send [01:40:00]OFD Sender: No OFD packet to send [01:40:05]OFD Sender: No OFD packet to send [01:40:10]OFD Sender: No OFD packet to send [01:40:15]OFD Sender: No OFD packet to send [01:40:20]OFD Sender: No OFD packet to send [01:40:25]OFD Sender: No OFD packet to send [01:40:30]OFD Sender: No OFD packet to send [01:40:35]OFD Sender: No OFD packet to send [01:40:40]OFD Sender: No OFD packet to send [01:40:45]OFD Sender: No OFD packet to send [01:40:50]OFD Sender: No OFD packet to send [01:40:55]OFD Sender: No OFD packet to send [01:41:00]OFD Sender: No OFD packet to send [01:41:05]OFD Sender: No OFD packet to send [01:41:10]OFD Sender: No OFD packet to send [01:41:15]OFD Sender: No OFD packet to send [01:41:20]OFD Sender: No OFD packet to send [01:41:25]OFD Sender: No OFD packet to send [01:41:30]OFD Sender: No OFD packet to send [01:41:35]OFD Sender: No OFD packet to send [01:41:40]OFD Sender: No OFD packet to send [01:41:45]OFD Sender: No OFD packet to send [01:41:50]OFD Sender: No OFD packet to send [01:41:55]OFD Sender: No OFD packet to send [01:42:00]OFD Sender: No OFD packet to send [01:42:05]OFD Sender: No OFD packet to send [01:42:10]OFD Sender: No OFD packet to send [01:42:15]OFD Sender: No OFD packet to send [01:42:20]OFD Sender: No OFD packet to send [01:42:25]OFD Sender: No OFD packet to send [01:42:30]OFD Sender: No OFD packet to send [01:42:35]OFD Sender: No OFD packet to send [01:42:40]OFD Sender: No OFD packet to send [01:42:45]OFD Sender: No OFD packet to send [01:42:50]OFD Sender: No OFD packet to send [01:42:55]OFD Sender: No OFD packet to send [01:43:00]OFD Sender: No OFD packet to send [01:43:05]OFD Sender: No OFD packet to send [01:43:10]OFD Sender: No OFD packet to send [01:43:15]OFD Sender: No OFD packet to send [01:43:20]OFD Sender: No OFD packet to send [01:43:25]OFD Sender: No OFD packet to send [01:43:30]OFD Sender: No OFD packet to send [01:43:35]OFD Sender: No OFD packet to send [01:43:40]OFD Sender: No OFD packet to send [01:43:45]OFD Sender: No OFD packet to send [01:43:50]OFD Sender: No OFD packet to send [01:43:55]OFD Sender: No OFD packet to send [01:44:00]OFD Sender: No OFD packet to send [01:44:05]OFD Sender: No OFD packet to send [01:44:10]OFD Sender: No OFD packet to send [01:44:15]OFD Sender: No OFD packet to send [01:44:20]OFD Sender: No OFD packet to send [01:44:25]OFD Sender: No OFD packet to send [01:44:30]OFD Sender: No OFD packet to send [01:44:35]OFD Sender: No OFD packet to send [01:44:40]OFD Sender: No OFD packet to send [01:44:45]OFD Sender: No OFD packet to send [01:44:50]OFD Sender: No OFD packet to send [01:44:55]OFD Sender: No OFD packet to send [01:45:00]OFD Sender: No OFD packet to send [01:45:05]OFD Sender: No OFD packet to send [01:45:10]OFD Sender: No OFD packet to send [01:45:15]OFD Sender: No OFD packet to send [01:45:20]OFD Sender: No OFD packet to send [01:45:25]OFD Sender: No OFD packet to send [01:45:30]OFD Sender: No OFD packet to send [01:45:35]OFD Sender: No OFD packet to send [01:45:40]OFD Sender: No OFD packet to send [01:45:45]OFD Sender: No OFD packet to send [01:45:50]OFD Sender: No OFD packet to send [01:45:55]OFD Sender: No OFD packet to send [01:46:00]OFD Sender: No OFD packet to send [01:46:05]OFD Sender: No OFD packet to send [01:46:10]OFD Sender: No OFD packet to send [01:46:15]OFD Sender: No OFD packet to send [01:46:20]OFD Sender: No OFD packet to send [01:46:25]OFD Sender: No OFD packet to send [01:46:30]OFD Sender: No OFD packet to send [01:46:35]OFD Sender: No OFD packet to send [01:46:40]OFD Sender: No OFD packet to send [01:46:45]OFD Sender: No OFD packet to send [01:46:50]OFD Sender: No OFD packet to send [01:46:55]OFD Sender: No OFD packet to send [01:47:00]OFD Sender: No OFD packet to send [01:47:05]OFD Sender: No OFD packet to send [01:47:10]OFD Sender: No OFD packet to send [01:47:15]OFD Sender: No OFD packet to send [01:47:20]OFD Sender: No OFD packet to send [01:47:25]OFD Sender: No OFD packet to send [01:47:30]OFD Sender: No OFD packet to send [01:47:35]OFD Sender: No OFD packet to send [01:47:40]OFD Sender: No OFD packet to send [01:47:45]OFD Sender: No OFD packet to send [01:47:50]OFD Sender: No OFD packet to send [01:47:55]OFD Sender: No OFD packet to send [01:48:00]OFD Sender: No OFD packet to send [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:35]OFD Sender: No OFD packet to send [01:53:40]OFD Sender: No OFD packet to send [01:53:45]OFD Sender: No OFD packet to send [01:53:50]OFD Sender: No OFD packet to send [01:53:55]OFD Sender: No OFD packet to send [01:54:00]OFD Sender: No OFD packet to send [01:54:05]OFD Sender: No OFD packet to send [01:54:10]OFD Sender: No OFD packet to send [01:54:15]OFD Sender: No OFD packet to send [01:54:20]OFD Sender: No OFD packet to send [01:54:25]OFD Sender: No OFD packet to send [01:54:30]OFD Sender: No OFD packet to send [01:54:35]OFD Sender: No OFD packet to send [01:54:40]OFD Sender: No OFD packet to send [01:54:45]OFD Sender: No OFD packet to send [01:54:50]OFD Sender: No OFD packet to send [01:54:55]OFD Sender: No OFD packet to send [01:55:00]OFD Sender: No OFD packet to send [01:55:05]OFD Sender: No OFD packet to send [01:55:10]OFD Sender: No OFD packet to send [01:55:15]OFD Sender: No OFD packet to send [01:55:20]OFD Sender: No OFD packet to send [01:55:25]OFD Sender: No OFD packet to send [01:55:30]OFD Sender: No OFD packet to send [01:55:35]OFD Sender: No OFD packet to send [01:55:40]OFD Sender: No OFD packet to send [01:55:45]OFD Sender: No OFD packet to send [01:55:50]OFD Sender: No OFD packet to send [01:55:55]OFD Sender: No OFD packet to send [01:56:00]OFD Sender: No OFD packet to send [01:56:05]OFD Sender: No OFD packet to send [01:56:10]OFD Sender: No OFD packet to send [01:56:15]OFD Sender: No OFD packet to send [01:56:20]OFD Sender: No OFD packet to send [01:56:25]OFD Sender: No OFD packet to send [01:56:30]OFD Sender: No OFD packet to send [01:56:35]OFD Sender: No OFD packet to send [01:56:40]OFD Sender: No OFD packet to send [01:56:45]OFD Sender: No OFD packet to send [01:56:50]OFD Sender: No OFD packet to send [01:56:55]OFD Sender: No OFD packet to send [01:57:00]OFD Sender: No OFD packet to send [01:57:05]OFD Sender: No OFD packet to send [01:57:10]OFD Sender: No OFD packet to send [01:57:15]OFD Sender: No OFD packet to send [01:57:20]OFD Sender: No OFD packet to send [01:57:25]OFD Sender: No OFD packet to send [01:57:30]OFD Sender: No OFD packet to send [01:57:35]OFD Sender: No OFD packet to send [01:57:40]OFD Sender: No OFD packet to send [01:57:45]OFD Sender: No OFD packet to send [01:57:50]OFD Sender: No OFD packet to send [01:57:55]OFD Sender: No OFD packet to send [01:58:00]OFD Sender: No OFD packet to send [01:58:05]OFD Sender: No OFD packet to send [01:58:10]OFD Sender: No OFD packet to send [01:58:15]OFD Sender: No OFD packet to send [01:58:20]OFD Sender: No OFD packet to send [01:58: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:36]OFD Sender: No OFD packet to send [02:11:41]OFD Sender: No OFD packet to send [02:11:46]OFD Sender: No OFD packet to send [02:11:51]OFD Sender: No OFD packet to send [02:11:56]OFD Sender: No OFD packet to send [02:12:01]OFD Sender: No OFD packet to send [02:12:06]OFD Sender: No OFD packet to send [02:12:11]OFD Sender: No OFD packet to send [02:12:16]OFD Sender: No OFD packet to send [02:12:21]OFD Sender: No OFD packet to send [02:12:26]OFD Sender: No OFD packet to send [02:12:31]OFD Sender: No OFD packet to send [02:12:36]OFD Sender: No OFD packet to send [02:12:41]OFD Sender: No OFD packet to send [02:12:46]OFD Sender: No OFD packet to send [02:12:51]OFD Sender: No OFD packet to send [02:12:56]OFD Sender: No OFD packet to send [02:13:01]OFD Sender: No OFD packet to send [02:13:06]OFD Sender: No OFD packet to send [02:13:11]OFD Sender: No OFD packet to send [02:13:16]OFD Sender: No OFD packet to send [02:13:21]OFD Sender: No OFD packet to send [02:13:26]OFD Sender: No OFD packet to send [02:13:31]OFD Sender: No OFD packet to send [02:13:36]OFD Sender: No OFD packet to send [02:13:41]OFD Sender: No OFD packet to send [02:13:46]OFD Sender: No OFD packet to send [02:13:51]OFD Sender: No OFD packet to send [02:13:56]OFD Sender: No OFD packet to send [02:14:01]OFD Sender: No OFD packet to send [02:14:06]OFD Sender: No OFD packet to send [02:14:11]OFD Sender: No OFD packet to send [02:14:16]OFD Sender: No OFD packet to send [02:14:21]OFD Sender: No OFD packet to send [02:14:26]OFD Sender: No OFD packet to send [02:14:31]OFD Sender: No OFD packet to send [02:14:36]OFD Sender: No OFD packet to send [02:14:41]OFD Sender: No OFD packet to send [02:14:46]OFD Sender: No OFD packet to send [02:14:51]OFD Sender: No OFD packet to send [02:14:56]OFD Sender: No OFD packet to send [02:15:01]OFD Sender: No OFD packet to send [02:15:06]OFD Sender: No OFD packet to send [02:15:11]OFD Sender: No OFD packet to send [02:15:16]OFD Sender: No OFD packet to send [02:15:21]OFD Sender: No OFD packet to send [02:15:26]OFD Sender: No OFD packet to send [02:15:31]OFD Sender: No OFD packet to send [02:15:36]OFD Sender: No OFD packet to send [02:15:41]OFD Sender: No OFD packet to send [02:15:46]OFD Sender: No OFD packet to send [02:15:51]OFD Sender: No OFD packet to send [02:15:56]OFD Sender: No OFD packet to send [02:16:01]OFD Sender: No OFD packet to send [02:16:06]OFD Sender: No OFD packet to send [02:16:11]OFD Sender: No OFD packet to send [02:16:16]OFD Sender: No OFD packet to send [02:16:21]OFD Sender: No OFD packet to send [02:16:26]OFD Sender: No OFD packet to send [02:16:31]OFD Sender: No OFD packet to send [02:16:36]OFD Sender: No OFD packet to send [02:16:41]OFD Sender: No OFD packet to send [02:16:46]OFD Sender: No OFD packet to send [02:16:51]OFD Sender: No OFD packet to send [02:16:56]OFD Sender: No OFD packet to send [02:17:01]OFD Sender: No OFD packet to send [02:17:06]OFD Sender: No OFD packet to send [02:17:11]OFD Sender: No OFD packet to send [02:17:16]OFD Sender: No OFD packet to send [02:17:21]OFD Sender: No OFD packet to send [02:17:26]OFD Sender: No OFD packet to send [02:17: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:24:02]OFD Sender: No OFD packet to send [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:57]OFD Sender: No OFD packet to send [02:35:02]OFD Sender: No OFD packet to send [02:35:07]OFD Sender: No OFD packet to send [02:35:12]OFD Sender: No OFD packet to send [02:35:17]OFD Sender: No OFD packet to send [02:35:22]OFD Sender: No OFD packet to send [02:35:27]OFD Sender: No OFD packet to send [02:35:32]OFD Sender: No OFD packet to send [02:35:37]OFD Sender: No OFD packet to send [02:35:42]OFD Sender: No OFD packet to send [02:35:47]OFD Sender: No OFD packet to send [02:35:52]OFD Sender: No OFD packet to send [02:35:57]OFD Sender: No OFD packet to send [02:36:02]OFD Sender: No OFD packet to send [02:36:07]OFD Sender: No OFD packet to send [02:36:12]OFD Sender: No OFD packet to send [02:36:17]OFD Sender: No OFD packet to send [02:36:22]OFD Sender: No OFD packet to send [02:36:27]OFD Sender: No OFD packet to send [02:36:32]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:08]OFD Sender: No OFD packet to send [02:53:13]OFD Sender: No OFD packet to send [02:53:18]OFD Sender: No OFD packet to send [02:53:23]OFD Sender: No OFD packet to send [02:53:28]OFD Sender: No OFD packet to send [02:53:33]OFD Sender: No OFD packet to send [02:53:38]OFD Sender: No OFD packet to send [02:53:43]OFD Sender: No OFD packet to send [02:53:48]OFD Sender: No OFD packet to send [02:53:53]OFD Sender: No OFD packet to send [02:53:58]OFD Sender: No OFD packet to send [02:54:03]OFD Sender: No OFD packet to send [02:54:08]OFD Sender: No OFD packet to send [02:54:13]OFD Sender: No OFD packet to send [02:54:18]OFD Sender: No OFD packet to send [02:54:23]OFD Sender: No OFD packet to send [02:54:28]OFD Sender: No OFD packet to send [02:54:33]OFD Sender: No OFD packet to send [02:54:38]OFD Sender: No OFD packet to send [02:54:43]OFD Sender: No OFD packet to send [02:54:48]OFD Sender: No OFD packet to send [02:54:53]OFD Sender: No OFD packet to send [02:54:58]OFD Sender: No OFD packet to send [02:55:03]OFD Sender: No OFD packet to send [02:55:08]OFD Sender: No OFD packet to send [02:55:13]OFD Sender: No OFD packet to send [02:55:18]OFD Sender: No OFD packet to send [02:55:23]OFD Sender: No OFD packet to send [02:55:28]OFD Sender: No OFD packet to send [02:55:33]OFD Sender: No OFD packet to send [02:55:38]OFD Sender: No OFD packet to send [02:55:43]OFD Sender: No OFD packet to send [02:55:48]OFD Sender: No OFD packet to send [02:55:53]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:50]accept exits with 7 [03:01:50]New connection [03:01:50]New thread 3067395428 created [03:01:50]Thread 3067538788 joined [03:01:50]Waiting for new connection... [03:01:50] Sock 7.Parse request [03:01:50]Sock 7.Check first char [03:01:50]Sock 7.First char is OK [03:01:50]request: POST /json_proto HTTP/1.0 [03:01:50]Method: POST [03:01:50]URL: /json_proto [03:01:50]Method is POST - this is cgi request [03:01:50]url: /json_proto [03:01:50]query_string will be loaded in cgi processing [03:01:50]execute_cgi json_proto POST (null) [03:01:50]execute_cgi path=json_proto method=POST [03:01:50]POST find Content-Length [03:01:50]Host: 172.17.41.195:8080 [03:01:50]Content-Length: 1179 [03:01:50]Content-Type: application/json [03:01:50] [03:01:50]POST finish read [03:01:50]Found Content-Length = 1179 [03:01:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507682\u000A17.05.2024 02:44\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 30.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2241.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:01:50]execute_script... [03:01:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507682\u000A17.05.2024 02:44\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 30.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2241.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:01:50]POST & json_proto [03:01:50]process_json_proto [03:01:50]json parsed OK: [03:01:50]protocol is kg_v1.0 [03:01:50]action value=print_text [03:01:50]process_action print_text [03:01:50]cmd_print_text [03:01:50]ExternCall_PrintAddStr [03:01:50]wPrintStart [03:01:50]Write to MH i2c: 01 00 00 3A 06 40 [03:01:50]Write i2c OK [03:01:50]MH_I2C_Read... [03:01:50]Read from MH i2c: 01 [03:01:50]MH_I2C_Read... [03:01:50]Read from MH i2c: 01 07 00 [03:01:50]MH_I2C_Read... [03:01:50]Read from MH i2c: 01 07 00 3A 06 00 00 00 00 00 FF 0F 55 [03:01:50]RasterBufferAndPrint [03:01:50]line *****ТОВАРНЫЙ ЧЕК***** [03:01:50]line АЗС-91 [03:01:50]line Партнер нефть [03:01:50]line 02508201610067 [03:01:50]line Кассир : Адишов И. [03:01:50]line Счет N : (1)507682 [03:01:50]line 17.05.2024 02:44 [03:01:50]line ПРОДАЖА [03:01:50]line ТРК (МРК, ГНК): 21 [03:01:50]line Вид ГСМ : 2710194210 [03:01:50]line ДТ-К-5 [03:01:50]line 30.000 x 74.70 [03:01:50]line ИТОГ: 2241.00 [03:01:50]line Тип оплаты: Талоны: Топливная Карта [03:01:50]line 02750 [03:01:50]line ______________________ [03:01:50]line (подпись) [03:01:50]written 0, free lines is 4095 [03:01:50]Write to MH i2c: 01 00 00 4E 06 54 [03:01:50]Write i2c OK [03:01:50]MH_I2C_Read... [03:01:50]Read from MH i2c: 01 [03:01:50]MH_I2C_Read... [03:01:50]Read from MH i2c: 01 07 00 [03:01:50]MH_I2C_Read... [03:01:50]Read from MH i2c: 01 07 00 4E 06 00 00 00 00 00 0D 0E 76 [03:01:50]RasterBufferAndPrint [03:01:50]line [03:01:50]line [03:01:50]line [03:01:50]line [03:01:50]line [03:01:50]written 0, free lines is 3598 [03:01:50]MH_Cut [03:01:50]Write to MH i2c: D1 01 00 55 06 01 2D [03:01:50]Write i2c OK [03:01:50]MH_I2C_Read... [03:01:50]Read from MH i2c: D1 [03:01:50]MH_I2C_Read... [03:01:50]Read from MH i2c: D1 01 00 [03:01:50]MH_I2C_Read... [03:01:50]Read from MH i2c: D1 01 00 55 06 00 2C [03:01:50]Write to MH i2c: 01 00 00 56 06 5C [03:01:50]Write i2c OK [03:01:50]MH_I2C_Read... [03:01:51]*** Cut start [03:01:51]*** Purtial cut [03:01:51]*** CUTSNS_PIN = 0 [03:01:51]*** Stage 1: CUTSNS_PIN = 1 [03:01:53]Read from MH i2c: 01 [03:01:53]MH_I2C_Read... [03:01:53]Read from MH i2c: 01 07 00 [03:01:53]MH_I2C_Read... [03:01:53]*** Stop cut motor [03:01:53]*** Cut end [03:01:53]Read from MH i2c: 01 07 00 56 06 00 00 00 00 00 FF 0F 71 [03:01:53]process_action print_text done [03:01:53]requested_data is exist [03:01:53]produce_requested_data [03:01:53]requested_item fm.sn is exist - process it [03:01:53]wFMCommunicate request_size=4 [03:01:53]MH_SAM_APDU [03:01:53]CAPDU: 80 11 00 00 [03:01:53]Write to MH i2c: E2 08 00 57 06 80 11 00 00 00 00 00 00 D7 [03:01:53]Write i2c OK [03:01:53]MH_I2C_Read... [03:01:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:01:53]Read from MH i2c: E2 [03:01:53]MH_I2C_Read... [03:01:53]Read from MH i2c: E2 17 00 [03:01:53]MH_I2C_Read... [03:01:53]Read from MH i2c: E2 17 00 57 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2D [03:01:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [03:01:53]wFMCommunicate OK [03:01:53]requested_item fd.num is exist - process it [03:01:53]SAM_PROTO_GetFieldsCounters [03:01:53]wFMCommunicate request_size=4 [03:01:53]MH_SAM_APDU [03:01:53]CAPDU: 80 13 00 00 [03:01:53]Write to MH i2c: E2 08 00 58 06 80 13 00 00 00 00 00 00 DA [03:01:53]Write i2c OK [03:01:53]MH_I2C_Read... [03:01:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:01:53]Read from MH i2c: E2 [03:01:53]MH_I2C_Read... [03:01:53]Read from MH i2c: E2 62 00 [03:01:53]MH_I2C_Read... [03:01:53]Read from MH i2c: E2 62 00 58 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 10 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [03:01:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 10 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:01:53]wFMCommunicate OK [03:01:53]SAM_PROTO_GetFieldsCounters done [03:01:53]requested_item shift.num is exist - process it [03:01:53]requested_item shift.opened is exist - process it [03:01:53]req_shift_opened [03:01:53]FM_GetShiftState [03:01:53]SAM_PROTO_GetShiftState [03:01:53]wFMCommunicate request_size=4 [03:01:53]MH_SAM_APDU [03:01:53]CAPDU: 80 13 01 00 [03:01:53]Write to MH i2c: E2 08 00 59 06 80 13 01 00 00 00 00 00 DC [03:01:53]Write i2c OK [03:01:53]MH_I2C_Read... [03:01:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:01:53]Read from MH i2c: E2 [03:01:53]MH_I2C_Read... [03:01:53]Read from MH i2c: E2 0E 00 [03:01:53]MH_I2C_Read... [03:01:53]Read from MH i2c: E2 0E 00 59 06 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 62 [03:01:53]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [03:01:53]wFMCommunicate OK [03:01:53]SAM_PROTO_GetShiftState done [03:01:53]FM_GetShiftState done [03:01:53]req_shift_opened done [03:01:53]requested_item shift.open_date is exist - process it [03:01:53]req_shift_open_date [03:01:53]req_shift_open_date done [03:01:53]produce_requested_data done [03:01:53]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67600,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [03:01:53]process_action_free print_text [03:01:53]json_value_free [03:01:53]json_value_free done [03:01:53]process_json_proto returns [03:01:53]Send response to host [03:01:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67600,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [03:01:53]free response buf [03:01:53]execute_script done [03:01:53]execute_script returns [03:01:53]free content buf [03:01:53]Sock 7.Close socket [03:01:53]Sock 7.Thread stoped [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:09]OFD Sender: No OFD packet to send [03:02:14]OFD Sender: No OFD packet to send [03:02:19]OFD Sender: No OFD packet to send [03:02:24]OFD Sender: No OFD packet to send [03:02:29]OFD Sender: No OFD packet to send [03:02:34]OFD Sender: No OFD packet to send [03:02:39]OFD Sender: No OFD packet to send [03:02:44]OFD Sender: No OFD packet to send [03:02:49]OFD Sender: No OFD packet to send [03:02:54]OFD Sender: No OFD packet to send [03:02:59]OFD Sender: No OFD packet to send [03:03:04]OFD Sender: No OFD packet to send [03:03:09]OFD Sender: No OFD packet to send [03:03:14]OFD Sender: No OFD packet to send [03:03:19]OFD Sender: No OFD packet to send [03:03:24]OFD Sender: No OFD packet to send [03:03:29]OFD Sender: No OFD packet to send [03:03:34]OFD Sender: No OFD packet to send [03:03:39]OFD Sender: No OFD packet to send [03:03:44]OFD Sender: No OFD packet to send [03:03:49]OFD Sender: No OFD packet to send [03:03:54]OFD Sender: No OFD packet to send [03:03:59]OFD Sender: No OFD packet to send [03:04:04]OFD Sender: No OFD packet to send [03:04:09]OFD Sender: No OFD packet to send [03:04:14]OFD Sender: No OFD packet to send [03:04:19]OFD Sender: No OFD packet to send [03:04:24]OFD Sender: No OFD packet to send [03:04:29]OFD Sender: No OFD packet to send [03:04:34]OFD Sender: No OFD packet to send [03:04:36]accept exits with 9 [03:04:36]New connection [03:04:36]New thread 3067538788 created [03:04:36]Thread 3067395428 joined [03:04:36]Waiting for new connection... [03:04:36] Sock 9.Parse request [03:04:36]Sock 9.Check first char [03:04:36]Sock 9.First char is OK [03:04:36]request: POST /json_proto HTTP/1.0 [03:04:36]Method: POST [03:04:36]URL: /json_proto [03:04:36]Method is POST - this is cgi request [03:04:36]url: /json_proto [03:04:36]query_string will be loaded in cgi processing [03:04:36]execute_cgi json_proto POST (null) [03:04:36]execute_cgi path=json_proto method=POST [03:04:36]POST find Content-Length [03:04:36]Host: 172.17.41.195:8080 [03:04:36]Content-Length: 639 [03:04:36]Content-Type: application/json [03:04:36] [03:04:36]POST finish read [03:04:36]Found Content-Length = 639 [03:04:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507683", "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" : 74.70, "quantity" : 20.000, "sum" : 1494.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1494.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:04:36]execute_script... [03:04: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)507683", "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" : 74.70, "quantity" : 20.000, "sum" : 1494.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1494.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:04:36]POST & json_proto [03:04:36]process_json_proto [03:04:36]json parsed OK: [03:04:36]protocol is kg_v1.0 [03:04:36]action value=close_receipt [03:04:36]process_action close_receipt [03:04:36]cmd_close_receipt [03:04:36]MH_GetDate [03:04:36]Write to MH i2c: F0 00 00 5A 06 4F [03:04:36]Write i2c OK [03:04:36]MH_I2C_Read... [03:04:36]Read from MH i2c: F0 [03:04:36]MH_I2C_Read... [03:04:36]Read from MH i2c: F0 09 00 [03:04:36]MH_I2C_Read... [03:04:36]Read from MH i2c: F0 09 00 5A 06 00 45 C9 46 66 FC 21 6F 64 02 [03:04:36]GetLastDocTimeStamp 1715908987 [03:04:36]current date 1715915077 [03:04:36]FM_GetShiftState [03:04:36]SAM_PROTO_GetShiftState [03:04:36]wFMCommunicate request_size=4 [03:04:36]MH_SAM_APDU [03:04:36]CAPDU: 80 13 01 00 [03:04:36]Write to MH i2c: E2 08 00 5B 06 80 13 01 00 00 00 00 00 DE [03:04:36]Write i2c OK [03:04:36]MH_I2C_Read... [03:04:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:04:36]Read from MH i2c: E2 [03:04:36]MH_I2C_Read... [03:04:36]Read from MH i2c: E2 0E 00 [03:04:36]MH_I2C_Read... [03:04:36]Read from MH i2c: E2 0E 00 5B 06 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 64 [03:04:36]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [03:04:36]wFMCommunicate OK [03:04:36]SAM_PROTO_GetShiftState done [03:04:36]FM_GetShiftState done [03:04:36]opened in 1715905068 [03:04:36]opened+sec_in_day 1715991468 [03:04:36]quantity*price = 149400 [03:04:36]sum+1 = 149401 [03:04:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1494.00 НСП 1% : 13.22 НДС 12% : 158.65 Наличными: 1494.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 10 17.05.2024 03:04 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67601 ФПД: 5927781544067 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T030437&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67601&fm=5927781544067&tin=02508201610067®Number=0000000000091845&sum=149400 [03:04:37]StoreToDocumentArchive [03:04:37]shift 358 fd 67601 [03:04:37]save to /storage/0358/doc_00067601 [03:04:37]save last doc name /storage/0358/doc_00067601 to /storage/kkm_last_doc_name [03:04:37]save OK [03:04:37]Clear old archive folders... [03:04:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [03:04:37]tlvbuf is 015CA0E0 [03:04:37]SAM_PROTO_ClearQueue [03:04:37]wFMCommunicate request_size=4 [03:04:37]MH_SAM_APDU [03:04:37]CAPDU: 80 09 00 00 [03:04:37]Write to MH i2c: E2 08 00 68 06 80 09 00 00 00 00 00 00 E0 [03:04:37]Write i2c OK [03:04:37]MH_I2C_Read... [03:04:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:04:37]Read from MH i2c: E2 [03:04:37]MH_I2C_Read... [03:04:37]Read from MH i2c: E2 03 00 [03:04:37]MH_I2C_Read... [03:04:37]Read from MH i2c: E2 03 00 68 06 00 90 00 E2 [03:04:37]RAPDU: 90 00 [03:04:37]wFMCommunicate OK [03:04:37]SAM_PROTO_ClearQueue done [03:04:37]KKMCreateOFDPacket [03:04:37]OFDProtocolAddRootSTLVToBuf [03:04:37]FM_MakeSignedData [03:04:37]FM_MakeSignedData [03:04:37]SAM_PROTO_SignData [03:04:37]wFMCommunicate request_size=4 [03:04:37]MH_SAM_APDU [03:04:37]CAPDU: 80 0D 01 02 [03:04:37]Write to MH i2c: E2 08 00 69 06 80 0D 01 02 00 00 00 00 E8 [03:04:37]Write i2c OK [03:04:37]MH_I2C_Read... [03:04:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:04:37]Read from MH i2c: E2 [03:04:37]MH_I2C_Read... [03:04:37]Read from MH i2c: E2 03 00 [03:04:37]MH_I2C_Read... [03:04:37]Read from MH i2c: E2 03 00 69 06 00 90 00 E3 [03:04:37]RAPDU: 90 00 [03:04:37]wFMCommunicate OK [03:04:37]wFMCommunicate request_size=255 [03:04:37]MH_SAM_APDU [03:04: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 20 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 98 47 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 47 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 3D 00 00 00 00 07 04 06 00 98 47 02 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 45 C9 46 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 11 08 01 00 35 04 06 00 05 64 2B 50 [03:04:37]Write to MH i2c: E2 02 01 6A 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 20 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 98 47 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 47 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 3D 00 00 00 00 07 04 06 00 98 47 02 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 45 C9 46 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 11 08 01 00 35 04 06 00 05 64 2B 50 00 00 34 [03:04:37]Write i2c OK [03:04:37]MH_I2C_Read... [03:04:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:04:37]Read from MH i2c: E2 [03:04:37]MH_I2C_Read... [03:04:37]Read from MH i2c: E2 03 00 [03:04:37]MH_I2C_Read... [03:04:37]Read from MH i2c: E2 03 00 6A 06 00 90 00 E4 [03:04:37]RAPDU: 90 00 [03:04:37]wFMCommunicate OK [03:04:37]wFMCommunicate request_size=7 [03:04:37]MH_SAM_APDU [03:04:37]CAPDU: 80 0D 02 02 02 30 83 [03:04:37]Write to MH i2c: E2 0A 00 6B 06 80 0D 02 02 02 00 30 83 00 00 A2 [03:04:37]Write i2c OK [03:04:37]MH_I2C_Read... [03:04:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:04:37]Read from MH i2c: E2 [03:04:37]MH_I2C_Read... [03:04:37]Read from MH i2c: E2 03 00 [03:04:37]MH_I2C_Read... [03:04:37]Read from MH i2c: E2 03 00 6B 06 00 90 00 E5 [03:04:37]RAPDU: 90 00 [03:04:37]wFMCommunicate OK [03:04:37]wFMCommunicate request_size=4 [03:04:37]MH_SAM_APDU [03:04:37]CAPDU: 80 0D 03 02 [03:04:37]Write to MH i2c: E2 08 00 6C 06 80 0D 03 02 00 00 00 00 ED [03:04:37]Write i2c OK [03:04:37]MH_I2C_Read... [03:04:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:04:37]Read from MH i2c: E2 [03:04:37]MH_I2C_Read... [03:04:37]Read from MH i2c: E2 0B 00 [03:04:37]MH_I2C_Read... [03:04:37]Read from MH i2c: E2 0B 00 6C 06 00 0A F0 FA 52 07 70 56 BE 90 00 BF [03:04:37]RAPDU: 0A F0 FA 52 07 70 56 BE 90 00 [03:04:37]wFMCommunicate OK [03:04:37]SAM_PROTO_SignData done [03:04:37]FM_MakeSignedData done [03:04:37]CreateOFDProtocolMessage [03:04:37]wFMCommunicate request_size=4 [03:04:37]MH_SAM_APDU [03:04:37]CAPDU: 80 11 00 00 [03:04:37]Write to MH i2c: E2 08 00 6D 06 80 11 00 00 00 00 00 00 ED [03:04:37]Write i2c OK [03:04:37]MH_I2C_Read... [03:04:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:04:37]Read from MH i2c: E2 [03:04:37]MH_I2C_Read... [03:04:37]Read from MH i2c: E2 17 00 [03:04:37]MH_I2C_Read... [03:04:37]Read from MH i2c: E2 17 00 6D 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 43 [03:04:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [03:04:37]wFMCommunicate OK [03:04:37]CreateOFDProtocolMessage done [03:04:37]OFDSenderStorePacket 67601 [03:04:37]StoreOFDPacket docnum=67601 [03:04:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 21 43 04 01 03 9B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 98 47 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 47 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 3D 00 00 00 00 07 04 06 00 98 47 02 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 45 C9 46 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 11 08 01 00 35 04 06 00 05 64 2B 50 30 83 0A F0 FA 52 07 70 56 BE [03:04:37]CheckFolder [03:04:37]dirname=/storage/ofd_packets [03:04:37]CheckFolder done [03:04:37]ProducePacketName [03:04:37]name=ofd_packets/00067601 [03:04:37]NVStorageSaveData ofd_packets/00067601 [03:04:37]File name is /storage/ofd_packets/00067601 [03:04:37]Write 298 bytes [03:04:37]NVStorageSaveData done [03:04:37]OFDSenderStorePacket done [03:04:37]KKMCreateOFDPacket done [03:04:37]NVStorageSaveData kkm_last_timestamp [03:04:37]File name is /storage/kkm_last_timestamp [03:04:37]Write 4 bytes [03:04:37]NVStorageSaveData done [03:04:37]ExternCall_PrintAddStr [03:04:37]wPrintStart [03:04:37]Write to MH i2c: 01 00 00 6E 06 74 [03:04:37]Write i2c OK [03:04:37]MH_I2C_Read... [03:04:37]Read from MH i2c: 01 [03:04:37]MH_I2C_Read... [03:04:37]Read from MH i2c: 01 07 00 [03:04:37]MH_I2C_Read... [03:04:37]Read from MH i2c: 01 07 00 6E 06 00 00 00 00 00 FF 0F 89 [03:04:37]RasterBufferAndPrint [03:04:37]line Счет N : (1)507683 [03:04:37]line ИНН: 02508201610067 [03:04:37]line Контрольно-Кассовый Чек [03:04:37]line ПРОДАЖА [03:04:37]line ТРК (МРК, ГНК) : 21 [03:04:37]line Товар: 2710194210 [03:04:37]line ДТ-К-5 [03:04:37]line 20.000 * 74.70 [03:04:37]line = 1494.00 [03:04:37]line НДС 12% НСП 1% [03:04:37]line > о реализуемом товаре [03:04:37]line ИТОГО: 1494.00 [03:04:37]line НСП 1% : 13.22 [03:04:37]line НДС 12% : 158.65 [03:04:37]line Наличными: 1494.00 [03:04:37]line Безнал.: 0.00 [03:04:37]line Место: АЗС № 91 "Партнер Нефть" [03:04:37]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [03:04:37]line СНО: Общий режим [03:04:37]line Чек 10 17.05.2024 03:04 [03:04:37]line Смена: 358 ФФД: 1.0 [03:04:37]line ЗНМ: 0300000119 [03:04:37]line РНМ: 0000000000091845 [03:04:37]line Версия ККМ: 001 [03:04:37]line ФМ: 0000000000871829 [03:04:37]line ФД: 67601 [03:04:37]line ФПД: 5927781544067 [03:04:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T030437&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67601&fm=5927781544067&tin=02508201610067®Number=0000000000091845&sum=149400 [03:04:38]OFD Sender: Processing packet 67601 [packets to send 35, broken 34] [03:04:38]ProducePacketName [03:04:38]name=ofd_packets/00067601 [03:04:38]OFD Sender: To server: pG, [03:04:38]CommunicateWithHost lk.salyk.kg:30040 [03:04:38]ConnectInit lk.salyk.kg [03:04:38]written 0, free lines is 4095 [03:04:38]Connected sock=7 [03:04: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 38 32 39 0C 01 00 00 21 43 04 01 03 9B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 98 47 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 47 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 3D 00 00 00 00 07 04 06 00 98 47 02 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 45 C9 46 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 11 08 01 00 35 04 06 00 05 64 2B 50 30 83 0A F0 FA 52 07 70 56 BE [03:04:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 51 6A 47 00 9B 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 38 32 39 10 04 04 00 11 08 01 00 F4 03 04 00 1E 71 46 66 B6 04 01 00 00 5E 6B 2B 6E CB 16 DD AF [03:04:38]CommunicateWithHost err = 0 [03:04:38]CheckOFDResponse [03:04:38]1017 (14) - 77093643461234 [03:04:38]1041 (16) - 0000000000871829 [03:04:38]1040 (4) - 67601 [03:04:38]1012 (4) - 16.05.2024 20:48 [03:04:38]1206 (1) - 0 [03:04:38]OFD Sender: Remove packet 67601 [03:04:38]ProducePacketName [03:04:38]name=ofd_packets/00067601 [03:04:38]NVStorageDeleteData [03:04:38]Write to MH i2c: 01 00 00 95 06 9B [03:04:38]Write i2c OK [03:04:38]MH_I2C_Read... [03:04:38]Read from MH i2c: 01 [03:04:38]MH_I2C_Read... [03:04:38]Read from MH i2c: 01 07 00 [03:04:38]MH_I2C_Read... [03:04:38]Read from MH i2c: 01 07 00 95 06 00 00 00 00 00 F6 0C A4 [03:04:38]RasterBufferAndPrint [03:04:38]line [03:04:38]line [03:04:38]line [03:04:38]line [03:04:38]line [03:04:38]written 0, free lines is 3322 [03:04:38]MH_Cut [03:04:38]Write to MH i2c: D1 01 00 9C 06 01 74 [03:04:38]Write i2c OK [03:04:38]MH_I2C_Read... [03:04:38]Read from MH i2c: D1 [03:04:38]MH_I2C_Read... [03:04:38]Read from MH i2c: D1 01 00 [03:04:38]MH_I2C_Read... [03:04:38]Read from MH i2c: D1 01 00 9C 06 00 73 [03:04:38]Write to MH i2c: 01 00 00 9D 06 A3 [03:04:38]Write i2c OK [03:04:38]MH_I2C_Read... [03:04:38]OFD Sender: No OFD packet to send [03:04:39]*** Cut start [03:04:39]*** Purtial cut [03:04:39]*** Stage 1: CUTSNS_PIN = 1 [03:04:39]Read from MH i2c: 01 [03:04:39]MH_I2C_Read... [03:04:39]*** Stop cut motor [03:04:39]*** Cut end [03:04:39]Read from MH i2c: 01 07 00 [03:04:39]MH_I2C_Read... [03:04:39]Read from MH i2c: 01 07 00 9D 06 00 00 00 00 00 FF 0F B8 [03:04:39]process_action close_receipt done [03:04:39]requested_data is exist [03:04:39]produce_requested_data [03:04:39]requested_item fm.sn is exist - process it [03:04:39]wFMCommunicate request_size=4 [03:04:39]MH_SAM_APDU [03:04:39]CAPDU: 80 11 00 00 [03:04:39]Write to MH i2c: E2 08 00 9E 06 80 11 00 00 00 00 00 00 1E [03:04:39]Write i2c OK [03:04:39]MH_I2C_Read... [03:04:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:04:39]Read from MH i2c: E2 [03:04:39]MH_I2C_Read... [03:04:39]Read from MH i2c: E2 17 00 [03:04:39]MH_I2C_Read... [03:04:39]Read from MH i2c: E2 17 00 9E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 74 [03:04:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [03:04:39]wFMCommunicate OK [03:04:39]requested_item fd.num is exist - process it [03:04:39]SAM_PROTO_GetFieldsCounters [03:04:39]wFMCommunicate request_size=4 [03:04:39]MH_SAM_APDU [03:04:39]CAPDU: 80 13 00 00 [03:04:39]Write to MH i2c: E2 08 00 9F 06 80 13 00 00 00 00 00 00 21 [03:04:39]Write i2c OK [03:04:39]MH_I2C_Read... [03:04:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:04:39]Read from MH i2c: E2 [03:04:39]MH_I2C_Read... [03:04:39]Read from MH i2c: E2 62 00 [03:04:39]MH_I2C_Read... [03:04:39]Read from MH i2c: E2 62 00 9F 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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 11 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [03:04: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 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 11 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:04:39]wFMCommunicate OK [03:04:39]SAM_PROTO_GetFieldsCounters done [03:04:39]requested_item shift.num is exist - process it [03:04:39]requested_item shift.opened is exist - process it [03:04:39]req_shift_opened [03:04:39]FM_GetShiftState [03:04:39]SAM_PROTO_GetShiftState [03:04:39]wFMCommunicate request_size=4 [03:04:39]MH_SAM_APDU [03:04:39]CAPDU: 80 13 01 00 [03:04:39]Write to MH i2c: E2 08 00 A0 06 80 13 01 00 00 00 00 00 23 [03:04:39]Write i2c OK [03:04:39]MH_I2C_Read... [03:04:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:04:39]Read from MH i2c: E2 [03:04:39]MH_I2C_Read... [03:04:39]Read from MH i2c: E2 0E 00 [03:04:39]MH_I2C_Read... [03:04:39]Read from MH i2c: E2 0E 00 A0 06 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 A9 [03:04:39]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [03:04:39]wFMCommunicate OK [03:04:39]SAM_PROTO_GetShiftState done [03:04:39]FM_GetShiftState done [03:04:39]req_shift_opened done [03:04:39]requested_item shift.open_date is exist - process it [03:04:39]req_shift_open_date [03:04:39]req_shift_open_date done [03:04:39]produce_requested_data done [03:04:39]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67601,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [03:04:39]process_action_free close_receipt [03:04:39]json_value_free [03:04:39]json_value_free done [03:04:39]process_json_proto returns [03:04:39]Send response to host [03:04:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67601,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [03:04:39]free response buf [03:04:39]execute_script done [03:04:39]execute_script returns [03:04:39]free content buf [03:04:39]Sock 9.Close socket [03:04:39]Sock 9.Thread stoped [03:04:43]OFD Sender: No OFD packet to send [03:04:48]OFD Sender: No OFD packet to send [03:04:53]OFD Sender: No OFD packet to send [03:04:58]OFD Sender: No OFD packet to send [03:05:03]OFD Sender: No OFD packet to send [03:05:08]OFD Sender: No OFD packet to send [03:05:13]OFD Sender: No OFD packet to send [03:05:18]OFD Sender: No OFD packet to send [03:05:23]OFD Sender: No OFD packet to send [03:05:28]OFD Sender: No OFD packet to send [03:05:33]OFD Sender: No OFD packet to send [03:05:38]OFD Sender: No OFD packet to send [03:05:43]OFD Sender: No OFD packet to send [03:05:48]OFD Sender: No OFD packet to send [03:05:53]OFD Sender: No OFD packet to send [03:05:58]OFD Sender: No OFD packet to send [03:06:03]OFD Sender: No OFD packet to send [03:06:08]OFD Sender: No OFD packet to send [03:06:13]OFD Sender: No OFD packet to send [03:06:18]OFD Sender: No OFD packet to send [03:06:23]OFD Sender: No OFD packet to send [03:06: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:29]OFD Sender: No OFD packet to send [03:07:34]OFD Sender: No OFD packet to send [03:07:39]OFD Sender: No OFD packet to send [03:07:44]OFD Sender: No OFD packet to send [03:07:49]OFD Sender: No OFD packet to send [03:07:54]OFD Sender: No OFD packet to send [03:07:59]OFD Sender: No OFD packet to send [03:08:04]OFD Sender: No OFD packet to send [03:08:09]OFD Sender: No OFD packet to send [03:08:14]OFD Sender: No OFD packet to send [03:08:19]OFD Sender: No OFD packet to send [03:08:24]OFD Sender: No OFD packet to send [03:08:29]OFD Sender: No OFD packet to send [03:08:34]OFD Sender: No OFD packet to send [03:08:39]OFD Sender: No OFD packet to send [03:08:44]OFD Sender: No OFD packet to send [03:08:49]OFD Sender: No OFD packet to send [03:08:54]OFD Sender: No OFD packet to send [03:08:59]OFD Sender: No OFD packet to send [03:09:04]OFD Sender: No OFD packet to send [03:09:09]OFD Sender: No OFD packet to send [03:09:14]OFD Sender: No OFD packet to send [03:09:19]OFD Sender: No OFD packet to send [03:09:24]OFD Sender: No OFD packet to send [03:09:29]OFD Sender: No OFD packet to send [03:09:34]OFD Sender: No OFD packet to send [03:09:39]OFD Sender: No OFD packet to send [03:09:44]OFD Sender: No OFD packet to send [03:09:49]OFD Sender: No OFD packet to send [03:09:54]OFD Sender: No OFD packet to send [03:09:59]OFD Sender: No OFD packet to send [03:10:04]OFD Sender: No OFD packet to send [03:10:09]OFD Sender: No OFD packet to send [03:10:14]OFD Sender: No OFD packet to send [03:10:19]OFD Sender: No OFD packet to send [03:10:24]OFD Sender: No OFD packet to send [03:10:29]OFD Sender: No OFD packet to send [03:10:34]OFD Sender: No OFD packet to send [03:10:39]OFD Sender: No OFD packet to send [03:10:44]OFD Sender: No OFD packet to send [03:10:49]OFD Sender: No OFD packet to send [03:10:54]OFD Sender: No OFD packet to send [03:10:59]OFD Sender: No OFD packet to send [03:11:04]OFD Sender: No OFD packet to send [03:11:09]OFD Sender: No OFD packet to send [03:11:14]OFD Sender: No OFD packet to send [03:11:19]OFD Sender: No OFD packet to send [03:11:24]OFD Sender: No OFD packet to send [03:11:29]OFD Sender: No OFD packet to send [03:11:34]OFD Sender: No OFD packet to send [03:11:39]OFD Sender: No OFD packet to send [03:11:44]OFD Sender: No OFD packet to send [03:11:49]OFD Sender: No OFD packet to send [03:11:54]OFD Sender: No OFD packet to send [03:11:59]OFD Sender: No OFD packet to send [03:12:04]OFD Sender: No OFD packet to send [03:12:09]OFD Sender: No OFD packet to send [03:12:14]OFD Sender: No OFD packet to send [03:12:19]OFD Sender: No OFD packet to send [03:12:24]OFD Sender: No OFD packet to send [03:12:29]OFD Sender: No OFD packet to send [03:12:34]OFD Sender: No OFD packet to send [03:12:39]OFD Sender: No OFD packet to send [03:12:44]OFD Sender: No OFD packet to send [03:12:49]OFD Sender: No OFD packet to send [03:12:54]OFD Sender: No OFD packet to send [03:12:59]OFD Sender: No OFD packet to send [03:13:04]OFD Sender: No OFD packet to send [03:13:09]OFD Sender: No OFD packet to send [03:13:14]OFD Sender: No OFD packet to send [03:13:19]OFD Sender: No OFD packet to send [03:13:24]OFD Sender: No OFD packet to send [03:13:29]OFD Sender: No OFD packet to send [03:13:34]OFD Sender: No OFD packet to send [03:13:39]OFD Sender: No OFD packet to send [03:13:44]OFD Sender: No OFD packet to send [03:13:49]OFD Sender: No OFD packet to send [03:13:54]OFD Sender: No OFD packet to send [03:13:59]OFD Sender: No OFD packet to send [03:14:04]OFD Sender: No OFD packet to send [03:14:09]OFD Sender: No OFD packet to send [03:14:14]OFD Sender: No OFD packet to send [03:14:19]OFD Sender: No OFD packet to send [03:14:24]OFD Sender: No OFD packet to send [03:14:29]OFD Sender: No OFD packet to send [03:14:34]OFD Sender: No OFD packet to send [03:14:39]OFD Sender: No OFD packet to send [03:14:44]OFD Sender: No OFD packet to send [03:14:49]OFD Sender: No OFD packet to send [03:14:54]OFD Sender: No OFD packet to send [03:14:59]OFD Sender: No OFD packet to send [03:15:04]OFD Sender: No OFD packet to send [03:15:09]OFD Sender: No OFD packet to send [03:15:14]OFD Sender: No OFD packet to send [03:15:19]OFD Sender: No OFD packet to send [03:15:24]OFD Sender: No OFD packet to send [03:15:29]OFD Sender: No OFD packet to send [03:15:34]OFD Sender: No OFD packet to send [03:15:39]OFD Sender: No OFD packet to send [03:15:44]OFD Sender: No OFD packet to send [03:15:49]OFD Sender: No OFD packet to send [03:15:54]OFD Sender: No OFD packet to send [03:15:59]OFD Sender: No OFD packet to send [03:16:04]OFD Sender: No OFD packet to send